From cf350ec02b42adb58c2992e2d77dea969b98ce42 Mon Sep 17 00:00:00 2001 From: landolabrum Date: Thu, 20 Jun 2024 22:22:16 +0000 Subject: [PATCH] Updates --- 404.html | 2 +- 404/[loc].html | 2 +- .../52jQpQ0eGqGH3aJ4hQm7f/_buildManifest.js | 1 + .../_ssgManifest.js | 0 .../DkuvJO9M6TmsUuZe3Tm_D/_buildManifest.js | 1 - _next/static/chunks/1-fd9f7e546315f172.js | 1 + _next/static/chunks/1695-10e929d2e8ccdd95.js | 1 - _next/static/chunks/1695-bf4825776d483384.js | 1 + _next/static/chunks/2332-1450c1fdaaf2ac1d.js | 1 - _next/static/chunks/3451-4e51387883250e69.js | 1 + _next/static/chunks/3923-be74c9f40308ae70.js | 1 - _next/static/chunks/4592-8576200bd4e43f9f.js | 1 + _next/static/chunks/4592-953def3ce62165d1.js | 1 - ...d444c5891a.js => 4623-89c46771d473852c.js} | 4 +- _next/static/chunks/5461-150efafcbb3ce697.js | 1 + _next/static/chunks/5461-7c526cc658c39fed.js | 1 - ...6472d123291.js => 559-345fcf129feb2a68.js} | 2 +- _next/static/chunks/6005-48b138da0c850465.js | 1 - _next/static/chunks/6005-f3f5c37c210c1cc8.js | 1 + _next/static/chunks/6378-4e5e41532a5c5b6c.js | 1 - _next/static/chunks/6378-6832ddf77049c5c9.js | 1 + _next/static/chunks/7268-197695e435301802.js | 1 + _next/static/chunks/7268-6e831f80c25a7b5d.js | 1 - ...68858d0103.js => 7681-ea571f9f406c5674.js} | 2 +- _next/static/chunks/829-adb4bf8b439a2252.js | 1 + _next/static/chunks/829-e6e5a383061a61a5.js | 1 - _next/static/chunks/8884-6266db2343c80d86.js | 25 -- .../chunks/fb7d5399-8eb48fe09d96f37b.js | 231 ------------------ ...8384109d50e.js => 404-66d810e30b629c72.js} | 2 +- ...7b2ea1de0.js => [loc]-51d98b0ad34d50df.js} | 2 +- .../chunks/pages/_app-3ab487297981edf6.js | 24 -- .../chunks/pages/_app-b108ecbcb49fa88b.js | 24 ++ ...e884d4a6c.js => admin-285959392f0a812b.js} | 2 +- ...81d309fd.js => [slug]-5a94cad8b294733a.js} | 2 +- .../chunks/pages/checkout-1868327e32d52780.js | 1 - .../chunks/pages/checkout-718fb94f4272ac84.js | 1 + ...022c4.js => dashboard-a4980bcbd3d7d6df.js} | 2 +- .../chunks/pages/index-632b680a8502e442.js | 1 - .../chunks/pages/index-ab6b3a0109bdc9e1.js | 1 + .../pages/index/[cid]-94e544e83e8b6eea.js | 1 + .../pages/index/[cid]-ef4d679f498ddd5b.js | 1 - .../index/index/Index-a829b70a7009d473.js | 1 - .../index/index/Index-bc8426a3ff56d6fd.js | 1 + .../chunks/pages/profile-a2edc15c4fe6c656.js | 1 + .../chunks/pages/profile-f54362b59e2845cb.js | 1 - .../pages/services/Index-11f921f72e81a895.js | 1 + .../pages/services/Index-70da262f161b9900.js | 1 - .../pages/services/[cid]-9859ce522c39478e.js | 1 - .../pages/services/[cid]-fe36a8067e6f56b0.js | 1 + .../static/chunks/webpack-392f68a94e5472e8.js | 1 - .../static/chunks/webpack-646017cc671cbcee.js | 1 + about.html | 2 +- admin.html | 2 +- admin/[slug].html | 2 +- authentication.html | 2 +- authentication/[function].html | 2 +- cart.html | 2 +- cart/[ref].html | 2 +- checkout.html | 2 +- configure.html | 2 +- dashboard.html | 2 +- home.html | 2 +- home/[vid].html | 2 +- index.html | 2 +- index/[cid].html | 2 +- index/index/Index.html | 2 +- product.html | 2 +- product/[id].html | 2 +- profile.html | 2 +- services/Index.html | 2 +- services/[cid].html | 2 +- social.html | 2 +- social/[platform].html | 2 +- transaction.html | 2 +- transaction/[slug].html | 2 +- verify.html | 2 +- verify/[slug].html | 2 +- 77 files changed, 79 insertions(+), 335 deletions(-) create mode 100644 _next/static/52jQpQ0eGqGH3aJ4hQm7f/_buildManifest.js rename _next/static/{DkuvJO9M6TmsUuZe3Tm_D => 52jQpQ0eGqGH3aJ4hQm7f}/_ssgManifest.js (100%) delete mode 100644 _next/static/DkuvJO9M6TmsUuZe3Tm_D/_buildManifest.js create mode 100644 _next/static/chunks/1-fd9f7e546315f172.js delete mode 100644 _next/static/chunks/1695-10e929d2e8ccdd95.js create mode 100644 _next/static/chunks/1695-bf4825776d483384.js delete mode 100644 _next/static/chunks/2332-1450c1fdaaf2ac1d.js create mode 100644 _next/static/chunks/3451-4e51387883250e69.js delete mode 100644 _next/static/chunks/3923-be74c9f40308ae70.js create mode 100644 _next/static/chunks/4592-8576200bd4e43f9f.js delete mode 100644 _next/static/chunks/4592-953def3ce62165d1.js rename _next/static/chunks/{4623-12f62ed444c5891a.js => 4623-89c46771d473852c.js} (95%) create mode 100644 _next/static/chunks/5461-150efafcbb3ce697.js delete mode 100644 _next/static/chunks/5461-7c526cc658c39fed.js rename _next/static/chunks/{559-124796472d123291.js => 559-345fcf129feb2a68.js} (73%) delete mode 100644 _next/static/chunks/6005-48b138da0c850465.js create mode 100644 _next/static/chunks/6005-f3f5c37c210c1cc8.js delete mode 100644 _next/static/chunks/6378-4e5e41532a5c5b6c.js create mode 100644 _next/static/chunks/6378-6832ddf77049c5c9.js create mode 100644 _next/static/chunks/7268-197695e435301802.js delete mode 100644 _next/static/chunks/7268-6e831f80c25a7b5d.js rename _next/static/chunks/{7681-79300968858d0103.js => 7681-ea571f9f406c5674.js} (81%) create mode 100644 _next/static/chunks/829-adb4bf8b439a2252.js delete mode 100644 _next/static/chunks/829-e6e5a383061a61a5.js delete mode 100644 _next/static/chunks/8884-6266db2343c80d86.js delete mode 100644 _next/static/chunks/fb7d5399-8eb48fe09d96f37b.js rename _next/static/chunks/pages/{404-27fec8384109d50e.js => 404-66d810e30b629c72.js} (69%) rename _next/static/chunks/pages/404/{[loc]-e5436ba7b2ea1de0.js => [loc]-51d98b0ad34d50df.js} (69%) delete mode 100644 _next/static/chunks/pages/_app-3ab487297981edf6.js create mode 100644 _next/static/chunks/pages/_app-b108ecbcb49fa88b.js rename _next/static/chunks/pages/{admin-ca65dc7e884d4a6c.js => admin-285959392f0a812b.js} (62%) rename _next/static/chunks/pages/admin/{[slug]-3bbf0dfc81d309fd.js => [slug]-5a94cad8b294733a.js} (63%) delete mode 100644 _next/static/chunks/pages/checkout-1868327e32d52780.js create mode 100644 _next/static/chunks/pages/checkout-718fb94f4272ac84.js rename _next/static/chunks/pages/{dashboard-985bb274ab8022c4.js => dashboard-a4980bcbd3d7d6df.js} (63%) delete mode 100644 _next/static/chunks/pages/index-632b680a8502e442.js create mode 100644 _next/static/chunks/pages/index-ab6b3a0109bdc9e1.js create mode 100644 _next/static/chunks/pages/index/[cid]-94e544e83e8b6eea.js delete mode 100644 _next/static/chunks/pages/index/[cid]-ef4d679f498ddd5b.js delete mode 100644 _next/static/chunks/pages/index/index/Index-a829b70a7009d473.js create mode 100644 _next/static/chunks/pages/index/index/Index-bc8426a3ff56d6fd.js create mode 100644 _next/static/chunks/pages/profile-a2edc15c4fe6c656.js delete mode 100644 _next/static/chunks/pages/profile-f54362b59e2845cb.js create mode 100644 _next/static/chunks/pages/services/Index-11f921f72e81a895.js delete mode 100644 _next/static/chunks/pages/services/Index-70da262f161b9900.js delete mode 100644 _next/static/chunks/pages/services/[cid]-9859ce522c39478e.js create mode 100644 _next/static/chunks/pages/services/[cid]-fe36a8067e6f56b0.js delete mode 100644 _next/static/chunks/webpack-392f68a94e5472e8.js create mode 100644 _next/static/chunks/webpack-646017cc671cbcee.js diff --git a/404.html b/404.html index 1a12a9049..e23cac554 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -Deepturn
This page does not exist
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.212Z ) \ No newline at end of file +Deepturn
This page does not exist
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.421Z ) \ No newline at end of file diff --git a/404/[loc].html b/404/[loc].html index 8a2243c1f..64ceb7c68 100644 --- a/404/[loc].html +++ b/404/[loc].html @@ -1 +1 @@ -Deepturn
This page does not exist
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.199Z ) \ No newline at end of file +Deepturn
This page does not exist
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.426Z ) \ No newline at end of file diff --git a/_next/static/52jQpQ0eGqGH3aJ4hQm7f/_buildManifest.js b/_next/static/52jQpQ0eGqGH3aJ4hQm7f/_buildManifest.js new file mode 100644 index 000000000..e361c096d --- /dev/null +++ b/_next/static/52jQpQ0eGqGH3aJ4hQm7f/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,c,a,t,e,i,n,d,u,f,h,r,o,b,k){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[t,s,c,a,e,"static/chunks/pages/index-ab6b3a0109bdc9e1.js"],"/404":["static/chunks/pages/404-66d810e30b629c72.js"],"/404/[loc]":["static/chunks/pages/404/[loc]-51d98b0ad34d50df.js"],"/_error":["static/chunks/pages/_error-f74d5d6d34ed88d1.js"],"/about":["static/chunks/4623-89c46771d473852c.js","static/chunks/pages/about-eddf656cd0e48889.js"],"/admin":[s,c,i,d,"static/chunks/pages/admin-285959392f0a812b.js"],"/admin/[slug]":[s,c,i,d,"static/chunks/pages/admin/[slug]-5a94cad8b294733a.js"],"/authentication":["static/chunks/pages/authentication-9129e1ae1793716e.js"],"/authentication/[function]":["static/chunks/pages/authentication/[function]-8e55fe262ad5a5d3.js"],"/cart":[s,n,u,"static/chunks/pages/cart-935df92266f2901b.js"],"/cart/[ref]":[s,n,u,"static/chunks/pages/cart/[ref]-420645cc84af8bb4.js"],"/checkout":[s,f,n,h,"static/chunks/pages/checkout-718fb94f4272ac84.js"],"/configure":[a,"static/chunks/pages/configure-29bca2f5eeecabb8.js"],"/dashboard":["static/chunks/pages/dashboard-a4980bcbd3d7d6df.js"],"/home":[r,"static/chunks/pages/home-e057035b5146a96a.js"],"/home/[vid]":[r,"static/chunks/pages/home/[vid]-51f2a2188c239ac9.js"],"/index/Index":[t,s,c,a,e,"static/chunks/pages/index/index/Index-bc8426a3ff56d6fd.js"],"/index/[cid]":[t,s,c,a,e,"static/chunks/pages/index/[cid]-94e544e83e8b6eea.js"],"/product":[s,o,"static/chunks/pages/product-db2dc99ce5ebcd23.js"],"/product/[id]":[s,o,"static/chunks/pages/product/[id]-7f53c4213b8ba328.js"],"/profile":["static/chunks/e78312c5-1eed859129881d04.js","static/chunks/ad7f724d-3adf69e682510a82.js",f,"static/chunks/5196-7ada57369e1c8293.js",i,h,"static/chunks/pages/profile-a2edc15c4fe6c656.js"],"/services/Index":[t,s,c,a,e,"static/chunks/pages/services/Index-11f921f72e81a895.js"],"/services/[cid]":[t,s,c,a,e,"static/chunks/pages/services/[cid]-fe36a8067e6f56b0.js"],"/social":[b,"static/chunks/pages/social-77f0f569d153c33b.js"],"/social/[platform]":[b,"static/chunks/pages/social/[platform]-9f496548b4ada2d9.js"],"/transaction":["static/chunks/pages/transaction-a93b6b6341b34261.js"],"/transaction/[slug]":["static/chunks/pages/transaction/[slug]-681e7f3b15c10609.js"],"/verify":[k,"static/chunks/pages/verify-d7750e953f3a610d.js"],"/verify/[slug]":[k,"static/chunks/pages/verify/[slug]-06a920212cd071b0.js"],sortedPages:["/","/404","/404/[loc]","/_app","/_error","/about","/admin","/admin/[slug]","/authentication","/authentication/[function]","/cart","/cart/[ref]","/checkout","/configure","/dashboard","/home","/home/[vid]","/index/Index","/index/[cid]","/product","/product/[id]","/profile","/services/Index","/services/[cid]","/social","/social/[platform]","/transaction","/transaction/[slug]","/verify","/verify/[slug]"]}}("static/chunks/5675-de16dd0b612e5551.js","static/chunks/4592-8576200bd4e43f9f.js","static/chunks/6005-f3f5c37c210c1cc8.js","static/chunks/2c796e83-743991c01d64d028.js","static/chunks/1-fd9f7e546315f172.js","static/chunks/1695-bf4825776d483384.js","static/chunks/559-345fcf129feb2a68.js","static/chunks/3451-4e51387883250e69.js","static/chunks/7681-ea571f9f406c5674.js","static/chunks/3796-67971c56f50259b1.js","static/chunks/7268-197695e435301802.js","static/chunks/5461-150efafcbb3ce697.js","static/chunks/829-adb4bf8b439a2252.js","static/chunks/6378-6832ddf77049c5c9.js","static/chunks/5749-70fda8a143abd7a7.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/DkuvJO9M6TmsUuZe3Tm_D/_ssgManifest.js b/_next/static/52jQpQ0eGqGH3aJ4hQm7f/_ssgManifest.js similarity index 100% rename from _next/static/DkuvJO9M6TmsUuZe3Tm_D/_ssgManifest.js rename to _next/static/52jQpQ0eGqGH3aJ4hQm7f/_ssgManifest.js diff --git a/_next/static/DkuvJO9M6TmsUuZe3Tm_D/_buildManifest.js b/_next/static/DkuvJO9M6TmsUuZe3Tm_D/_buildManifest.js deleted file mode 100644 index ae799691d..000000000 --- a/_next/static/DkuvJO9M6TmsUuZe3Tm_D/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,c,a,t,e,i,d,n,u,f,b,h,r,o,k,j,p){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[t,e,s,i,c,a,d,"static/chunks/pages/index-632b680a8502e442.js"],"/404":["static/chunks/pages/404-27fec8384109d50e.js"],"/404/[loc]":["static/chunks/pages/404/[loc]-e5436ba7b2ea1de0.js"],"/_error":["static/chunks/pages/_error-f74d5d6d34ed88d1.js"],"/about":["static/chunks/4623-12f62ed444c5891a.js","static/chunks/pages/about-eddf656cd0e48889.js"],"/admin":[s,c,n,f,"static/chunks/pages/admin-ca65dc7e884d4a6c.js"],"/admin/[slug]":[s,c,n,f,"static/chunks/pages/admin/[slug]-3bbf0dfc81d309fd.js"],"/authentication":["static/chunks/pages/authentication-9129e1ae1793716e.js"],"/authentication/[function]":["static/chunks/pages/authentication/[function]-8e55fe262ad5a5d3.js"],"/cart":[s,u,b,"static/chunks/pages/cart-935df92266f2901b.js"],"/cart/[ref]":[s,u,b,"static/chunks/pages/cart/[ref]-420645cc84af8bb4.js"],"/checkout":[s,h,u,r,"static/chunks/pages/checkout-1868327e32d52780.js"],"/configure":[a,"static/chunks/pages/configure-29bca2f5eeecabb8.js"],"/dashboard":["static/chunks/pages/dashboard-985bb274ab8022c4.js"],"/home":[o,"static/chunks/pages/home-e057035b5146a96a.js"],"/home/[vid]":[o,"static/chunks/pages/home/[vid]-51f2a2188c239ac9.js"],"/index/Index":[t,e,s,i,c,a,d,"static/chunks/pages/index/index/Index-a829b70a7009d473.js"],"/index/[cid]":[t,e,s,i,c,a,d,"static/chunks/pages/index/[cid]-ef4d679f498ddd5b.js"],"/product":[s,k,"static/chunks/pages/product-db2dc99ce5ebcd23.js"],"/product/[id]":[s,k,"static/chunks/pages/product/[id]-7f53c4213b8ba328.js"],"/profile":["static/chunks/e78312c5-1eed859129881d04.js","static/chunks/ad7f724d-3adf69e682510a82.js",h,"static/chunks/5196-7ada57369e1c8293.js",n,r,"static/chunks/pages/profile-f54362b59e2845cb.js"],"/services/Index":[t,e,s,i,c,a,d,"static/chunks/pages/services/Index-70da262f161b9900.js"],"/services/[cid]":[t,e,s,i,c,a,d,"static/chunks/pages/services/[cid]-9859ce522c39478e.js"],"/social":[j,"static/chunks/pages/social-77f0f569d153c33b.js"],"/social/[platform]":[j,"static/chunks/pages/social/[platform]-9f496548b4ada2d9.js"],"/transaction":["static/chunks/pages/transaction-a93b6b6341b34261.js"],"/transaction/[slug]":["static/chunks/pages/transaction/[slug]-681e7f3b15c10609.js"],"/verify":[p,"static/chunks/pages/verify-d7750e953f3a610d.js"],"/verify/[slug]":[p,"static/chunks/pages/verify/[slug]-06a920212cd071b0.js"],sortedPages:["/","/404","/404/[loc]","/_app","/_error","/about","/admin","/admin/[slug]","/authentication","/authentication/[function]","/cart","/cart/[ref]","/checkout","/configure","/dashboard","/home","/home/[vid]","/index/Index","/index/[cid]","/product","/product/[id]","/profile","/services/Index","/services/[cid]","/social","/social/[platform]","/transaction","/transaction/[slug]","/verify","/verify/[slug]"]}}("static/chunks/5675-de16dd0b612e5551.js","static/chunks/4592-953def3ce62165d1.js","static/chunks/6005-48b138da0c850465.js","static/chunks/2c796e83-743991c01d64d028.js","static/chunks/fb7d5399-8eb48fe09d96f37b.js","static/chunks/8884-6266db2343c80d86.js","static/chunks/3923-be74c9f40308ae70.js","static/chunks/1695-10e929d2e8ccdd95.js","static/chunks/559-124796472d123291.js","static/chunks/2332-1450c1fdaaf2ac1d.js","static/chunks/7681-79300968858d0103.js","static/chunks/3796-67971c56f50259b1.js","static/chunks/7268-6e831f80c25a7b5d.js","static/chunks/5461-7c526cc658c39fed.js","static/chunks/829-e6e5a383061a61a5.js","static/chunks/6378-4e5e41532a5c5b6c.js","static/chunks/5749-70fda8a143abd7a7.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/chunks/1-fd9f7e546315f172.js b/_next/static/chunks/1-fd9f7e546315f172.js new file mode 100644 index 000000000..0eae76c5f --- /dev/null +++ b/_next/static/chunks/1-fd9f7e546315f172.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1],{62705:function(e,t,n){var i=n(55639).Symbol;e.exports=i},44239:function(e,t,n){var i=n(62705),r=n(89607),a=n(2333),s=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?r(e):a(e)}},27561:function(e,t,n){var i=n(67990),r=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(r,""):e}},31957:function(e,t,n){var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},89607:function(e,t,n){var i=n(62705),r=Object.prototype,a=r.hasOwnProperty,s=r.toString,o=i?i.toStringTag:void 0;e.exports=function(e){var t=a.call(e,o),n=e[o];try{e[o]=void 0;var i=!0}catch(e){}var r=s.call(e);return i&&(t?e[o]=n:delete e[o]),r}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var i=n(31957),r="object"==typeof self&&self&&self.Object===Object&&self,a=i||r||Function("return this")();e.exports=a},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},80954:function(e,t,n){var i=n(13218),r=n(7771),a=n(14841),s=Math.max,o=Math.min;e.exports=function(e,t,n){var c,l,d,u,x,f,m=0,h=!1,p=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(t){var n=c,i=l;return c=l=void 0,m=t,u=e.apply(i,n)}function b(e){var n=e-f,i=e-m;return void 0===f||n>=t||n<0||p&&i>=d}function j(){var e,n,i,a=r();if(b(a))return w(a);x=setTimeout(j,(e=a-f,n=a-m,i=t-e,p?o(i,d-n):i))}function w(e){return(x=void 0,v&&c)?g(e):(c=l=void 0,u)}function y(){var e,n=r(),i=b(n);if(c=arguments,l=this,f=n,i){if(void 0===x)return m=e=f,x=setTimeout(j,t),h?g(e):u;if(p)return clearTimeout(x),x=setTimeout(j,t),g(f)}return void 0===x&&(x=setTimeout(j,t)),u}return t=a(t)||0,i(n)&&(h=!!n.leading,d=(p="maxWait"in n)?s(a(n.maxWait)||0,t):d,v="trailing"in n?!!n.trailing:v),y.cancel=function(){void 0!==x&&clearTimeout(x),m=0,c=f=l=x=void 0},y.flush=function(){return void 0===x?u:w(r())},y}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var i=n(44239),r=n(37005);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==i(e)}},7771:function(e,t,n){var i=n(55639);e.exports=function(){return i.Date.now()}},14841:function(e,t,n){var i=n(27561),r=n(13218),a=n(33448),s=0/0,o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return s;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=c.test(e);return n||l.test(e)?d(e.slice(2),n?2:8):o.test(e)?s:+e}},1:function(e,t,n){"use strict";n.d(t,{Z:function(){return ew}});var i=n(21378),r=n.n(i),a=[".d-flex.jsx-1627455299,.index.jsx-1627455299 .index__full--title.jsx-1627455299,.index.jsx-1627455299 .index__full-ol.jsx-1627455299>div.jsx-1627455299,.index.jsx-1627455299 .index__full-ol.jsx-1627455299,.d-flex-column.jsx-1627455299,.index.jsx-1627455299{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".d-pad.jsx-1627455299{padding:var(--s-4);width:calc(100% - var(--s-4) * 2);}",".index__clouds.jsx-1627455299{height:100vh;width:100vw;}",".d-flex-column.jsx-1627455299,.index.jsx-1627455299{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".index.jsx-1627455299{width:100%;color:var(--gray-20);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding:0;gap:var(--s-9);position:relative;height:100%;}","@media (max-width:1260px){.index.jsx-1627455299{width:calc(100% - var(--s-9) * 2);margin:auto;height:100% !important;}}",".index--title.jsx-1627455299{width:100%;text-align:center;padding:var(--s-element) 0 0;text-transform:capitalize;font-size:var(--s-1);color:var(--gray-10);}",".index.jsx-1627455299 .index__full-max.jsx-1627455299{width:100%;z-index:1;aspect-ratio:1;}",".index.jsx-1627455299 .index__full.jsx-1627455299{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--s-4);margin:var(--s-4) 0 0;}",".index.jsx-1627455299 .index__full--max.jsx-1627455299{height:80vw;z-index:1;width:100%;}",".index.jsx-1627455299 .index__full.no-wrap.jsx-1627455299{-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;}","@media (max-width:900px){.index.jsx-1627455299 .index__full.no-wrap.jsx-1627455299{-webkit-flex-wrap:wrap-reverse;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse;}}",".index.jsx-1627455299 .index__full-ol.jsx-1627455299{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;margin-top:0;line-height:1.5;padding:var(--s-4) 0 var(--s-element);}",".index.jsx-1627455299 .index__full-ol.jsx-1627455299 h2.jsx-1627455299{color:var(--primary-50);}",".index.jsx-1627455299 .index__full-ol.jsx-1627455299>div.jsx-1627455299{font-family:Game;color:var(--gray-20);padding:0 var(--s-9);font-size:var(--s-5);--ui-icon-size:var(--s-5);--ui-icon-color:var(--gray-40);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;gap:var(--s-9);position:relative;}",".index.jsx-1627455299 .index__full-li.jsx-1627455299{width:100%;}",".index.jsx-1627455299 .index__full-li--title.jsx-1627455299{font-size:var(--s-5);}",".index.jsx-1627455299 .index__full-li--body.jsx-1627455299{padding:var(--s-4);font-size:var(--s-7);}",".index.jsx-1627455299 .index__full--title.jsx-1627455299{width:100%;text-transform:capitalize;color:var(--primary-50);--ui-icon-color:var(--primary-50);gap:var(--s-9);font-size:var(--s-1);white-space:normal;font-family:Play;line-height:1;margin:var(--s-element) 0 var(--s-4);--ui-icon-size:var(--s-1);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}",".index.jsx-1627455299 .index__full--title.main.jsx-1627455299{font-size:45px;--ui-icon-size:45px;}",".index.jsx-1627455299 .index__full--title-deepturn.jsx-1627455299{font-size:40px;--ui-icon-size:50px;color:var(--gray-20);--ui-icon-color:var(--gray-20);text-transform:uppercase;-webkit-filter:drop-shadow(4px 5px 3px var(--gray-60));filter:drop-shadow(4px 5px 3px var(--gray-60));}",".index.jsx-1627455299 .index__full-padding.jsx-1627455299{position:relative;border-radius:var(--border-radius);white-space:nowrap;outline:solid 1px var(--gray-90);background-color:var(--gray-90);padding:var(--s-9) var(--s-4);width:calc(var(--s-4-width) - var(--s-4) * 2);margin:0;}",".index.jsx-1627455299 .index__full-padding--title.jsx-1627455299{width:var(--s-4-width);padding:var(--s-9) var(--s-1);}",".index.jsx-1627455299 .index__sub-title.jsx-1627455299{width:100%;text-transform:capitalize;font-size:var(--s-4);color:var(--gray-50);}",".index__half.jsx-1627455299{display:block;width:50%;}",".index__sub-title.jsx-1627455299{color:var(--gray-30);font-size:var(--s-4);}"];a.__hash="1627455299";var s=n(67294),o=[".d-flex.jsx-2117224071,.map-container.jsx-2117224071,.deepturn.jsx-2117224071{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".component--map.jsx-2117224071,.component--terrain.jsx-2117224071{left:0;top:0;position:fixed;width:100vw;height:100vh;z-index:1;}",".component--map.jsx-2117224071{width:100%;height:100%;}",".deepturn.jsx-2117224071{background:#f30;background:radial-gradient(circle,var(--gray-90) 34%,var(--black) 100%);width:100%;position:fixed;height:100%;top:0;left:0;right:0;bottom:0;}","@media (max-width:1100px){.deepturn.jsx-2117224071{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}",".deepturn__components.jsx-2117224071{position:relative;z-index:1;}",".map-container.jsx-2117224071{width:100%;height:100%;-webkit-flex:3;-ms-flex:3;flex:3;}"];o.__hash="2117224071";var c=n(11163),l=n(50029),d=n(64687),u=n.n(d),x=function(){var e=(0,s.useState)(null),t=e[0],n=e[1];return(0,s.useEffect)(function(){var e;(e=(0,l.Z)(u().mark(function e(){var t,i,r,a,s,o,c,l,d,x,f,m,h,p,v;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={userAgent:navigator.userAgent,platform:navigator.platform,language:navigator.language,languages:navigator.languages,cookieEnabled:navigator.cookieEnabled},navigator.userAgentData&&(r=(i=navigator.userAgentData).brands,a=i.mobile,t.brands=r,t.mobile=a),s="",e.prev=3,e.next=6,fetch("https://api.ipify.org?format=json");case 6:return o=e.sent,e.next=9,o.json();case 9:s=e.sent.ip,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),console.error("Error fetching public IP (WAN):",e.t0);case 16:c="Not connected to Wi-Fi, Ethernet, or cellular network";try{(d=navigator.connection||navigator.mozConnection||navigator.webkitConnection)&&(x=d.type,f=d.downlink,m=d.effectiveType,h=d.rtt,p=d.saveData,l={type:x,downlink:f,effectiveType:m,rtt:h,saveData:p},"cellular"===x&&(l.carrier="Carrier info not available"),("wifi"===x||"ethernet"===x)&&(c="Connected to Wi-Fi or Ethernet"))}catch(e){console.error("Error determining connection type:",e),c="Failed to determine connection type"}v={memory:navigator.deviceMemory||"N/A",hardwareConcurrency:navigator.hardwareConcurrency||"N/A",screen:{width:window.screen.width,height:window.screen.height,colorDepth:window.screen.colorDepth},window:{innerWidth:window.innerWidth,innerHeight:window.innerHeight}},n({navigator:t,wan:s,lan:c,connection:l,device:v});case 20:case"end":return e.stop()}},e,null,[[3,13]])})),function(){return e.apply(this,arguments)})()},[]),t},f=n(85893),m=function(){var e=(0,s.useState)(),t=e[0],n=e[1],i=(0,c.useRouter)().pathname,a=x();return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(r(),{id:o.__hash,children:o}),(0,f.jsx)("div",{className:"jsx-".concat(o.__hash)+" deepturn",children:(0,f.jsx)("div",{onDoubleClick:function(){return t&&n(!1)},className:"jsx-".concat(o.__hash)+" map-container",children:"/"==i&&(0,f.jsx)(f.Fragment,{children:(0,f.jsx)("div",{className:"jsx-".concat(o.__hash)+" deepturn__components",children:(0,f.jsx)("div",{className:"jsx-".concat(o.__hash)+" component--map",children:JSON.stringify(a)})})})})})]})},h=["h2.jsx-221491941{color:var(--primary-50);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;white-space:nowrap;font-size:var(--s-1);}","h3.jsx-221491941{background-color:var(--primary-o);border-radius:var(--border-radius);margin:var(--s-element) 0 var(--s-9);padding:var(--s-9) var(--s-4);color:var(--primary-10);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}","h4.jsx-221491941{line-height:1.2;--ui-icon-height:var(--s-6);color:var(--gray-30);--ui-icon-color:var(--gray-40);width:auto;}",".d-flex.jsx-221491941,.nirvana-index__content.jsx-221491941 .list.jsx-221491941,.nirvana-index__content.jsx-221491941,.nirvana-index.jsx-221491941,h3.jsx-221491941{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".survey.jsx-221491941{width:100%;position:relative;}",".nirvana-index.jsx-221491941{gap:var(--s-1);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding-bottom:100px;width:100%;margin:var(--s-element) 0;}","@media (max-width:1260px){.nirvana-index.jsx-221491941{padding:var(--s-4);width:var(--s-4-width);}}","@media (max-width:900px){.nirvana-index.jsx-221491941{width:var(--s-9-width);padding:var(--s-9);}}",".nirvana-index__content.jsx-221491941{gap:var(--s-1);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}",".nirvana-index__content.jsx-221491941 .list.jsx-221491941{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);}"];h.__hash="221491941";var p=n(85854),v=[".d-flex.jsx-3933882060,.home-grid-item__icon.jsx-3933882060,.home-grid-item__header.jsx-3933882060,.home-grid-item.jsx-3933882060{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".home-grid-item.jsx-3933882060{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;border-radius:var(--border-radius);gap:var(--s-4);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background-color:var(--gray-90);overflow:hidden;padding:var(--s-element) var(--s-4);}",".home-grid-item__header.jsx-3933882060{width:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);}",".home-grid-item__title.jsx-3933882060{height:100%;color:var(--primary-50);font-size:var(--s-3);text-transform:capitalize;}",".home-grid-item__body.jsx-3933882060{color:var(--gray-50);}",".home-grid-item__icon.jsx-3933882060{height:90px;--ui-icon-width:90px;--ui-icon-height:90px;--ui-icon-color:var(--primary-o);}",".home-grid-item__center.jsx-3933882060{text-align:center;font-size:var(--s-5);line-height:1.5;}"];v.__hash="3933882060";var g=n(6253),b=function(e){var t=e.icon,n=e.title,i=e.children;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(r(),{id:v.__hash,children:v}),(0,f.jsxs)("div",{className:"jsx-".concat(v.__hash)+" home-grid-item",children:[(0,f.jsxs)("div",{className:"jsx-".concat(v.__hash)+" home-grid-item__header",children:[t&&(0,f.jsx)("div",{className:"jsx-".concat(v.__hash)+" home-grid-item__icon",children:(0,f.jsx)(g.a,{icon:t})}),(0,f.jsx)("div",{className:"jsx-".concat(v.__hash)+" home-grid-item__title",children:n})]}),(0,f.jsx)("div",{className:"jsx-".concat(v.__hash)+" home-grid-item__body home-grid-item__center",children:i})]})]})},j=n(6005),w=n(89360),y=n(11907),k=function(){var e=".nirv{\n display: flex;\n color: var(--blue-10);\n --ui-icon-color: var(--blue-10);\n gap: var(--s-9);\n font-size: var(--s-5);\n }";return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(r(),{id:e.__hash,children:e}),(0,f.jsxs)("div",{className:"jsx-".concat(e.__hash)+" nirv",children:[(0,f.jsx)(g.a,{icon:"nirvana-energy-logo"}),"Nirvana Energy"]})]})},_=function(){var e=function(e){var t=String(1e3*e/240).split("."),n=Number(String(t[1])[0])>5?Number(t[0])+2:t[0];return"".concat(e," kW = ").concat(n," Amps")},t=[{manufacturer:"Tesla",capacity:"13 kW",output:e(5.5)},{manufacturer:"LG",capacity:"15 kW",output:e(6.4)},{manufacturer:"Enphase",capacity:"12 kW",output:e(5)},{manufacturer:"Generack",capacity:"15.5 kW",output:e(4.5)},{manufacturer:"GrowWatt",capacity:"10 kW",output:e(6)},{manufacturer:(0,f.jsx)(k,{}),capacity:"15 kW",output:e(12)}];return(0,y.aF)(),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(r(),{id:h.__hash,children:h}),(0,f.jsxs)("div",{id:"nirvana-index",className:"jsx-".concat(h.__hash)+" nirvana-index",children:[(0,f.jsx)(j.default,{id:"configure",startButton:"configure your back up system"}),(0,f.jsxs)("div",{className:"jsx-".concat(h.__hash)+" nirvana-index__content",children:[(0,f.jsxs)("div",{className:"jsx-".concat(h.__hash)+" list",children:[(0,f.jsx)("h3",{className:"jsx-".concat(h.__hash),children:"6 Key Questions to Enhance Your Solar System with Batteries"}),(0,f.jsxs)("h4",{className:"jsx-".concat(h.__hash),children:[(0,f.jsx)(g.a,{icon:"fa-cube"}),"Can I add batteries to my exisiting solar system?"]}),(0,f.jsxs)("h4",{className:"jsx-".concat(h.__hash),children:[(0,f.jsx)(g.a,{icon:"fa-cube"}),"What determines that the battery will back up what I need?"]}),(0,f.jsxs)("h4",{className:"jsx-".concat(h.__hash),children:[(0,f.jsx)(g.a,{icon:"fa-cube"}),"Will this battery keep me backed up if the grid stays down?"]}),(0,f.jsxs)("h4",{className:"jsx-".concat(h.__hash),children:[(0,f.jsx)(g.a,{icon:"fa-cube"}),"What does this battery setup have that others dont?"]}),(0,f.jsxs)("h4",{className:"jsx-".concat(h.__hash),children:[(0,f.jsx)(g.a,{icon:"fa-cube"}),"Is there a limit to how much the batteries can power in my home at the same time?"]}),(0,f.jsxs)("h4",{className:"jsx-".concat(h.__hash),children:[(0,f.jsx)(g.a,{icon:"fa-cube"}),"Can I change what I want backed up in the future"]})]}),(0,f.jsx)("h2",{className:"jsx-".concat(h.__hash),children:"Time to Create your Nirvana!"}),(0,f.jsx)("h4",{className:"jsx-".concat(h.__hash),children:"On and Off-grid battery back up If you're thinking about going off grid or want to learn more about backup battery systems, it's time to create your"}),(0,f.jsx)("h2",{className:"jsx-".concat(h.__hash),children:"The Importance of Backup Batteries"}),(0,f.jsxs)(p.Z,{sm:1,md:3,margin:"0 0 45px",gap:15,children:[(0,f.jsx)(b,{icon:"fal-cloud-bolt-sun",title:"power outages",children:"With backup batteries, you can be sure your home will have power even during outages. Most batteries will only back up what is stored when the grid goes down. Be sure to get our system that refills the battery if the grid stays down."}),(0,f.jsx)(b,{icon:"fa-globe",title:"environmental concerns",children:"Using solar battery backup systems helps reduce your carbon footprint. The less you rely on the grid, the more you do for our planet."}),(0,f.jsx)(b,{icon:"fal-circle-dollar",title:"cost savings",children:"Solar battery backup systems can help you save money on electricity bills in the long run. The 30% Federal Tax credit applies to battery storage that is connected to a PV"})]}),(0,f.jsx)("h3",{className:"jsx-".concat(h.__hash),children:"On-grid vs Off-grid Solar Battery Backup Systems"}),(0,f.jsxs)(p.Z,{sm:1,md:2,margin:"0 0",gapX:10,children:[(0,f.jsx)(b,{title:"on-grid",children:"On-grid systems are connected to the utility grid and can sell excess energy back to the power company or store excess energy depending on how the system is"}),(0,f.jsx)(b,{title:"environmental concerns",children:"Off-grid systems are not connected to the utility grid. These systems can be tailored to fit your needs no matter how big or small and using several different power sources."})]}),(0,f.jsx)("br",{className:"jsx-".concat(h.__hash)}),(0,f.jsx)("br",{className:"jsx-".concat(h.__hash)}),(0,f.jsx)("br",{className:"jsx-".concat(h.__hash)}),(0,f.jsx)(w.Z,{options:{hide:"footer",tableTitle:"Discover Better Performance, Compared to Leading Brands."},data:t})]})]})]})},O=n(23992),N=n(51633),L=[".d-flex.jsx-409688364{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}"];L.__hash="409688364";var S=n(59499),E=n(16835),D=n(6158),z=n.n(D),P=[".d-flex.jsx-61180471,.map-tools.jsx-61180471,.map-content.jsx-61180471,.map-container.jsx-61180471{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}","@-webkit-keyframes fadein-jsx-61180471{0%{opacity:0;-webkit-filter:blur(2px);filter:blur(2px);}100%{opacity:1;-webkit-filter:blur(0);filter:blur(0);}}","@keyframes fadein-jsx-61180471{0%{opacity:0;-webkit-filter:blur(2px);filter:blur(2px);}100%{opacity:1;-webkit-filter:blur(0);filter:blur(0);}}",".map-container.jsx-61180471{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom:0;z-index:1;}","@media (max-width:1100px){.map-container.jsx-61180471{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}",".map.jsx-61180471{height:100%;}","@media (max-width:1100px){.map.jsx-61180471{position:relative;}}",".map-content.jsx-61180471{width:100%;height:100%;position:relative;}","@media (max-width:1100px){.map-content.jsx-61180471{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}",".map__vessel-details.jsx-61180471{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:-webkit-max-content;width:-moz-max-content;width:max-content;height:-webkit-max-content;height:-moz-max-content;height:max-content;}",".map-tools.jsx-61180471{gap:var(--s-9);cursor:pointer;color:var(--white);--ui-icon-color:var(--white);position:absolute;bottom:var(--s-element);left:var(--s-9);right:var(--s-9);bottom:0;padding:var(--s-1);--ui-icon-color:var(--gray-30);-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation:fadein-jsx-61180471 1s ease-in forwards;animation:fadein-jsx-61180471 1s ease-in forwards;-webkit-transition:all 1s ease-in-out;transition:all 1s ease-in-out;height:-webkit-max-content;height:-moz-max-content;height:max-content;}"];P.__hash="61180471";var C=n(42700),M=n(31831),T=n(10394),A=n(36946),Z=function(){var e=(0,A.dd)(),t=e.openModal,n=e.closeModal,i=e.isModalOpen,r=(0,s.useState)(),a=r[0],o=r[1],c=(0,s.useState)(!1),l=c[0],d=c[1],u=(0,s.useRef)(null),x=(0,s.useCallback)(function(e){o([Number(e.coords.longitude.toFixed(2)),Number(e.coords.latitude.toFixed(2))])},[]),f=(0,s.useCallback)(function(){console.error("Unable to retrieve your location"),d(!0)},[]),m=(0,s.useCallback)(function(){var e=u.current;e&&"granted"===e.state?(n(),navigator.geolocation.getCurrentPosition(x,f)):d(!0)},[n,f,x]),h=(0,s.useCallback)(function(){navigator.permissions?navigator.permissions.query({name:"geolocation"}).then(function(e){u.current=e,e.addEventListener("change",m),"granted"===e.state?navigator.geolocation.getCurrentPosition(x,f):"prompt"!==e.state||i?d(!0):i||t({title:"Know Your Location",confirm:{title:"Enable Location",body:"To use this feature, please enable location access.",statements:[{label:"Allow",onClick:function(){var e;null===(e=u.current)||void 0===e||e.addEventListener("change",m),navigator.geolocation.getCurrentPosition(x,f)}},{label:"Deny",onClick:function(){n(),d(!0)}}]}})}).catch(function(e){console.error("Error querying permissions",e),d(!0)}):(console.error("Permission API not supported"),d(!0))},[m,f,x,i]);return(0,s.useEffect)(function(){return function(){var e=u.current;e&&e.removeEventListener("change",m)}},[m]),{lngLat:a,requestLocation:h,permissionDenied:l}},R=n(53618);function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function F(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.require,n=(0,T.ko)("IMemberService"),i=(0,A.dd)(),r=i.isModalOpen,a=i.openModal,o=i.closeModal,d=(0,s.useState)("sign-in"),x=d[0],m=d[1],h=(0,s.useState)(),p=h[0],v=h[1],g=(0,c.useRouter)().query,b=Z(),j=b.lngLat,w=b.requestLocation,y=b.permissionDenied,k=(0,s.useState)(),_=k[0],O=k[1],N=(0,s.useState)(function(){var e=n.getCurrentUser();return e?F(F({},e),{},{userAgent:{user_agent:"",user_agent_data:null,wan:""},lngLat:j}):void 0}),L=N[0],S=N[1];(0,s.useEffect)(function(){var e,t=(e=(0,l.Z)(u().mark(function e(){var t,n,i,r,a;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.navigator.userAgent,i="userAgentData"in(n=navigator)?n.userAgentData:null,S(function(e){return F(F({},e),{},{userAgent:{user_agent:t,user_agent_data:i}})}),e.prev=4,e.next=7,fetch("https://ipapi.co/json/");case 7:if(!(r=e.sent).ok){e.next=16;break}return e.next=11,r.json();case 11:a=e.sent.ip,S(function(e){return F(F({},e),{},{userAgent:F(F({},e.userAgent),{},{wan:a})})}),e.next=17;break;case 16:console.error("Failed to fetch IP address information.");case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(4),console.error("Error fetching IP address information:",e.t0);case 22:case"end":return e.stop()}},e,null,[[4,19]])})),function(){return e.apply(this,arguments)});return t(),window.addEventListener("load",t),function(){window.removeEventListener("load",t)}},[]);var E=function(e){r||(m(e),a({title:"sign in ",children:(0,f.jsx)(R.default,{view:e,onClose:o,onViewChange:m,onSignup:D})}))},D=function(e){var t=null==e?void 0:e.status;if(!t){alert("dev, handle this! 212");return}switch(t){case"created":case"existing":null==e||e.email}m("sign-in"),v(e.email)};(0,s.useEffect)(function(){g&&g.verify&&"verify"!==x&&m("verify"),void 0===p||r||"sign-in"===x||m("sign-in")},[g,r,p,x]),(0,s.useEffect)(function(){j&&S(function(e){return F(F({},e),{},{lngLat:j})})},[j]),(0,s.useEffect)(function(){L&&!L.userAgent.user_agent&&S(function(e){return F(F({},e),{},{userAgent:{user_agent:window.navigator.userAgent,user_agent_data:navigator.userAgentData||null}})})},[L]);var z=function(){!t||"location"===t&&null!=L&&L.id&&"user"===_&&r||(_&&"location"===t&&"done"===_||O("user"),E("sign-in"))},P=function(){"user"!==_||"sign-in"!==x||r?(L||"location"===t)&&O("location"):O("location")};return(0,s.useEffect)(function(){t&&(null!=L&&L.id||void 0!==_||z(),"location"!==_&&P(),"location"!==_||null!=L&&L.lngLat||r||y||w(),y&&(O("done"),S(function(e){return F(F({},e),{},{lngLat:[0,0]})})))},[r,y,_]),L},W=n(27812),I=function(e,t){var n=t.lngLat,i=void 0===n?[0,0]:n,r=t.zoom,a=t.offset,s=void 0===a?{x:0,y:0}:a,o=t.direction;if(e){var c=(0,W.Z)(i);if(o){var l=e.getCanvas();l.width,l.height;var d=0,u=0;switch(o){case"up":u=-s.y;break;case"down":u=s.y;break;case"left":d=-s.x;break;case"right":d=s.x}var x=e.project(i);x.x+=d,x.y+=u,c=e.unproject(x).toArray()}e.flyTo({center:c,zoom:void 0===r?9:r,essential:!0})}},q=[".d-flex.jsx-1985165931,.vessel-details.jsx-1985165931,.vessel-details--container.jsx-1985165931{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".d-flex-content.jsx-1985165931,.vessel-details--images.jsx-1985165931,.vessel-details-content.jsx-1985165931{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-9);}","@-webkit-keyframes flicker-jsx-1985165931{0%{background-color:#ffc40c;}50%{background-color:#b3b3b3;box-shadow:-2px -1px 7px #b3b3b3,2px 1px 6px #b3b3b3;}100%{background-color:#ffc40c;}}","@keyframes flicker-jsx-1985165931{0%{background-color:#ffc40c;}50%{background-color:#b3b3b3;box-shadow:-2px -1px 7px #b3b3b3,2px 1px 6px #b3b3b3;}100%{background-color:#ffc40c;}}","@-webkit-keyframes bigSlide-jsx-1985165931{from{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);}to{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);}}","@keyframes bigSlide-jsx-1985165931{from{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);}to{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);}}","@-webkit-keyframes smallSlide-jsx-1985165931{from{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);}to{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}}","@keyframes smallSlide-jsx-1985165931{from{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);}to{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}}",".vessel-details--container.jsx-1985165931{z-index:1006;position:fixed;right:0;height:100vh;}","@media (max-width:1100px){.vessel-details--container.jsx-1985165931{height:unset;width:calc(100% - 20px);right:auto;min-width:110px;bottom:var(--s-5);}}",".vessel-details--container.show.jsx-1985165931{opacity:1;visibility:visible;-webkit-animation:bigSlide-jsx-1985165931 0.5s forwards ease-out;animation:bigSlide-jsx-1985165931 0.5s forwards ease-out;}","@media (max-width:1260px){.vessel-details--container.show.jsx-1985165931{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-animation:smallSlide-jsx-1985165931 0.5s forwards ease-out;animation:smallSlide-jsx-1985165931 0.5s forwards ease-out;}}",".vessel-details--container.hide.jsx-1985165931{opacity:0;visibility:hidden;-webkit-animation:bigSlide-jsx-1985165931 0.5s reverse ease-out;animation:bigSlide-jsx-1985165931 0.5s reverse ease-out;}","@media (max-width:1260px){.vessel-details--container.hide.jsx-1985165931{-webkit-animation:smallSlide-jsx-1985165931 0.5s reverse ease-out;animation:smallSlide-jsx-1985165931 0.5s reverse ease-out;}}",".vessel-details.jsx-1985165931{width:var(--s-9-width);height:var(--s-2-width);padding:var(--s-5) var(--s-9);position:relative;overflow:hidden;border-radius:var(--border-radius);overflow-y:auto;right:var(--s-9);background-color:var(--yellow-50);box-shadow:inset calc(var(--s-12) * -1) calc(var(--s-12) * -1) var(--s-11) var(--s-11) var(--red-50),inset 0 0 var(--s-11) var(--s-11) var(--blue-10);}","@media (max-width:1100px){.vessel-details.jsx-1985165931{border-radius:var(--border-radius);border:none;height:calc(100% + var(--s-8));width:var(--s-9-width);padding:0 var(--s-9) var(--s-9);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;left:auto;right:auto;top:calc(var(--s-8) * -1);min-width:110px;}}",".vessel-details-sliver.jsx-1985165931{border-radius:var(--s-5);margin:var(--s-10);cursor:-webkit-grab;cursor:-moz-grab;cursor:grab;height:300px;min-width:var(--s-10);position:absolute;left:0;}","@media (max-width:1100px){.vessel-details-sliver.jsx-1985165931{height:var(--s-9);min-width:300px;}}",".vessel-details-content.jsx-1985165931{gap:var(--s-4);height:100%;width:var(--s-6-width);}",".vessel-details-content.dragging.jsx-1985165931{-webkit-filter:brightness(0.66);filter:brightness(0.66);}","@media (max-height:1100px){.vessel-details-content.jsx-1985165931{height:unset;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}}","@media (max-width:1100px){.vessel-details-content.jsx-1985165931{padding:var(--s-9) 0 var(--s-1);}}",".vessel-details-content--header.jsx-1985165931{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;}",".vessel-details-content--body.jsx-1985165931{gap:var(--s-1);border-radius:var(--border-radius);width:var(--s-9-width);height:var(--s-9-width);padding:var(--s-9);}",".vessel-details-content--body-description.jsx-1985165931{font-family:Game;}",".vessel-details--images.jsx-1985165931{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;gap:var(--s-9);}",".vessel-details--image.jsx-1985165931{width:33%;height:auto;overflow:hidden;border-radius:var(--s-11);}","@media (max-width:100px){.vessel-details--image.jsx-1985165931{min-height:100px;}}",".vessel-details--image-main.jsx-1985165931{border-radius:var(--s-11);width:100%;}",".walkman-button.jsx-1985165931{background-color:#000000;border-radius:50%;width:40px;height:40px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#ffffff;font-size:1.5rem;box-shadow:0 4px #808080;cursor:pointer;}",".walkman-button.jsx-1985165931:hover{background-color:black;}",".walkman-button.jsx-1985165931:active{background-color:#1a1a1a;box-shadow:0 2px #808080;}"];q.__hash="1985165931";var U=n(85102);function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function B(e){for(var t=1;t=1100,x=(0,s.useState)(!1),m=x[0],h=x[1],p=(0,s.useState)(!1),v=p[0],g=p[1],b=u?{width:400,height:d}:{width:l-30,height:300},j=(0,s.useState)(b),w=j[0],y=j[1],k=(0,s.useRef)(null),_=null==k?void 0:k.current,O=(0,s.useRef)(null),N=(0,s.useRef)(null),L=(0,s.useRef)(0),S=(0,s.useCallback)(function(){var e;null!=k&&null!==(e=k.current)&&void 0!==e&&e.style&&(_.style=void 0),y(b),a(!1)},[a,b]);(0,s.useEffect)(function(){v&&S()},[v,S]);var D=(0,s.useCallback)(function(){h(!1);var e=u?w.width:w.height;_&&(null==o||o(e),u?_.style.width="".concat(e,"px"):_.style.height="".concat(e,"px"),e<200&&S())},[w,u,o,S]),z=(0,s.useCallback)(function(e){if(_.style&&(_.style=void 0),m&&_){if(u){var t=l-30-e.clientX;if(t>l/2)return;y(function(e){return B(B({},e),{},{width:t})}),_.style.width="".concat(t,"px"),null==o||o(t),t<200&&S();return}var n=d-e.clientY;!(n>d/2)&&(y(function(e){return B(B({},e),{},{height:n})}),_.style.height="".concat(n,"px"),null==o||o(n),n<200&&S())}},[m,u,l,d,o,S]);return((0,s.useEffect)(function(){return m?(window.addEventListener("mousemove",z),window.addEventListener("mouseup",D)):(window.removeEventListener("mousemove",z),window.removeEventListener("mouseup",D)),function(){window.removeEventListener("mousemove",z),window.removeEventListener("mouseup",D)}},[m,z,D]),i)?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(r(),{id:q.__hash,children:q}),(0,f.jsx)("div",{onTouchStart:function(e){O.current=e.touches[0].clientY,h(!0)},onTouchMove:function(e){if(null!==O.current){N.current=e.touches[0].clientY;var t=-1*Number(L.current)+_.offsetHeight/250?g(!0):_&&(_.style.transform="translateY(0)")),O.current=null,N.current=null,L.current=0},style:u?{width:w.width,height:d}:{width:0==l?400:void 0,height:w.height},className:"jsx-".concat(q.__hash)+" "+"vessel-details--container ".concat(i?"show":"hide"),children:(0,f.jsxs)("div",{ref:k,className:"jsx-".concat(q.__hash)+" vessel-details",children:[(0,f.jsx)("div",{onMouseDown:function(){return h(!0)},className:"jsx-".concat(q.__hash)+" "+"vessel-details-sliver ".concat(m?"dragging":"")}),(null==i?void 0:i.name)&&(0,f.jsxs)("div",{className:"jsx-".concat(q.__hash)+" "+"vessel-details-content ".concat(m?"dragging":""),children:[(0,f.jsx)("div",{className:"jsx-".concat(q.__hash)+" vessel-details-content--header",children:(0,f.jsx)(U.Z,B({},(t=i.name.split(" ",2),{title:(n=(0,E.Z)(t,2))[0],subTitle:n[1]})))}),(0,f.jsxs)("div",{className:"jsx-".concat(q.__hash)+" vessel-details-content--body",children:[(0,f.jsx)("div",{className:"jsx-".concat(q.__hash)+" vessel-details--images",children:i.images&&i.images.map(function(e,t){return(0,f.jsx)("img",{src:e,alt:"main",className:"jsx-".concat(q.__hash)+" "+"vessel-details--image".concat(0===t?"-main":"")},t)})}),i.description&&(0,f.jsx)("div",{className:"jsx-".concat(q.__hash)+" vessel-details-content--body-description",children:i.description})]})]})]})})]}):null},G=[".map-search.jsx-1543705443{min-width:300px;}"];G.__hash="1543705443";var J=n(98067),K=function(e){var t,n=e.handleSearch,i=e.searched,a=(0,s.useState)("where to?"),o=a[0],c=a[1],l=["New York","Los Angeles","Chicago","Houston","Phoenix"];return(0,s.useEffect)(function(){var e=function(){var e=0;return t=setInterval(function(){c(l[e]),e=(e+1)%l.length},5e3),function(){clearInterval(t)}};setTimeout(function(){e()},5e3)},[]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(r(),{id:G.__hash,children:G}),(0,f.jsx)("div",{className:"jsx-".concat(G.__hash)+" map-search",children:(0,f.jsx)(J.Z,{name:"address",variant:"transparent round",placeholder:o,value:i,onChange:n})})]})},$=function(e){e.lngLat;var t=e.setLngLat,n=e.map,i=(0,s.useState)(),r=i[0],a=i[1],o=function(e){var i=e.target.value,r=[null==i?void 0:i.lng,null==i?void 0:i.lat];r&&(a(i),t(r),I(n,{lngLat:r,zoom:14}))};return(0,s.useEffect)(function(){},[o]),{searched:r,handleSearch:o}},Q=n(20745),ee=n(25675),et=n.n(ee),en=function(e){var t=e.vessel,n=e.onClick,i=e.onMouseEnter,r=e.onMouseLeave,a=e.hideHover,s=void 0!==a&&a,o="vsl ".concat(null!=t&&t.className?t.className+"-mrkr":"");if(!t)return null;var c=function(e){var a=document.getElementById("vsl-".concat(t.id));a&&("click"===e?n&&n(t):"enter"===e?(s||null==a||a.classList.add("vsl-mrkr--hover"),i&&i(t)):"leave"===e&&setTimeout(function(){a.className="vsl-mrkr",r&&r(t)},2e3))},l=(null==t?void 0:t.className)=="user";return(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)("div",{onMouseEnter:function(){return c("enter")},onClick:function(){return c("click")},className:o,children:[(0,f.jsx)("div",{className:"vsl-icon",children:(0,f.jsx)(g.a,{glow:l,icon:l?"fal-circle-user":"fa-location-dot"})}),(0,f.jsx)("div",{id:"vsl-".concat(t.id),onMouseLeave:function(){return c("leave")},className:"vsl-mrkr",children:(0,f.jsxs)("div",{className:"vsl-mrkr--content",children:[(0,f.jsx)("div",{className:"vsl-mrkr--content-header",children:(0,f.jsx)("h4",{children:null==t?void 0:t.name})}),(null==t?void 0:t.images)&&(0,f.jsx)("div",{className:"vsl-mrkr--content-image",children:(0,f.jsx)(et(),{fill:!0,src:t.images[0],alt:""})})]})})]})})};function ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function er(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=i.rpm,a=void 0===r?500:r,s=i.zoom,o=void 0===s?3:s,c=i.maxZoom,l=void 0===c?5:c;function d(){if(!ec&&!el){var t=e.getZoom(),n=e.getCenter();if(to&&(i*=(l-t)/(l-o)),n.lng-=i,e.easeTo({center:n,duration:1500,easing:function(e){return e}})}}}e.on("moveend",d),d(),t=function(){ec=!0,ed=Date.now()},n=eo()(function(){ec=!1,eu=1+(Date.now()-(ed||Date.now()))/5e3,d()},3e3),e.on("mousedown",t),e.on("mouseup",n),e.on("touchstart",t),e.on("touchend",n),e.on("mousemove",n),e.on("touchmove",n),e.on("userhoverstart",function(){el=!0}),e.on("userhoverend",function(){el=!1,d()}),e.getLayer(ex)?(e.on("mouseenter",ex,function(){return e.fire("userhoverstart")}),e.on("mouseleave",ex,function(){return e.fire("userhoverend")})):console.warn('Layer "'.concat(ex,'" does not exist'))};function em(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function eh(e){for(var t=1;t=1100;e.current.style,a<100?s(!1):!1!==r&&(I(l,{lngLat:o.lngLat,zoom:15,offset:d?{x:.5*a,y:0}:{y:.5*a,x:0},direction:d?"right":"down"}),t.current&&t.current.resize())}};function eg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}z().accessToken="pk.eyJ1IjoibGFuZG9sYWJydW0iLCJhIjoiY2xnMDZ1aGVsMHJ5MzNsdGF3aHZhM3dtbyJ9.UihOXtkEeRk5tQDgDK8cLg";var eb=function(e){var t=e.options,n=e.vessels,i=e.onVesselClick,a=e.require,o=e.hideHover,l=(0,s.useRef)(null),d=(0,s.useRef)(null),u=(0,M.U2)(),x=(0,E.Z)(u,2),m=x[0],h=x[1],p=H({require:a}),v=(0,c.useRouter)(),b=(0,s.useState)(null),j=b[0],w=b[1],y=(0,s.useState)("clw76pwt4003o01q120rh1mkk"),k=y[0],_=y[1],O=(0,s.useState)(),N=O[0],L=O[1],D=(0,C.Z)(),T=D.width,A=D.height,Z={container:l.current,center:(null==t?void 0:t.center)||(null==p?void 0:p.lngLat)||[0,10],zoom:(null==t?void 0:t.zoom)||(T<900?.6:T>1400?2:(T-900)/500*1.4+.6),style:"mapbox://styles/landolabrum/".concat(k),projection:{name:"globe"},antialias:!0,rpm:null==t?void 0:t.rpm},R=(0,s.useState)(Z.zoom||8),Y=R[0],F=R[1],W=(0,s.useState)(Z.center||[0,0]),q=W[0],U=W[1],X=$({lngLat:q,setLngLat:U,map:d.current}),B=X.searched,G=X.handleSearch,J={name:null!=p&&p.name?"".concat(p.name):"You are here",className:"user",images:["https://a0.muscache.com/im/pictures/hosting/Hosting-U3RheVN1cHBseUxpc3Rpbmc6MTEyNDAxNzM1NTk1NjgzMjg4Mw%3D%3D/original/e1573119-8f57-4e97-9d4f-9ed4be4de8b4.jpeg?im_w=1200","https://a0.muscache.com/im/pictures/hosting/Hosting-U3RheVN1cHBseUxpc3Rpbmc6MTEyNDAxNzM1NTk1NjgzMjg4Mw%3D%3D/original/a6f2bd88-0ef0-455b-8f00-433eee5b13c2.jpeg?im_w=720"],lngLat:(null==p?void 0:p.lngLat)||[0,0]},Q={onClick:function(e){var t=null==d?void 0:d.current;t&&e&&(w(e),i&&i(e),I(t,{lngLat:e.lngLat,zoom:15}))},onMouseEnter:function(e){},onMouseLeave:function(){}},ee=function(){null!=t&&t.loadingDelay?t.loadingDelay&&setTimeout(function(){h({active:!1})},t.loadingDelay):h({active:!1})},et=(0,C.Z)().width;(0,s.useEffect)(function(){var e=N&&N===v.asPath,t=!!((null==p?void 0:p.lngLat)||!a)&&l.current&&e;if(N||L(v.asPath),d.current||!e||m.active?!e&&m.active&&ee():h({active:!0,body:" ",iconSize:et<=1100?"70vw":"350px"}),t){var i=new(z()).Map(function(e){for(var t=1;t6?10:6})},icon:Y>6?"fa-globe":"fa-map"})]})]})})]})},ej=function(){var e=(0,c.useRouter)().pathname,t=(0,s.useState)(),n=(t[0],t[1]);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(r(),{id:L.__hash,children:L}),(0,f.jsx)("div",{className:"jsx-".concat(L.__hash)+" deepturn",children:"/"==e&&(0,f.jsx)(eb,{onVesselClick:n,hideHover:!0,options:{rpm:200,loadingDelay:3e3},vessels:[{name:"Two Story Smart Home",lngLat:[-75.1867254,39.9307048],className:"partner",images:["https://a0.muscache.com/im/pictures/hosting/Hosting-U3RheVN1cHBseUxpc3Rpbmc6MTEyNDAxNzM1NTk1NjgzMjg4Mw%3D%3D/original/e1573119-8f57-4e97-9d4f-9ed4be4de8b4.jpeg?im_w=1200","https://a0.muscache.com/im/pictures/hosting/Hosting-U3RheVN1cHBseUxpc3Rpbmc6MTEyNDAxNzM1NTk1NjgzMjg4Mw%3D%3D/original/a6f2bd88-0ef0-455b-8f00-433eee5b13c2.jpeg?im_w=720"],description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."}]})})]})},ew=function(){var e=(0,s.useState)(),t=e[0],n=e[1],i={nirv1:(0,f.jsx)(_,{}),mb1:(0,f.jsx)(m,{}),ah1:(0,f.jsx)(ej,{})},o=O.Z.merchant.mid;return(0,s.useEffect)(function(){t||n(o)},[]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(r(),{id:a.__hash,children:a}),(0,f.jsx)(N.Z,{currentView:t,views:i})]})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/1695-10e929d2e8ccdd95.js b/_next/static/chunks/1695-10e929d2e8ccdd95.js deleted file mode 100644 index f1a905341..000000000 --- a/_next/static/chunks/1695-10e929d2e8ccdd95.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1695],{94983:function(e,t,a){a.d(t,{Z:function(){return m}});var n=a(59499),s=a(21378),r=a.n(s),o=a(67294),i=["@-webkit-keyframes openCollapse-jsx-3868202251{0%{height:calc(var(--s-element) - 2px);}20%{height:50%;}100%{height:-webkit-max-content;height:-moz-max-content;height:max-content;}}","@keyframes openCollapse-jsx-3868202251{0%{height:calc(var(--s-element) - 2px);}20%{height:50%;}100%{height:-webkit-max-content;height:-moz-max-content;height:max-content;}}","@-webkit-keyframes closeCollapse-jsx-3868202251{0%{height:-webkit-max-content;height:-moz-max-content;height:max-content;}20%{height:50%;}100%{height:calc(var(--s-element) - 2px);}}","@keyframes closeCollapse-jsx-3868202251{0%{height:-webkit-max-content;height:-moz-max-content;height:max-content;}20%{height:50%;}100%{height:calc(var(--s-element) - 2px);}}","@-webkit-keyframes openAction-jsx-3868202251{0%,100%{color:var(--gray-30);--ui-icon-color:$startColor;border-bottom:solid 1px var(--gray-70);}50%{color:var(--gray-40);}99%{color:var(--gray-40);}}","@keyframes openAction-jsx-3868202251{0%,100%{color:var(--gray-30);--ui-icon-color:$startColor;border-bottom:solid 1px var(--gray-70);}50%{color:var(--gray-40);}99%{color:var(--gray-40);}}","@-webkit-keyframes closeAction-jsx-3868202251{0%,100%{color:var(--gray-30);--ui-icon-color:$startColor;border-bottom:solid 1px var(--gray-70);}50%{color:var(--gray-60);}99%{color:var(--gray-60);}}","@keyframes closeAction-jsx-3868202251{0%,100%{color:var(--gray-30);--ui-icon-color:$startColor;border-bottom:solid 1px var(--gray-70);}50%{color:var(--gray-60);}99%{color:var(--gray-60);}}","@-webkit-keyframes openBody-jsx-3868202251{0%{-webkit-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%);height:var(--s-element);}100%{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);margin-top:calc(var(--s-element) - 2px);height:-webkit-max-content;height:-moz-max-content;height:max-content;}}","@keyframes openBody-jsx-3868202251{0%{-webkit-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%);height:var(--s-element);}100%{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);margin-top:calc(var(--s-element) - 2px);height:-webkit-max-content;height:-moz-max-content;height:max-content;}}","@-webkit-keyframes closeBody-jsx-3868202251{0%{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);height:-webkit-max-content;height:-moz-max-content;height:max-content;}100%{-webkit-transform:translateY(calc(-100% + var(--s-element)));-ms-transform:translateY(calc(-100% + var(--s-element)));transform:translateY(calc(-100% + var(--s-element)));height:0;}}","@keyframes closeBody-jsx-3868202251{0%{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);height:-webkit-max-content;height:-moz-max-content;height:max-content;}100%{-webkit-transform:translateY(calc(-100% + var(--s-element)));-ms-transform:translateY(calc(-100% + var(--s-element)));transform:translateY(calc(-100% + var(--s-element)));height:0;}}",".d-flex.jsx-3868202251{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".collapse.jsx-3868202251{width:calc(100% - 2px);border:solid 1px var(--gray-70);position:relative;z-index:1;border-radius:var(--border-radius);overflow:hidden;color:var(--gray-60);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:calc(var(--s-element) - 2px);min-height:calc(var(--s-element) - 2px);background-color:var(--gray-90);}","@media (max-width:900px){.collapse.jsx-3868202251{padding:0;}}",".collapse__opened.jsx-3868202251{height:-webkit-max-content;height:-moz-max-content;height:max-content;}",".collapse__open.jsx-3868202251{-webkit-animation:openCollapse-jsx-3868202251 1s forwards;animation:openCollapse-jsx-3868202251 1s forwards;}",".collapse__close.jsx-3868202251{-webkit-animation:closeCollapse-jsx-3868202251 1s forwards;animation:closeCollapse-jsx-3868202251 1s forwards;}",".collapse__action.jsx-3868202251{background-color:var(--gray-90);position:absolute;top:0;left:0;right:0;padding:0 var(--s-7);height:calc(var(--s-element) - 2px);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-transform:capitalize;font-size:var(--s-5);font-weight:700;color:var(--gray-30);--ui-icon-color:$actColorClose;z-index:2;cursor:pointer;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;line-height:1;}","@media (max-width:1100px){.collapse__action.jsx-3868202251{font-size:var(--s-5);}}",".collapse__action.jsx-3868202251:hover{background-color:var(--gray-80-o);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);}",".collapse__action__opened.jsx-3868202251{color:var(--gray-40);}",".collapse__action__open.jsx-3868202251{-webkit-animation:openAction-jsx-3868202251 1s forwards;animation:openAction-jsx-3868202251 1s forwards;}",".collapse__action__closed.jsx-3868202251{-webkit-animation:closeAction-jsx-3868202251 1s forwards;animation:closeAction-jsx-3868202251 1s forwards;}",".collapse__document.jsx-3868202251 .collapse__body.jsx-3868202251{box-shadow:inset 0 calc(var(--s-element) * -1) var(--s-element) calc(var(--s-element) * -1) var(--gray-100),inset 0 8px 8px -8px var(--gray-90);width:100%;height:100%;overflow-x:none;border:solid 1px var(--gray-70);}","@media (max-width:1100px){.collapse__document.jsx-3868202251 .collapse__body.jsx-3868202251{max-height:calc(100vh - 275px);}}",".collapse__document.jsx-3868202251 .collapse__action.jsx-3868202251{background:var(--primary-o);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);}",".collapse__flat.jsx-3868202251{padding:0;width:100%;border-style:solid;border-width:0 0 1px 0;margin:0;border-radius:0;}",".collapse__flat.jsx-3868202251 .collapse__action.jsx-3868202251{border-radius:unset;---ui-icon-color:var(--gray-50);}",".collapse__flat.jsx-3868202251 .collapse__action.jsx-3868202251:hover{background-color:var(--gray-80);}",".collapse__flat.jsx-3868202251 .collapse__action__open.jsx-3868202251,.collapse__flat.jsx-3868202251 .collapse__action__opened.jsx-3868202251{background-color:var(--primary-50);}",".collapse__flat.jsx-3868202251 .collapse__body.jsx-3868202251{width:100%;padding:0 !important;background-color:var(--gray-80);}",".collapse__flat.jsx-3868202251 .collapse__body__open.jsx-3868202251,.collapse__flat.jsx-3868202251 .collapse__body__opened.jsx-3868202251{padding-top:var(--s-element);}",".collapse__body.jsx-3868202251{width:calc(100% - var(--s-4));height:var(--s-element);padding:var(--s-4) 0;}",".collapse__body__open.jsx-3868202251{-webkit-animation:openBody-jsx-3868202251 1s forwards;animation:openBody-jsx-3868202251 1s forwards;}",".collapse__body__opened.jsx-3868202251{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);margin-top:calc(var(--s-element) - 2px);height:-webkit-max-content;height:-moz-max-content;height:max-content;}",".collapse__body__close.jsx-3868202251{-webkit-animation:closeBody-jsx-3868202251 1s forwards;animation:closeBody-jsx-3868202251 1s forwards;}"];i.__hash="3868202251";var c=a(55140),l=a(85893);function x(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}function d(e){for(var t=1;tc:sc:s ]",e.t2);case 11:case"end":return e.stop()}},e,null,[[0,8]])})),function(){return t.apply(this,arguments)});return(0,c.useEffect)(function(){a&&!i&&o()},[a]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(r(),{id:b.__hash,children:b}),(0,v.jsxs)("div",{className:"jsx-".concat(b.__hash)+" admin-account",children:[(0,v.jsxs)("div",{className:"jsx-".concat(b.__hash)+" admin-account__header",children:[(0,v.jsx)("div",{className:"jsx-".concat(b.__hash)+" admin-account__header--title",children:a}),(0,v.jsxs)("div",{className:"jsx-".concat(b.__hash)+" admin-account__header--contact",children:[(null==i?void 0:i.email)&&(0,v.jsx)(j.Z,{size:"sm",href:"mailto://".concat(i.email),children:i.email}),(null==i?void 0:i.business_profile.support_phone)&&(0,v.jsx)(j.Z,{type:"tel",size:"sm",href:"mailto://".concat(i.email),children:i.business_profile.support_phone})]})]}),(0,v.jsx)("div",{className:"jsx-".concat(b.__hash)+" admin-account__info"}),(0,v.jsx)("div",{className:"jsx-".concat(b.__hash)+" admin-account__info",children:(null==i?void 0:i.business_profile)&&Object.entries(i).map(function(e,t){return(0,v.jsx)("div",{className:"jsx-".concat(b.__hash)+" admin-account__info--line",children:e[0]},t)})}),(0,v.jsx)("hr",{className:"jsx-".concat(b.__hash)}),(0,v.jsx)("div",{className:"jsx-".concat(b.__hash)+" admin-account__info",children:(null==i?void 0:i.business_profile)&&Object.entries(i.business_profile).map(function(e,t){return(0,v.jsxs)("div",{className:"jsx-".concat(b.__hash)+" admin-account__info--line",children:[e[0],": ",JSON.stringify(e[1])]},t)})})]})]})},w=function(){var e,t=(0,h.ko)("IAdminService"),a=(0,c.useState)(),n=a[0],i=a[1],s=(0,c.useState)("list"),l=s[0],o=s[1],m=(e=(0,d.Z)(x().mark(function e(){var a,n;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=function(e){i(e.map(function(e,t){var a,n,i,s=null!==(a=e.business_profile)&&void 0!==a?a:null;return{id:e.id,account:(0,v.jsx)(_.ZP,{cell:"member",data:{id:e.id,name:s.name,email:null!==(n=e.email)&&void 0!==n?n:"no email",phone:s.support_phone}}),support:(0,v.jsx)(_.ZP,{cell:"member",data:{id:e.id,name:s.name,email:null!==(i=s.support_email)&&void 0!==i?i:"no email",phone:s.support_phone}}),address:(0,v.jsx)(_.ZP,{cell:"address",data:null==s?void 0:s.support_address}),phone:s.support_phone?(0,v.jsx)(j.Z,{variant:"link",size:"sm",href:"tel://".concat(null==s?void 0:s.support_phone),children:(0,p.wW)(s.support_phone)}):(0,v.jsx)(_.r0,{}),url:s.url?(0,v.jsx)(j.Z,{size:"sm",variant:"link",target:"_blank",href:"https://".concat(s.url),children:s.url}):(0,v.jsx)(_.r0,{})}}))},e.prev=1,e.next=4,t.listAccounts();case 4:(null==(n=e.sent)?void 0:n.data)&&i(n.data),a(n.data),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.log("[ ADMIN ACCONTS get Account Err ]",e.t0);case 12:case"end":return e.stop()}},e,null,[[1,9]])})),function(){return e.apply(this,arguments)});return(0,c.useEffect)(function(){n||"list"!==l||m()},[]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(r(),{id:u.__hash,children:u}),(0,v.jsxs)("div",{className:"jsx-".concat(u.__hash)+" admin-accounts",children:[(0,v.jsx)("h1",{className:"jsx-".concat(u.__hash),children:"Admin Accounts"}),n&&"list"===l&&(0,v.jsx)(f.Z,{data:n,options:{hideColumns:["id"]},onRowClick:function(e){return o(e.id)}}),"list"!==l&&(0,v.jsx)(g,{accountId:l})]})]})},k=a(11907),y=[".d-flex.jsx-3678714853,.admin-mgmt__card-body.jsx-3678714853,.admin-mgmt__card-header.jsx-3678714853,.admin-mgmt__card.jsx-3678714853{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".admin-mgmt.jsx-3678714853{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}",".admin-mgmt__body.jsx-3678714853,.admin-mgmt__header.jsx-3678714853{width:100%;}",".admin-mgmt__header.jsx-3678714853{font-size:var(--s-1);}",".admin-mgmt__body.jsx-3678714853{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:var(--s-1);}",".admin-mgmt__card.jsx-3678714853{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;overflow:hidden;min-height:150px;color:var(--gray-10);}",".admin-mgmt__card-header.jsx-3678714853{color:var(--primary-50);min-height:var(--s-element);text-transform:capitalize;}",".admin-mgmt__card-body.jsx-3678714853{height:100%;font-size:var(--s-element);-webkit-flex:1;-ms-flex:1;flex:1;width:100%;}"];y.__hash="3678714853";var O=a(85854),N=[".d-flex.jsx-3201814004,.admin-customer__header-container.jsx-3201814004 .actions.jsx-3201814004,.admin-customer__header-container.jsx-3201814004 .header.jsx-3201814004,.admin-customer__header-container.jsx-3201814004,.admin-customer.jsx-3201814004{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}",".admin-customer.jsx-3201814004{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);border-radius:var(--border-radius);background-color:var(--gray-90);width:var(--s-4-width);padding:var(--s-4);}","@media (max-width:1100px){.admin-customer.jsx-3201814004{width:var(--s-9-width);padding:var(--s-1) var(--s-9);}}",".admin-customer__header-container.jsx-3201814004{width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;}","@media (max-width:1100px){.admin-customer__header-container.jsx-3201814004{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}}",".admin-customer__header-container.jsx-3201814004 .header.jsx-3201814004{position:relative;margin-bottom:var(--s-1);}",".admin-customer__header-container.jsx-3201814004 .header--title.jsx-3201814004{color:var(--primary-50);text-transform:capitalize;font-size:var(--s-element);}",".admin-customer__header-container.jsx-3201814004 .header--subtitle.jsx-3201814004{position:absolute;display:table;padding:var(--s-12) var(--s-9);border-radius:var(--s-3);text-transform:uppercase;text-shadow:-2px -1px 4px var(--gray-90);right:0;-webkit-transform:translate(50%,var(--s-11));-ms-transform:translate(50%,var(--s-11));transform:translate(50%,var(--s-11));bottom:0;line-height:1;font-size:var(--s-4);}",".admin-customer__header-container.jsx-3201814004 .actions.jsx-3201814004{gap:var(--s-9);}"];N.__hash="3201814004";var Z=a(16835),P=[".admin-customer-add__title.jsx-4227241771{font-size:var(--s-3);color:var(--gray-40);text-transform:capitalize;padding-bottom:var(--s-4);}"];P.__hash="4227241771";var S=a(38903),E=a(98014),C=a(31831),D=a(23992),I=function(){var e,t=(0,C.U2)(),a=(0,Z.Z)(t,2),n=(a[0],a[1]),i=[{name:"first_name",label:"first name",placeholder:"Elon",width:"50%"},{name:"last_name",label:"last name",placeholder:"Tusk",width:"50%"},{name:"phone",label:"phone",placeholder:"1 (800) - call - att",type:"tel",constraints:{min:11,max:11}},{name:"email",label:"email",placeholder:"elontusk@starlink.com",type:"email"},{name:"clearance",label:"clearance",value:12,min:1,max:(0,k.Kt)().others.creation,type:"pill",required:!0},{name:"address",label:"address",placeholder:"123 Fake Street"}],s=(0,c.useState)(),l=s[0],o=s[1],m=(0,h.ko)("IAdminService"),u=(e=(0,d.Z)(x().mark(function e(t){var a,i,s;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a="".concat((0,E.PI)(l,"first_name").value," ").concat((0,E.PI)(l,"last_name").value),n({active:!0,body:"Creating ".concat(a)}),i=(0,E.PI)(l,"address").value,delete i.lng,delete i.lat,s={name:a,email:(0,E.PI)(l,"email").value,phone:(0,E.PI)(l,"phone").value,address:i,metadata:{user:{clearance:(0,E.PI)(l,"clearance").value,email_verified:!1},merchant:D.Z.merchant}},(function(){var e=(0,d.Z)(x().mark(function e(){var t;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.createCustomer(s);case 3:null==(t=e.sent)||t.name,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("[ Create Customer ERROR ]",e.t0);case 10:case"end":return e.stop()}},e,null,[[0,7]])}));return function(){return e.apply(this,arguments)}})()().then(function(){n({active:!1})});case 8:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)});return(0,c.useEffect)(function(){l||o(i)},[]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(r(),{id:P.__hash,children:P}),(0,v.jsxs)("div",{className:"jsx-".concat(P.__hash)+" admin-customer-add",children:[(0,v.jsx)("div",{className:"jsx-".concat(P.__hash)+" admin-customer-add__title",children:"add customer"}),(0,v.jsx)(S.Z,{fields:l,onChange:function(e){var t=e.target,a=t.name,n=t.value;o(l.map(function(e){return e.name==a&&(e.value=n),e}))},onSubmit:u})]})]})},A=[".admin-customer-list.jsx-1405738196{width:100%;}"];A.__hash="1405738196";var R=function(e,t){var a,n=D.Z.merchant.mid;if(e){var i=null==e||null===(a=e.merchant)||void 0===a?void 0:a.mid;return t>=12||t>=10&&i===n}},z=a(49334);function F(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}function T(e){for(var t=1;t=10?n(en(en({},e),{},(0,i.Z)({},"accounts",(0,v.jsx)(w,{})))):n(e))},[]),void 0===a)?(0,v.jsx)(v.Fragment,{children:"not authorized"}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(r(),{id:l.__hash,children:l}),(0,v.jsx)(o.Z,{title:"admin",views:a})]})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/3451-4e51387883250e69.js b/_next/static/chunks/3451-4e51387883250e69.js new file mode 100644 index 000000000..b347a024e --- /dev/null +++ b/_next/static/chunks/3451-4e51387883250e69.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3451],{53451:function(e,t,n){n.d(t,{Z:function(){return el}});var a,r=n(59499),i=n(21378),s=n.n(i),c=n(67294),o=[];o.__hash="2085888330";var l=n(35109),d=n(50029),m=n(64687),u=n.n(m),x=[".d-flex.jsx-3211816930,.admin-accounts__account--line.jsx-3211816930,.admin-accounts__account.jsx-3211816930,.admin-accounts.jsx-3211816930{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".admin-accounts.jsx-3211816930{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;}",".admin-accounts__account.jsx-3211816930{width:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".admin-accounts__account--line.jsx-3211816930{border:solid 1px;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:var(--s-border-width);gap:2px;line-height:20px;font-size:16px;}",".admin-accounts__account--line-key.jsx-3211816930{color:var(--primary-50);}",".admin-accounts__account--line-value.jsx-3211816930{color:var(--gray-10);word-break:break-word;}"];x.__hash="3211816930";var h=n(10394),f=n(89360),_=n(35486),j=n(10577),p=n(47265),b=[".d-flex.jsx-206585351,.admin-account__info.jsx-206585351,.admin-account__header--title.jsx-206585351,.admin-account__header--contact.jsx-206585351,.admin-account__header.jsx-206585351{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".info-key.jsx-206585351{color:var(--primary-50);position:relative;}",'.info-key.jsx-206585351::after{content:":";}',".info-value.jsx-206585351{color:var(--gray-10);}",".admin-account.jsx-206585351{width:100%;}",".admin-account__header.jsx-206585351{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;width:auto;padding:var(--s-8) var(--s-4);border:solid 1px var(--gray-70);border-radius:var(--border-radius);background-color:var(--gray-80);gap:var(--s-9);}","@media (max-width:900px){.admin-account__header.jsx-206585351{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}",".admin-account__header--title.jsx-206585351,.admin-account__header--contact.jsx-206585351{gap:4px;}",".admin-account__header--title.jsx-206585351{font-size:var(--s-4);color:var(--gray-50);}",".admin-account__info.jsx-206585351{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;white-space:wrap;}",".admin-account__info--line.jsx-206585351{width:100%;}"];b.__hash="206585351";var v=n(85893),g=function(e){var t,n=e.accountId,a=(0,c.useState)(),r=a[0],i=a[1],o=(0,h.ko)("IAdminService"),l=(t=(0,d.Z)(u().mark(function e(){return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=i,e.next=4,o.getAccount(n);case 4:e.t1=e.sent,(0,e.t0)(e.t1),e.next=11;break;case 8:e.prev=8,e.t2=e.catch(0),console.log("[ AdminAccount.getAccount() ]",e.t2);case 11:case"end":return e.stop()}},e,null,[[0,8]])})),function(){return t.apply(this,arguments)});return(0,c.useEffect)(function(){n&&!r&&l()},[n]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(s(),{id:b.__hash,children:b}),(0,v.jsxs)("div",{className:"jsx-".concat(b.__hash)+" admin-account",children:[(0,v.jsxs)("div",{className:"jsx-".concat(b.__hash)+" admin-account__header",children:[(0,v.jsx)("div",{className:"jsx-".concat(b.__hash)+" admin-account__header--title",children:n}),(0,v.jsxs)("div",{className:"jsx-".concat(b.__hash)+" admin-account__header--contact",children:[(null==r?void 0:r.email)&&(0,v.jsx)(j.Z,{size:"sm",href:"mailto://".concat(r.email),children:r.email}),(null==r?void 0:r.business_profile.support_phone)&&(0,v.jsx)(j.Z,{type:"tel",size:"sm",href:"mailto://".concat(r.email),children:r.business_profile.support_phone})]})]}),(0,v.jsx)("div",{className:"jsx-".concat(b.__hash)+" admin-account__info"}),(0,v.jsx)("div",{className:"jsx-".concat(b.__hash)+" admin-account__info",children:(null==r?void 0:r.business_profile)&&Object.entries(r).map(function(e,t){return(0,v.jsx)("div",{className:"jsx-".concat(b.__hash)+" admin-account__info--line",children:e[0]},t)})}),(0,v.jsx)("hr",{className:"jsx-".concat(b.__hash)}),(0,v.jsx)("div",{className:"jsx-".concat(b.__hash)+" admin-account__info",children:(null==r?void 0:r.business_profile)&&Object.entries(r.business_profile).map(function(e,t){return(0,v.jsxs)("div",{className:"jsx-".concat(b.__hash)+" admin-account__info--line",children:[e[0],": ",JSON.stringify(e[1])]},t)})})]})]})},w=function(){var e,t=(0,h.ko)("IAdminService"),n=(0,c.useState)(),a=n[0],r=n[1],i=(0,c.useState)("list"),o=i[0],l=i[1],m=(e=(0,d.Z)(u().mark(function e(){var n,a;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=function(e){r(e.map(function(e,t){var n,a,r,i=null!==(n=e.business_profile)&&void 0!==n?n:null;return{id:e.id,account:(0,v.jsx)(_.ZP,{cell:"member",data:{id:e.id,name:i.name,email:null!==(a=e.email)&&void 0!==a?a:"no email",phone:i.support_phone}}),support:(0,v.jsx)(_.ZP,{cell:"member",data:{id:e.id,name:i.name,email:null!==(r=i.support_email)&&void 0!==r?r:"no email",phone:i.support_phone}}),address:(0,v.jsx)(_.ZP,{cell:"address",data:null==i?void 0:i.support_address}),phone:i.support_phone?(0,v.jsx)(j.Z,{variant:"link",size:"sm",href:"tel://".concat(null==i?void 0:i.support_phone),children:(0,p.wW)(i.support_phone)}):(0,v.jsx)(_.r0,{}),url:i.url?(0,v.jsx)(j.Z,{size:"sm",variant:"link",target:"_blank",href:"https://".concat(i.url),children:i.url}):(0,v.jsx)(_.r0,{})}}))},e.prev=1,e.next=4,t.listAccounts();case 4:(null==(a=e.sent)?void 0:a.data)&&r(a.data),n(a.data),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.log("[ ADMIN ACCONTS get Account Err ]",e.t0);case 12:case"end":return e.stop()}},e,null,[[1,9]])})),function(){return e.apply(this,arguments)});return(0,c.useEffect)(function(){a||"list"!==o||m()},[]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(s(),{id:x.__hash,children:x}),(0,v.jsxs)("div",{className:"jsx-".concat(x.__hash)+" admin-accounts",children:[(0,v.jsx)("h1",{className:"jsx-".concat(x.__hash),children:"Admin Accounts"}),a&&"list"===o&&(0,v.jsx)(f.Z,{data:a,options:{hideColumns:["id"]},onRowClick:function(e){return l(e.id)}}),"list"!==o&&(0,v.jsx)(g,{accountId:o})]})]})},y=n(11907),k=[".d-flex.jsx-3678714853,.admin-mgmt__card-body.jsx-3678714853,.admin-mgmt__card-header.jsx-3678714853,.admin-mgmt__card.jsx-3678714853{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".admin-mgmt.jsx-3678714853{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}",".admin-mgmt__body.jsx-3678714853,.admin-mgmt__header.jsx-3678714853{width:100%;}",".admin-mgmt__header.jsx-3678714853{font-size:var(--s-1);}",".admin-mgmt__body.jsx-3678714853{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:var(--s-1);}",".admin-mgmt__card.jsx-3678714853{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;overflow:hidden;min-height:150px;color:var(--gray-10);}",".admin-mgmt__card-header.jsx-3678714853{color:var(--primary-50);min-height:var(--s-element);text-transform:capitalize;}",".admin-mgmt__card-body.jsx-3678714853{height:100%;font-size:var(--s-element);-webkit-flex:1;-ms-flex:1;flex:1;width:100%;}"];k.__hash="3678714853";var O=n(85854),N=[".d-flex.jsx-3201814004,.admin-customer__header-container.jsx-3201814004 .actions.jsx-3201814004,.admin-customer__header-container.jsx-3201814004 .header.jsx-3201814004,.admin-customer__header-container.jsx-3201814004,.admin-customer.jsx-3201814004{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}",".admin-customer.jsx-3201814004{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);border-radius:var(--border-radius);background-color:var(--gray-90);width:var(--s-4-width);padding:var(--s-4);}","@media (max-width:1100px){.admin-customer.jsx-3201814004{width:var(--s-9-width);padding:var(--s-1) var(--s-9);}}",".admin-customer__header-container.jsx-3201814004{width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;}","@media (max-width:1100px){.admin-customer__header-container.jsx-3201814004{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}}",".admin-customer__header-container.jsx-3201814004 .header.jsx-3201814004{position:relative;margin-bottom:var(--s-1);}",".admin-customer__header-container.jsx-3201814004 .header--title.jsx-3201814004{color:var(--primary-50);text-transform:capitalize;font-size:var(--s-element);}",".admin-customer__header-container.jsx-3201814004 .header--subtitle.jsx-3201814004{position:absolute;display:table;padding:var(--s-12) var(--s-9);border-radius:var(--s-3);text-transform:uppercase;text-shadow:-2px -1px 4px var(--gray-90);right:0;-webkit-transform:translate(50%,var(--s-11));-ms-transform:translate(50%,var(--s-11));transform:translate(50%,var(--s-11));bottom:0;line-height:1;font-size:var(--s-4);}",".admin-customer__header-container.jsx-3201814004 .actions.jsx-3201814004{gap:var(--s-9);}"];N.__hash="3201814004";var P=n(16835),Z=[".admin-customer-add__title.jsx-4227241771{font-size:var(--s-3);color:var(--gray-40);text-transform:capitalize;padding-bottom:var(--s-4);}"];Z.__hash="4227241771";var S=n(38903),E=n(98014),C=n(31831),D=n(23992),A=function(){var e,t=(0,C.U2)(),n=(0,P.Z)(t,2),a=(n[0],n[1]),r=[{name:"first_name",label:"first name",placeholder:"Elon",width:"50%"},{name:"last_name",label:"last name",placeholder:"Tusk",width:"50%"},{name:"phone",label:"phone",placeholder:"1 (800) - call - att",type:"tel",constraints:{min:11,max:11}},{name:"email",label:"email",placeholder:"elontusk@starlink.com",type:"email"},{name:"clearance",label:"clearance",value:12,min:1,max:(0,y.Kt)().others.creation,type:"pill",required:!0},{name:"address",label:"address",placeholder:"123 Fake Street"}],i=(0,c.useState)(),o=i[0],l=i[1],m=(0,h.ko)("IAdminService"),x=(e=(0,d.Z)(u().mark(function e(t){var n,r,i;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n="".concat((0,E.PI)(o,"first_name").value," ").concat((0,E.PI)(o,"last_name").value),a({active:!0,body:"Creating ".concat(n)}),r=(0,E.PI)(o,"address").value,delete r.lng,delete r.lat,i={name:n,email:(0,E.PI)(o,"email").value,phone:(0,E.PI)(o,"phone").value,address:r,metadata:{user:{clearance:(0,E.PI)(o,"clearance").value,email_verified:!1},merchant:D.Z.merchant}},(function(){var e=(0,d.Z)(u().mark(function e(){var t;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.createCustomer(i);case 3:null==(t=e.sent)||t.name,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("[ Create Customer ERROR ]",e.t0);case 10:case"end":return e.stop()}},e,null,[[0,7]])}));return function(){return e.apply(this,arguments)}})()().then(function(){a({active:!1})});case 8:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)});return(0,c.useEffect)(function(){o||l(r)},[]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(s(),{id:Z.__hash,children:Z}),(0,v.jsxs)("div",{className:"jsx-".concat(Z.__hash)+" admin-customer-add",children:[(0,v.jsx)("div",{className:"jsx-".concat(Z.__hash)+" admin-customer-add__title",children:"add customer"}),(0,v.jsx)(S.Z,{fields:o,onChange:function(e){var t=e.target,n=t.name,a=t.value;l(o.map(function(e){return e.name==n&&(e.value=a),e}))},onSubmit:x})]})]})},I=[".admin-customer-list.jsx-1405738196{width:100%;}"];I.__hash="1405738196";var R=function(e,t){var n,a=D.Z.merchant.mid;if(e){var r=null==e||null===(n=e.merchant)||void 0===n?void 0:n.mid;return t>=12||t>=10&&r===a}},z=n(49334);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function T(e){for(var t=1;t=10?a(eo(eo({},e),{},(0,r.Z)({},"accounts",(0,v.jsx)(w,{})))):a(e))},[]),void 0===n)?(0,v.jsx)(v.Fragment,{children:"not authorized"}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(s(),{id:o.__hash,children:o}),(0,v.jsx)(l.Z,{title:"admin",views:n})]})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/3923-be74c9f40308ae70.js b/_next/static/chunks/3923-be74c9f40308ae70.js deleted file mode 100644 index 2778862cb..000000000 --- a/_next/static/chunks/3923-be74c9f40308ae70.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3923],{83923:function(e,t,n){n.d(t,{Z:function(){return eS}});var i=n(21378),r=n.n(i),a=[".d-flex.jsx-1627455299,.index.jsx-1627455299 .index__full--title.jsx-1627455299,.index.jsx-1627455299 .index__full-ol.jsx-1627455299>div.jsx-1627455299,.index.jsx-1627455299 .index__full-ol.jsx-1627455299,.d-flex-column.jsx-1627455299,.index.jsx-1627455299{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".d-pad.jsx-1627455299{padding:var(--s-4);width:calc(100% - var(--s-4) * 2);}",".index__clouds.jsx-1627455299{height:100vh;width:100vw;}",".d-flex-column.jsx-1627455299,.index.jsx-1627455299{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".index.jsx-1627455299{width:100%;color:var(--gray-20);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding:0;gap:var(--s-9);position:relative;height:100%;}","@media (max-width:1260px){.index.jsx-1627455299{width:calc(100% - var(--s-9) * 2);margin:auto;height:100% !important;}}",".index--title.jsx-1627455299{width:100%;text-align:center;padding:var(--s-element) 0 0;text-transform:capitalize;font-size:var(--s-1);color:var(--gray-10);}",".index.jsx-1627455299 .index__full-max.jsx-1627455299{width:100%;z-index:1;aspect-ratio:1;}",".index.jsx-1627455299 .index__full.jsx-1627455299{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--s-4);margin:var(--s-4) 0 0;}",".index.jsx-1627455299 .index__full--max.jsx-1627455299{height:80vw;z-index:1;width:100%;}",".index.jsx-1627455299 .index__full.no-wrap.jsx-1627455299{-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;}","@media (max-width:900px){.index.jsx-1627455299 .index__full.no-wrap.jsx-1627455299{-webkit-flex-wrap:wrap-reverse;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse;}}",".index.jsx-1627455299 .index__full-ol.jsx-1627455299{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;margin-top:0;line-height:1.5;padding:var(--s-4) 0 var(--s-element);}",".index.jsx-1627455299 .index__full-ol.jsx-1627455299 h2.jsx-1627455299{color:var(--primary-50);}",".index.jsx-1627455299 .index__full-ol.jsx-1627455299>div.jsx-1627455299{font-family:Game;color:var(--gray-20);padding:0 var(--s-9);font-size:var(--s-5);--ui-icon-size:var(--s-5);--ui-icon-color:var(--gray-40);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;gap:var(--s-9);position:relative;}",".index.jsx-1627455299 .index__full-li.jsx-1627455299{width:100%;}",".index.jsx-1627455299 .index__full-li--title.jsx-1627455299{font-size:var(--s-5);}",".index.jsx-1627455299 .index__full-li--body.jsx-1627455299{padding:var(--s-4);font-size:var(--s-7);}",".index.jsx-1627455299 .index__full--title.jsx-1627455299{width:100%;text-transform:capitalize;color:var(--primary-50);--ui-icon-color:var(--primary-50);gap:var(--s-9);font-size:var(--s-1);white-space:normal;font-family:Play;line-height:1;margin:var(--s-element) 0 var(--s-4);--ui-icon-size:var(--s-1);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}",".index.jsx-1627455299 .index__full--title.main.jsx-1627455299{font-size:45px;--ui-icon-size:45px;}",".index.jsx-1627455299 .index__full--title-deepturn.jsx-1627455299{font-size:40px;--ui-icon-size:50px;color:var(--gray-20);--ui-icon-color:var(--gray-20);text-transform:uppercase;-webkit-filter:drop-shadow(4px 5px 3px var(--gray-60));filter:drop-shadow(4px 5px 3px var(--gray-60));}",".index.jsx-1627455299 .index__full-padding.jsx-1627455299{position:relative;border-radius:var(--border-radius);white-space:nowrap;outline:solid 1px var(--gray-90);background-color:var(--gray-90);padding:var(--s-9) var(--s-4);width:calc(var(--s-4-width) - var(--s-4) * 2);margin:0;}",".index.jsx-1627455299 .index__full-padding--title.jsx-1627455299{width:var(--s-4-width);padding:var(--s-9) var(--s-1);}",".index.jsx-1627455299 .index__sub-title.jsx-1627455299{width:100%;text-transform:capitalize;font-size:var(--s-4);color:var(--gray-50);}",".index__half.jsx-1627455299{display:block;width:50%;}",".index__sub-title.jsx-1627455299{color:var(--gray-30);font-size:var(--s-4);}"];a.__hash="1627455299";var s=n(67294),o=[".d-flex.jsx-2117224071,.map-container.jsx-2117224071,.deepturn.jsx-2117224071{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".component--map.jsx-2117224071,.component--terrain.jsx-2117224071{left:0;top:0;position:fixed;width:100vw;height:100vh;z-index:1;}",".component--map.jsx-2117224071{width:100%;height:100%;}",".deepturn.jsx-2117224071{background:#f30;background:radial-gradient(circle,var(--gray-90) 34%,var(--black) 100%);width:100%;position:fixed;height:100%;top:0;left:0;right:0;bottom:0;}","@media (max-width:1100px){.deepturn.jsx-2117224071{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}",".deepturn__components.jsx-2117224071{position:relative;z-index:1;}",".map-container.jsx-2117224071{width:100%;height:100%;-webkit-flex:3;-ms-flex:3;flex:3;}"];o.__hash="2117224071";var l=n(11163),c=n(37158),d=n(15029),u=n(99477),x=n(30398),m=n(81367),f=n(59670),h=[".tjscube.jsx-2911424045{height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}"];h.__hash="2911424045";var v=n(85893),p=function(e){var t=e.icon,n=(0,s.useRef)(null),i=(0,s.useRef)(null),r=(0,c.A)(),a=r.scene,o=r.camera,l=t.size,d=function(e,t){new u.TextureLoader().load(t,function(t){t.wrapS=t.wrapT=u.RepeatWrapping,t.repeat.set(.01,.01),e.map=t,e.needsUpdate=!0})};return(0,s.useEffect)(function(){if(!a.children.some(function(e){return e instanceof u.AmbientLight})){var e=new u.AmbientLight(16777215);return a.add(e),function(){a.remove(e)}}},[a,t]),(0,s.useEffect)(function(){var e={color:t.color||"#ffffff",metalness:t.metalness||0,roughness:t.roughness||0,opacity:t.opacity||1,transparent:!!((null==t?void 0:t.opacity)&&t.opacity<1)};if(n.current){var r=n.current.material;t.texture&&d(r,t.texture),Object.assign(r,e)}else{var s,c,x,h,v,p,g=f.Z.getIcon(t.icon);if(!g||!g.html)return;var b=g.html.replace(/currentColor/g,t.color||"#000000"),j=new m.u().parse(b).paths.flatMap(function(e){return e.toShapes(!0)}),w=new u.ExtrudeGeometry(j,{depth:t.size.z,bevelEnabled:(null===(s=t.bevel)||void 0===s?void 0:s.bevelEnabled)||!1,bevelThickness:(null===(c=t.bevel)||void 0===c?void 0:c.bevelThickness)||0,bevelSize:(null===(x=t.bevel)||void 0===x?void 0:x.bevelSize)||0,bevelOffset:(null===(h=t.bevel)||void 0===h?void 0:h.bevelOffset)||0,bevelSegments:(null===(v=t.bevel)||void 0===v?void 0:v.bevelSegments)||0});w.computeBoundingBox();var y=new u.Vector3;null===(p=w.boundingBox)||void 0===p||p.getCenter(y),w.translate(-y.x,-y.y,-y.z);var k=new u.MeshStandardMaterial(e);t.texture&&d(k,t.texture);var _=new u.Mesh(w,k);_.rotation.x=-Math.PI,a.add(_),n.current=_;var O=Math.max((null==l?void 0:l.x)||0,(null==l?void 0:l.y)||0,(null==l?void 0:l.z)||0);o.position.set(0,0,O);for(var N=new u.PointsMaterial({color:8947848,size:.1}),z=new u.BufferGeometry,L=[],S=0;S<1e3;S++)L.push((Math.random()-.5)*2*l.x,(Math.random()-.5)*2*l.y,(Math.random()-.5)*2*l.z);z.setAttribute("position",new u.Float32BufferAttribute(L,3));var E=new u.Points(z,N);a.add(E),i.current=E}},[t,a]),(0,c.C)(function(){var e;if(null!==(e=t.animate)&&void 0!==e&&e.rotate&&n.current){var r=t.animate.rotate,a=r.x,s=r.y,o=r.z,l=r.speed;n.current.rotation.x+=(void 0===a?0:a)*l,n.current.rotation.y+=(void 0===s?0:s)*l,n.current.rotation.z+=(void 0===o?0:o)*l}i.current&&(i.current.rotation.y+=.001)}),null},g=function(e){var t,n=(0,s.useRef)(),i=String(null==e||null===(t=e.icon)||void 0===t?void 0:t.backgroundColor)||void 0;return(0,s.useEffect)(function(){null!=n&&n.current&&i&&(n.current.style.backgroundColor=i)},[n,i]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(r(),{id:h.__hash,children:h}),(0,v.jsx)("div",{ref:n,className:"jsx-".concat(h.__hash)+" tjscube",children:(0,v.jsxs)(d.Xz,{className:"tjscube--content",children:[(0,v.jsx)(x.z,{}),(0,v.jsx)(p,{icon:e.icon})]})})]})},b=function(){var e=(0,s.useState)(),t=e[0],n=e[1],i=(0,l.useRouter)().pathname;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(r(),{id:o.__hash,children:o}),(0,v.jsx)("div",{className:"jsx-".concat(o.__hash)+" deepturn",children:(0,v.jsx)("div",{onDoubleClick:function(){return t&&n(!1)},className:"jsx-".concat(o.__hash)+" map-container",children:"/"==i&&(0,v.jsx)(v.Fragment,{children:(0,v.jsx)("div",{className:"jsx-".concat(o.__hash)+" deepturn__components",children:(0,v.jsx)("div",{className:"jsx-".concat(o.__hash)+" component--map",children:(0,v.jsx)(g,{icon:{bevel:{bevelEnabled:!0,bevelThickness:5,bevelSegments:15,bevelSize:2},icon:"deepturn-logo",texture:"/assets/backgrounds/lava1.jpeg",size:{x:300,y:300,z:9},animate:{rotate:{y:-2,x:1,speed:7e-4}}}})})})})})})]})},j=["h2.jsx-221491941{color:var(--primary-50);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;white-space:nowrap;font-size:var(--s-1);}","h3.jsx-221491941{background-color:var(--primary-o);border-radius:var(--border-radius);margin:var(--s-element) 0 var(--s-9);padding:var(--s-9) var(--s-4);color:var(--primary-10);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}","h4.jsx-221491941{line-height:1.2;--ui-icon-height:var(--s-6);color:var(--gray-30);--ui-icon-color:var(--gray-40);width:auto;}",".d-flex.jsx-221491941,.nirvana-index__content.jsx-221491941 .list.jsx-221491941,.nirvana-index__content.jsx-221491941,.nirvana-index.jsx-221491941,h3.jsx-221491941{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".survey.jsx-221491941{width:100%;position:relative;}",".nirvana-index.jsx-221491941{gap:var(--s-1);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding-bottom:100px;width:100%;margin:var(--s-element) 0;}","@media (max-width:1260px){.nirvana-index.jsx-221491941{padding:var(--s-4);width:var(--s-4-width);}}","@media (max-width:900px){.nirvana-index.jsx-221491941{width:var(--s-9-width);padding:var(--s-9);}}",".nirvana-index__content.jsx-221491941{gap:var(--s-1);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}",".nirvana-index__content.jsx-221491941 .list.jsx-221491941{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);}"];j.__hash="221491941";var w=n(85854),y=[".d-flex.jsx-3933882060,.home-grid-item__icon.jsx-3933882060,.home-grid-item__header.jsx-3933882060,.home-grid-item.jsx-3933882060{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".home-grid-item.jsx-3933882060{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;border-radius:var(--border-radius);gap:var(--s-4);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background-color:var(--gray-90);overflow:hidden;padding:var(--s-element) var(--s-4);}",".home-grid-item__header.jsx-3933882060{width:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);}",".home-grid-item__title.jsx-3933882060{height:100%;color:var(--primary-50);font-size:var(--s-3);text-transform:capitalize;}",".home-grid-item__body.jsx-3933882060{color:var(--gray-50);}",".home-grid-item__icon.jsx-3933882060{height:90px;--ui-icon-width:90px;--ui-icon-height:90px;--ui-icon-color:var(--primary-o);}",".home-grid-item__center.jsx-3933882060{text-align:center;font-size:var(--s-5);line-height:1.5;}"];y.__hash="3933882060";var k=n(55140),_=function(e){var t=e.icon,n=e.title,i=e.children;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(r(),{id:y.__hash,children:y}),(0,v.jsxs)("div",{className:"jsx-".concat(y.__hash)+" home-grid-item",children:[(0,v.jsxs)("div",{className:"jsx-".concat(y.__hash)+" home-grid-item__header",children:[t&&(0,v.jsx)("div",{className:"jsx-".concat(y.__hash)+" home-grid-item__icon",children:(0,v.jsx)(k.a,{icon:t})}),(0,v.jsx)("div",{className:"jsx-".concat(y.__hash)+" home-grid-item__title",children:n})]}),(0,v.jsx)("div",{className:"jsx-".concat(y.__hash)+" home-grid-item__body home-grid-item__center",children:i})]})]})},O=n(6005),N=n(89360),z=n(11907),L=function(){var e=".nirv{\n display: flex;\n color: var(--blue-10);\n --ui-icon-color: var(--blue-10);\n gap: var(--s-9);\n font-size: var(--s-5);\n }";return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(r(),{id:e.__hash,children:e}),(0,v.jsxs)("div",{className:"jsx-".concat(e.__hash)+" nirv",children:[(0,v.jsx)(k.a,{icon:"nirvana-energy-logo"}),"Nirvana Energy"]})]})},S=function(){var e=function(e){var t=String(1e3*e/240).split("."),n=Number(String(t[1])[0])>5?Number(t[0])+2:t[0];return"".concat(e," kW = ").concat(n," Amps")},t=[{manufacturer:"Tesla",capacity:"13 kW",output:e(5.5)},{manufacturer:"LG",capacity:"15 kW",output:e(6.4)},{manufacturer:"Enphase",capacity:"12 kW",output:e(5)},{manufacturer:"Generack",capacity:"15.5 kW",output:e(4.5)},{manufacturer:"GrowWatt",capacity:"10 kW",output:e(6)},{manufacturer:(0,v.jsx)(L,{}),capacity:"15 kW",output:e(12)}];return(0,z.aF)(),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(r(),{id:j.__hash,children:j}),(0,v.jsxs)("div",{id:"nirvana-index",className:"jsx-".concat(j.__hash)+" nirvana-index",children:[(0,v.jsx)(O.default,{id:"configure",startButton:"configure your back up system"}),(0,v.jsxs)("div",{className:"jsx-".concat(j.__hash)+" nirvana-index__content",children:[(0,v.jsxs)("div",{className:"jsx-".concat(j.__hash)+" list",children:[(0,v.jsx)("h3",{className:"jsx-".concat(j.__hash),children:"6 Key Questions to Enhance Your Solar System with Batteries"}),(0,v.jsxs)("h4",{className:"jsx-".concat(j.__hash),children:[(0,v.jsx)(k.a,{icon:"fa-cube"}),"Can I add batteries to my exisiting solar system?"]}),(0,v.jsxs)("h4",{className:"jsx-".concat(j.__hash),children:[(0,v.jsx)(k.a,{icon:"fa-cube"}),"What determines that the battery will back up what I need?"]}),(0,v.jsxs)("h4",{className:"jsx-".concat(j.__hash),children:[(0,v.jsx)(k.a,{icon:"fa-cube"}),"Will this battery keep me backed up if the grid stays down?"]}),(0,v.jsxs)("h4",{className:"jsx-".concat(j.__hash),children:[(0,v.jsx)(k.a,{icon:"fa-cube"}),"What does this battery setup have that others dont?"]}),(0,v.jsxs)("h4",{className:"jsx-".concat(j.__hash),children:[(0,v.jsx)(k.a,{icon:"fa-cube"}),"Is there a limit to how much the batteries can power in my home at the same time?"]}),(0,v.jsxs)("h4",{className:"jsx-".concat(j.__hash),children:[(0,v.jsx)(k.a,{icon:"fa-cube"}),"Can I change what I want backed up in the future"]})]}),(0,v.jsx)("h2",{className:"jsx-".concat(j.__hash),children:"Time to Create your Nirvana!"}),(0,v.jsx)("h4",{className:"jsx-".concat(j.__hash),children:"On and Off-grid battery back up If you're thinking about going off grid or want to learn more about backup battery systems, it's time to create your"}),(0,v.jsx)("h2",{className:"jsx-".concat(j.__hash),children:"The Importance of Backup Batteries"}),(0,v.jsxs)(w.Z,{sm:1,md:3,margin:"0 0 45px",gap:15,children:[(0,v.jsx)(_,{icon:"fal-cloud-bolt-sun",title:"power outages",children:"With backup batteries, you can be sure your home will have power even during outages. Most batteries will only back up what is stored when the grid goes down. Be sure to get our system that refills the battery if the grid stays down."}),(0,v.jsx)(_,{icon:"fa-globe",title:"environmental concerns",children:"Using solar battery backup systems helps reduce your carbon footprint. The less you rely on the grid, the more you do for our planet."}),(0,v.jsx)(_,{icon:"fal-circle-dollar",title:"cost savings",children:"Solar battery backup systems can help you save money on electricity bills in the long run. The 30% Federal Tax credit applies to battery storage that is connected to a PV"})]}),(0,v.jsx)("h3",{className:"jsx-".concat(j.__hash),children:"On-grid vs Off-grid Solar Battery Backup Systems"}),(0,v.jsxs)(w.Z,{sm:1,md:2,margin:"0 0",gapX:10,children:[(0,v.jsx)(_,{title:"on-grid",children:"On-grid systems are connected to the utility grid and can sell excess energy back to the power company or store excess energy depending on how the system is"}),(0,v.jsx)(_,{title:"environmental concerns",children:"Off-grid systems are not connected to the utility grid. These systems can be tailored to fit your needs no matter how big or small and using several different power sources."})]}),(0,v.jsx)("br",{className:"jsx-".concat(j.__hash)}),(0,v.jsx)("br",{className:"jsx-".concat(j.__hash)}),(0,v.jsx)("br",{className:"jsx-".concat(j.__hash)}),(0,v.jsx)(N.Z,{options:{hide:"footer",tableTitle:"Discover Better Performance, Compared to Leading Brands."},data:t})]})]})]})},E=n(23992),P=n(51633),D=[".d-flex.jsx-409688364{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}"];D.__hash="409688364";var M=n(59499),C=n(16835),T=n(6158),Z=n.n(T),A=[".d-flex.jsx-61180471,.map-tools.jsx-61180471,.map-content.jsx-61180471,.map-container.jsx-61180471{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}","@-webkit-keyframes fadein-jsx-61180471{0%{opacity:0;-webkit-filter:blur(2px);filter:blur(2px);}100%{opacity:1;-webkit-filter:blur(0);filter:blur(0);}}","@keyframes fadein-jsx-61180471{0%{opacity:0;-webkit-filter:blur(2px);filter:blur(2px);}100%{opacity:1;-webkit-filter:blur(0);filter:blur(0);}}",".map-container.jsx-61180471{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom:0;z-index:1;}","@media (max-width:1100px){.map-container.jsx-61180471{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}",".map.jsx-61180471{height:100%;}","@media (max-width:1100px){.map.jsx-61180471{position:relative;}}",".map-content.jsx-61180471{width:100%;height:100%;position:relative;}","@media (max-width:1100px){.map-content.jsx-61180471{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}",".map__vessel-details.jsx-61180471{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:-webkit-max-content;width:-moz-max-content;width:max-content;height:-webkit-max-content;height:-moz-max-content;height:max-content;}",".map-tools.jsx-61180471{gap:var(--s-9);cursor:pointer;color:var(--white);--ui-icon-color:var(--white);position:absolute;bottom:var(--s-element);left:var(--s-9);right:var(--s-9);bottom:0;padding:var(--s-1);--ui-icon-color:var(--gray-30);-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation:fadein-jsx-61180471 1s ease-in forwards;animation:fadein-jsx-61180471 1s ease-in forwards;-webkit-transition:all 1s ease-in-out;transition:all 1s ease-in-out;height:-webkit-max-content;height:-moz-max-content;height:max-content;}"];A.__hash="61180471";var R=n(42700),Y=n(31831),F=n(50029),B=n(64687),H=n.n(B),I=n(10394),q=n(36946),X=function(){var e=(0,q.dd)(),t=e.openModal,n=e.closeModal,i=e.isModalOpen,r=(0,s.useState)(),a=r[0],o=r[1],l=(0,s.useState)(!1),c=l[0],d=l[1],u=(0,s.useRef)(null),x=(0,s.useCallback)(function(e){o([Number(e.coords.longitude.toFixed(2)),Number(e.coords.latitude.toFixed(2))])},[]),m=(0,s.useCallback)(function(){console.error("Unable to retrieve your location"),d(!0)},[]),f=(0,s.useCallback)(function(){var e=u.current;e&&"granted"===e.state?(n(),navigator.geolocation.getCurrentPosition(x,m)):d(!0)},[n,m,x]),h=(0,s.useCallback)(function(){navigator.permissions?navigator.permissions.query({name:"geolocation"}).then(function(e){u.current=e,e.addEventListener("change",f),"granted"===e.state?navigator.geolocation.getCurrentPosition(x,m):"prompt"!==e.state||i?d(!0):i||t({title:"Know Your Location",confirm:{title:"Enable Location",body:"To use this feature, please enable location access.",statements:[{label:"Allow",onClick:function(){var e;null===(e=u.current)||void 0===e||e.addEventListener("change",f),navigator.geolocation.getCurrentPosition(x,m)}},{label:"Deny",onClick:function(){n(),d(!0)}}]}})}).catch(function(e){console.error("Error querying permissions",e),d(!0)}):(console.error("Permission API not supported"),d(!0))},[f,m,x,i]);return(0,s.useEffect)(function(){return function(){var e=u.current;e&&e.removeEventListener("change",f)}},[f]),{lngLat:a,requestLocation:h,permissionDenied:c}},U=n(53618);function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function W(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.require,n=(0,I.ko)("IMemberService"),i=(0,q.dd)(),r=i.isModalOpen,a=i.openModal,o=i.closeModal,c=(0,s.useState)("sign-in"),d=c[0],u=c[1],x=(0,s.useState)(),m=x[0],f=x[1],h=(0,l.useRouter)().query,p=X(),g=p.lngLat,b=p.requestLocation,j=p.permissionDenied,w=(0,s.useState)(),y=w[0],k=w[1],_=(0,s.useState)(function(){var e=n.getCurrentUser();return e?W(W({},e),{},{userAgent:{user_agent:"",user_agent_data:null,wan:""},lngLat:g}):void 0}),O=_[0],N=_[1];(0,s.useEffect)(function(){var e,t=(e=(0,F.Z)(H().mark(function e(){var t,n,i,r,a;return H().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.navigator.userAgent,i="userAgentData"in(n=navigator)?n.userAgentData:null,N(function(e){return W(W({},e),{},{userAgent:{user_agent:t,user_agent_data:i}})}),e.prev=4,e.next=7,fetch("https://ipapi.co/json/");case 7:if(!(r=e.sent).ok){e.next=16;break}return e.next=11,r.json();case 11:a=e.sent.ip,N(function(e){return W(W({},e),{},{userAgent:W(W({},e.userAgent),{},{wan:a})})}),e.next=17;break;case 16:console.error("Failed to fetch IP address information.");case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(4),console.error("Error fetching IP address information:",e.t0);case 22:case"end":return e.stop()}},e,null,[[4,19]])})),function(){return e.apply(this,arguments)});return t(),window.addEventListener("load",t),function(){window.removeEventListener("load",t)}},[]);var z=function(e){r||(u(e),a({title:"sign in ",children:(0,v.jsx)(U.default,{view:e,onClose:o,onViewChange:u,onSignup:L})}))},L=function(e){var t=null==e?void 0:e.status;if(!t){alert("dev, handle this! 212");return}switch(t){case"created":case"existing":null==e||e.email}u("sign-in"),f(e.email)};(0,s.useEffect)(function(){h&&h.verify&&"verify"!==d&&u("verify"),void 0===m||r||"sign-in"===d||u("sign-in")},[h,r,m,d]),(0,s.useEffect)(function(){g&&N(function(e){return W(W({},e),{},{lngLat:g})})},[g]),(0,s.useEffect)(function(){O&&!O.userAgent.user_agent&&N(function(e){return W(W({},e),{},{userAgent:{user_agent:window.navigator.userAgent,user_agent_data:navigator.userAgentData||null}})})},[O]);var S=function(){!t||"location"===t&&null!=O&&O.id&&"user"===y&&r||(y&&"location"===t&&"done"===y||k("user"),z("sign-in"))},E=function(){"user"!==y||"sign-in"!==d||r?(O||"location"===t)&&k("location"):k("location")};return(0,s.useEffect)(function(){t&&(null!=O&&O.id||void 0!==y||S(),"location"!==y&&E(),"location"!==y||null!=O&&O.lngLat||r||j||b(),j&&(k("done"),N(function(e){return W(W({},e),{},{lngLat:[0,0]})})))},[r,j,y]),O},J=n(27812),K=function(e,t){var n=t.lngLat,i=void 0===n?[0,0]:n,r=t.zoom,a=t.offset,s=void 0===a?{x:0,y:0}:a,o=t.direction;if(e){var l=(0,J.Z)(i);if(o){var c=e.getCanvas();c.width,c.height;var d=0,u=0;switch(o){case"up":u=-s.y;break;case"down":u=s.y;break;case"left":d=-s.x;break;case"right":d=s.x}var x=e.project(i);x.x+=d,x.y+=u,l=e.unproject(x).toArray()}e.flyTo({center:l,zoom:void 0===r?9:r,essential:!0})}},Q=[".d-flex.jsx-1985165931,.vessel-details.jsx-1985165931,.vessel-details--container.jsx-1985165931{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".d-flex-content.jsx-1985165931,.vessel-details--images.jsx-1985165931,.vessel-details-content.jsx-1985165931{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-9);}","@-webkit-keyframes flicker-jsx-1985165931{0%{background-color:#ffc40c;}50%{background-color:#b3b3b3;box-shadow:-2px -1px 7px #b3b3b3,2px 1px 6px #b3b3b3;}100%{background-color:#ffc40c;}}","@keyframes flicker-jsx-1985165931{0%{background-color:#ffc40c;}50%{background-color:#b3b3b3;box-shadow:-2px -1px 7px #b3b3b3,2px 1px 6px #b3b3b3;}100%{background-color:#ffc40c;}}","@-webkit-keyframes bigSlide-jsx-1985165931{from{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);}to{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);}}","@keyframes bigSlide-jsx-1985165931{from{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);}to{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);}}","@-webkit-keyframes smallSlide-jsx-1985165931{from{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);}to{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}}","@keyframes smallSlide-jsx-1985165931{from{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);}to{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}}",".vessel-details--container.jsx-1985165931{z-index:1006;position:fixed;right:0;height:100vh;}","@media (max-width:1100px){.vessel-details--container.jsx-1985165931{height:unset;width:calc(100% - 20px);right:auto;min-width:110px;bottom:var(--s-5);}}",".vessel-details--container.show.jsx-1985165931{opacity:1;visibility:visible;-webkit-animation:bigSlide-jsx-1985165931 0.5s forwards ease-out;animation:bigSlide-jsx-1985165931 0.5s forwards ease-out;}","@media (max-width:1260px){.vessel-details--container.show.jsx-1985165931{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-animation:smallSlide-jsx-1985165931 0.5s forwards ease-out;animation:smallSlide-jsx-1985165931 0.5s forwards ease-out;}}",".vessel-details--container.hide.jsx-1985165931{opacity:0;visibility:hidden;-webkit-animation:bigSlide-jsx-1985165931 0.5s reverse ease-out;animation:bigSlide-jsx-1985165931 0.5s reverse ease-out;}","@media (max-width:1260px){.vessel-details--container.hide.jsx-1985165931{-webkit-animation:smallSlide-jsx-1985165931 0.5s reverse ease-out;animation:smallSlide-jsx-1985165931 0.5s reverse ease-out;}}",".vessel-details.jsx-1985165931{width:var(--s-9-width);height:var(--s-2-width);padding:var(--s-5) var(--s-9);position:relative;overflow:hidden;border-radius:var(--border-radius);overflow-y:auto;right:var(--s-9);background-color:var(--yellow-50);box-shadow:inset calc(var(--s-12) * -1) calc(var(--s-12) * -1) var(--s-11) var(--s-11) var(--red-50),inset 0 0 var(--s-11) var(--s-11) var(--blue-10);}","@media (max-width:1100px){.vessel-details.jsx-1985165931{border-radius:var(--border-radius);border:none;height:calc(100% + var(--s-8));width:var(--s-9-width);padding:0 var(--s-9) var(--s-9);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;left:auto;right:auto;top:calc(var(--s-8) * -1);min-width:110px;}}",".vessel-details-sliver.jsx-1985165931{border-radius:var(--s-5);margin:var(--s-10);cursor:-webkit-grab;cursor:-moz-grab;cursor:grab;height:300px;min-width:var(--s-10);position:absolute;left:0;}","@media (max-width:1100px){.vessel-details-sliver.jsx-1985165931{height:var(--s-9);min-width:300px;}}",".vessel-details-content.jsx-1985165931{gap:var(--s-4);height:100%;width:var(--s-6-width);}",".vessel-details-content.dragging.jsx-1985165931{-webkit-filter:brightness(0.66);filter:brightness(0.66);}","@media (max-height:1100px){.vessel-details-content.jsx-1985165931{height:unset;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}}","@media (max-width:1100px){.vessel-details-content.jsx-1985165931{padding:var(--s-9) 0 var(--s-1);}}",".vessel-details-content--header.jsx-1985165931{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;}",".vessel-details-content--body.jsx-1985165931{gap:var(--s-1);border-radius:var(--border-radius);width:var(--s-9-width);height:var(--s-9-width);padding:var(--s-9);}",".vessel-details-content--body-description.jsx-1985165931{font-family:Game;}",".vessel-details--images.jsx-1985165931{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;gap:var(--s-9);}",".vessel-details--image.jsx-1985165931{width:33%;height:auto;overflow:hidden;border-radius:var(--s-11);}","@media (max-width:100px){.vessel-details--image.jsx-1985165931{min-height:100px;}}",".vessel-details--image-main.jsx-1985165931{border-radius:var(--s-11);width:100%;}",".walkman-button.jsx-1985165931{background-color:#000000;border-radius:50%;width:40px;height:40px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#ffffff;font-size:1.5rem;box-shadow:0 4px #808080;cursor:pointer;}",".walkman-button.jsx-1985165931:hover{background-color:black;}",".walkman-button.jsx-1985165931:active{background-color:#1a1a1a;box-shadow:0 2px #808080;}"];Q.__hash="1985165931";var $=n(85102);function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function et(e){for(var t=1;t=1100,x=(0,s.useState)(!1),m=x[0],f=x[1],h=(0,s.useState)(!1),p=h[0],g=h[1],b=u?{width:400,height:d}:{width:c-30,height:300},j=(0,s.useState)(b),w=j[0],y=j[1],k=(0,s.useRef)(null),_=null==k?void 0:k.current,O=(0,s.useRef)(null),N=(0,s.useRef)(null),z=(0,s.useRef)(0),L=(0,s.useCallback)(function(){var e;null!=k&&null!==(e=k.current)&&void 0!==e&&e.style&&(_.style=void 0),y(b),a(!1)},[a,b]);(0,s.useEffect)(function(){p&&L()},[p,L]);var S=(0,s.useCallback)(function(){f(!1);var e=u?w.width:w.height;_&&(null==o||o(e),u?_.style.width="".concat(e,"px"):_.style.height="".concat(e,"px"),e<200&&L())},[w,u,o,L]),E=(0,s.useCallback)(function(e){if(_.style&&(_.style=void 0),m&&_){if(u){var t=c-30-e.clientX;if(t>c/2)return;y(function(e){return et(et({},e),{},{width:t})}),_.style.width="".concat(t,"px"),null==o||o(t),t<200&&L();return}var n=d-e.clientY;!(n>d/2)&&(y(function(e){return et(et({},e),{},{height:n})}),_.style.height="".concat(n,"px"),null==o||o(n),n<200&&L())}},[m,u,c,d,o,L]);return((0,s.useEffect)(function(){return m?(window.addEventListener("mousemove",E),window.addEventListener("mouseup",S)):(window.removeEventListener("mousemove",E),window.removeEventListener("mouseup",S)),function(){window.removeEventListener("mousemove",E),window.removeEventListener("mouseup",S)}},[m,E,S]),i)?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(r(),{id:Q.__hash,children:Q}),(0,v.jsx)("div",{onTouchStart:function(e){O.current=e.touches[0].clientY,f(!0)},onTouchMove:function(e){if(null!==O.current){N.current=e.touches[0].clientY;var t=-1*Number(z.current)+_.offsetHeight/250?g(!0):_&&(_.style.transform="translateY(0)")),O.current=null,N.current=null,z.current=0},style:u?{width:w.width,height:d}:{width:0==c?400:void 0,height:w.height},className:"jsx-".concat(Q.__hash)+" "+"vessel-details--container ".concat(i?"show":"hide"),children:(0,v.jsxs)("div",{ref:k,className:"jsx-".concat(Q.__hash)+" vessel-details",children:[(0,v.jsx)("div",{onMouseDown:function(){return f(!0)},className:"jsx-".concat(Q.__hash)+" "+"vessel-details-sliver ".concat(m?"dragging":"")}),(null==i?void 0:i.name)&&(0,v.jsxs)("div",{className:"jsx-".concat(Q.__hash)+" "+"vessel-details-content ".concat(m?"dragging":""),children:[(0,v.jsx)("div",{className:"jsx-".concat(Q.__hash)+" vessel-details-content--header",children:(0,v.jsx)($.Z,et({},(t=i.name.split(" ",2),{title:(n=(0,C.Z)(t,2))[0],subTitle:n[1]})))}),(0,v.jsxs)("div",{className:"jsx-".concat(Q.__hash)+" vessel-details-content--body",children:[(0,v.jsx)("div",{className:"jsx-".concat(Q.__hash)+" vessel-details--images",children:i.images&&i.images.map(function(e,t){return(0,v.jsx)("img",{src:e,alt:"main",className:"jsx-".concat(Q.__hash)+" "+"vessel-details--image".concat(0===t?"-main":"")},t)})}),i.description&&(0,v.jsx)("div",{className:"jsx-".concat(Q.__hash)+" vessel-details-content--body-description",children:i.description})]})]})]})})]}):null},ei=[".map-search.jsx-1543705443{min-width:300px;}"];ei.__hash="1543705443";var er=n(98067),ea=function(e){var t,n=e.handleSearch,i=e.searched,a=(0,s.useState)("where to?"),o=a[0],l=a[1],c=["New York","Los Angeles","Chicago","Houston","Phoenix"];return(0,s.useEffect)(function(){var e=function(){var e=0;return t=setInterval(function(){l(c[e]),e=(e+1)%c.length},5e3),function(){clearInterval(t)}};setTimeout(function(){e()},5e3)},[]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(r(),{id:ei.__hash,children:ei}),(0,v.jsx)("div",{className:"jsx-".concat(ei.__hash)+" map-search",children:(0,v.jsx)(er.Z,{name:"address",variant:"transparent round",placeholder:o,value:i,onChange:n})})]})},es=function(e){e.lngLat;var t=e.setLngLat,n=e.map,i=(0,s.useState)(),r=i[0],a=i[1],o=function(e){var i=e.target.value,r=[null==i?void 0:i.lng,null==i?void 0:i.lat];r&&(a(i),t(r),K(n,{lngLat:r,zoom:14}))};return(0,s.useEffect)(function(){},[o]),{searched:r,handleSearch:o}},eo=n(20745),el=n(25675),ec=n.n(el),ed=function(e){var t=e.vessel,n=e.onClick,i=e.onMouseEnter,r=e.onMouseLeave,a=e.hideHover,s=void 0!==a&&a,o="vsl ".concat(null!=t&&t.className?t.className+"-mrkr":"");if(!t)return null;var l=function(e){var a=document.getElementById("vsl-".concat(t.id));a&&("click"===e?n&&n(t):"enter"===e?(s||null==a||a.classList.add("vsl-mrkr--hover"),i&&i(t)):"leave"===e&&setTimeout(function(){a.className="vsl-mrkr",r&&r(t)},2e3))},c=(null==t?void 0:t.className)=="user";return(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)("div",{onMouseEnter:function(){return l("enter")},onClick:function(){return l("click")},className:o,children:[(0,v.jsx)("div",{className:"vsl-icon",children:(0,v.jsx)(k.a,{glow:c,icon:c?"fal-circle-user":"fa-location-dot"})}),(0,v.jsx)("div",{id:"vsl-".concat(t.id),onMouseLeave:function(){return l("leave")},className:"vsl-mrkr",children:(0,v.jsxs)("div",{className:"vsl-mrkr--content",children:[(0,v.jsx)("div",{className:"vsl-mrkr--content-header",children:(0,v.jsx)("h4",{children:null==t?void 0:t.name})}),(null==t?void 0:t.images)&&(0,v.jsx)("div",{className:"vsl-mrkr--content-image",children:(0,v.jsx)(ec(),{fill:!0,src:t.images[0],alt:""})})]})})]})})};function eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ex(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=i.rpm,a=void 0===r?500:r,s=i.zoom,o=void 0===s?3:s,l=i.maxZoom,c=void 0===l?5:l;function d(){if(!ev&&!ep){var t=e.getZoom(),n=e.getCenter();if(to&&(i*=(c-t)/(c-o)),n.lng-=i,e.easeTo({center:n,duration:1500,easing:function(e){return e}})}}}e.on("moveend",d),d(),t=function(){ev=!0,eg=Date.now()},n=eh()(function(){ev=!1,eb=1+(Date.now()-(eg||Date.now()))/5e3,d()},3e3),e.on("mousedown",t),e.on("mouseup",n),e.on("touchstart",t),e.on("touchend",n),e.on("mousemove",n),e.on("touchmove",n),e.on("userhoverstart",function(){ep=!0}),e.on("userhoverend",function(){ep=!1,d()}),e.getLayer(ej)?(e.on("mouseenter",ej,function(){return e.fire("userhoverstart")}),e.on("mouseleave",ej,function(){return e.fire("userhoverend")})):console.warn('Layer "'.concat(ej,'" does not exist'))};function ey(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ek(e){for(var t=1;t=1100;e.current.style,a<100?s(!1):!1!==r&&(K(c,{lngLat:o.lngLat,zoom:15,offset:d?{x:.5*a,y:0}:{y:.5*a,x:0},direction:d?"right":"down"}),t.current&&t.current.resize())}};function eN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}Z().accessToken="pk.eyJ1IjoibGFuZG9sYWJydW0iLCJhIjoiY2xnMDZ1aGVsMHJ5MzNsdGF3aHZhM3dtbyJ9.UihOXtkEeRk5tQDgDK8cLg";var ez=function(e){var t=e.options,n=e.vessels,i=e.onVesselClick,a=e.require,o=e.hideHover,c=(0,s.useRef)(null),d=(0,s.useRef)(null),u=(0,Y.U2)(),x=(0,C.Z)(u,2),m=x[0],f=x[1],h=G({require:a}),p=(0,l.useRouter)(),g=(0,s.useState)(null),b=g[0],j=g[1],w=(0,s.useState)("clw76pwt4003o01q120rh1mkk"),y=w[0],_=w[1],O=(0,s.useState)(),N=O[0],z=O[1],L=(0,R.Z)(),S=L.width,E=L.height,P={container:c.current,center:(null==t?void 0:t.center)||(null==h?void 0:h.lngLat)||[0,10],zoom:(null==t?void 0:t.zoom)||(S<900?.6:S>1400?2:(S-900)/500*1.4+.6),style:"mapbox://styles/landolabrum/".concat(y),projection:{name:"globe"},antialias:!0,rpm:null==t?void 0:t.rpm},D=(0,s.useState)(P.zoom||8),T=D[0],F=D[1],B=(0,s.useState)(P.center||[0,0]),H=B[0],I=B[1],q=es({lngLat:H,setLngLat:I,map:d.current}),X=q.searched,U=q.handleSearch,V={name:null!=h&&h.name?"".concat(h.name):"You are here",className:"user",images:["https://a0.muscache.com/im/pictures/hosting/Hosting-U3RheVN1cHBseUxpc3Rpbmc6MTEyNDAxNzM1NTk1NjgzMjg4Mw%3D%3D/original/e1573119-8f57-4e97-9d4f-9ed4be4de8b4.jpeg?im_w=1200","https://a0.muscache.com/im/pictures/hosting/Hosting-U3RheVN1cHBseUxpc3Rpbmc6MTEyNDAxNzM1NTk1NjgzMjg4Mw%3D%3D/original/a6f2bd88-0ef0-455b-8f00-433eee5b13c2.jpeg?im_w=720"],lngLat:(null==h?void 0:h.lngLat)||[0,0]},W={onClick:function(e){var t=null==d?void 0:d.current;t&&e&&(j(e),i&&i(e),K(t,{lngLat:e.lngLat,zoom:15}))},onMouseEnter:function(e){},onMouseLeave:function(){}},J=function(){null!=t&&t.loadingDelay?t.loadingDelay&&setTimeout(function(){f({active:!1})},t.loadingDelay):f({active:!1})},Q=(0,R.Z)().width;(0,s.useEffect)(function(){var e=N&&N===p.asPath,t=!!((null==h?void 0:h.lngLat)||!a)&&c.current&&e;if(N||z(p.asPath),d.current||!e||m.active?!e&&m.active&&J():f({active:!0,body:" ",iconSize:Q<=1100?"70vw":"350px"}),t){var i=new(Z()).Map(function(e){for(var t=1;t6?10:6})},icon:T>6?"fa-globe":"fa-map"})]})]})})]})},eL=function(){var e=(0,l.useRouter)().pathname,t=(0,s.useState)(),n=(t[0],t[1]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(r(),{id:D.__hash,children:D}),(0,v.jsx)("div",{className:"jsx-".concat(D.__hash)+" deepturn",children:"/"==e&&(0,v.jsx)(ez,{onVesselClick:n,hideHover:!0,options:{rpm:200,loadingDelay:3e3},vessels:[{name:"Two Story Smart Home",lngLat:[-75.1867254,39.9307048],className:"partner",images:["https://a0.muscache.com/im/pictures/hosting/Hosting-U3RheVN1cHBseUxpc3Rpbmc6MTEyNDAxNzM1NTk1NjgzMjg4Mw%3D%3D/original/e1573119-8f57-4e97-9d4f-9ed4be4de8b4.jpeg?im_w=1200","https://a0.muscache.com/im/pictures/hosting/Hosting-U3RheVN1cHBseUxpc3Rpbmc6MTEyNDAxNzM1NTk1NjgzMjg4Mw%3D%3D/original/a6f2bd88-0ef0-455b-8f00-433eee5b13c2.jpeg?im_w=720"],description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."}]})})]})},eS=function(){var e=(0,s.useState)(),t=e[0],n=e[1],i={nirv1:(0,v.jsx)(S,{}),mb1:(0,v.jsx)(b,{}),ah1:(0,v.jsx)(eL,{})},o=E.Z.merchant.mid;return(0,s.useEffect)(function(){t||n(o)},[]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(r(),{id:a.__hash,children:a}),(0,v.jsx)(P.Z,{currentView:t,views:i})]})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/4592-8576200bd4e43f9f.js b/_next/static/chunks/4592-8576200bd4e43f9f.js new file mode 100644 index 000000000..0fc1aeca9 --- /dev/null +++ b/_next/static/chunks/4592-8576200bd4e43f9f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4592],{89360:function(t,e,a){a.d(e,{Z:function(){return V}});var s=a(50029),i=a(21378),n=a.n(i),r=a(64687),o=a.n(r),l=a(67294),x=['.adaptable.jsx-2776381951{font-family:"Atkinson Hyperlegible",sans-serif;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;border-radius:5px;font-weight:300;background-color:var(--gray-90);font-size:14px;}',"@media (max-width:1100px){.adaptable.jsx-2776381951{overflow:hidden;}}","@media (max-width:900px){.adaptable.jsx-2776381951{background-color:var(--gray-80);}}",".adaptable.adaptable-mini.jsx-2776381951{font-size:16px;background-color:transparent;color:var(--gray-30);}"];x.__hash="2776381951";var d=a(59499),c=a(16835),j=[".adapt-table-content__scroll-to-top.jsx-507311106{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:fixed;bottom:var(--s-4);right:var(--s-4);width:var(--s-element);aspect-ratio:9/6;z-index:2;border-radius:4px;box-shadow:var(--box-shadow);opacity:0.5;background-color:var(--gray-70);}",".adapt-table-content__scroll-to-top.jsx-507311106:hover{--ui-icon-color:var(--gray-30);opacity:1;}",".hide.jsx-507311106{display:none;}",'.table-container.jsx-507311106{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-radius:5px;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;font-weight:300;font-family:"Atkinson Hyperlegible",sans-serif;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:left;}',"@media (max-width:900px){.table-container.table-container-mini.jsx-507311106{min-height:300px;width:100%;}.table-container.table-container-mini.jsx-507311106::-webkit-scrollbar-thumb{background-color:var(--blue-60);border-radius:5px;width:15px;}.table-container.table-container-mini.jsx-507311106::-webkit-scrollbar{border-radius:0 7px 7px 0;width:17px;aspect-ratio:1/1;background-color:var(--dark);}}"];j.__hash="507311106";var h=[".d-flex.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content--image.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content--image.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content--image.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content--image.jsx-3691334019{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}","@-webkit-keyframes fadeIn-jsx-3691334019{0%{opacity:0;}70%{opacity:0;}85%{opacity:0.3;}100%{opacity:1;}}","@keyframes fadeIn-jsx-3691334019{0%{opacity:0;}70%{opacity:0;}85%{opacity:0.3;}100%{opacity:1;}}","table.jsx-3691334019{margin-bottom:auto;width:100%;display:none;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0;border-radius:var(--border-radius);overflow:hidden;border:solid 1px var(--gray-70);}","table.table-show.jsx-3691334019{display:table;}","table.hide-header.jsx-3691334019{border-radius:var(--border-radius);border:solid 1px transparent;overflow:hidden;}","@media (max-width:900px){table.jsx-3691334019 thead.jsx-3691334019{display:none;}}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019{background-color:var(--gray-80-o);}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019{text-transform:capitalize;}","table.table-mini.jsx-3691334019{margin-top:15px;padding-top:15px;}","table.table-mini.jsx-3691334019 tr.jsx-3691334019{background-color:unset !important;}","table.table-mini.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019,table.table-mini.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019{border-right:none !important;}","table.table-mini.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019:last-child .th-content.mini.jsx-3691334019,table.table-mini.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019:last-child .td-content.jsx-3691334019,table.table-mini.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019:last-child .th-content.mini.jsx-3691334019,table.table-mini.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019:last-child .td-content.jsx-3691334019{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019{height:50px;width:100%;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019:hover,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019:hover{background-color:var(--gray-80-o);}","table.jsx-3691334019 thead.jsx-3691334019 tr.mobile-tr.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.mobile-tr.jsx-3691334019{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:-webkit-max-content;height:-moz-max-content;height:max-content;border-radius:5px;background-color:var(--gray-90);padding:10px;width:inherit;gap:5px;margin:10px;min-height:-webkit-max-content;min-height:-moz-max-content;min-height:max-content;height:-webkit-max-content;height:-moz-max-content;height:max-content;}","table.jsx-3691334019 thead.jsx-3691334019 tr.mobile-tr.mini.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.mobile-tr.mini.jsx-3691334019{margin:0;padding:0 8px;}","table.jsx-3691334019 thead.jsx-3691334019 tr.mobile-tr.jsx-3691334019:hover,table.jsx-3691334019 tbody.jsx-3691334019 tr.mobile-tr.jsx-3691334019:hover{background-color:var(--gray-80-o);}","@media (max-width:450px){table.jsx-3691334019 thead.jsx-3691334019 tr.mobile-tr.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.mobile-tr.jsx-3691334019{max-width:calc(100% - 8px);margin:5px 10px;}}","@media (max-width:900px){table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:-webkit-max-content;height:-moz-max-content;height:max-content;border-radius:5px;background-color:var(--gray-90);padding:10px;width:inherit;gap:5px;margin:10px;min-height:-webkit-max-content;min-height:-moz-max-content;min-height:max-content;height:-webkit-max-content;height:-moz-max-content;height:max-content;}table.jsx-3691334019 thead.jsx-3691334019 tr.mini.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.mini.jsx-3691334019{margin:0;padding:0 8px;}table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019:hover,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019:hover{background-color:var(--gray-80-o);}}","@media (max-width:900px) and (max-width:450px){table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019{max-width:calc(100% - 8px);margin:5px 10px;}}","table.jsx-3691334019 thead.jsx-3691334019 tr.mini.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.mini.jsx-3691334019{max-width:inherit;cursor:default;}","table.jsx-3691334019 thead.jsx-3691334019 tr.mini.jsx-3691334019 td.jsx-3691334019:last-child,table.jsx-3691334019 tbody.jsx-3691334019 tr.mini.jsx-3691334019 td.jsx-3691334019:last-child{text-align:right;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019:last-child td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019:last-child td.jsx-3691334019{border-bottom-color:transparent;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019:last-child td.jsx-3691334019:first-child,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019:last-child td.jsx-3691334019:first-child{border-radius:0 0 0 5px;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019:last-child td.jsx-3691334019:last-child,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019:last-child td.jsx-3691334019:last-child{border-radius:0 0 5px 0;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019{cursor:col-resize;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .resizeable.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .resizeable.jsx-3691334019{position:relative;overflow:hidden;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .resizeable.jsx-3691334019 .th-content.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .resizeable.jsx-3691334019 .th-content.jsx-3691334019{padding-right:20px;}",'table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .resizeable.jsx-3691334019::after,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .resizeable.jsx-3691334019::after{content:"";position:absolute;top:0;right:0;bottom:0;width:10px;background-color:var(--gray-80-o);cursor:col-resize;}',"table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019{padding:5px 10px;position:relative;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content;border-bottom:solid 1px var(--gray-70);}","@media (min-width:900px){table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content.jsx-3691334019{overflow-x:hidden;overflow-y:hidden;white-space:nowrap;text-overflow:ellipsis;}}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019:not(:last-child),table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019:not(:last-child),table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019:not(:last-child),table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019:not(:last-child){border-right:solid 1px var(--gray-70);}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019{width:100%;max-width:100%;padding:10px;border-bottom:none;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019:not(:last-child),table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019:not(:last-child),table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019:not(:last-child),table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019:not(:last-child){border-right:none;}","@media (max-width:450px){table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:10px;}}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019::before,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019::before,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019::before,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019::before{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-transform:capitalize;content:attr(data-key);-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--gray-50);}","@media (max-width:900px){table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019{width:100%;max-width:100%;padding:10px;border-bottom:none;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019:not(:last-child),table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019:not(:last-child),table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019:not(:last-child),table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019:not(:last-child){border-right:none;}}","@media (max-width:900px) and (max-width:450px){table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:10px;}}","@media (max-width:900px){table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019::before,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019::before,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019::before,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019::before{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-transform:capitalize;content:attr(data-key);-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--gray-50);}}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.index.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.index.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.index.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.index.jsx-3691334019{min-width:20px;text-align:center;width:25px;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-hover.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-hover.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-hover.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-hover.jsx-3691334019{display:none;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content.jsx-3691334019{position:relative;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content--image.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content--image.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content--image.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content--image.jsx-3691334019{width:var(--s-4-width);padding:var(--s-4);aspect-ratio:1;--ui-icon-color:var(--gray-60-o);--ui-icon-width:var(--s-element);--ui-icon-height:100%;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.hoverable.jsx-3691334019:hover .td-hover.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.hoverable.jsx-3691334019:hover .td-hover.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.hoverable.jsx-3691334019:hover .td-hover.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.hoverable.jsx-3691334019:hover .td-hover.jsx-3691334019{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}"];h.__hash="3691334019";var b=a(49334),p=a(6253),m=[".adapt-table-alt-view.jsx-3782774210{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:15px;background-color:var(--gray-70);color:var(--gray-50);border-radius:5px;margin:auto auto 20px;width:calc(100% - 20px);aspect-ratio:9/4;border:solid 1px var(--gray-60);outline:solid 1px var(--gray-80);}",".adapt-table-alt-view.jsx-3782774210 .title.jsx-3782774210{font-size:1.56rem;width:66%;line-height:1.5;}","@media (max-width:900px){.adapt-table-alt-view.jsx-3782774210 .title.jsx-3782774210{font-size:1.2rem;width:80%;text-align:center;}}",".adapt-table-alt-view.jsx-3782774210 .search.jsx-3782774210{font-style:italic;line-height:1;font-size:24px;color:#f90;}",".adapt-table-alt-view.jsx-3782774210 .error.jsx-3782774210{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;font-size:18px;gap:6px;}",".adapt-table-alt-view.jsx-3782774210 .error.jsx-3782774210 .error-title.jsx-3782774210{color:#f90;font-size:26px;}",".adapt-table-alt-view.jsx-3782774210 .error.jsx-3782774210 .error-location.jsx-3782774210{font-style:italic;margin-left:3px;}",".adapt-table-alt-view.adapt-table-alt-view-mini.jsx-3782774210{width:inherit;height:290px;margin:16px 0 0;}",".adapt-table-alt-view.adapt-table-alt-view-mini.jsx-3782774210 .title.jsx-3782774210{font-size:1.2rem;}"];m.__hash="3782774210";var f=a(85153),u=[".table-loader.jsx-1035785319{width:auto;margin:10px;border:solid 1px var(--gray-70);border-radius:5px;background-color:var(--gray-80-o);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:inherit;min-height:500px;position:relative;}"];u.__hash="1035785319";var w=a(85893);function g(){return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(n(),{id:u.__hash,children:u}),(0,w.jsx)("div",{className:"jsx-".concat(u.__hash)+" table-loader",children:(0,w.jsx)(f.Z,{})})]})}var y=function(t){var e=t.view,a=t.search,s=t.variant,i=t.title,r=(0,l.useState)(null),o=r[0],x=r[1];return((0,l.useEffect)(function(){x(e)},[e]),"empty"===o)?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(n(),{id:m.__hash,children:m}),(0,w.jsx)("div",{className:"jsx-".concat(m.__hash)+" "+"adapt-table-alt-view".concat(s?" adapt-table-alt-view-"+s:""),children:(0,w.jsx)("div",{className:"jsx-".concat(m.__hash)+" title",children:"No data found. Please check your filters, update the date range, or try again later as new data may be added."})})]}):"error"===o?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(n(),{id:m.__hash,children:m}),(0,w.jsxs)("div",{className:"jsx-".concat(m.__hash)+" "+"adapt-table-alt-view".concat(s?" adapt-table-alt-view-"+s:""),children:[a&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:"jsx-".concat(m.__hash)+" title",children:["We could not find any ",i," containing:"]}),(0,w.jsx)("div",{className:"jsx-".concat(m.__hash)+" search",children:a})]}),!a&&(0,w.jsxs)("div",{className:"jsx-".concat(m.__hash)+" error",children:[(0,w.jsx)("div",{className:"jsx-".concat(m.__hash)+" error-title",children:"An error occured"}),(0,w.jsxs)("div",{className:"jsx-".concat(m.__hash),children:["Unable to display data from:",(0,w.jsx)("span",{className:"jsx-".concat(m.__hash)+" error-location",children:i})]})]})]})]}):"loading"===o?(0,w.jsx)(g,{}):(0,w.jsx)(w.Fragment,{})},v=a(21375),_=a(10577),k=a(42700),N=function(t){var e=t.data,a=t.variant,s=t.rowClickable,i=t.options,n=t.loading,r=(0,l.useRef)(null),o=(0,l.useRef)(null),x=(0,l.useRef)(null),d=(0,l.useState)(null),c=d[0],j=d[1],h=(0,l.useState)("loading"),b=h[0],p=h[1],m=(0,k.Z)().width,f=(0,l.useCallback)(function(){var t=o.current,l=x.current,d=b,h=c;if(t&&l){d=e&&e.length?"show":"empty";var f,u=(null===(f=r.current)||void 0===f?void 0:f.clientWidth)||0,w=0;e&&e[0]&&(w=null!=i&&i.index?Object.keys(e[0]).length-1:Object.keys(e[0]).length),h=(15*w-u)/w}t&&l&&(t.forEach(function(t){s&&(t.style.cursor="pointer")}),l.forEach(function(t){Object.assign(Object(document.createElement("canvas").getContext("2d")),{font:window.getComputedStyle(t).getPropertyValue("font")}).measureText(t.textContent).width+20>t.offsetWidth&&r.current&&("fixed"!==r.current.style.tableLayout&&null!=i&&i.position&&(r.current.style.tableLayout=null==i?void 0:i.position),t.classList.add("hoverable")),m>=900&&(t.style.maxWidth="".concat(h,"px")),m<900&&(t.style.maxWidth=""),null!=i&&i.cellHeight&&(t.style.height="".concat(i.cellHeight,"px")),null!=a&&a.includes("mini")&&(t.style.border="none")})),d!==b&&p(n?"loading":d),h!==c&&j(h)},[e,m,b,c,a,s,i]);return(0,l.useEffect)(function(){var t=e&&e[0];"mini"===a&&t?p(n?"loading":"show"):t&&e.length>0?f():t||p(n?"loading":"empty")},[e,x.current]),(0,l.useEffect)(function(){var t,e,a=null===(t=r.current)||void 0===t?void 0:t.querySelectorAll("tr"),s=null===(e=r.current)||void 0===e?void 0:e.querySelectorAll("td");return a&&(o.current=a),s&&(x.current=s),window.addEventListener("resize",f),window.addEventListener("mouseup",f),function(){window.removeEventListener("resize",f),window.removeEventListener("mouseup",f)}},[f]),{tableRef:r,status:b}},z=["@-webkit-keyframes fadeIn-jsx-4226196922{0%{opacity:0;}70%{opacity:0;}85%{opacity:0.3;}100%{opacity:1;}}","@keyframes fadeIn-jsx-4226196922{0%{opacity:0;}70%{opacity:0;}85%{opacity:0.3;}100%{opacity:1;}}",".td-content.jsx-4226196922{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-height:-webkit-max-content;min-height:-moz-max-content;min-height:max-content;height:100%;padding:0;margin:0;}",".td-hover.jsx-4226196922{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:absolute;bottom:90%;left:0;right:0;z-index:3;border-radius:5px;background-color:var(--gray-90);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:80vw;-webkit-animation:fadeIn-jsx-4226196922 0.5s;animation:fadeIn-jsx-4226196922 0.5s;}",".td-hover.jsx-4226196922 .td-hover-content.jsx-4226196922{padding:5px 8px 8px;}",".td-hover.jsx-4226196922 .td-hover-content.jsx-4226196922 .td-hover-key.jsx-4226196922{line-height:1.5;width:50%;text-transform:capitalize;color:var(--gray-50);}",".td-hover.jsx-4226196922 .td-hover-content.jsx-4226196922 .td-hover-key-value.jsx-4226196922{background-color:var(--gray-40);line-height:1;color:var(--blue-60);padding:8px;border-radius:4px;white-space:wrap;}"];z.__hash="4226196922";var S=function(){var t=(0,l.useState)(!1),e=t[0],a=t[1];(0,l.useEffect)(function(){a(!0)},[]);var s=function(){return window.innerHeight>window.innerWidth?"portrait":"landscape"},i=function(){return"undefined"!=typeof document?{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}:{width:0,height:0}},n=function(){return{width:window.innerWidth,height:window.innerHeight}},r=(0,l.useState)({orientation:s(),document:i(),viewport:n()}),o=r[0],x=r[1];return(0,l.useEffect)(function(){if(e){var t=function(){x({orientation:s(),document:i(),viewport:n()})};return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}},[e]),o},E=a(25675),Z=a.n(E),C=a(23992);function O(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,s)}return a}function F(t){for(var e=1;eR&&D>R),A=(0,l.useState)("loading"),B=A[0],V=A[1],M=(0,l.useState)(!1),T=M[0],X=M[1],q=(0,l.useState)(-1),U=q[0],G=q[1],J=(0,l.useState)(0),K=J[0],Q=J[1],Y=(0,l.useState)({}),$=Y[0],tt=Y[1],te=function(t,e){t.preventDefault(),X(!0),G(e),Q(t.clientX)},ta=(0,l.useRef)([]),ts=function(t){if(T&&U>=0){var e=t.clientX-K,a=F({},$),s=Object.keys(o[0])[U],i=a[s]||0;a[s]=Math.max(i+e,30),tt(a),Q(t.clientX)}},ti=function(){X(!1)},tn=function(t){var e=0;ta.current.forEach(function(a){a&&a.children[t]&&(e=Math.max(e,a.children[t].offsetWidth))}),tt(F(F({},$),{},(0,d.Z)({},Object.keys(o[0])[t],e+"px")))};(0,l.useEffect)(function(){L&&V(L)},[L]),(0,l.useEffect)(function(){return window.addEventListener("mousemove",ts),window.addEventListener("mouseup",ti),function(){window.removeEventListener("mousemove",ts),window.removeEventListener("mouseup",ti)}},[T]);var tr=function(t,e){["svg","path"].includes(t.target.tagName)||null==f||f(e)};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(n(),{id:h.__hash,children:h}),(0,w.jsx)(n(),{id:j.__hash,children:j}),(0,w.jsxs)("div",{className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" "+"table-container ".concat(m?"table-container-"+m:""),children:[(0,w.jsxs)("table",{ref:O,className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" "+"".concat(m?"table-"+m:""," ").concat("show"===B&&"table-show"," ").concat(u&&"hide-header"||""),children:[!(null!=g&&null!==(s=g.hide)&&void 0!==s&&s.includes("header"))&&(0,w.jsx)("thead",{className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" "+(u&&"hide-header"||""),children:(0,w.jsxs)("tr",{className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash),children:[0!==k&&(0,w.jsx)("th",{className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" index",children:"#"}),o&&o[0]&&Object.keys(o[0]).map(function(t,e){var a,s=(0,b.Z)(t);return"keywords"!==t&&!(null!=g&&null!==(a=g.hideColumns)&&void 0!==a&&a.includes(t))&&(0,w.jsx)("th",{onDoubleClick:function(){return tn(e)},style:{width:$[t]||"auto"},className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" "+"resizeable ".concat(U===e?"resizing":""),children:(0,w.jsx)("div",{onMouseDown:function(t){return te(t,e)},className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" "+"th-content ".concat(m||""),children:s})},t)})]})}),(0,w.jsx)("tbody",{className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash),children:o&&o[0]&&o.map(function(t,e){if(t)return(0,w.jsxs)("tr",{onClick:function(e){return tr(e,t)},ref:function(t){ta.current[e]=t},className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" "+"".concat(m||""),children:[0!==k&&(0,w.jsx)("td",{"data-key":"#",className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" index",children:k+e}),Object.entries(t).map(function(t,e){var a,s,i=(0,c.Z)(t,2),r=i[0],o=i[1];return!(null!=g&&null!==(s=g.hideColumns)&&void 0!==s&&s.includes(r))&&(0,w.jsxs)("td",{"data-key":(0,b.Z)(r),className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash),children:[(null==g?void 0:g.hoverable)&&(0,w.jsxs)("div",{className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" td-hover",children:[" ","string"==typeof o?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(n(),{id:z.__hash,children:z}),(0,w.jsx)("div",{className:"jsx-".concat(z.__hash)+" td-hover",children:(0,w.jsx)("div",{className:"jsx-".concat(z.__hash)+" td-hover-content",children:o})})]}):"object"==typeof o&&null!==(a=o.props)&&void 0!==a&&a.data?function(t){if(!t||"object"!=typeof t)throw Error("Invalid input. Expected an object.");var e=Object.entries(t).map(function(t){var e=(0,c.Z)(t,2),a=e[0],s=e[1];return(0,w.jsxs)("span",{className:"jsx-".concat(z.__hash),children:[(0,w.jsx)(n(),{id:z.__hash,children:z}),(0,w.jsxs)("div",{className:"jsx-".concat(z.__hash)+" td-hover-key",children:[(0,b.Z)(a),": "]}),(0,w.jsx)("div",{className:"jsx-".concat(z.__hash)+" td-hover-key-value",children:(function(t,e){for(var a=[],s=0;s=2&&1!=r&&(e=t-1),e<=s)return(0,w.jsx)(_.Z,{onClick:function(){return x(r&&e)},variant:r===e?"miniactive":"mini",children:e},e)}),(0,w.jsx)(_.Z,{onClick:function(){return x(r&&r+1)},disabled:r===s,variant:"".concat(r===s?"disabled-icon":"icon"),children:(0,w.jsx)(p.a,{icon:"fa-chevron-right"})}),(0,w.jsx)(_.Z,{onClick:function(){return x(s)},disabled:r===s,variant:"".concat(r===s?"disabled-icon":"icon"),children:(0,w.jsx)(p.a,{icon:"fa-chevrons-right"})})]})]})]}):(0,w.jsx)(w.Fragment,{})}var B=a(47265),V=function(t){var e,a,i=t.total,r=t.data,d=t.filters,c=t.filterBy,j=t.loading,h=t.search,b=t.variant,p=t.limit,m=t.options,f=t.onRowClick,u=t.setSearch,g=t.setFilter,y=t.setLimit,v=t.page,_=t.setPage,k=t.style,N=(0,l.useState)(10),z=N[0],S=N[1],E=(0,l.useState)([]),Z=E[0],C=E[1],O=v?(v-1)*z:1,F=void 0!==i?Math.ceil(Number(i)/Number(z)):0,P=i?O+z=1&&_(e),!D&&F0&&(null==r?void 0:r.slice(O,P)))};return(0,l.useEffect)(function(){W(),p&&S(p)},[r,p,m]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(n(),{id:x.__hash,children:x}),(0,w.jsxs)("div",{id:"adaptable",style:k,className:"jsx-".concat(x.__hash)+" "+"adaptable".concat(b&&null!=b&&b.includes("mini")?" adaptable-mini":""),children:[!I&&(0,w.jsx)(H,{data:Z,filters:d,filterBy:c,setFilter:g,search:h,setSearch:u,loading:j,traits:m}),(0,w.jsx)(L,{hideHeader:I,data:r,setSort:function(t,e){return function(t,e){function a(t,e){function a(t){if("string"==typeof t)return t.replace(/[^a-zA-Z0-9]/g,"");var e=t.props.cell;return"member"===e&&(t=t.props.data.name),"currency-crypto"===e&&(t=t.props.data.amount),"date"===e&&(t=(0,B.vc)(t.props.data)),t}t=a(t),e=a(e);try{if(t.toLowerCase(),e.toLowerCase(),te)return 1}catch(t){return 0}}r.sort(function(s,i){return e?a(s[t],i[t]):a(i[t],s[t])}),C(r.slice(O,P))}(t,e)},loading:j,onRowClick:f,search:h,startIndex:O,variant:b,options:m}),_&&v&&y&&F&&(0,w.jsx)(A,{handlePageChange:R,page:v,limit:z,setPage:_,setLimit:y,startIndex:O,endIndex:P,totalPages:F,visibleData:Z,options:m,total:i||Z.length})]})]})}},51633:function(t,e,a){a.d(e,{Z:function(){return j}});var s=a(21378),i=a.n(s),n=a(67294),r=[".d-flex.jsx-437419458,.ui-view-layout__view.jsx-437419458,.ui-view-layout__header.jsx-437419458,.ui-view-layout__actions.jsx-437419458,.ui-view-layout.jsx-437419458,.back-btn.jsx-437419458{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".back-btn.jsx-437419458{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;height:var(--s-element);}",".ui-view-layout.jsx-437419458{position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;min-height:100%;}",".ui-view-layout.start.jsx-437419458>*.back-btn.jsx-437419458{display:none;}",".ui-view-layout__actions.jsx-437419458{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;gap:var(--s-9);}",".ui-view-layout__view.jsx-437419458{height:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);}",".ui-view-layout__view.jsx-437419458,.ui-view-layout__actions.jsx-437419458{width:100%;}",".ui-view-layout__header.jsx-437419458{width:var(--s-4-width);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding:0 var(--s-4) var(--s-9);}","@media (max-width:1100px){.ui-view-layout__header.jsx-437419458{width:var(--s-9-width);padding:0 var(--s-9) var(--s-9);}}",".ui-view-layout__header-title.jsx-437419458{font-size:var(--s-1);--ui-icon-color:var(--primary-50);color:var(--primary-50);text-transform:capitalize;}",".current.jsx-437419458{position:absolute;top:calc(var(--s-4) * 0.5);color:var(--gray-30-o);right:var(--s-9);height:var(--s-6);line-height:1;}"];r.__hash="437419458";var o=a(85153),l=a(27812),x=function(t,e){var a=(0,n.useState)([]),s=a[0],i=a[1],r=(0,n.useState)(),o=r[0],x=r[1],d=function(e){var a=String(e);t&&t[a]&&(x(t[a]),i(function(t){return[].concat((0,l.Z)(t),[a])}))};return(0,n.useEffect)(function(){e&&null!=t&&t[e]&&s[s.length-1]!==e&&d(e)},[t,e]),{view:o,setView:d,last:s[s.length-1],goBack:function(){i(function(e){if(e.length>1){var a=e.slice(0,-1);return x(t[a[a.length-1]]),a}return e})}}},d=a(10577),c=a(85893),j=function(t){var e=t.views,a=t.currentView,s=(t.onChange,t.title),l=(t.actions,t.showTitle),j=t.backBtn;(0,n.useEffect)(function(){},[a]);var h=x(e,a),b=h.view,p=(h.setView,h.goBack),m=h.last;return e&&b&&"loading"!=a?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(i(),{id:r.__hash,children:r}),(0,c.jsxs)("div",{className:"jsx-".concat(r.__hash)+" ui-view-layout",children:[!!(void 0!==j&&j&&"start"!==m)&&(0,c.jsx)("div",{className:"jsx-".concat(r.__hash)+" back-btn",children:(0,c.jsx)("div",{className:"jsx-".concat(r.__hash),children:(0,c.jsx)(d.Z,{traits:{beforeIcon:"fa-chevron-left"},variant:"flat",onClick:p,children:"Back"})})}),void 0!==l&&l&&"start"!==m&&(0,c.jsx)("div",{className:"jsx-".concat(r.__hash)+" ui-view-layout__header",children:(0,c.jsx)("div",{className:"jsx-".concat(r.__hash)+" ui-view-layout__header-title",children:s})}),(0,c.jsx)("div",{"data-view":a,className:"jsx-".concat(r.__hash)+" ui-view-layout__view",children:b||(0,c.jsx)("div",{className:"jsx-".concat(r.__hash),children:"View not found"})})]})]}):(0,c.jsx)(o.Z,{})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/4592-953def3ce62165d1.js b/_next/static/chunks/4592-953def3ce62165d1.js deleted file mode 100644 index b588e07e0..000000000 --- a/_next/static/chunks/4592-953def3ce62165d1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4592],{89360:function(t,e,a){a.d(e,{Z:function(){return V}});var s=a(50029),i=a(21378),n=a.n(i),r=a(64687),o=a.n(r),l=a(67294),x=['.adaptable.jsx-2776381951{font-family:"Atkinson Hyperlegible",sans-serif;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;border-radius:5px;font-weight:300;background-color:var(--gray-90);font-size:14px;}',"@media (max-width:1100px){.adaptable.jsx-2776381951{overflow:hidden;}}","@media (max-width:900px){.adaptable.jsx-2776381951{background-color:var(--gray-80);}}",".adaptable.adaptable-mini.jsx-2776381951{font-size:16px;background-color:transparent;color:var(--gray-30);}"];x.__hash="2776381951";var d=a(59499),c=a(16835),j=[".adapt-table-content__scroll-to-top.jsx-507311106{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:fixed;bottom:var(--s-4);right:var(--s-4);width:var(--s-element);aspect-ratio:9/6;z-index:2;border-radius:4px;box-shadow:var(--box-shadow);opacity:0.5;background-color:var(--gray-70);}",".adapt-table-content__scroll-to-top.jsx-507311106:hover{--ui-icon-color:var(--gray-30);opacity:1;}",".hide.jsx-507311106{display:none;}",'.table-container.jsx-507311106{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-radius:5px;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;font-weight:300;font-family:"Atkinson Hyperlegible",sans-serif;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:left;}',"@media (max-width:900px){.table-container.table-container-mini.jsx-507311106{min-height:300px;width:100%;}.table-container.table-container-mini.jsx-507311106::-webkit-scrollbar-thumb{background-color:var(--blue-60);border-radius:5px;width:15px;}.table-container.table-container-mini.jsx-507311106::-webkit-scrollbar{border-radius:0 7px 7px 0;width:17px;aspect-ratio:1/1;background-color:var(--dark);}}"];j.__hash="507311106";var h=[".d-flex.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content--image.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content--image.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content--image.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content--image.jsx-3691334019{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}","@-webkit-keyframes fadeIn-jsx-3691334019{0%{opacity:0;}70%{opacity:0;}85%{opacity:0.3;}100%{opacity:1;}}","@keyframes fadeIn-jsx-3691334019{0%{opacity:0;}70%{opacity:0;}85%{opacity:0.3;}100%{opacity:1;}}","table.jsx-3691334019{margin-bottom:auto;width:100%;display:none;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0;border-radius:var(--border-radius);overflow:hidden;border:solid 1px var(--gray-70);}","table.table-show.jsx-3691334019{display:table;}","table.hide-header.jsx-3691334019{border-radius:var(--border-radius);border:solid 1px transparent;overflow:hidden;}","@media (max-width:900px){table.jsx-3691334019 thead.jsx-3691334019{display:none;}}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019{background-color:var(--gray-80-o);}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019{text-transform:capitalize;}","table.table-mini.jsx-3691334019{margin-top:15px;padding-top:15px;}","table.table-mini.jsx-3691334019 tr.jsx-3691334019{background-color:unset !important;}","table.table-mini.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019,table.table-mini.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019{border-right:none !important;}","table.table-mini.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019:last-child .th-content.mini.jsx-3691334019,table.table-mini.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019:last-child .td-content.jsx-3691334019,table.table-mini.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019:last-child .th-content.mini.jsx-3691334019,table.table-mini.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019:last-child .td-content.jsx-3691334019{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019{height:50px;width:100%;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019:hover,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019:hover{background-color:var(--gray-80-o);}","table.jsx-3691334019 thead.jsx-3691334019 tr.mobile-tr.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.mobile-tr.jsx-3691334019{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:-webkit-max-content;height:-moz-max-content;height:max-content;border-radius:5px;background-color:var(--gray-90);padding:10px;width:inherit;gap:5px;margin:10px;min-height:-webkit-max-content;min-height:-moz-max-content;min-height:max-content;height:-webkit-max-content;height:-moz-max-content;height:max-content;}","table.jsx-3691334019 thead.jsx-3691334019 tr.mobile-tr.mini.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.mobile-tr.mini.jsx-3691334019{margin:0;padding:0 8px;}","table.jsx-3691334019 thead.jsx-3691334019 tr.mobile-tr.jsx-3691334019:hover,table.jsx-3691334019 tbody.jsx-3691334019 tr.mobile-tr.jsx-3691334019:hover{background-color:var(--gray-80-o);}","@media (max-width:450px){table.jsx-3691334019 thead.jsx-3691334019 tr.mobile-tr.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.mobile-tr.jsx-3691334019{max-width:calc(100% - 8px);margin:5px 10px;}}","@media (max-width:900px){table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:-webkit-max-content;height:-moz-max-content;height:max-content;border-radius:5px;background-color:var(--gray-90);padding:10px;width:inherit;gap:5px;margin:10px;min-height:-webkit-max-content;min-height:-moz-max-content;min-height:max-content;height:-webkit-max-content;height:-moz-max-content;height:max-content;}table.jsx-3691334019 thead.jsx-3691334019 tr.mini.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.mini.jsx-3691334019{margin:0;padding:0 8px;}table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019:hover,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019:hover{background-color:var(--gray-80-o);}}","@media (max-width:900px) and (max-width:450px){table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019{max-width:calc(100% - 8px);margin:5px 10px;}}","table.jsx-3691334019 thead.jsx-3691334019 tr.mini.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.mini.jsx-3691334019{max-width:inherit;cursor:default;}","table.jsx-3691334019 thead.jsx-3691334019 tr.mini.jsx-3691334019 td.jsx-3691334019:last-child,table.jsx-3691334019 tbody.jsx-3691334019 tr.mini.jsx-3691334019 td.jsx-3691334019:last-child{text-align:right;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019:last-child td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019:last-child td.jsx-3691334019{border-bottom-color:transparent;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019:last-child td.jsx-3691334019:first-child,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019:last-child td.jsx-3691334019:first-child{border-radius:0 0 0 5px;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019:last-child td.jsx-3691334019:last-child,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019:last-child td.jsx-3691334019:last-child{border-radius:0 0 5px 0;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019{cursor:col-resize;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .resizeable.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .resizeable.jsx-3691334019{position:relative;overflow:hidden;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .resizeable.jsx-3691334019 .th-content.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .resizeable.jsx-3691334019 .th-content.jsx-3691334019{padding-right:20px;}",'table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .resizeable.jsx-3691334019::after,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .resizeable.jsx-3691334019::after{content:"";position:absolute;top:0;right:0;bottom:0;width:10px;background-color:var(--gray-80-o);cursor:col-resize;}',"table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019{padding:5px 10px;position:relative;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content;border-bottom:solid 1px var(--gray-70);}","@media (min-width:900px){table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content.jsx-3691334019{overflow-x:hidden;overflow-y:hidden;white-space:nowrap;text-overflow:ellipsis;}}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019:not(:last-child),table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019:not(:last-child),table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019:not(:last-child),table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019:not(:last-child){border-right:solid 1px var(--gray-70);}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019{width:100%;max-width:100%;padding:10px;border-bottom:none;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019:not(:last-child),table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019:not(:last-child),table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019:not(:last-child),table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019:not(:last-child){border-right:none;}","@media (max-width:450px){table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:10px;}}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019::before,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019::before,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.mobile-td.jsx-3691334019::before,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.mobile-td.jsx-3691334019::before{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-transform:capitalize;content:attr(data-key);-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--gray-50);}","@media (max-width:900px){table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019{width:100%;max-width:100%;padding:10px;border-bottom:none;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019:not(:last-child),table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019:not(:last-child),table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019:not(:last-child),table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019:not(:last-child){border-right:none;}}","@media (max-width:900px) and (max-width:450px){table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:10px;}}","@media (max-width:900px){table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019::before,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019::before,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019::before,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019::before{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-transform:capitalize;content:attr(data-key);-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--gray-50);}}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.index.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.index.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.index.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.index.jsx-3691334019{min-width:20px;text-align:center;width:25px;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-hover.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-hover.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-hover.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-hover.jsx-3691334019{display:none;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content.jsx-3691334019{position:relative;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content--image.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content--image.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.jsx-3691334019 .td-content--image.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.jsx-3691334019 .td-content--image.jsx-3691334019{width:var(--s-4-width);padding:var(--s-4);aspect-ratio:1;--ui-icon-color:var(--gray-60-o);--ui-icon-width:var(--s-element);--ui-icon-height:100%;}","table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 th.hoverable.jsx-3691334019:hover .td-hover.jsx-3691334019,table.jsx-3691334019 thead.jsx-3691334019 tr.jsx-3691334019 td.hoverable.jsx-3691334019:hover .td-hover.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 th.hoverable.jsx-3691334019:hover .td-hover.jsx-3691334019,table.jsx-3691334019 tbody.jsx-3691334019 tr.jsx-3691334019 td.hoverable.jsx-3691334019:hover .td-hover.jsx-3691334019{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}"];h.__hash="3691334019";var b=a(49334),p=a(55140),m=[".adapt-table-alt-view.jsx-3782774210{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:15px;background-color:var(--gray-70);color:var(--gray-50);border-radius:5px;margin:auto auto 20px;width:calc(100% - 20px);aspect-ratio:9/4;border:solid 1px var(--gray-60);outline:solid 1px var(--gray-80);}",".adapt-table-alt-view.jsx-3782774210 .title.jsx-3782774210{font-size:1.56rem;width:66%;line-height:1.5;}","@media (max-width:900px){.adapt-table-alt-view.jsx-3782774210 .title.jsx-3782774210{font-size:1.2rem;width:80%;text-align:center;}}",".adapt-table-alt-view.jsx-3782774210 .search.jsx-3782774210{font-style:italic;line-height:1;font-size:24px;color:#f90;}",".adapt-table-alt-view.jsx-3782774210 .error.jsx-3782774210{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;font-size:18px;gap:6px;}",".adapt-table-alt-view.jsx-3782774210 .error.jsx-3782774210 .error-title.jsx-3782774210{color:#f90;font-size:26px;}",".adapt-table-alt-view.jsx-3782774210 .error.jsx-3782774210 .error-location.jsx-3782774210{font-style:italic;margin-left:3px;}",".adapt-table-alt-view.adapt-table-alt-view-mini.jsx-3782774210{width:inherit;height:290px;margin:16px 0 0;}",".adapt-table-alt-view.adapt-table-alt-view-mini.jsx-3782774210 .title.jsx-3782774210{font-size:1.2rem;}"];m.__hash="3782774210";var f=a(85153),u=[".table-loader.jsx-1035785319{width:auto;margin:10px;border:solid 1px var(--gray-70);border-radius:5px;background-color:var(--gray-80-o);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:inherit;min-height:500px;position:relative;}"];u.__hash="1035785319";var w=a(85893);function g(){return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(n(),{id:u.__hash,children:u}),(0,w.jsx)("div",{className:"jsx-".concat(u.__hash)+" table-loader",children:(0,w.jsx)(f.Z,{})})]})}var y=function(t){var e=t.view,a=t.search,s=t.variant,i=t.title,r=(0,l.useState)(null),o=r[0],x=r[1];return((0,l.useEffect)(function(){x(e)},[e]),"empty"===o)?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(n(),{id:m.__hash,children:m}),(0,w.jsx)("div",{className:"jsx-".concat(m.__hash)+" "+"adapt-table-alt-view".concat(s?" adapt-table-alt-view-"+s:""),children:(0,w.jsx)("div",{className:"jsx-".concat(m.__hash)+" title",children:"No data found. Please check your filters, update the date range, or try again later as new data may be added."})})]}):"error"===o?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(n(),{id:m.__hash,children:m}),(0,w.jsxs)("div",{className:"jsx-".concat(m.__hash)+" "+"adapt-table-alt-view".concat(s?" adapt-table-alt-view-"+s:""),children:[a&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:"jsx-".concat(m.__hash)+" title",children:["We could not find any ",i," containing:"]}),(0,w.jsx)("div",{className:"jsx-".concat(m.__hash)+" search",children:a})]}),!a&&(0,w.jsxs)("div",{className:"jsx-".concat(m.__hash)+" error",children:[(0,w.jsx)("div",{className:"jsx-".concat(m.__hash)+" error-title",children:"An error occured"}),(0,w.jsxs)("div",{className:"jsx-".concat(m.__hash),children:["Unable to display data from:",(0,w.jsx)("span",{className:"jsx-".concat(m.__hash)+" error-location",children:i})]})]})]})]}):"loading"===o?(0,w.jsx)(g,{}):(0,w.jsx)(w.Fragment,{})},v=a(21375),_=a(10577),k=a(42700),N=function(t){var e=t.data,a=t.variant,s=t.rowClickable,i=t.options,n=t.loading,r=(0,l.useRef)(null),o=(0,l.useRef)(null),x=(0,l.useRef)(null),d=(0,l.useState)(null),c=d[0],j=d[1],h=(0,l.useState)("loading"),b=h[0],p=h[1],m=(0,k.Z)().width,f=(0,l.useCallback)(function(){var t=o.current,l=x.current,d=b,h=c;if(t&&l){d=e&&e.length?"show":"empty";var f,u=(null===(f=r.current)||void 0===f?void 0:f.clientWidth)||0,w=0;e&&e[0]&&(w=null!=i&&i.index?Object.keys(e[0]).length-1:Object.keys(e[0]).length),h=(15*w-u)/w}t&&l&&(t.forEach(function(t){s&&(t.style.cursor="pointer")}),l.forEach(function(t){Object.assign(Object(document.createElement("canvas").getContext("2d")),{font:window.getComputedStyle(t).getPropertyValue("font")}).measureText(t.textContent).width+20>t.offsetWidth&&r.current&&("fixed"!==r.current.style.tableLayout&&null!=i&&i.position&&(r.current.style.tableLayout=null==i?void 0:i.position),t.classList.add("hoverable")),m>=900&&(t.style.maxWidth="".concat(h,"px")),m<900&&(t.style.maxWidth=""),null!=i&&i.cellHeight&&(t.style.height="".concat(i.cellHeight,"px")),null!=a&&a.includes("mini")&&(t.style.border="none")})),d!==b&&p(n?"loading":d),h!==c&&j(h)},[e,m,b,c,a,s,i]);return(0,l.useEffect)(function(){var t=e&&e[0];"mini"===a&&t?p(n?"loading":"show"):t&&e.length>0?f():t||p(n?"loading":"empty")},[e,x.current]),(0,l.useEffect)(function(){var t,e,a=null===(t=r.current)||void 0===t?void 0:t.querySelectorAll("tr"),s=null===(e=r.current)||void 0===e?void 0:e.querySelectorAll("td");return a&&(o.current=a),s&&(x.current=s),window.addEventListener("resize",f),window.addEventListener("mouseup",f),function(){window.removeEventListener("resize",f),window.removeEventListener("mouseup",f)}},[f]),{tableRef:r,status:b}},z=["@-webkit-keyframes fadeIn-jsx-4226196922{0%{opacity:0;}70%{opacity:0;}85%{opacity:0.3;}100%{opacity:1;}}","@keyframes fadeIn-jsx-4226196922{0%{opacity:0;}70%{opacity:0;}85%{opacity:0.3;}100%{opacity:1;}}",".td-content.jsx-4226196922{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-height:-webkit-max-content;min-height:-moz-max-content;min-height:max-content;height:100%;padding:0;margin:0;}",".td-hover.jsx-4226196922{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:absolute;bottom:90%;left:0;right:0;z-index:3;border-radius:5px;background-color:var(--gray-90);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:80vw;-webkit-animation:fadeIn-jsx-4226196922 0.5s;animation:fadeIn-jsx-4226196922 0.5s;}",".td-hover.jsx-4226196922 .td-hover-content.jsx-4226196922{padding:5px 8px 8px;}",".td-hover.jsx-4226196922 .td-hover-content.jsx-4226196922 .td-hover-key.jsx-4226196922{line-height:1.5;width:50%;text-transform:capitalize;color:var(--gray-50);}",".td-hover.jsx-4226196922 .td-hover-content.jsx-4226196922 .td-hover-key-value.jsx-4226196922{background-color:var(--gray-40);line-height:1;color:var(--blue-60);padding:8px;border-radius:4px;white-space:wrap;}"];z.__hash="4226196922";var S=function(){var t=(0,l.useState)(!1),e=t[0],a=t[1];(0,l.useEffect)(function(){a(!0)},[]);var s=function(){return window.innerHeight>window.innerWidth?"portrait":"landscape"},i=function(){return"undefined"!=typeof document?{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}:{width:0,height:0}},n=function(){return{width:window.innerWidth,height:window.innerHeight}},r=(0,l.useState)({orientation:s(),document:i(),viewport:n()}),o=r[0],x=r[1];return(0,l.useEffect)(function(){if(e){var t=function(){x({orientation:s(),document:i(),viewport:n()})};return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}},[e]),o},E=a(25675),Z=a.n(E),C=a(23992);function O(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,s)}return a}function F(t){for(var e=1;eR&&D>R),A=(0,l.useState)("loading"),B=A[0],V=A[1],M=(0,l.useState)(!1),T=M[0],X=M[1],q=(0,l.useState)(-1),U=q[0],G=q[1],J=(0,l.useState)(0),K=J[0],Q=J[1],Y=(0,l.useState)({}),$=Y[0],tt=Y[1],te=function(t,e){t.preventDefault(),X(!0),G(e),Q(t.clientX)},ta=(0,l.useRef)([]),ts=function(t){if(T&&U>=0){var e=t.clientX-K,a=F({},$),s=Object.keys(o[0])[U],i=a[s]||0;a[s]=Math.max(i+e,30),tt(a),Q(t.clientX)}},ti=function(){X(!1)},tn=function(t){var e=0;ta.current.forEach(function(a){a&&a.children[t]&&(e=Math.max(e,a.children[t].offsetWidth))}),tt(F(F({},$),{},(0,d.Z)({},Object.keys(o[0])[t],e+"px")))};(0,l.useEffect)(function(){L&&V(L)},[L]),(0,l.useEffect)(function(){return window.addEventListener("mousemove",ts),window.addEventListener("mouseup",ti),function(){window.removeEventListener("mousemove",ts),window.removeEventListener("mouseup",ti)}},[T]);var tr=function(t,e){["svg","path"].includes(t.target.tagName)||null==f||f(e)};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(n(),{id:h.__hash,children:h}),(0,w.jsx)(n(),{id:j.__hash,children:j}),(0,w.jsxs)("div",{className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" "+"table-container ".concat(m?"table-container-"+m:""),children:[(0,w.jsxs)("table",{ref:O,className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" "+"".concat(m?"table-"+m:""," ").concat("show"===B&&"table-show"," ").concat(u&&"hide-header"||""),children:[!(null!=g&&null!==(s=g.hide)&&void 0!==s&&s.includes("header"))&&(0,w.jsx)("thead",{className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" "+(u&&"hide-header"||""),children:(0,w.jsxs)("tr",{className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash),children:[0!==k&&(0,w.jsx)("th",{className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" index",children:"#"}),o&&o[0]&&Object.keys(o[0]).map(function(t,e){var a,s=(0,b.Z)(t);return"keywords"!==t&&!(null!=g&&null!==(a=g.hideColumns)&&void 0!==a&&a.includes(t))&&(0,w.jsx)("th",{onDoubleClick:function(){return tn(e)},style:{width:$[t]||"auto"},className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" "+"resizeable ".concat(U===e?"resizing":""),children:(0,w.jsx)("div",{onMouseDown:function(t){return te(t,e)},className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" "+"th-content ".concat(m||""),children:s})},t)})]})}),(0,w.jsx)("tbody",{className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash),children:o&&o[0]&&o.map(function(t,e){if(t)return(0,w.jsxs)("tr",{onClick:function(e){return tr(e,t)},ref:function(t){ta.current[e]=t},className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" "+"".concat(m||""),children:[0!==k&&(0,w.jsx)("td",{"data-key":"#",className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" index",children:k+e}),Object.entries(t).map(function(t,e){var a,s,i=(0,c.Z)(t,2),r=i[0],o=i[1];return!(null!=g&&null!==(s=g.hideColumns)&&void 0!==s&&s.includes(r))&&(0,w.jsxs)("td",{"data-key":(0,b.Z)(r),className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash),children:[(null==g?void 0:g.hoverable)&&(0,w.jsxs)("div",{className:"jsx-".concat(h.__hash," jsx-").concat(j.__hash)+" td-hover",children:[" ","string"==typeof o?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(n(),{id:z.__hash,children:z}),(0,w.jsx)("div",{className:"jsx-".concat(z.__hash)+" td-hover",children:(0,w.jsx)("div",{className:"jsx-".concat(z.__hash)+" td-hover-content",children:o})})]}):"object"==typeof o&&null!==(a=o.props)&&void 0!==a&&a.data?function(t){if(!t||"object"!=typeof t)throw Error("Invalid input. Expected an object.");var e=Object.entries(t).map(function(t){var e=(0,c.Z)(t,2),a=e[0],s=e[1];return(0,w.jsxs)("span",{className:"jsx-".concat(z.__hash),children:[(0,w.jsx)(n(),{id:z.__hash,children:z}),(0,w.jsxs)("div",{className:"jsx-".concat(z.__hash)+" td-hover-key",children:[(0,b.Z)(a),": "]}),(0,w.jsx)("div",{className:"jsx-".concat(z.__hash)+" td-hover-key-value",children:(function(t,e){for(var a=[],s=0;s=2&&1!=r&&(e=t-1),e<=s)return(0,w.jsx)(_.Z,{onClick:function(){return x(r&&e)},variant:r===e?"miniactive":"mini",children:e},e)}),(0,w.jsx)(_.Z,{onClick:function(){return x(r&&r+1)},disabled:r===s,variant:"".concat(r===s?"disabled-icon":"icon"),children:(0,w.jsx)(p.a,{icon:"fa-chevron-right"})}),(0,w.jsx)(_.Z,{onClick:function(){return x(s)},disabled:r===s,variant:"".concat(r===s?"disabled-icon":"icon"),children:(0,w.jsx)(p.a,{icon:"fa-chevrons-right"})})]})]})]}):(0,w.jsx)(w.Fragment,{})}var B=a(47265),V=function(t){var e,a,i=t.total,r=t.data,d=t.filters,c=t.filterBy,j=t.loading,h=t.search,b=t.variant,p=t.limit,m=t.options,f=t.onRowClick,u=t.setSearch,g=t.setFilter,y=t.setLimit,v=t.page,_=t.setPage,k=t.style,N=(0,l.useState)(10),z=N[0],S=N[1],E=(0,l.useState)([]),Z=E[0],C=E[1],O=v?(v-1)*z:1,F=void 0!==i?Math.ceil(Number(i)/Number(z)):0,P=i?O+z=1&&_(e),!D&&F0&&(null==r?void 0:r.slice(O,P)))};return(0,l.useEffect)(function(){W(),p&&S(p)},[r,p,m]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(n(),{id:x.__hash,children:x}),(0,w.jsxs)("div",{id:"adaptable",style:k,className:"jsx-".concat(x.__hash)+" "+"adaptable".concat(b&&null!=b&&b.includes("mini")?" adaptable-mini":""),children:[!I&&(0,w.jsx)(H,{data:Z,filters:d,filterBy:c,setFilter:g,search:h,setSearch:u,loading:j,traits:m}),(0,w.jsx)(L,{hideHeader:I,data:r,setSort:function(t,e){return function(t,e){function a(t,e){function a(t){if("string"==typeof t)return t.replace(/[^a-zA-Z0-9]/g,"");var e=t.props.cell;return"member"===e&&(t=t.props.data.name),"currency-crypto"===e&&(t=t.props.data.amount),"date"===e&&(t=(0,B.vc)(t.props.data)),t}t=a(t),e=a(e);try{if(t.toLowerCase(),e.toLowerCase(),te)return 1}catch(t){return 0}}r.sort(function(s,i){return e?a(s[t],i[t]):a(i[t],s[t])}),C(r.slice(O,P))}(t,e)},loading:j,onRowClick:f,search:h,startIndex:O,variant:b,options:m}),_&&v&&y&&F&&(0,w.jsx)(A,{handlePageChange:R,page:v,limit:z,setPage:_,setLimit:y,startIndex:O,endIndex:P,totalPages:F,visibleData:Z,options:m,total:i||Z.length})]})]})}},51633:function(t,e,a){a.d(e,{Z:function(){return j}});var s=a(21378),i=a.n(s),n=a(67294),r=[".d-flex.jsx-437419458,.ui-view-layout__view.jsx-437419458,.ui-view-layout__header.jsx-437419458,.ui-view-layout__actions.jsx-437419458,.ui-view-layout.jsx-437419458,.back-btn.jsx-437419458{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".back-btn.jsx-437419458{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;height:var(--s-element);}",".ui-view-layout.jsx-437419458{position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;min-height:100%;}",".ui-view-layout.start.jsx-437419458>*.back-btn.jsx-437419458{display:none;}",".ui-view-layout__actions.jsx-437419458{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;gap:var(--s-9);}",".ui-view-layout__view.jsx-437419458{height:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);}",".ui-view-layout__view.jsx-437419458,.ui-view-layout__actions.jsx-437419458{width:100%;}",".ui-view-layout__header.jsx-437419458{width:var(--s-4-width);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding:0 var(--s-4) var(--s-9);}","@media (max-width:1100px){.ui-view-layout__header.jsx-437419458{width:var(--s-9-width);padding:0 var(--s-9) var(--s-9);}}",".ui-view-layout__header-title.jsx-437419458{font-size:var(--s-1);--ui-icon-color:var(--primary-50);color:var(--primary-50);text-transform:capitalize;}",".current.jsx-437419458{position:absolute;top:calc(var(--s-4) * 0.5);color:var(--gray-30-o);right:var(--s-9);height:var(--s-6);line-height:1;}"];r.__hash="437419458";var o=a(85153),l=a(27812),x=function(t,e){var a=(0,n.useState)([]),s=a[0],i=a[1],r=(0,n.useState)(),o=r[0],x=r[1],d=function(e){var a=String(e);t&&t[a]&&(x(t[a]),i(function(t){return[].concat((0,l.Z)(t),[a])}))};return(0,n.useEffect)(function(){e&&null!=t&&t[e]&&s[s.length-1]!==e&&d(e)},[t,e]),{view:o,setView:d,last:s[s.length-1],goBack:function(){i(function(e){if(e.length>1){var a=e.slice(0,-1);return x(t[a[a.length-1]]),a}return e})}}},d=a(10577),c=a(85893),j=function(t){var e=t.views,a=t.currentView,s=(t.onChange,t.title),l=(t.actions,t.showTitle),j=t.backBtn;(0,n.useEffect)(function(){},[a]);var h=x(e,a),b=h.view,p=(h.setView,h.goBack),m=h.last;return e&&b&&"loading"!=a?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(i(),{id:r.__hash,children:r}),(0,c.jsxs)("div",{className:"jsx-".concat(r.__hash)+" ui-view-layout",children:[!!(void 0!==j&&j&&"start"!==m)&&(0,c.jsx)("div",{className:"jsx-".concat(r.__hash)+" back-btn",children:(0,c.jsx)("div",{className:"jsx-".concat(r.__hash),children:(0,c.jsx)(d.Z,{traits:{beforeIcon:"fa-chevron-left"},variant:"flat",onClick:p,children:"Back"})})}),void 0!==l&&l&&"start"!==m&&(0,c.jsx)("div",{className:"jsx-".concat(r.__hash)+" ui-view-layout__header",children:(0,c.jsx)("div",{className:"jsx-".concat(r.__hash)+" ui-view-layout__header-title",children:s})}),(0,c.jsx)("div",{"data-view":a,className:"jsx-".concat(r.__hash)+" ui-view-layout__view",children:b||(0,c.jsx)("div",{className:"jsx-".concat(r.__hash),children:"View not found"})})]})]}):(0,c.jsx)(o.Z,{})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/4623-12f62ed444c5891a.js b/_next/static/chunks/4623-89c46771d473852c.js similarity index 95% rename from _next/static/chunks/4623-12f62ed444c5891a.js rename to _next/static/chunks/4623-89c46771d473852c.js index 61c330c70..e83f215e0 100644 --- a/_next/static/chunks/4623-12f62ed444c5891a.js +++ b/_next/static/chunks/4623-89c46771d473852c.js @@ -1,8 +1,8 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4623],{29887:function(t,e,n){var r;/*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE */!function(i){"use strict";var o,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,c="[DecimalError] ",l=c+"Invalid argument: ",s=c+"Exponent out of range: ",f=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=f(1286742750677284.5),y={};function v(t,e){var n,r,i,o,a,c,l,s,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),u?A(e,p):e;if(l=t.d,s=e.d,a=t.e,i=e.e,l=l.slice(),o=a-i){for(o<0?(r=l,o=-o,c=s.length):(r=s,i=a,c=l.length),o>(c=(a=Math.ceil(p/7))>c?a+1:c+1)&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((c=l.length)-(o=s.length)<0&&(o=c,r=s,s=l,l=r),n=0;o;)n=(l[--o]=l[o]+s[o]+n)/1e7|0,l[o]%=1e7;for(n&&(l.unshift(n),++i),c=l.length;0==l[--c];)l.pop();return e.d=l,e.e=i,u?A(e,p):e}function m(t,e,n){if(t!==~~t||tn)throw Error(l+t)}function b(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;et.e^this.s<0?1:-1;for(e=0,n=(r=this.d.length)<(i=t.d.length)?r:i;et.d[e]^this.s<0?1:-1;return r===i?0:r>i^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var t=this.d.length-1,e=(t-this.e)*7;if(t=this.d[t])for(;t%10==0;t/=10)e--;return e<0?0:e},y.dividedBy=y.div=function(t){return g(this,new this.constructor(t))},y.dividedToIntegerBy=y.idiv=function(t){var e=this.constructor;return A(g(this,new e(t),0,1),e.precision)},y.equals=y.eq=function(t){return!this.cmp(t)},y.exponent=function(){return O(this)},y.greaterThan=y.gt=function(t){return this.cmp(t)>0},y.greaterThanOrEqualTo=y.gte=function(t){return this.cmp(t)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(t){return 0>this.cmp(t)},y.lessThanOrEqualTo=y.lte=function(t){return 1>this.cmp(t)},y.logarithm=y.log=function(t){var e,n=this.constructor,r=n.precision,i=r+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(o))throw Error(c+"NaN");if(this.s<1)throw Error(c+(this.s?"NaN":"-Infinity"));return this.eq(o)?new n(0):(u=!1,e=g(S(this,i),S(t,i),i),u=!0,A(e,r))},y.minus=y.sub=function(t){return t=new this.constructor(t),this.s==t.s?E(this,t):v(this,(t.s=-t.s,t))},y.modulo=y.mod=function(t){var e,n=this.constructor,r=n.precision;if(!(t=new n(t)).s)throw Error(c+"NaN");return this.s?(u=!1,e=g(this,t,0,1).times(t),u=!0,this.minus(e)):A(new n(this),r)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return S(this)},y.negated=y.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},y.plus=y.add=function(t){return t=new this.constructor(t),this.s==t.s?v(this,t):E(this,(t.s=-t.s,t))},y.precision=y.sd=function(t){var e,n,r;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(l+t);if(e=O(this)+1,n=7*(r=this.d.length-1)+1,r=this.d[r]){for(;r%10==0;r/=10)n--;for(r=this.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},y.squareRoot=y.sqrt=function(){var t,e,n,r,i,o,a,l=this.constructor;if(this.s<1){if(!this.s)return new l(0);throw Error(c+"NaN")}for(t=O(this),u=!1,0==(i=Math.sqrt(+this))||i==1/0?(((e=b(this.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),r=new l(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new l(i.toString()),i=a=(n=l.precision)+3;;)if(r=(o=r).plus(g(this,o,a+2)).times(.5),b(o.d).slice(0,a)===(e=b(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(A(o,n+1,0),o.times(o).eq(this)){r=o;break}}else if("9999"!=e)break;a+=4}return u=!0,A(r,n)},y.times=y.mul=function(t){var e,n,r,i,o,a,c,l,s,f=this.constructor,p=this.d,h=(t=new f(t)).d;if(!this.s||!t.s)return new f(0);for(t.s*=this.s,n=this.e+t.e,(l=p.length)<(s=h.length)&&(o=p,p=h,h=o,a=l,l=s,s=a),o=[],r=a=l+s;r--;)o.push(0);for(r=s;--r>=0;){for(e=0,i=l+r;i>r;)c=o[i]+h[r]*p[i-r-1]+e,o[i--]=c%1e7|0,e=c/1e7|0;o[i]=(o[i]+e)%1e7|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,u?A(t,f.precision):t},y.toDecimalPlaces=y.todp=function(t,e){var n=this,r=n.constructor;return(n=new r(n),void 0===t)?n:(m(t,0,1e9),void 0===e?e=r.rounding:m(e,0,8),A(n,t+O(n)+1,e))},y.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=k(r,!0):(m(t,0,1e9),void 0===e?e=i.rounding:m(e,0,8),n=k(r=A(new i(r),t+1,e),!0,t+1)),n},y.toFixed=function(t,e){var n,r,i=this.constructor;return void 0===t?k(this):(m(t,0,1e9),void 0===e?e=i.rounding:m(e,0,8),n=k((r=A(new i(this),t+O(this)+1,e)).abs(),!1,t+O(r)+1),this.isneg()&&!this.isZero()?"-"+n:n)},y.toInteger=y.toint=function(){var t=this.constructor;return A(new t(this),O(this)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(t){var e,n,r,i,a,l,s=this,p=s.constructor,h=+(t=new p(t));if(!t.s)return new p(o);if(!(s=new p(s)).s){if(t.s<1)throw Error(c+"Infinity");return s}if(s.eq(o))return s;if(r=p.precision,t.eq(o))return A(s,r);if(l=(e=t.e)>=(n=t.d.length-1),a=s.s,l){if((n=h<0?-h:h)<=9007199254740991){for(i=new p(o),e=Math.ceil(r/7+4),u=!1;n%2&&M((i=i.times(s)).d,e),0!==(n=f(n/2));)M((s=s.times(s)).d,e);return u=!0,t.s<0?new p(o).div(i):A(i,r)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&t.d[Math.max(e,n)]?-1:1,s.s=1,u=!1,i=t.times(S(s,r+12)),u=!0,(i=x(i)).s=a,i},y.toPrecision=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?(n=O(i),r=k(i,n<=o.toExpNeg||n>=o.toExpPos)):(m(t,1,1e9),void 0===e?e=o.rounding:m(e,0,8),n=O(i=A(new o(i),t,e)),r=k(i,t<=n||n<=o.toExpNeg,t)),r},y.toSignificantDigits=y.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(m(t,1,1e9),void 0===e?e=n.rounding:m(e,0,8)),A(new n(this),t,e)},y.toString=y.valueOf=y.val=y.toJSON=function(){var t=O(this),e=this.constructor;return k(this,t<=e.toExpNeg||t>=e.toExpPos)};var g=function(){function t(t,e){var n,r=0,i=t.length;for(t=t.slice();i--;)n=t[i]*e+r,t[i]=n%1e7|0,r=n/1e7|0;return r&&t.unshift(r),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]1;)t.shift()}return function(r,i,o,a){var u,l,s,f,p,h,d,y,v,m,b,g,x,w,j,S,P,E,k=r.constructor,M=r.s==i.s?1:-1,T=r.d,_=i.d;if(!r.s)return new k(r);if(!i.s)throw Error(c+"Division by zero");for(s=0,l=r.e-i.e,P=_.length,j=T.length,y=(d=new k(M)).d=[];_[s]==(T[s]||0);)++s;if(_[s]>(T[s]||0)&&--l,(g=null==o?o=k.precision:a?o+(O(r)-O(i))+1:o)<0)return new k(0);if(g=g/7+2|0,s=0,1==P)for(f=0,_=_[0],g++;(s1&&(_=t(_,f),T=t(T,f),P=_.length,j=T.length),w=P,m=(v=T.slice(0,P)).length;m=1e7/2&&++S;do f=0,(u=e(_,v,P,m))<0?(b=v[0],P!=m&&(b=1e7*b+(v[1]||0)),(f=b/S|0)>1?(f>=1e7&&(f=1e7-1),h=(p=t(_,f)).length,m=v.length,1==(u=e(p,v,h,m))&&(f--,n(p,P16)throw Error(s+O(t));if(!t.s)return new h(o);for(null==e?(u=!1,c=d):c=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(c+=Math.log(p(2,f))/Math.LN10*2+5|0,n=r=i=new h(o),h.precision=c;;){if(r=A(r.times(t),c),n=n.times(++l),b((a=i.plus(g(r,n,c))).d).slice(0,c)===b(i.d).slice(0,c)){for(;f--;)i=A(i.times(i),c);return h.precision=d,null==e?(u=!0,A(i,d)):i}i=a}}function O(t){for(var e=7*t.e,n=t.d[0];n>=10;n/=10)e++;return e}function w(t,e,n){if(e>t.LN10.sd())throw u=!0,n&&(t.precision=n),Error(c+"LN10 precision limit exceeded");return A(new t(t.LN10),e)}function j(t){for(var e="";t--;)e+="0";return e}function S(t,e){var n,r,i,a,l,s,f,p,h,d=1,y=t,v=y.d,m=y.constructor,x=m.precision;if(y.s<1)throw Error(c+(y.s?"NaN":"-Infinity"));if(y.eq(o))return new m(0);if(null==e?(u=!1,p=x):p=e,y.eq(10))return null==e&&(u=!0),w(m,p);if(p+=10,m.precision=p,r=(n=b(v)).charAt(0),!(15e14>Math.abs(a=O(y))))return f=w(m,p+2,x).times(a+""),y=S(new m(r+"."+n.slice(1)),p-10).plus(f),m.precision=x,null==e?(u=!0,A(y,x)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=b((y=y.times(t)).d)).charAt(0),d++;for(a=O(y),r>1?(y=new m("0."+n),a++):y=new m(r+"."+n.slice(1)),s=l=y=g(y.minus(o),y.plus(o),p),h=A(y.times(y),p),i=3;;){if(l=A(l.times(h),p),b((f=s.plus(g(l,new m(i),p))).d).slice(0,p)===b(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(w(m,p+2,x).times(a+""))),s=g(s,new m(d),p),m.precision=x,null==e?(u=!0,A(s,x)):s;s=f,i+=2}}function P(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(r,i)){if(i-=r,n=n-r-1,t.e=f(n/7),t.d=[],r=(n+1)%7,n<0&&(r+=7),rd||t.e<-d))throw Error(s+n)}else t.s=0,t.e=0,t.d=[0];return t}function A(t,e,n){var r,i,o,a,c,l,h,y,v=t.d;for(a=1,o=v[0];o>=10;o/=10)a++;if((r=e-a)<0)r+=7,i=e,h=v[y=0];else{if((y=Math.ceil((r+1)/7))>=(o=v.length))return t;for(a=1,h=o=v[y];o>=10;o/=10)a++;r%=7,i=r-7+a}if(void 0!==n&&(c=h/(o=p(10,a-i-1))%10|0,l=e<0||void 0!==v[y+1]||h%o,l=n<4?(c||l)&&(0==n||n==(t.s<0?3:2)):c>5||5==c&&(4==n||l||6==n&&(r>0?i>0?h/p(10,a-i):0:v[y-1])%10&1||n==(t.s<0?8:7))),e<1||!v[0])return l?(o=O(t),v.length=1,e=e-o-1,v[0]=p(10,(7-e%7)%7),t.e=f(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==r?(v.length=y,o=1,y--):(v.length=y+1,o=p(10,7-r),v[y]=i>0?(h/p(10,a-i)%p(10,i)|0)*o:0),l)for(;;){if(0==y){1e7==(v[0]+=o)&&(v[0]=1,++t.e);break}if(v[y]+=o,1e7!=v[y])break;v[y--]=0,o=1}for(r=v.length;0===v[--r];)v.pop();if(u&&(t.e>d||t.e<-d))throw Error(s+O(t));return t}function E(t,e){var n,r,i,o,a,c,l,s,f,p,h=t.constructor,d=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),u?A(e,d):e;if(l=t.d,p=e.d,r=e.e,s=t.e,l=l.slice(),a=s-r){for((f=a<0)?(n=l,a=-a,c=p.length):(n=p,r=s,c=l.length),a>(i=Math.max(Math.ceil(d/7),c)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((f=(i=l.length)<(c=p.length))&&(c=i),i=0;i0;--i)l[c++]=0;for(i=p.length;i>a;){if(l[--i]0?o=o.charAt(0)+"."+o.slice(1)+j(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+j(-i-1)+o,n&&(r=n-a)>0&&(o+=j(r))):i>=a?(o+=j(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+j(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=j(r))),t.s<0?"-"+o:o}function M(t,e){if(t.length>e)return t.length=e,!0}function T(t){if(!t||"object"!=typeof t)throw Error(c+"Object expected");var e,n,r,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e=i[e+1]&&r<=i[e+2])this[n]=r;else throw Error(l+n+": "+r)}if(void 0!==(r=t[n="LN10"])){if(r==Math.LN10)this[n]=new this(r);else throw Error(l+n+": "+r)}return this}(a=function t(e){var n,r,i;function o(t){if(!(this instanceof o))return new o(t);if(this.constructor=o,t instanceof o){this.s=t.s,this.e=t.e,this.d=(t=t.d)?t.slice():t;return}if("number"==typeof t){if(0*t!=0)throw Error(l+t);if(t>0)this.s=1;else if(t<0)t=-t,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(t===~~t&&t<1e7){this.e=0,this.d=[t];return}return P(this,t.toString())}if("string"!=typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),this.s=-1):this.s=1,h.test(t))P(this,t);else throw Error(l+t)}if(o.prototype=y,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=T,void 0===e&&(e={}),e)for(n=0,i=["precision","rounding","toExpNeg","toExpPos","LN10"];n-1}},1196:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&o(s)?n>1?t(s,n-1,o,a,u):r(u,s):a||(u[u.length]=s)}return u}},28483:function(t,e,n){var r=n(25063)();t.exports=r},47816:function(t,e,n){var r=n(28483),i=n(3674);t.exports=function(t,e){return t&&r(t,e,i)}},97786:function(t,e,n){var r=n(71811),i=n(40327);t.exports=function(t,e){e=r(e,t);for(var n=0,o=e.length;null!=t&&ne}},13:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},42118:function(t,e,n){var r=n(41848),i=n(62722),o=n(42351);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},9454:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},90939:function(t,e,n){var r=n(2492),i=n(37005);t.exports=function t(e,n,o,a,u){return e===n||(null!=e&&null!=n&&(i(e)||i(n))?r(e,n,o,a,t,u):e!=e&&n!=n)}},2492:function(t,e,n){var r=n(46384),i=n(67114),o=n(18351),a=n(16096),u=n(64160),c=n(1469),l=n(44144),s=n(36719),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,y,v,m){var b=c(t),g=c(e),x=b?p:u(t),O=g?p:u(e);x=x==f?h:x,O=O==f?h:O;var w=x==h,j=O==h,S=x==O;if(S&&l(t)){if(!l(e))return!1;b=!0,w=!1}if(S&&!w)return m||(m=new r),b||s(t)?i(t,e,n,y,v,m):o(t,e,x,n,y,v,m);if(!(1&n)){var P=w&&d.call(t,"__wrapped__"),A=j&&d.call(e,"__wrapped__");if(P||A){var E=P?t.value():t,k=A?e.value():e;return m||(m=new r),v(E,k,n,y,m)}}return!!S&&(m||(m=new r),a(t,e,n,y,v,m))}},2958:function(t,e,n){var r=n(46384),i=n(90939);t.exports=function(t,e,n,o){var a=n.length,u=a,c=!o;if(null==t)return!u;for(t=Object(t);a--;){var l=n[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++ai?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r=200){var y=e?null:u(t);if(y)return c(y);p=!1,s=a,d=new r}else d=e?[]:h;t:for(;++l=i?t:r(t,e,n)}},26393:function(t,e,n){var r=n(33448);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),u=void 0!==e,c=null===e,l=e==e,s=r(e);if(!c&&!s&&!a&&t>e||a&&u&&l&&!c&&!s||i&&u&&l||!n&&l||!o)return 1;if(!i&&!a&&!s&&t=c)return l;return l*("desc"==n[i]?-1:1)}}return t.index-e.index}},14429:function(t,e,n){var r=n(55639)["__core-js_shared__"];t.exports=r},99291:function(t,e,n){var r=n(98612);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,u=Object(n);(e?a--:++a-1?u[c?e[l]:l]:void 0}}},47445:function(t,e,n){var r=n(40098),i=n(16612),o=n(18601);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?es))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++d-1&&t%1==0&&t-1}},54705:function(t,e,n){var r=n(18470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},24785:function(t,e,n){var r=n(1989),i=n(38407),o=n(57071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},11285:function(t,e,n){var r=n(45050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},96e3:function(t,e,n){var r=n(45050);t.exports=function(t){return r(this,t).get(t)}},49916:function(t,e,n){var r=n(45050);t.exports=function(t){return r(this,t).has(t)}},95265:function(t,e,n){var r=n(45050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},68776:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},42634:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},24523:function(t,e,n){var r=n(88306);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},94536:function(t,e,n){var r=n(10852)(Object,"create");t.exports=r},86916:function(t,e,n){var r=n(5569)(Object.keys,Object);t.exports=r},31167:function(t,e,n){t=n.nmd(t);var r=n(31957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},45357:function(t,e,n){var r=n(96874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,u=i(o.length-e,0),c=Array(u);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},37465:function(t,e,n){var r=n(38407);t.exports=function(){this.__data__=new r,this.size=0}},63779:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},67599:function(t){t.exports=function(t){return this.__data__.get(t)}},44758:function(t){t.exports=function(t){return this.__data__.has(t)}},34309:function(t,e,n){var r=n(38407),i=n(57071),o=n(83369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},42351:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r=e||n<0||v&&r>=s}function x(){var t,n,r,o=i();if(g(o))return O(o);p=setTimeout(x,(t=o-h,n=o-d,r=e-t,v?u(r,s-n):r))}function O(t){return(p=void 0,m&&c)?b(t):(c=l=void 0,f)}function w(){var t,n=i(),r=g(n);if(c=arguments,l=this,h=n,r){if(void 0===p)return d=t=h,p=setTimeout(x,e),y?b(t):f;if(v)return clearTimeout(p),p=setTimeout(x,e),b(h)}return void 0===p&&(p=setTimeout(x,e)),f}return e=o(e)||0,r(n)&&(y=!!n.leading,s=(v="maxWait"in n)?a(o(n.maxWait)||0,e):s,m="trailing"in n?!!n.trailing:m),w.cancel=function(){void 0!==p&&clearTimeout(p),d=0,c=h=l=p=void 0},w.flush=function(){return void 0===p?f:O(i())},w}},77813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},711:function(t,e,n){var r=n(66193),i=n(93239),o=n(67206),a=n(1469),u=n(16612);t.exports=function(t,e,n){var c=a(t)?r:i;return n&&u(t,e,n)&&(e=void 0),c(t,o(e,3))}},13311:function(t,e,n){var r=n(67740)(n(30998));t.exports=r},30998:function(t,e,n){var r=n(41848),i=n(67206),o=n(40554),a=Math.max;t.exports=function(t,e,n){var u=null==t?0:t.length;if(!u)return -1;var c=null==n?0:o(n);return c<0&&(c=a(u+c,0)),r(t,i(e,3),c)}},94654:function(t,e,n){var r=n(21078),i=n(35161);t.exports=function(t,e){return r(i(t,e),1)}},27361:function(t,e,n){var r=n(97786);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},79095:function(t,e,n){var r=n(13),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},6557:function(t){t.exports=function(t){return t}},35694:function(t,e,n){var r=n(9454),i=n(37005),o=Object.prototype,a=o.hasOwnProperty,u=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},1469:function(t){var e=Array.isArray;t.exports=e},98612:function(t,e,n){var r=n(23560),i=n(41780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},51584:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==r(t)}},44144:function(t,e,n){t=n.nmd(t);var r=n(55639),i=n(95062),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,u=a&&a.exports===o?r.Buffer:void 0,c=u?u.isBuffer:void 0;t.exports=c||i},18446:function(t,e,n){var r=n(90939);t.exports=function(t,e){return r(t,e)}},23560:function(t,e,n){var r=n(44239),i=n(13218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},41780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7654:function(t,e,n){var r=n(81763);t.exports=function(t){return r(t)&&t!=+t}},14293:function(t){t.exports=function(t){return null==t}},81763:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},68630:function(t,e,n){var r=n(44239),i=n(85924),o=n(37005),a=Object.prototype,u=Function.prototype.toString,c=a.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},47037:function(t,e,n){var r=n(44239),i=n(1469),o=n(37005);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},33448:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},36719:function(t,e,n){var r=n(38749),i=n(7518),o=n(31167),a=o&&o.isTypedArray,u=a?i(a):r;t.exports=u},3674:function(t,e,n){var r=n(14636),i=n(280),o=n(98612);t.exports=function(t){return o(t)?r(t):i(t)}},10928:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},35161:function(t,e,n){var r=n(29932),i=n(67206),o=n(69199),a=n(1469);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},66604:function(t,e,n){var r=n(89465),i=n(47816),o=n(67206);t.exports=function(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,i,e(t,i,o))}),n}},6162:function(t,e,n){var r=n(56029),i=n(53325),o=n(6557);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},88306:function(t,e,n){var r=n(83369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},53632:function(t,e,n){var r=n(56029),i=n(70433),o=n(6557);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},50308:function(t){t.exports=function(){}},7771:function(t,e,n){var r=n(55639);t.exports=function(){return r.Date.now()}},39601:function(t,e,n){var r=n(40371),i=n(79152),o=n(15403),a=n(40327);t.exports=function(t){return o(t)?r(a(t)):i(t)}},96026:function(t,e,n){var r=n(47445)();t.exports=r},59704:function(t,e,n){var r=n(82908),i=n(67206),o=n(5076),a=n(1469),u=n(16612);t.exports=function(t,e,n){var c=a(t)?r:o;return n&&u(t,e,n)&&(e=void 0),c(t,i(e,3))}},89734:function(t,e,n){var r=n(21078),i=n(82689),o=n(5976),a=n(16612),u=o(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=u},70479:function(t){t.exports=function(){return[]}},95062:function(t){t.exports=function(){return!1}},23493:function(t,e,n){var r=n(80954),i=n(13218);t.exports=function(t,e,n){var o=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:o,maxWait:e,trailing:a})}},18601:function(t,e,n){var r=n(14841),i=1/0;t.exports=function(t){return t?(t=r(t))===i||t===-i?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},40554:function(t,e,n){var r=n(18601);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},14841:function(t,e,n){var r=n(27561),i=n(13218),o=n(33448),a=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return a;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=c.test(t);return n||l.test(t)?s(t.slice(2),n?2:8):u.test(t)?a:+t}},79833:function(t,e,n){var r=n(80531);t.exports=function(t){return null==t?"":r(t)}},45578:function(t,e,n){var r=n(67206),i=n(45652);t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):[]}},11700:function(t,e,n){var r=n(98805)("toUpperCase");t.exports=r},64332:function(t,e,n){"use strict";n.d(e,{$:function(){return U}});var r=n(67294),i=n(90512),o=n(70596),a=n(18446),u=n.n(a),c=n(14293),l=n.n(c),s=n(63535),f=n(66342),p=function(t){return null};p.displayName="Cell";var h=n(38529),d=n(85694),y=n(97726),v=n(2392),m=n(23078),b=n(65717),g=n(38776),x=n(85552),O=["x","y"];function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(){return(j=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,O),o=parseInt("".concat(n),10),a=parseInt("".concat(r),10),u=parseInt("".concat(e.height||i.height),10),c=parseInt("".concat(e.width||i.width),10);return P(P(P(P(P({},e),i),o?{x:o}:{}),a?{y:a}:{}),{},{height:u,width:c,name:e.name,radius:e.radius})}function E(t){return r.createElement(x.bn,j({shapeType:"rectangle",propTransformer:A,activeClassName:"recharts-active-bar"},t))}var k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof t)return t;var i="number"==typeof n;return i?t(n,r):(i||(0,g.Z)(!1),e)}},M=["value","background"];function T(t){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(){return(_=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(e,M);if(!u)return null;var l=D(D(D(D(D({},c),{},{fill:"#eee"},u),a),(0,b.bw)(t.props,e,n)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:i,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return r.createElement(E,_({option:t.props.background,isActive:n===o},l))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,i=n.data,o=n.xAxis,a=n.yAxis,u=n.layout,c=n.children,l=(0,y.NN)(c,f.W);if(!l)return null;var p="vertical"===u?i[0].height/2:i[0].width/2,h=function(t,e){var n=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:n,errorVal:(0,m.F$)(t,e)}};return r.createElement(s.m,{clipPath:t?"url(#clipPath-".concat(e,")"):null},l.map(function(t){return r.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:i,xAxis:o,yAxis:a,layout:u,offset:p,dataPointFormatter:h})}))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,o=t.className,a=t.xAxis,u=t.yAxis,c=t.left,f=t.top,p=t.width,d=t.height,y=t.isAnimationActive,v=t.background,m=t.id;if(e||!n||!n.length)return null;var b=this.state.isAnimationFinished,g=(0,i.Z)("recharts-bar",o),x=a&&a.allowDataOverflow,O=u&&u.allowDataOverflow,w=x||O,j=l()(m)?this.id:m;return r.createElement(s.m,{className:g},x||O?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(j)},r.createElement("rect",{x:x?c:c-p/2,y:O?f:f-d/2,width:x?p:2*p,height:O?d:2*d}))):null,r.createElement(s.m,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(j,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,j),(!y||b)&&h.e.renderCallByParent(this.props,n))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],e&&N(a.prototype,e),n&&N(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(r.PureComponent);z(U,"displayName","Bar"),z(U,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!v.x.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),z(U,"getComposedData",function(t){var e=t.props,n=t.item,r=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,h=t.offset,v=(0,m.Bu)(r,n);if(!v)return null;var b=e.layout,g=n.props,x=g.dataKey,O=g.children,w=g.minPointSize,j="horizontal"===b?a:o,S=l?j.scale.domain():null,P=(0,m.Yj)({numericAxis:j}),A=(0,y.NN)(O,p),E=f.map(function(t,e){l?f=(0,m.Vv)(l[s+e],S):Array.isArray(f=(0,m.F$)(t,x))||(f=[P,f]);var r=k(w,U.defaultProps.minPointSize)(f[1],e);if("horizontal"===b){var f,p,h,y,g,O,j,E=[a.scale(f[0]),a.scale(f[1])],M=E[0],T=E[1];p=(0,m.Fy)({axis:o,ticks:u,bandSize:i,offset:v.offset,entry:t,index:e}),h=null!==(j=null!=T?T:M)&&void 0!==j?j:void 0,y=v.size;var _=M-T;if(g=Number.isNaN(_)?0:_,O={x:p,y:a.y,width:y,height:a.height},Math.abs(r)>0&&Math.abs(g)0&&Math.abs(y)=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function P(t,e){for(var n=0;n0?this.props:d)),i<=0||a<=0||!y||!y.length)?null:r.createElement(s.m,{className:(0,c.Z)("recharts-cartesian-axis",l),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),p._.renderCallByParent(this.props))}}],n=[{key:"renderTickItem",value:function(t,e,n){return r.isValidElement(t)?r.cloneElement(t,e):o()(t)?t(e):r.createElement(f.x,O({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],e&&P(i.prototype,e),n&&P(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(r.Component);M(_,"displayName","CartesianAxis"),M(_,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"})},15239:function(t,e,n){"use strict";n.d(e,{q:function(){return M}});var r=n(67294),i=n(23560),o=n.n(i),a=n(41576),u=n(85694),c=n(97726),l=n(23078),s=n(54387),f=n(76399),p=n(79398),h=["x1","y1","x2","y2","key"],d=["offset"];function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function m(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var x=function(t){var e=t.fill;if(!e||"none"===e)return null;var n=t.fillOpacity,i=t.x,o=t.y,a=t.width,u=t.height;return r.createElement("rect",{x:i,y:o,width:a,height:u,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function O(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(o()(t))n=t(e);else{var i=e.x1,a=e.y1,u=e.x2,l=e.y2,s=e.key,f=g(e,h),p=(0,c.L6)(f,!1),y=(p.offset,g(p,d));n=r.createElement("line",b({},y,{x1:i,y1:a,x2:u,y2:l,fill:"none",key:s}))}return n}function w(t){var e=t.x,n=t.width,i=t.horizontal,o=void 0===i||i,a=t.horizontalPoints;if(!o||!a||!a.length)return null;var u=a.map(function(r,i){return O(o,m(m({},t),{},{x1:e,y1:r,x2:e+n,y2:r,key:"line-".concat(i),index:i}))});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function j(t){var e=t.y,n=t.height,i=t.vertical,o=void 0===i||i,a=t.verticalPoints;if(!o||!a||!a.length)return null;var u=a.map(function(r,i){return O(o,m(m({},t),{},{x1:r,y1:e,x2:r,y2:e+n,key:"line-".concat(i),index:i}))});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function S(t){var e=t.horizontalFill,n=t.fillOpacity,i=t.x,o=t.y,a=t.width,u=t.height,c=t.horizontalPoints,l=t.horizontal;if(!(void 0===l||l)||!e||!e.length)return null;var s=c.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==s[0]&&s.unshift(0);var f=s.map(function(t,c){var l=s[c+1]?s[c+1]-t:o+u-t;if(l<=0)return null;var f=c%e.length;return r.createElement("rect",{key:"react-".concat(c),y:t,x:i,height:l,width:a,stroke:"none",fill:e[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function P(t){var e=t.vertical,n=t.verticalFill,i=t.fillOpacity,o=t.x,a=t.y,u=t.width,c=t.height,l=t.verticalPoints;if(!(void 0===e||e)||!n||!n.length)return null;var s=l.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==s[0]&&s.unshift(0);var f=s.map(function(t,e){var l=s[e+1]?s[e+1]-t:o+u-t;if(l<=0)return null;var f=e%n.length;return r.createElement("rect",{key:"react-".concat(e),x:t,y:a,width:l,height:c,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var A=function(t,e){var n=t.xAxis,r=t.width,i=t.height,o=t.offset;return(0,l.Rf)((0,s.f)(m(m(m({},f.O.defaultProps),n),{},{ticks:(0,l.uY)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,e)},E=function(t,e){var n=t.yAxis,r=t.width,i=t.height,o=t.offset;return(0,l.Rf)((0,s.f)(m(m(m({},f.O.defaultProps),n),{},{ticks:(0,l.uY)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,e)},k={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function M(t){var e,n,i,c,l,s,f=(0,p.zn)(),h=(0,p.Mw)(),d=(0,p.qD)(),v=m(m({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:k.stroke,fill:null!==(n=t.fill)&&void 0!==n?n:k.fill,horizontal:null!==(i=t.horizontal)&&void 0!==i?i:k.horizontal,horizontalFill:null!==(c=t.horizontalFill)&&void 0!==c?c:k.horizontalFill,vertical:null!==(l=t.vertical)&&void 0!==l?l:k.vertical,verticalFill:null!==(s=t.verticalFill)&&void 0!==s?s:k.verticalFill,x:(0,u.hj)(t.x)?t.x:d.left,y:(0,u.hj)(t.y)?t.y:d.top,width:(0,u.hj)(t.width)?t.width:d.width,height:(0,u.hj)(t.height)?t.height:d.height}),g=v.x,O=v.y,M=v.width,T=v.height,_=v.syncWithTicks,C=v.horizontalValues,D=v.verticalValues,N=(0,p.CW)(),I=(0,p.Nf)();if(!(0,u.hj)(M)||M<=0||!(0,u.hj)(T)||T<=0||!(0,u.hj)(g)||g!==+g||!(0,u.hj)(O)||O!==+O)return null;var B=v.verticalCoordinatesGenerator||A,L=v.horizontalCoordinatesGenerator||E,R=v.horizontalPoints,z=v.verticalPoints;if((!R||!R.length)&&o()(L)){var $=C&&C.length,U=L({yAxis:I?m(m({},I),{},{ticks:$?C:I.ticks}):void 0,width:f,height:h,offset:d},!!$||_);(0,a.Z)(Array.isArray(U),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(y(U),"]")),Array.isArray(U)&&(R=U)}if((!z||!z.length)&&o()(B)){var F=D&&D.length,Z=B({xAxis:N?m(m({},N),{},{ticks:F?D:N.ticks}):void 0,width:f,height:h,offset:d},!!F||_);(0,a.Z)(Array.isArray(Z),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(y(Z),"]")),Array.isArray(Z)&&(z=Z)}return r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(x,{fill:v.fill,fillOpacity:v.fillOpacity,x:v.x,y:v.y,width:v.width,height:v.height}),r.createElement(w,b({},v,{offset:d,horizontalPoints:R,xAxis:N,yAxis:I})),r.createElement(j,b({},v,{offset:d,verticalPoints:z,xAxis:N,yAxis:I})),r.createElement(S,b({},v,{horizontalPoints:R})),r.createElement(P,b({},v,{verticalPoints:z})))}M.displayName="CartesianGrid"},66342:function(t,e,n){"use strict";n.d(e,{W:function(){return s}});var r=n(67294),i=n(38776),o=n(63535),a=n(97726),u=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,u),m=(0,a.L6)(v,!1);"x"===t.direction&&"number"!==d.type&&(0,i.Z)(!1);var b=p.map(function(t){var i,a,u=h(t,f),p=u.x,v=u.y,b=u.value,g=u.errorVal;if(!g)return null;var x=[];if(Array.isArray(g)){var O=function(t){if(Array.isArray(t))return t}(g)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,l=!1;try{for(o=(n=n.call(t)).next;!(c=(r=o.call(n)).done)&&(u.push(r.value),2!==u.length);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(g,2)||function(t,e){if(t){if("string"==typeof t)return l(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,2)}}(g,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();i=O[0],a=O[1]}else i=a=g;if("vertical"===n){var w=d.scale,j=v+e,S=j+s,P=j-s,A=w(b-i),E=w(b+a);x.push({x1:E,y1:S,x2:E,y2:P}),x.push({x1:A,y1:j,x2:E,y2:j}),x.push({x1:A,y1:S,x2:A,y2:P})}else if("horizontal"===n){var k=y.scale,M=p+e,T=M-s,_=M+s,C=k(b-i),D=k(b+a);x.push({x1:T,y1:D,x2:_,y2:D}),x.push({x1:M,y1:C,x2:M,y2:D}),x.push({x1:T,y1:C,x2:_,y2:C})}return r.createElement(o.m,c({className:"recharts-errorBar",key:"bar-".concat(x.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},m),x.map(function(t){return r.createElement("line",c({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return r.createElement(o.m,{className:"recharts-errorBars"},b)}s.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},s.displayName="ErrorBar"},66690:function(t,e,n){"use strict";n.d(e,{x:function(){return I}});var r=n(67294),i=n(70596),o=n(23560),a=n.n(o),u=n(14293),c=n.n(u),l=n(18446),s=n.n(l),f=n(90512),p=n(61729),h=n(43118),d=n(63535),y=n(38529),v=n(66342),m=n(85694),b=n(97726),g=n(2392),x=n(23078),O=["type","layout","connectNulls","ref"];function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(){return(j=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);na){c=[].concat(A(r.slice(0,l)),[a-s]);break}var f=c.length%2==0?[0,u]:[u];return[].concat(A(o.repeat(r,Math.floor(e/i))),A(c),f).map(function(t){return"".concat(t,"px")}).join(", ")}),D(_(t),"id",(0,m.EL)("recharts-line-")),D(_(t),"pathRef",function(e){t.mainCurve=e}),D(_(t),"handleAnimationEnd",function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()}),D(_(t),"handleAnimationStart",function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()}),t}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}(o,t),e=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,i=n.points,o=n.xAxis,a=n.yAxis,u=n.layout,c=n.children,l=(0,b.NN)(c,v.W);if(!l)return null;var s=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:(0,x.F$)(t.payload,e)}};return r.createElement(d.m,{clipPath:t?"url(#clipPath-".concat(e,")"):null},l.map(function(t){return r.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:i,xAxis:o,yAxis:a,layout:u,dataPointFormatter:s})}))}},{key:"renderDots",value:function(t,e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,u=i.points,c=i.dataKey,l=(0,b.L6)(this.props,!1),s=(0,b.L6)(a,!0),f=u.map(function(t,e){var n=P(P(P({key:"dot-".concat(e),r:3},l),s),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:e,payload:t.payload});return o.renderDotItem(a,n)}),p={clipPath:t?"url(#clipPath-".concat(e?"":"dots-").concat(n,")"):null};return r.createElement(d.m,j({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(t,e,n,i){var o=this.props,a=o.type,u=o.layout,c=o.connectNulls,l=(o.ref,function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(o,O)),s=P(P(P({},(0,b.L6)(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},i),{},{type:a,layout:u,connectNulls:c});return r.createElement(p.H,j({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var n=this,o=this.props,a=o.points,u=o.strokeDasharray,c=o.isAnimationActive,l=o.animationBegin,s=o.animationDuration,f=o.animationEasing,p=o.animationId,h=o.animateNewValues,d=o.width,y=o.height,v=this.state,b=v.prevPoints,g=v.totalLength;return r.createElement(i.ZP,{begin:l,duration:s,isActive:c,easing:f,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var i,o=r.t;if(b){var c=b.length/a.length,l=a.map(function(t,e){var n=Math.floor(e*c);if(b[n]){var r=b[n],i=(0,m.k4)(r.x,t.x),a=(0,m.k4)(r.y,t.y);return P(P({},t),{},{x:i(o),y:a(o)})}if(h){var u=(0,m.k4)(2*d,t.x),l=(0,m.k4)(y/2,t.y);return P(P({},t),{},{x:u(o),y:l(o)})}return P(P({},t),{},{x:t.x,y:t.y})});return n.renderCurveStatically(l,t,e)}var s=(0,m.k4)(0,g)(o);if(u){var f="".concat(u).split(/[,\s]+/gim).map(function(t){return parseFloat(t)});i=n.getStrokeDasharray(s,g,f)}else i=n.generateSimpleStrokeDasharray(g,s);return n.renderCurveStatically(a,t,e,{strokeDasharray:i})})}},{key:"renderCurve",value:function(t,e){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,u=o.totalLength;return i&&r&&r.length&&(!a&&u>0||!s()(a,r))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(r,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,i=e.dot,o=e.points,a=e.className,u=e.xAxis,l=e.yAxis,s=e.top,p=e.left,h=e.width,v=e.height,m=e.isAnimationActive,g=e.id;if(n||!o||!o.length)return null;var x=this.state.isAnimationFinished,O=1===o.length,w=(0,f.Z)("recharts-line",a),j=u&&u.allowDataOverflow,S=l&&l.allowDataOverflow,P=j||S,A=c()(g)?this.id:g,E=null!==(t=(0,b.L6)(i,!1))&&void 0!==t?t:{r:3,strokeWidth:2},k=E.r,M=E.strokeWidth,T=((0,b.$k)(i)?i:{}).clipDot,_=void 0===T||T,C=2*(void 0===k?3:k)+(void 0===M?2:M);return r.createElement(d.m,{className:w},j||S?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(A)},r.createElement("rect",{x:j?p:p-h/2,y:S?s:s-v/2,width:j?h:2*h,height:S?v:2*v})),!_&&r.createElement("clipPath",{id:"clipPath-dots-".concat(A)},r.createElement("rect",{x:p-C/2,y:s-C/2,width:h+C,height:v+C}))):null,!O&&this.renderCurve(P,A),this.renderErrorBar(P,A),(O||i)&&this.renderDots(P,_,A),(!m||x)&&y.e.renderCallByParent(this.props,o))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var n=t.length%2!=0?[].concat(A(t),[0]):t,r=[],i=0;it*i)return!1;var o=n();return t*(e-t*o/2-r)>=0&&t*(e+t*o/2-i)<=0}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var e=1;e=2?(0,o.uY)(m[1].coordinate-m[0].coordinate):1,M=(r="width"===P,f=b.x,p=b.y,d=b.width,y=b.height,1===k?{start:r?f:p,end:r?f+d:p+y}:{start:r?f+d:p+y,end:r?f:p});return"equidistantPreserveStart"===O?function(t,e,n,r,i){for(var o,a=(r||[]).slice(),u=e.start,c=e.end,f=0,p=1,h=u;p<=a.length;)if(o=function(){var e,o=null==r?void 0:r[f];if(void 0===o)return{v:l(r,p)};var a=f,d=function(){return void 0===e&&(e=n(o,a)),e},y=o.coordinate,v=0===f||s(t,y,d,h,c);v||(f=0,h=u,p+=1),v&&(h=y+t*(d()/2+i),f+=p)}())return o.v;return[]}(k,M,E,m,g):("preserveStart"===O||"preserveStartEnd"===O?function(t,e,n,r,i,o){var a=(r||[]).slice(),u=a.length,c=e.start,l=e.end;if(o){var f=r[u-1],p=n(f,u-1),d=t*(f.coordinate+t*p/2-l);a[u-1]=f=h(h({},f),{},{tickCoord:d>0?f.coordinate-d*t:f.coordinate}),s(t,f.tickCoord,function(){return p},c,l)&&(l=f.tickCoord-t*(p/2+i),a[u-1]=h(h({},f),{},{isShow:!0}))}for(var y=o?u-1:u,v=function(e){var r,o=a[e],u=function(){return void 0===r&&(r=n(o,e)),r};if(0===e){var f=t*(o.coordinate-t*u()/2-c);a[e]=o=h(h({},o),{},{tickCoord:f<0?o.coordinate-f*t:o.coordinate})}else a[e]=o=h(h({},o),{},{tickCoord:o.coordinate});s(t,o.tickCoord,u,c,l)&&(c=o.tickCoord+t*(u()/2+i),a[e]=h(h({},o),{},{isShow:!0}))},m=0;m0?l.coordinate-p*t:l.coordinate})}else o[e]=l=h(h({},l),{},{tickCoord:l.coordinate});s(t,l.tickCoord,f,u,c)&&(c=l.tickCoord-t*(f()/2+i),o[e]=h(h({},l),{},{isShow:!0}))},f=a-1;f>=0;f--)l(f);return o}(k,M,E,m,g)).filter(function(t){return t.isShow})}},53894:function(t,e,n){"use strict";n.d(e,{v:function(){return c}});var r=n(84725),i=n(64332),o=n(56565),a=n(87770),u=n(64243),c=(0,r.z)({chartName:"BarChart",GraphicalChild:i.$,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:o.K},{axisType:"yAxis",AxisComp:a.B}],formatAxisMap:u.t9})},11693:function(t,e,n){"use strict";n.d(e,{w:function(){return c}});var r=n(84725),i=n(66690),o=n(56565),a=n(87770),u=n(64243),c=(0,r.z)({chartName:"LineChart",GraphicalChild:i.x,axisComponents:[{axisType:"xAxis",AxisComp:o.K},{axisType:"yAxis",AxisComp:a.B}],formatAxisMap:u.t9})},84725:function(t,e,n){"use strict";n.d(e,{z:function(){return eb}});var r=n(67294),i=n(14293),o=n.n(i),a=n(23560),u=n.n(a),c=n(96026),l=n.n(c),s=n(27361),f=n.n(s),p=n(89734),h=n.n(p),d=n(23493),y=n.n(d),v=n(90512),m=n(38776),b=n(43778),g=n(63535),x=n(81659),O=n(83948),w=n(43118),j=n(33377),S=n(97726),P=n(175),A=n(16198),E=n(23078),k=n(85694);function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function _(t){for(var e=1;e0&&e.handleDrag(t.changedTouches[0])}),W(F(e),"handleDragEnd",function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=e.props,n=t.endIndex,r=t.onDragEnd,i=t.startIndex;null==r||r({endIndex:n,startIndex:i})}),e.detachDragEndListener()}),W(F(e),"handleLeaveWrapper",function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))}),W(F(e),"handleEnterSlideOrTraveller",function(){e.setState({isTextActive:!0})}),W(F(e),"handleLeaveSlideOrTraveller",function(){e.setState({isTextActive:!1})}),W(F(e),"handleSlideDragStart",function(t){var n=H(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),e.attachDragEndListener()}),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(F(e),"startX"),endX:e.handleTravellerDragStart.bind(F(e),"endX")},e.state={},e}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Z(t,e)}(i,t),e=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,n=t.endX,r=this.state.scaleValues,o=this.props,a=o.gap,u=o.data.length-1,c=i.getIndexInRange(r,Math.min(e,n)),l=i.getIndexInRange(r,Math.max(e,n));return{startIndex:c-c%a,endIndex:l===u?u:l-l%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,i=e.dataKey,o=(0,E.F$)(n[t],i,t);return u()(r)?r(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,i=e.endX,o=this.props,a=o.x,u=o.width,c=o.travellerWidth,l=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-n;p>0?p=Math.min(p,a+u-c-i,a+u-c-r):p<0&&(p=Math.max(p,a-r,a-i));var h=this.getIndex({startX:r+p,endX:i+p});(h.startIndex!==l||h.endIndex!==s)&&f&&f(h),this.setState({startX:r+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=H(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,n=e.brushMoveStartX,r=e.movingTravellerId,i=e.endX,o=e.startX,a=this.state[r],u=this.props,c=u.x,l=u.width,s=u.travellerWidth,f=u.onChange,p=u.gap,h=u.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-n;y>0?y=Math.min(y,c+l-s-a):y<0&&(y=Math.max(y,c-a)),d[r]=a+y;var v=this.getIndex(d),m=v.startIndex,b=v.endIndex,g=function(){var t=h.length-1;return"startX"===r&&(i>o?m%p==0:b%p==0)||io?b%p==0:m%p==0)||i>o&&b===t};this.setState(W(W({},r,a+y),"brushMoveStartX",t.pageX),function(){f&&g()&&f(v)})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var n=this,r=this.state,i=r.scaleValues,o=r.startX,a=r.endX,u=this.state[e],c=i.indexOf(u);if(-1!==c){var l=c+t;if(-1!==l&&!(l>=i.length)){var s=i[l];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(W({},e,s),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,i=t.width,o=t.height,a=t.fill,u=t.stroke;return r.createElement("rect",{stroke:u,fill:a,x:e,y:n,width:i,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,i=t.width,o=t.height,a=t.data,u=t.children,c=t.padding,l=r.Children.only(u);return l?r.cloneElement(l,{x:e,y:n,width:i,height:o,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(t,e){var n,o,a=this,u=this.props,c=u.y,l=u.travellerWidth,s=u.height,f=u.traveller,p=u.ariaLabel,h=u.data,d=u.startIndex,y=u.endIndex,v=Math.max(t,this.props.x),m=R(R({},(0,S.L6)(this.props,!1)),{},{x:v,y:c,width:l,height:s}),b=p||"Min value: ".concat(null===(n=h[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(o=h[y])||void 0===o?void 0:o.name);return r.createElement(g.m,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},i.renderTraveller(f,m))}},{key:"renderSlide",value:function(t,e){var n=this.props,i=n.y,o=n.height,a=n.stroke,u=n.travellerWidth;return r.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:Math.min(t,e)+u,y:i,width:Math.max(Math.abs(e-t)-u,0),height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,i=t.y,o=t.height,a=t.travellerWidth,u=t.stroke,c=this.state,l=c.startX,s=c.endX,f={pointerEvents:"none",fill:u};return r.createElement(g.m,{className:"recharts-brush-texts"},r.createElement(A.x,B({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:i+o/2},f),this.getTextOfTick(e)),r.createElement(A.x,B({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+a+5,y:i+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,i=t.children,o=t.x,a=t.y,u=t.width,c=t.height,l=t.alwaysShowText,s=this.state,f=s.startX,p=s.endX,h=s.isTextActive,d=s.isSlideMoving,y=s.isTravellerMoving,m=s.isTravellerFocused;if(!e||!e.length||!(0,k.hj)(o)||!(0,k.hj)(a)||!(0,k.hj)(u)||!(0,k.hj)(c)||u<=0||c<=0)return null;var b=(0,v.Z)("recharts-brush",n),x=1===r.Children.count(i),O=N("userSelect","none");return r.createElement(g.m,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||d||y||m||l)&&this.renderText())}}],n=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,n=t.y,i=t.width,o=t.height,a=t.stroke,u=Math.floor(n+o/2)-1;return r.createElement(r.Fragment,null,r.createElement("rect",{x:e,y:n,width:i,height:o,fill:a,stroke:"none"}),r.createElement("line",{x1:e+1,y1:u,x2:e+i-1,y2:u,fill:"none",stroke:"#fff"}),r.createElement("line",{x1:e+1,y1:u+2,x2:e+i-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return r.isValidElement(t)?r.cloneElement(t,e):u()(t)?t(e):i.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var n=t.data,r=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,u=t.startIndex,c=t.endIndex;if(n!==e.prevData||a!==e.prevUpdateId)return R({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?Y({data:n,width:r,x:i,travellerWidth:o,startIndex:u,endIndex:c}):{scale:null,scaleValues:null});if(e.scale&&(r!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+r-o]);var l=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var n=t.length,r=0,i=n-1;i-r>1;){var o=Math.floor((r+i)/2);t[o]>e?i=o:r=o}return e>=t[i]?i:r}}],e&&z(i.prototype,e),n&&z(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(r.PureComponent);W(X,"displayName","Brush"),W(X,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var V=n(22461),G=n(56542),K=n(90970),J=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},Q=n(64243),tt=n(41576);function te(t){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tn(){return(tn=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,tz));return(0,k.hj)(n)&&(0,k.hj)(o)&&(0,k.hj)(f)&&(0,k.hj)(h)&&(0,k.hj)(u)&&(0,k.hj)(l)?r.createElement("path",t$({},(0,S.L6)(y,!0),{className:(0,v.Z)("recharts-cross",d),d:"M".concat(n,",").concat(u,"v").concat(h,"M").concat(l,",").concat(o,"h").concat(f)})):null};function tZ(t){var e=t.cx,n=t.cy,r=t.radius,i=t.startAngle,o=t.endAngle;return{points:[(0,tA.op)(e,n,r,i),(0,tA.op)(e,n,r,o)],cx:e,cy:n,radius:r,startAngle:i,endAngle:o}}var tW=n(68416);function tq(t){return(tq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tY(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tH(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function t1(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(t1=function(){return!!t})()}function t2(t){return(t2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function t6(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function t3(t,e){return(t3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function t5(t){return function(t){if(Array.isArray(t))return t7(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||t4(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t4(t,e){if(t){if("string"==typeof t)return t7(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t7(t,e)}}function t7(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0?o:t&&t.length&&(0,k.hj)(r)&&(0,k.hj)(i)?t.slice(r,i+1):[]};function ec(t){return"number"===t?[0,"auto"]:void 0}var el=function(t,e,n,r){var i=t.graphicalItems,o=t.tooltipAxis,a=eu(e,t);return n<0||!i||!i.length||n>=a.length?null:i.reduce(function(i,u){var c,l,s=null!==(c=u.props.data)&&void 0!==c?c:e;if(s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory){var f=void 0===s?a:s;l=(0,k.Ap)(f,o.dataKey,r)}else l=s&&s[n]||a[n];return l?[].concat(t5(i),[(0,E.Qo)(u,l)]):i},[])},es=function(t,e,n,r){var i=r||{x:t.chartX,y:t.chartY},o="horizontal"===n?i.x:"vertical"===n?i.y:"centric"===n?i.angle:i.radius,a=t.orderedTooltipTicks,u=t.tooltipAxis,c=t.tooltipTicks,l=(0,E.VO)(o,a,c,u);if(l>=0&&c){var s=c[l]&&c[l].value,f=el(t,e,l,s),p=ea(n,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},ef=function(t,e){var n=e.axes,r=e.graphicalItems,i=e.axisType,a=e.axisIdKey,u=e.stackGroups,c=e.dataStartIndex,s=e.dataEndIndex,f=t.layout,p=t.children,h=t.stackOffset,d=(0,E.NA)(f,i);return n.reduce(function(e,n){var y=n.props,v=y.type,m=y.dataKey,b=y.allowDataOverflow,g=y.allowDuplicatedCategory,x=y.scale,O=y.ticks,w=y.includeHidden,j=n.props[a];if(e[j])return e;var S=eu(t.data,{graphicalItems:r.filter(function(t){return t.props[a]===j}),dataStartIndex:c,dataEndIndex:s}),P=S.length;(function(t,e,n){if("number"===n&&!0===e&&Array.isArray(t)){var r=null==t?void 0:t[0],i=null==t?void 0:t[1];if(r&&i&&(0,k.hj)(r)&&(0,k.hj)(i))return!0}return!1})(n.props.domain,b,v)&&(T=(0,E.LG)(n.props.domain,null,b),d&&("number"===v||"auto"!==x)&&(C=(0,E.gF)(S,m,"category")));var A=ec(v);if(!T||0===T.length){var M,T,_,C,D,N=null!==(D=n.props.domain)&&void 0!==D?D:A;if(m){if(T=(0,E.gF)(S,m,v),"category"===v&&d){var I=(0,k.bv)(T);g&&I?(_=T,T=l()(0,P)):g||(T=(0,E.ko)(N,T,n).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(t5(t),[e])},[]))}else if("category"===v)T=g?T.filter(function(t){return""!==t&&!o()(t)}):(0,E.ko)(N,T,n).reduce(function(t,e){return t.indexOf(e)>=0||""===e||o()(e)?t:[].concat(t5(t),[e])},[]);else if("number"===v){var B=(0,E.ZI)(S,r.filter(function(t){return t.props[a]===j&&(w||!t.props.hide)}),m,i,f);B&&(T=B)}d&&("number"===v||"auto"!==x)&&(C=(0,E.gF)(S,m,"category"))}else T=d?l()(0,P):u&&u[j]&&u[j].hasStack&&"number"===v?"expand"===h?[0,1]:(0,E.EB)(u[j].stackGroups,c,s):(0,E.s6)(S,r.filter(function(t){return t.props[a]===j&&(w||!t.props.hide)}),v,f,!0);"number"===v?(T=tP(p,T,j,i,O),N&&(T=(0,E.LG)(N,T,b))):"category"===v&&N&&T.every(function(t){return N.indexOf(t)>=0})&&(T=N)}return t9(t9({},e),{},et({},j,t9(t9({},n.props),{},{axisType:i,domain:T,categoricalDomain:C,duplicateDomain:_,originalDomain:null!==(M=n.props.domain)&&void 0!==M?M:A,isCategorical:d,layout:f})))},{})},ep=function(t,e){var n=e.graphicalItems,r=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,s=t.layout,p=t.children,h=eu(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:c}),d=h.length,y=(0,E.NA)(s,i),v=-1;return n.reduce(function(t,e){var m,b=e.props[o],g=ec("number");return t[b]?t:(v++,m=y?l()(0,d):a&&a[b]&&a[b].hasStack?tP(p,m=(0,E.EB)(a[b].stackGroups,u,c),b,i):tP(p,m=(0,E.LG)(g,(0,E.s6)(h,n.filter(function(t){return t.props[o]===b&&!t.props.hide}),"number",s),r.defaultProps.allowDataOverflow),b,i),t9(t9({},t),{},et({},b,t9(t9({axisType:i},r.defaultProps),{},{hide:!0,orientation:f()(en,"".concat(i,".").concat(v%2),null),domain:m,originalDomain:g,isCategorical:y,layout:s}))))},{})},eh=function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.children,s="".concat(r,"Id"),f=(0,S.NN)(l,i),p={};return f&&f.length?p=ef(t,{axes:f,graphicalItems:o,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):o&&o.length&&(p=ep(t,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c})),p},ed=function(t){var e=(0,k.Kt)(t),n=(0,E.uY)(e,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:h()(n,function(t){return t.coordinate}),tooltipAxis:e,tooltipAxisBandSize:(0,E.zT)(e,n)}},ey=function(t){var e=t.children,n=t.defaultShowTooltip,r=(0,S.sP)(e,X),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(o=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},ev=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},em=function(t,e){var n=t.props,r=t.graphicalItems,i=t.xAxisMap,o=void 0===i?{}:i,a=t.yAxisMap,u=void 0===a?{}:a,c=n.width,l=n.height,s=n.children,p=n.margin||{},h=(0,S.sP)(s,X),d=(0,S.sP)(s,O.D),y=Object.keys(u).reduce(function(t,e){var n=u[e],r=n.orientation;return n.mirror||n.hide?t:t9(t9({},t),{},et({},r,t[r]+n.width))},{left:p.left||0,right:p.right||0}),v=Object.keys(o).reduce(function(t,e){var n=o[e],r=n.orientation;return n.mirror||n.hide?t:t9(t9({},t),{},et({},r,f()(t,"".concat(r))+n.height))},{top:p.top||0,bottom:p.bottom||0}),m=t9(t9({},v),y),b=m.bottom;h&&(m.bottom+=h.props.height||X.defaultProps.height),d&&e&&(m=(0,E.By)(m,r,n,e));var g=c-m.left-m.right,x=l-m.top-m.bottom;return t9(t9({brushBottom:b},m),{},{width:Math.max(g,0),height:Math.max(x,0)})},eb=function(t){var e,n=t.chartName,i=t.GraphicalChild,a=t.defaultTooltipEventType,c=void 0===a?"axis":a,l=t.validateTooltipEventTypes,s=void 0===l?["axis"]:l,p=t.axisComponents,h=t.legendContent,d=t.formatAxisMap,O=t.defaultProps,P=function(t,e){var n=e.graphicalItems,r=e.stackGroups,i=e.offset,a=e.updateId,u=e.dataStartIndex,c=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,h=t.barCategoryGap,d=t.maxBarSize,y=ev(s),v=y.numericAxisName,b=y.cateAxisName,g=!!n&&!!n.length&&n.some(function(t){var e=(0,S.Gf)(t&&t.type);return e&&e.indexOf("Bar")>=0}),x=[];return n.forEach(function(n,y){var O=eu(t.data,{graphicalItems:[n],dataStartIndex:u,dataEndIndex:c}),w=n.props,j=w.dataKey,P=w.maxBarSize,A=n.props["".concat(v,"Id")],k=n.props["".concat(b,"Id")],M=p.reduce(function(t,r){var i=e["".concat(r.axisType,"Map")],o=n.props["".concat(r.axisType,"Id")];i&&i[o]||"zAxis"===r.axisType||(0,m.Z)(!1);var a=i[o];return t9(t9({},t),{},et(et({},r.axisType,a),"".concat(r.axisType,"Ticks"),(0,E.uY)(a)))},{}),T=M[b],_=M["".concat(b,"Ticks")],C=r&&r[A]&&r[A].hasStack&&(0,E.O3)(n,r[A].stackGroups),D=(0,S.Gf)(n.type).indexOf("Bar")>=0,N=(0,E.zT)(T,_),I=[],B=g&&(0,E.pt)({barSize:l,stackGroups:r,totalSize:"xAxis"===b?M[b].width:"yAxis"===b?M[b].height:void 0});if(D){var L,R,z=o()(P)?d:P,$=null!==(L=null!==(R=(0,E.zT)(T,_,!0))&&void 0!==R?R:z)&&void 0!==L?L:0;I=(0,E.qz)({barGap:f,barCategoryGap:h,bandSize:$!==N?$:N,sizeList:B[k],maxBarSize:z}),$!==N&&(I=I.map(function(t){return t9(t9({},t),{},{position:t9(t9({},t.position),{},{offset:t.position.offset-$/2})})}))}var U=n&&n.type&&n.type.getComposedData;U&&x.push({props:t9(t9({},U(t9(t9({},M),{},{displayedData:O,props:t,dataKey:j,item:n,bandSize:N,barPosition:I,offset:i,stackedData:C,layout:s,dataStartIndex:u,dataEndIndex:c}))),{},et(et(et({key:n.key||"item-".concat(y)},v,M[v]),b,M[b]),"animationId",a)),childIndex:(0,S.$R)(n,t.children),item:n})}),x},A=function(t,e){var r=t.props,o=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!(0,S.TT)({props:r}))return null;var c=r.children,l=r.layout,s=r.stackOffset,f=r.data,h=r.reverseStackOrder,y=ev(l),v=y.numericAxisName,m=y.cateAxisName,b=(0,S.NN)(c,i),g=(0,E.wh)(f,b,"".concat(v,"Id"),"".concat(m,"Id"),s,h),x=p.reduce(function(t,e){var n="".concat(e.axisType,"Map");return t9(t9({},t),{},et({},n,eh(r,t9(t9({},e),{},{graphicalItems:b,stackGroups:e.axisType===v&&g,dataStartIndex:o,dataEndIndex:a}))))},{}),O=em(t9(t9({},x),{},{props:r,graphicalItems:b}),null==e?void 0:e.legendBBox);Object.keys(x).forEach(function(t){x[t]=d(r,x[t],O,t.replace("Map",""),n)});var w=ed(x["".concat(m,"Map")]),j=P(r,t9(t9({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:g,offset:O}));return t9(t9({formattedGraphicalItems:j,graphicalItems:b,offset:O,stackGroups:g},w),x)};return e=function(t){var e;function i(t){var e,a,c,l,s;return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,i),l=i,s=[t],l=t2(l),c=function(t,e){if(e&&("object"===tK(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return t6(t)}(this,t1()?Reflect.construct(l,s||[],t2(this).constructor):l.apply(this,s)),et(t6(c),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),et(t6(c),"accessibilityManager",new tI),et(t6(c),"handleLegendBBoxUpdate",function(t){if(t){var e=c.state,n=e.dataStartIndex,r=e.dataEndIndex,i=e.updateId;c.setState(t9({legendBBox:t},A({props:c.props,dataStartIndex:n,dataEndIndex:r,updateId:i},t9(t9({},c.state),{},{legendBBox:t}))))}}),et(t6(c),"handleReceiveSyncEvent",function(t,e,n){c.props.syncId===t&&(n!==c.eventEmitterSymbol||"function"==typeof c.props.syncMethod)&&c.applySyncEvent(e)}),et(t6(c),"handleBrushChange",function(t){var e=t.startIndex,n=t.endIndex;if(e!==c.state.dataStartIndex||n!==c.state.dataEndIndex){var r=c.state.updateId;c.setState(function(){return t9({dataStartIndex:e,dataEndIndex:n},A({props:c.props,dataStartIndex:e,dataEndIndex:n,updateId:r},c.state))}),c.triggerSyncEvent({dataStartIndex:e,dataEndIndex:n})}}),et(t6(c),"handleMouseEnter",function(t){var e=c.getMouseInfo(t);if(e){var n=t9(t9({},e),{},{isTooltipActive:!0});c.setState(n),c.triggerSyncEvent(n);var r=c.props.onMouseEnter;u()(r)&&r(n,t)}}),et(t6(c),"triggeredAfterMouseMove",function(t){var e=c.getMouseInfo(t),n=e?t9(t9({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};c.setState(n),c.triggerSyncEvent(n);var r=c.props.onMouseMove;u()(r)&&r(n,t)}),et(t6(c),"handleItemMouseEnter",function(t){c.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),et(t6(c),"handleItemMouseLeave",function(){c.setState(function(){return{isTooltipActive:!1}})}),et(t6(c),"handleMouseMove",function(t){t.persist(),c.throttleTriggeredAfterMouseMove(t)}),et(t6(c),"handleMouseLeave",function(t){c.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};c.setState(e),c.triggerSyncEvent(e);var n=c.props.onMouseLeave;u()(n)&&n(e,t)}),et(t6(c),"handleOuterEvent",function(t){var e,n=(0,S.Bh)(t),r=f()(c.props,"".concat(n));n&&u()(r)&&r(null!==(e=/.*touch.*/i.test(n)?c.getMouseInfo(t.changedTouches[0]):c.getMouseInfo(t))&&void 0!==e?e:{},t)}),et(t6(c),"handleClick",function(t){var e=c.getMouseInfo(t);if(e){var n=t9(t9({},e),{},{isTooltipActive:!0});c.setState(n),c.triggerSyncEvent(n);var r=c.props.onClick;u()(r)&&r(n,t)}}),et(t6(c),"handleMouseDown",function(t){var e=c.props.onMouseDown;u()(e)&&e(c.getMouseInfo(t),t)}),et(t6(c),"handleMouseUp",function(t){var e=c.props.onMouseUp;u()(e)&&e(c.getMouseInfo(t),t)}),et(t6(c),"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),et(t6(c),"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseDown(t.changedTouches[0])}),et(t6(c),"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseUp(t.changedTouches[0])}),et(t6(c),"triggerSyncEvent",function(t){void 0!==c.props.syncId&&tM.emit(tT,c.props.syncId,t,c.eventEmitterSymbol)}),et(t6(c),"applySyncEvent",function(t){var e=c.props,n=e.layout,r=e.syncMethod,i=c.state.updateId,o=t.dataStartIndex,a=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)c.setState(t9({dataStartIndex:o,dataEndIndex:a},A({props:c.props,dataStartIndex:o,dataEndIndex:a,updateId:i},c.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=c.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof r)s=r(h,t);else if("value"===r){s=-1;for(var d=0;d=0){if(s.dataKey&&!s.allowDuplicatedCategory){var T="function"==typeof s.dataKey?function(t){return"function"==typeof s.dataKey?s.dataKey(t.payload):null}:"payload.".concat(s.dataKey.toString());C=(0,k.Ap)(v,T,p),D=m&&b&&(0,k.Ap)(b,T,p)}else C=null==v?void 0:v[f],D=m&&b&&b[f];if(P||j){var _=void 0!==t.props.activeIndex?t.props.activeIndex:f;return[(0,r.cloneElement)(t,t9(t9(t9({},i.props),A),{},{activeIndex:_})),null,null]}if(!o()(C))return[M].concat(t5(c.renderActivePoints({item:i,activePoint:C,basePoint:D,childIndex:f,isRange:m})))}else{var C,D,N,I=(null!==(N=c.getItemByXY(c.state.activeCoordinate))&&void 0!==N?N:{graphicalItem:M}).graphicalItem,B=I.item,L=void 0===B?t:B,R=I.childIndex,z=t9(t9(t9({},i.props),A),{},{activeIndex:R});return[(0,r.cloneElement)(L,z),null,null]}}return m?[M,null,null]:[M,null]}),et(t6(c),"renderCustomized",function(t,e,n){return(0,r.cloneElement)(t,t9(t9({key:"recharts-customized-".concat(n)},c.props),c.state))}),et(t6(c),"renderMap",{CartesianGrid:{handler:eo,once:!0},ReferenceArea:{handler:c.renderReferenceElement},ReferenceLine:{handler:eo},ReferenceDot:{handler:c.renderReferenceElement},XAxis:{handler:eo},YAxis:{handler:eo},Brush:{handler:c.renderBrush,once:!0},Bar:{handler:c.renderGraphicChild},Line:{handler:c.renderGraphicChild},Area:{handler:c.renderGraphicChild},Radar:{handler:c.renderGraphicChild},RadialBar:{handler:c.renderGraphicChild},Scatter:{handler:c.renderGraphicChild},Pie:{handler:c.renderGraphicChild},Funnel:{handler:c.renderGraphicChild},Tooltip:{handler:c.renderCursor,once:!0},PolarGrid:{handler:c.renderPolarGrid,once:!0},PolarAngleAxis:{handler:c.renderPolarAxis},PolarRadiusAxis:{handler:c.renderPolarAxis},Customized:{handler:c.renderCustomized}}),c.clipPathId="".concat(null!==(e=t.id)&&void 0!==e?e:(0,k.EL)("recharts"),"-clip"),c.throttleTriggeredAfterMouseMove=y()(c.triggeredAfterMouseMove,null!==(a=t.throttleDelay)&&void 0!==a?a:1e3/60),c.state={},c}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&t3(t,e)}(i,t),e=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,n=t.data,r=t.height,i=t.layout,o=(0,S.sP)(e,x.u);if(o){var a=o.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length)){var u=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,c=el(this.state,n,a,u),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+r)/2,f="horizontal"===i?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find(function(t){return"Scatter"===t.item.type.name});p&&(f=t9(t9({},f),p.props.points[a].tooltipPosition),c=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:u,activePayload:c,activeCoordinate:f};this.setState(h),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin){var n,r;this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}})}return null}},{key:"componentDidUpdate",value:function(t){(0,S.rL)([(0,S.sP)(t.children,x.u)],[(0,S.sP)(this.props.children,x.u)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,S.sP)(this.props.children,x.u);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return s.indexOf(e)>=0?e:c}return c}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,n=e.getBoundingClientRect(),r=(0,V.os)(n),i={chartX:Math.round(t.pageX-r.left),chartY:Math.round(t.pageY-r.top)},o=n.width/e.offsetWidth||1,a=this.inRange(i.chartX,i.chartY,o);if(!a)return null;var u=this.state,c=u.xAxisMap,l=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&c&&l){var s=(0,k.Kt)(c).scale,f=(0,k.Kt)(l).scale,p=s&&s.invert?s.invert(i.chartX):null,h=f&&f.invert?f.invert(i.chartY):null;return t9(t9({},i),{},{xValue:p,yValue:h})}var d=es(this.state,this.props.data,this.props.layout,a);return d?t9(t9({},i),d):null}},{key:"inRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,i=t/n,o=e/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var u=this.state,c=u.angleAxisMap,l=u.radiusAxisMap;if(c&&l){var s=(0,k.Kt)(c);return(0,tA.z3)({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),n=(0,S.sP)(t,x.u),r={};return n&&"axis"===e&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),t9(t9({},(0,t_.Ym)(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){tM.on(tT,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){tM.removeListener(tT,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;it.length)&&(e=t.length);for(var n=0,r=Array(e);n=0?1:-1;"insideStart"===u?(i=b+S*l,a=O):"insideEnd"===u?(i=g-S*l,a=!O):"end"===u&&(i=g+S*l,a=O),a=j<=0?a:!a;var P=(0,d.op)(p,y,w,i),A=(0,d.op)(p,y,w,i+(a?1:-1)*359),E="M".concat(P.x,",").concat(P.y,"\n A").concat(w,",").concat(w,",0,1,").concat(a?0:1,",\n ").concat(A.x,",").concat(A.y),k=o()(t.id)?(0,h.EL)("recharts-radial-line-"):t.id;return r.createElement("text",x({},n,{dominantBaseline:"central",className:(0,s.Z)("recharts-radial-bar-label",f)}),r.createElement("defs",null,r.createElement("path",{id:k,d:E})),r.createElement("textPath",{xlinkHref:"#".concat(k)},e))},j=function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e.cx,o=e.cy,a=e.innerRadius,u=e.outerRadius,c=(e.startAngle+e.endAngle)/2;if("outside"===r){var l=(0,d.op)(i,o,u+n,c),s=l.x;return{x:s,y:l.y,textAnchor:s>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var f=(0,d.op)(i,o,(a+u)/2,c);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},S=function(t){var e=t.viewBox,n=t.parentViewBox,r=t.offset,i=t.position,o=e.x,a=e.y,u=e.width,c=e.height,s=c>=0?1:-1,f=s*r,p=s>0?"end":"start",d=s>0?"start":"end",y=u>=0?1:-1,v=y*r,m=y>0?"end":"start",b=y>0?"start":"end";if("top"===i)return g(g({},{x:o+u/2,y:a-s*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(a-n.y,0),width:u}:{});if("bottom"===i)return g(g({},{x:o+u/2,y:a+c+f,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(n.y+n.height-(a+c),0),width:u}:{});if("left"===i){var x={x:o-v,y:a+c/2,textAnchor:m,verticalAnchor:"middle"};return g(g({},x),n?{width:Math.max(x.x-n.x,0),height:c}:{})}if("right"===i){var O={x:o+u+v,y:a+c/2,textAnchor:b,verticalAnchor:"middle"};return g(g({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:c}:{})}var w=n?{width:u,height:c}:{};return"insideLeft"===i?g({x:o+v,y:a+c/2,textAnchor:b,verticalAnchor:"middle"},w):"insideRight"===i?g({x:o+u-v,y:a+c/2,textAnchor:m,verticalAnchor:"middle"},w):"insideTop"===i?g({x:o+u/2,y:a+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===i?g({x:o+u/2,y:a+c-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===i?g({x:o+v,y:a+f,textAnchor:b,verticalAnchor:d},w):"insideTopRight"===i?g({x:o+u-v,y:a+f,textAnchor:m,verticalAnchor:d},w):"insideBottomLeft"===i?g({x:o+v,y:a+c-f,textAnchor:b,verticalAnchor:p},w):"insideBottomRight"===i?g({x:o+u-v,y:a+c-f,textAnchor:m,verticalAnchor:p},w):l()(i)&&((0,h.hj)(i.x)||(0,h.hU)(i.x))&&((0,h.hj)(i.y)||(0,h.hU)(i.y))?g({x:o+(0,h.h1)(i.x,u),y:a+(0,h.h1)(i.y,c),textAnchor:"end",verticalAnchor:"end"},w):g({x:o+u/2,y:a+c/2,textAnchor:"middle",verticalAnchor:"middle"},w)};function P(t){var e,n=t.offset,i=g({offset:void 0===n?5:n},function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,v)),a=i.viewBox,c=i.position,l=i.value,d=i.children,y=i.content,m=i.className,b=i.textBreakAll;if(!a||o()(l)&&o()(d)&&!(0,r.isValidElement)(y)&&!u()(y))return null;if((0,r.isValidElement)(y))return(0,r.cloneElement)(y,i);if(u()(y)){if(e=(0,r.createElement)(y,i),(0,r.isValidElement)(e))return e}else e=O(i);var P="cx"in a&&(0,h.hj)(a.cx),A=(0,p.L6)(i,!0);if(P&&("insideStart"===c||"insideEnd"===c||"end"===c))return w(i,e,A);var E=P?j(i):S(i);return r.createElement(f.x,x({className:(0,s.Z)("recharts-label",void 0===m?"":m)},A,E,{breakAll:b}),e)}P.displayName="Label";var A=function(t){var e=t.cx,n=t.cy,r=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,u=t.radius,c=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,d=t.left,y=t.width,v=t.height,m=t.clockWise,b=t.labelViewBox;if(b)return b;if((0,h.hj)(y)&&(0,h.hj)(v)){if((0,h.hj)(s)&&(0,h.hj)(f))return{x:s,y:f,width:y,height:v};if((0,h.hj)(p)&&(0,h.hj)(d))return{x:p,y:d,width:y,height:v}}return(0,h.hj)(s)&&(0,h.hj)(f)?{x:s,y:f,width:0,height:0}:(0,h.hj)(e)&&(0,h.hj)(n)?{cx:e,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:c||0,outerRadius:l||u||a||0,clockWise:m}:t.viewBox?t.viewBox:{}};P.parseViewBox=A,P.renderCallByParent=function(t,e){var n,i,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var a=t.children,c=A(t),s=(0,p.NN)(a,P).map(function(t,n){return(0,r.cloneElement)(t,{viewBox:e||c,key:"label-".concat(n)})});return o?[(n=t.label,i=e||c,n?!0===n?r.createElement(P,{key:"label-implicit",viewBox:i}):(0,h.P2)(n)?r.createElement(P,{key:"label-implicit",viewBox:i,value:n}):(0,r.isValidElement)(n)?n.type===P?(0,r.cloneElement)(n,{key:"label-implicit",viewBox:i}):r.createElement(P,{key:"label-implicit",content:n,viewBox:i}):u()(n)?r.createElement(P,{key:"label-implicit",content:n,viewBox:i}):l()(n)?r.createElement(P,x({viewBox:i},n,{key:"label-implicit"})):null:null)].concat(function(t){if(Array.isArray(t))return m(t)}(s)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(s)||function(t,e){if(t){if("string"==typeof t)return m(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,void 0)}}(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):s}},38529:function(t,e,n){"use strict";n.d(e,{e:function(){return P}});var r=n(67294),i=n(14293),o=n.n(i),a=n(13218),u=n.n(a),c=n(23560),l=n.n(c),s=n(10928),f=n.n(s),p=n(90970),h=n(63535),d=n(97726),y=n(23078);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var m=["valueAccessor"],b=["data","dataKey","clockWise","id","textBreakAll"];function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var S=function(t){return Array.isArray(t.value)?f()(t.value):t.value};function P(t){var e=t.valueAccessor,n=void 0===e?S:e,i=j(t,m),a=i.data,u=i.dataKey,c=i.clockWise,l=i.id,s=i.textBreakAll,f=j(i,b);return a&&a.length?r.createElement(h.m,{className:"recharts-label-list"},a.map(function(t,e){var i=o()(u)?n(t,e):(0,y.F$)(t&&t.payload,u),a=o()(l)?{}:{id:"".concat(l,"-").concat(e)};return r.createElement(p._,x({},(0,d.L6)(t,!0),f,a,{parentViewBox:t.parentViewBox,value:i,textBreakAll:s,viewBox:p._.parseViewBox(o()(c)?t:w(w({},t),{},{clockWise:c})),key:"label-".concat(e),index:e}))})):null}P.displayName="LabelList",P.renderCallByParent=function(t,e){var n,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&i&&!t.label)return null;var o=t.children,a=(0,d.NN)(o,P).map(function(t,n){return(0,r.cloneElement)(t,{data:e,key:"labelList-".concat(n)})});return i?[(n=t.label)?!0===n?r.createElement(P,{key:"labelList-implicit",data:e}):r.isValidElement(n)||l()(n)?r.createElement(P,{key:"labelList-implicit",data:e,content:n}):u()(n)?r.createElement(P,x({data:e},n,{key:"labelList-implicit"})):null:null].concat(function(t){if(Array.isArray(t))return g(t)}(a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||function(t,e){if(t){if("string"==typeof t)return g(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,void 0)}}(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):a}},83948:function(t,e,n){"use strict";n.d(e,{D:function(){return N}});var r=n(67294),i=n(23560),o=n.n(i),a=n(90512),u=n(41576),c=n(43778),l=n(87045),s=n(65717);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(){return(p=Object.assign?Object.assign.bind():function(t){for(var e=1;e');var x=e.inactive?h:e.color;return r.createElement("li",p({className:b,style:y,key:"legend-item-".concat(n)},(0,s.bw)(t.props,e,n)),r.createElement(c.T,{width:i,height:i,viewBox:d,style:v},t.renderIcon(e)),r.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},l?l(g,e,n):g))})}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,i=t.align;return e&&e.length?r.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?i:"left"}},this.renderItems()):null}}],function(t,e){for(var n=0;n1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?P({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,i=r.layout,o=r.align,a=r.verticalAlign,u=r.margin,c=r.chartWidth,l=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===o?{right:u&&u.right||0}:{left:u&&u.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),P(P({},e),n)}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,i=e.width,o=e.height,a=e.wrapperStyle,u=e.payloadUniqBy,c=e.payload,l=P(P({position:"absolute",width:i||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return r.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(r.isValidElement(t))return r.cloneElement(t,e);if("function"==typeof t)return r.createElement(t,e);e.ref;var n=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(e,j);return r.createElement(g,n)}(n,P(P({},this.props),{},{payload:(0,O.z)(c,u,D)})))}}],n=[{key:"getWithHeight",value:function(t,e){var n=t.props.layout;return"vertical"===n&&(0,x.hj)(t.props.height)?{height:t.props.height}:"horizontal"===n?{width:t.props.width||e}:null}}],e&&A(i.prototype,e),n&&A(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(r.PureComponent);_(N,"displayName","Legend"),_(N,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},55341:function(t,e,n){"use strict";n.d(e,{h:function(){return y}});var r=n(90512),i=n(67294),o=n(23493),a=n.n(o),u=n(59864),c=n(85694),l=n(41576),s=n(97726);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&(t=a()(t,P,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),n=T.current.getBoundingClientRect();return I(n.width,n.height),e.observe(T.current),function(){e.disconnect()}},[I,P]);var B=(0,i.useMemo)(function(){var t=D.containerWidth,e=D.containerHeight;if(t<0||e<0)return null;(0,l.Z)((0,c.hU)(v)||(0,c.hU)(b),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",v,b),(0,l.Z)(!o||o>0,"The aspect(%s) must be greater than zero.",o);var n=(0,c.hU)(v)?t:v,r=(0,c.hU)(b)?e:b;o&&o>0&&(n?r=n/o:r&&(n=r*o),w&&r>w&&(r=w)),(0,l.Z)(n>0||r>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,r,v,b,x,O,o);var a=!Array.isArray(j)&&(0,u.isElement)(j)&&(0,s.Gf)(j.type).endsWith("Chart");return i.Children.map(j,function(t){return(0,u.isElement)(t)?(0,i.cloneElement)(t,h({width:n,height:r},a?{style:h({height:"100%",width:"100%",maxHeight:r,maxWidth:n},t.props.style)}:{})):t})},[o,j,b,w,O,x,D,v]);return i.createElement("div",{id:A?"".concat(A):void 0,className:(0,r.Z)("recharts-responsive-container",E),style:h(h({},void 0===M?{}:M),{},{width:v,height:b,minWidth:x,minHeight:O,maxHeight:w}),ref:T},B)})},16198:function(t,e,n){"use strict";n.d(e,{x:function(){return L}});var r=n(67294),i=n(14293),o=n.n(i),a=n(90512),u=n(85694),c=n(2392),l=n(97726),s=n(22461);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function M(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce(function(t,e){var o=e.word,a=e.width,u=t[t.length-1];return u&&(null==r||i||u.width+a+na||e.reduce(function(t,e){return t.width>e.width?t:e}).width>Number(r),e]},y=0,v=c.length-1,m=0;y<=v&&m<=c.length-1;){var b=Math.floor((y+v)/2),g=M(d(b-1),2),x=g[0],O=g[1],w=M(d(b),1)[0];if(x||w||(y=b+1),x&&w&&(v=b-1),!x&&w){o=O;break}m++}return o||h},N=function(t){return[{words:o()(t)?[]:t.toString().split(_)}]},I=function(t){var e=t.width,n=t.scaleToFit,r=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||n)&&!c.x.isSsr){var u=C({breakAll:o,children:r,style:i});return u?D({breakAll:o,children:r,maxLines:a,style:i},u.wordsWithComputedWidth,u.spaceWidth,e,n):N(r)}return N(r)},B="#808080",L=function(t){var e,n=t.x,i=void 0===n?0:n,o=t.y,c=void 0===o?0:o,s=t.lineHeight,f=void 0===s?"1em":s,p=t.capHeight,h=void 0===p?"0.71em":p,d=t.scaleToFit,y=void 0!==d&&d,v=t.textAnchor,m=t.verticalAnchor,b=t.fill,g=void 0===b?B:b,x=k(t,P),O=(0,r.useMemo)(function(){return I({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:y,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,y,x.style,x.width]),w=x.dx,j=x.dy,M=x.angle,T=x.className,_=x.breakAll,C=k(x,A);if(!(0,u.P2)(i)||!(0,u.P2)(c))return null;var D=i+((0,u.hj)(w)?w:0),N=c+((0,u.hj)(j)?j:0);switch(void 0===m?"end":m){case"start":e=S("calc(".concat(h,")"));break;case"middle":e=S("calc(".concat((O.length-1)/2," * -").concat(f," + (").concat(h," / 2))"));break;default:e=S("calc(".concat(O.length-1," * -").concat(f,")"))}var L=[];if(y){var R=O[0].width,z=x.width;L.push("scale(".concat(((0,u.hj)(z)?z/R:1)/R,")"))}return M&&L.push("rotate(".concat(M,", ").concat(D,", ").concat(N,")")),L.length&&(C.transform=L.join(" ")),r.createElement("text",E({},(0,l.L6)(C,!0),{x:D,y:N,className:(0,a.Z)("recharts-text",T),textAnchor:void 0===v?"start":v,fill:g.includes("url")?B:g}),O.map(function(t,n){var i=t.words.join(_?"":" ");return r.createElement("tspan",{x:D,dy:0===n?e:f,key:i},i)}))}},81659:function(t,e,n){"use strict";n.d(e,{u:function(){return Z}});var r=n(67294),i=n(89734),o=n.n(i),a=n(14293),u=n.n(a),c=n(90512),l=n(85694);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(){return(f=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);nc[r]+s?Math.max(f,c[r]):Math.max(p,c[r])}function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function S(t){for(var e=1;e1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)!==this.state.dismissedAtCoordinate.x||(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var t,e,n,i,o,a,u,s,f,p,h,d,y,v,m,w,j,P,A,E=this,k=this.props,M=k.active,T=k.allowEscapeViewBox,_=k.animationDuration,C=k.animationEasing,D=k.children,N=k.coordinate,I=k.hasPayload,B=k.isAnimationActive,L=k.offset,R=k.position,z=k.reverseDirection,$=k.useTranslate3d,U=k.viewBox,F=k.wrapperStyle,Z=(d=(t={allowEscapeViewBox:T,coordinate:N,offsetTopLeft:L,position:R,reverseDirection:z,tooltipBox:this.state.lastBoundingBox,useTranslate3d:$,viewBox:U}).allowEscapeViewBox,y=t.coordinate,v=t.offsetTopLeft,m=t.position,w=t.reverseDirection,j=t.tooltipBox,P=t.useTranslate3d,A=t.viewBox,j.height>0&&j.width>0&&y?(n=(e={translateX:p=O({allowEscapeViewBox:d,coordinate:y,key:"x",offsetTopLeft:v,position:m,reverseDirection:w,tooltipDimension:j.width,viewBox:A,viewBoxDimension:A.width}),translateY:h=O({allowEscapeViewBox:d,coordinate:y,key:"y",offsetTopLeft:v,position:m,reverseDirection:w,tooltipDimension:j.height,viewBox:A,viewBoxDimension:A.height}),useTranslate3d:P}).translateX,i=e.translateY,f={transform:e.useTranslate3d?"translate3d(".concat(n,"px, ").concat(i,"px, 0)"):"translate(".concat(n,"px, ").concat(i,"px)")}):f=x,{cssProperties:f,cssClasses:(a=(o={translateX:p,translateY:h,coordinate:y}).coordinate,u=o.translateX,s=o.translateY,(0,c.Z)(g,b(b(b(b({},"".concat(g,"-right"),(0,l.hj)(u)&&a&&(0,l.hj)(a.x)&&u>=a.x),"".concat(g,"-left"),(0,l.hj)(u)&&a&&(0,l.hj)(a.x)&&u=a.y),"".concat(g,"-top"),(0,l.hj)(s)&&a&&(0,l.hj)(a.y)&&s0;return r.createElement(_,{allowEscapeViewBox:o,animationDuration:a,animationEasing:u,isAnimationActive:f,active:i,coordinate:l,hasPayload:w,offset:p,position:y,reverseDirection:m,useTranslate3d:b,viewBox:g,wrapperStyle:x},(t=B(B({},this.props),{},{payload:O}),r.isValidElement(c)?r.cloneElement(c,t):"function"==typeof c?r.createElement(c,t):r.createElement(v,t)))}}],function(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,a),s=(0,i.Z)("recharts-layer",c);return r.createElement("g",u({className:s},(0,o.L6)(l,!0),{ref:e}),n)})},43778:function(t,e,n){"use strict";n.d(e,{T:function(){return c}});var r=n(67294),i=n(90512),o=n(97726),a=["children","width","height","viewBox","className","style","title","desc"];function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,a),y=l||{width:n,height:c,x:0,y:0},v=(0,i.Z)("recharts-surface",s);return r.createElement("svg",u({},(0,o.L6)(d,!0,"svg"),{className:v,width:n,height:c,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),r.createElement("title",null,p),r.createElement("desc",null,h),e)}},79398:function(t,e,n){"use strict";n.d(e,{br:function(){return g},CW:function(){return w},Mw:function(){return k},zn:function(){return E},sp:function(){return x},qD:function(){return A},d2:function(){return P},bH:function(){return O},Ud:function(){return S},Nf:function(){return j}});var r=n(67294),i=n(38776),o=n(13311),a=n.n(o),u=n(711),c=n.n(u),l=n(88306),s=n.n(l)()(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),f=n(85694),p=(0,r.createContext)(void 0),h=(0,r.createContext)(void 0),d=(0,r.createContext)(void 0),y=(0,r.createContext)({}),v=(0,r.createContext)(void 0),m=(0,r.createContext)(0),b=(0,r.createContext)(0),g=function(t){var e=t.state,n=e.xAxisMap,i=e.yAxisMap,o=e.offset,a=t.clipPathId,u=t.children,c=t.width,l=t.height,f=s(o);return r.createElement(p.Provider,{value:n},r.createElement(h.Provider,{value:i},r.createElement(y.Provider,{value:o},r.createElement(d.Provider,{value:f},r.createElement(v.Provider,{value:a},r.createElement(m.Provider,{value:l},r.createElement(b.Provider,{value:c},u)))))))},x=function(){return(0,r.useContext)(v)},O=function(t){var e=(0,r.useContext)(p);null!=e||(0,i.Z)(!1);var n=e[t];return null!=n||(0,i.Z)(!1),n},w=function(){var t=(0,r.useContext)(p);return(0,f.Kt)(t)},j=function(){var t=(0,r.useContext)(h);return a()(t,function(t){return c()(t.domain,Number.isFinite)})||(0,f.Kt)(t)},S=function(t){var e=(0,r.useContext)(h);null!=e||(0,i.Z)(!1);var n=e[t];return null!=n||(0,i.Z)(!1),n},P=function(){return(0,r.useContext)(d)},A=function(){return(0,r.useContext)(y)},E=function(){return(0,r.useContext)(b)},k=function(){return(0,r.useContext)(m)}},61729:function(t,e,n){"use strict";n.d(e,{H:function(){return H}});var r=n(67294);function i(){}function o(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function a(t){this._context=t}function u(t){this._context=t}function c(t){this._context=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:o(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},u.prototype={areaStart:i,areaEnd:i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class l{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function s(t){this._context=t}function f(t){this._context=t}function p(t){return new f(t)}function h(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*r)/(r+i)))||0}function d(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function y(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,a-u*n,o,a)}function v(t){this._context=t}function m(t){this._context=new b(t)}function b(t){this._context=t}function g(t){this._context=t}function x(t){var e,n,r=t.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(e=0,o[r-1]=(t[r]+i[r-1])/2;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var w=n(94788),j=n(20309),S=n(52882);function P(t){return t[0]}function A(t){return t[1]}function E(t,e){var n=(0,j.Z)(!0),r=null,i=p,o=null,a=(0,S.d)(u);function u(u){var c,l,s,f=(u=(0,w.Z)(u)).length,p=!1;for(null==r&&(o=i(s=a())),c=0;c<=f;++c)!(c=f;--p)u.point(m[p],b[p]);u.lineEnd(),u.areaEnd()}}v&&(m[s]=+t(h,s,l),b[s]=+e(h,s,l),u.point(r?+r(h,s,l):m[s],n?+n(h,s,l):b[s]))}if(d)return u=null,d+""||null}function s(){return E().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?P:(0,j.Z)(+t),e="function"==typeof e?e:void 0===e?(0,j.Z)(0):(0,j.Z)(+e),n="function"==typeof n?n:void 0===n?A:(0,j.Z)(+n),l.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,j.Z)(+e),r=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,j.Z)(+e),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:(0,j.Z)(+t),l):r},l.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,j.Z)(+t),n=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,j.Z)(+t),l):e},l.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,j.Z)(+t),l):n},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(n)},l.lineX1=function(){return s().x(r).y(e)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:(0,j.Z)(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),l):o},l}var M=n(11700),T=n.n(M),_=n(23560),C=n.n(_),D=n(90512),N=n(65717),I=n(97726),B=n(85694);function L(t){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function R(){return(R=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n=0?1:-1,c=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+u*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+c*s[0],",").concat(e)),o+="L ".concat(t+n-c*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+n,",").concat(e+u*s[1])),o+="L ".concat(t+n,",").concat(e+r-u*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+n-c*s[2],",").concat(e+r)),o+="L ".concat(t+c*s[3],",").concat(e+r),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+r-u*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(t,",").concat(e+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+c*p,",").concat(e,"\n L ").concat(t+n-c*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+n,",").concat(e+u*p,"\n L ").concat(t+n,",").concat(e+r-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+n-c*p,",").concat(e+r,"\n L ").concat(t+c*p,",").concat(e+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+r-u*p," Z")}else o="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},h=function(t,e){if(!t||!e)return!1;var n=t.x,r=t.y,i=e.x,o=e.y,a=e.width,u=e.height;return!!(Math.abs(a)>0&&Math.abs(u)>0)&&n>=Math.min(i,i+a)&&n<=Math.max(i,i+a)&&r>=Math.min(o,o+u)&&r<=Math.max(o,o+u)},d={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y=function(t){var e,n=f(f({},d),t),u=(0,r.useRef)(),s=function(t){if(Array.isArray(t))return t}(e=(0,r.useState)(-1))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,l=!1;try{for(o=(n=n.call(t)).next;!(c=(r=o.call(n)).done)&&(u.push(r.value),2!==u.length);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(e,2)||function(t,e){if(t){if("string"==typeof t)return l(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=s[0],y=s[1];(0,r.useEffect)(function(){if(u.current&&u.current.getTotalLength)try{var t=u.current.getTotalLength();t&&y(t)}catch(t){}},[]);var v=n.x,m=n.y,b=n.width,g=n.height,x=n.radius,O=n.className,w=n.animationEasing,j=n.animationDuration,S=n.animationBegin,P=n.isAnimationActive,A=n.isUpdateAnimationActive;if(v!==+v||m!==+m||b!==+b||g!==+g||0===b||0===g)return null;var E=(0,i.Z)("recharts-rectangle",O);return A?r.createElement(o.ZP,{canBegin:h>0,from:{width:b,height:g,x:v,y:m},to:{width:b,height:g,x:v,y:m},duration:j,animationEasing:w,isActive:A},function(t){var e=t.width,i=t.height,l=t.x,s=t.y;return r.createElement(o.ZP,{canBegin:h>0,from:"0px ".concat(-1===h?1:h,"px"),to:"".concat(h,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:j,isActive:P,easing:w},r.createElement("path",c({},(0,a.L6)(n,!0),{className:E,d:p(l,s,e,i,x),ref:u})))}):r.createElement("path",c({},(0,a.L6)(n,!0),{className:E,d:p(v,m,b,g,x)}))}},68416:function(t,e,n){"use strict";n.d(e,{L:function(){return v}});var r=n(67294),i=n(90512),o=n(97726),a=n(10804),u=n(85694);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;e180),",").concat(+(c>s),",\n ").concat(p.x,",").concat(p.y,"\n ");if(i>0){var d=(0,a.op)(n,r,i,c),y=(0,a.op)(n,r,i,s);h+="L ".concat(y.x,",").concat(y.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(c<=s),",\n ").concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},d=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,s=t.endAngle,f=(0,u.uY)(s-l),d=p({cx:e,cy:n,radius:i,angle:l,sign:f,cornerRadius:o,cornerIsExternal:c}),y=d.circleTangency,v=d.lineTangency,m=d.theta,b=p({cx:e,cy:n,radius:i,angle:s,sign:-f,cornerRadius:o,cornerIsExternal:c}),g=b.circleTangency,x=b.lineTangency,O=b.theta,w=c?Math.abs(l-s):Math.abs(l-s)-m-O;if(w<0)return a?"M ".concat(v.x,",").concat(v.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(-(2*o),",0\n "):h({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:l,endAngle:s});var j="M ".concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,"\n ");if(r>0){var S=p({cx:e,cy:n,radius:r,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),P=S.circleTangency,A=S.lineTangency,E=S.theta,k=p({cx:e,cy:n,radius:r,angle:s,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),M=k.circleTangency,T=k.lineTangency,_=k.theta,C=c?Math.abs(l-s):Math.abs(l-s)-E-_;if(C<0&&0===o)return"".concat(j,"L").concat(e,",").concat(n,"Z");j+="L".concat(T.x,",").concat(T.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(M.x,",").concat(M.y,"\n A").concat(r,",").concat(r,",0,").concat(+(C>180),",").concat(+(f>0),",").concat(P.x,",").concat(P.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"Z")}else j+="L".concat(e,",").concat(n,"Z");return j},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},v=function(t){var e,n=f(f({},y),t),a=n.cx,c=n.cy,s=n.innerRadius,p=n.outerRadius,v=n.cornerRadius,m=n.forceCornerRadius,b=n.cornerIsExternal,g=n.startAngle,x=n.endAngle,O=n.className;if(p0&&360>Math.abs(g-x)?d({cx:a,cy:c,innerRadius:s,outerRadius:p,cornerRadius:Math.min(S,j/2),forceCornerRadius:m,cornerIsExternal:b,startAngle:g,endAngle:x}):h({cx:a,cy:c,innerRadius:s,outerRadius:p,startAngle:g,endAngle:x}),r.createElement("path",l({},(0,o.L6)(n,!0),{className:w,d:e,role:"img"}))}},87045:function(t,e,n){"use strict";n.d(e,{v:function(){return D}});var r=n(67294),i=n(11700),o=n.n(i);let a=Math.cos,u=Math.sin,c=Math.sqrt,l=Math.PI,s=2*l;var f={draw(t,e){let n=c(e/l);t.moveTo(n,0),t.arc(0,0,n,0,s)}};let p=c(1/3),h=2*p,d=u(l/10)/u(7*l/10),y=u(s/10)*d,v=-a(s/10)*d,m=c(3),b=c(3)/2,g=1/c(12),x=(g/2+1)*3;var O=n(20309),w=n(52882);c(3),c(3);var j=n(90512),S=n(97726);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var A=["type","size","sizeType"];function E(){return(E=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,A)),{},{type:i,size:u,sizeType:l}),p=s.className,h=s.cx,d=s.cy,y=(0,S.L6)(s,!0);return h===+h&&d===+d&&u===+u?r.createElement("path",E({},y,{className:(0,j.Z)("recharts-symbols",p),transform:"translate(".concat(h,", ").concat(d,")"),d:(e=T["symbol".concat(o()(i))]||f,(function(t,e){let n=null,r=(0,w.d)(i);function i(){let i;if(n||(n=i=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return t="function"==typeof t?t:(0,O.Z)(t||f),e="function"==typeof e?e:(0,O.Z)(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:(0,O.Z)(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:(0,O.Z)(+t),i):e},i.context=function(t){return arguments.length?(n=null==t?null:t,i):n},i})().type(e).size(C(u,l,i))())})):null};D.registerSymbol=function(t,e){T["symbol".concat(o()(t))]=e}},85552:function(t,e,n){"use strict";n.d(e,{bn:function(){return C},a3:function(){return z},lT:function(){return D},V$:function(){return N},w7:function(){return I}});var r=n(67294),i=n(23560),o=n.n(i),a=n(68630),u=n.n(a),c=n(51584),l=n.n(c),s=n(18446),f=n.n(s),p=n(33377),h=n(90512),d=n(70596),y=n(97726);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(){return(m=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:l},to:{upperWidth:s,lowerWidth:f,height:p,x:c,y:l},duration:j,animationEasing:g,isActive:P},function(t){var e=t.upperWidth,o=t.lowerWidth,u=t.height,c=t.x,l=t.y;return r.createElement(d.ZP,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:j,easing:g},r.createElement("path",m({},(0,y.L6)(n,!0),{className:A,d:O(c,l,e,o,u),ref:i})))}):r.createElement("g",null,r.createElement("path",m({},(0,y.L6)(n,!0),{className:A,d:O(c,l,s,f,p)})))},S=n(68416),P=n(63535),A=n(87045),E=["option","shapeType","propTransformer","activeClassName","isActive"];function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function T(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,E);if((0,r.isValidElement)(n))e=(0,r.cloneElement)(n,T(T({},f),(0,r.isValidElement)(n)?n.props:n));else if(o()(n))e=n(f);else if(u()(n)&&!l()(n)){var p=(void 0===a?function(t,e){return T(T({},e),t)}:a)(n,f);e=r.createElement(_,{shapeType:i,elementProps:p})}else e=r.createElement(_,{shapeType:i,elementProps:f});return s?r.createElement(P.m,{className:void 0===c?"recharts-active-shape":c},e):e}function D(t,e){return null!=e&&"trapezoids"in t.props}function N(t,e){return null!=e&&"sectors"in t.props}function I(t,e){return null!=e&&"points"in t.props}function B(t,e){var n,r,i=t.x===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.x)||t.x===e.x,o=t.y===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.y)||t.y===e.y;return i&&o}function L(t,e){var n=t.endAngle===e.endAngle,r=t.startAngle===e.startAngle;return n&&r}function R(t,e){var n=t.x===e.x,r=t.y===e.y,i=t.z===e.z;return n&&r&&i}function z(t){var e,n,r,i=t.activeTooltipItem,o=t.graphicalItem,a=t.itemData,u=(D(o,i)?e="trapezoids":N(o,i)?e="sectors":I(o,i)&&(e="points"),e),c=D(o,i)?null===(n=i.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:N(o,i)?null===(r=i.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:I(o,i)?i.payload:{},l=a.filter(function(t,e){var n=f()(c,t),r=o.props[u].filter(function(t){var e;return(D(o,i)?e=B:N(o,i)?e=L:I(o,i)&&(e=R),e)(t,i)}),a=o.props[u].indexOf(r[r.length-1]);return n&&e===a});return a.indexOf(l[l.length-1])}},64243:function(t,e,n){"use strict";n.d(e,{Ky:function(){return O},O1:function(){return b},_b:function(){return g},t9:function(){return m},xE:function(){return w}});var r=n(66604),i=n.n(r),o=n(711),a=n.n(o),u=n(23078),c=n(97726),l=n(85694),s=n(64332);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){for(var n=0;n0&&(k=Math.min((t||0)-(M[e-1]||0),k))}),Number.isFinite(k)){var T=k/E,_="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=T*_/2),"no-gap"===g.padding){var C=(0,l.h1)(t.barCategoryGap,T*_),D=T*_/2;c=D-C-(D-C)/_*C}}}s="xAxis"===r?[n.left+(j.left||0)+(c||0),n.left+n.width-(j.right||0)-(c||0)]:"yAxis"===r?"horizontal"===f?[n.top+n.height-(j.bottom||0),n.top+(j.top||0)]:[n.top+(j.top||0)+(c||0),n.top+n.height-(j.bottom||0)-(c||0)]:g.range,P&&(s=[s[1],s[0]]);var N=(0,u.Hq)(g,i,m),I=N.scale,B=N.realScaleType;I.domain(O).range(s),(0,u.zF)(I);var L=(0,u.g$)(I,d(d({},g),{},{realScaleType:B}));"xAxis"===r?(b="top"===x&&!S||"bottom"===x&&S,p=n.left,h=v[A]-b*g.height):"yAxis"===r&&(b="left"===x&&!S||"right"===x&&S,p=v[A]-b*g.width,h=n.top);var R=d(d(d({},g),L),{},{realScaleType:B,x:p,y:h,scale:I,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return R.bandSize=(0,u.zT)(R,L),g.hide||"xAxis"!==r?g.hide||(v[A]+=(b?-1:1)*R.width):v[A]+=(b?-1:1)*R.height,d(d({},o),{},y({},a,R))},{})},b=function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},g=function(t){return b({x:t.x1,y:t.y1},{x:t.x2,y:t.y2})},x=function(){var t,e;function n(t){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,n),this.scale=t}return t=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=e.position;if(void 0!==t){if(r)switch(r){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}}],e=[{key:"create",value:function(t){return new n(t)}}],t&&p(n.prototype,t),e&&p(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();y(x,"EPS",1e-4);var O=function(t){var e=Object.keys(t).reduce(function(e,n){return d(d({},e),{},y({},n,x.create(t[n])))},{});return d(d({},e),{},{apply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return i()(t,function(t,n){return e[n].apply(t,{bandAware:r,position:o})})},isInRange:function(t){return a()(t,function(t,n){return e[n].isInRange(t)})}})},w=function(t){var e=t.width,n=t.height,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(r%180+180)%180*Math.PI/180,o=Math.atan(n/e);return Math.abs(i>o&&itx(e,t()).base(e.base()),tj.o.apply(e,arguments),e}},scaleOrdinal:function(){return tX.Z},scalePoint:function(){return f.x},scalePow:function(){return tQ},scaleQuantile:function(){return function t(){var e,n=[],r=[],i=[];function o(){var t=0,e=Math.max(1,r.length);for(i=Array(e-1);++t=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}(n,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:r[P(i,t)]}return a.invertExtent=function(t){var e=r.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:n[0],e=i?[o[i-1],r]:[o[e-1],o[e]]},u.unknown=function(t){return arguments.length&&(e=t),u},u.thresholds=function(){return o.slice()},u.copy=function(){return t().domain([n,r]).range(a).unknown(e)},tj.o.apply(tI(u),arguments)}},scaleRadial:function(){return function t(){var e,n=tw(),r=[0,1],i=!1;function o(t){var r,o=Math.sign(r=n(t))*Math.sqrt(Math.abs(r));return isNaN(o)?e:i?Math.round(o):o}return o.invert=function(t){return n.invert(t1(t))},o.domain=function(t){return arguments.length?(n.domain(t),o):n.domain()},o.range=function(t){return arguments.length?(n.range((r=Array.from(t,td)).map(t1)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(n.clamp(t),o):n.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(n.domain(),r).round(i).clamp(n.clamp()).unknown(e)},tj.o.apply(o,arguments),tI(o)}},scaleSequential:function(){return function t(){var e=tI(nX()(tv));return e.copy=function(){return nV(e,t())},tj.O.apply(e,arguments)}},scaleSequentialLog:function(){return function t(){var e=tW(nX()).domain([1,10]);return e.copy=function(){return nV(e,t()).base(e.base())},tj.O.apply(e,arguments)}},scaleSequentialPow:function(){return nG},scaleSequentialQuantile:function(){return function t(){var e=[],n=tv;function r(t){if(null!=t&&!isNaN(t=+t))return n((P(e,t,1)-1)/(e.length-1))}return r.domain=function(t){if(!arguments.length)return e.slice();for(let n of(e=[],t))null==n||isNaN(n=+n)||e.push(n);return e.sort(g),r},r.interpolator=function(t){return arguments.length?(n=t,r):n},r.range=function(){return e.map((t,r)=>n(r/(e.length-1)))},r.quantiles=function(t){return Array.from({length:t+1},(n,r)=>(function(t,e,n){if(!(!(r=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,void 0))).length)||isNaN(e=+e))){if(e<=0||r<2)return t6(t);if(e>=1)return t2(t);var r,i=(r-1)*e,o=Math.floor(i),a=t2((function t(e,n,r=0,i=1/0,o){if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),i=Math.floor(Math.min(e.length-1,i)),!(r<=n&&n<=i))return e;for(o=void 0===o?t3:function(t=g){if(t===g)return t3;if("function"!=typeof t)throw TypeError("compare is not a function");return(e,n)=>{let r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}(o);i>r;){if(i-r>600){let a=i-r+1,u=n-r+1,c=Math.log(a),l=.5*Math.exp(2*c/3),s=.5*Math.sqrt(c*l*(a-l)/a)*(u-a/2<0?-1:1),f=Math.max(r,Math.floor(n-u*l/a+s)),p=Math.min(i,Math.floor(n+(a-u)*l/a+s));t(e,n,f,p,o)}let a=e[n],u=r,c=i;for(t5(e,r,n),o(e[i],a)>0&&t5(e,r,i);uo(e[u],a);)++u;for(;o(e[c],a)>0;)--c}0===o(e[r],a)?t5(e,r,c):t5(e,++c,i),c<=n&&(r=c+1),n<=c&&(i=c-1)}return e})(t,o).subarray(0,o+1));return a+(t6(t.subarray(o+1))-a)*(i-o)}})(e,r/t))},r.copy=function(){return t(n).domain(e)},tj.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return nK},scaleSequentialSymlog:function(){return function t(){var e=tH(nX());return e.copy=function(){return nV(e,t()).constant(e.constant())},tj.O.apply(e,arguments)}},scaleSqrt:function(){return t0},scaleSymlog:function(){return function t(){var e=tH(tO());return e.copy=function(){return tx(e,t()).constant(e.constant())},tj.o.apply(e,arguments)}},scaleThreshold:function(){return function t(){var e,n=[.5],r=[0,1],i=1;function o(t){return null!=t&&t<=t?r[P(n,t,0,i)]:e}return o.domain=function(t){return arguments.length?(i=Math.min((n=Array.from(t)).length,r.length-1),o):n.slice()},o.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t().domain(n).range(r).unknown(e)},tj.o.apply(o,arguments)}},scaleTime:function(){return nY},scaleUtc:function(){return nH},tickFormat:function(){return tN}});var f=n(175);let p=Math.sqrt(50),h=Math.sqrt(10),d=Math.sqrt(2);function y(t,e,n){let r,i,o;let a=(e-t)/Math.max(0,n),u=Math.floor(Math.log10(a)),c=a/Math.pow(10,u),l=c>=p?10:c>=h?5:c>=d?2:1;return(u<0?(r=Math.round(t*(o=Math.pow(10,-u)/l)),i=Math.round(e*o),r/oe&&--i,o=-o):(r=Math.round(t/(o=Math.pow(10,u)*l)),i=Math.round(e/o),r*oe&&--i),i0))return[];if(t===e)return[t];let r=e=i))return[];let u=o-i+1,c=Array(u);if(r){if(a<0)for(let t=0;te?1:t>=e?0:NaN}function x(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function O(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i>>1;0>n(t[e],r)?i=e+1:o=e}while(ig(t(e),n),r=(e,n)=>t(e)-n):(e=t===g||t===x?t:w,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){let a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,i=0,o=t.length){if(i>>1;0>=n(t[e],r)?i=e+1:o=e}while(i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?W(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?W(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=D.exec(t))?new Y(e[1],e[2],e[3],1):(e=N.exec(t))?new Y(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=I.exec(t))?W(e[1],e[2],e[3],e[4]):(e=B.exec(t))?W(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=L.exec(t))?J(e[1],e[2]/100,e[3]/100,1):(e=R.exec(t))?J(e[1],e[2]/100,e[3]/100,e[4]):z.hasOwnProperty(t)?Z(z[t]):"transparent"===t?new Y(NaN,NaN,NaN,0):null}function Z(t){return new Y(t>>16&255,t>>8&255,255&t,1)}function W(t,e,n,r){return r<=0&&(t=e=n=NaN),new Y(t,e,n,r)}function q(t,e,n,r){var i;return 1==arguments.length?((i=t)instanceof k||(i=F(i)),i)?new Y((i=i.rgb()).r,i.g,i.b,i.opacity):new Y:new Y(t,e,n,null==r?1:r)}function Y(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function H(){return`#${K(this.r)}${K(this.g)}${K(this.b)}`}function X(){let t=V(this.opacity);return`${1===t?"rgb(":"rgba("}${G(this.r)}, ${G(this.g)}, ${G(this.b)}${1===t?")":`, ${t})`}`}function V(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function G(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function K(t){return((t=G(t))<16?"0":"")+t.toString(16)}function J(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new tt(t,e,n,r)}function Q(t){if(t instanceof tt)return new tt(t.h,t.s,t.l,t.opacity);if(t instanceof k||(t=F(t)),!t)return new tt;if(t instanceof tt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=e===o?(n-r)/u+(n0&&c<1?0:a,new tt(a,u,c,t.opacity)}function tt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function te(t){return(t=(t||0)%360)<0?t+360:t}function tn(t){return Math.max(0,Math.min(1,t||0))}function tr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function ti(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}A(k,F,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:$,formatHex:$,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Q(this).formatHsl()},formatRgb:U,toString:U}),A(Y,q,E(k,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new Y(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new Y(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Y(G(this.r),G(this.g),G(this.b),V(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:H,formatHex:H,formatHex8:function(){return`#${K(this.r)}${K(this.g)}${K(this.b)}${K((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:X,toString:X})),A(tt,function(t,e,n,r){return 1==arguments.length?Q(t):new tt(t,e,n,null==r?1:r)},E(k,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new tt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new tt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Y(tr(t>=240?t-240:t+120,i,r),tr(t,i,r),tr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new tt(te(this.h),tn(this.s),tn(this.l),V(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=V(this.opacity);return`${1===t?"hsl(":"hsla("}${te(this.h)}, ${100*tn(this.s)}%, ${100*tn(this.l)}%${1===t?")":`, ${t})`}`}}));var to=t=>()=>t;function ta(t,e){var n=e-t;return n?function(e){return t+e*n}:to(isNaN(t)?e:t)}var tu=function t(e){var n,r=1==(n=+(n=e))?ta:function(t,e){var r,i,o;return e-t?(r=t,i=e,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(t){return Math.pow(r+t*i,o)}):to(isNaN(t)?e:t)};function i(t,e){var n=r((t=q(t)).r,(e=q(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),a=ta(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function tc(t){return function(e){var n,r,i=e.length,o=Array(i),a=Array(i),u=Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=ru&&(a=e.slice(u,a),l[c]?l[c]+=a:l[++c]=a),(i=i[0])===(o=o[0])?l[c]?l[c]+=o:l[++c]=o:(l[++c]=null,s.push({i:c,x:tl(i,o)})),u=tf.lastIndex;return ue&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?tg:tb,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),u,c)))(t(l(e)))}return f.invert=function(n){return l(e((o||(o=r(u,a.map(t),tl)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,td),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),c=th,s()},f.clamp=function(t){return arguments.length?(l=!!t||tv,s()):l!==tv},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,s()}}function tw(){return tO()(tv,tv)}var tj=n(94182),tS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tP(t){var e;if(!(e=tS.exec(t)))throw Error("invalid format: "+t);return new tA({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function tA(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function tE(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function tk(t){return(t=tE(Math.abs(t)))?t[1]:NaN}function tM(t,e){var n=tE(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}tP.prototype=tA.prototype,tA.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var tT={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>tM(100*t,e),r:tM,s:function(t,e){var n=tE(t,e);if(!n)return t+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return a===u?i:a>u?i+Array(a-u+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+tE(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function t_(t){return t}var tC=Array.prototype.map,tD=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function tN(t,e,n,r){var i,u,c=b(t,e,n);switch((r=tP(null==r?",f":r)).type){case"s":var l=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(u=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tk(l)/3)))-tk(Math.abs(c))))||(r.precision=u),a(r,l);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(u=Math.max(0,tk(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(i=Math.abs(i=c)))-tk(i))+1)||(r.precision=u-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(u=Math.max(0,-tk(Math.abs(c))))||(r.precision=u-("%"===r.type)*2)}return o(r)}function tI(t){var e=t.domain;return t.ticks=function(t){var n=e();return v(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return tN(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,u=o.length-1,c=o[a],l=o[u],s=10;for(l0;){if((i=m(c,l,n))===r)return o[a]=c,o[u]=l,e(o);if(i>0)c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i;else if(i<0)c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i;else break;r=i}return t},t}function tB(){var t=tw();return t.copy=function(){return tx(t,tB())},tj.o.apply(t,arguments),tI(t)}function tL(t,e){t=t.slice();var n,r=0,i=t.length-1,o=t[r],a=t[i];return a-t(-e,n)}function tW(t){let e,n;let r=t(tR,tz),i=r.domain,a=10;function u(){var o,u;return e=(o=a)===Math.E?Math.log:10===o&&Math.log10||2===o&&Math.log2||(o=Math.log(o),t=>Math.log(t)/o),n=10===(u=a)?tF:u===Math.E?Math.exp:t=>Math.pow(u,t),i()[0]<0?(e=tZ(e),n=tZ(n),t(t$,tU)):t(tR,tz),r}return r.base=function(t){return arguments.length?(a=+t,u()):a},r.domain=function(t){return arguments.length?(i(t),u()):i()},r.ticks=t=>{let r,o;let u=i(),c=u[0],l=u[u.length-1],s=l0){for(;f<=p;++f)for(r=1;rl)break;d.push(o)}}else for(;f<=p;++f)for(r=a-1;r>=1;--r)if(!((o=f>0?r/n(-f):r*n(f))l)break;d.push(o)}2*d.length{if(null==t&&(t=10),null==i&&(i=10===a?"s":","),"function"!=typeof i&&(a%1||null!=(i=tP(i)).precision||(i.trim=!0),i=o(i)),t===1/0)return i;let u=Math.max(1,a*t/r.ticks().length);return t=>{let r=t/n(Math.round(e(t)));return r*ai(tL(i(),{floor:t=>n(Math.floor(e(t))),ceil:t=>n(Math.ceil(e(t)))})),r}function tq(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function tY(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function tH(t){var e=1,n=t(tq(1),tY(e));return n.constant=function(n){return arguments.length?t(tq(e=+n),tY(e)):e},tI(n)}o=(i=function(t){var e,n,i,o=void 0===t.grouping||void 0===t.thousands?t_:(e=tC.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=e[a=(a+1)%e.length];return o.reverse().join(n)}),a=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",c=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?t_:(i=tC.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return i[+t]})}),s=void 0===t.percent?"%":t.percent+"",f=void 0===t.minus?"−":t.minus+"",p=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=tP(t)).fill,n=t.align,i=t.sign,h=t.symbol,d=t.zero,y=t.width,v=t.comma,m=t.precision,b=t.trim,g=t.type;"n"===g?(v=!0,g="g"):tT[g]||(void 0===m&&(m=12),b=!0,g="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var x="$"===h?a:"#"===h&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",O="$"===h?u:/[%p]/.test(g)?s:"",w=tT[g],j=/[defgprs%]/.test(g);function S(t){var a,u,s,h=x,S=O;if("c"===g)S=w(t)+S,t="";else{var P=(t=+t)<0||1/t<0;if(t=isNaN(t)?p:w(Math.abs(t),m),b&&(t=function(t){e:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),P&&0==+t&&"+"!==i&&(P=!1),h=(P?"("===i?i:f:"-"===i||"("===i?"":i)+h,S=("s"===g?tD[8+r/3]:"")+S+(P&&"("===i?")":""),j){for(a=-1,u=t.length;++a(s=t.charCodeAt(a))||s>57){S=(46===s?c+t.slice(a+1):t.slice(a))+S,t=t.slice(0,a);break}}}v&&!d&&(t=o(t,1/0));var A=h.length+t.length+S.length,E=A>1)+h+t+S+E.slice(A);break;default:t=E+h+t+S}return l(t)}return m=void 0===m?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return t+""},S}return{format:h,formatPrefix:function(t,e){var n=h(((t=tP(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(tk(e)/3))),i=Math.pow(10,-r),o=tD[8+r/3];return function(t){return n(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix;var tX=n(46244);function tV(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function tG(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function tK(t){return t<0?-t*t:t*t}function tJ(t){var e=t(tv,tv),n=1;return e.exponent=function(e){return arguments.length?1==(n=+e)?t(tv,tv):.5===n?t(tG,tK):t(tV(n),tV(1/n)):n},tI(e)}function tQ(){var t=tJ(tO());return t.copy=function(){return tx(t,tQ()).exponent(t.exponent())},tj.o.apply(t,arguments),t}function t0(){return tQ.apply(null,arguments).exponent(.5)}function t1(t){return Math.sign(t)*t*t}function t2(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n=i)&&(n=i)}return n}function t6(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function t3(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(te?1:0)}function t5(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}let t4=new Date,t7=new Date;function t8(t,e,n,r){function i(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{let e=i(t),n=i.ceil(t);return t-e(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,o)=>{let a;let u=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n0))return u;do u.push(a=new Date(+n)),e(n,o),t(n);while(at8(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,r)=>{if(t>=t){if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}}),n&&(i.count=(e,r)=>(t4.setTime(+e),t7.setTime(+r),t(t4),t(t7),Math.floor(n(t4,t7))),i.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null),i}let t9=t8(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);t9.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?t8(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):t9:null,t9.range;let et=t8(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());et.range;let ee=t8(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());ee.range;let en=t8(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());en.range;let er=t8(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());er.range;let ei=t8(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());ei.range;let eo=t8(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);eo.range;let ea=t8(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);ea.range;let eu=t8(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function ec(t){return t8(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}eu.range;let el=ec(0),es=ec(1),ef=ec(2),ep=ec(3),eh=ec(4),ed=ec(5),ey=ec(6);function ev(t){return t8(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}el.range,es.range,ef.range,ep.range,eh.range,ed.range,ey.range;let em=ev(0),eb=ev(1),eg=ev(2),ex=ev(3),eO=ev(4),ew=ev(5),ej=ev(6);em.range,eb.range,eg.range,ex.range,eO.range,ew.range,ej.range;let eS=t8(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());eS.range;let eP=t8(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());eP.range;let eA=t8(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());eA.every=t=>isFinite(t=Math.floor(t))&&t>0?t8(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null,eA.range;let eE=t8(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function ek(t,e,n,r,i,o){let a=[[et,1,1e3],[et,5,5e3],[et,15,15e3],[et,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function u(e,n,r){let i=Math.abs(n-e)/r,o=O(([,,t])=>t).right(a,i);if(o===a.length)return t.every(b(e/31536e6,n/31536e6,r));if(0===o)return t9.every(Math.max(b(e,n,r),1));let[u,c]=a[i/a[o-1][2]isFinite(t=Math.floor(t))&&t>0?t8(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null,eE.range;let[eM,eT]=ek(eE,eP,em,eu,ei,en),[e_,eC]=ek(eA,eS,el,eo,er,ee);function eD(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function eN(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function eI(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var eB={"-":"",_:" ",0:"0"},eL=/^\s*\d+/,eR=/^%/,ez=/[\\^$*+?|[\]().{}]/g;function e$(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o[t.toLowerCase(),e]))}function eW(t,e,n){var r=eL.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function eq(t,e,n){var r=eL.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function eY(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function eH(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function eX(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function eV(t,e,n){var r=eL.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function eG(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function eK(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function eJ(t,e,n){var r=eL.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function eQ(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function e0(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function e1(t,e,n){var r=eL.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function e2(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function e6(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function e3(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function e5(t,e,n){var r=eL.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function e4(t,e,n){var r=eL.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function e7(t,e,n){var r=eR.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function e8(t,e,n){var r=eL.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function e9(t,e,n){var r=eL.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function nt(t,e){return e$(t.getDate(),e,2)}function ne(t,e){return e$(t.getHours(),e,2)}function nn(t,e){return e$(t.getHours()%12||12,e,2)}function nr(t,e){return e$(1+eo.count(eA(t),t),e,3)}function ni(t,e){return e$(t.getMilliseconds(),e,3)}function no(t,e){return ni(t,e)+"000"}function na(t,e){return e$(t.getMonth()+1,e,2)}function nu(t,e){return e$(t.getMinutes(),e,2)}function nc(t,e){return e$(t.getSeconds(),e,2)}function nl(t){var e=t.getDay();return 0===e?7:e}function ns(t,e){return e$(el.count(eA(t)-1,t),e,2)}function nf(t){var e=t.getDay();return e>=4||0===e?eh(t):eh.ceil(t)}function np(t,e){return t=nf(t),e$(eh.count(eA(t),t)+(4===eA(t).getDay()),e,2)}function nh(t){return t.getDay()}function nd(t,e){return e$(es.count(eA(t)-1,t),e,2)}function ny(t,e){return e$(t.getFullYear()%100,e,2)}function nv(t,e){return e$((t=nf(t)).getFullYear()%100,e,2)}function nm(t,e){return e$(t.getFullYear()%1e4,e,4)}function nb(t,e){var n=t.getDay();return e$((t=n>=4||0===n?eh(t):eh.ceil(t)).getFullYear()%1e4,e,4)}function ng(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+e$(e/60|0,"0",2)+e$(e%60,"0",2)}function nx(t,e){return e$(t.getUTCDate(),e,2)}function nO(t,e){return e$(t.getUTCHours(),e,2)}function nw(t,e){return e$(t.getUTCHours()%12||12,e,2)}function nj(t,e){return e$(1+ea.count(eE(t),t),e,3)}function nS(t,e){return e$(t.getUTCMilliseconds(),e,3)}function nP(t,e){return nS(t,e)+"000"}function nA(t,e){return e$(t.getUTCMonth()+1,e,2)}function nE(t,e){return e$(t.getUTCMinutes(),e,2)}function nk(t,e){return e$(t.getUTCSeconds(),e,2)}function nM(t){var e=t.getUTCDay();return 0===e?7:e}function nT(t,e){return e$(em.count(eE(t)-1,t),e,2)}function n_(t){var e=t.getUTCDay();return e>=4||0===e?eO(t):eO.ceil(t)}function nC(t,e){return t=n_(t),e$(eO.count(eE(t),t)+(4===eE(t).getUTCDay()),e,2)}function nD(t){return t.getUTCDay()}function nN(t,e){return e$(eb.count(eE(t)-1,t),e,2)}function nI(t,e){return e$(t.getUTCFullYear()%100,e,2)}function nB(t,e){return e$((t=n_(t)).getUTCFullYear()%100,e,2)}function nL(t,e){return e$(t.getUTCFullYear()%1e4,e,4)}function nR(t,e){var n=t.getUTCDay();return e$((t=n>=4||0===n?eO(t):eO.ceil(t)).getUTCFullYear()%1e4,e,4)}function nz(){return"+0000"}function n$(){return"%"}function nU(t){return+t}function nF(t){return Math.floor(+t/1e3)}function nZ(t){return new Date(t)}function nW(t){return t instanceof Date?+t:+new Date(+t)}function nq(t,e,n,r,i,o,a,u,c,l){var s=tw(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),b=l("%b %d"),g=l("%B"),x=l("%Y");function O(t){return(c(t)1)for(var n,r,i,o=1,a=t[e[0]],u=a.length;o=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:nU,s:nF,S:nc,u:nl,U:ns,V:np,w:nh,W:nd,x:null,X:null,y:ny,Y:nm,Z:ng,"%":n$},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:nx,e:nx,f:nP,g:nB,G:nR,H:nO,I:nw,j:nj,L:nS,m:nA,M:nE,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:nU,s:nF,S:nk,u:nM,U:nT,V:nC,w:nD,W:nN,x:null,X:null,y:nI,Y:nL,Z:nz,"%":n$},O={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return S(t,e,n,r)},d:e0,e:e0,f:e4,g:eG,G:eV,H:e2,I:e2,j:e1,L:e5,m:eQ,M:e6,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=s.get(r[0].toLowerCase()),n+r[0].length):-1},q:eJ,Q:e8,s:e9,S:e3,u:eq,U:eY,V:eH,w:eW,W:eX,x:function(t,e,r){return S(t,n,e,r)},X:function(t,e,n){return S(t,r,e,n)},y:eG,Y:eV,Z:eK,"%":e7};function w(t,e){return function(n){var r,i,o,a=[],u=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=eN(eI(o.y,0,1))).getUTCDay())>4||0===i?eb.ceil(r):eb(r),r=ea.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=eD(eI(o.y,0,1))).getDay())>4||0===i?es.ceil(r):es(r),r=eo.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?eN(eI(o.y,0,1)).getUTCDay():eD(eI(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,eN(o)):eD(o)}}function S(t,e,n,r){for(var i,o,a=0,u=e.length,c=n.length;a=c)return -1;if(37===(i=e.charCodeAt(a++))){if(!(o=O[(i=e.charAt(a++))in eB?e.charAt(a++):i])||(r=o(t,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return g.x=w(n,g),g.X=w(r,g),g.c=w(e,g),x.x=w(n,x),x.X=w(r,x),x.c=w(e,x),{format:function(t){var e=w(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=j(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=j(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,u.parse,l=u.utcFormat,u.utcParse;var n2=n(94788),n6=n(20309);function n3(t){for(var e=t.length,n=Array(e);--e>=0;)n[e]=e;return n}function n5(t,e){return t[e]}function n4(t){let e=[];return e.key=t,e}var n7=n(6162),n8=n.n(n7),n9=n(53632),rt=n.n(n9),re=n(14293),rn=n.n(re),rr=n(23560),ri=n.n(rr),ro=n(47037),ra=n.n(ro),ru=n(27361),rc=n.n(ru),rl=n(94654),rs=n.n(rl),rf=n(7654),rp=n.n(rf),rh=n(11700),rd=n.n(rh),ry=n(18446),rv=n.n(ry),rm=n(89734),rb=n.n(rm),rg=n(29887),rx=n.n(rg);function rO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=e?n.apply(void 0,i):t(e-a,rP(function(){for(var t=arguments.length,e=Array(t),r=0;rt.length)&&(e=t.length);for(var n=0,r=Array(e);nr&&(i=r,o=n),[i,o]}function rR(t,e,n){if(t.lte(0))return new(rx())(0);var r=rC.getDigitCount(t.toNumber()),i=new(rx())(10).pow(r),o=t.div(i),a=1!==r?.05:.1,u=new(rx())(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return e?u:new(rx())(Math.ceil(u))}function rz(t,e,n){var r=1,i=new(rx())(t);if(!i.isint()&&n){var o=Math.abs(t);o<1?(r=new(rx())(10).pow(rC.getDigitCount(t)-1),i=new(rx())(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new(rx())(Math.floor(t)))}else 0===t?i=new(rx())(Math.floor((e-1)/2)):n||(i=new(rx())(Math.floor(t)));var a=Math.floor((e-1)/2);return rM(rk(function(t){return i.add(new(rx())(t-a).mul(r)).toNumber()}),rE)(0,e)}var r$=r_(function(t){var e=rN(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(i,2),u=rN(rL([n,r]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var s=l===1/0?[c].concat(rD(rE(0,i-1).map(function(){return 1/0}))):[].concat(rD(rE(0,i-1).map(function(){return-1/0})),[l]);return n>r?rT(s):s}if(c===l)return rz(c,i,o);var f=function t(e,n,r,i){var o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-e)/(r-1)))return{step:new(rx())(0),tickMin:new(rx())(0),tickMax:new(rx())(0)};var u=rR(new(rx())(n).sub(e).div(r-1),i,a),c=Math.ceil((o=e<=0&&n>=0?new(rx())(0):(o=new(rx())(e).add(n).div(2)).sub(new(rx())(o).mod(u))).sub(e).div(u).toNumber()),l=Math.ceil(new(rx())(n).sub(o).div(u).toNumber()),s=c+l+1;return s>r?t(e,n,r,i,a+1):(s0?l+(r-s):l,c=n>0?c:c+(r-s)),{step:u,tickMin:o.sub(new(rx())(c).mul(u)),tickMax:o.add(new(rx())(l).mul(u))})}(c,l,a,o),p=f.step,h=f.tickMin,d=f.tickMax,y=rC.rangeStep(h,d.add(new(rx())(.1).mul(p)),p);return n>r?rT(y):y});r_(function(t){var e=rN(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(i,2),u=rN(rL([n,r]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[n,r];if(c===l)return rz(c,i,o);var s=rR(new(rx())(l).sub(c).div(a-1),o,0),f=rM(rk(function(t){return new(rx())(c).add(new(rx())(t).mul(s)).toNumber()}),rE)(0,a).filter(function(t){return t>=c&&t<=l});return n>r?rT(f):f});var rU=r_(function(t,e){var n=rN(t,2),r=n[0],i=n[1],o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=rN(rL([r,i]),2),u=a[0],c=a[1];if(u===-1/0||c===1/0)return[r,i];if(u===c)return[u];var l=rR(new(rx())(c).sub(u).div(Math.max(e,2)-1),o,0),s=[].concat(rD(rC.rangeStep(new(rx())(u),new(rx())(c).sub(new(rx())(.99).mul(l)),l)),[c]);return r>i?rT(s):s}),rF=n(66342),rZ=n(85694),rW=n(97726),rq=n(56542);function rY(t){return(rY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rH(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function rX(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==n?void 0:n.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&1e-6>=Math.abs(Math.abs(i.range[1]-i.range[0])-360))for(var u=i.range,c=0;c0?r[c-1].coordinate:r[a-1].coordinate,s=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,p=void 0;if((0,rZ.uY)(s-l)!==(0,rZ.uY)(f-s)){var h=[];if((0,rZ.uY)(f-s)===(0,rZ.uY)(u[1]-u[0])){p=f;var d=s+u[1]-u[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+u[1]-u[0];h[0]=Math.min(s,(y+s)/2),h[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){o=r[c].index;break}}else{var m=Math.min(l,f),b=Math.max(l,f);if(t>(m+s)/2&&t<=(b+s)/2){o=r[c].index;break}}}else for(var g=0;g0&&g(n[g].coordinate+n[g-1].coordinate)/2&&t<=(n[g].coordinate+n[g+1].coordinate)/2||g===a-1&&t>(n[g].coordinate+n[g-1].coordinate)/2){o=n[g].index;break}return o},r1=function(t){var e,n=t.type.displayName,r=t.props,i=r.stroke,o=r.fill;switch(n){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},r2=function(t){var e=t.barSize,n=t.totalSize,r=t.stackGroups,i=void 0===r?{}:r;if(!i)return{};for(var o={},a=Object.keys(i),u=0,c=a.length;u=0});if(v&&v.length){var m=v[0].props.barSize,b=v[0].props[y];o[b]||(o[b]=[]);var g=rn()(m)?e:m;o[b].push({item:v[0],stackList:v.slice(1),barSize:rn()(g)?void 0:(0,rZ.h1)(g,n,0)})}}return o},r6=function(t){var e,n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=void 0===o?[]:o,u=t.maxBarSize,c=a.length;if(c<1)return null;var l=(0,rZ.h1)(n,i,0,!0),s=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=i/c,h=a.reduce(function(t,e){return t+e.barSize||0},0);(h+=(c-1)*l)>=i&&(h-=(c-1)*l,l=0),h>=i&&p>0&&(f=!0,p*=.9,h=c*p);var d={offset:((i-h)/2>>0)-l,size:0};e=a.reduce(function(t,e){var n={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},r=[].concat(rG(t),[n]);return d=r[r.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){r.push({item:t,position:d})}),r},s)}else{var y=(0,rZ.h1)(r,i,0,!0);i-2*y-(c-1)*l<=0&&(l=0);var v=(i-2*y-(c-1)*l)/c;v>1&&(v>>=0);var m=u===+u?Math.min(v,u):v;e=a.reduce(function(t,e,n){var r=[].concat(rG(t),[{item:e.item,position:{offset:y+(v+l)*n+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){r.push({item:t,position:r[r.length-1].position})}),r},s)}return e},r3=function(t,e,n,r){var i=n.children,o=n.width,a=n.margin,u=o-(a.left||0)-(a.right||0),c=(0,rq.z)({children:i,legendWidth:u});if(c){var l=r||{},s=l.width,f=l.height,p=c.align,h=c.verticalAlign,d=c.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&(0,rZ.hj)(t[p]))return rX(rX({},t),{},rV({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&(0,rZ.hj)(t[h]))return rX(rX({},t),{},rV({},h,t[h]+(f||0)))}return t},r5=function(t,e,n,r,i){var o=e.props.children,a=(0,rW.NN)(o,rF.W).filter(function(t){var e;return e=t.props.direction,!!rn()(i)||("horizontal"===r?"yAxis"===i:"vertical"===r||"x"===e?"xAxis"===i:"y"!==e||"yAxis"===i)});if(a&&a.length){var u=a.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var r=rJ(e,n);if(rn()(r))return t;var i=Array.isArray(r)?[rt()(r),n8()(r)]:[r,r],o=u.reduce(function(t,n){var r=rJ(e,n,0),o=i[0]-Math.abs(Array.isArray(r)?r[0]:r),a=i[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(o,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]},[1/0,-1/0])}return null},r4=function(t,e,n,r,i){var o=e.map(function(e){return r5(t,e,n,i,r)}).filter(function(t){return!rn()(t)});return o&&o.length?o.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null},r7=function(t,e,n,r,i){var o=e.map(function(e){var o=e.props.dataKey;return"number"===n&&o&&r5(t,e,o,r)||rQ(t,o,n,i)});if("number"===n)return o.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var a={};return o.reduce(function(t,e){for(var n=0,r=e.length;n=2?2*(0,rZ.uY)(a[0]-a[1])*c:c,e&&(t.ticks||t.niceTicks))?(t.ticks||t.niceTicks).map(function(t){return{coordinate:r(i?i.indexOf(t):t)+c,value:t,offset:c}}).filter(function(t){return!rp()(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:r(t)+c,value:t,index:e,offset:c}}):r.ticks&&!n?r.ticks(t.tickCount).map(function(t){return{coordinate:r(t)+c,value:t,offset:c}}):r.domain().map(function(t,e){return{coordinate:r(t)+c,value:i?i[t]:t,index:e,offset:c}})},ie=new WeakMap,ir=function(t,e){if("function"!=typeof e)return t;ie.has(t)||ie.set(t,new WeakMap);var n=ie.get(t);if(n.has(e))return n.get(e);var r=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return n.set(e,r),r},ii=function(t,e,n){var r=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===r)return"radial"===o&&"radiusAxis"===a?{scale:f.Z(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:tB(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!n)?{scale:f.x(),realScaleType:"point"}:"category"===i?{scale:f.Z(),realScaleType:"band"}:{scale:tB(),realScaleType:"linear"};if(ra()(r)){var u="scale".concat(rd()(r));return{scale:(s[u]||f.x)(),realScaleType:s[u]?u:"point"}}return ri()(r)?{scale:r}:{scale:f.x(),realScaleType:"point"}},io=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=t(e[0]),u=t(e[n-1]);(ao||uo)&&t.domain([e[0],e[n-1]])}},ia=function(t,e){if(!t)return null;for(var n=0,r=t.length;nr)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]=0?(t[a][n][0]=i,t[a][n][1]=i+u,i=t[a][n][1]):(t[a][n][0]=o,t[a][n][1]=o+u,o=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o0){for(var n,r=0,i=t[e[0]],o=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a=0?(t[o][n][0]=i,t[o][n][1]=i+a,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}}},il=function(t,e,n){var r=e.map(function(t){return t.props.dataKey}),i=ic[n];return(function(){var t=(0,n6.Z)([]),e=n3,n=n1,r=n5;function i(i){var o,a,u=Array.from(t.apply(this,arguments),n4),c=u.length,l=-1;for(let t of i)for(o=0,++l;o=0?0:i<0?i:r}return n[0]},iv=function(t,e){var n=t.props.stackId;if((0,rZ.P2)(n)){var r=e[n];if(r){var i=r.items.indexOf(t);return i>=0?r.stackedData[i]:null}}return null},im=function(t,e,n){return Object.keys(t).reduce(function(r,i){var o=t[i].stackedData.reduce(function(t,r){var i=r.slice(e,n+1).reduce(function(t,e){return[rt()(e.concat([t[0]]).filter(rZ.hj)),n8()(e.concat([t[1]]).filter(rZ.hj))]},[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]).map(function(t){return t===1/0||t===-1/0?0:t})},ib=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ig=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ix=function(t,e,n){if(ri()(t))return t(e,n);if(!Array.isArray(t))return e;var r=[];if((0,rZ.hj)(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(ib.test(t[0])){var i=+ib.exec(t[0])[1];r[0]=e[0]-i}else ri()(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if((0,rZ.hj)(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if(ig.test(t[1])){var o=+ig.exec(t[1])[1];r[1]=e[1]+o}else ri()(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},iO=function(t,e,n){if(t&&t.scale&&t.scale.bandwidth){var r=t.scale.bandwidth();if(!n||r>0)return r}if(t&&e&&e.length>=2){for(var i=rb()(e,function(t){return t.coordinate}),o=1/0,a=1,u=i.length;a1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||r.x.isSsr)return{width:0,height:0};var i=(Object.keys(e=a({},n)).forEach(function(t){e[t]||delete e[t]}),e),o=JSON.stringify({text:t,copyStyle:i});if(u.widthCache[o])return u.widthCache[o];try{var s=document.getElementById(l);s||((s=document.createElement("span")).setAttribute("id",l),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var f=a(a({},c),i);Object.assign(s.style,f),s.textContent="".concat(t);var p=s.getBoundingClientRect(),h={width:p.width,height:p.height};return u.widthCache[o]=h,++u.cacheCount>2e3&&(u.cacheCount=0,u.widthCache={}),h}catch(t){return{width:0,height:0}}},f=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}}},85694:function(t,e,n){"use strict";n.d(e,{Ap:function(){return O},EL:function(){return v},Kt:function(){return b},P2:function(){return d},bv:function(){return g},h1:function(){return m},hU:function(){return p},hj:function(){return h},k4:function(){return x},uY:function(){return f}});var r=n(47037),i=n.n(r),o=n(7654),a=n.n(o),u=n(27361),c=n.n(u),l=n(81763),s=n.n(l),f=function(t){return 0===t?0:t>0?1:-1},p=function(t){return i()(t)&&t.indexOf("%")===t.length-1},h=function(t){return s()(t)&&!a()(t)},d=function(t){return h(t)||i()(t)},y=0,v=function(t){var e=++y;return"".concat(t||"").concat(e)},m=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!h(t)&&!i()(t))return r;if(p(t)){var u=t.indexOf("%");n=e*parseFloat(t.slice(0,u))/100}else n=+t;return a()(n)&&(n=r),o&&n>e&&(n=e),n},b=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},g=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,n={},r=0;r2?n-2:0),i=2;io&&(u=2*Math.PI-u),{radius:a,angle:180*u/Math.PI,angleInRadian:u}},s=function(t){var e=t.startAngle,n=t.endAngle,r=Math.min(Math.floor(e/360),Math.floor(n/360));return{startAngle:e-360*r,endAngle:n-360*r}},f=function(t,e){var n,r=l({x:t.x,y:t.y},e),i=r.radius,a=r.angle,u=e.innerRadius,c=e.outerRadius;if(ic)return!1;if(0===i)return!0;var f=s(e),p=f.startAngle,h=f.endAngle,d=a;if(p<=h){for(;d>h;)d-=360;for(;d=p&&d<=h}else{for(;d>p;)d-=360;for(;d=h&&d<=p}return n?o(o({},e),{},{radius:i,angle:d+360*Math.min(Math.floor(e.startAngle/360),Math.floor(e.endAngle/360))}):null}},97726:function(t,e,n){"use strict";n.d(e,{$R:function(){return R},$k:function(){return _},Bh:function(){return L},Gf:function(){return j},L6:function(){return D},NN:function(){return E},TT:function(){return M},eu:function(){return B},rL:function(){return N},sP:function(){return k}});var r=n(27361),i=n.n(r),o=n(14293),a=n.n(o),u=n(47037),c=n.n(u),l=n(23560),s=n.n(l),f=n(13218),p=n.n(f),h=n(67294),d=n(59864),y=n(85694),v=n(77723),m=n(65717),b=["children"],g=["children"];function x(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var w={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},j=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},S=null,P=null,A=function t(e){if(e===S&&Array.isArray(P))return P;var n=[];return h.Children.forEach(e,function(e){a()(e)||((0,d.isFragment)(e)?n=n.concat(t(e.props.children)):n.push(e))}),P=n,S=e,n};function E(t,e){var n=[],r=[];return r=Array.isArray(e)?e.map(function(t){return j(t)}):[j(e)],A(t).forEach(function(t){var e=i()(t,"type.displayName")||i()(t,"type.name");-1!==r.indexOf(e)&&n.push(t)}),n}function k(t,e){var n=E(t,e);return n&&n[0]}var M=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!!(0,y.hj)(n)&&!(n<=0)&&!!(0,y.hj)(r)&&!(r<=0)},T=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],_=function(t){return t&&"object"===O(t)&&"cx"in t&&"cy"in t&&"r"in t},C=function(t,e,n,r){var i,o=null!==(i=null===m.ry||void 0===m.ry?void 0:m.ry[r])&&void 0!==i?i:[];return!s()(t)&&(r&&o.includes(e)||m.Yh.includes(e))||n&&m.nv.includes(e)},D=function(t,e,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,h.isValidElement)(t)&&(r=t.props),!p()(r))return null;var i={};return Object.keys(r).forEach(function(t){var o;C(null===(o=r)||void 0===o?void 0:o[t],t,e,n)&&(i[t]=r[t])}),i},N=function t(e,n){if(e===n)return!0;var r=h.Children.count(e);if(r!==h.Children.count(n))return!1;if(0===r)return!0;if(1===r)return I(Array.isArray(e)?e[0]:e,Array.isArray(n)?n[0]:n);for(var i=0;i=0)n.push(t);else if(t){var o=j(t.type),a=e[o]||{},u=a.handler,l=a.once;if(u&&(!l||!r[o])){var s=u(t,o,i);n.push(s),r[o]=!0}}}),n},L=function(t){var e=t&&t.type;return e&&w[e]?w[e]:null},R=function(t,e){return A(e).indexOf(t)}},77723:function(t,e,n){"use strict";function r(t,e){for(var n in t)if(({}).hasOwnProperty.call(t,n)&&(!({}).hasOwnProperty.call(e,n)||t[n]!==e[n]))return!1;for(var r in e)if(({}).hasOwnProperty.call(e,r)&&!({}).hasOwnProperty.call(t,r))return!1;return!0}n.d(e,{w:function(){return r}})},56542:function(t,e,n){"use strict";n.d(e,{z:function(){return l}});var r=n(83948),i=n(23078),o=n(97726);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){for(var e=1;e(c=(a=Math.ceil(p/7))>c?a+1:c+1)&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((c=l.length)-(o=s.length)<0&&(o=c,r=s,s=l,l=r),n=0;o;)n=(l[--o]=l[o]+s[o]+n)/1e7|0,l[o]%=1e7;for(n&&(l.unshift(n),++i),c=l.length;0==l[--c];)l.pop();return e.d=l,e.e=i,u?A(e,p):e}function m(t,e,n){if(t!==~~t||tn)throw Error(l+t)}function b(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;et.e^this.s<0?1:-1;for(e=0,n=(r=this.d.length)<(i=t.d.length)?r:i;et.d[e]^this.s<0?1:-1;return r===i?0:r>i^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var t=this.d.length-1,e=(t-this.e)*7;if(t=this.d[t])for(;t%10==0;t/=10)e--;return e<0?0:e},y.dividedBy=y.div=function(t){return g(this,new this.constructor(t))},y.dividedToIntegerBy=y.idiv=function(t){var e=this.constructor;return A(g(this,new e(t),0,1),e.precision)},y.equals=y.eq=function(t){return!this.cmp(t)},y.exponent=function(){return O(this)},y.greaterThan=y.gt=function(t){return this.cmp(t)>0},y.greaterThanOrEqualTo=y.gte=function(t){return this.cmp(t)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(t){return 0>this.cmp(t)},y.lessThanOrEqualTo=y.lte=function(t){return 1>this.cmp(t)},y.logarithm=y.log=function(t){var e,n=this.constructor,r=n.precision,i=r+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(o))throw Error(c+"NaN");if(this.s<1)throw Error(c+(this.s?"NaN":"-Infinity"));return this.eq(o)?new n(0):(u=!1,e=g(S(this,i),S(t,i),i),u=!0,A(e,r))},y.minus=y.sub=function(t){return t=new this.constructor(t),this.s==t.s?E(this,t):v(this,(t.s=-t.s,t))},y.modulo=y.mod=function(t){var e,n=this.constructor,r=n.precision;if(!(t=new n(t)).s)throw Error(c+"NaN");return this.s?(u=!1,e=g(this,t,0,1).times(t),u=!0,this.minus(e)):A(new n(this),r)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return S(this)},y.negated=y.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},y.plus=y.add=function(t){return t=new this.constructor(t),this.s==t.s?v(this,t):E(this,(t.s=-t.s,t))},y.precision=y.sd=function(t){var e,n,r;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(l+t);if(e=O(this)+1,n=7*(r=this.d.length-1)+1,r=this.d[r]){for(;r%10==0;r/=10)n--;for(r=this.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},y.squareRoot=y.sqrt=function(){var t,e,n,r,i,o,a,l=this.constructor;if(this.s<1){if(!this.s)return new l(0);throw Error(c+"NaN")}for(t=O(this),u=!1,0==(i=Math.sqrt(+this))||i==1/0?(((e=b(this.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),r=new l(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new l(i.toString()),i=a=(n=l.precision)+3;;)if(r=(o=r).plus(g(this,o,a+2)).times(.5),b(o.d).slice(0,a)===(e=b(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(A(o,n+1,0),o.times(o).eq(this)){r=o;break}}else if("9999"!=e)break;a+=4}return u=!0,A(r,n)},y.times=y.mul=function(t){var e,n,r,i,o,a,c,l,s,f=this.constructor,p=this.d,h=(t=new f(t)).d;if(!this.s||!t.s)return new f(0);for(t.s*=this.s,n=this.e+t.e,(l=p.length)<(s=h.length)&&(o=p,p=h,h=o,a=l,l=s,s=a),o=[],r=a=l+s;r--;)o.push(0);for(r=s;--r>=0;){for(e=0,i=l+r;i>r;)c=o[i]+h[r]*p[i-r-1]+e,o[i--]=c%1e7|0,e=c/1e7|0;o[i]=(o[i]+e)%1e7|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,u?A(t,f.precision):t},y.toDecimalPlaces=y.todp=function(t,e){var n=this,r=n.constructor;return(n=new r(n),void 0===t)?n:(m(t,0,1e9),void 0===e?e=r.rounding:m(e,0,8),A(n,t+O(n)+1,e))},y.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=k(r,!0):(m(t,0,1e9),void 0===e?e=i.rounding:m(e,0,8),n=k(r=A(new i(r),t+1,e),!0,t+1)),n},y.toFixed=function(t,e){var n,r,i=this.constructor;return void 0===t?k(this):(m(t,0,1e9),void 0===e?e=i.rounding:m(e,0,8),n=k((r=A(new i(this),t+O(this)+1,e)).abs(),!1,t+O(r)+1),this.isneg()&&!this.isZero()?"-"+n:n)},y.toInteger=y.toint=function(){var t=this.constructor;return A(new t(this),O(this)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(t){var e,n,r,i,a,l,s=this,p=s.constructor,h=+(t=new p(t));if(!t.s)return new p(o);if(!(s=new p(s)).s){if(t.s<1)throw Error(c+"Infinity");return s}if(s.eq(o))return s;if(r=p.precision,t.eq(o))return A(s,r);if(l=(e=t.e)>=(n=t.d.length-1),a=s.s,l){if((n=h<0?-h:h)<=9007199254740991){for(i=new p(o),e=Math.ceil(r/7+4),u=!1;n%2&&M((i=i.times(s)).d,e),0!==(n=f(n/2));)M((s=s.times(s)).d,e);return u=!0,t.s<0?new p(o).div(i):A(i,r)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&t.d[Math.max(e,n)]?-1:1,s.s=1,u=!1,i=t.times(S(s,r+12)),u=!0,(i=x(i)).s=a,i},y.toPrecision=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?(n=O(i),r=k(i,n<=o.toExpNeg||n>=o.toExpPos)):(m(t,1,1e9),void 0===e?e=o.rounding:m(e,0,8),n=O(i=A(new o(i),t,e)),r=k(i,t<=n||n<=o.toExpNeg,t)),r},y.toSignificantDigits=y.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(m(t,1,1e9),void 0===e?e=n.rounding:m(e,0,8)),A(new n(this),t,e)},y.toString=y.valueOf=y.val=y.toJSON=function(){var t=O(this),e=this.constructor;return k(this,t<=e.toExpNeg||t>=e.toExpPos)};var g=function(){function t(t,e){var n,r=0,i=t.length;for(t=t.slice();i--;)n=t[i]*e+r,t[i]=n%1e7|0,r=n/1e7|0;return r&&t.unshift(r),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]1;)t.shift()}return function(r,i,o,a){var u,l,s,f,p,h,d,y,v,m,b,g,x,w,j,S,P,E,k=r.constructor,M=r.s==i.s?1:-1,T=r.d,_=i.d;if(!r.s)return new k(r);if(!i.s)throw Error(c+"Division by zero");for(s=0,l=r.e-i.e,P=_.length,j=T.length,y=(d=new k(M)).d=[];_[s]==(T[s]||0);)++s;if(_[s]>(T[s]||0)&&--l,(g=null==o?o=k.precision:a?o+(O(r)-O(i))+1:o)<0)return new k(0);if(g=g/7+2|0,s=0,1==P)for(f=0,_=_[0],g++;(s1&&(_=t(_,f),T=t(T,f),P=_.length,j=T.length),w=P,m=(v=T.slice(0,P)).length;m=1e7/2&&++S;do f=0,(u=e(_,v,P,m))<0?(b=v[0],P!=m&&(b=1e7*b+(v[1]||0)),(f=b/S|0)>1?(f>=1e7&&(f=1e7-1),h=(p=t(_,f)).length,m=v.length,1==(u=e(p,v,h,m))&&(f--,n(p,P16)throw Error(s+O(t));if(!t.s)return new h(o);for(null==e?(u=!1,c=d):c=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(c+=Math.log(p(2,f))/Math.LN10*2+5|0,n=r=i=new h(o),h.precision=c;;){if(r=A(r.times(t),c),n=n.times(++l),b((a=i.plus(g(r,n,c))).d).slice(0,c)===b(i.d).slice(0,c)){for(;f--;)i=A(i.times(i),c);return h.precision=d,null==e?(u=!0,A(i,d)):i}i=a}}function O(t){for(var e=7*t.e,n=t.d[0];n>=10;n/=10)e++;return e}function w(t,e,n){if(e>t.LN10.sd())throw u=!0,n&&(t.precision=n),Error(c+"LN10 precision limit exceeded");return A(new t(t.LN10),e)}function j(t){for(var e="";t--;)e+="0";return e}function S(t,e){var n,r,i,a,l,s,f,p,h,d=1,y=t,v=y.d,m=y.constructor,x=m.precision;if(y.s<1)throw Error(c+(y.s?"NaN":"-Infinity"));if(y.eq(o))return new m(0);if(null==e?(u=!1,p=x):p=e,y.eq(10))return null==e&&(u=!0),w(m,p);if(p+=10,m.precision=p,r=(n=b(v)).charAt(0),!(15e14>Math.abs(a=O(y))))return f=w(m,p+2,x).times(a+""),y=S(new m(r+"."+n.slice(1)),p-10).plus(f),m.precision=x,null==e?(u=!0,A(y,x)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=b((y=y.times(t)).d)).charAt(0),d++;for(a=O(y),r>1?(y=new m("0."+n),a++):y=new m(r+"."+n.slice(1)),s=l=y=g(y.minus(o),y.plus(o),p),h=A(y.times(y),p),i=3;;){if(l=A(l.times(h),p),b((f=s.plus(g(l,new m(i),p))).d).slice(0,p)===b(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(w(m,p+2,x).times(a+""))),s=g(s,new m(d),p),m.precision=x,null==e?(u=!0,A(s,x)):s;s=f,i+=2}}function P(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(r,i)){if(i-=r,n=n-r-1,t.e=f(n/7),t.d=[],r=(n+1)%7,n<0&&(r+=7),rd||t.e<-d))throw Error(s+n)}else t.s=0,t.e=0,t.d=[0];return t}function A(t,e,n){var r,i,o,a,c,l,h,y,v=t.d;for(a=1,o=v[0];o>=10;o/=10)a++;if((r=e-a)<0)r+=7,i=e,h=v[y=0];else{if((y=Math.ceil((r+1)/7))>=(o=v.length))return t;for(a=1,h=o=v[y];o>=10;o/=10)a++;r%=7,i=r-7+a}if(void 0!==n&&(c=h/(o=p(10,a-i-1))%10|0,l=e<0||void 0!==v[y+1]||h%o,l=n<4?(c||l)&&(0==n||n==(t.s<0?3:2)):c>5||5==c&&(4==n||l||6==n&&(r>0?i>0?h/p(10,a-i):0:v[y-1])%10&1||n==(t.s<0?8:7))),e<1||!v[0])return l?(o=O(t),v.length=1,e=e-o-1,v[0]=p(10,(7-e%7)%7),t.e=f(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==r?(v.length=y,o=1,y--):(v.length=y+1,o=p(10,7-r),v[y]=i>0?(h/p(10,a-i)%p(10,i)|0)*o:0),l)for(;;){if(0==y){1e7==(v[0]+=o)&&(v[0]=1,++t.e);break}if(v[y]+=o,1e7!=v[y])break;v[y--]=0,o=1}for(r=v.length;0===v[--r];)v.pop();if(u&&(t.e>d||t.e<-d))throw Error(s+O(t));return t}function E(t,e){var n,r,i,o,a,c,l,s,f,p,h=t.constructor,d=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),u?A(e,d):e;if(l=t.d,p=e.d,r=e.e,s=t.e,l=l.slice(),a=s-r){for((f=a<0)?(n=l,a=-a,c=p.length):(n=p,r=s,c=l.length),a>(i=Math.max(Math.ceil(d/7),c)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((f=(i=l.length)<(c=p.length))&&(c=i),i=0;i0;--i)l[c++]=0;for(i=p.length;i>a;){if(l[--i]0?o=o.charAt(0)+"."+o.slice(1)+j(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+j(-i-1)+o,n&&(r=n-a)>0&&(o+=j(r))):i>=a?(o+=j(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+j(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=j(r))),t.s<0?"-"+o:o}function M(t,e){if(t.length>e)return t.length=e,!0}function T(t){if(!t||"object"!=typeof t)throw Error(c+"Object expected");var e,n,r,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e=i[e+1]&&r<=i[e+2])this[n]=r;else throw Error(l+n+": "+r)}if(void 0!==(r=t[n="LN10"])){if(r==Math.LN10)this[n]=new this(r);else throw Error(l+n+": "+r)}return this}(a=function t(e){var n,r,i;function o(t){if(!(this instanceof o))return new o(t);if(this.constructor=o,t instanceof o){this.s=t.s,this.e=t.e,this.d=(t=t.d)?t.slice():t;return}if("number"==typeof t){if(0*t!=0)throw Error(l+t);if(t>0)this.s=1;else if(t<0)t=-t,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(t===~~t&&t<1e7){this.e=0,this.d=[t];return}return P(this,t.toString())}if("string"!=typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),this.s=-1):this.s=1,h.test(t))P(this,t);else throw Error(l+t)}if(o.prototype=y,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=T,void 0===e&&(e={}),e)for(n=0,i=["precision","rounding","toExpNeg","toExpPos","LN10"];n-1}},1196:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&o(s)?n>1?t(s,n-1,o,a,u):r(u,s):a||(u[u.length]=s)}return u}},28483:function(t,e,n){var r=n(25063)();t.exports=r},47816:function(t,e,n){var r=n(28483),i=n(3674);t.exports=function(t,e){return t&&r(t,e,i)}},97786:function(t,e,n){var r=n(71811),i=n(40327);t.exports=function(t,e){e=r(e,t);for(var n=0,o=e.length;null!=t&&ne}},13:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},42118:function(t,e,n){var r=n(41848),i=n(62722),o=n(42351);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},9454:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},90939:function(t,e,n){var r=n(2492),i=n(37005);t.exports=function t(e,n,o,a,u){return e===n||(null!=e&&null!=n&&(i(e)||i(n))?r(e,n,o,a,t,u):e!=e&&n!=n)}},2492:function(t,e,n){var r=n(46384),i=n(67114),o=n(18351),a=n(16096),u=n(64160),c=n(1469),l=n(44144),s=n(36719),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,y,v,m){var b=c(t),g=c(e),x=b?p:u(t),O=g?p:u(e);x=x==f?h:x,O=O==f?h:O;var w=x==h,j=O==h,S=x==O;if(S&&l(t)){if(!l(e))return!1;b=!0,w=!1}if(S&&!w)return m||(m=new r),b||s(t)?i(t,e,n,y,v,m):o(t,e,x,n,y,v,m);if(!(1&n)){var P=w&&d.call(t,"__wrapped__"),A=j&&d.call(e,"__wrapped__");if(P||A){var E=P?t.value():t,k=A?e.value():e;return m||(m=new r),v(E,k,n,y,m)}}return!!S&&(m||(m=new r),a(t,e,n,y,v,m))}},2958:function(t,e,n){var r=n(46384),i=n(90939);t.exports=function(t,e,n,o){var a=n.length,u=a,c=!o;if(null==t)return!u;for(t=Object(t);a--;){var l=n[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++ai?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r=200){var y=e?null:u(t);if(y)return c(y);p=!1,s=a,d=new r}else d=e?[]:h;t:for(;++l=i?t:r(t,e,n)}},26393:function(t,e,n){var r=n(33448);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),u=void 0!==e,c=null===e,l=e==e,s=r(e);if(!c&&!s&&!a&&t>e||a&&u&&l&&!c&&!s||i&&u&&l||!n&&l||!o)return 1;if(!i&&!a&&!s&&t=c)return l;return l*("desc"==n[i]?-1:1)}}return t.index-e.index}},14429:function(t,e,n){var r=n(55639)["__core-js_shared__"];t.exports=r},99291:function(t,e,n){var r=n(98612);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,u=Object(n);(e?a--:++a-1?u[c?e[l]:l]:void 0}}},47445:function(t,e,n){var r=n(40098),i=n(16612),o=n(18601);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?es))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++d-1&&t%1==0&&t-1}},54705:function(t,e,n){var r=n(18470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},24785:function(t,e,n){var r=n(1989),i=n(38407),o=n(57071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},11285:function(t,e,n){var r=n(45050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},96e3:function(t,e,n){var r=n(45050);t.exports=function(t){return r(this,t).get(t)}},49916:function(t,e,n){var r=n(45050);t.exports=function(t){return r(this,t).has(t)}},95265:function(t,e,n){var r=n(45050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},68776:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},42634:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},24523:function(t,e,n){var r=n(88306);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},94536:function(t,e,n){var r=n(10852)(Object,"create");t.exports=r},86916:function(t,e,n){var r=n(5569)(Object.keys,Object);t.exports=r},31167:function(t,e,n){t=n.nmd(t);var r=n(31957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},45357:function(t,e,n){var r=n(96874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,u=i(o.length-e,0),c=Array(u);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},37465:function(t,e,n){var r=n(38407);t.exports=function(){this.__data__=new r,this.size=0}},63779:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},67599:function(t){t.exports=function(t){return this.__data__.get(t)}},44758:function(t){t.exports=function(t){return this.__data__.has(t)}},34309:function(t,e,n){var r=n(38407),i=n(57071),o=n(83369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},42351:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r=e||n<0||v&&r>=s}function x(){var t,n,r,o=i();if(g(o))return O(o);p=setTimeout(x,(t=o-h,n=o-d,r=e-t,v?u(r,s-n):r))}function O(t){return(p=void 0,m&&c)?b(t):(c=l=void 0,f)}function w(){var t,n=i(),r=g(n);if(c=arguments,l=this,h=n,r){if(void 0===p)return d=t=h,p=setTimeout(x,e),y?b(t):f;if(v)return clearTimeout(p),p=setTimeout(x,e),b(h)}return void 0===p&&(p=setTimeout(x,e)),f}return e=o(e)||0,r(n)&&(y=!!n.leading,s=(v="maxWait"in n)?a(o(n.maxWait)||0,e):s,m="trailing"in n?!!n.trailing:m),w.cancel=function(){void 0!==p&&clearTimeout(p),d=0,c=h=l=p=void 0},w.flush=function(){return void 0===p?f:O(i())},w}},77813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},711:function(t,e,n){var r=n(66193),i=n(93239),o=n(67206),a=n(1469),u=n(16612);t.exports=function(t,e,n){var c=a(t)?r:i;return n&&u(t,e,n)&&(e=void 0),c(t,o(e,3))}},13311:function(t,e,n){var r=n(67740)(n(30998));t.exports=r},30998:function(t,e,n){var r=n(41848),i=n(67206),o=n(40554),a=Math.max;t.exports=function(t,e,n){var u=null==t?0:t.length;if(!u)return -1;var c=null==n?0:o(n);return c<0&&(c=a(u+c,0)),r(t,i(e,3),c)}},94654:function(t,e,n){var r=n(21078),i=n(35161);t.exports=function(t,e){return r(i(t,e),1)}},27361:function(t,e,n){var r=n(97786);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},79095:function(t,e,n){var r=n(13),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},6557:function(t){t.exports=function(t){return t}},35694:function(t,e,n){var r=n(9454),i=n(37005),o=Object.prototype,a=o.hasOwnProperty,u=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},1469:function(t){var e=Array.isArray;t.exports=e},98612:function(t,e,n){var r=n(23560),i=n(41780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},51584:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==r(t)}},44144:function(t,e,n){t=n.nmd(t);var r=n(55639),i=n(95062),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,u=a&&a.exports===o?r.Buffer:void 0,c=u?u.isBuffer:void 0;t.exports=c||i},18446:function(t,e,n){var r=n(90939);t.exports=function(t,e){return r(t,e)}},23560:function(t,e,n){var r=n(44239),i=n(13218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},41780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7654:function(t,e,n){var r=n(81763);t.exports=function(t){return r(t)&&t!=+t}},14293:function(t){t.exports=function(t){return null==t}},81763:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},68630:function(t,e,n){var r=n(44239),i=n(85924),o=n(37005),a=Object.prototype,u=Function.prototype.toString,c=a.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},47037:function(t,e,n){var r=n(44239),i=n(1469),o=n(37005);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},33448:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},36719:function(t,e,n){var r=n(38749),i=n(7518),o=n(31167),a=o&&o.isTypedArray,u=a?i(a):r;t.exports=u},3674:function(t,e,n){var r=n(14636),i=n(280),o=n(98612);t.exports=function(t){return o(t)?r(t):i(t)}},10928:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},35161:function(t,e,n){var r=n(29932),i=n(67206),o=n(69199),a=n(1469);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},66604:function(t,e,n){var r=n(89465),i=n(47816),o=n(67206);t.exports=function(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,i,e(t,i,o))}),n}},6162:function(t,e,n){var r=n(56029),i=n(53325),o=n(6557);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},88306:function(t,e,n){var r=n(83369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},53632:function(t,e,n){var r=n(56029),i=n(70433),o=n(6557);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},50308:function(t){t.exports=function(){}},7771:function(t,e,n){var r=n(55639);t.exports=function(){return r.Date.now()}},39601:function(t,e,n){var r=n(40371),i=n(79152),o=n(15403),a=n(40327);t.exports=function(t){return o(t)?r(a(t)):i(t)}},96026:function(t,e,n){var r=n(47445)();t.exports=r},59704:function(t,e,n){var r=n(82908),i=n(67206),o=n(5076),a=n(1469),u=n(16612);t.exports=function(t,e,n){var c=a(t)?r:o;return n&&u(t,e,n)&&(e=void 0),c(t,i(e,3))}},89734:function(t,e,n){var r=n(21078),i=n(82689),o=n(5976),a=n(16612),u=o(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=u},70479:function(t){t.exports=function(){return[]}},95062:function(t){t.exports=function(){return!1}},23493:function(t,e,n){var r=n(80954),i=n(13218);t.exports=function(t,e,n){var o=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:o,maxWait:e,trailing:a})}},18601:function(t,e,n){var r=n(14841),i=1/0;t.exports=function(t){return t?(t=r(t))===i||t===-i?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},40554:function(t,e,n){var r=n(18601);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},14841:function(t,e,n){var r=n(27561),i=n(13218),o=n(33448),a=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return a;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=c.test(t);return n||l.test(t)?s(t.slice(2),n?2:8):u.test(t)?a:+t}},79833:function(t,e,n){var r=n(80531);t.exports=function(t){return null==t?"":r(t)}},45578:function(t,e,n){var r=n(67206),i=n(45652);t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):[]}},11700:function(t,e,n){var r=n(98805)("toUpperCase");t.exports=r},64332:function(t,e,n){"use strict";n.d(e,{$:function(){return U}});var r=n(67294),i=n(90512),o=n(19787),a=n(18446),u=n.n(a),c=n(14293),l=n.n(c),s=n(63535),f=n(66342),p=function(t){return null};p.displayName="Cell";var h=n(38529),d=n(85694),y=n(97726),v=n(2392),m=n(23078),b=n(65717),g=n(38776),x=n(85552),O=["x","y"];function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(){return(j=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,O),o=parseInt("".concat(n),10),a=parseInt("".concat(r),10),u=parseInt("".concat(e.height||i.height),10),c=parseInt("".concat(e.width||i.width),10);return P(P(P(P(P({},e),i),o?{x:o}:{}),a?{y:a}:{}),{},{height:u,width:c,name:e.name,radius:e.radius})}function E(t){return r.createElement(x.bn,j({shapeType:"rectangle",propTransformer:A,activeClassName:"recharts-active-bar"},t))}var k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof t)return t;var i="number"==typeof n;return i?t(n,r):(i||(0,g.Z)(!1),e)}},M=["value","background"];function T(t){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(){return(_=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(e,M);if(!u)return null;var l=D(D(D(D(D({},c),{},{fill:"#eee"},u),a),(0,b.bw)(t.props,e,n)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:i,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return r.createElement(E,_({option:t.props.background,isActive:n===o},l))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,i=n.data,o=n.xAxis,a=n.yAxis,u=n.layout,c=n.children,l=(0,y.NN)(c,f.W);if(!l)return null;var p="vertical"===u?i[0].height/2:i[0].width/2,h=function(t,e){var n=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:n,errorVal:(0,m.F$)(t,e)}};return r.createElement(s.m,{clipPath:t?"url(#clipPath-".concat(e,")"):null},l.map(function(t){return r.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:i,xAxis:o,yAxis:a,layout:u,offset:p,dataPointFormatter:h})}))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,o=t.className,a=t.xAxis,u=t.yAxis,c=t.left,f=t.top,p=t.width,d=t.height,y=t.isAnimationActive,v=t.background,m=t.id;if(e||!n||!n.length)return null;var b=this.state.isAnimationFinished,g=(0,i.Z)("recharts-bar",o),x=a&&a.allowDataOverflow,O=u&&u.allowDataOverflow,w=x||O,j=l()(m)?this.id:m;return r.createElement(s.m,{className:g},x||O?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(j)},r.createElement("rect",{x:x?c:c-p/2,y:O?f:f-d/2,width:x?p:2*p,height:O?d:2*d}))):null,r.createElement(s.m,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(j,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,j),(!y||b)&&h.e.renderCallByParent(this.props,n))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],e&&N(a.prototype,e),n&&N(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(r.PureComponent);z(U,"displayName","Bar"),z(U,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!v.x.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),z(U,"getComposedData",function(t){var e=t.props,n=t.item,r=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,h=t.offset,v=(0,m.Bu)(r,n);if(!v)return null;var b=e.layout,g=n.props,x=g.dataKey,O=g.children,w=g.minPointSize,j="horizontal"===b?a:o,S=l?j.scale.domain():null,P=(0,m.Yj)({numericAxis:j}),A=(0,y.NN)(O,p),E=f.map(function(t,e){l?f=(0,m.Vv)(l[s+e],S):Array.isArray(f=(0,m.F$)(t,x))||(f=[P,f]);var r=k(w,U.defaultProps.minPointSize)(f[1],e);if("horizontal"===b){var f,p,h,y,g,O,j,E=[a.scale(f[0]),a.scale(f[1])],M=E[0],T=E[1];p=(0,m.Fy)({axis:o,ticks:u,bandSize:i,offset:v.offset,entry:t,index:e}),h=null!==(j=null!=T?T:M)&&void 0!==j?j:void 0,y=v.size;var _=M-T;if(g=Number.isNaN(_)?0:_,O={x:p,y:a.y,width:y,height:a.height},Math.abs(r)>0&&Math.abs(g)0&&Math.abs(y)=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function P(t,e){for(var n=0;n0?this.props:d)),i<=0||a<=0||!y||!y.length)?null:r.createElement(s.m,{className:(0,c.Z)("recharts-cartesian-axis",l),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),p._.renderCallByParent(this.props))}}],n=[{key:"renderTickItem",value:function(t,e,n){return r.isValidElement(t)?r.cloneElement(t,e):o()(t)?t(e):r.createElement(f.x,O({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],e&&P(i.prototype,e),n&&P(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(r.Component);M(_,"displayName","CartesianAxis"),M(_,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"})},15239:function(t,e,n){"use strict";n.d(e,{q:function(){return M}});var r=n(67294),i=n(23560),o=n.n(i),a=n(41576),u=n(85694),c=n(97726),l=n(23078),s=n(54387),f=n(76399),p=n(79398),h=["x1","y1","x2","y2","key"],d=["offset"];function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function m(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var x=function(t){var e=t.fill;if(!e||"none"===e)return null;var n=t.fillOpacity,i=t.x,o=t.y,a=t.width,u=t.height;return r.createElement("rect",{x:i,y:o,width:a,height:u,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function O(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(o()(t))n=t(e);else{var i=e.x1,a=e.y1,u=e.x2,l=e.y2,s=e.key,f=g(e,h),p=(0,c.L6)(f,!1),y=(p.offset,g(p,d));n=r.createElement("line",b({},y,{x1:i,y1:a,x2:u,y2:l,fill:"none",key:s}))}return n}function w(t){var e=t.x,n=t.width,i=t.horizontal,o=void 0===i||i,a=t.horizontalPoints;if(!o||!a||!a.length)return null;var u=a.map(function(r,i){return O(o,m(m({},t),{},{x1:e,y1:r,x2:e+n,y2:r,key:"line-".concat(i),index:i}))});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function j(t){var e=t.y,n=t.height,i=t.vertical,o=void 0===i||i,a=t.verticalPoints;if(!o||!a||!a.length)return null;var u=a.map(function(r,i){return O(o,m(m({},t),{},{x1:r,y1:e,x2:r,y2:e+n,key:"line-".concat(i),index:i}))});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function S(t){var e=t.horizontalFill,n=t.fillOpacity,i=t.x,o=t.y,a=t.width,u=t.height,c=t.horizontalPoints,l=t.horizontal;if(!(void 0===l||l)||!e||!e.length)return null;var s=c.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==s[0]&&s.unshift(0);var f=s.map(function(t,c){var l=s[c+1]?s[c+1]-t:o+u-t;if(l<=0)return null;var f=c%e.length;return r.createElement("rect",{key:"react-".concat(c),y:t,x:i,height:l,width:a,stroke:"none",fill:e[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function P(t){var e=t.vertical,n=t.verticalFill,i=t.fillOpacity,o=t.x,a=t.y,u=t.width,c=t.height,l=t.verticalPoints;if(!(void 0===e||e)||!n||!n.length)return null;var s=l.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==s[0]&&s.unshift(0);var f=s.map(function(t,e){var l=s[e+1]?s[e+1]-t:o+u-t;if(l<=0)return null;var f=e%n.length;return r.createElement("rect",{key:"react-".concat(e),x:t,y:a,width:l,height:c,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var A=function(t,e){var n=t.xAxis,r=t.width,i=t.height,o=t.offset;return(0,l.Rf)((0,s.f)(m(m(m({},f.O.defaultProps),n),{},{ticks:(0,l.uY)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,e)},E=function(t,e){var n=t.yAxis,r=t.width,i=t.height,o=t.offset;return(0,l.Rf)((0,s.f)(m(m(m({},f.O.defaultProps),n),{},{ticks:(0,l.uY)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,e)},k={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function M(t){var e,n,i,c,l,s,f=(0,p.zn)(),h=(0,p.Mw)(),d=(0,p.qD)(),v=m(m({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:k.stroke,fill:null!==(n=t.fill)&&void 0!==n?n:k.fill,horizontal:null!==(i=t.horizontal)&&void 0!==i?i:k.horizontal,horizontalFill:null!==(c=t.horizontalFill)&&void 0!==c?c:k.horizontalFill,vertical:null!==(l=t.vertical)&&void 0!==l?l:k.vertical,verticalFill:null!==(s=t.verticalFill)&&void 0!==s?s:k.verticalFill,x:(0,u.hj)(t.x)?t.x:d.left,y:(0,u.hj)(t.y)?t.y:d.top,width:(0,u.hj)(t.width)?t.width:d.width,height:(0,u.hj)(t.height)?t.height:d.height}),g=v.x,O=v.y,M=v.width,T=v.height,_=v.syncWithTicks,C=v.horizontalValues,D=v.verticalValues,N=(0,p.CW)(),I=(0,p.Nf)();if(!(0,u.hj)(M)||M<=0||!(0,u.hj)(T)||T<=0||!(0,u.hj)(g)||g!==+g||!(0,u.hj)(O)||O!==+O)return null;var B=v.verticalCoordinatesGenerator||A,L=v.horizontalCoordinatesGenerator||E,R=v.horizontalPoints,z=v.verticalPoints;if((!R||!R.length)&&o()(L)){var $=C&&C.length,U=L({yAxis:I?m(m({},I),{},{ticks:$?C:I.ticks}):void 0,width:f,height:h,offset:d},!!$||_);(0,a.Z)(Array.isArray(U),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(y(U),"]")),Array.isArray(U)&&(R=U)}if((!z||!z.length)&&o()(B)){var F=D&&D.length,Z=B({xAxis:N?m(m({},N),{},{ticks:F?D:N.ticks}):void 0,width:f,height:h,offset:d},!!F||_);(0,a.Z)(Array.isArray(Z),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(y(Z),"]")),Array.isArray(Z)&&(z=Z)}return r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(x,{fill:v.fill,fillOpacity:v.fillOpacity,x:v.x,y:v.y,width:v.width,height:v.height}),r.createElement(w,b({},v,{offset:d,horizontalPoints:R,xAxis:N,yAxis:I})),r.createElement(j,b({},v,{offset:d,verticalPoints:z,xAxis:N,yAxis:I})),r.createElement(S,b({},v,{horizontalPoints:R})),r.createElement(P,b({},v,{verticalPoints:z})))}M.displayName="CartesianGrid"},66342:function(t,e,n){"use strict";n.d(e,{W:function(){return s}});var r=n(67294),i=n(38776),o=n(63535),a=n(97726),u=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,u),m=(0,a.L6)(v,!1);"x"===t.direction&&"number"!==d.type&&(0,i.Z)(!1);var b=p.map(function(t){var i,a,u=h(t,f),p=u.x,v=u.y,b=u.value,g=u.errorVal;if(!g)return null;var x=[];if(Array.isArray(g)){var O=function(t){if(Array.isArray(t))return t}(g)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,l=!1;try{for(o=(n=n.call(t)).next;!(c=(r=o.call(n)).done)&&(u.push(r.value),2!==u.length);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(g,2)||function(t,e){if(t){if("string"==typeof t)return l(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,2)}}(g,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();i=O[0],a=O[1]}else i=a=g;if("vertical"===n){var w=d.scale,j=v+e,S=j+s,P=j-s,A=w(b-i),E=w(b+a);x.push({x1:E,y1:S,x2:E,y2:P}),x.push({x1:A,y1:j,x2:E,y2:j}),x.push({x1:A,y1:S,x2:A,y2:P})}else if("horizontal"===n){var k=y.scale,M=p+e,T=M-s,_=M+s,C=k(b-i),D=k(b+a);x.push({x1:T,y1:D,x2:_,y2:D}),x.push({x1:M,y1:C,x2:M,y2:D}),x.push({x1:T,y1:C,x2:_,y2:C})}return r.createElement(o.m,c({className:"recharts-errorBar",key:"bar-".concat(x.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},m),x.map(function(t){return r.createElement("line",c({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return r.createElement(o.m,{className:"recharts-errorBars"},b)}s.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},s.displayName="ErrorBar"},66690:function(t,e,n){"use strict";n.d(e,{x:function(){return I}});var r=n(67294),i=n(19787),o=n(23560),a=n.n(o),u=n(14293),c=n.n(u),l=n(18446),s=n.n(l),f=n(90512),p=n(61729),h=n(43118),d=n(63535),y=n(38529),v=n(66342),m=n(85694),b=n(97726),g=n(2392),x=n(23078),O=["type","layout","connectNulls","ref"];function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(){return(j=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);na){c=[].concat(A(r.slice(0,l)),[a-s]);break}var f=c.length%2==0?[0,u]:[u];return[].concat(A(o.repeat(r,Math.floor(e/i))),A(c),f).map(function(t){return"".concat(t,"px")}).join(", ")}),D(_(t),"id",(0,m.EL)("recharts-line-")),D(_(t),"pathRef",function(e){t.mainCurve=e}),D(_(t),"handleAnimationEnd",function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()}),D(_(t),"handleAnimationStart",function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()}),t}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}(o,t),e=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,i=n.points,o=n.xAxis,a=n.yAxis,u=n.layout,c=n.children,l=(0,b.NN)(c,v.W);if(!l)return null;var s=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:(0,x.F$)(t.payload,e)}};return r.createElement(d.m,{clipPath:t?"url(#clipPath-".concat(e,")"):null},l.map(function(t){return r.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:i,xAxis:o,yAxis:a,layout:u,dataPointFormatter:s})}))}},{key:"renderDots",value:function(t,e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,u=i.points,c=i.dataKey,l=(0,b.L6)(this.props,!1),s=(0,b.L6)(a,!0),f=u.map(function(t,e){var n=P(P(P({key:"dot-".concat(e),r:3},l),s),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:e,payload:t.payload});return o.renderDotItem(a,n)}),p={clipPath:t?"url(#clipPath-".concat(e?"":"dots-").concat(n,")"):null};return r.createElement(d.m,j({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(t,e,n,i){var o=this.props,a=o.type,u=o.layout,c=o.connectNulls,l=(o.ref,function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(o,O)),s=P(P(P({},(0,b.L6)(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},i),{},{type:a,layout:u,connectNulls:c});return r.createElement(p.H,j({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var n=this,o=this.props,a=o.points,u=o.strokeDasharray,c=o.isAnimationActive,l=o.animationBegin,s=o.animationDuration,f=o.animationEasing,p=o.animationId,h=o.animateNewValues,d=o.width,y=o.height,v=this.state,b=v.prevPoints,g=v.totalLength;return r.createElement(i.ZP,{begin:l,duration:s,isActive:c,easing:f,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var i,o=r.t;if(b){var c=b.length/a.length,l=a.map(function(t,e){var n=Math.floor(e*c);if(b[n]){var r=b[n],i=(0,m.k4)(r.x,t.x),a=(0,m.k4)(r.y,t.y);return P(P({},t),{},{x:i(o),y:a(o)})}if(h){var u=(0,m.k4)(2*d,t.x),l=(0,m.k4)(y/2,t.y);return P(P({},t),{},{x:u(o),y:l(o)})}return P(P({},t),{},{x:t.x,y:t.y})});return n.renderCurveStatically(l,t,e)}var s=(0,m.k4)(0,g)(o);if(u){var f="".concat(u).split(/[,\s]+/gim).map(function(t){return parseFloat(t)});i=n.getStrokeDasharray(s,g,f)}else i=n.generateSimpleStrokeDasharray(g,s);return n.renderCurveStatically(a,t,e,{strokeDasharray:i})})}},{key:"renderCurve",value:function(t,e){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,u=o.totalLength;return i&&r&&r.length&&(!a&&u>0||!s()(a,r))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(r,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,i=e.dot,o=e.points,a=e.className,u=e.xAxis,l=e.yAxis,s=e.top,p=e.left,h=e.width,v=e.height,m=e.isAnimationActive,g=e.id;if(n||!o||!o.length)return null;var x=this.state.isAnimationFinished,O=1===o.length,w=(0,f.Z)("recharts-line",a),j=u&&u.allowDataOverflow,S=l&&l.allowDataOverflow,P=j||S,A=c()(g)?this.id:g,E=null!==(t=(0,b.L6)(i,!1))&&void 0!==t?t:{r:3,strokeWidth:2},k=E.r,M=E.strokeWidth,T=((0,b.$k)(i)?i:{}).clipDot,_=void 0===T||T,C=2*(void 0===k?3:k)+(void 0===M?2:M);return r.createElement(d.m,{className:w},j||S?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(A)},r.createElement("rect",{x:j?p:p-h/2,y:S?s:s-v/2,width:j?h:2*h,height:S?v:2*v})),!_&&r.createElement("clipPath",{id:"clipPath-dots-".concat(A)},r.createElement("rect",{x:p-C/2,y:s-C/2,width:h+C,height:v+C}))):null,!O&&this.renderCurve(P,A),this.renderErrorBar(P,A),(O||i)&&this.renderDots(P,_,A),(!m||x)&&y.e.renderCallByParent(this.props,o))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var n=t.length%2!=0?[].concat(A(t),[0]):t,r=[],i=0;it*i)return!1;var o=n();return t*(e-t*o/2-r)>=0&&t*(e+t*o/2-i)<=0}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var e=1;e=2?(0,o.uY)(m[1].coordinate-m[0].coordinate):1,M=(r="width"===P,f=b.x,p=b.y,d=b.width,y=b.height,1===k?{start:r?f:p,end:r?f+d:p+y}:{start:r?f+d:p+y,end:r?f:p});return"equidistantPreserveStart"===O?function(t,e,n,r,i){for(var o,a=(r||[]).slice(),u=e.start,c=e.end,f=0,p=1,h=u;p<=a.length;)if(o=function(){var e,o=null==r?void 0:r[f];if(void 0===o)return{v:l(r,p)};var a=f,d=function(){return void 0===e&&(e=n(o,a)),e},y=o.coordinate,v=0===f||s(t,y,d,h,c);v||(f=0,h=u,p+=1),v&&(h=y+t*(d()/2+i),f+=p)}())return o.v;return[]}(k,M,E,m,g):("preserveStart"===O||"preserveStartEnd"===O?function(t,e,n,r,i,o){var a=(r||[]).slice(),u=a.length,c=e.start,l=e.end;if(o){var f=r[u-1],p=n(f,u-1),d=t*(f.coordinate+t*p/2-l);a[u-1]=f=h(h({},f),{},{tickCoord:d>0?f.coordinate-d*t:f.coordinate}),s(t,f.tickCoord,function(){return p},c,l)&&(l=f.tickCoord-t*(p/2+i),a[u-1]=h(h({},f),{},{isShow:!0}))}for(var y=o?u-1:u,v=function(e){var r,o=a[e],u=function(){return void 0===r&&(r=n(o,e)),r};if(0===e){var f=t*(o.coordinate-t*u()/2-c);a[e]=o=h(h({},o),{},{tickCoord:f<0?o.coordinate-f*t:o.coordinate})}else a[e]=o=h(h({},o),{},{tickCoord:o.coordinate});s(t,o.tickCoord,u,c,l)&&(c=o.tickCoord+t*(u()/2+i),a[e]=h(h({},o),{},{isShow:!0}))},m=0;m0?l.coordinate-p*t:l.coordinate})}else o[e]=l=h(h({},l),{},{tickCoord:l.coordinate});s(t,l.tickCoord,f,u,c)&&(c=l.tickCoord-t*(f()/2+i),o[e]=h(h({},l),{},{isShow:!0}))},f=a-1;f>=0;f--)l(f);return o}(k,M,E,m,g)).filter(function(t){return t.isShow})}},53894:function(t,e,n){"use strict";n.d(e,{v:function(){return c}});var r=n(84725),i=n(64332),o=n(56565),a=n(87770),u=n(64243),c=(0,r.z)({chartName:"BarChart",GraphicalChild:i.$,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:o.K},{axisType:"yAxis",AxisComp:a.B}],formatAxisMap:u.t9})},11693:function(t,e,n){"use strict";n.d(e,{w:function(){return c}});var r=n(84725),i=n(66690),o=n(56565),a=n(87770),u=n(64243),c=(0,r.z)({chartName:"LineChart",GraphicalChild:i.x,axisComponents:[{axisType:"xAxis",AxisComp:o.K},{axisType:"yAxis",AxisComp:a.B}],formatAxisMap:u.t9})},84725:function(t,e,n){"use strict";n.d(e,{z:function(){return eb}});var r=n(67294),i=n(14293),o=n.n(i),a=n(23560),u=n.n(a),c=n(96026),l=n.n(c),s=n(27361),f=n.n(s),p=n(89734),h=n.n(p),d=n(23493),y=n.n(d),v=n(90512),m=n(38776),b=n(43778),g=n(63535),x=n(81659),O=n(83948),w=n(43118),j=n(33377),S=n(97726),P=n(175),A=n(16198),E=n(23078),k=n(85694);function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function _(t){for(var e=1;e0&&e.handleDrag(t.changedTouches[0])}),W(F(e),"handleDragEnd",function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=e.props,n=t.endIndex,r=t.onDragEnd,i=t.startIndex;null==r||r({endIndex:n,startIndex:i})}),e.detachDragEndListener()}),W(F(e),"handleLeaveWrapper",function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))}),W(F(e),"handleEnterSlideOrTraveller",function(){e.setState({isTextActive:!0})}),W(F(e),"handleLeaveSlideOrTraveller",function(){e.setState({isTextActive:!1})}),W(F(e),"handleSlideDragStart",function(t){var n=H(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),e.attachDragEndListener()}),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(F(e),"startX"),endX:e.handleTravellerDragStart.bind(F(e),"endX")},e.state={},e}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Z(t,e)}(i,t),e=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,n=t.endX,r=this.state.scaleValues,o=this.props,a=o.gap,u=o.data.length-1,c=i.getIndexInRange(r,Math.min(e,n)),l=i.getIndexInRange(r,Math.max(e,n));return{startIndex:c-c%a,endIndex:l===u?u:l-l%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,i=e.dataKey,o=(0,E.F$)(n[t],i,t);return u()(r)?r(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,i=e.endX,o=this.props,a=o.x,u=o.width,c=o.travellerWidth,l=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-n;p>0?p=Math.min(p,a+u-c-i,a+u-c-r):p<0&&(p=Math.max(p,a-r,a-i));var h=this.getIndex({startX:r+p,endX:i+p});(h.startIndex!==l||h.endIndex!==s)&&f&&f(h),this.setState({startX:r+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=H(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,n=e.brushMoveStartX,r=e.movingTravellerId,i=e.endX,o=e.startX,a=this.state[r],u=this.props,c=u.x,l=u.width,s=u.travellerWidth,f=u.onChange,p=u.gap,h=u.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-n;y>0?y=Math.min(y,c+l-s-a):y<0&&(y=Math.max(y,c-a)),d[r]=a+y;var v=this.getIndex(d),m=v.startIndex,b=v.endIndex,g=function(){var t=h.length-1;return"startX"===r&&(i>o?m%p==0:b%p==0)||io?b%p==0:m%p==0)||i>o&&b===t};this.setState(W(W({},r,a+y),"brushMoveStartX",t.pageX),function(){f&&g()&&f(v)})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var n=this,r=this.state,i=r.scaleValues,o=r.startX,a=r.endX,u=this.state[e],c=i.indexOf(u);if(-1!==c){var l=c+t;if(-1!==l&&!(l>=i.length)){var s=i[l];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(W({},e,s),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,i=t.width,o=t.height,a=t.fill,u=t.stroke;return r.createElement("rect",{stroke:u,fill:a,x:e,y:n,width:i,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,i=t.width,o=t.height,a=t.data,u=t.children,c=t.padding,l=r.Children.only(u);return l?r.cloneElement(l,{x:e,y:n,width:i,height:o,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(t,e){var n,o,a=this,u=this.props,c=u.y,l=u.travellerWidth,s=u.height,f=u.traveller,p=u.ariaLabel,h=u.data,d=u.startIndex,y=u.endIndex,v=Math.max(t,this.props.x),m=R(R({},(0,S.L6)(this.props,!1)),{},{x:v,y:c,width:l,height:s}),b=p||"Min value: ".concat(null===(n=h[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(o=h[y])||void 0===o?void 0:o.name);return r.createElement(g.m,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},i.renderTraveller(f,m))}},{key:"renderSlide",value:function(t,e){var n=this.props,i=n.y,o=n.height,a=n.stroke,u=n.travellerWidth;return r.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:Math.min(t,e)+u,y:i,width:Math.max(Math.abs(e-t)-u,0),height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,i=t.y,o=t.height,a=t.travellerWidth,u=t.stroke,c=this.state,l=c.startX,s=c.endX,f={pointerEvents:"none",fill:u};return r.createElement(g.m,{className:"recharts-brush-texts"},r.createElement(A.x,B({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:i+o/2},f),this.getTextOfTick(e)),r.createElement(A.x,B({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+a+5,y:i+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,i=t.children,o=t.x,a=t.y,u=t.width,c=t.height,l=t.alwaysShowText,s=this.state,f=s.startX,p=s.endX,h=s.isTextActive,d=s.isSlideMoving,y=s.isTravellerMoving,m=s.isTravellerFocused;if(!e||!e.length||!(0,k.hj)(o)||!(0,k.hj)(a)||!(0,k.hj)(u)||!(0,k.hj)(c)||u<=0||c<=0)return null;var b=(0,v.Z)("recharts-brush",n),x=1===r.Children.count(i),O=N("userSelect","none");return r.createElement(g.m,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||d||y||m||l)&&this.renderText())}}],n=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,n=t.y,i=t.width,o=t.height,a=t.stroke,u=Math.floor(n+o/2)-1;return r.createElement(r.Fragment,null,r.createElement("rect",{x:e,y:n,width:i,height:o,fill:a,stroke:"none"}),r.createElement("line",{x1:e+1,y1:u,x2:e+i-1,y2:u,fill:"none",stroke:"#fff"}),r.createElement("line",{x1:e+1,y1:u+2,x2:e+i-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return r.isValidElement(t)?r.cloneElement(t,e):u()(t)?t(e):i.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var n=t.data,r=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,u=t.startIndex,c=t.endIndex;if(n!==e.prevData||a!==e.prevUpdateId)return R({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?Y({data:n,width:r,x:i,travellerWidth:o,startIndex:u,endIndex:c}):{scale:null,scaleValues:null});if(e.scale&&(r!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+r-o]);var l=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var n=t.length,r=0,i=n-1;i-r>1;){var o=Math.floor((r+i)/2);t[o]>e?i=o:r=o}return e>=t[i]?i:r}}],e&&z(i.prototype,e),n&&z(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(r.PureComponent);W(X,"displayName","Brush"),W(X,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var V=n(22461),G=n(56542),K=n(90970),J=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},Q=n(64243),tt=n(41576);function te(t){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tn(){return(tn=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,tz));return(0,k.hj)(n)&&(0,k.hj)(o)&&(0,k.hj)(f)&&(0,k.hj)(h)&&(0,k.hj)(u)&&(0,k.hj)(l)?r.createElement("path",t$({},(0,S.L6)(y,!0),{className:(0,v.Z)("recharts-cross",d),d:"M".concat(n,",").concat(u,"v").concat(h,"M").concat(l,",").concat(o,"h").concat(f)})):null};function tZ(t){var e=t.cx,n=t.cy,r=t.radius,i=t.startAngle,o=t.endAngle;return{points:[(0,tA.op)(e,n,r,i),(0,tA.op)(e,n,r,o)],cx:e,cy:n,radius:r,startAngle:i,endAngle:o}}var tW=n(68416);function tq(t){return(tq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tY(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tH(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function t1(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(t1=function(){return!!t})()}function t2(t){return(t2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function t6(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function t3(t,e){return(t3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function t5(t){return function(t){if(Array.isArray(t))return t7(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||t4(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t4(t,e){if(t){if("string"==typeof t)return t7(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t7(t,e)}}function t7(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0?o:t&&t.length&&(0,k.hj)(r)&&(0,k.hj)(i)?t.slice(r,i+1):[]};function ec(t){return"number"===t?[0,"auto"]:void 0}var el=function(t,e,n,r){var i=t.graphicalItems,o=t.tooltipAxis,a=eu(e,t);return n<0||!i||!i.length||n>=a.length?null:i.reduce(function(i,u){var c,l,s=null!==(c=u.props.data)&&void 0!==c?c:e;if(s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory){var f=void 0===s?a:s;l=(0,k.Ap)(f,o.dataKey,r)}else l=s&&s[n]||a[n];return l?[].concat(t5(i),[(0,E.Qo)(u,l)]):i},[])},es=function(t,e,n,r){var i=r||{x:t.chartX,y:t.chartY},o="horizontal"===n?i.x:"vertical"===n?i.y:"centric"===n?i.angle:i.radius,a=t.orderedTooltipTicks,u=t.tooltipAxis,c=t.tooltipTicks,l=(0,E.VO)(o,a,c,u);if(l>=0&&c){var s=c[l]&&c[l].value,f=el(t,e,l,s),p=ea(n,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},ef=function(t,e){var n=e.axes,r=e.graphicalItems,i=e.axisType,a=e.axisIdKey,u=e.stackGroups,c=e.dataStartIndex,s=e.dataEndIndex,f=t.layout,p=t.children,h=t.stackOffset,d=(0,E.NA)(f,i);return n.reduce(function(e,n){var y=n.props,v=y.type,m=y.dataKey,b=y.allowDataOverflow,g=y.allowDuplicatedCategory,x=y.scale,O=y.ticks,w=y.includeHidden,j=n.props[a];if(e[j])return e;var S=eu(t.data,{graphicalItems:r.filter(function(t){return t.props[a]===j}),dataStartIndex:c,dataEndIndex:s}),P=S.length;(function(t,e,n){if("number"===n&&!0===e&&Array.isArray(t)){var r=null==t?void 0:t[0],i=null==t?void 0:t[1];if(r&&i&&(0,k.hj)(r)&&(0,k.hj)(i))return!0}return!1})(n.props.domain,b,v)&&(T=(0,E.LG)(n.props.domain,null,b),d&&("number"===v||"auto"!==x)&&(C=(0,E.gF)(S,m,"category")));var A=ec(v);if(!T||0===T.length){var M,T,_,C,D,N=null!==(D=n.props.domain)&&void 0!==D?D:A;if(m){if(T=(0,E.gF)(S,m,v),"category"===v&&d){var I=(0,k.bv)(T);g&&I?(_=T,T=l()(0,P)):g||(T=(0,E.ko)(N,T,n).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(t5(t),[e])},[]))}else if("category"===v)T=g?T.filter(function(t){return""!==t&&!o()(t)}):(0,E.ko)(N,T,n).reduce(function(t,e){return t.indexOf(e)>=0||""===e||o()(e)?t:[].concat(t5(t),[e])},[]);else if("number"===v){var B=(0,E.ZI)(S,r.filter(function(t){return t.props[a]===j&&(w||!t.props.hide)}),m,i,f);B&&(T=B)}d&&("number"===v||"auto"!==x)&&(C=(0,E.gF)(S,m,"category"))}else T=d?l()(0,P):u&&u[j]&&u[j].hasStack&&"number"===v?"expand"===h?[0,1]:(0,E.EB)(u[j].stackGroups,c,s):(0,E.s6)(S,r.filter(function(t){return t.props[a]===j&&(w||!t.props.hide)}),v,f,!0);"number"===v?(T=tP(p,T,j,i,O),N&&(T=(0,E.LG)(N,T,b))):"category"===v&&N&&T.every(function(t){return N.indexOf(t)>=0})&&(T=N)}return t9(t9({},e),{},et({},j,t9(t9({},n.props),{},{axisType:i,domain:T,categoricalDomain:C,duplicateDomain:_,originalDomain:null!==(M=n.props.domain)&&void 0!==M?M:A,isCategorical:d,layout:f})))},{})},ep=function(t,e){var n=e.graphicalItems,r=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,s=t.layout,p=t.children,h=eu(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:c}),d=h.length,y=(0,E.NA)(s,i),v=-1;return n.reduce(function(t,e){var m,b=e.props[o],g=ec("number");return t[b]?t:(v++,m=y?l()(0,d):a&&a[b]&&a[b].hasStack?tP(p,m=(0,E.EB)(a[b].stackGroups,u,c),b,i):tP(p,m=(0,E.LG)(g,(0,E.s6)(h,n.filter(function(t){return t.props[o]===b&&!t.props.hide}),"number",s),r.defaultProps.allowDataOverflow),b,i),t9(t9({},t),{},et({},b,t9(t9({axisType:i},r.defaultProps),{},{hide:!0,orientation:f()(en,"".concat(i,".").concat(v%2),null),domain:m,originalDomain:g,isCategorical:y,layout:s}))))},{})},eh=function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.children,s="".concat(r,"Id"),f=(0,S.NN)(l,i),p={};return f&&f.length?p=ef(t,{axes:f,graphicalItems:o,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):o&&o.length&&(p=ep(t,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c})),p},ed=function(t){var e=(0,k.Kt)(t),n=(0,E.uY)(e,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:h()(n,function(t){return t.coordinate}),tooltipAxis:e,tooltipAxisBandSize:(0,E.zT)(e,n)}},ey=function(t){var e=t.children,n=t.defaultShowTooltip,r=(0,S.sP)(e,X),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(o=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},ev=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},em=function(t,e){var n=t.props,r=t.graphicalItems,i=t.xAxisMap,o=void 0===i?{}:i,a=t.yAxisMap,u=void 0===a?{}:a,c=n.width,l=n.height,s=n.children,p=n.margin||{},h=(0,S.sP)(s,X),d=(0,S.sP)(s,O.D),y=Object.keys(u).reduce(function(t,e){var n=u[e],r=n.orientation;return n.mirror||n.hide?t:t9(t9({},t),{},et({},r,t[r]+n.width))},{left:p.left||0,right:p.right||0}),v=Object.keys(o).reduce(function(t,e){var n=o[e],r=n.orientation;return n.mirror||n.hide?t:t9(t9({},t),{},et({},r,f()(t,"".concat(r))+n.height))},{top:p.top||0,bottom:p.bottom||0}),m=t9(t9({},v),y),b=m.bottom;h&&(m.bottom+=h.props.height||X.defaultProps.height),d&&e&&(m=(0,E.By)(m,r,n,e));var g=c-m.left-m.right,x=l-m.top-m.bottom;return t9(t9({brushBottom:b},m),{},{width:Math.max(g,0),height:Math.max(x,0)})},eb=function(t){var e,n=t.chartName,i=t.GraphicalChild,a=t.defaultTooltipEventType,c=void 0===a?"axis":a,l=t.validateTooltipEventTypes,s=void 0===l?["axis"]:l,p=t.axisComponents,h=t.legendContent,d=t.formatAxisMap,O=t.defaultProps,P=function(t,e){var n=e.graphicalItems,r=e.stackGroups,i=e.offset,a=e.updateId,u=e.dataStartIndex,c=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,h=t.barCategoryGap,d=t.maxBarSize,y=ev(s),v=y.numericAxisName,b=y.cateAxisName,g=!!n&&!!n.length&&n.some(function(t){var e=(0,S.Gf)(t&&t.type);return e&&e.indexOf("Bar")>=0}),x=[];return n.forEach(function(n,y){var O=eu(t.data,{graphicalItems:[n],dataStartIndex:u,dataEndIndex:c}),w=n.props,j=w.dataKey,P=w.maxBarSize,A=n.props["".concat(v,"Id")],k=n.props["".concat(b,"Id")],M=p.reduce(function(t,r){var i=e["".concat(r.axisType,"Map")],o=n.props["".concat(r.axisType,"Id")];i&&i[o]||"zAxis"===r.axisType||(0,m.Z)(!1);var a=i[o];return t9(t9({},t),{},et(et({},r.axisType,a),"".concat(r.axisType,"Ticks"),(0,E.uY)(a)))},{}),T=M[b],_=M["".concat(b,"Ticks")],C=r&&r[A]&&r[A].hasStack&&(0,E.O3)(n,r[A].stackGroups),D=(0,S.Gf)(n.type).indexOf("Bar")>=0,N=(0,E.zT)(T,_),I=[],B=g&&(0,E.pt)({barSize:l,stackGroups:r,totalSize:"xAxis"===b?M[b].width:"yAxis"===b?M[b].height:void 0});if(D){var L,R,z=o()(P)?d:P,$=null!==(L=null!==(R=(0,E.zT)(T,_,!0))&&void 0!==R?R:z)&&void 0!==L?L:0;I=(0,E.qz)({barGap:f,barCategoryGap:h,bandSize:$!==N?$:N,sizeList:B[k],maxBarSize:z}),$!==N&&(I=I.map(function(t){return t9(t9({},t),{},{position:t9(t9({},t.position),{},{offset:t.position.offset-$/2})})}))}var U=n&&n.type&&n.type.getComposedData;U&&x.push({props:t9(t9({},U(t9(t9({},M),{},{displayedData:O,props:t,dataKey:j,item:n,bandSize:N,barPosition:I,offset:i,stackedData:C,layout:s,dataStartIndex:u,dataEndIndex:c}))),{},et(et(et({key:n.key||"item-".concat(y)},v,M[v]),b,M[b]),"animationId",a)),childIndex:(0,S.$R)(n,t.children),item:n})}),x},A=function(t,e){var r=t.props,o=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!(0,S.TT)({props:r}))return null;var c=r.children,l=r.layout,s=r.stackOffset,f=r.data,h=r.reverseStackOrder,y=ev(l),v=y.numericAxisName,m=y.cateAxisName,b=(0,S.NN)(c,i),g=(0,E.wh)(f,b,"".concat(v,"Id"),"".concat(m,"Id"),s,h),x=p.reduce(function(t,e){var n="".concat(e.axisType,"Map");return t9(t9({},t),{},et({},n,eh(r,t9(t9({},e),{},{graphicalItems:b,stackGroups:e.axisType===v&&g,dataStartIndex:o,dataEndIndex:a}))))},{}),O=em(t9(t9({},x),{},{props:r,graphicalItems:b}),null==e?void 0:e.legendBBox);Object.keys(x).forEach(function(t){x[t]=d(r,x[t],O,t.replace("Map",""),n)});var w=ed(x["".concat(m,"Map")]),j=P(r,t9(t9({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:g,offset:O}));return t9(t9({formattedGraphicalItems:j,graphicalItems:b,offset:O,stackGroups:g},w),x)};return e=function(t){var e;function i(t){var e,a,c,l,s;return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,i),l=i,s=[t],l=t2(l),c=function(t,e){if(e&&("object"===tK(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return t6(t)}(this,t1()?Reflect.construct(l,s||[],t2(this).constructor):l.apply(this,s)),et(t6(c),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),et(t6(c),"accessibilityManager",new tI),et(t6(c),"handleLegendBBoxUpdate",function(t){if(t){var e=c.state,n=e.dataStartIndex,r=e.dataEndIndex,i=e.updateId;c.setState(t9({legendBBox:t},A({props:c.props,dataStartIndex:n,dataEndIndex:r,updateId:i},t9(t9({},c.state),{},{legendBBox:t}))))}}),et(t6(c),"handleReceiveSyncEvent",function(t,e,n){c.props.syncId===t&&(n!==c.eventEmitterSymbol||"function"==typeof c.props.syncMethod)&&c.applySyncEvent(e)}),et(t6(c),"handleBrushChange",function(t){var e=t.startIndex,n=t.endIndex;if(e!==c.state.dataStartIndex||n!==c.state.dataEndIndex){var r=c.state.updateId;c.setState(function(){return t9({dataStartIndex:e,dataEndIndex:n},A({props:c.props,dataStartIndex:e,dataEndIndex:n,updateId:r},c.state))}),c.triggerSyncEvent({dataStartIndex:e,dataEndIndex:n})}}),et(t6(c),"handleMouseEnter",function(t){var e=c.getMouseInfo(t);if(e){var n=t9(t9({},e),{},{isTooltipActive:!0});c.setState(n),c.triggerSyncEvent(n);var r=c.props.onMouseEnter;u()(r)&&r(n,t)}}),et(t6(c),"triggeredAfterMouseMove",function(t){var e=c.getMouseInfo(t),n=e?t9(t9({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};c.setState(n),c.triggerSyncEvent(n);var r=c.props.onMouseMove;u()(r)&&r(n,t)}),et(t6(c),"handleItemMouseEnter",function(t){c.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),et(t6(c),"handleItemMouseLeave",function(){c.setState(function(){return{isTooltipActive:!1}})}),et(t6(c),"handleMouseMove",function(t){t.persist(),c.throttleTriggeredAfterMouseMove(t)}),et(t6(c),"handleMouseLeave",function(t){c.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};c.setState(e),c.triggerSyncEvent(e);var n=c.props.onMouseLeave;u()(n)&&n(e,t)}),et(t6(c),"handleOuterEvent",function(t){var e,n=(0,S.Bh)(t),r=f()(c.props,"".concat(n));n&&u()(r)&&r(null!==(e=/.*touch.*/i.test(n)?c.getMouseInfo(t.changedTouches[0]):c.getMouseInfo(t))&&void 0!==e?e:{},t)}),et(t6(c),"handleClick",function(t){var e=c.getMouseInfo(t);if(e){var n=t9(t9({},e),{},{isTooltipActive:!0});c.setState(n),c.triggerSyncEvent(n);var r=c.props.onClick;u()(r)&&r(n,t)}}),et(t6(c),"handleMouseDown",function(t){var e=c.props.onMouseDown;u()(e)&&e(c.getMouseInfo(t),t)}),et(t6(c),"handleMouseUp",function(t){var e=c.props.onMouseUp;u()(e)&&e(c.getMouseInfo(t),t)}),et(t6(c),"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),et(t6(c),"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseDown(t.changedTouches[0])}),et(t6(c),"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&c.handleMouseUp(t.changedTouches[0])}),et(t6(c),"triggerSyncEvent",function(t){void 0!==c.props.syncId&&tM.emit(tT,c.props.syncId,t,c.eventEmitterSymbol)}),et(t6(c),"applySyncEvent",function(t){var e=c.props,n=e.layout,r=e.syncMethod,i=c.state.updateId,o=t.dataStartIndex,a=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)c.setState(t9({dataStartIndex:o,dataEndIndex:a},A({props:c.props,dataStartIndex:o,dataEndIndex:a,updateId:i},c.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=c.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof r)s=r(h,t);else if("value"===r){s=-1;for(var d=0;d=0){if(s.dataKey&&!s.allowDuplicatedCategory){var T="function"==typeof s.dataKey?function(t){return"function"==typeof s.dataKey?s.dataKey(t.payload):null}:"payload.".concat(s.dataKey.toString());C=(0,k.Ap)(v,T,p),D=m&&b&&(0,k.Ap)(b,T,p)}else C=null==v?void 0:v[f],D=m&&b&&b[f];if(P||j){var _=void 0!==t.props.activeIndex?t.props.activeIndex:f;return[(0,r.cloneElement)(t,t9(t9(t9({},i.props),A),{},{activeIndex:_})),null,null]}if(!o()(C))return[M].concat(t5(c.renderActivePoints({item:i,activePoint:C,basePoint:D,childIndex:f,isRange:m})))}else{var C,D,N,I=(null!==(N=c.getItemByXY(c.state.activeCoordinate))&&void 0!==N?N:{graphicalItem:M}).graphicalItem,B=I.item,L=void 0===B?t:B,R=I.childIndex,z=t9(t9(t9({},i.props),A),{},{activeIndex:R});return[(0,r.cloneElement)(L,z),null,null]}}return m?[M,null,null]:[M,null]}),et(t6(c),"renderCustomized",function(t,e,n){return(0,r.cloneElement)(t,t9(t9({key:"recharts-customized-".concat(n)},c.props),c.state))}),et(t6(c),"renderMap",{CartesianGrid:{handler:eo,once:!0},ReferenceArea:{handler:c.renderReferenceElement},ReferenceLine:{handler:eo},ReferenceDot:{handler:c.renderReferenceElement},XAxis:{handler:eo},YAxis:{handler:eo},Brush:{handler:c.renderBrush,once:!0},Bar:{handler:c.renderGraphicChild},Line:{handler:c.renderGraphicChild},Area:{handler:c.renderGraphicChild},Radar:{handler:c.renderGraphicChild},RadialBar:{handler:c.renderGraphicChild},Scatter:{handler:c.renderGraphicChild},Pie:{handler:c.renderGraphicChild},Funnel:{handler:c.renderGraphicChild},Tooltip:{handler:c.renderCursor,once:!0},PolarGrid:{handler:c.renderPolarGrid,once:!0},PolarAngleAxis:{handler:c.renderPolarAxis},PolarRadiusAxis:{handler:c.renderPolarAxis},Customized:{handler:c.renderCustomized}}),c.clipPathId="".concat(null!==(e=t.id)&&void 0!==e?e:(0,k.EL)("recharts"),"-clip"),c.throttleTriggeredAfterMouseMove=y()(c.triggeredAfterMouseMove,null!==(a=t.throttleDelay)&&void 0!==a?a:1e3/60),c.state={},c}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&t3(t,e)}(i,t),e=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,n=t.data,r=t.height,i=t.layout,o=(0,S.sP)(e,x.u);if(o){var a=o.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length)){var u=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,c=el(this.state,n,a,u),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+r)/2,f="horizontal"===i?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find(function(t){return"Scatter"===t.item.type.name});p&&(f=t9(t9({},f),p.props.points[a].tooltipPosition),c=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:u,activePayload:c,activeCoordinate:f};this.setState(h),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin){var n,r;this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}})}return null}},{key:"componentDidUpdate",value:function(t){(0,S.rL)([(0,S.sP)(t.children,x.u)],[(0,S.sP)(this.props.children,x.u)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,S.sP)(this.props.children,x.u);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return s.indexOf(e)>=0?e:c}return c}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,n=e.getBoundingClientRect(),r=(0,V.os)(n),i={chartX:Math.round(t.pageX-r.left),chartY:Math.round(t.pageY-r.top)},o=n.width/e.offsetWidth||1,a=this.inRange(i.chartX,i.chartY,o);if(!a)return null;var u=this.state,c=u.xAxisMap,l=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&c&&l){var s=(0,k.Kt)(c).scale,f=(0,k.Kt)(l).scale,p=s&&s.invert?s.invert(i.chartX):null,h=f&&f.invert?f.invert(i.chartY):null;return t9(t9({},i),{},{xValue:p,yValue:h})}var d=es(this.state,this.props.data,this.props.layout,a);return d?t9(t9({},i),d):null}},{key:"inRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,i=t/n,o=e/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var u=this.state,c=u.angleAxisMap,l=u.radiusAxisMap;if(c&&l){var s=(0,k.Kt)(c);return(0,tA.z3)({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),n=(0,S.sP)(t,x.u),r={};return n&&"axis"===e&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),t9(t9({},(0,t_.Ym)(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){tM.on(tT,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){tM.removeListener(tT,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;it.length)&&(e=t.length);for(var n=0,r=Array(e);n=0?1:-1;"insideStart"===u?(i=b+S*l,a=O):"insideEnd"===u?(i=g-S*l,a=!O):"end"===u&&(i=g+S*l,a=O),a=j<=0?a:!a;var P=(0,d.op)(p,y,w,i),A=(0,d.op)(p,y,w,i+(a?1:-1)*359),E="M".concat(P.x,",").concat(P.y,"\n A").concat(w,",").concat(w,",0,1,").concat(a?0:1,",\n ").concat(A.x,",").concat(A.y),k=o()(t.id)?(0,h.EL)("recharts-radial-line-"):t.id;return r.createElement("text",x({},n,{dominantBaseline:"central",className:(0,s.Z)("recharts-radial-bar-label",f)}),r.createElement("defs",null,r.createElement("path",{id:k,d:E})),r.createElement("textPath",{xlinkHref:"#".concat(k)},e))},j=function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e.cx,o=e.cy,a=e.innerRadius,u=e.outerRadius,c=(e.startAngle+e.endAngle)/2;if("outside"===r){var l=(0,d.op)(i,o,u+n,c),s=l.x;return{x:s,y:l.y,textAnchor:s>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var f=(0,d.op)(i,o,(a+u)/2,c);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},S=function(t){var e=t.viewBox,n=t.parentViewBox,r=t.offset,i=t.position,o=e.x,a=e.y,u=e.width,c=e.height,s=c>=0?1:-1,f=s*r,p=s>0?"end":"start",d=s>0?"start":"end",y=u>=0?1:-1,v=y*r,m=y>0?"end":"start",b=y>0?"start":"end";if("top"===i)return g(g({},{x:o+u/2,y:a-s*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(a-n.y,0),width:u}:{});if("bottom"===i)return g(g({},{x:o+u/2,y:a+c+f,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(n.y+n.height-(a+c),0),width:u}:{});if("left"===i){var x={x:o-v,y:a+c/2,textAnchor:m,verticalAnchor:"middle"};return g(g({},x),n?{width:Math.max(x.x-n.x,0),height:c}:{})}if("right"===i){var O={x:o+u+v,y:a+c/2,textAnchor:b,verticalAnchor:"middle"};return g(g({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:c}:{})}var w=n?{width:u,height:c}:{};return"insideLeft"===i?g({x:o+v,y:a+c/2,textAnchor:b,verticalAnchor:"middle"},w):"insideRight"===i?g({x:o+u-v,y:a+c/2,textAnchor:m,verticalAnchor:"middle"},w):"insideTop"===i?g({x:o+u/2,y:a+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===i?g({x:o+u/2,y:a+c-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===i?g({x:o+v,y:a+f,textAnchor:b,verticalAnchor:d},w):"insideTopRight"===i?g({x:o+u-v,y:a+f,textAnchor:m,verticalAnchor:d},w):"insideBottomLeft"===i?g({x:o+v,y:a+c-f,textAnchor:b,verticalAnchor:p},w):"insideBottomRight"===i?g({x:o+u-v,y:a+c-f,textAnchor:m,verticalAnchor:p},w):l()(i)&&((0,h.hj)(i.x)||(0,h.hU)(i.x))&&((0,h.hj)(i.y)||(0,h.hU)(i.y))?g({x:o+(0,h.h1)(i.x,u),y:a+(0,h.h1)(i.y,c),textAnchor:"end",verticalAnchor:"end"},w):g({x:o+u/2,y:a+c/2,textAnchor:"middle",verticalAnchor:"middle"},w)};function P(t){var e,n=t.offset,i=g({offset:void 0===n?5:n},function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,v)),a=i.viewBox,c=i.position,l=i.value,d=i.children,y=i.content,m=i.className,b=i.textBreakAll;if(!a||o()(l)&&o()(d)&&!(0,r.isValidElement)(y)&&!u()(y))return null;if((0,r.isValidElement)(y))return(0,r.cloneElement)(y,i);if(u()(y)){if(e=(0,r.createElement)(y,i),(0,r.isValidElement)(e))return e}else e=O(i);var P="cx"in a&&(0,h.hj)(a.cx),A=(0,p.L6)(i,!0);if(P&&("insideStart"===c||"insideEnd"===c||"end"===c))return w(i,e,A);var E=P?j(i):S(i);return r.createElement(f.x,x({className:(0,s.Z)("recharts-label",void 0===m?"":m)},A,E,{breakAll:b}),e)}P.displayName="Label";var A=function(t){var e=t.cx,n=t.cy,r=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,u=t.radius,c=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,d=t.left,y=t.width,v=t.height,m=t.clockWise,b=t.labelViewBox;if(b)return b;if((0,h.hj)(y)&&(0,h.hj)(v)){if((0,h.hj)(s)&&(0,h.hj)(f))return{x:s,y:f,width:y,height:v};if((0,h.hj)(p)&&(0,h.hj)(d))return{x:p,y:d,width:y,height:v}}return(0,h.hj)(s)&&(0,h.hj)(f)?{x:s,y:f,width:0,height:0}:(0,h.hj)(e)&&(0,h.hj)(n)?{cx:e,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:c||0,outerRadius:l||u||a||0,clockWise:m}:t.viewBox?t.viewBox:{}};P.parseViewBox=A,P.renderCallByParent=function(t,e){var n,i,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var a=t.children,c=A(t),s=(0,p.NN)(a,P).map(function(t,n){return(0,r.cloneElement)(t,{viewBox:e||c,key:"label-".concat(n)})});return o?[(n=t.label,i=e||c,n?!0===n?r.createElement(P,{key:"label-implicit",viewBox:i}):(0,h.P2)(n)?r.createElement(P,{key:"label-implicit",viewBox:i,value:n}):(0,r.isValidElement)(n)?n.type===P?(0,r.cloneElement)(n,{key:"label-implicit",viewBox:i}):r.createElement(P,{key:"label-implicit",content:n,viewBox:i}):u()(n)?r.createElement(P,{key:"label-implicit",content:n,viewBox:i}):l()(n)?r.createElement(P,x({viewBox:i},n,{key:"label-implicit"})):null:null)].concat(function(t){if(Array.isArray(t))return m(t)}(s)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(s)||function(t,e){if(t){if("string"==typeof t)return m(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,void 0)}}(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):s}},38529:function(t,e,n){"use strict";n.d(e,{e:function(){return P}});var r=n(67294),i=n(14293),o=n.n(i),a=n(13218),u=n.n(a),c=n(23560),l=n.n(c),s=n(10928),f=n.n(s),p=n(90970),h=n(63535),d=n(97726),y=n(23078);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var m=["valueAccessor"],b=["data","dataKey","clockWise","id","textBreakAll"];function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var S=function(t){return Array.isArray(t.value)?f()(t.value):t.value};function P(t){var e=t.valueAccessor,n=void 0===e?S:e,i=j(t,m),a=i.data,u=i.dataKey,c=i.clockWise,l=i.id,s=i.textBreakAll,f=j(i,b);return a&&a.length?r.createElement(h.m,{className:"recharts-label-list"},a.map(function(t,e){var i=o()(u)?n(t,e):(0,y.F$)(t&&t.payload,u),a=o()(l)?{}:{id:"".concat(l,"-").concat(e)};return r.createElement(p._,x({},(0,d.L6)(t,!0),f,a,{parentViewBox:t.parentViewBox,value:i,textBreakAll:s,viewBox:p._.parseViewBox(o()(c)?t:w(w({},t),{},{clockWise:c})),key:"label-".concat(e),index:e}))})):null}P.displayName="LabelList",P.renderCallByParent=function(t,e){var n,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&i&&!t.label)return null;var o=t.children,a=(0,d.NN)(o,P).map(function(t,n){return(0,r.cloneElement)(t,{data:e,key:"labelList-".concat(n)})});return i?[(n=t.label)?!0===n?r.createElement(P,{key:"labelList-implicit",data:e}):r.isValidElement(n)||l()(n)?r.createElement(P,{key:"labelList-implicit",data:e,content:n}):u()(n)?r.createElement(P,x({data:e},n,{key:"labelList-implicit"})):null:null].concat(function(t){if(Array.isArray(t))return g(t)}(a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||function(t,e){if(t){if("string"==typeof t)return g(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,void 0)}}(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):a}},83948:function(t,e,n){"use strict";n.d(e,{D:function(){return N}});var r=n(67294),i=n(23560),o=n.n(i),a=n(90512),u=n(41576),c=n(43778),l=n(87045),s=n(65717);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(){return(p=Object.assign?Object.assign.bind():function(t){for(var e=1;e');var x=e.inactive?h:e.color;return r.createElement("li",p({className:b,style:y,key:"legend-item-".concat(n)},(0,s.bw)(t.props,e,n)),r.createElement(c.T,{width:i,height:i,viewBox:d,style:v},t.renderIcon(e)),r.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},l?l(g,e,n):g))})}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,i=t.align;return e&&e.length?r.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?i:"left"}},this.renderItems()):null}}],function(t,e){for(var n=0;n1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?P({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,i=r.layout,o=r.align,a=r.verticalAlign,u=r.margin,c=r.chartWidth,l=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===o?{right:u&&u.right||0}:{left:u&&u.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),P(P({},e),n)}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,i=e.width,o=e.height,a=e.wrapperStyle,u=e.payloadUniqBy,c=e.payload,l=P(P({position:"absolute",width:i||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return r.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(r.isValidElement(t))return r.cloneElement(t,e);if("function"==typeof t)return r.createElement(t,e);e.ref;var n=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(e,j);return r.createElement(g,n)}(n,P(P({},this.props),{},{payload:(0,O.z)(c,u,D)})))}}],n=[{key:"getWithHeight",value:function(t,e){var n=t.props.layout;return"vertical"===n&&(0,x.hj)(t.props.height)?{height:t.props.height}:"horizontal"===n?{width:t.props.width||e}:null}}],e&&A(i.prototype,e),n&&A(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(r.PureComponent);_(N,"displayName","Legend"),_(N,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},55341:function(t,e,n){"use strict";n.d(e,{h:function(){return y}});var r=n(90512),i=n(67294),o=n(23493),a=n.n(o),u=n(59864),c=n(85694),l=n(41576),s=n(97726);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&(t=a()(t,P,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),n=T.current.getBoundingClientRect();return I(n.width,n.height),e.observe(T.current),function(){e.disconnect()}},[I,P]);var B=(0,i.useMemo)(function(){var t=D.containerWidth,e=D.containerHeight;if(t<0||e<0)return null;(0,l.Z)((0,c.hU)(v)||(0,c.hU)(b),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",v,b),(0,l.Z)(!o||o>0,"The aspect(%s) must be greater than zero.",o);var n=(0,c.hU)(v)?t:v,r=(0,c.hU)(b)?e:b;o&&o>0&&(n?r=n/o:r&&(n=r*o),w&&r>w&&(r=w)),(0,l.Z)(n>0||r>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,r,v,b,x,O,o);var a=!Array.isArray(j)&&(0,u.isElement)(j)&&(0,s.Gf)(j.type).endsWith("Chart");return i.Children.map(j,function(t){return(0,u.isElement)(t)?(0,i.cloneElement)(t,h({width:n,height:r},a?{style:h({height:"100%",width:"100%",maxHeight:r,maxWidth:n},t.props.style)}:{})):t})},[o,j,b,w,O,x,D,v]);return i.createElement("div",{id:A?"".concat(A):void 0,className:(0,r.Z)("recharts-responsive-container",E),style:h(h({},void 0===M?{}:M),{},{width:v,height:b,minWidth:x,minHeight:O,maxHeight:w}),ref:T},B)})},16198:function(t,e,n){"use strict";n.d(e,{x:function(){return L}});var r=n(67294),i=n(14293),o=n.n(i),a=n(90512),u=n(85694),c=n(2392),l=n(97726),s=n(22461);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function M(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce(function(t,e){var o=e.word,a=e.width,u=t[t.length-1];return u&&(null==r||i||u.width+a+na||e.reduce(function(t,e){return t.width>e.width?t:e}).width>Number(r),e]},y=0,v=c.length-1,m=0;y<=v&&m<=c.length-1;){var b=Math.floor((y+v)/2),g=M(d(b-1),2),x=g[0],O=g[1],w=M(d(b),1)[0];if(x||w||(y=b+1),x&&w&&(v=b-1),!x&&w){o=O;break}m++}return o||h},N=function(t){return[{words:o()(t)?[]:t.toString().split(_)}]},I=function(t){var e=t.width,n=t.scaleToFit,r=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||n)&&!c.x.isSsr){var u=C({breakAll:o,children:r,style:i});return u?D({breakAll:o,children:r,maxLines:a,style:i},u.wordsWithComputedWidth,u.spaceWidth,e,n):N(r)}return N(r)},B="#808080",L=function(t){var e,n=t.x,i=void 0===n?0:n,o=t.y,c=void 0===o?0:o,s=t.lineHeight,f=void 0===s?"1em":s,p=t.capHeight,h=void 0===p?"0.71em":p,d=t.scaleToFit,y=void 0!==d&&d,v=t.textAnchor,m=t.verticalAnchor,b=t.fill,g=void 0===b?B:b,x=k(t,P),O=(0,r.useMemo)(function(){return I({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:y,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,y,x.style,x.width]),w=x.dx,j=x.dy,M=x.angle,T=x.className,_=x.breakAll,C=k(x,A);if(!(0,u.P2)(i)||!(0,u.P2)(c))return null;var D=i+((0,u.hj)(w)?w:0),N=c+((0,u.hj)(j)?j:0);switch(void 0===m?"end":m){case"start":e=S("calc(".concat(h,")"));break;case"middle":e=S("calc(".concat((O.length-1)/2," * -").concat(f," + (").concat(h," / 2))"));break;default:e=S("calc(".concat(O.length-1," * -").concat(f,")"))}var L=[];if(y){var R=O[0].width,z=x.width;L.push("scale(".concat(((0,u.hj)(z)?z/R:1)/R,")"))}return M&&L.push("rotate(".concat(M,", ").concat(D,", ").concat(N,")")),L.length&&(C.transform=L.join(" ")),r.createElement("text",E({},(0,l.L6)(C,!0),{x:D,y:N,className:(0,a.Z)("recharts-text",T),textAnchor:void 0===v?"start":v,fill:g.includes("url")?B:g}),O.map(function(t,n){var i=t.words.join(_?"":" ");return r.createElement("tspan",{x:D,dy:0===n?e:f,key:i},i)}))}},81659:function(t,e,n){"use strict";n.d(e,{u:function(){return Z}});var r=n(67294),i=n(89734),o=n.n(i),a=n(14293),u=n.n(a),c=n(90512),l=n(85694);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(){return(f=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);nc[r]+s?Math.max(f,c[r]):Math.max(p,c[r])}function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function S(t){for(var e=1;e1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)!==this.state.dismissedAtCoordinate.x||(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var t,e,n,i,o,a,u,s,f,p,h,d,y,v,m,w,j,P,A,E=this,k=this.props,M=k.active,T=k.allowEscapeViewBox,_=k.animationDuration,C=k.animationEasing,D=k.children,N=k.coordinate,I=k.hasPayload,B=k.isAnimationActive,L=k.offset,R=k.position,z=k.reverseDirection,$=k.useTranslate3d,U=k.viewBox,F=k.wrapperStyle,Z=(d=(t={allowEscapeViewBox:T,coordinate:N,offsetTopLeft:L,position:R,reverseDirection:z,tooltipBox:this.state.lastBoundingBox,useTranslate3d:$,viewBox:U}).allowEscapeViewBox,y=t.coordinate,v=t.offsetTopLeft,m=t.position,w=t.reverseDirection,j=t.tooltipBox,P=t.useTranslate3d,A=t.viewBox,j.height>0&&j.width>0&&y?(n=(e={translateX:p=O({allowEscapeViewBox:d,coordinate:y,key:"x",offsetTopLeft:v,position:m,reverseDirection:w,tooltipDimension:j.width,viewBox:A,viewBoxDimension:A.width}),translateY:h=O({allowEscapeViewBox:d,coordinate:y,key:"y",offsetTopLeft:v,position:m,reverseDirection:w,tooltipDimension:j.height,viewBox:A,viewBoxDimension:A.height}),useTranslate3d:P}).translateX,i=e.translateY,f={transform:e.useTranslate3d?"translate3d(".concat(n,"px, ").concat(i,"px, 0)"):"translate(".concat(n,"px, ").concat(i,"px)")}):f=x,{cssProperties:f,cssClasses:(a=(o={translateX:p,translateY:h,coordinate:y}).coordinate,u=o.translateX,s=o.translateY,(0,c.Z)(g,b(b(b(b({},"".concat(g,"-right"),(0,l.hj)(u)&&a&&(0,l.hj)(a.x)&&u>=a.x),"".concat(g,"-left"),(0,l.hj)(u)&&a&&(0,l.hj)(a.x)&&u=a.y),"".concat(g,"-top"),(0,l.hj)(s)&&a&&(0,l.hj)(a.y)&&s0;return r.createElement(_,{allowEscapeViewBox:o,animationDuration:a,animationEasing:u,isAnimationActive:f,active:i,coordinate:l,hasPayload:w,offset:p,position:y,reverseDirection:m,useTranslate3d:b,viewBox:g,wrapperStyle:x},(t=B(B({},this.props),{},{payload:O}),r.isValidElement(c)?r.cloneElement(c,t):"function"==typeof c?r.createElement(c,t):r.createElement(v,t)))}}],function(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,a),s=(0,i.Z)("recharts-layer",c);return r.createElement("g",u({className:s},(0,o.L6)(l,!0),{ref:e}),n)})},43778:function(t,e,n){"use strict";n.d(e,{T:function(){return c}});var r=n(67294),i=n(90512),o=n(97726),a=["children","width","height","viewBox","className","style","title","desc"];function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,a),y=l||{width:n,height:c,x:0,y:0},v=(0,i.Z)("recharts-surface",s);return r.createElement("svg",u({},(0,o.L6)(d,!0,"svg"),{className:v,width:n,height:c,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),r.createElement("title",null,p),r.createElement("desc",null,h),e)}},79398:function(t,e,n){"use strict";n.d(e,{br:function(){return g},CW:function(){return w},Mw:function(){return k},zn:function(){return E},sp:function(){return x},qD:function(){return A},d2:function(){return P},bH:function(){return O},Ud:function(){return S},Nf:function(){return j}});var r=n(67294),i=n(38776),o=n(13311),a=n.n(o),u=n(711),c=n.n(u),l=n(88306),s=n.n(l)()(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),f=n(85694),p=(0,r.createContext)(void 0),h=(0,r.createContext)(void 0),d=(0,r.createContext)(void 0),y=(0,r.createContext)({}),v=(0,r.createContext)(void 0),m=(0,r.createContext)(0),b=(0,r.createContext)(0),g=function(t){var e=t.state,n=e.xAxisMap,i=e.yAxisMap,o=e.offset,a=t.clipPathId,u=t.children,c=t.width,l=t.height,f=s(o);return r.createElement(p.Provider,{value:n},r.createElement(h.Provider,{value:i},r.createElement(y.Provider,{value:o},r.createElement(d.Provider,{value:f},r.createElement(v.Provider,{value:a},r.createElement(m.Provider,{value:l},r.createElement(b.Provider,{value:c},u)))))))},x=function(){return(0,r.useContext)(v)},O=function(t){var e=(0,r.useContext)(p);null!=e||(0,i.Z)(!1);var n=e[t];return null!=n||(0,i.Z)(!1),n},w=function(){var t=(0,r.useContext)(p);return(0,f.Kt)(t)},j=function(){var t=(0,r.useContext)(h);return a()(t,function(t){return c()(t.domain,Number.isFinite)})||(0,f.Kt)(t)},S=function(t){var e=(0,r.useContext)(h);null!=e||(0,i.Z)(!1);var n=e[t];return null!=n||(0,i.Z)(!1),n},P=function(){return(0,r.useContext)(d)},A=function(){return(0,r.useContext)(y)},E=function(){return(0,r.useContext)(b)},k=function(){return(0,r.useContext)(m)}},61729:function(t,e,n){"use strict";n.d(e,{H:function(){return H}});var r=n(67294);function i(){}function o(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function a(t){this._context=t}function u(t){this._context=t}function c(t){this._context=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:o(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},u.prototype={areaStart:i,areaEnd:i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class l{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function s(t){this._context=t}function f(t){this._context=t}function p(t){return new f(t)}function h(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*r)/(r+i)))||0}function d(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function y(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,a-u*n,o,a)}function v(t){this._context=t}function m(t){this._context=new b(t)}function b(t){this._context=t}function g(t){this._context=t}function x(t){var e,n,r=t.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(e=0,o[r-1]=(t[r]+i[r-1])/2;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var w=n(94788),j=n(20309),S=n(52882);function P(t){return t[0]}function A(t){return t[1]}function E(t,e){var n=(0,j.Z)(!0),r=null,i=p,o=null,a=(0,S.d)(u);function u(u){var c,l,s,f=(u=(0,w.Z)(u)).length,p=!1;for(null==r&&(o=i(s=a())),c=0;c<=f;++c)!(c=f;--p)u.point(m[p],b[p]);u.lineEnd(),u.areaEnd()}}v&&(m[s]=+t(h,s,l),b[s]=+e(h,s,l),u.point(r?+r(h,s,l):m[s],n?+n(h,s,l):b[s]))}if(d)return u=null,d+""||null}function s(){return E().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?P:(0,j.Z)(+t),e="function"==typeof e?e:void 0===e?(0,j.Z)(0):(0,j.Z)(+e),n="function"==typeof n?n:void 0===n?A:(0,j.Z)(+n),l.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,j.Z)(+e),r=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,j.Z)(+e),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:(0,j.Z)(+t),l):r},l.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,j.Z)(+t),n=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,j.Z)(+t),l):e},l.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,j.Z)(+t),l):n},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(n)},l.lineX1=function(){return s().x(r).y(e)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:(0,j.Z)(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),l):o},l}var M=n(11700),T=n.n(M),_=n(23560),C=n.n(_),D=n(90512),N=n(65717),I=n(97726),B=n(85694);function L(t){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function R(){return(R=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n=0?1:-1,c=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+u*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+c*s[0],",").concat(e)),o+="L ".concat(t+n-c*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+n,",").concat(e+u*s[1])),o+="L ".concat(t+n,",").concat(e+r-u*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+n-c*s[2],",").concat(e+r)),o+="L ".concat(t+c*s[3],",").concat(e+r),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+r-u*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(t,",").concat(e+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+c*p,",").concat(e,"\n L ").concat(t+n-c*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+n,",").concat(e+u*p,"\n L ").concat(t+n,",").concat(e+r-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+n-c*p,",").concat(e+r,"\n L ").concat(t+c*p,",").concat(e+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+r-u*p," Z")}else o="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},h=function(t,e){if(!t||!e)return!1;var n=t.x,r=t.y,i=e.x,o=e.y,a=e.width,u=e.height;return!!(Math.abs(a)>0&&Math.abs(u)>0)&&n>=Math.min(i,i+a)&&n<=Math.max(i,i+a)&&r>=Math.min(o,o+u)&&r<=Math.max(o,o+u)},d={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y=function(t){var e,n=f(f({},d),t),u=(0,r.useRef)(),s=function(t){if(Array.isArray(t))return t}(e=(0,r.useState)(-1))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,l=!1;try{for(o=(n=n.call(t)).next;!(c=(r=o.call(n)).done)&&(u.push(r.value),2!==u.length);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(e,2)||function(t,e){if(t){if("string"==typeof t)return l(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=s[0],y=s[1];(0,r.useEffect)(function(){if(u.current&&u.current.getTotalLength)try{var t=u.current.getTotalLength();t&&y(t)}catch(t){}},[]);var v=n.x,m=n.y,b=n.width,g=n.height,x=n.radius,O=n.className,w=n.animationEasing,j=n.animationDuration,S=n.animationBegin,P=n.isAnimationActive,A=n.isUpdateAnimationActive;if(v!==+v||m!==+m||b!==+b||g!==+g||0===b||0===g)return null;var E=(0,i.Z)("recharts-rectangle",O);return A?r.createElement(o.ZP,{canBegin:h>0,from:{width:b,height:g,x:v,y:m},to:{width:b,height:g,x:v,y:m},duration:j,animationEasing:w,isActive:A},function(t){var e=t.width,i=t.height,l=t.x,s=t.y;return r.createElement(o.ZP,{canBegin:h>0,from:"0px ".concat(-1===h?1:h,"px"),to:"".concat(h,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:j,isActive:P,easing:w},r.createElement("path",c({},(0,a.L6)(n,!0),{className:E,d:p(l,s,e,i,x),ref:u})))}):r.createElement("path",c({},(0,a.L6)(n,!0),{className:E,d:p(v,m,b,g,x)}))}},68416:function(t,e,n){"use strict";n.d(e,{L:function(){return v}});var r=n(67294),i=n(90512),o=n(97726),a=n(10804),u=n(85694);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;e180),",").concat(+(c>s),",\n ").concat(p.x,",").concat(p.y,"\n ");if(i>0){var d=(0,a.op)(n,r,i,c),y=(0,a.op)(n,r,i,s);h+="L ".concat(y.x,",").concat(y.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(c<=s),",\n ").concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},d=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,s=t.endAngle,f=(0,u.uY)(s-l),d=p({cx:e,cy:n,radius:i,angle:l,sign:f,cornerRadius:o,cornerIsExternal:c}),y=d.circleTangency,v=d.lineTangency,m=d.theta,b=p({cx:e,cy:n,radius:i,angle:s,sign:-f,cornerRadius:o,cornerIsExternal:c}),g=b.circleTangency,x=b.lineTangency,O=b.theta,w=c?Math.abs(l-s):Math.abs(l-s)-m-O;if(w<0)return a?"M ".concat(v.x,",").concat(v.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(-(2*o),",0\n "):h({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:l,endAngle:s});var j="M ".concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,"\n ");if(r>0){var S=p({cx:e,cy:n,radius:r,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),P=S.circleTangency,A=S.lineTangency,E=S.theta,k=p({cx:e,cy:n,radius:r,angle:s,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),M=k.circleTangency,T=k.lineTangency,_=k.theta,C=c?Math.abs(l-s):Math.abs(l-s)-E-_;if(C<0&&0===o)return"".concat(j,"L").concat(e,",").concat(n,"Z");j+="L".concat(T.x,",").concat(T.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(M.x,",").concat(M.y,"\n A").concat(r,",").concat(r,",0,").concat(+(C>180),",").concat(+(f>0),",").concat(P.x,",").concat(P.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"Z")}else j+="L".concat(e,",").concat(n,"Z");return j},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},v=function(t){var e,n=f(f({},y),t),a=n.cx,c=n.cy,s=n.innerRadius,p=n.outerRadius,v=n.cornerRadius,m=n.forceCornerRadius,b=n.cornerIsExternal,g=n.startAngle,x=n.endAngle,O=n.className;if(p0&&360>Math.abs(g-x)?d({cx:a,cy:c,innerRadius:s,outerRadius:p,cornerRadius:Math.min(S,j/2),forceCornerRadius:m,cornerIsExternal:b,startAngle:g,endAngle:x}):h({cx:a,cy:c,innerRadius:s,outerRadius:p,startAngle:g,endAngle:x}),r.createElement("path",l({},(0,o.L6)(n,!0),{className:w,d:e,role:"img"}))}},87045:function(t,e,n){"use strict";n.d(e,{v:function(){return D}});var r=n(67294),i=n(11700),o=n.n(i);let a=Math.cos,u=Math.sin,c=Math.sqrt,l=Math.PI,s=2*l;var f={draw(t,e){let n=c(e/l);t.moveTo(n,0),t.arc(0,0,n,0,s)}};let p=c(1/3),h=2*p,d=u(l/10)/u(7*l/10),y=u(s/10)*d,v=-a(s/10)*d,m=c(3),b=c(3)/2,g=1/c(12),x=(g/2+1)*3;var O=n(20309),w=n(52882);c(3),c(3);var j=n(90512),S=n(97726);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var A=["type","size","sizeType"];function E(){return(E=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,A)),{},{type:i,size:u,sizeType:l}),p=s.className,h=s.cx,d=s.cy,y=(0,S.L6)(s,!0);return h===+h&&d===+d&&u===+u?r.createElement("path",E({},y,{className:(0,j.Z)("recharts-symbols",p),transform:"translate(".concat(h,", ").concat(d,")"),d:(e=T["symbol".concat(o()(i))]||f,(function(t,e){let n=null,r=(0,w.d)(i);function i(){let i;if(n||(n=i=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return t="function"==typeof t?t:(0,O.Z)(t||f),e="function"==typeof e?e:(0,O.Z)(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:(0,O.Z)(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:(0,O.Z)(+t),i):e},i.context=function(t){return arguments.length?(n=null==t?null:t,i):n},i})().type(e).size(C(u,l,i))())})):null};D.registerSymbol=function(t,e){T["symbol".concat(o()(t))]=e}},85552:function(t,e,n){"use strict";n.d(e,{bn:function(){return C},a3:function(){return z},lT:function(){return D},V$:function(){return N},w7:function(){return I}});var r=n(67294),i=n(23560),o=n.n(i),a=n(68630),u=n.n(a),c=n(51584),l=n.n(c),s=n(18446),f=n.n(s),p=n(33377),h=n(90512),d=n(19787),y=n(97726);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(){return(m=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:l},to:{upperWidth:s,lowerWidth:f,height:p,x:c,y:l},duration:j,animationEasing:g,isActive:P},function(t){var e=t.upperWidth,o=t.lowerWidth,u=t.height,c=t.x,l=t.y;return r.createElement(d.ZP,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:j,easing:g},r.createElement("path",m({},(0,y.L6)(n,!0),{className:A,d:O(c,l,e,o,u),ref:i})))}):r.createElement("g",null,r.createElement("path",m({},(0,y.L6)(n,!0),{className:A,d:O(c,l,s,f,p)})))},S=n(68416),P=n(63535),A=n(87045),E=["option","shapeType","propTransformer","activeClassName","isActive"];function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function T(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,E);if((0,r.isValidElement)(n))e=(0,r.cloneElement)(n,T(T({},f),(0,r.isValidElement)(n)?n.props:n));else if(o()(n))e=n(f);else if(u()(n)&&!l()(n)){var p=(void 0===a?function(t,e){return T(T({},e),t)}:a)(n,f);e=r.createElement(_,{shapeType:i,elementProps:p})}else e=r.createElement(_,{shapeType:i,elementProps:f});return s?r.createElement(P.m,{className:void 0===c?"recharts-active-shape":c},e):e}function D(t,e){return null!=e&&"trapezoids"in t.props}function N(t,e){return null!=e&&"sectors"in t.props}function I(t,e){return null!=e&&"points"in t.props}function B(t,e){var n,r,i=t.x===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.x)||t.x===e.x,o=t.y===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.y)||t.y===e.y;return i&&o}function L(t,e){var n=t.endAngle===e.endAngle,r=t.startAngle===e.startAngle;return n&&r}function R(t,e){var n=t.x===e.x,r=t.y===e.y,i=t.z===e.z;return n&&r&&i}function z(t){var e,n,r,i=t.activeTooltipItem,o=t.graphicalItem,a=t.itemData,u=(D(o,i)?e="trapezoids":N(o,i)?e="sectors":I(o,i)&&(e="points"),e),c=D(o,i)?null===(n=i.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:N(o,i)?null===(r=i.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:I(o,i)?i.payload:{},l=a.filter(function(t,e){var n=f()(c,t),r=o.props[u].filter(function(t){var e;return(D(o,i)?e=B:N(o,i)?e=L:I(o,i)&&(e=R),e)(t,i)}),a=o.props[u].indexOf(r[r.length-1]);return n&&e===a});return a.indexOf(l[l.length-1])}},64243:function(t,e,n){"use strict";n.d(e,{Ky:function(){return O},O1:function(){return b},_b:function(){return g},t9:function(){return m},xE:function(){return w}});var r=n(66604),i=n.n(r),o=n(711),a=n.n(o),u=n(23078),c=n(97726),l=n(85694),s=n(64332);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){for(var n=0;n0&&(k=Math.min((t||0)-(M[e-1]||0),k))}),Number.isFinite(k)){var T=k/E,_="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=T*_/2),"no-gap"===g.padding){var C=(0,l.h1)(t.barCategoryGap,T*_),D=T*_/2;c=D-C-(D-C)/_*C}}}s="xAxis"===r?[n.left+(j.left||0)+(c||0),n.left+n.width-(j.right||0)-(c||0)]:"yAxis"===r?"horizontal"===f?[n.top+n.height-(j.bottom||0),n.top+(j.top||0)]:[n.top+(j.top||0)+(c||0),n.top+n.height-(j.bottom||0)-(c||0)]:g.range,P&&(s=[s[1],s[0]]);var N=(0,u.Hq)(g,i,m),I=N.scale,B=N.realScaleType;I.domain(O).range(s),(0,u.zF)(I);var L=(0,u.g$)(I,d(d({},g),{},{realScaleType:B}));"xAxis"===r?(b="top"===x&&!S||"bottom"===x&&S,p=n.left,h=v[A]-b*g.height):"yAxis"===r&&(b="left"===x&&!S||"right"===x&&S,p=v[A]-b*g.width,h=n.top);var R=d(d(d({},g),L),{},{realScaleType:B,x:p,y:h,scale:I,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return R.bandSize=(0,u.zT)(R,L),g.hide||"xAxis"!==r?g.hide||(v[A]+=(b?-1:1)*R.width):v[A]+=(b?-1:1)*R.height,d(d({},o),{},y({},a,R))},{})},b=function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},g=function(t){return b({x:t.x1,y:t.y1},{x:t.x2,y:t.y2})},x=function(){var t,e;function n(t){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,n),this.scale=t}return t=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=e.position;if(void 0!==t){if(r)switch(r){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}}],e=[{key:"create",value:function(t){return new n(t)}}],t&&p(n.prototype,t),e&&p(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();y(x,"EPS",1e-4);var O=function(t){var e=Object.keys(t).reduce(function(e,n){return d(d({},e),{},y({},n,x.create(t[n])))},{});return d(d({},e),{},{apply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return i()(t,function(t,n){return e[n].apply(t,{bandAware:r,position:o})})},isInRange:function(t){return a()(t,function(t,n){return e[n].isInRange(t)})}})},w=function(t){var e=t.width,n=t.height,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(r%180+180)%180*Math.PI/180,o=Math.atan(n/e);return Math.abs(i>o&&itx(e,t()).base(e.base()),tj.o.apply(e,arguments),e}},scaleOrdinal:function(){return tX.Z},scalePoint:function(){return f.x},scalePow:function(){return tQ},scaleQuantile:function(){return function t(){var e,n=[],r=[],i=[];function o(){var t=0,e=Math.max(1,r.length);for(i=Array(e-1);++t=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}(n,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:r[P(i,t)]}return a.invertExtent=function(t){var e=r.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:n[0],e=i?[o[i-1],r]:[o[e-1],o[e]]},u.unknown=function(t){return arguments.length&&(e=t),u},u.thresholds=function(){return o.slice()},u.copy=function(){return t().domain([n,r]).range(a).unknown(e)},tj.o.apply(tI(u),arguments)}},scaleRadial:function(){return function t(){var e,n=tw(),r=[0,1],i=!1;function o(t){var r,o=Math.sign(r=n(t))*Math.sqrt(Math.abs(r));return isNaN(o)?e:i?Math.round(o):o}return o.invert=function(t){return n.invert(t1(t))},o.domain=function(t){return arguments.length?(n.domain(t),o):n.domain()},o.range=function(t){return arguments.length?(n.range((r=Array.from(t,td)).map(t1)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(n.clamp(t),o):n.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(n.domain(),r).round(i).clamp(n.clamp()).unknown(e)},tj.o.apply(o,arguments),tI(o)}},scaleSequential:function(){return function t(){var e=tI(nX()(tv));return e.copy=function(){return nV(e,t())},tj.O.apply(e,arguments)}},scaleSequentialLog:function(){return function t(){var e=tW(nX()).domain([1,10]);return e.copy=function(){return nV(e,t()).base(e.base())},tj.O.apply(e,arguments)}},scaleSequentialPow:function(){return nG},scaleSequentialQuantile:function(){return function t(){var e=[],n=tv;function r(t){if(null!=t&&!isNaN(t=+t))return n((P(e,t,1)-1)/(e.length-1))}return r.domain=function(t){if(!arguments.length)return e.slice();for(let n of(e=[],t))null==n||isNaN(n=+n)||e.push(n);return e.sort(g),r},r.interpolator=function(t){return arguments.length?(n=t,r):n},r.range=function(){return e.map((t,r)=>n(r/(e.length-1)))},r.quantiles=function(t){return Array.from({length:t+1},(n,r)=>(function(t,e,n){if(!(!(r=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,void 0))).length)||isNaN(e=+e))){if(e<=0||r<2)return t6(t);if(e>=1)return t2(t);var r,i=(r-1)*e,o=Math.floor(i),a=t2((function t(e,n,r=0,i=1/0,o){if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),i=Math.floor(Math.min(e.length-1,i)),!(r<=n&&n<=i))return e;for(o=void 0===o?t3:function(t=g){if(t===g)return t3;if("function"!=typeof t)throw TypeError("compare is not a function");return(e,n)=>{let r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}(o);i>r;){if(i-r>600){let a=i-r+1,u=n-r+1,c=Math.log(a),l=.5*Math.exp(2*c/3),s=.5*Math.sqrt(c*l*(a-l)/a)*(u-a/2<0?-1:1),f=Math.max(r,Math.floor(n-u*l/a+s)),p=Math.min(i,Math.floor(n+(a-u)*l/a+s));t(e,n,f,p,o)}let a=e[n],u=r,c=i;for(t5(e,r,n),o(e[i],a)>0&&t5(e,r,i);uo(e[u],a);)++u;for(;o(e[c],a)>0;)--c}0===o(e[r],a)?t5(e,r,c):t5(e,++c,i),c<=n&&(r=c+1),n<=c&&(i=c-1)}return e})(t,o).subarray(0,o+1));return a+(t6(t.subarray(o+1))-a)*(i-o)}})(e,r/t))},r.copy=function(){return t(n).domain(e)},tj.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return nK},scaleSequentialSymlog:function(){return function t(){var e=tH(nX());return e.copy=function(){return nV(e,t()).constant(e.constant())},tj.O.apply(e,arguments)}},scaleSqrt:function(){return t0},scaleSymlog:function(){return function t(){var e=tH(tO());return e.copy=function(){return tx(e,t()).constant(e.constant())},tj.o.apply(e,arguments)}},scaleThreshold:function(){return function t(){var e,n=[.5],r=[0,1],i=1;function o(t){return null!=t&&t<=t?r[P(n,t,0,i)]:e}return o.domain=function(t){return arguments.length?(i=Math.min((n=Array.from(t)).length,r.length-1),o):n.slice()},o.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t().domain(n).range(r).unknown(e)},tj.o.apply(o,arguments)}},scaleTime:function(){return nY},scaleUtc:function(){return nH},tickFormat:function(){return tN}});var f=n(175);let p=Math.sqrt(50),h=Math.sqrt(10),d=Math.sqrt(2);function y(t,e,n){let r,i,o;let a=(e-t)/Math.max(0,n),u=Math.floor(Math.log10(a)),c=a/Math.pow(10,u),l=c>=p?10:c>=h?5:c>=d?2:1;return(u<0?(r=Math.round(t*(o=Math.pow(10,-u)/l)),i=Math.round(e*o),r/oe&&--i,o=-o):(r=Math.round(t/(o=Math.pow(10,u)*l)),i=Math.round(e/o),r*oe&&--i),i0))return[];if(t===e)return[t];let r=e=i))return[];let u=o-i+1,c=Array(u);if(r){if(a<0)for(let t=0;te?1:t>=e?0:NaN}function x(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function O(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i>>1;0>n(t[e],r)?i=e+1:o=e}while(ig(t(e),n),r=(e,n)=>t(e)-n):(e=t===g||t===x?t:w,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){let a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,i=0,o=t.length){if(i>>1;0>=n(t[e],r)?i=e+1:o=e}while(i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?W(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?W(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=D.exec(t))?new Y(e[1],e[2],e[3],1):(e=N.exec(t))?new Y(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=I.exec(t))?W(e[1],e[2],e[3],e[4]):(e=B.exec(t))?W(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=L.exec(t))?J(e[1],e[2]/100,e[3]/100,1):(e=R.exec(t))?J(e[1],e[2]/100,e[3]/100,e[4]):z.hasOwnProperty(t)?Z(z[t]):"transparent"===t?new Y(NaN,NaN,NaN,0):null}function Z(t){return new Y(t>>16&255,t>>8&255,255&t,1)}function W(t,e,n,r){return r<=0&&(t=e=n=NaN),new Y(t,e,n,r)}function q(t,e,n,r){var i;return 1==arguments.length?((i=t)instanceof k||(i=F(i)),i)?new Y((i=i.rgb()).r,i.g,i.b,i.opacity):new Y:new Y(t,e,n,null==r?1:r)}function Y(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function H(){return`#${K(this.r)}${K(this.g)}${K(this.b)}`}function X(){let t=V(this.opacity);return`${1===t?"rgb(":"rgba("}${G(this.r)}, ${G(this.g)}, ${G(this.b)}${1===t?")":`, ${t})`}`}function V(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function G(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function K(t){return((t=G(t))<16?"0":"")+t.toString(16)}function J(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new tt(t,e,n,r)}function Q(t){if(t instanceof tt)return new tt(t.h,t.s,t.l,t.opacity);if(t instanceof k||(t=F(t)),!t)return new tt;if(t instanceof tt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=e===o?(n-r)/u+(n0&&c<1?0:a,new tt(a,u,c,t.opacity)}function tt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function te(t){return(t=(t||0)%360)<0?t+360:t}function tn(t){return Math.max(0,Math.min(1,t||0))}function tr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function ti(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}A(k,F,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:$,formatHex:$,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Q(this).formatHsl()},formatRgb:U,toString:U}),A(Y,q,E(k,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new Y(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new Y(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Y(G(this.r),G(this.g),G(this.b),V(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:H,formatHex:H,formatHex8:function(){return`#${K(this.r)}${K(this.g)}${K(this.b)}${K((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:X,toString:X})),A(tt,function(t,e,n,r){return 1==arguments.length?Q(t):new tt(t,e,n,null==r?1:r)},E(k,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new tt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new tt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Y(tr(t>=240?t-240:t+120,i,r),tr(t,i,r),tr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new tt(te(this.h),tn(this.s),tn(this.l),V(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=V(this.opacity);return`${1===t?"hsl(":"hsla("}${te(this.h)}, ${100*tn(this.s)}%, ${100*tn(this.l)}%${1===t?")":`, ${t})`}`}}));var to=t=>()=>t;function ta(t,e){var n=e-t;return n?function(e){return t+e*n}:to(isNaN(t)?e:t)}var tu=function t(e){var n,r=1==(n=+(n=e))?ta:function(t,e){var r,i,o;return e-t?(r=t,i=e,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(t){return Math.pow(r+t*i,o)}):to(isNaN(t)?e:t)};function i(t,e){var n=r((t=q(t)).r,(e=q(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),a=ta(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function tc(t){return function(e){var n,r,i=e.length,o=Array(i),a=Array(i),u=Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=ru&&(a=e.slice(u,a),l[c]?l[c]+=a:l[++c]=a),(i=i[0])===(o=o[0])?l[c]?l[c]+=o:l[++c]=o:(l[++c]=null,s.push({i:c,x:tl(i,o)})),u=tf.lastIndex;return ue&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?tg:tb,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),u,c)))(t(l(e)))}return f.invert=function(n){return l(e((o||(o=r(u,a.map(t),tl)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,td),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),c=th,s()},f.clamp=function(t){return arguments.length?(l=!!t||tv,s()):l!==tv},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,s()}}function tw(){return tO()(tv,tv)}var tj=n(94182),tS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tP(t){var e;if(!(e=tS.exec(t)))throw Error("invalid format: "+t);return new tA({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function tA(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function tE(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function tk(t){return(t=tE(Math.abs(t)))?t[1]:NaN}function tM(t,e){var n=tE(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}tP.prototype=tA.prototype,tA.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var tT={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>tM(100*t,e),r:tM,s:function(t,e){var n=tE(t,e);if(!n)return t+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return a===u?i:a>u?i+Array(a-u+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+tE(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function t_(t){return t}var tC=Array.prototype.map,tD=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function tN(t,e,n,r){var i,u,c=b(t,e,n);switch((r=tP(null==r?",f":r)).type){case"s":var l=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(u=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tk(l)/3)))-tk(Math.abs(c))))||(r.precision=u),a(r,l);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(u=Math.max(0,tk(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(i=Math.abs(i=c)))-tk(i))+1)||(r.precision=u-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(u=Math.max(0,-tk(Math.abs(c))))||(r.precision=u-("%"===r.type)*2)}return o(r)}function tI(t){var e=t.domain;return t.ticks=function(t){var n=e();return v(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return tN(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,u=o.length-1,c=o[a],l=o[u],s=10;for(l0;){if((i=m(c,l,n))===r)return o[a]=c,o[u]=l,e(o);if(i>0)c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i;else if(i<0)c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i;else break;r=i}return t},t}function tB(){var t=tw();return t.copy=function(){return tx(t,tB())},tj.o.apply(t,arguments),tI(t)}function tL(t,e){t=t.slice();var n,r=0,i=t.length-1,o=t[r],a=t[i];return a-t(-e,n)}function tW(t){let e,n;let r=t(tR,tz),i=r.domain,a=10;function u(){var o,u;return e=(o=a)===Math.E?Math.log:10===o&&Math.log10||2===o&&Math.log2||(o=Math.log(o),t=>Math.log(t)/o),n=10===(u=a)?tF:u===Math.E?Math.exp:t=>Math.pow(u,t),i()[0]<0?(e=tZ(e),n=tZ(n),t(t$,tU)):t(tR,tz),r}return r.base=function(t){return arguments.length?(a=+t,u()):a},r.domain=function(t){return arguments.length?(i(t),u()):i()},r.ticks=t=>{let r,o;let u=i(),c=u[0],l=u[u.length-1],s=l0){for(;f<=p;++f)for(r=1;rl)break;d.push(o)}}else for(;f<=p;++f)for(r=a-1;r>=1;--r)if(!((o=f>0?r/n(-f):r*n(f))l)break;d.push(o)}2*d.length{if(null==t&&(t=10),null==i&&(i=10===a?"s":","),"function"!=typeof i&&(a%1||null!=(i=tP(i)).precision||(i.trim=!0),i=o(i)),t===1/0)return i;let u=Math.max(1,a*t/r.ticks().length);return t=>{let r=t/n(Math.round(e(t)));return r*ai(tL(i(),{floor:t=>n(Math.floor(e(t))),ceil:t=>n(Math.ceil(e(t)))})),r}function tq(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function tY(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function tH(t){var e=1,n=t(tq(1),tY(e));return n.constant=function(n){return arguments.length?t(tq(e=+n),tY(e)):e},tI(n)}o=(i=function(t){var e,n,i,o=void 0===t.grouping||void 0===t.thousands?t_:(e=tC.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=e[a=(a+1)%e.length];return o.reverse().join(n)}),a=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",c=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?t_:(i=tC.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return i[+t]})}),s=void 0===t.percent?"%":t.percent+"",f=void 0===t.minus?"−":t.minus+"",p=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=tP(t)).fill,n=t.align,i=t.sign,h=t.symbol,d=t.zero,y=t.width,v=t.comma,m=t.precision,b=t.trim,g=t.type;"n"===g?(v=!0,g="g"):tT[g]||(void 0===m&&(m=12),b=!0,g="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var x="$"===h?a:"#"===h&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",O="$"===h?u:/[%p]/.test(g)?s:"",w=tT[g],j=/[defgprs%]/.test(g);function S(t){var a,u,s,h=x,S=O;if("c"===g)S=w(t)+S,t="";else{var P=(t=+t)<0||1/t<0;if(t=isNaN(t)?p:w(Math.abs(t),m),b&&(t=function(t){e:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),P&&0==+t&&"+"!==i&&(P=!1),h=(P?"("===i?i:f:"-"===i||"("===i?"":i)+h,S=("s"===g?tD[8+r/3]:"")+S+(P&&"("===i?")":""),j){for(a=-1,u=t.length;++a(s=t.charCodeAt(a))||s>57){S=(46===s?c+t.slice(a+1):t.slice(a))+S,t=t.slice(0,a);break}}}v&&!d&&(t=o(t,1/0));var A=h.length+t.length+S.length,E=A>1)+h+t+S+E.slice(A);break;default:t=E+h+t+S}return l(t)}return m=void 0===m?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return t+""},S}return{format:h,formatPrefix:function(t,e){var n=h(((t=tP(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(tk(e)/3))),i=Math.pow(10,-r),o=tD[8+r/3];return function(t){return n(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix;var tX=n(46244);function tV(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function tG(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function tK(t){return t<0?-t*t:t*t}function tJ(t){var e=t(tv,tv),n=1;return e.exponent=function(e){return arguments.length?1==(n=+e)?t(tv,tv):.5===n?t(tG,tK):t(tV(n),tV(1/n)):n},tI(e)}function tQ(){var t=tJ(tO());return t.copy=function(){return tx(t,tQ()).exponent(t.exponent())},tj.o.apply(t,arguments),t}function t0(){return tQ.apply(null,arguments).exponent(.5)}function t1(t){return Math.sign(t)*t*t}function t2(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n=i)&&(n=i)}return n}function t6(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function t3(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(te?1:0)}function t5(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}let t4=new Date,t7=new Date;function t8(t,e,n,r){function i(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{let e=i(t),n=i.ceil(t);return t-e(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,o)=>{let a;let u=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n0))return u;do u.push(a=new Date(+n)),e(n,o),t(n);while(at8(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,r)=>{if(t>=t){if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}}),n&&(i.count=(e,r)=>(t4.setTime(+e),t7.setTime(+r),t(t4),t(t7),Math.floor(n(t4,t7))),i.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null),i}let t9=t8(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);t9.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?t8(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):t9:null,t9.range;let et=t8(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());et.range;let ee=t8(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());ee.range;let en=t8(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());en.range;let er=t8(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());er.range;let ei=t8(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());ei.range;let eo=t8(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);eo.range;let ea=t8(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);ea.range;let eu=t8(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function ec(t){return t8(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}eu.range;let el=ec(0),es=ec(1),ef=ec(2),ep=ec(3),eh=ec(4),ed=ec(5),ey=ec(6);function ev(t){return t8(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}el.range,es.range,ef.range,ep.range,eh.range,ed.range,ey.range;let em=ev(0),eb=ev(1),eg=ev(2),ex=ev(3),eO=ev(4),ew=ev(5),ej=ev(6);em.range,eb.range,eg.range,ex.range,eO.range,ew.range,ej.range;let eS=t8(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());eS.range;let eP=t8(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());eP.range;let eA=t8(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());eA.every=t=>isFinite(t=Math.floor(t))&&t>0?t8(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null,eA.range;let eE=t8(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function ek(t,e,n,r,i,o){let a=[[et,1,1e3],[et,5,5e3],[et,15,15e3],[et,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function u(e,n,r){let i=Math.abs(n-e)/r,o=O(([,,t])=>t).right(a,i);if(o===a.length)return t.every(b(e/31536e6,n/31536e6,r));if(0===o)return t9.every(Math.max(b(e,n,r),1));let[u,c]=a[i/a[o-1][2]isFinite(t=Math.floor(t))&&t>0?t8(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null,eE.range;let[eM,eT]=ek(eE,eP,em,eu,ei,en),[e_,eC]=ek(eA,eS,el,eo,er,ee);function eD(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function eN(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function eI(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var eB={"-":"",_:" ",0:"0"},eL=/^\s*\d+/,eR=/^%/,ez=/[\\^$*+?|[\]().{}]/g;function e$(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o[t.toLowerCase(),e]))}function eW(t,e,n){var r=eL.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function eq(t,e,n){var r=eL.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function eY(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function eH(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function eX(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function eV(t,e,n){var r=eL.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function eG(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function eK(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function eJ(t,e,n){var r=eL.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function eQ(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function e0(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function e1(t,e,n){var r=eL.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function e2(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function e6(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function e3(t,e,n){var r=eL.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function e5(t,e,n){var r=eL.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function e4(t,e,n){var r=eL.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function e7(t,e,n){var r=eR.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function e8(t,e,n){var r=eL.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function e9(t,e,n){var r=eL.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function nt(t,e){return e$(t.getDate(),e,2)}function ne(t,e){return e$(t.getHours(),e,2)}function nn(t,e){return e$(t.getHours()%12||12,e,2)}function nr(t,e){return e$(1+eo.count(eA(t),t),e,3)}function ni(t,e){return e$(t.getMilliseconds(),e,3)}function no(t,e){return ni(t,e)+"000"}function na(t,e){return e$(t.getMonth()+1,e,2)}function nu(t,e){return e$(t.getMinutes(),e,2)}function nc(t,e){return e$(t.getSeconds(),e,2)}function nl(t){var e=t.getDay();return 0===e?7:e}function ns(t,e){return e$(el.count(eA(t)-1,t),e,2)}function nf(t){var e=t.getDay();return e>=4||0===e?eh(t):eh.ceil(t)}function np(t,e){return t=nf(t),e$(eh.count(eA(t),t)+(4===eA(t).getDay()),e,2)}function nh(t){return t.getDay()}function nd(t,e){return e$(es.count(eA(t)-1,t),e,2)}function ny(t,e){return e$(t.getFullYear()%100,e,2)}function nv(t,e){return e$((t=nf(t)).getFullYear()%100,e,2)}function nm(t,e){return e$(t.getFullYear()%1e4,e,4)}function nb(t,e){var n=t.getDay();return e$((t=n>=4||0===n?eh(t):eh.ceil(t)).getFullYear()%1e4,e,4)}function ng(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+e$(e/60|0,"0",2)+e$(e%60,"0",2)}function nx(t,e){return e$(t.getUTCDate(),e,2)}function nO(t,e){return e$(t.getUTCHours(),e,2)}function nw(t,e){return e$(t.getUTCHours()%12||12,e,2)}function nj(t,e){return e$(1+ea.count(eE(t),t),e,3)}function nS(t,e){return e$(t.getUTCMilliseconds(),e,3)}function nP(t,e){return nS(t,e)+"000"}function nA(t,e){return e$(t.getUTCMonth()+1,e,2)}function nE(t,e){return e$(t.getUTCMinutes(),e,2)}function nk(t,e){return e$(t.getUTCSeconds(),e,2)}function nM(t){var e=t.getUTCDay();return 0===e?7:e}function nT(t,e){return e$(em.count(eE(t)-1,t),e,2)}function n_(t){var e=t.getUTCDay();return e>=4||0===e?eO(t):eO.ceil(t)}function nC(t,e){return t=n_(t),e$(eO.count(eE(t),t)+(4===eE(t).getUTCDay()),e,2)}function nD(t){return t.getUTCDay()}function nN(t,e){return e$(eb.count(eE(t)-1,t),e,2)}function nI(t,e){return e$(t.getUTCFullYear()%100,e,2)}function nB(t,e){return e$((t=n_(t)).getUTCFullYear()%100,e,2)}function nL(t,e){return e$(t.getUTCFullYear()%1e4,e,4)}function nR(t,e){var n=t.getUTCDay();return e$((t=n>=4||0===n?eO(t):eO.ceil(t)).getUTCFullYear()%1e4,e,4)}function nz(){return"+0000"}function n$(){return"%"}function nU(t){return+t}function nF(t){return Math.floor(+t/1e3)}function nZ(t){return new Date(t)}function nW(t){return t instanceof Date?+t:+new Date(+t)}function nq(t,e,n,r,i,o,a,u,c,l){var s=tw(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),b=l("%b %d"),g=l("%B"),x=l("%Y");function O(t){return(c(t)1)for(var n,r,i,o=1,a=t[e[0]],u=a.length;o=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:nU,s:nF,S:nc,u:nl,U:ns,V:np,w:nh,W:nd,x:null,X:null,y:ny,Y:nm,Z:ng,"%":n$},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:nx,e:nx,f:nP,g:nB,G:nR,H:nO,I:nw,j:nj,L:nS,m:nA,M:nE,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:nU,s:nF,S:nk,u:nM,U:nT,V:nC,w:nD,W:nN,x:null,X:null,y:nI,Y:nL,Z:nz,"%":n$},O={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return S(t,e,n,r)},d:e0,e:e0,f:e4,g:eG,G:eV,H:e2,I:e2,j:e1,L:e5,m:eQ,M:e6,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=s.get(r[0].toLowerCase()),n+r[0].length):-1},q:eJ,Q:e8,s:e9,S:e3,u:eq,U:eY,V:eH,w:eW,W:eX,x:function(t,e,r){return S(t,n,e,r)},X:function(t,e,n){return S(t,r,e,n)},y:eG,Y:eV,Z:eK,"%":e7};function w(t,e){return function(n){var r,i,o,a=[],u=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=eN(eI(o.y,0,1))).getUTCDay())>4||0===i?eb.ceil(r):eb(r),r=ea.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=eD(eI(o.y,0,1))).getDay())>4||0===i?es.ceil(r):es(r),r=eo.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?eN(eI(o.y,0,1)).getUTCDay():eD(eI(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,eN(o)):eD(o)}}function S(t,e,n,r){for(var i,o,a=0,u=e.length,c=n.length;a=c)return -1;if(37===(i=e.charCodeAt(a++))){if(!(o=O[(i=e.charAt(a++))in eB?e.charAt(a++):i])||(r=o(t,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return g.x=w(n,g),g.X=w(r,g),g.c=w(e,g),x.x=w(n,x),x.X=w(r,x),x.c=w(e,x),{format:function(t){var e=w(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=j(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=j(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,u.parse,l=u.utcFormat,u.utcParse;var n2=n(94788),n6=n(20309);function n3(t){for(var e=t.length,n=Array(e);--e>=0;)n[e]=e;return n}function n5(t,e){return t[e]}function n4(t){let e=[];return e.key=t,e}var n7=n(6162),n8=n.n(n7),n9=n(53632),rt=n.n(n9),re=n(14293),rn=n.n(re),rr=n(23560),ri=n.n(rr),ro=n(47037),ra=n.n(ro),ru=n(27361),rc=n.n(ru),rl=n(94654),rs=n.n(rl),rf=n(7654),rp=n.n(rf),rh=n(11700),rd=n.n(rh),ry=n(18446),rv=n.n(ry),rm=n(89734),rb=n.n(rm),rg=n(29887),rx=n.n(rg);function rO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=e?n.apply(void 0,i):t(e-a,rP(function(){for(var t=arguments.length,e=Array(t),r=0;rt.length)&&(e=t.length);for(var n=0,r=Array(e);nr&&(i=r,o=n),[i,o]}function rR(t,e,n){if(t.lte(0))return new(rx())(0);var r=rC.getDigitCount(t.toNumber()),i=new(rx())(10).pow(r),o=t.div(i),a=1!==r?.05:.1,u=new(rx())(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return e?u:new(rx())(Math.ceil(u))}function rz(t,e,n){var r=1,i=new(rx())(t);if(!i.isint()&&n){var o=Math.abs(t);o<1?(r=new(rx())(10).pow(rC.getDigitCount(t)-1),i=new(rx())(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new(rx())(Math.floor(t)))}else 0===t?i=new(rx())(Math.floor((e-1)/2)):n||(i=new(rx())(Math.floor(t)));var a=Math.floor((e-1)/2);return rM(rk(function(t){return i.add(new(rx())(t-a).mul(r)).toNumber()}),rE)(0,e)}var r$=r_(function(t){var e=rN(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(i,2),u=rN(rL([n,r]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var s=l===1/0?[c].concat(rD(rE(0,i-1).map(function(){return 1/0}))):[].concat(rD(rE(0,i-1).map(function(){return-1/0})),[l]);return n>r?rT(s):s}if(c===l)return rz(c,i,o);var f=function t(e,n,r,i){var o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-e)/(r-1)))return{step:new(rx())(0),tickMin:new(rx())(0),tickMax:new(rx())(0)};var u=rR(new(rx())(n).sub(e).div(r-1),i,a),c=Math.ceil((o=e<=0&&n>=0?new(rx())(0):(o=new(rx())(e).add(n).div(2)).sub(new(rx())(o).mod(u))).sub(e).div(u).toNumber()),l=Math.ceil(new(rx())(n).sub(o).div(u).toNumber()),s=c+l+1;return s>r?t(e,n,r,i,a+1):(s0?l+(r-s):l,c=n>0?c:c+(r-s)),{step:u,tickMin:o.sub(new(rx())(c).mul(u)),tickMax:o.add(new(rx())(l).mul(u))})}(c,l,a,o),p=f.step,h=f.tickMin,d=f.tickMax,y=rC.rangeStep(h,d.add(new(rx())(.1).mul(p)),p);return n>r?rT(y):y});r_(function(t){var e=rN(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(i,2),u=rN(rL([n,r]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[n,r];if(c===l)return rz(c,i,o);var s=rR(new(rx())(l).sub(c).div(a-1),o,0),f=rM(rk(function(t){return new(rx())(c).add(new(rx())(t).mul(s)).toNumber()}),rE)(0,a).filter(function(t){return t>=c&&t<=l});return n>r?rT(f):f});var rU=r_(function(t,e){var n=rN(t,2),r=n[0],i=n[1],o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=rN(rL([r,i]),2),u=a[0],c=a[1];if(u===-1/0||c===1/0)return[r,i];if(u===c)return[u];var l=rR(new(rx())(c).sub(u).div(Math.max(e,2)-1),o,0),s=[].concat(rD(rC.rangeStep(new(rx())(u),new(rx())(c).sub(new(rx())(.99).mul(l)),l)),[c]);return r>i?rT(s):s}),rF=n(66342),rZ=n(85694),rW=n(97726),rq=n(56542);function rY(t){return(rY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rH(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function rX(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==n?void 0:n.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&1e-6>=Math.abs(Math.abs(i.range[1]-i.range[0])-360))for(var u=i.range,c=0;c0?r[c-1].coordinate:r[a-1].coordinate,s=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,p=void 0;if((0,rZ.uY)(s-l)!==(0,rZ.uY)(f-s)){var h=[];if((0,rZ.uY)(f-s)===(0,rZ.uY)(u[1]-u[0])){p=f;var d=s+u[1]-u[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+u[1]-u[0];h[0]=Math.min(s,(y+s)/2),h[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){o=r[c].index;break}}else{var m=Math.min(l,f),b=Math.max(l,f);if(t>(m+s)/2&&t<=(b+s)/2){o=r[c].index;break}}}else for(var g=0;g0&&g(n[g].coordinate+n[g-1].coordinate)/2&&t<=(n[g].coordinate+n[g+1].coordinate)/2||g===a-1&&t>(n[g].coordinate+n[g-1].coordinate)/2){o=n[g].index;break}return o},r1=function(t){var e,n=t.type.displayName,r=t.props,i=r.stroke,o=r.fill;switch(n){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},r2=function(t){var e=t.barSize,n=t.totalSize,r=t.stackGroups,i=void 0===r?{}:r;if(!i)return{};for(var o={},a=Object.keys(i),u=0,c=a.length;u=0});if(v&&v.length){var m=v[0].props.barSize,b=v[0].props[y];o[b]||(o[b]=[]);var g=rn()(m)?e:m;o[b].push({item:v[0],stackList:v.slice(1),barSize:rn()(g)?void 0:(0,rZ.h1)(g,n,0)})}}return o},r6=function(t){var e,n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=void 0===o?[]:o,u=t.maxBarSize,c=a.length;if(c<1)return null;var l=(0,rZ.h1)(n,i,0,!0),s=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=i/c,h=a.reduce(function(t,e){return t+e.barSize||0},0);(h+=(c-1)*l)>=i&&(h-=(c-1)*l,l=0),h>=i&&p>0&&(f=!0,p*=.9,h=c*p);var d={offset:((i-h)/2>>0)-l,size:0};e=a.reduce(function(t,e){var n={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},r=[].concat(rG(t),[n]);return d=r[r.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){r.push({item:t,position:d})}),r},s)}else{var y=(0,rZ.h1)(r,i,0,!0);i-2*y-(c-1)*l<=0&&(l=0);var v=(i-2*y-(c-1)*l)/c;v>1&&(v>>=0);var m=u===+u?Math.min(v,u):v;e=a.reduce(function(t,e,n){var r=[].concat(rG(t),[{item:e.item,position:{offset:y+(v+l)*n+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){r.push({item:t,position:r[r.length-1].position})}),r},s)}return e},r3=function(t,e,n,r){var i=n.children,o=n.width,a=n.margin,u=o-(a.left||0)-(a.right||0),c=(0,rq.z)({children:i,legendWidth:u});if(c){var l=r||{},s=l.width,f=l.height,p=c.align,h=c.verticalAlign,d=c.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&(0,rZ.hj)(t[p]))return rX(rX({},t),{},rV({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&(0,rZ.hj)(t[h]))return rX(rX({},t),{},rV({},h,t[h]+(f||0)))}return t},r5=function(t,e,n,r,i){var o=e.props.children,a=(0,rW.NN)(o,rF.W).filter(function(t){var e;return e=t.props.direction,!!rn()(i)||("horizontal"===r?"yAxis"===i:"vertical"===r||"x"===e?"xAxis"===i:"y"!==e||"yAxis"===i)});if(a&&a.length){var u=a.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var r=rJ(e,n);if(rn()(r))return t;var i=Array.isArray(r)?[rt()(r),n8()(r)]:[r,r],o=u.reduce(function(t,n){var r=rJ(e,n,0),o=i[0]-Math.abs(Array.isArray(r)?r[0]:r),a=i[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(o,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]},[1/0,-1/0])}return null},r4=function(t,e,n,r,i){var o=e.map(function(e){return r5(t,e,n,i,r)}).filter(function(t){return!rn()(t)});return o&&o.length?o.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null},r7=function(t,e,n,r,i){var o=e.map(function(e){var o=e.props.dataKey;return"number"===n&&o&&r5(t,e,o,r)||rQ(t,o,n,i)});if("number"===n)return o.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var a={};return o.reduce(function(t,e){for(var n=0,r=e.length;n=2?2*(0,rZ.uY)(a[0]-a[1])*c:c,e&&(t.ticks||t.niceTicks))?(t.ticks||t.niceTicks).map(function(t){return{coordinate:r(i?i.indexOf(t):t)+c,value:t,offset:c}}).filter(function(t){return!rp()(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:r(t)+c,value:t,index:e,offset:c}}):r.ticks&&!n?r.ticks(t.tickCount).map(function(t){return{coordinate:r(t)+c,value:t,offset:c}}):r.domain().map(function(t,e){return{coordinate:r(t)+c,value:i?i[t]:t,index:e,offset:c}})},ie=new WeakMap,ir=function(t,e){if("function"!=typeof e)return t;ie.has(t)||ie.set(t,new WeakMap);var n=ie.get(t);if(n.has(e))return n.get(e);var r=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return n.set(e,r),r},ii=function(t,e,n){var r=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===r)return"radial"===o&&"radiusAxis"===a?{scale:f.Z(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:tB(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!n)?{scale:f.x(),realScaleType:"point"}:"category"===i?{scale:f.Z(),realScaleType:"band"}:{scale:tB(),realScaleType:"linear"};if(ra()(r)){var u="scale".concat(rd()(r));return{scale:(s[u]||f.x)(),realScaleType:s[u]?u:"point"}}return ri()(r)?{scale:r}:{scale:f.x(),realScaleType:"point"}},io=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=t(e[0]),u=t(e[n-1]);(ao||uo)&&t.domain([e[0],e[n-1]])}},ia=function(t,e){if(!t)return null;for(var n=0,r=t.length;nr)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]=0?(t[a][n][0]=i,t[a][n][1]=i+u,i=t[a][n][1]):(t[a][n][0]=o,t[a][n][1]=o+u,o=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o0){for(var n,r=0,i=t[e[0]],o=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a=0?(t[o][n][0]=i,t[o][n][1]=i+a,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}}},il=function(t,e,n){var r=e.map(function(t){return t.props.dataKey}),i=ic[n];return(function(){var t=(0,n6.Z)([]),e=n3,n=n1,r=n5;function i(i){var o,a,u=Array.from(t.apply(this,arguments),n4),c=u.length,l=-1;for(let t of i)for(o=0,++l;o=0?0:i<0?i:r}return n[0]},iv=function(t,e){var n=t.props.stackId;if((0,rZ.P2)(n)){var r=e[n];if(r){var i=r.items.indexOf(t);return i>=0?r.stackedData[i]:null}}return null},im=function(t,e,n){return Object.keys(t).reduce(function(r,i){var o=t[i].stackedData.reduce(function(t,r){var i=r.slice(e,n+1).reduce(function(t,e){return[rt()(e.concat([t[0]]).filter(rZ.hj)),n8()(e.concat([t[1]]).filter(rZ.hj))]},[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]).map(function(t){return t===1/0||t===-1/0?0:t})},ib=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ig=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ix=function(t,e,n){if(ri()(t))return t(e,n);if(!Array.isArray(t))return e;var r=[];if((0,rZ.hj)(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(ib.test(t[0])){var i=+ib.exec(t[0])[1];r[0]=e[0]-i}else ri()(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if((0,rZ.hj)(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if(ig.test(t[1])){var o=+ig.exec(t[1])[1];r[1]=e[1]+o}else ri()(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},iO=function(t,e,n){if(t&&t.scale&&t.scale.bandwidth){var r=t.scale.bandwidth();if(!n||r>0)return r}if(t&&e&&e.length>=2){for(var i=rb()(e,function(t){return t.coordinate}),o=1/0,a=1,u=i.length;a1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||r.x.isSsr)return{width:0,height:0};var i=(Object.keys(e=a({},n)).forEach(function(t){e[t]||delete e[t]}),e),o=JSON.stringify({text:t,copyStyle:i});if(u.widthCache[o])return u.widthCache[o];try{var s=document.getElementById(l);s||((s=document.createElement("span")).setAttribute("id",l),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var f=a(a({},c),i);Object.assign(s.style,f),s.textContent="".concat(t);var p=s.getBoundingClientRect(),h={width:p.width,height:p.height};return u.widthCache[o]=h,++u.cacheCount>2e3&&(u.cacheCount=0,u.widthCache={}),h}catch(t){return{width:0,height:0}}},f=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}}},85694:function(t,e,n){"use strict";n.d(e,{Ap:function(){return O},EL:function(){return v},Kt:function(){return b},P2:function(){return d},bv:function(){return g},h1:function(){return m},hU:function(){return p},hj:function(){return h},k4:function(){return x},uY:function(){return f}});var r=n(47037),i=n.n(r),o=n(7654),a=n.n(o),u=n(27361),c=n.n(u),l=n(81763),s=n.n(l),f=function(t){return 0===t?0:t>0?1:-1},p=function(t){return i()(t)&&t.indexOf("%")===t.length-1},h=function(t){return s()(t)&&!a()(t)},d=function(t){return h(t)||i()(t)},y=0,v=function(t){var e=++y;return"".concat(t||"").concat(e)},m=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!h(t)&&!i()(t))return r;if(p(t)){var u=t.indexOf("%");n=e*parseFloat(t.slice(0,u))/100}else n=+t;return a()(n)&&(n=r),o&&n>e&&(n=e),n},b=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},g=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,n={},r=0;r2?n-2:0),i=2;io&&(u=2*Math.PI-u),{radius:a,angle:180*u/Math.PI,angleInRadian:u}},s=function(t){var e=t.startAngle,n=t.endAngle,r=Math.min(Math.floor(e/360),Math.floor(n/360));return{startAngle:e-360*r,endAngle:n-360*r}},f=function(t,e){var n,r=l({x:t.x,y:t.y},e),i=r.radius,a=r.angle,u=e.innerRadius,c=e.outerRadius;if(ic)return!1;if(0===i)return!0;var f=s(e),p=f.startAngle,h=f.endAngle,d=a;if(p<=h){for(;d>h;)d-=360;for(;d=p&&d<=h}else{for(;d>p;)d-=360;for(;d=h&&d<=p}return n?o(o({},e),{},{radius:i,angle:d+360*Math.min(Math.floor(e.startAngle/360),Math.floor(e.endAngle/360))}):null}},97726:function(t,e,n){"use strict";n.d(e,{$R:function(){return R},$k:function(){return _},Bh:function(){return L},Gf:function(){return j},L6:function(){return D},NN:function(){return E},TT:function(){return M},eu:function(){return B},rL:function(){return N},sP:function(){return k}});var r=n(27361),i=n.n(r),o=n(14293),a=n.n(o),u=n(47037),c=n.n(u),l=n(23560),s=n.n(l),f=n(13218),p=n.n(f),h=n(67294),d=n(59864),y=n(85694),v=n(77723),m=n(65717),b=["children"],g=["children"];function x(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var w={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},j=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},S=null,P=null,A=function t(e){if(e===S&&Array.isArray(P))return P;var n=[];return h.Children.forEach(e,function(e){a()(e)||((0,d.isFragment)(e)?n=n.concat(t(e.props.children)):n.push(e))}),P=n,S=e,n};function E(t,e){var n=[],r=[];return r=Array.isArray(e)?e.map(function(t){return j(t)}):[j(e)],A(t).forEach(function(t){var e=i()(t,"type.displayName")||i()(t,"type.name");-1!==r.indexOf(e)&&n.push(t)}),n}function k(t,e){var n=E(t,e);return n&&n[0]}var M=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!!(0,y.hj)(n)&&!(n<=0)&&!!(0,y.hj)(r)&&!(r<=0)},T=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],_=function(t){return t&&"object"===O(t)&&"cx"in t&&"cy"in t&&"r"in t},C=function(t,e,n,r){var i,o=null!==(i=null===m.ry||void 0===m.ry?void 0:m.ry[r])&&void 0!==i?i:[];return!s()(t)&&(r&&o.includes(e)||m.Yh.includes(e))||n&&m.nv.includes(e)},D=function(t,e,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,h.isValidElement)(t)&&(r=t.props),!p()(r))return null;var i={};return Object.keys(r).forEach(function(t){var o;C(null===(o=r)||void 0===o?void 0:o[t],t,e,n)&&(i[t]=r[t])}),i},N=function t(e,n){if(e===n)return!0;var r=h.Children.count(e);if(r!==h.Children.count(n))return!1;if(0===r)return!0;if(1===r)return I(Array.isArray(e)?e[0]:e,Array.isArray(n)?n[0]:n);for(var i=0;i=0)n.push(t);else if(t){var o=j(t.type),a=e[o]||{},u=a.handler,l=a.once;if(u&&(!l||!r[o])){var s=u(t,o,i);n.push(s),r[o]=!0}}}),n},L=function(t){var e=t&&t.type;return e&&w[e]?w[e]:null},R=function(t,e){return A(e).indexOf(t)}},77723:function(t,e,n){"use strict";function r(t,e){for(var n in t)if(({}).hasOwnProperty.call(t,n)&&(!({}).hasOwnProperty.call(e,n)||t[n]!==e[n]))return!1;for(var r in e)if(({}).hasOwnProperty.call(e,r)&&!({}).hasOwnProperty.call(t,r))return!1;return!0}n.d(e,{w:function(){return r}})},56542:function(t,e,n){"use strict";n.d(e,{z:function(){return l}});var r=n(83948),i=n(23078),o=n(97726);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t){for(var e=1;e0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function b(t,e){return h(t.getTime(),e.getTime())}function g(t,e,n){if(t.size!==e.size)return!1;for(var r,i,o={},a=t.entries(),u=0;(r=a.next())&&!r.done;){for(var c=e.entries(),l=!1,s=0;(i=c.next())&&!i.done;){var f=r.value,p=f[0],h=f[1],d=i.value,y=d[0],v=d[1];!l&&!o[s]&&(l=n.equals(p,y,u,s,t,e,n)&&n.equals(h,v,p,y,t,e,n))&&(o[s]=!0),s++}if(!l)return!1;u++}return!0}function x(t,e,n){var r,i=v(t),o=i.length;if(v(e).length!==o)return!1;for(;o-- >0;)if((r=i[o])===d&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!p(e,r)||!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function O(t,e,n){var r,i,o,a=f(t),u=a.length;if(f(e).length!==u)return!1;for(;u-- >0;)if((r=a[u])===d&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!p(e,r)||!n.equals(t[r],e[r],r,r,t,e,n)||(i=y(t,r),o=y(e,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable)))return!1;return!0}function w(t,e){return h(t.valueOf(),e.valueOf())}function j(t,e){return t.source===e.source&&t.flags===e.flags}function S(t,e,n){if(t.size!==e.size)return!1;for(var r,i,o={},a=t.values();(r=a.next())&&!r.done;){for(var u=e.values(),c=!1,l=0;(i=u.next())&&!i.done;)!c&&!o[l]&&(c=n.equals(r.value,i.value,r.value,i.value,t,e,n))&&(o[l]=!0),l++;if(!c)return!1}return!0}function P(t,e){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}var A=Array.isArray,E="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,k=Object.assign,M=Object.prototype.toString.call.bind(Object.prototype.toString),T=_();function _(t){void 0===t&&(t={});var e,n,r,i,o,a,u,c,f,p=t.circular,h=t.createInternalComparator,d=t.createState,y=t.strict,v=(n=(e=function(t){var e=t.circular,n=t.createCustomConfig,r=t.strict,i={areArraysEqual:r?O:m,areDatesEqual:b,areMapsEqual:r?l(g,O):g,areObjectsEqual:r?O:x,arePrimitiveWrappersEqual:w,areRegExpsEqual:j,areSetsEqual:r?l(S,O):S,areTypedArraysEqual:r?O:P};if(n&&(i=k({},i,n(i))),e){var o=s(i.areArraysEqual),a=s(i.areMapsEqual),u=s(i.areObjectsEqual),c=s(i.areSetsEqual);i=k({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:u,areSetsEqual:c})}return i}(t)).areArraysEqual,r=e.areDatesEqual,i=e.areMapsEqual,o=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,function(t,e,l){if(t===e)return!0;if(null==t||null==e||"object"!=typeof t||"object"!=typeof e)return t!=t&&e!=e;var s=t.constructor;if(s!==e.constructor)return!1;if(s===Object)return o(t,e,l);if(A(t))return n(t,e,l);if(null!=E&&E(t))return f(t,e,l);if(s===Date)return r(t,e,l);if(s===RegExp)return u(t,e,l);if(s===Map)return i(t,e,l);if(s===Set)return c(t,e,l);var p=M(t);return"[object Date]"===p?r(t,e,l):"[object RegExp]"===p?u(t,e,l):"[object Map]"===p?i(t,e,l):"[object Set]"===p?c(t,e,l):"[object Object]"===p?"function"!=typeof t.then&&"function"!=typeof e.then&&o(t,e,l):"[object Arguments]"===p?o(t,e,l):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&a(t,e,l)}),T=h?h(v):function(t,e,n,r,i,o,a){return v(t,e,a)};return function(t){var e=t.circular,n=t.comparator,r=t.createState,i=t.equals,o=t.strict;if(r)return function(t,a){var u=r(),c=u.cache;return n(t,a,{cache:void 0===c?e?new WeakMap:void 0:c,equals:i,meta:u.meta,strict:o})};if(e)return function(t,e){return n(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return n(t,e,a)}}({circular:void 0!==p&&p,comparator:v,createState:d,equals:T,strict:void 0!==y&&y})}function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(i){if(n<0&&(n=i),i-n>e)t(i),n=-1;else{var o;o=r,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(o)}})}function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=0&&t<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var p=H(o,u),h=H(a,c),d=(t=o,e=u,function(n){var r;return Y([].concat(function(t){if(Array.isArray(t))return W(t)}(r=q(t,e).map(function(t,e){return t*e}).slice(1))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||Z(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),n)}),y=function(t){for(var e=t>1?1:t,n=e,r=0;r<8;++r){var i,o=p(n)-e,a=d(n);if(1e-4>Math.abs(o-e)||a<1e-4)break;n=(i=n-o/a)>1?1:i<0?0:i}return h(n)};return y.isStepper=!1,y},V=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,i=void 0===r?8:r,o=t.dt,a=void 0===o?17:o,u=function(t,e,r){var o=r+(-(t-e)*n-r*i)*a/1e3,u=r*a/1e3+t;return 1e-4>Math.abs(u-e)&&1e-4>Math.abs(o)?[e,0]:[u,o]};return u.isStepper=!0,u.dt=a,u},G=function(){for(var t=arguments.length,e=Array(t),n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n0?n[i-1]:r,p=l||Object.keys(c);if("function"==typeof u||"spring"===u)return[].concat(ts(t),[e.runJSAnimation.bind(e,{from:f.style,to:c,duration:o,easing:u}),o]);var h=U(p,o,u),d=th(th(th({},f.style),c),{},{transition:h});return[].concat(ts(t),[d,o,s]).filter(z)},[a,Math.max(void 0===u?0:u,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){if(!this.manager){var e,n,r;this.manager=(e=function(){return null},n=!1,r=function t(r){if(!n){if(Array.isArray(r)){if(!r.length)return;var i=function(t){if(Array.isArray(t))return t}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return N(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(t,void 0)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],a=i.slice(1);if("number"==typeof o){C(t.bind(null,a),o);return}t(o),C(t.bind(null,a));return}"object"===D(r)&&e(r),"function"==typeof r&&r()}},{stop:function(){n=!0},start:function(t){n=!1,r(t)},subscribe:function(t){return e=t,function(){e=function(){return null}}}})}var i=t.begin,o=t.duration,a=t.attributeName,u=t.to,c=t.easing,l=t.onAnimationStart,s=t.onAnimationEnd,f=t.steps,p=t.children,h=this.manager;if(this.unSubscribe=h.subscribe(this.handleStyleChange),"function"==typeof c||"function"==typeof p||"spring"===c){this.runJSAnimation(t);return}if(f.length>1){this.runStepAnimation(t);return}var d=a?td({},a,u):u,y=U(Object.keys(d),o,c);h.start([l,i,th(th({},d),{},{transition:y}),o,s])}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration),i=(t.attributeName,t.easing,t.isActive),o=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,tl)),a=r.Children.count(e),u=this.state.style;if("function"==typeof e)return e(u);if(!i||0===a||n<=0)return e;var c=function(t){var e=t.props,n=e.style,i=e.className;return(0,r.cloneElement)(t,th(th({},o),{},{style:th(th({},void 0===n?{}:n),u),className:i}))};return 1===a?c(r.Children.only(e)):r.createElement("div",null,r.Children.map(e,function(t){return c(t)}))}}],function(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}tx.displayName="Animate",tx.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},tx.propTypes={from:o().oneOfType([o().object,o().string]),to:o().oneOfType([o().object,o().string]),attributeName:o().string,duration:o().number,begin:o().number,easing:o().oneOfType([o().string,o().func]),steps:o().arrayOf(o().shape({duration:o().number.isRequired,style:o().object.isRequired,easing:o().oneOfType([o().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),o().func]),properties:o().arrayOf("string"),onAnimationEnd:o().func})),children:o().oneOfType([o().node,o().func]),isActive:o().bool,canBegin:o().bool,onAnimationEnd:o().func,shouldReAnimate:o().bool,onAnimationStart:o().func,onAnimationReStart:o().func};var tw=n(87462);function tj(t,e){return(tj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function tS(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,tj(t,e)}var tP=r.createContext(null);function tA(t,e){var n=Object.create(null);return t&&r.Children.map(t,function(t){return t}).forEach(function(t){n[t.key]=e&&(0,r.isValidElement)(t)?e(t):t}),n}function tE(t,e,n){return null!=n[e]?n[e]:t.props[e]}var tk=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},tM=function(t){function e(e,n){var r,i=(r=t.call(this,e,n)||this).handleExited.bind(function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}tS(e,t);var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(t,e){var n,i,o=e.children,a=e.handleExited;return{children:e.firstRender?tA(t.children,function(e){return(0,r.cloneElement)(e,{onExited:a.bind(null,e),in:!0,appear:tE(e,"appear",t),enter:tE(e,"enter",t),exit:tE(e,"exit",t)})}):(Object.keys(i=function(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,i=Object.create(null),o=[];for(var a in t)a in e?o.length&&(i[a]=o,o=[]):o.push(a);var u={};for(var c in e){if(i[c])for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,n=t.duration;return e&&e.length?e.reduce(function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)},0):Number.isFinite(n)?n:0},tG=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tW(t,e)}(o,t);var e,n,i=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=tY(o);return t=e?Reflect.construct(n,arguments,tY(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===t$(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return tq(t)}(this,t)});function o(){var t;return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,o),tH(tq(t=i.call(this)),"handleEnter",function(e,n){var r=t.props,i=r.appearOptions,o=r.enterOptions;t.handleStyleActive(n?i:o)}),tH(tq(t),"handleExit",function(){var e=t.props.leaveOptions;t.handleStyleActive(e)}),t.state={isActive:!1},t}return n=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(tZ(tZ({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,n=t.enterOptions,r=t.leaveOptions;return tV(e)+tV(n)+tV(r)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,i=(e.appearOptions,e.enterOptions,e.leaveOptions,function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(e,tz));return r.createElement(tL,tU({},i,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return r.createElement(tx,t.state,r.Children.only(n))})}}],function(t,e){for(var n=0;n=0))throw Error(`invalid digits: ${t}`);if(e>15)return a;let n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e1e-6){if(Math.abs(f*c-l*s)>1e-6&&o){let h=n-a,d=i-u,y=c*c+l*l,v=Math.sqrt(y),m=Math.sqrt(p),b=o*Math.tan((r-Math.acos((y+p-(h*h+d*d))/(2*v*m)))/2),g=b/m,x=b/v;Math.abs(g-1)>1e-6&&this._append`L${t+g*s},${e+g*f}`,this._append`A${o},${o},0,0,${+(f*h>s*d)},${this._x1=t+x*c},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`}}arc(t,e,n,a,u,c){if(t=+t,e=+e,c=!!c,(n=+n)<0)throw Error(`negative radius: ${n}`);let l=n*Math.cos(a),s=n*Math.sin(a),f=t+l,p=e+s,h=1^c,d=c?a-u:u-a;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${f},${p}`,n&&(d<0&&(d=d%i+i),d>o?this._append`A${n},${n},0,1,${h},${t-l},${e-s}A${n},${n},0,1,${h},${this._x1=f},${this._y1=p}`:d>1e-6&&this._append`A${n},${n},0,${+(d>=r)},${h},${this._x1=t+n*Math.cos(u)},${this._y1=e+n*Math.sin(u)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function c(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{let t=Math.floor(n);if(!(t>=0))throw RangeError(`invalid digits: ${n}`);e=t}return t},()=>new u(e)}u.prototype},38776:function(t,e,n){"use strict";function r(t,e){if(!t)throw Error("Invariant failed")}n.d(e,{Z:function(){return r}})}}]); \ No newline at end of file + */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,s=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,d=(n&&Symbol.for("react.suspense_list"),n?Symbol.for("react.memo"):60115),y=n?Symbol.for("react.lazy"):60116;n&&Symbol.for("react.block"),n&&Symbol.for("react.fundamental"),n&&Symbol.for("react.responder"),n&&Symbol.for("react.scope"),e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isFragment=function(t){return function(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case s:case f:case o:case u:case a:case h:return t;default:switch(t=t&&t.$$typeof){case l:case p:case y:case d:case c:return t;default:return e}}case i:return e}}}(t)===o}},59864:function(t,e,n){"use strict";t.exports=n(69921)},19787:function(t,e,n){"use strict";n.d(e,{ZP:function(){return tJ}});var r=n(67294),i=n(45697),o=n.n(i),a=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty;function l(t,e){return function(n,r,i){return t(n,r,i)&&e(n,r,i)}}function s(t){return function(e,n,r){if(!e||!n||"object"!=typeof e||"object"!=typeof n)return t(e,n,r);var i=r.cache,o=i.get(e),a=i.get(n);if(o&&a)return o===n&&a===e;i.set(e,n),i.set(n,e);var u=t(e,n,r);return i.delete(e),i.delete(n),u}}function f(t){return a(t).concat(u(t))}var p=Object.hasOwn||function(t,e){return c.call(t,e)};function h(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var d="_owner",y=Object.getOwnPropertyDescriptor,v=Object.keys;function m(t,e,n){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function b(t,e){return h(t.getTime(),e.getTime())}function g(t,e,n){if(t.size!==e.size)return!1;for(var r,i,o={},a=t.entries(),u=0;(r=a.next())&&!r.done;){for(var c=e.entries(),l=!1,s=0;(i=c.next())&&!i.done;){var f=r.value,p=f[0],h=f[1],d=i.value,y=d[0],v=d[1];!l&&!o[s]&&(l=n.equals(p,y,u,s,t,e,n)&&n.equals(h,v,p,y,t,e,n))&&(o[s]=!0),s++}if(!l)return!1;u++}return!0}function x(t,e,n){var r,i=v(t),o=i.length;if(v(e).length!==o)return!1;for(;o-- >0;)if((r=i[o])===d&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!p(e,r)||!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function O(t,e,n){var r,i,o,a=f(t),u=a.length;if(f(e).length!==u)return!1;for(;u-- >0;)if((r=a[u])===d&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!p(e,r)||!n.equals(t[r],e[r],r,r,t,e,n)||(i=y(t,r),o=y(e,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable)))return!1;return!0}function w(t,e){return h(t.valueOf(),e.valueOf())}function j(t,e){return t.source===e.source&&t.flags===e.flags}function S(t,e,n){if(t.size!==e.size)return!1;for(var r,i,o={},a=t.values();(r=a.next())&&!r.done;){for(var u=e.values(),c=!1,l=0;(i=u.next())&&!i.done;)!c&&!o[l]&&(c=n.equals(r.value,i.value,r.value,i.value,t,e,n))&&(o[l]=!0),l++;if(!c)return!1}return!0}function P(t,e){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}var A=Array.isArray,E="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,k=Object.assign,M=Object.prototype.toString.call.bind(Object.prototype.toString),T=_();function _(t){void 0===t&&(t={});var e,n,r,i,o,a,u,c,f,p=t.circular,h=t.createInternalComparator,d=t.createState,y=t.strict,v=(n=(e=function(t){var e=t.circular,n=t.createCustomConfig,r=t.strict,i={areArraysEqual:r?O:m,areDatesEqual:b,areMapsEqual:r?l(g,O):g,areObjectsEqual:r?O:x,arePrimitiveWrappersEqual:w,areRegExpsEqual:j,areSetsEqual:r?l(S,O):S,areTypedArraysEqual:r?O:P};if(n&&(i=k({},i,n(i))),e){var o=s(i.areArraysEqual),a=s(i.areMapsEqual),u=s(i.areObjectsEqual),c=s(i.areSetsEqual);i=k({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:u,areSetsEqual:c})}return i}(t)).areArraysEqual,r=e.areDatesEqual,i=e.areMapsEqual,o=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,function(t,e,l){if(t===e)return!0;if(null==t||null==e||"object"!=typeof t||"object"!=typeof e)return t!=t&&e!=e;var s=t.constructor;if(s!==e.constructor)return!1;if(s===Object)return o(t,e,l);if(A(t))return n(t,e,l);if(null!=E&&E(t))return f(t,e,l);if(s===Date)return r(t,e,l);if(s===RegExp)return u(t,e,l);if(s===Map)return i(t,e,l);if(s===Set)return c(t,e,l);var p=M(t);return"[object Date]"===p?r(t,e,l):"[object RegExp]"===p?u(t,e,l):"[object Map]"===p?i(t,e,l):"[object Set]"===p?c(t,e,l):"[object Object]"===p?"function"!=typeof t.then&&"function"!=typeof e.then&&o(t,e,l):"[object Arguments]"===p?o(t,e,l):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&a(t,e,l)}),T=h?h(v):function(t,e,n,r,i,o,a){return v(t,e,a)};return function(t){var e=t.circular,n=t.comparator,r=t.createState,i=t.equals,o=t.strict;if(r)return function(t,a){var u=r(),c=u.cache;return n(t,a,{cache:void 0===c?e?new WeakMap:void 0:c,equals:i,meta:u.meta,strict:o})};if(e)return function(t,e){return n(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return n(t,e,a)}}({circular:void 0!==p&&p,comparator:v,createState:d,equals:T,strict:void 0!==y&&y})}function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(i){if(n<0&&(n=i),i-n>e)t(i),n=-1;else{var o;o=r,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(o)}})}function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=0&&t<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var p=H(o,u),h=H(a,c),d=(t=o,e=u,function(n){var r;return Y([].concat(function(t){if(Array.isArray(t))return W(t)}(r=q(t,e).map(function(t,e){return t*e}).slice(1))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||Z(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),n)}),y=function(t){for(var e=t>1?1:t,n=e,r=0;r<8;++r){var i,o=p(n)-e,a=d(n);if(1e-4>Math.abs(o-e)||a<1e-4)break;n=(i=n-o/a)>1?1:i<0?0:i}return h(n)};return y.isStepper=!1,y},V=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,i=void 0===r?8:r,o=t.dt,a=void 0===o?17:o,u=function(t,e,r){var o=r+(-(t-e)*n-r*i)*a/1e3,u=r*a/1e3+t;return 1e-4>Math.abs(u-e)&&1e-4>Math.abs(o)?[e,0]:[u,o]};return u.isStepper=!0,u.dt=a,u},G=function(){for(var t=arguments.length,e=Array(t),n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n0?n[i-1]:r,p=l||Object.keys(c);if("function"==typeof u||"spring"===u)return[].concat(ts(t),[e.runJSAnimation.bind(e,{from:f.style,to:c,duration:o,easing:u}),o]);var h=U(p,o,u),d=th(th(th({},f.style),c),{},{transition:h});return[].concat(ts(t),[d,o,s]).filter(z)},[a,Math.max(void 0===u?0:u,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){if(!this.manager){var e,n,r;this.manager=(e=function(){return null},n=!1,r=function t(r){if(!n){if(Array.isArray(r)){if(!r.length)return;var i=function(t){if(Array.isArray(t))return t}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return N(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(t,void 0)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],a=i.slice(1);if("number"==typeof o){C(t.bind(null,a),o);return}t(o),C(t.bind(null,a));return}"object"===D(r)&&e(r),"function"==typeof r&&r()}},{stop:function(){n=!0},start:function(t){n=!1,r(t)},subscribe:function(t){return e=t,function(){e=function(){return null}}}})}var i=t.begin,o=t.duration,a=t.attributeName,u=t.to,c=t.easing,l=t.onAnimationStart,s=t.onAnimationEnd,f=t.steps,p=t.children,h=this.manager;if(this.unSubscribe=h.subscribe(this.handleStyleChange),"function"==typeof c||"function"==typeof p||"spring"===c){this.runJSAnimation(t);return}if(f.length>1){this.runStepAnimation(t);return}var d=a?td({},a,u):u,y=U(Object.keys(d),o,c);h.start([l,i,th(th({},d),{},{transition:y}),o,s])}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration),i=(t.attributeName,t.easing,t.isActive),o=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,tl)),a=r.Children.count(e),u=this.state.style;if("function"==typeof e)return e(u);if(!i||0===a||n<=0)return e;var c=function(t){var e=t.props,n=e.style,i=e.className;return(0,r.cloneElement)(t,th(th({},o),{},{style:th(th({},void 0===n?{}:n),u),className:i}))};return 1===a?c(r.Children.only(e)):r.createElement("div",null,r.Children.map(e,function(t){return c(t)}))}}],function(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}function tw(){return(tw=Object.assign?Object.assign.bind():function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,n=t.duration;return e&&e.length?e.reduce(function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)},0):Number.isFinite(n)?n:0},tG=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tW(t,e)}(o,t);var e,n,i=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=tY(o);return t=e?Reflect.construct(n,arguments,tY(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===t$(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return tq(t)}(this,t)});function o(){var t;return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,o),tH(tq(t=i.call(this)),"handleEnter",function(e,n){var r=t.props,i=r.appearOptions,o=r.enterOptions;t.handleStyleActive(n?i:o)}),tH(tq(t),"handleExit",function(){var e=t.props.leaveOptions;t.handleStyleActive(e)}),t.state={isActive:!1},t}return n=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(tZ(tZ({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,n=t.enterOptions,r=t.leaveOptions;return tV(e)+tV(n)+tV(r)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,i=(e.appearOptions,e.enterOptions,e.leaveOptions,function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(e,tz));return r.createElement(tL,tU({},i,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return r.createElement(tx,t.state,r.Children.only(n))})}}],function(t,e){for(var n=0;n=0))throw Error(`invalid digits: ${t}`);if(e>15)return a;let n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e1e-6){if(Math.abs(f*c-l*s)>1e-6&&o){let h=n-a,d=i-u,y=c*c+l*l,v=Math.sqrt(y),m=Math.sqrt(p),b=o*Math.tan((r-Math.acos((y+p-(h*h+d*d))/(2*v*m)))/2),g=b/m,x=b/v;Math.abs(g-1)>1e-6&&this._append`L${t+g*s},${e+g*f}`,this._append`A${o},${o},0,0,${+(f*h>s*d)},${this._x1=t+x*c},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`}}arc(t,e,n,a,u,c){if(t=+t,e=+e,c=!!c,(n=+n)<0)throw Error(`negative radius: ${n}`);let l=n*Math.cos(a),s=n*Math.sin(a),f=t+l,p=e+s,h=1^c,d=c?a-u:u-a;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${f},${p}`,n&&(d<0&&(d=d%i+i),d>o?this._append`A${n},${n},0,1,${h},${t-l},${e-s}A${n},${n},0,1,${h},${this._x1=f},${this._y1=p}`:d>1e-6&&this._append`A${n},${n},0,${+(d>=r)},${h},${this._x1=t+n*Math.cos(u)},${this._y1=e+n*Math.sin(u)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function c(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{let t=Math.floor(n);if(!(t>=0))throw RangeError(`invalid digits: ${n}`);e=t}return t},()=>new u(e)}u.prototype},38776:function(t,e,n){"use strict";function r(t,e){if(!t)throw Error("Invariant failed")}n.d(e,{Z:function(){return r}})}}]); \ No newline at end of file diff --git a/_next/static/chunks/5461-150efafcbb3ce697.js b/_next/static/chunks/5461-150efafcbb3ce697.js new file mode 100644 index 000000000..2bd74df87 --- /dev/null +++ b/_next/static/chunks/5461-150efafcbb3ce697.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5461],{95461:function(e,t,n){n.d(t,{Z:function(){return Q}});var r=n(21378),i=n.n(r),a=n(67294),s=[".d-flex.jsx-2463574095,.home__default.jsx-2463574095{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".home__default.jsx-2463574095{width:var(--s-4-width);padding:var(--s-4);}",".home__default--title.jsx-2463574095{color:var(--gray-30);font-size:var(--s-3);}",".home.jsx-2463574095{width:100%;height:-webkit-max-content;height:-moz-max-content;height:max-content;}"];s.__hash="2463574095";var o=[".d-flex.jsx-4055819726,.joystick.jsx-4055819726{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".surveillance.jsx-4055819726{min-height:500px;width:100%;}",".joystick.jsx-4055819726{width:var(--s-9-width);padding:var(--s-9);margin:auto;aspect-ratio:1;border-radius:100%;border:solid 1px;background-color:var(--gray-100);position:relative;}",".joystick-thumb.jsx-4055819726{position:absolute;aspect-ratio:1;border-radius:100%;min-width:90px;background-color:var(--primary-70);}"];o.__hash="4055819726";var c=n(59499),l=["img.jsx-4168631383{width:100%;height:-webkit-max-content;height:-moz-max-content;height:max-content;z-index:1;position:relative;}","img.jsx-4168631383 .d-flex.jsx-4168631383,img.jsx-4168631383 img.jsx-4168631383{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".d-flex.jsx-4168631383,img.jsx-4168631383{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}"];l.__hash="4168631383";var d=[".d-flex.jsx-2512513213,.image-control.jsx-2512513213 .image-control__controls.jsx-2512513213{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".image-control.jsx-2512513213{--icon-size:60px;--font-size:var(--s-7);width:inherit;position:relative;background-color:var(--black);overflow:hidden;box-shadow:inset 0 0 5px var(--gray-90);}",".image-control__loading.jsx-2512513213{width:100%;aspect-ratio:16/9;}",".image-control.jsx-2512513213:hover .image-control__controls.jsx-2512513213{bottom:0;opacity:1;}",".image-control.jsx-2512513213 .image-control__element.jsx-2512513213{background-color:#000;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;height:auto;z-index:-1;}",".image-control.jsx-2512513213 .image-control__controls.jsx-2512513213{background-color:var(--gray-100);z-index:2;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;position:absolute;bottom:-100%;padding:0 var(--s-9);width:calc(100% - var(--s-9) * 2);left:0;height:var(--s-element);opacity:0;-webkit-transition:bottom 0.5s ease,opacity 0.5s ease;transition:bottom 0.5s ease,opacity 0.5s ease;}",".image-control.jsx-2512513213 .image-control__controls__control.jsx-2512513213{cursor:pointer;}",".image-control.jsx-2512513213 .image-control__controls__control.jsx-2512513213:hover{--ui-icon-color:var(--primary-50);}"];d.__hash="2512513213";var x=n(85153),h=n(79785),u=n(6253),b=n(36946),f=n(85893),v=function e(t){var n=t.children,r=t.variant,s=t.mediaType,o=void 0===s?"image":s,c=t.refreshInterval,l=void 0===c?1e3:c,v=t.error,m=t.loadingText,g=t.fixedLoad,p=(0,a.useRef)(null),j=(0,a.useState)(!0),_=j[0],w=j[1],y=(0,h.Z)({cls:"image-control__element",type:o,variant:r}),k=(0,b.dd)(),N=k.openModal,S=k.closeModal,E=k.isModalOpen;return(0,a.useEffect)(function(){var e=setInterval(function(){var e,t=null==p||null===(e=p.current)||void 0===e?void 0:e.offsetHeight;p.current&&t&&t>30?w(!1):v&&!_&&w(!0)},l);return function(){return clearInterval(e)}},[l,_,p.current]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:d.__hash,children:d}),(0,f.jsxs)("div",{className:"jsx-".concat(d.__hash)+" "+"image-control".concat(_?" image-control__loading":""),children:[" ",!0==_&&(0,f.jsx)(x.Z,{position:void 0!==g&&g?void 0:"relative",text:v||m||void 0,dots:!["string","object"].includes(typeof v)&&void 0}),(0,f.jsx)("div",{id:"image-control__element",ref:p,className:"jsx-".concat(d.__hash)+" "+"".concat(y),children:a.Children.map(n,function(e){return(0,a.isValidElement)(e)?(0,a.cloneElement)(e):e})}),(0,f.jsxs)("div",{className:"jsx-".concat(d.__hash)+" image-control__controls",children:[(0,f.jsx)("div",{className:"jsx-".concat(d.__hash)+" image-control__controls__control",children:(0,f.jsx)(u.a,{icon:"fa-play-pause"})}),(0,f.jsx)("div",{className:"jsx-".concat(d.__hash)+" image-control__controls__control",children:(0,f.jsx)(u.a,{icon:"fa-expand",onClick:function(){E?S():N({children:(0,f.jsx)(e,{fixedLoad:!0,variant:r,mediaType:o,refreshInterval:l,error:v,children:n}),variant:"fullscreen"})}})})]})]})]})};function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;tl/2||a>d/2||i<-l/2||a<-d/2)return;n([Math.max(Math.min(i,l/2),-l/2),Math.max(Math.min(a,d/2),-d/2)])}},a=function t(n){o(),e(n,[0,0],500),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",function(){return t(n)})},l=function(e){document.addEventListener("mousemove",i),document.addEventListener("mouseup",function(){return a(t)})},d=function(t){if(o(),r.current&&s.current){var i=r.current.getBoundingClientRect(),a=t.touches[0],c=a.clientX-i.left-i.width/2,l=a.clientY-i.top-i.height/2;c>i.width/2||l>i.height/2||c<-i.width/2||l<-i.height/2?e([c,l],[0,0],500):n([Math.max(Math.min(c,i.width/2),-i.width/2),Math.max(Math.min(l,i.height/2),-i.height/2)])}},x=function e(){document.removeEventListener("touchmove",d),document.removeEventListener("touchend",e)},h=function(e){document.addEventListener("touchmove",d),document.addEventListener("touchend",x)};return s.current&&(s.current.addEventListener("mousedown",l),s.current.addEventListener("touchstart",h)),function(){s.current&&(s.current.removeEventListener("mousedown",l),s.current.removeEventListener("touchstart",h))}},[o,n]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:w.__hash,children:w}),(0,f.jsx)("div",{className:"jsx-".concat(w.__hash)+" joystick__container",children:(0,f.jsx)("div",{ref:r,className:"jsx-".concat(w.__hash)+" joystick",children:(0,f.jsx)("div",{ref:s,style:{transform:"translate(".concat(t[0],"px, ").concat(t[1],"px)")},className:"jsx-".concat(w.__hash)+" joystick-thumb"})})})]})},k=function(){var e="".concat(j.Z.serviceEndpoints.membership,"/api/stream/rtsp?id=1");return(0,a.useEffect)(function(){},[]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:o.__hash,children:o}),(0,f.jsx)("div",{className:"jsx-".concat(o.__hash)+" surveillance",children:(0,f.jsxs)(_.Z,{xs:1,md:2,padding:"0 0 200px",children:[(0,f.jsxs)("div",{className:"jsx-".concat(o.__hash),children:[(0,f.jsx)(p,{src:e,loadingText:"loading camera 1"}),(0,f.jsx)(y,{})]}),(0,f.jsx)("div",{className:"jsx-".concat(o.__hash),children:(0,f.jsx)(p,{src:"".concat(j.Z.serviceEndpoints.membership,"/api/stream/rtsp?id=2"),loadingText:"loading camera 2"})})]})})]})},N=n(35109),S=n(27812),E=n(50029),O=n(16835),C=n(64687),Z=n.n(C),z=[".d-flex.jsx-2639056870,.lights__light-header-title.jsx-2639056870,.lights__light-header--action.jsx-2639056870,.lights__light.jsx-2639056870{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".lights.jsx-2639056870{width:100%;height:-webkit-max-content;height:-moz-max-content;height:max-content;}",".lights__light.jsx-2639056870{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-9);border:solid 1px var(--gray-80);border-radius:var(--border-radius);background-color:var(--gray-90);padding:var(--s-9);}",".lights__light-header.jsx-2639056870{width:100%;}",".lights__light-header--action.jsx-2639056870{width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer;height:var(--s-element);gap:var(--s-9);--ui-icon-color:var(--gray-40);}",".lights__light-header--action.jsx-2639056870:hover{--ui-icon-color:var(--gray-20);}",".lights__light-header-title.jsx-2639056870{min-height:var(--s-element);gap:var(--s-9);}",".in-group.jsx-2639056870{background-color:var(--primary-50) !important;}"];z.__hash="2639056870";var M=n(10394),F=n(31831),A=[".d-flex.jsx-2588006735,.bar.jsx-2588006735 .bar__container.jsx-2588006735 .bar__bars-container.jsx-2588006735 .bar__percentage.jsx-2588006735,.bar.jsx-2588006735 .bar__container.jsx-2588006735 .bars__icon.jsx-2588006735,.bar.jsx-2588006735 .bar__container.jsx-2588006735 .bar__header.jsx-2588006735{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".bar.jsx-2588006735{width:100%;}",".bar__primary.jsx-2588006735{background-color:var(--primary-o);}",".bar.jsx-2588006735 .bar__container.jsx-2588006735:hover .bar__bars-container.jsx-2588006735 .bar__percentage.jsx-2588006735{color:var(--white);text-shadow:#f30 1px 0 10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:visible;}",".bar.jsx-2588006735 .bar__container.jsx-2588006735 .bar__header.jsx-2588006735{overflow:hidden;min-height:var(--s-element);white-space:nowrap;position:relative;line-height:1;}",".bar.jsx-2588006735 .bar__container.jsx-2588006735 .bars__icon.jsx-2588006735{height:var(--s-element);padding-top:20px;--ui-icon-color:var(--gray-60);padding:30px 0 20px;}",".bar.jsx-2588006735 .bar__container.jsx-2588006735 .bars__status.jsx-2588006735{position:absolute;right:var(--s-9);top:4px;text-transform:capitalize;font-size:var(--s-7);color:var(--yellow-50);--ui-icon-width:var(--s-6);}",".bar.jsx-2588006735 .bar__container.jsx-2588006735 .bars__status.jsx-2588006735 .bars__status-low.jsx-2588006735{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:5px;}",".bar.jsx-2588006735 .bar__container.jsx-2588006735 .bar__bars-container.jsx-2588006735{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:stretch;-webkit-justify-content:stretch;-ms-flex-pack:stretch;justify-content:stretch;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;gap:var(--border-radius);overflow:hidden;border-radius:var(--border-radius);}",".bar.jsx-2588006735 .bar__container.jsx-2588006735 .bar__bars-container.jsx-2588006735 .bar__percentage.jsx-2588006735{font-size:var(--s-1);visibility:hidden;position:absolute;top:0;bottom:0;width:100%;height:100%;text-align:center;color:var(--gray-20-o);}",".bar__bars-content.jsx-2588006735{box-shadow:inset 0 0 4px 2px var(--gray-100-o);border:solid 1px var(--gray-70);overflow:hidden;border-radius:var(--border-radius);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);height:var(--s-element);background-color:var(--gray-70-o);}",".bar__bars-content.jsx-2588006735 .bar__bars-bar-partial.jsx-2588006735{border-top:solid 1px var(--gray-70);}",".bar__bars-content.jsx-2588006735 .bar__bars-bar-filled.jsx-2588006735,.bar__bars-content.jsx-2588006735 .bar__bars-bar-partial.jsx-2588006735{height:100%;background-color:var(--bar-background,var(--yellow-50));}",".bar__timestamp.jsx-2588006735{width:100%;font-size:var(--s-9);padding-bottom:var(--s-9);line-height:1;color:var(--gray-50);white-space:nowrap;text-align:right;}"];A.__hash="2588006735";var L=n(47265),P=n(49334),B=n(96486),R=function(e){var t=e.barCount,n=e.percentage,r=e.icon,s=e.status,o=e.timestamp,c=e.header,l=e.onChange,d=(0,a.useState)(n),x=d[0],h=d[1],b=(0,a.useRef)(null),v=(0,a.useRef)((0,B.debounce)(function(e){l&&l(e)},1e3)).current,m=function(e){if(b.current){var t=b.current.getBoundingClientRect(),n=Math.max(0,Math.min(100-(e.clientY-t.top)/t.height*100,100));h(n),v(n.toFixed(0))}};return(0,a.useEffect)(function(){h(n)},[]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:A.__hash,children:A}),(0,f.jsxs)("div",{className:"jsx-".concat(A.__hash)+" bar",children:[o&&(0,f.jsx)("div",{className:"jsx-".concat(A.__hash)+" bar__timestamp",children:(0,L.vc)(o,{time:!0})}),(0,f.jsxs)("div",{className:"jsx-".concat(A.__hash)+" bar__container",children:[c&&(0,f.jsxs)("div",{className:"jsx-".concat(A.__hash)+" bar__header",children:[c,r&&(0,f.jsx)("div",{className:"jsx-".concat(A.__hash)+" bars__icon",children:(0,f.jsx)(u.a,{icon:r})}),s&&(0,f.jsx)("div",{className:"jsx-".concat(A.__hash)+" bars__status",children:["STATUS_LOW","low","high"].includes(s)&&(0,f.jsxs)("div",{className:"jsx-".concat(A.__hash)+" bars__status-low",children:[(0,f.jsx)(u.a,{color:"#f90",icon:"fa-exclamation-triangle"}),(0,P.Z)(s)]})})]}),(0,f.jsxs)("div",{ref:b,onMouseDown:function(e){return m(e)},onMouseMove:function(e){return 1===e.buttons&&m(e)},className:"jsx-".concat(A.__hash)+" bar__bars-container",children:[function(){for(var e=[],n={filledBar:"bar__bars-bar-filled",emptyBar:"bar__bars-bar-empty",partialBar:"bar__bars-bar-partial"},r=0;r=0&&s<60?(r=o,i=c,a=0):s>=60&&s<120?(r=c,i=o,a=0):s>=120&&s<180?(r=0,i=o,a=c):s>=180&&s<240?(r=0,i=c,a=o):s>=240&&s<300?(r=c,i=0,a=o):(r=o,i=0,a=c),r=Math.round((r+l)*255),i=Math.round((i+l)*255),a=Math.round((a+l)*255),"#".concat(r.toString(16).padStart(2,"0")).concat(i.toString(16).padStart(2,"0")).concat(a.toString(16).padStart(2,"0"))},q=[".d-flex.jsx-2325468756,.color-picker.jsx-2325468756{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".color-picker.jsx-2325468756{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-9);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;position:relative;height:100%;cursor:pointer;}",".color-picker__info.jsx-2325468756{gap:var(--s-9);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}",".color-picker.jsx-2325468756 .preview-color.jsx-2325468756{width:var(--s-element);aspect-ratio:1;cursor:pointer;border-radius:var(--border-radius);}",".color-picker.jsx-2325468756 .color-canvas.jsx-2325468756{width:100%;border-radius:var(--border-radius);}"];q.__hash="2325468756";var W=function(e){var t=e.hex,n=e.onChange,r=(0,a.useState)(),s=r[0],o=r[1],c=(0,a.useRef)(null);(0,a.useEffect)(function(){if(c.current){var e=c.current;e.width=e.offsetWidth,e.height=e.offsetHeight;var t=e.getContext("2d",{willReadFrequently:!0});if(t){var n=t.createLinearGradient(0,0,e.width,0);n.addColorStop(0,"red"),n.addColorStop(.15,"yellow"),n.addColorStop(.33,"green"),n.addColorStop(.49,"cyan"),n.addColorStop(.67,"blue"),n.addColorStop(.84,"magenta"),n.addColorStop(1,"red"),t.fillStyle=n,t.fillRect(0,0,e.width,e.height)}}},[]);var l=(0,a.useCallback)((0,B.debounce)(function(e){n&&n(e)},1e3),[n]),d=function(e){var t=e.target,n=(t.name,t.value);o("#".concat(n)),6===n.length&&l(n)};return(0,a.useEffect)(function(){s||o(t||"#fff")},[t,o,d]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:q.__hash,children:q}),(0,f.jsxs)("div",{className:"jsx-".concat(q.__hash)+" color-picker",children:[(0,f.jsxs)("div",{className:"jsx-".concat(q.__hash)+" color-picker__info",children:[(0,f.jsx)("div",{style:{backgroundColor:s},className:"jsx-".concat(q.__hash)+" preview-color"}),(0,f.jsxs)("div",{className:"jsx-".concat(q.__hash)+" color-picker__info",children:["#",(0,f.jsx)(T.Z,{value:null==s?void 0:s.replaceAll("#",""),name:"hex",onChange:d,size:"sm"})]})]}),(0,f.jsx)("canvas",{ref:c,onClick:function(e){if(c.current){var n=c.current,r=n.getContext("2d",{willReadFrequently:!0});if(r){var i=n.getBoundingClientRect(),a=e.clientX-i.left,s=e.clientY-i.top,d=r.getImageData(a,s,1,1).data,x="#"+(16777216+(d[0]<<16|d[1]<<8|d[2]<<0)).toString(16).slice(1);t||o(x),l(x)}}},className:"jsx-".concat(q.__hash)+" color-canvas"})]})]})},G=[".knob-container.jsx-1601322626{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;width:100px;height:100px;}",".knob.jsx-1601322626{width:100%;height:100%;border-radius:50%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;-webkit-transition:#1d1d1d 0.3s ease-in-out;transition:#1d1d1d 0.3s ease-in-out;}",".knob.jsx-1601322626:hover{box-shadow:0 0 8px rgba(255,99,71,0.6);}",".label.jsx-1601322626{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:white;font-size:1.2rem;z-index:10;}"];G.__hash="1601322626";var Y=function(e){var t,n,r=e.percent,a=(e.setPercent,e.style),s=e.label,o={background:"conic-gradient(".concat(null!==(t=null==a?void 0:a.color)&&void 0!==t?t:"#ff3300"," 0% ").concat(r,"%, ").concat(null!==(n=null==a?void 0:a.backgroundColor)&&void 0!==n?n:"#000"," ").concat(r,"% 100%)")};return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:G.__hash,children:G}),(0,f.jsx)("div",{className:"jsx-".concat(G.__hash)+" knob-container",children:(0,f.jsx)("div",{style:o,onMouseDown:function(e){},className:"jsx-".concat(G.__hash)+" knob",children:s&&(0,f.jsx)("span",{className:"jsx-".concat(G.__hash)+" label",children:s})})})]})};function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&["toggle","brightness","color"].includes(t))){e.next=23;break}a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return U(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U(e,void 0)}}(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}(L),e.prev=5,a.s();case 7:if((o=a.n()).done){e.next=13;break}return c=o.value,e.next=11,i(c);case 11:e.next=7;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(5),a.e(e.t0);case 18:return e.prev=18,a.f(),e.finish(18);case 21:e.next=26;break;case 23:if(!(null!=n&&n.id)){e.next=26;break}return e.next=26,i(n.id);case 26:r(!1,t,null==n?void 0:n.name);case 27:case"end":return e.stop()}},e,null,[[5,15,18,21]])})),function(e,n){return t.apply(this,arguments)}),J=function(e){B(e).then(function(){s({active:!1}),e&&w(e)})};return(0,a.useEffect)(function(){void 0==h&&J()},[]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:z.__hash,children:z}),(0,f.jsxs)("div",{className:"jsx-".concat(z.__hash)+" lights",children:[(0,f.jsx)(Y,{percent:10}),h&&!m&&(0,f.jsx)(_.Z,{xs:1,sm:3,gap:15,children:Object.entries(h).map(function(e,t){var n=(0,O.Z)(e,2),r=(n[0],n[1]);return(0,f.jsxs)("div",{onDoubleClick:function(){null!=L&&L.includes(r.id_)?(console.log("removeFromGroup(".concat(r.id_,")")),G(r.id_)):(console.log("addToGroup(".concat(r.id_,")")),q(r.id_))},className:"jsx-".concat(z.__hash)+" "+"lights__light ".concat(null!=L&&L.includes(r.id_)?"in-group":""),children:[(0,f.jsxs)("div",{className:"jsx-".concat(z.__hash)+" lights__light-header",children:[(0,f.jsxs)("div",{className:"jsx-".concat(z.__hash)+" lights__light-header--action",children:[(0,f.jsx)(T.Z,{size:"sm",value:r.name,disabled:!0}),(0,f.jsx)(D.Z,{size:"sm",children:"update"})]}),(0,f.jsxs)("div",{className:"jsx-".concat(z.__hash)+" lights__light-header--action",children:[(0,f.jsx)(I.Z,{name:null==r?void 0:r.id_,value:null==r?void 0:r.is_on,onChange:function(){return X("toggle",{id:r.id_})}}),(0,f.jsx)("div",{onClick:function(){return k(r.id_)},className:"jsx-".concat(z.__hash)+" lights__light-header--action",children:(0,f.jsx)(u.a,{icon:"fa-palette"})})]})]}),(null==r?void 0:r.view)!=="color"?(0,f.jsx)(R,{onChange:function(e){0!=String(e).length&&e&&X("brightness",{id:r.id_,bri:e,name:r.name})},barCount:5,percentage:(null==r?void 0:r.bri)*100/254}):(0,f.jsx)(W,{hex:r.hex,onChange:function(e){return X("color",{id:r.id_,hex:e,name:r.name})}})]},t)})}),"object"==typeof m&&(0,f.jsx)(R,{onChange:function(e){0!=String(e).length&&e&&(String(e).startsWith("#")?X("color",{id:m.id_,hex:e}):X("brightness",{id:m.id_,bri:e}))},barCount:5,percentage:(null==m?void 0:m.bri)*100/254})]})]})},$=n(11907),K=n(39925),Q=function(e){e.vid;var t=(0,$.aF)(),n={home:(0,f.jsx)(function(){return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:s.__hash,children:s}),(0,f.jsx)("div",{className:"jsx-".concat(s.__hash)+" home__default",children:(0,f.jsxs)("div",{className:"jsx-".concat(s.__hash)+" home__default--title",children:[t&&(null==t?void 0:t.name)&&(0,K.Z)(t.name)||"",", Home Automation."]})})]})},{}),surveillance:(0,f.jsx)(k,{}),light:(0,f.jsx)(J,{})};return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:s.__hash,children:s}),(0,f.jsx)(N.Z,{viewName:"home",views:n})]})}},79785:function(e,t,n){var r=n(67294);t.Z=function(e){var t=e.cls,n=e.type,i=e.variant,a=e.extras,s=e.minWidths,o=e.maxWidths,c=e.width,l=e.standalones,d=(0,r.useState)(t),x=d[0],h=d[1];return(0,r.useEffect)(function(){var e=t,r=function(n){n&&(e+=" ".concat(t,"__").concat(n))};r(i),r(n),a&&a.forEach(function(n){null!=n&&n.length&&(e+=" ".concat(t,"__").concat(n))}),l&&l.forEach(function(t){null!=t&&t.length&&(e+=" ".concat(t))});var d=function(n,r){c&&n.forEach(function(n){var i="number"==typeof n.width?n.width:"string"==typeof n.width&&n.width.endsWith("px")?parseInt(n.width):0;(r?i>c:i30?w(!1):v&&!_&&w(!0)},l);return function(){return clearInterval(e)}},[l,_,p.current]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:d.__hash,children:d}),(0,f.jsxs)("div",{className:"jsx-".concat(d.__hash)+" "+"image-control".concat(_?" image-control__loading":""),children:[" ",!0==_&&(0,f.jsx)(x.Z,{position:void 0!==g&&g?void 0:"relative",text:v||m||void 0,dots:!["string","object"].includes(typeof v)&&void 0}),(0,f.jsx)("div",{id:"image-control__element",ref:p,className:"jsx-".concat(d.__hash)+" "+"".concat(y),children:a.Children.map(n,function(e){return(0,a.isValidElement)(e)?(0,a.cloneElement)(e):e})}),(0,f.jsxs)("div",{className:"jsx-".concat(d.__hash)+" image-control__controls",children:[(0,f.jsx)("div",{className:"jsx-".concat(d.__hash)+" image-control__controls__control",children:(0,f.jsx)(u.a,{icon:"fa-play-pause"})}),(0,f.jsx)("div",{className:"jsx-".concat(d.__hash)+" image-control__controls__control",children:(0,f.jsx)(u.a,{icon:"fa-expand",onClick:function(){E?S():N({children:(0,f.jsx)(e,{fixedLoad:!0,variant:r,mediaType:o,refreshInterval:l,error:v,children:n}),variant:"fullscreen"})}})})]})]})]})};function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;tl/2||a>d/2||i<-l/2||a<-d/2)return;n([Math.max(Math.min(i,l/2),-l/2),Math.max(Math.min(a,d/2),-d/2)])}},a=function t(n){o(),e(n,[0,0],500),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",function(){return t(n)})},l=function(e){document.addEventListener("mousemove",i),document.addEventListener("mouseup",function(){return a(t)})},d=function(t){if(o(),r.current&&s.current){var i=r.current.getBoundingClientRect(),a=t.touches[0],c=a.clientX-i.left-i.width/2,l=a.clientY-i.top-i.height/2;c>i.width/2||l>i.height/2||c<-i.width/2||l<-i.height/2?e([c,l],[0,0],500):n([Math.max(Math.min(c,i.width/2),-i.width/2),Math.max(Math.min(l,i.height/2),-i.height/2)])}},x=function e(){document.removeEventListener("touchmove",d),document.removeEventListener("touchend",e)},h=function(e){document.addEventListener("touchmove",d),document.addEventListener("touchend",x)};return s.current&&(s.current.addEventListener("mousedown",l),s.current.addEventListener("touchstart",h)),function(){s.current&&(s.current.removeEventListener("mousedown",l),s.current.removeEventListener("touchstart",h))}},[o,n]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:w.__hash,children:w}),(0,f.jsx)("div",{className:"jsx-".concat(w.__hash)+" joystick__container",children:(0,f.jsx)("div",{ref:r,className:"jsx-".concat(w.__hash)+" joystick",children:(0,f.jsx)("div",{ref:s,style:{transform:"translate(".concat(t[0],"px, ").concat(t[1],"px)")},className:"jsx-".concat(w.__hash)+" joystick-thumb"})})})]})},k=function(){var e="".concat(j.Z.serviceEndpoints.membership,"/api/stream/rtsp?id=1");return(0,a.useEffect)(function(){},[]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:o.__hash,children:o}),(0,f.jsx)("div",{className:"jsx-".concat(o.__hash)+" surveillance",children:(0,f.jsxs)(_.Z,{xs:1,md:2,padding:"0 0 200px",children:[(0,f.jsxs)("div",{className:"jsx-".concat(o.__hash),children:[(0,f.jsx)(p,{src:e,loadingText:"loading camera 1"}),(0,f.jsx)(y,{})]}),(0,f.jsx)("div",{className:"jsx-".concat(o.__hash),children:(0,f.jsx)(p,{src:"".concat(j.Z.serviceEndpoints.membership,"/api/stream/rtsp?id=2"),loadingText:"loading camera 2"})})]})})]})},N=n(35109),S=n(27812),E=n(50029),O=n(16835),C=n(64687),Z=n.n(C),z=[".d-flex.jsx-2639056870,.lights__light-header-title.jsx-2639056870,.lights__light-header--action.jsx-2639056870,.lights__light.jsx-2639056870{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".lights.jsx-2639056870{width:100%;height:-webkit-max-content;height:-moz-max-content;height:max-content;}",".lights__light.jsx-2639056870{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-9);border:solid 1px var(--gray-80);border-radius:var(--border-radius);background-color:var(--gray-90);padding:var(--s-9);}",".lights__light-header.jsx-2639056870{width:100%;}",".lights__light-header--action.jsx-2639056870{width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer;height:var(--s-element);gap:var(--s-9);--ui-icon-color:var(--gray-40);}",".lights__light-header--action.jsx-2639056870:hover{--ui-icon-color:var(--gray-20);}",".lights__light-header-title.jsx-2639056870{min-height:var(--s-element);gap:var(--s-9);}",".in-group.jsx-2639056870{background-color:var(--primary-50) !important;}"];z.__hash="2639056870";var M=n(10394),F=n(31831),A=[".d-flex.jsx-2588006735,.bar.jsx-2588006735 .bar__container.jsx-2588006735 .bar__bars-container.jsx-2588006735 .bar__percentage.jsx-2588006735,.bar.jsx-2588006735 .bar__container.jsx-2588006735 .bars__icon.jsx-2588006735,.bar.jsx-2588006735 .bar__container.jsx-2588006735 .bar__header.jsx-2588006735{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".bar.jsx-2588006735{width:100%;}",".bar__primary.jsx-2588006735{background-color:var(--primary-o);}",".bar.jsx-2588006735 .bar__container.jsx-2588006735:hover .bar__bars-container.jsx-2588006735 .bar__percentage.jsx-2588006735{color:var(--white);text-shadow:#f30 1px 0 10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:visible;}",".bar.jsx-2588006735 .bar__container.jsx-2588006735 .bar__header.jsx-2588006735{overflow:hidden;min-height:var(--s-element);white-space:nowrap;position:relative;line-height:1;}",".bar.jsx-2588006735 .bar__container.jsx-2588006735 .bars__icon.jsx-2588006735{height:var(--s-element);padding-top:20px;--ui-icon-color:var(--gray-60);padding:30px 0 20px;}",".bar.jsx-2588006735 .bar__container.jsx-2588006735 .bars__status.jsx-2588006735{position:absolute;right:var(--s-9);top:4px;text-transform:capitalize;font-size:var(--s-7);color:var(--yellow-50);--ui-icon-width:var(--s-6);}",".bar.jsx-2588006735 .bar__container.jsx-2588006735 .bars__status.jsx-2588006735 .bars__status-low.jsx-2588006735{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:5px;}",".bar.jsx-2588006735 .bar__container.jsx-2588006735 .bar__bars-container.jsx-2588006735{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:stretch;-webkit-justify-content:stretch;-ms-flex-pack:stretch;justify-content:stretch;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;gap:var(--border-radius);overflow:hidden;border-radius:var(--border-radius);}",".bar.jsx-2588006735 .bar__container.jsx-2588006735 .bar__bars-container.jsx-2588006735 .bar__percentage.jsx-2588006735{font-size:var(--s-1);visibility:hidden;position:absolute;top:0;bottom:0;width:100%;height:100%;text-align:center;color:var(--gray-20-o);}",".bar__bars-content.jsx-2588006735{box-shadow:inset 0 0 4px 2px var(--gray-100-o);border:solid 1px var(--gray-70);overflow:hidden;border-radius:var(--border-radius);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);height:var(--s-element);background-color:var(--gray-70-o);}",".bar__bars-content.jsx-2588006735 .bar__bars-bar-partial.jsx-2588006735{border-top:solid 1px var(--gray-70);}",".bar__bars-content.jsx-2588006735 .bar__bars-bar-filled.jsx-2588006735,.bar__bars-content.jsx-2588006735 .bar__bars-bar-partial.jsx-2588006735{height:100%;background-color:var(--bar-background,var(--yellow-50));}",".bar__timestamp.jsx-2588006735{width:100%;font-size:var(--s-9);padding-bottom:var(--s-9);line-height:1;color:var(--gray-50);white-space:nowrap;text-align:right;}"];A.__hash="2588006735";var L=n(47265),P=n(49334),B=n(96486),R=function(e){var t=e.barCount,n=e.percentage,r=e.icon,s=e.status,o=e.timestamp,c=e.header,l=e.onChange,d=(0,a.useState)(n),x=d[0],h=d[1],b=(0,a.useRef)(null),v=(0,a.useRef)((0,B.debounce)(function(e){l&&l(e)},1e3)).current,m=function(e){if(b.current){var t=b.current.getBoundingClientRect(),n=Math.max(0,Math.min(100-(e.clientY-t.top)/t.height*100,100));h(n),v(n.toFixed(0))}};return(0,a.useEffect)(function(){h(n)},[]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:A.__hash,children:A}),(0,f.jsxs)("div",{className:"jsx-".concat(A.__hash)+" bar",children:[o&&(0,f.jsx)("div",{className:"jsx-".concat(A.__hash)+" bar__timestamp",children:(0,L.vc)(o,{time:!0})}),(0,f.jsxs)("div",{className:"jsx-".concat(A.__hash)+" bar__container",children:[c&&(0,f.jsxs)("div",{className:"jsx-".concat(A.__hash)+" bar__header",children:[c,r&&(0,f.jsx)("div",{className:"jsx-".concat(A.__hash)+" bars__icon",children:(0,f.jsx)(u.a,{icon:r})}),s&&(0,f.jsx)("div",{className:"jsx-".concat(A.__hash)+" bars__status",children:["STATUS_LOW","low","high"].includes(s)&&(0,f.jsxs)("div",{className:"jsx-".concat(A.__hash)+" bars__status-low",children:[(0,f.jsx)(u.a,{color:"#f90",icon:"fa-exclamation-triangle"}),(0,P.Z)(s)]})})]}),(0,f.jsxs)("div",{ref:b,onMouseDown:function(e){return m(e)},onMouseMove:function(e){return 1===e.buttons&&m(e)},className:"jsx-".concat(A.__hash)+" bar__bars-container",children:[function(){for(var e=[],n={filledBar:"bar__bars-bar-filled",emptyBar:"bar__bars-bar-empty",partialBar:"bar__bars-bar-partial"},r=0;r=0&&s<60?(r=o,i=c,a=0):s>=60&&s<120?(r=c,i=o,a=0):s>=120&&s<180?(r=0,i=o,a=c):s>=180&&s<240?(r=0,i=c,a=o):s>=240&&s<300?(r=c,i=0,a=o):(r=o,i=0,a=c),r=Math.round((r+l)*255),i=Math.round((i+l)*255),a=Math.round((a+l)*255),"#".concat(r.toString(16).padStart(2,"0")).concat(i.toString(16).padStart(2,"0")).concat(a.toString(16).padStart(2,"0"))},q=[".d-flex.jsx-2325468756,.color-picker.jsx-2325468756{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".color-picker.jsx-2325468756{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-9);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;position:relative;height:100%;cursor:pointer;}",".color-picker__info.jsx-2325468756{gap:var(--s-9);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}",".color-picker.jsx-2325468756 .preview-color.jsx-2325468756{width:var(--s-element);aspect-ratio:1;cursor:pointer;border-radius:var(--border-radius);}",".color-picker.jsx-2325468756 .color-canvas.jsx-2325468756{width:100%;border-radius:var(--border-radius);}"];q.__hash="2325468756";var W=function(e){var t=e.hex,n=e.onChange,r=(0,a.useState)(),s=r[0],o=r[1],c=(0,a.useRef)(null);(0,a.useEffect)(function(){if(c.current){var e=c.current;e.width=e.offsetWidth,e.height=e.offsetHeight;var t=e.getContext("2d",{willReadFrequently:!0});if(t){var n=t.createLinearGradient(0,0,e.width,0);n.addColorStop(0,"red"),n.addColorStop(.15,"yellow"),n.addColorStop(.33,"green"),n.addColorStop(.49,"cyan"),n.addColorStop(.67,"blue"),n.addColorStop(.84,"magenta"),n.addColorStop(1,"red"),t.fillStyle=n,t.fillRect(0,0,e.width,e.height)}}},[]);var l=(0,a.useCallback)((0,B.debounce)(function(e){n&&n(e)},1e3),[n]),d=function(e){var t=e.target,n=(t.name,t.value);o("#".concat(n)),6===n.length&&l(n)};return(0,a.useEffect)(function(){s||o(t||"#fff")},[t,o,d]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:q.__hash,children:q}),(0,f.jsxs)("div",{className:"jsx-".concat(q.__hash)+" color-picker",children:[(0,f.jsxs)("div",{className:"jsx-".concat(q.__hash)+" color-picker__info",children:[(0,f.jsx)("div",{style:{backgroundColor:s},className:"jsx-".concat(q.__hash)+" preview-color"}),(0,f.jsxs)("div",{className:"jsx-".concat(q.__hash)+" color-picker__info",children:["#",(0,f.jsx)(T.Z,{value:null==s?void 0:s.replaceAll("#",""),name:"hex",onChange:d,size:"sm"})]})]}),(0,f.jsx)("canvas",{ref:c,onClick:function(e){if(c.current){var n=c.current,r=n.getContext("2d",{willReadFrequently:!0});if(r){var i=n.getBoundingClientRect(),a=e.clientX-i.left,s=e.clientY-i.top,d=r.getImageData(a,s,1,1).data,x="#"+(16777216+(d[0]<<16|d[1]<<8|d[2]<<0)).toString(16).slice(1);t||o(x),l(x)}}},className:"jsx-".concat(q.__hash)+" color-canvas"})]})]})},G=[".knob-container.jsx-1601322626{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;width:100px;height:100px;}",".knob.jsx-1601322626{width:100%;height:100%;border-radius:50%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;-webkit-transition:#1d1d1d 0.3s ease-in-out;transition:#1d1d1d 0.3s ease-in-out;}",".knob.jsx-1601322626:hover{box-shadow:0 0 8px rgba(255,99,71,0.6);}",".label.jsx-1601322626{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:white;font-size:1.2rem;z-index:10;}"];G.__hash="1601322626";var Y=function(e){var t,n,r=e.percent,a=(e.setPercent,e.style),s=e.label,o={background:"conic-gradient(".concat(null!==(t=null==a?void 0:a.color)&&void 0!==t?t:"#ff3300"," 0% ").concat(r,"%, ").concat(null!==(n=null==a?void 0:a.backgroundColor)&&void 0!==n?n:"#000"," ").concat(r,"% 100%)")};return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:G.__hash,children:G}),(0,f.jsx)("div",{className:"jsx-".concat(G.__hash)+" knob-container",children:(0,f.jsx)("div",{style:o,onMouseDown:function(e){},className:"jsx-".concat(G.__hash)+" knob",children:s&&(0,f.jsx)("span",{className:"jsx-".concat(G.__hash)+" label",children:s})})})]})};function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&["toggle","brightness","color"].includes(t))){e.next=23;break}a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return U(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U(e,void 0)}}(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}(L),e.prev=5,a.s();case 7:if((o=a.n()).done){e.next=13;break}return c=o.value,e.next=11,i(c);case 11:e.next=7;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(5),a.e(e.t0);case 18:return e.prev=18,a.f(),e.finish(18);case 21:e.next=26;break;case 23:if(!(null!=n&&n.id)){e.next=26;break}return e.next=26,i(n.id);case 26:r(!1,t,null==n?void 0:n.name);case 27:case"end":return e.stop()}},e,null,[[5,15,18,21]])})),function(e,n){return t.apply(this,arguments)}),J=function(e){B(e).then(function(){s({active:!1}),e&&w(e)})};return(0,a.useEffect)(function(){void 0==h&&J()},[]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:z.__hash,children:z}),(0,f.jsxs)("div",{className:"jsx-".concat(z.__hash)+" lights",children:[(0,f.jsx)(Y,{percent:10}),h&&!m&&(0,f.jsx)(_.Z,{xs:1,sm:3,gap:15,children:Object.entries(h).map(function(e,t){var n=(0,O.Z)(e,2),r=(n[0],n[1]);return(0,f.jsxs)("div",{onDoubleClick:function(){null!=L&&L.includes(r.id_)?(console.log("removeFromGroup(".concat(r.id_,")")),G(r.id_)):(console.log("addToGroup(".concat(r.id_,")")),q(r.id_))},className:"jsx-".concat(z.__hash)+" "+"lights__light ".concat(null!=L&&L.includes(r.id_)?"in-group":""),children:[(0,f.jsxs)("div",{className:"jsx-".concat(z.__hash)+" lights__light-header",children:[(0,f.jsxs)("div",{className:"jsx-".concat(z.__hash)+" lights__light-header--action",children:[(0,f.jsx)(T.Z,{size:"sm",value:r.name,disabled:!0}),(0,f.jsx)(D.Z,{size:"sm",children:"update"})]}),(0,f.jsxs)("div",{className:"jsx-".concat(z.__hash)+" lights__light-header--action",children:[(0,f.jsx)(I.Z,{name:null==r?void 0:r.id_,value:null==r?void 0:r.is_on,onChange:function(){return X("toggle",{id:r.id_})}}),(0,f.jsx)("div",{onClick:function(){return k(r.id_)},className:"jsx-".concat(z.__hash)+" lights__light-header--action",children:(0,f.jsx)(u.a,{icon:"fa-palette"})})]})]}),(null==r?void 0:r.view)!=="color"?(0,f.jsx)(R,{onChange:function(e){0!=String(e).length&&e&&X("brightness",{id:r.id_,bri:e,name:r.name})},barCount:5,percentage:(null==r?void 0:r.bri)*100/254}):(0,f.jsx)(W,{hex:r.hex,onChange:function(e){return X("color",{id:r.id_,hex:e,name:r.name})}})]},t)})}),"object"==typeof m&&(0,f.jsx)(R,{onChange:function(e){0!=String(e).length&&e&&(String(e).startsWith("#")?X("color",{id:m.id_,hex:e}):X("brightness",{id:m.id_,bri:e}))},barCount:5,percentage:(null==m?void 0:m.bri)*100/254})]})]})},$=n(11907),K=n(39925),Q=function(e){e.vid;var t=(0,$.aF)(),n={home:(0,f.jsx)(function(){return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:s.__hash,children:s}),(0,f.jsx)("div",{className:"jsx-".concat(s.__hash)+" home__default",children:(0,f.jsxs)("div",{className:"jsx-".concat(s.__hash)+" home__default--title",children:[t&&(null==t?void 0:t.name)&&(0,K.Z)(t.name)||"",", Home Automation."]})})]})},{}),surveillance:(0,f.jsx)(k,{}),light:(0,f.jsx)(J,{})};return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:s.__hash,children:s}),(0,f.jsx)(N.Z,{viewName:"home",views:n})]})}},79785:function(e,t,n){var r=n(67294);t.Z=function(e){var t=e.cls,n=e.type,i=e.variant,a=e.extras,s=e.minWidths,o=e.maxWidths,c=e.width,l=e.standalones,d=(0,r.useState)(t),x=d[0],h=d[1];return(0,r.useEffect)(function(){var e=t,r=function(n){n&&(e+=" ".concat(t,"__").concat(n))};r(i),r(n),a&&a.forEach(function(n){null!=n&&n.length&&(e+=" ".concat(t,"__").concat(n))}),l&&l.forEach(function(t){null!=t&&t.length&&(e+=" ".concat(t))});var d=function(n,r){c&&n.forEach(function(n){var i="number"==typeof n.width?n.width:"string"==typeof n.width&&n.width.endsWith("px")?parseInt(n.width):0;(r?i>c:i1?"fas-minus":"fa-trash-can",onClick:function(){return j("minus")},color:1==e?"red":""},afterIcon:{icon:"fas-plus",onClick:function(){return j("plus")}}}),o&&Object.entries(o).forEach(function(t){var e=(0,n.Z)(t,2),i=e[0],a=e[1];h[i]=a});var p=(0,c.useRef)(x()(function(t){isNaN(Number(t))||i(Number(t))},1500)).current,b=(0,c.useCallback)(function(t){f(t.target.value),p(t.target.value)},[p]),j=(0,c.useCallback)(function(t){"number"==typeof e&&i(e+("plus"===t?1:-1))},[e,i]);return(0,c.useEffect)(function(){e&&f(e.toString())},[e]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s(),{id:r.__hash,children:r}),(0,d.jsx)("div",{className:"jsx-".concat(r.__hash)+" "+"ui-pill ".concat(null!=o&&o.responsive?" ui-pill-responsive":""),children:(0,d.jsx)(l.Z,{name:"ui-pill",variant:a,traits:h,value:u,onChange:b})})]})}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[559],{97346:function(t,e,i){i.d(e,{Z:function(){return j}});var n=i(50029),a=i(21378),s=i.n(a),c=i(64687),r=i.n(c),l=i(67294),o=[".d-flex.jsx-2105582434,.checkout-modal.jsx-2105582434,.checkout-button.jsx-2105582434{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;}",".checkout-button.jsx-2105582434{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}",".checkout-modal.jsx-2105582434{height:100%;width:100%;}"];o.__hash="2105582434";var x=i(10577),d=i(47265),m=i(11163),u=i(10394),f=i(36946),h=i(44983),p=i(42711),b=i(85893),j=function(t){var e,i=t.label,a=t.isModal,c=void 0!==a&&a,j=t.traits,k=t.collect,v=t.method_id,w=t.customer_id,g=(0,h.Z)().cart,_=(0,l.useState)(),y=_[0],N=_[1],O=(0,l.useState)(),Z=O[0],C=O[1],E=(0,m.useRouter)(),z=(0,f.dd)(),S=z.isModalOpen;z.openModal,z.closeModal;var P=(0,u.ko)("IMemberService"),F=(e=(0,n.Z)(r().mark(function t(){return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(k&&Z)){t.next=12;break}return t.prev=1,t.next=4,P.processTransaction(Z);case 4:t.sent,p.Z.getCookie("transaction-token")?E.push("/transaction"):N("No Transaction Cookie"),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1),N(t.t0);case 12:c||S||E.push("/checkout");case 13:case"end":return t.stop()}},t,null,[[1,9]])})),function(){return e.apply(this,arguments)}),R=function(){g&&g.map(function(t){return{price:t.price.id,quantity:t.price.qty}}),C({cart_items:g||[],method_id:v,customer_id:w})};return(0,l.useEffect)(function(){R()},[]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s(),{id:o.__hash,children:o}),y&&"[ CheckoutButton REsp( ERROR) ]: "+JSON.stringify(y),(0,b.jsx)("div",{className:"jsx-".concat(o.__hash)+" checkout-button",children:(0,b.jsx)(x.Z,{variant:"glow",traits:j,onClick:F,children:"".concat(void 0===i?"Checkout":i," ").concat((0,d.cz)(g))})})]})}},46026:function(t,e,i){i.d(e,{Z:function(){return p}});var n=i(59499),a=i(21378),s=i.n(a),c=i(67294),r=[".d-flex.jsx-2178991106,.added-to-cart-body.jsx-2178991106,.added-to-cart.jsx-2178991106{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".added-to-cart.jsx-2178991106{width:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;gap:var(--s-element);}",".added-to-cart-title.jsx-2178991106{font-size:var(--s-2);color:var(--gray-30);}",".added-to-cart-body.jsx-2178991106{width:100%;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;color:var(--gray-40);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;}"];r.__hash="2178991106";var l=i(10577),o=i(84520),x=i(47265),d=i(36946),m=i(44983),u=i(85893);function f(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function h(t){for(var e=1;e1?"fas-minus":"fa-trash-can",onClick:function(){return j("minus")},color:1==e?"red":""},afterIcon:{icon:"fas-plus",onClick:function(){return j("plus")}}}),o&&Object.entries(o).forEach(function(t){var e=(0,n.Z)(t,2),i=e[0],a=e[1];h[i]=a});var p=(0,c.useRef)(x()(function(t){isNaN(Number(t))||i(Number(t))},1500)).current,b=(0,c.useCallback)(function(t){f(t.target.value),p(t.target.value)},[p]),j=(0,c.useCallback)(function(t){"number"==typeof e&&i(e+("plus"===t?1:-1))},[e,i]);return(0,c.useEffect)(function(){e&&f(e.toString())},[e]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s(),{id:r.__hash,children:r}),(0,d.jsx)("div",{className:"jsx-".concat(r.__hash)+" "+"ui-pill ".concat(null!=o&&o.responsive?" ui-pill-responsive":""),children:(0,d.jsx)(l.Z,{name:"ui-pill",variant:a,traits:h,value:u,onChange:b})})]})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/6005-48b138da0c850465.js b/_next/static/chunks/6005-48b138da0c850465.js deleted file mode 100644 index 24005f3af..000000000 --- a/_next/static/chunks/6005-48b138da0c850465.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6005],{42450:function(e,t,r){r.d(t,{Z:function(){return j}});var s=r(59499),n=r(50029),o=r(21378),a=r.n(o),i=r(64687),c=r.n(i),l=r(67294),u=[".d-flex.jsx-1944248964,.contact-form.jsx-1944248964{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".contact-form.jsx-1944248964{width:100%;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".contact-form__title.jsx-1944248964{font-size:var(--s-1);color:var(--gray-40);margin:var(--s-4) 0;text-transform:capitalize;}",".contact-form--action.jsx-1944248964{--ui-icon-color:var(--gray-20);}",".contact-form__payment-form.jsx-1944248964{width:100%;}"];u.__hash="1944248964";var d=r(38903),x=r(47265),v=r(11907),m=r(98014),f=r(85893);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function h(e){for(var t=1;t=3?e.error="too long":e.error&&delete e.error,e.value=s),e});d(!!n.find(function(e){return void 0==e.value||0==e.value})),i(n)},onSubmit:function(){var e,r;t({name:null===(e=o.find(function(e){return"name"==e.name}))||void 0===e?void 0:e.value,value:null===(r=o.find(function(e){return"value"==e.name}))||void 0===r?void 0:r.value,selected:!0})},disabled:u})]})},z=r(36946);function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function S(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=t.offsetY,s=void 0===r?200:r,n=t.min,o=t.max,a=null===(e=(0,D.Z)())||void 0===e?void 0:e.width,i=(0,l.useState)(null),c=i[0],u=i[1];return(0,l.useEffect)(function(){if(c){var e=document.getElementById(c);if(e&&!(n&&ao)){var t=e.getBoundingClientRect().top+window.pageYOffset+Number(-1*s);window.scrollTo({top:t,behavior:"smooth"})}}},[c]),{scrollTo:c,setScrollTo:function(e){u(null),setTimeout(function(){u(e)},0)}}};function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function C(e){for(var t=1;t=3?e.error="too long":e.error&&delete e.error,e.value=s),e});d(!!n.find(function(e){return void 0==e.value||0==e.value})),i(n)},onSubmit:function(){var e,r;t({name:null===(e=o.find(function(e){return"name"==e.name}))||void 0===e?void 0:e.value,value:null===(r=o.find(function(e){return"value"==e.name}))||void 0===r?void 0:r.value,selected:!0})},disabled:u})]})},z=r(36946);function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function S(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=t.offsetY,s=void 0===r?200:r,n=t.min,o=t.max,a=null===(e=(0,D.Z)())||void 0===e?void 0:e.width,i=(0,l.useState)(null),c=i[0],u=i[1];return(0,l.useEffect)(function(){if(c){var e=document.getElementById(c);if(e&&!(n&&ao)){var t=e.getBoundingClientRect().top+window.pageYOffset+Number(-1*s);window.scrollTo({top:t,behavior:"smooth"})}}},[c]),{scrollTo:c,setScrollTo:function(e){u(null),setTimeout(function(){u(e)},0)}}};function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function C(e){for(var t=1;t=3?e.error="too long":e.error&&delete e.error,e.value=n),e});o(!!s.find(function(e){return void 0==e.value||0==e.value})),c(s)};return(0,s.useEffect)(function(){},[l]),[i,l]},b=i(10394),w=i(98014),j=i(55140),p=i(85893),y=function(e){var t,i=g([{name:"username",label:"username",type:"text",autoComplete:"off"},{label:"password",name:"password",type:"password",autoComplete:"off"}]),a=(0,v.Z)(i,2),s=a[0],r=a[1],o=(0,b.ko)("ISocialService"),c=(t=(0,x.Z)(h().mark(function t(i){var a,n,r,c,l;return h().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("[ onSubmit ]",i),r=null===(a=(0,w.PI)(s,"username"))||void 0===a?void 0:a.value,c=null===(n=(0,w.PI)(s,"password"))||void 0===n?void 0:n.value,l={email:e.email,username:r,password:c},t.prev=4,t.next=7,o.instagramAuthenticate(l);case 7:console.log("[ onSubmit ] ( SUCCESS! )",t.sent),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(4),console.log("Instagram [ onSubmit ]( error )",t.t0);case 14:case"end":return t.stop()}},t,null,[[4,11]])})),function(e){return t.apply(this,arguments)});return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(n(),{id:m.__hash,children:m}),(0,p.jsxs)("div",{className:"jsx-".concat(m.__hash)+" instagram-sign-in",children:[(0,p.jsxs)("div",{className:"jsx-".concat(m.__hash)+" instagram-sign-in__header",children:["Authenticate ",(0,p.jsx)(j.a,{icon:"fa-instagram"})]}),(0,p.jsx)(f.Z,{fields:s,onChange:r,onSubmit:c,submitText:"instagram sign in"})]})]})},_=i(51633);function k(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,a)}return i}function N(e){for(var t=1;tc:n*.back-btn.jsx-437419458{display:none;}",".ui-view-layout__actions.jsx-437419458{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;gap:var(--s-9);}",".ui-view-layout__view.jsx-437419458{height:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);}",".ui-view-layout__view.jsx-437419458,.ui-view-layout__actions.jsx-437419458{width:100%;}",".ui-view-layout__header.jsx-437419458{width:var(--s-4-width);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding:0 var(--s-4) var(--s-9);}","@media (max-width:1100px){.ui-view-layout__header.jsx-437419458{width:var(--s-9-width);padding:0 var(--s-9) var(--s-9);}}",".ui-view-layout__header-title.jsx-437419458{font-size:var(--s-1);--ui-icon-color:var(--primary-50);color:var(--primary-50);text-transform:capitalize;}",".current.jsx-437419458{position:absolute;top:calc(var(--s-4) * 0.5);color:var(--gray-30-o);right:var(--s-9);height:var(--s-6);line-height:1;}"];r.__hash="437419458";var o=i(85153),c=i(27812),l=function(e,t){var i=(0,s.useState)([]),a=i[0],n=i[1],r=(0,s.useState)(),o=r[0],l=r[1],d=function(t){var i=String(t);e&&e[i]&&(l(e[i]),n(function(e){return[].concat((0,c.Z)(e),[i])}))};return(0,s.useEffect)(function(){t&&null!=e&&e[t]&&a[a.length-1]!==t&&d(t)},[e,t]),{view:o,setView:d,last:a[a.length-1],goBack:function(){n(function(t){if(t.length>1){var i=t.slice(0,-1);return l(e[i[i.length-1]]),i}return t})}}},d=i(10577),x=i(85893),v=function(e){var t=e.views,i=e.currentView,a=(e.onChange,e.title),c=(e.actions,e.showTitle),v=e.backBtn;(0,s.useEffect)(function(){},[i]);var u=l(t,i),h=u.view,m=(u.setView,u.goBack),f=u.last;return t&&h&&"loading"!=i?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n(),{id:r.__hash,children:r}),(0,x.jsxs)("div",{className:"jsx-".concat(r.__hash)+" ui-view-layout",children:[!!(void 0!==v&&v&&"start"!==f)&&(0,x.jsx)("div",{className:"jsx-".concat(r.__hash)+" back-btn",children:(0,x.jsx)("div",{className:"jsx-".concat(r.__hash),children:(0,x.jsx)(d.Z,{traits:{beforeIcon:"fa-chevron-left"},variant:"flat",onClick:m,children:"Back"})})}),void 0!==c&&c&&"start"!==f&&(0,x.jsx)("div",{className:"jsx-".concat(r.__hash)+" ui-view-layout__header",children:(0,x.jsx)("div",{className:"jsx-".concat(r.__hash)+" ui-view-layout__header-title",children:a})}),(0,x.jsx)("div",{"data-view":i,className:"jsx-".concat(r.__hash)+" ui-view-layout__view",children:h||(0,x.jsx)("div",{className:"jsx-".concat(r.__hash),children:"View not found"})})]})]}):(0,x.jsx)(o.Z,{})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/6378-6832ddf77049c5c9.js b/_next/static/chunks/6378-6832ddf77049c5c9.js new file mode 100644 index 000000000..776459af0 --- /dev/null +++ b/_next/static/chunks/6378-6832ddf77049c5c9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6378],{16378:function(e,t,i){i.d(t,{Z:function(){return E}});var a=i(21378),n=i.n(a),s=i(67294),r=[".d-flex.jsx-2989434223,.social__default.jsx-2989434223{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".social__default.jsx-2989434223{width:var(--s-4-width);padding:var(--s-4);}",".social__default--title.jsx-2989434223{color:var(--gray-30);font-size:var(--s-3);}",".social.jsx-2989434223{width:100%;height:-webkit-max-content;height:-moz-max-content;height:max-content;}"];r.__hash="2989434223";var o=i(11907),c=i(85153),l=i(59499),d=[".d-flex.jsx-2384609631,.instagram.jsx-2384609631{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}",".instagram.jsx-2384609631{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;color:var(--gray-90);gap:var(--s-4);height:100%;width:100%;min-height:500px;border-radius:var(--border-radius);}"];d.__hash="2384609631";var x=i(50029),v=i(16835),u=i(64687),h=i.n(u),m=[".d-flex.jsx-3982938688,.instagram-sign-in__header.jsx-3982938688,.instagram-sign-in.jsx-3982938688{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".instagram-sign-in.jsx-3982938688{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-element);width:var(--s-4-width);padding:var(--s-1) var(--s-4) var(--s-5);background-color:var(--gray-90);border-radius:var(--border-radius);max-width:800px;--ui-icon-size:var(--s-1);font-size:var(--s-1);}",".instagram-sign-in__header.jsx-3982938688{color:var(--blue-30);--ui-icon-color:var(--blue-30);gap:var(--s-10);width:100%;}","@media (max-width:1100px){.instagram-sign-in.jsx-3982938688{max-width:unset;}}"];m.__hash="3982938688";var f=i(38903),g=function(e){var t=(0,s.useState)(e),i=t[0],a=t[1],n=(0,s.useState)(!0),r=(n[0],n[1]),o=function(e){void 0!==e&&r(e)},c=function(e){void 0!==e&&a(e)},l=function(e){var t=e.target,a=t.name,n=t.value,s=i.map(function(e){return e.name==a&&("value"==e.name&&String(e.value).length>=3?e.error="too long":e.error&&delete e.error,e.value=n),e});o(!!s.find(function(e){return void 0==e.value||0==e.value})),c(s)};return(0,s.useEffect)(function(){},[l]),[i,l]},b=i(10394),w=i(98014),j=i(6253),p=i(85893),y=function(e){var t,i=g([{name:"username",label:"username",type:"text",autoComplete:"off"},{label:"password",name:"password",type:"password",autoComplete:"off"}]),a=(0,v.Z)(i,2),s=a[0],r=a[1],o=(0,b.ko)("ISocialService"),c=(t=(0,x.Z)(h().mark(function t(i){var a,n,r,c,l;return h().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("[ onSubmit ]",i),r=null===(a=(0,w.PI)(s,"username"))||void 0===a?void 0:a.value,c=null===(n=(0,w.PI)(s,"password"))||void 0===n?void 0:n.value,l={email:e.email,username:r,password:c},t.prev=4,t.next=7,o.instagramAuthenticate(l);case 7:console.log("[ onSubmit ] ( SUCCESS! )",t.sent),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(4),console.log("Instagram [ onSubmit ]( error )",t.t0);case 14:case"end":return t.stop()}},t,null,[[4,11]])})),function(e){return t.apply(this,arguments)});return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(n(),{id:m.__hash,children:m}),(0,p.jsxs)("div",{className:"jsx-".concat(m.__hash)+" instagram-sign-in",children:[(0,p.jsxs)("div",{className:"jsx-".concat(m.__hash)+" instagram-sign-in__header",children:["Authenticate ",(0,p.jsx)(j.a,{icon:"fa-instagram"})]}),(0,p.jsx)(f.Z,{fields:s,onChange:r,onSubmit:c,submitText:"instagram sign in"})]})]})},_=i(51633);function k(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,a)}return i}function N(e){for(var t=1;tc:n*.back-btn.jsx-437419458{display:none;}",".ui-view-layout__actions.jsx-437419458{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;gap:var(--s-9);}",".ui-view-layout__view.jsx-437419458{height:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);}",".ui-view-layout__view.jsx-437419458,.ui-view-layout__actions.jsx-437419458{width:100%;}",".ui-view-layout__header.jsx-437419458{width:var(--s-4-width);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding:0 var(--s-4) var(--s-9);}","@media (max-width:1100px){.ui-view-layout__header.jsx-437419458{width:var(--s-9-width);padding:0 var(--s-9) var(--s-9);}}",".ui-view-layout__header-title.jsx-437419458{font-size:var(--s-1);--ui-icon-color:var(--primary-50);color:var(--primary-50);text-transform:capitalize;}",".current.jsx-437419458{position:absolute;top:calc(var(--s-4) * 0.5);color:var(--gray-30-o);right:var(--s-9);height:var(--s-6);line-height:1;}"];r.__hash="437419458";var o=i(85153),c=i(27812),l=function(e,t){var i=(0,s.useState)([]),a=i[0],n=i[1],r=(0,s.useState)(),o=r[0],l=r[1],d=function(t){var i=String(t);e&&e[i]&&(l(e[i]),n(function(e){return[].concat((0,c.Z)(e),[i])}))};return(0,s.useEffect)(function(){t&&null!=e&&e[t]&&a[a.length-1]!==t&&d(t)},[e,t]),{view:o,setView:d,last:a[a.length-1],goBack:function(){n(function(t){if(t.length>1){var i=t.slice(0,-1);return l(e[i[i.length-1]]),i}return t})}}},d=i(10577),x=i(85893),v=function(e){var t=e.views,i=e.currentView,a=(e.onChange,e.title),c=(e.actions,e.showTitle),v=e.backBtn;(0,s.useEffect)(function(){},[i]);var u=l(t,i),h=u.view,m=(u.setView,u.goBack),f=u.last;return t&&h&&"loading"!=i?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n(),{id:r.__hash,children:r}),(0,x.jsxs)("div",{className:"jsx-".concat(r.__hash)+" ui-view-layout",children:[!!(void 0!==v&&v&&"start"!==f)&&(0,x.jsx)("div",{className:"jsx-".concat(r.__hash)+" back-btn",children:(0,x.jsx)("div",{className:"jsx-".concat(r.__hash),children:(0,x.jsx)(d.Z,{traits:{beforeIcon:"fa-chevron-left"},variant:"flat",onClick:m,children:"Back"})})}),void 0!==c&&c&&"start"!==f&&(0,x.jsx)("div",{className:"jsx-".concat(r.__hash)+" ui-view-layout__header",children:(0,x.jsx)("div",{className:"jsx-".concat(r.__hash)+" ui-view-layout__header-title",children:a})}),(0,x.jsx)("div",{"data-view":i,className:"jsx-".concat(r.__hash)+" ui-view-layout__view",children:h||(0,x.jsx)("div",{className:"jsx-".concat(r.__hash),children:"View not found"})})]})]}):(0,x.jsx)(o.Z,{})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/7268-197695e435301802.js b/_next/static/chunks/7268-197695e435301802.js new file mode 100644 index 000000000..b32d4cf03 --- /dev/null +++ b/_next/static/chunks/7268-197695e435301802.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7268],{97268:function(e,t,n){n.d(t,{Z:function(){return I}});var r=n(50029),s=n(16835),i=n(21378),c=n.n(i),o=n(64687),a=n.n(o),l=n(67294),d=[".d-flex.jsx-428958543,.user-methods.jsx-428958543 .user-methods__existing.jsx-428958543 .user-methods__list.jsx-428958543,.user-methods.jsx-428958543 .user-methods__existing.jsx-428958543{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".brdr.jsx-428958543{border:solid 1px var(--gray-80);outline:solid 1px var(--gray-60);}",".body.jsx-428958543{padding:0 var(--s-4);}",".user-methods.jsx-428958543{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);width:100%;}",".user-methods.jsx-428958543 .user-methods__existing.jsx-428958543{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;box-sizing:border-box;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);padding:var(--s-4);border-radius:var(--border-radius);border:solid 1px var(--gray-70);background-color:var(--gray-80);height:100%;-webkit-transition:all 3s ease-out;transition:all 3s ease-out;}",".user-methods.jsx-428958543 .user-methods__existing--title.jsx-428958543{width:100%;font-size:var(--s-3);text-transform:capitalize;color:var(--gray-50);}",".user-methods.jsx-428958543 .user-methods__existing__selected.jsx-428958543{-webkit-transition:all 3s ease-out;transition:all 3s ease-out;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}",".user-methods.jsx-428958543 .user-methods__existing.jsx-428958543 .existing__select.jsx-428958543{color:var(--orange-50);text-indent:var(--s-4);}",".user-methods.jsx-428958543 .user-methods__existing.jsx-428958543 .existing__selected.jsx-428958543{color:var(--white);}",".user-methods.jsx-428958543 .user-methods__existing.jsx-428958543 .existing__select.jsx-428958543,.user-methods.jsx-428958543 .user-methods__existing.jsx-428958543 .existing__selected.jsx-428958543{width:100%;font-size:var(--s-3);font-family:Game;border-radius:var(--border-radius);}",".user-methods.jsx-428958543 .user-methods__existing.jsx-428958543 .user-methods__list.jsx-428958543{width:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-7);}"];d.__hash="428958543";var u=n(10394),x=n(11907),h=n(59499),m=[".d-flex.jsx-2724404194,.current-method__response.jsx-2724404194{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".current-method--container.jsx-2724404194{width:100%;}",".current-method__response.jsx-2724404194{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding:0 10px;height:var(--s-element);color:var(--primary-50);background-color:var(--gray-60);}",".current-method__response.current-method__response-error.jsx-2724404194{color:var(--orange-50);}"];m.__hash="2724404194";var f=n(27834),p=["@-webkit-keyframes tease-jsx-1857110766{0%{width:calc(100% - 36px);}40%{width:calc(100% - 36px - var(--s-3));}50%{width:calc(100% - 36px - var(--s-4));}70%{width:calc(100% - 36px - var(--s-3));}100%{width:calc(100% - 36px - var(--s-3));}}","@keyframes tease-jsx-1857110766{0%{width:calc(100% - 36px);}40%{width:calc(100% - 36px - var(--s-3));}50%{width:calc(100% - 36px - var(--s-4));}70%{width:calc(100% - 36px - var(--s-3));}100%{width:calc(100% - 36px - var(--s-3));}}","@-webkit-keyframes show-jsx-1857110766{0%{width:calc(100% - 36px);}100%{width:calc(100% - 140px);}}","@keyframes show-jsx-1857110766{0%{width:calc(100% - 36px);}100%{width:calc(100% - 140px);}}","@-webkit-keyframes hide-jsx-1857110766{0%{width:calc(100% - 140px);}100%{width:calc(100% - 36px);}}","@keyframes hide-jsx-1857110766{0%{width:calc(100% - 140px);}100%{width:calc(100% - 36px);}}",".d-flex.jsx-1857110766,.current-method.jsx-1857110766 .current-method__behind.jsx-1857110766 .current-method__set-default.jsx-1857110766:hover.jsx-1857110766::after,.current-method__content.jsx-1857110766 .current-method__exp.jsx-1857110766,.current-method__content.jsx-1857110766 .current-method__info.jsx-1857110766,.current-method__content.jsx-1857110766,.current-method.jsx-1857110766{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".current-method.jsx-1857110766{cursor:pointer;background-color:var(--primary-o);color:var(--gray-90);position:relative;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;--ui-icon-color:var(--gray-20);width:100%;border-radius:var(--border-radius);border:solid 1px var(--gray-60);overflow:hidden;}",".current-method__content.jsx-1857110766{background-color:var(--gray-90);--ui-icon-color:var(--gray-40);color:var(--gray-40);border-right:solid 5px var(--gray-50);height:var(--s-element);border-radius:var(--border-radius) 0 0 var(--border-radius);width:calc(100% - 36px);padding:0 18px;line-height:1;font-size:var(--s-5);-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;z-index:2;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-animation-play-state:paused;animation-play-state:paused;}",".current-method__content.selected.jsx-1857110766{background-color:var(--primary-50);}","@media (max-width:900px){.current-method__content.jsx-1857110766{font-size:var(--s-6);}}",".current-method__content.current-method__content-show.jsx-1857110766{-webkit-animation:show-jsx-1857110766 1s forwards;animation:show-jsx-1857110766 1s forwards;-webkit-animation-play-state:running;animation-play-state:running;}",".current-method__content.current-method__content-hide.jsx-1857110766{-webkit-animation:hide-jsx-1857110766 1s forwards;animation:hide-jsx-1857110766 1s forwards;-webkit-animation-play-state:running;animation-play-state:running;}",".current-method__content.jsx-1857110766:hover.current-method__content-show{-webkit-animation:show-jsx-1857110766 1s forwards;animation:show-jsx-1857110766 1s forwards;-webkit-animation-play-state:running;animation-play-state:running;width:calc(100% - 140px);}",".current-method__content.jsx-1857110766:hover.current-method__content-show.jsx-1857110766:hover{width:calc(100% - 140px) !important;}",".current-method__content.jsx-1857110766:active{background-color:var(--primary-50);}",".current-method__content.jsx-1857110766 .current-method__info.jsx-1857110766{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;gap:18px;--ui-icon-size:var(--s-2);-webkit-letter-spacing:2px;-moz-letter-spacing:2px;-ms-letter-spacing:2px;letter-spacing:2px;}","@media (max-width:900px){.current-method__content.jsx-1857110766 .current-method__info.jsx-1857110766{--ui-icon-size:var(--s-5);}}",".current-method__content.jsx-1857110766 .current-method__info.jsx-1857110766 .current-method__default.jsx-1857110766{position:relative;}",'.current-method__content.jsx-1857110766 .current-method__info.jsx-1857110766 .current-method__default.jsx-1857110766::after{top:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);padding:4px 7px;line-height:1;font-weight:900;color:var(--gray-20);background-color:var(--primary-o);font-style:italic;left:0;position:absolute;font-size:var(--s-8);border-radius:var(--s-9);border:solid 2px var(--gray-20);content:"DEFAULT";}',".current-method__content.jsx-1857110766 .current-method__exp.jsx-1857110766{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}",".current-method.jsx-1857110766 .current-method__behind.jsx-1857110766{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:absolute;height:var(--s-element);right:0;top:0;bottom:0;z-index:1;}",".current-method.jsx-1857110766 .current-method__behind.jsx-1857110766>div.jsx-1857110766{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:50px;aspect-ratio:1/1;}",".current-method.jsx-1857110766 .current-method__behind.jsx-1857110766 .current-method__set-default.jsx-1857110766{position:relative;overflow:visible;--ui-icon-color:var(--primary-o);}",".current-method.jsx-1857110766 .current-method__behind.jsx-1857110766 .current-method__set-default.jsx-1857110766:hover{background-color:var(--white);z-index:999;}",".current-method.jsx-1857110766 .current-method__behind.jsx-1857110766 .current-method__set-default.jsx-1857110766:hover.jsx-1857110766::after{left:0;text-align:center;background-color:var(--gray-30-o);color:var(--gray-90);content:attr(data-default);font-size:var(--s-8);aspect-ratio:1/1;width:var(--s-element);padding:2px;position:absolute;}",".current-method.jsx-1857110766 .current-method__behind.jsx-1857110766 .current-method__delete.jsx-1857110766:hover{background-color:var(--red-50);}"];p.__hash="1857110766";var _=n(6253),j=n(85893),b=function(e){var t,n,i,o,d,x=e.method,h=e.selected,m=e.default_payment_method,b=e.onDeleteSuccess,v=e.methodsClass,w=e.handleClick,g=(0,u.ko)("IMemberService"),k=(0,f.lm)(),y=(0,s.Z)(k,2),S=(y[0],y[1]),O=(t=(0,r.Z)(a().mark(function e(t){var n,r;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return S({active:!0,list:[{label:"deleting payment method"}]}),e.next=3,g.deleteMethod(t);case 3:S({active:!0,persistence:3e3,list:[{label:"payment method"},{label:r=(n=e.sent).message?n.message:"*".concat(n.message)}]}),b(r);case 7:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),N=(n=(0,r.Z)(a().mark(function e(t){var n,r;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.toggleCustomerDefaultMethod(t);case 3:return n=e.sent,r=function(){return n.message.includes("removed")},e.abrupt("return",r());case 8:e.prev=8,e.t0=e.catch(0),console.log("[ SET DEFAULT METHOD ( ERROR ) ]",e.t0);case 11:case"end":return e.stop()}},e,null,[[0,8]])})),function(e){return n.apply(this,arguments)}),Z=function(e,t){"delete"===t?O(e):"default"===t&&N(e)};return((0,l.useEffect)(function(){},[x,v]),"object"==typeof v&&null!=x&&x.card)?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(c(),{id:p.__hash,children:p}),(0,j.jsxs)("div",{className:"jsx-".concat(p.__hash)+" current-method",children:[(0,j.jsxs)("div",{onClick:function(){return w(x)},className:"jsx-".concat(p.__hash)+" "+"".concat(v&&(null===(i=v[x.id])||void 0===i||null===(i=i.content)||void 0===i?void 0:i.join(" ").trim())," ").concat(h&&(null==h?void 0:h.id)===x.id?" selected":""),children:[(0,j.jsxs)("div",{className:"jsx-".concat(p.__hash)+" current-method__info",children:[(0,j.jsx)(_.a,{icon:x.card.brand}),"**** **** **** ".concat(x.card.last4),x.id==m&&(0,j.jsx)("span",{className:"jsx-".concat(p.__hash)+" current-method__default"})]}),(0,j.jsxs)("div",{className:"jsx-".concat(p.__hash)+" current-method__exp",children:[1==String(x.card.exp_month).length?"0".concat(x.card.exp_month):x.card.exp_month," / ",x.card.exp_year]})]}),(0,j.jsxs)("div",{className:"jsx-".concat(p.__hash)+" current-method__behind",children:[(0,j.jsx)("div",{"data-default":"".concat(x.id==m?"remove":"set"," default"),onClick:function(){return Z(x.id,"default")},className:"jsx-".concat(p.__hash)+" current-method__set-default",children:(0,j.jsx)(_.a,{icon:null===(o=v[x.id])||void 0===o?void 0:o.icons.default})}),(0,j.jsx)("div",{onClick:function(){return Z(x.id,"delete")},className:"jsx-".concat(p.__hash)+" current-method__delete",children:(0,j.jsx)(_.a,{icon:null===(d=v[x.id])||void 0===d?void 0:d.icons.delete})})]})]})]}):(0,j.jsx)(j.Fragment,{children:"Loading cards"})};function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;tdiv.jsx-1857110766{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:50px;aspect-ratio:1/1;}",".current-method.jsx-1857110766 .current-method__behind.jsx-1857110766 .current-method__set-default.jsx-1857110766{position:relative;overflow:visible;--ui-icon-color:var(--primary-o);}",".current-method.jsx-1857110766 .current-method__behind.jsx-1857110766 .current-method__set-default.jsx-1857110766:hover{background-color:var(--white);z-index:999;}",".current-method.jsx-1857110766 .current-method__behind.jsx-1857110766 .current-method__set-default.jsx-1857110766:hover.jsx-1857110766::after{left:0;text-align:center;background-color:var(--gray-30-o);color:var(--gray-90);content:attr(data-default);font-size:var(--s-8);aspect-ratio:1/1;width:var(--s-element);padding:2px;position:absolute;}",".current-method.jsx-1857110766 .current-method__behind.jsx-1857110766 .current-method__delete.jsx-1857110766:hover{background-color:var(--red-50);}"];p.__hash="1857110766";var _=n(55140),j=n(85893),b=function(e){var t,n,i,o,d,x=e.method,h=e.selected,m=e.default_payment_method,b=e.onDeleteSuccess,v=e.methodsClass,w=e.handleClick,g=(0,u.ko)("IMemberService"),k=(0,f.lm)(),y=(0,s.Z)(k,2),S=(y[0],y[1]),O=(t=(0,r.Z)(a().mark(function e(t){var n,r;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return S({active:!0,list:[{label:"deleting payment method"}]}),e.next=3,g.deleteMethod(t);case 3:S({active:!0,persistence:3e3,list:[{label:"payment method"},{label:r=(n=e.sent).message?n.message:"*".concat(n.message)}]}),b(r);case 7:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),N=(n=(0,r.Z)(a().mark(function e(t){var n,r;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.toggleCustomerDefaultMethod(t);case 3:return n=e.sent,r=function(){return n.message.includes("removed")},e.abrupt("return",r());case 8:e.prev=8,e.t0=e.catch(0),console.log("[ SET DEFAULT METHOD ( ERROR ) ]",e.t0);case 11:case"end":return e.stop()}},e,null,[[0,8]])})),function(e){return n.apply(this,arguments)}),Z=function(e,t){"delete"===t?O(e):"default"===t&&N(e)};return((0,l.useEffect)(function(){},[x,v]),"object"==typeof v&&null!=x&&x.card)?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(c(),{id:p.__hash,children:p}),(0,j.jsxs)("div",{className:"jsx-".concat(p.__hash)+" current-method",children:[(0,j.jsxs)("div",{onClick:function(){return w(x)},className:"jsx-".concat(p.__hash)+" "+"".concat(v&&(null===(i=v[x.id])||void 0===i||null===(i=i.content)||void 0===i?void 0:i.join(" ").trim())," ").concat(h&&(null==h?void 0:h.id)===x.id?" selected":""),children:[(0,j.jsxs)("div",{className:"jsx-".concat(p.__hash)+" current-method__info",children:[(0,j.jsx)(_.a,{icon:x.card.brand}),"**** **** **** ".concat(x.card.last4),x.id==m&&(0,j.jsx)("span",{className:"jsx-".concat(p.__hash)+" current-method__default"})]}),(0,j.jsxs)("div",{className:"jsx-".concat(p.__hash)+" current-method__exp",children:[1==String(x.card.exp_month).length?"0".concat(x.card.exp_month):x.card.exp_month," / ",x.card.exp_year]})]}),(0,j.jsxs)("div",{className:"jsx-".concat(p.__hash)+" current-method__behind",children:[(0,j.jsx)("div",{"data-default":"".concat(x.id==m?"remove":"set"," default"),onClick:function(){return Z(x.id,"default")},className:"jsx-".concat(p.__hash)+" current-method__set-default",children:(0,j.jsx)(_.a,{icon:null===(o=v[x.id])||void 0===o?void 0:o.icons.default})}),(0,j.jsx)("div",{onClick:function(){return Z(x.id,"delete")},className:"jsx-".concat(p.__hash)+" current-method__delete",children:(0,j.jsx)(_.a,{icon:null===(d=v[x.id])||void 0===d?void 0:d.icons.delete})})]})]})]}):(0,j.jsx)(j.Fragment,{children:"Loading cards"})};function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t=e||r<0||j&&n>=x}function _(){var t,r,n,a=i();if(b(a))return y(a);u=setTimeout(_,(t=a-p,r=a-d,n=e-t,j?s(n,x-r):n))}function y(t){return(u=void 0,h&&o)?v(t):(o=l=void 0,f)}function g(){var t,r=i(),n=b(r);if(o=arguments,l=this,p=r,n){if(void 0===u)return d=t=p,u=setTimeout(_,e),m?v(t):f;if(j)return clearTimeout(u),u=setTimeout(_,e),v(p)}return void 0===u&&(u=setTimeout(_,e)),f}return e=a(e)||0,n(r)&&(m=!!r.leading,x=(j="maxWait"in r)?c(a(r.maxWait)||0,e):x,h="trailing"in r?!!r.trailing:h),g.cancel=function(){void 0!==u&&clearTimeout(u),d=0,o=p=l=u=void 0},g.flush=function(){return void 0===u?f:y(i())},g}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},33448:function(t,e,r){var n=r(44239),i=r(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},7771:function(t,e,r){var n=r(55639);t.exports=function(){return n.Date.now()}},14841:function(t,e,r){var n=r(27561),i=r(13218),a=r(33448),c=0/0,s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,x=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return c;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=o.test(t);return r||l.test(t)?x(t.slice(2),r?2:8):s.test(t)?c:+t}},11834:function(t,e,r){"use strict";r.d(e,{Z:function(){return h}});var n=r(21378),i=r.n(n),a=["@-webkit-keyframes fade-jsx-3114533039{0%{opacity:1;}50%{opacity:1;}100%{opacity:0;}}","@keyframes fade-jsx-3114533039{0%{opacity:1;}50%{opacity:1;}100%{opacity:0;}}",".d-flex.jsx-3114533039,.cart.jsx-3114533039 .cart__header.jsx-3114533039,.d-flex-col.jsx-3114533039,.cart.jsx-3114533039{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".d-flex-col.jsx-3114533039,.cart.jsx-3114533039{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}",".cart.jsx-3114533039{width:100%;margin-top:var(--s-nav-height);z-index:1;gap:var(--s-5);}",".cart.jsx-3114533039 .cart__header.jsx-3114533039{gap:var(--s-9);width:var(--s-border-width);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;}",".cart.jsx-3114533039 .cart__header.jsx-3114533039 .cart__header-title.jsx-3114533039{font-size:22px;}","@media (max-width:900px){.cart.jsx-3114533039 .cart__header.jsx-3114533039{gap:7px;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}"];a.__hash="3114533039";var c=r(67294),s=r(11163),o=[".d-flex.jsx-1918336961,.cart__empty-cart.jsx-1918336961 .cart__emtpy-cart-canvas.jsx-1918336961,.d-flex-col.jsx-1918336961,.cart__empty-cart.jsx-1918336961{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;}",".d-flex-col.jsx-1918336961,.cart__empty-cart.jsx-1918336961{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}","h1.jsx-1918336961{color:var(--gray-40);text-transform:capitalize;margin-top:var(--s-element);}",".cart__empty-cart.jsx-1918336961{z-index:-1;position:fixed;left:0;width:100vw;bottom:0;}",".cart__empty-cart.jsx-1918336961 .cart__emtpy-cart-canvas.jsx-1918336961{z-index:-1;--ui-icon-color:var(--gray-90-o);-webkit-filter:blur(1px);filter:blur(1px);-webkit-transform:skew(20px,20px);-ms-transform:skew(20px,20px);transform:skew(20px,20px);--ui-icon-height:90%;overflow:hidden;--ui-icon-width:100%;aspect-ratio:1/1;}"];o.__hash="1918336961";var l=r(55140),x=r(85893),f=function(){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(i(),{id:o.__hash,children:o}),(0,x.jsx)("h1",{className:"jsx-".concat(o.__hash),children:"your cart is empty"}),(0,x.jsx)("div",{className:"jsx-".concat(o.__hash)+" cart__empty-cart",children:(0,x.jsxs)("div",{className:"jsx-".concat(o.__hash)+" cart__emtpy-cart-canvas ",children:[(0,x.jsx)("div",{className:"jsx-".concat(o.__hash)+" canvas-texture"}),(0,x.jsx)(l.a,{glow:!0,icon:"empty-cart"})]})})]})},u=r(88315),p=r(10577),d=r(97346),m=r(44983),j=r(85153),h=function(t){t.variant,t.traits;var e=(0,m.Z)().cart,r=(0,s.useRouter)(),n=(0,c.useState)(!1),o=n[0],l=n[1],h=String(r.query.ref);return((0,c.useEffect)(function(){l(!0)},[h]),o)?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(i(),{id:a.__hash,children:a}),(0,x.jsxs)("div",{className:"jsx-".concat(a.__hash)+" cart",children:[(0,x.jsxs)("div",{className:"jsx-".concat(a.__hash)+" cart__header",children:[(0,x.jsx)(p.Z,{variant:"dark",href:"/product",children:"Keep Shopping"}),(0,x.jsx)("div",{className:"jsx-".concat(a.__hash)+" cart__header-title"}),e&&0!=e.length&&(0,x.jsx)(d.Z,{cart_items:e})]}),e&&0!=e.length?(0,x.jsx)(u.Z,{}):(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(f,{})})]})]}):(0,x.jsx)(j.Z,{})}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7681],{62705:function(t,e,r){var n=r(55639).Symbol;t.exports=n},44239:function(t,e,r){var n=r(62705),i=r(89607),a=r(2333),c=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?i(t):a(t)}},27561:function(t,e,r){var n=r(67990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(i,""):t}},31957:function(t,e,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},89607:function(t,e,r){var n=r(62705),i=Object.prototype,a=i.hasOwnProperty,c=i.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=c.call(t);return n&&(e?t[s]=r:delete t[s]),i}},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},55639:function(t,e,r){var n=r(31957),i="object"==typeof self&&self&&self.Object===Object&&self,a=n||i||Function("return this")();t.exports=a},67990:function(t){var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},80954:function(t,e,r){var n=r(13218),i=r(7771),a=r(14841),c=Math.max,s=Math.min;t.exports=function(t,e,r){var o,l,x,f,u,p,d=0,m=!1,j=!1,h=!0;if("function"!=typeof t)throw TypeError("Expected a function");function v(e){var r=o,n=l;return o=l=void 0,d=e,f=t.apply(n,r)}function b(t){var r=t-p,n=t-d;return void 0===p||r>=e||r<0||j&&n>=x}function _(){var t,r,n,a=i();if(b(a))return y(a);u=setTimeout(_,(t=a-p,r=a-d,n=e-t,j?s(n,x-r):n))}function y(t){return(u=void 0,h&&o)?v(t):(o=l=void 0,f)}function g(){var t,r=i(),n=b(r);if(o=arguments,l=this,p=r,n){if(void 0===u)return d=t=p,u=setTimeout(_,e),m?v(t):f;if(j)return clearTimeout(u),u=setTimeout(_,e),v(p)}return void 0===u&&(u=setTimeout(_,e)),f}return e=a(e)||0,n(r)&&(m=!!r.leading,x=(j="maxWait"in r)?c(a(r.maxWait)||0,e):x,h="trailing"in r?!!r.trailing:h),g.cancel=function(){void 0!==u&&clearTimeout(u),d=0,o=p=l=u=void 0},g.flush=function(){return void 0===u?f:y(i())},g}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},33448:function(t,e,r){var n=r(44239),i=r(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},7771:function(t,e,r){var n=r(55639);t.exports=function(){return n.Date.now()}},14841:function(t,e,r){var n=r(27561),i=r(13218),a=r(33448),c=0/0,s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,x=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return c;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=o.test(t);return r||l.test(t)?x(t.slice(2),r?2:8):s.test(t)?c:+t}},11834:function(t,e,r){"use strict";r.d(e,{Z:function(){return h}});var n=r(21378),i=r.n(n),a=["@-webkit-keyframes fade-jsx-3114533039{0%{opacity:1;}50%{opacity:1;}100%{opacity:0;}}","@keyframes fade-jsx-3114533039{0%{opacity:1;}50%{opacity:1;}100%{opacity:0;}}",".d-flex.jsx-3114533039,.cart.jsx-3114533039 .cart__header.jsx-3114533039,.d-flex-col.jsx-3114533039,.cart.jsx-3114533039{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".d-flex-col.jsx-3114533039,.cart.jsx-3114533039{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}",".cart.jsx-3114533039{width:100%;margin-top:var(--s-nav-height);z-index:1;gap:var(--s-5);}",".cart.jsx-3114533039 .cart__header.jsx-3114533039{gap:var(--s-9);width:var(--s-border-width);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;}",".cart.jsx-3114533039 .cart__header.jsx-3114533039 .cart__header-title.jsx-3114533039{font-size:22px;}","@media (max-width:900px){.cart.jsx-3114533039 .cart__header.jsx-3114533039{gap:7px;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}"];a.__hash="3114533039";var c=r(67294),s=r(11163),o=[".d-flex.jsx-1918336961,.cart__empty-cart.jsx-1918336961 .cart__emtpy-cart-canvas.jsx-1918336961,.d-flex-col.jsx-1918336961,.cart__empty-cart.jsx-1918336961{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;}",".d-flex-col.jsx-1918336961,.cart__empty-cart.jsx-1918336961{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}","h1.jsx-1918336961{color:var(--gray-40);text-transform:capitalize;margin-top:var(--s-element);}",".cart__empty-cart.jsx-1918336961{z-index:-1;position:fixed;left:0;width:100vw;bottom:0;}",".cart__empty-cart.jsx-1918336961 .cart__emtpy-cart-canvas.jsx-1918336961{z-index:-1;--ui-icon-color:var(--gray-90-o);-webkit-filter:blur(1px);filter:blur(1px);-webkit-transform:skew(20px,20px);-ms-transform:skew(20px,20px);transform:skew(20px,20px);--ui-icon-height:90%;overflow:hidden;--ui-icon-width:100%;aspect-ratio:1/1;}"];o.__hash="1918336961";var l=r(6253),x=r(85893),f=function(){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(i(),{id:o.__hash,children:o}),(0,x.jsx)("h1",{className:"jsx-".concat(o.__hash),children:"your cart is empty"}),(0,x.jsx)("div",{className:"jsx-".concat(o.__hash)+" cart__empty-cart",children:(0,x.jsxs)("div",{className:"jsx-".concat(o.__hash)+" cart__emtpy-cart-canvas ",children:[(0,x.jsx)("div",{className:"jsx-".concat(o.__hash)+" canvas-texture"}),(0,x.jsx)(l.a,{glow:!0,icon:"empty-cart"})]})})]})},u=r(88315),p=r(10577),d=r(97346),m=r(44983),j=r(85153),h=function(t){t.variant,t.traits;var e=(0,m.Z)().cart,r=(0,s.useRouter)(),n=(0,c.useState)(!1),o=n[0],l=n[1],h=String(r.query.ref);return((0,c.useEffect)(function(){l(!0)},[h]),o)?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(i(),{id:a.__hash,children:a}),(0,x.jsxs)("div",{className:"jsx-".concat(a.__hash)+" cart",children:[(0,x.jsxs)("div",{className:"jsx-".concat(a.__hash)+" cart__header",children:[(0,x.jsx)(p.Z,{variant:"dark",href:"/product",children:"Keep Shopping"}),(0,x.jsx)("div",{className:"jsx-".concat(a.__hash)+" cart__header-title"}),e&&0!=e.length&&(0,x.jsx)(d.Z,{cart_items:e})]}),e&&0!=e.length?(0,x.jsx)(u.Z,{}):(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(f,{})})]})]}):(0,x.jsx)(j.Z,{})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/829-adb4bf8b439a2252.js b/_next/static/chunks/829-adb4bf8b439a2252.js new file mode 100644 index 000000000..6e6c555bc --- /dev/null +++ b/_next/static/chunks/829-adb4bf8b439a2252.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[829],{62705:function(e,t,i){var n=i(55639).Symbol;e.exports=n},44239:function(e,t,i){var n=i(62705),r=i(89607),o=i(2333),c=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?r(e):o(e)}},27561:function(e,t,i){var n=i(67990),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},31957:function(e,t,i){var n="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g;e.exports=n},89607:function(e,t,i){var n=i(62705),r=Object.prototype,o=r.hasOwnProperty,c=r.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),i=e[a];try{e[a]=void 0;var n=!0}catch(e){}var r=c.call(e);return n&&(t?e[a]=i:delete e[a]),r}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,i){var n=i(31957),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();e.exports=o},67990:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},80954:function(e,t,i){var n=i(13218),r=i(7771),o=i(14841),c=Math.max,a=Math.min;e.exports=function(e,t,i){var s,l,d,u,p,x,f=0,m=!1,h=!1,b=!0;if("function"!=typeof e)throw TypeError("Expected a function");function j(t){var i=s,n=l;return s=l=void 0,f=t,u=e.apply(n,i)}function v(e){var i=e-x,n=e-f;return void 0===x||i>=t||i<0||h&&n>=d}function g(){var e,i,n,o=r();if(v(o))return _(o);p=setTimeout(g,(e=o-x,i=o-f,n=t-e,h?a(n,d-i):n))}function _(e){return(p=void 0,b&&s)?j(e):(s=l=void 0,u)}function y(){var e,i=r(),n=v(i);if(s=arguments,l=this,x=i,n){if(void 0===p)return f=e=x,p=setTimeout(g,t),m?j(e):u;if(h)return clearTimeout(p),p=setTimeout(g,t),j(x)}return void 0===p&&(p=setTimeout(g,t)),u}return t=o(t)||0,n(i)&&(m=!!i.leading,d=(h="maxWait"in i)?c(o(i.maxWait)||0,t):d,b="trailing"in i?!!i.trailing:b),y.cancel=function(){void 0!==p&&clearTimeout(p),f=0,s=x=l=p=void 0},y.flush=function(){return void 0===p?u:_(r())},y}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,i){var n=i(44239),r=i(37005);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}},7771:function(e,t,i){var n=i(55639);e.exports=function(){return n.Date.now()}},14841:function(e,t,i){var n=i(27561),r=i(13218),o=i(33448),c=0/0,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=s.test(e);return i||l.test(e)?d(e.slice(2),i?2:8):a.test(e)?c:+e}},20829:function(e,t,i){"use strict";i.d(t,{Z:function(){return C}});var n=i(67294),r=i(50029),o=i(59499),c=i(16835),a=i(21378),s=i.n(a),l=i(64687),d=i.n(l),u=[".d-flex.jsx-198530694,.product-listing__header.jsx-198530694,.product-listing.jsx-198530694{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".product-listing.jsx-198530694{overflow:hidden;white-space:wrap;color:white;width:var(--s-4-width);padding:var(--s-4);margin:auto;gap:var(--s-element);-webkit-box-pack:stretch;-webkit-justify-content:stretch;-ms-flex-pack:stretch;justify-content:stretch;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;}",".product-listing__header.jsx-198530694{color:var(--primary-50);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:var(--s-4);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".product-listing.jsx-198530694 .product-listing__filters.jsx-198530694{padding:var(--s-4);margin:auto;border-radius:var(--border-radius);width:calc(100% - var(--s-9) * 2);background-color:var(--gray-90);}"];u.__hash="198530694";var p=i(10394),x=i(47265),f=i(11907),m=i(31831),h=i(23992),b=[".d-flex.jsx-3700754174,.product-content--price.jsx-3700754174,.product-content--name.jsx-3700754174,.product-content.jsx-3700754174,.product--images__icon.jsx-3700754174,.product.jsx-3700754174{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".product.jsx-3700754174{gap:var(--s-element);cursor:pointer;width:calc(var(--s-9-width) - 2px);padding:var(--s-9) var(--s-9) var(--s-3);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;overflow:hidden;margin:0 auto;--ui-icon-color:var(--gray-70-o);background-color:var(--gray-90);border-radius:var(--border-radius);box-shadow:0 0 2px var(--gray-80),0 2px 4px var(--gray-80-o),inset 0 0 0px 2px var(--gray-80-o);border:solid 1px var(--gray-90);overflow:hidden;}",".product-json.jsx-3700754174{height:-webkit-max-content;height:-moz-max-content;height:max-content;color:var(--secondary);font-size:11px;line-height:1;}",".product.jsx-3700754174:hover{background-color:var(--gray-80-o);box-shadow:0 0 2px var(--gray-70),0 2px 4px var(--gray-70-o),inset 0 0 0px 2px var(--gray-70);}",".product.jsx-3700754174:hover .product--images.jsx-3700754174{--ui-icon-color:var(--gray-60);}",".product--images.jsx-3700754174{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:auto;border:solid 1px var(--gray-70);border-radius:var(--border-radius);overflow:hidden;width:var(--s-border-width);}",".product--images__image.jsx-3700754174{aspect-ratio:1;position:relative;}",".product--images__icon.jsx-3700754174{width:50%;margin:auto;--ui-icon-width:100%;min-height:320px;--ui-icon-height:100%;--ui-icon-color:var(--primary-o);}",".product-content.jsx-3700754174{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:var(--s-4-width);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;line-height:1;gap:var(--s-9);}",".product-content--name.jsx-3700754174{font-size:var(--s-4);text-transform:capitalize;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;color:var(--primary-50);}",".product-content--price.jsx-3700754174{font-family:Game;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;width:100%;color:var(--gray-60);font-style:oblique;font-weight:300;}"];b.__hash="3700754174";var j=i(85854),v=i(25675),g=i.n(v),_=i(6253),y=i(11163),w=i(85893),k=function(e){var t=e.products,i=Array.from({length:5},function(e){return{metadata:{mid:h.Z.merchant.mid},name:"loading...",images:[]}}),r=(0,n.useState)(i),o=r[0],c=r[1],a=(0,y.useRouter)();return(0,n.useEffect)(function(){t&&c(t)},[c,t]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(s(),{id:b.__hash,children:b}),(0,w.jsx)("div",{className:"jsx-".concat(b.__hash)+" product-list",children:(0,w.jsx)(j.Z,{xs:1,md:3,gap:10,children:o&&o.filter(function(e,t){var i;return(null==e||null===(i=e.metadata)||void 0===i?void 0:i.mid)===h.Z.merchant.mid}).map(function(e,t){var i;return(0,w.jsxs)("div",{onClick:function(){var t,i;return t=e.id,i=e.price.id,t&&i&&a.push("/product?id=".concat(t,"&pri=").concat(i))},className:"jsx-".concat(b.__hash)+" product",children:[(0,w.jsx)("div",{className:"jsx-".concat(b.__hash)+" product--images",children:e.images.length?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"jsx-".concat(b.__hash)+" product--images__image",children:(0,w.jsx)(g(),{src:e.images[0],alt:e.name,fill:!0,style:{objectFit:"cover"},unoptimized:!0})}),e.images.length>=2&&(0,w.jsx)(j.Z,{xs:3,gap:10,children:e.images.map(function(t,i){return(0,w.jsx)("div",{className:"jsx-".concat(b.__hash)+" product--images__image",children:(0,w.jsx)(g(),{src:t,alt:"".concat(e.name," ").concat(i+1),unoptimized:!0})},i)})})]}):(0,w.jsx)("div",{className:"jsx-".concat(b.__hash)+" product--images__icon",children:(0,w.jsx)(_.a,{icon:"".concat(h.Z.merchant.name,"-logo")})})}),(0,w.jsxs)("div",{className:"jsx-".concat(b.__hash)+" product-content",children:[(0,w.jsx)("div",{className:"jsx-".concat(b.__hash)+" product-content--name",children:null==e?void 0:e.name}),(0,w.jsx)("div",{className:"jsx-".concat(b.__hash)+" product-content--price",children:(0,x.XY)(null==e||null===(i=e.price)||void 0===i?void 0:i.unit_amount)})]})]},t)})})})]})};function O(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function N(e){for(var t=1;t=1&&(0,w.jsx)("div",{className:"jsx-".concat(P.__hash)+" product-description__go-to-cart",children:(0,w.jsx)(T.Z,{traits:{afterIcon:"fal-bag-shopping"},variant:"link",href:"/cart",children:"go to cart"})}),(0,w.jsx)("div",{className:"jsx-".concat(P.__hash)+" product-description__buy-button",children:(0,w.jsx)(E.Z,{product:v,btnText:"select"})})]})]})]})]})]})},C=function(){var e;return null!==(e=(0,y.useRouter)().query)&&void 0!==e&&e.id?(0,w.jsx)(z,{}):(0,w.jsx)(Z,{})}},46026:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var n=i(59499),r=i(21378),o=i.n(r),c=i(67294),a=[".d-flex.jsx-2178991106,.added-to-cart-body.jsx-2178991106,.added-to-cart.jsx-2178991106{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".added-to-cart.jsx-2178991106{width:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;gap:var(--s-element);}",".added-to-cart-title.jsx-2178991106{font-size:var(--s-2);color:var(--gray-30);}",".added-to-cart-body.jsx-2178991106{width:100%;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;color:var(--gray-40);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;}"];a.__hash="2178991106";var s=i(10577),l=i(84520),d=i(47265),u=i(36946),p=i(44983),x=i(85893);function f(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function m(e){for(var t=1;t1?"fas-minus":"fa-trash-can",onClick:function(){return j("minus")},color:1==t?"red":""},afterIcon:{icon:"fas-plus",onClick:function(){return j("plus")}}}),l&&Object.entries(l).forEach(function(e){var t=(0,n.Z)(e,2),i=t[0],r=t[1];m[i]=r});var h=(0,c.useRef)(d()(function(e){isNaN(Number(e))||i(Number(e))},1500)).current,b=(0,c.useCallback)(function(e){f(e.target.value),h(e.target.value)},[h]),j=(0,c.useCallback)(function(e){"number"==typeof t&&i(t+("plus"===e?1:-1))},[t,i]);return(0,c.useEffect)(function(){t&&f(t.toString())},[t]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o(),{id:a.__hash,children:a}),(0,u.jsx)("div",{className:"jsx-".concat(a.__hash)+" "+"ui-pill ".concat(null!=l&&l.responsive?" ui-pill-responsive":""),children:(0,u.jsx)(s.Z,{name:"ui-pill",variant:r,traits:m,value:x,onChange:b})})]})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/829-e6e5a383061a61a5.js b/_next/static/chunks/829-e6e5a383061a61a5.js deleted file mode 100644 index 35f58392e..000000000 --- a/_next/static/chunks/829-e6e5a383061a61a5.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[829],{62705:function(e,t,i){var n=i(55639).Symbol;e.exports=n},44239:function(e,t,i){var n=i(62705),r=i(89607),o=i(2333),c=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?r(e):o(e)}},27561:function(e,t,i){var n=i(67990),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},31957:function(e,t,i){var n="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g;e.exports=n},89607:function(e,t,i){var n=i(62705),r=Object.prototype,o=r.hasOwnProperty,c=r.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),i=e[a];try{e[a]=void 0;var n=!0}catch(e){}var r=c.call(e);return n&&(t?e[a]=i:delete e[a]),r}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,i){var n=i(31957),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();e.exports=o},67990:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},80954:function(e,t,i){var n=i(13218),r=i(7771),o=i(14841),c=Math.max,a=Math.min;e.exports=function(e,t,i){var s,l,d,u,p,x,f=0,m=!1,h=!1,b=!0;if("function"!=typeof e)throw TypeError("Expected a function");function j(t){var i=s,n=l;return s=l=void 0,f=t,u=e.apply(n,i)}function v(e){var i=e-x,n=e-f;return void 0===x||i>=t||i<0||h&&n>=d}function g(){var e,i,n,o=r();if(v(o))return _(o);p=setTimeout(g,(e=o-x,i=o-f,n=t-e,h?a(n,d-i):n))}function _(e){return(p=void 0,b&&s)?j(e):(s=l=void 0,u)}function y(){var e,i=r(),n=v(i);if(s=arguments,l=this,x=i,n){if(void 0===p)return f=e=x,p=setTimeout(g,t),m?j(e):u;if(h)return clearTimeout(p),p=setTimeout(g,t),j(x)}return void 0===p&&(p=setTimeout(g,t)),u}return t=o(t)||0,n(i)&&(m=!!i.leading,d=(h="maxWait"in i)?c(o(i.maxWait)||0,t):d,b="trailing"in i?!!i.trailing:b),y.cancel=function(){void 0!==p&&clearTimeout(p),f=0,s=x=l=p=void 0},y.flush=function(){return void 0===p?u:_(r())},y}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,i){var n=i(44239),r=i(37005);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}},7771:function(e,t,i){var n=i(55639);e.exports=function(){return n.Date.now()}},14841:function(e,t,i){var n=i(27561),r=i(13218),o=i(33448),c=0/0,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=s.test(e);return i||l.test(e)?d(e.slice(2),i?2:8):a.test(e)?c:+e}},20829:function(e,t,i){"use strict";i.d(t,{Z:function(){return C}});var n=i(67294),r=i(50029),o=i(59499),c=i(16835),a=i(21378),s=i.n(a),l=i(64687),d=i.n(l),u=[".d-flex.jsx-198530694,.product-listing__header.jsx-198530694,.product-listing.jsx-198530694{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".product-listing.jsx-198530694{overflow:hidden;white-space:wrap;color:white;width:var(--s-4-width);padding:var(--s-4);margin:auto;gap:var(--s-element);-webkit-box-pack:stretch;-webkit-justify-content:stretch;-ms-flex-pack:stretch;justify-content:stretch;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;}",".product-listing__header.jsx-198530694{color:var(--primary-50);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:var(--s-4);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".product-listing.jsx-198530694 .product-listing__filters.jsx-198530694{padding:var(--s-4);margin:auto;border-radius:var(--border-radius);width:calc(100% - var(--s-9) * 2);background-color:var(--gray-90);}"];u.__hash="198530694";var p=i(10394),x=i(47265),f=i(11907),m=i(31831),h=i(23992),b=[".d-flex.jsx-3700754174,.product-content--price.jsx-3700754174,.product-content--name.jsx-3700754174,.product-content.jsx-3700754174,.product--images__icon.jsx-3700754174,.product.jsx-3700754174{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".product.jsx-3700754174{gap:var(--s-element);cursor:pointer;width:calc(var(--s-9-width) - 2px);padding:var(--s-9) var(--s-9) var(--s-3);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;overflow:hidden;margin:0 auto;--ui-icon-color:var(--gray-70-o);background-color:var(--gray-90);border-radius:var(--border-radius);box-shadow:0 0 2px var(--gray-80),0 2px 4px var(--gray-80-o),inset 0 0 0px 2px var(--gray-80-o);border:solid 1px var(--gray-90);overflow:hidden;}",".product-json.jsx-3700754174{height:-webkit-max-content;height:-moz-max-content;height:max-content;color:var(--secondary);font-size:11px;line-height:1;}",".product.jsx-3700754174:hover{background-color:var(--gray-80-o);box-shadow:0 0 2px var(--gray-70),0 2px 4px var(--gray-70-o),inset 0 0 0px 2px var(--gray-70);}",".product.jsx-3700754174:hover .product--images.jsx-3700754174{--ui-icon-color:var(--gray-60);}",".product--images.jsx-3700754174{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:auto;border:solid 1px var(--gray-70);border-radius:var(--border-radius);overflow:hidden;width:var(--s-border-width);}",".product--images__image.jsx-3700754174{aspect-ratio:1;position:relative;}",".product--images__icon.jsx-3700754174{width:50%;margin:auto;--ui-icon-width:100%;min-height:320px;--ui-icon-height:100%;--ui-icon-color:var(--primary-o);}",".product-content.jsx-3700754174{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:var(--s-4-width);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;line-height:1;gap:var(--s-9);}",".product-content--name.jsx-3700754174{font-size:var(--s-4);text-transform:capitalize;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;color:var(--primary-50);}",".product-content--price.jsx-3700754174{font-family:Game;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;width:100%;color:var(--gray-60);font-style:oblique;font-weight:300;}"];b.__hash="3700754174";var j=i(85854),v=i(25675),g=i.n(v),_=i(55140),y=i(11163),w=i(85893),k=function(e){var t=e.products,i=Array.from({length:5},function(e){return{metadata:{mid:h.Z.merchant.mid},name:"loading...",images:[]}}),r=(0,n.useState)(i),o=r[0],c=r[1],a=(0,y.useRouter)();return(0,n.useEffect)(function(){t&&c(t)},[c,t]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(s(),{id:b.__hash,children:b}),(0,w.jsx)("div",{className:"jsx-".concat(b.__hash)+" product-list",children:(0,w.jsx)(j.Z,{xs:1,md:3,gap:10,children:o&&o.filter(function(e,t){var i;return(null==e||null===(i=e.metadata)||void 0===i?void 0:i.mid)===h.Z.merchant.mid}).map(function(e,t){var i;return(0,w.jsxs)("div",{onClick:function(){var t,i;return t=e.id,i=e.price.id,t&&i&&a.push("/product?id=".concat(t,"&pri=").concat(i))},className:"jsx-".concat(b.__hash)+" product",children:[(0,w.jsx)("div",{className:"jsx-".concat(b.__hash)+" product--images",children:e.images.length?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"jsx-".concat(b.__hash)+" product--images__image",children:(0,w.jsx)(g(),{src:e.images[0],alt:e.name,fill:!0,style:{objectFit:"cover"},unoptimized:!0})}),e.images.length>=2&&(0,w.jsx)(j.Z,{xs:3,gap:10,children:e.images.map(function(t,i){return(0,w.jsx)("div",{className:"jsx-".concat(b.__hash)+" product--images__image",children:(0,w.jsx)(g(),{src:t,alt:"".concat(e.name," ").concat(i+1),unoptimized:!0})},i)})})]}):(0,w.jsx)("div",{className:"jsx-".concat(b.__hash)+" product--images__icon",children:(0,w.jsx)(_.a,{icon:"".concat(h.Z.merchant.name,"-logo")})})}),(0,w.jsxs)("div",{className:"jsx-".concat(b.__hash)+" product-content",children:[(0,w.jsx)("div",{className:"jsx-".concat(b.__hash)+" product-content--name",children:null==e?void 0:e.name}),(0,w.jsx)("div",{className:"jsx-".concat(b.__hash)+" product-content--price",children:(0,x.XY)(null==e||null===(i=e.price)||void 0===i?void 0:i.unit_amount)})]})]},t)})})})]})};function O(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function N(e){for(var t=1;t=1&&(0,w.jsx)("div",{className:"jsx-".concat(P.__hash)+" product-description__go-to-cart",children:(0,w.jsx)(T.Z,{traits:{afterIcon:"fal-bag-shopping"},variant:"link",href:"/cart",children:"go to cart"})}),(0,w.jsx)("div",{className:"jsx-".concat(P.__hash)+" product-description__buy-button",children:(0,w.jsx)(E.Z,{product:v,btnText:"select"})})]})]})]})]})]})},C=function(){var e;return null!==(e=(0,y.useRouter)().query)&&void 0!==e&&e.id?(0,w.jsx)(z,{}):(0,w.jsx)(Z,{})}},46026:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var n=i(59499),r=i(21378),o=i.n(r),c=i(67294),a=[".d-flex.jsx-2178991106,.added-to-cart-body.jsx-2178991106,.added-to-cart.jsx-2178991106{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".added-to-cart.jsx-2178991106{width:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;gap:var(--s-element);}",".added-to-cart-title.jsx-2178991106{font-size:var(--s-2);color:var(--gray-30);}",".added-to-cart-body.jsx-2178991106{width:100%;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;color:var(--gray-40);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;}"];a.__hash="2178991106";var s=i(10577),l=i(84520),d=i(47265),u=i(36946),p=i(44983),x=i(85893);function f(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function m(e){for(var t=1;t1?"fas-minus":"fa-trash-can",onClick:function(){return j("minus")},color:1==t?"red":""},afterIcon:{icon:"fas-plus",onClick:function(){return j("plus")}}}),l&&Object.entries(l).forEach(function(e){var t=(0,n.Z)(e,2),i=t[0],r=t[1];m[i]=r});var h=(0,c.useRef)(d()(function(e){isNaN(Number(e))||i(Number(e))},1500)).current,b=(0,c.useCallback)(function(e){f(e.target.value),h(e.target.value)},[h]),j=(0,c.useCallback)(function(e){"number"==typeof t&&i(t+("plus"===e?1:-1))},[t,i]);return(0,c.useEffect)(function(){t&&f(t.toString())},[t]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o(),{id:a.__hash,children:a}),(0,u.jsx)("div",{className:"jsx-".concat(a.__hash)+" "+"ui-pill ".concat(null!=l&&l.responsive?" ui-pill-responsive":""),children:(0,u.jsx)(s.Z,{name:"ui-pill",variant:r,traits:m,value:x,onChange:b})})]})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/8884-6266db2343c80d86.js b/_next/static/chunks/8884-6266db2343c80d86.js deleted file mode 100644 index b8c20a992..000000000 --- a/_next/static/chunks/8884-6266db2343c80d86.js +++ /dev/null @@ -1,25 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8884],{30398:function(e,t,n){"use strict";n.d(t,{z:function(){return m}});var r=n(87462),l=n(37158),a=n(67294),i=n(99477),o=Object.defineProperty,u=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,s=(e,t,n)=>(u(e,"symbol"!=typeof t?t+"":t,n),n);let c=new i.Ray,f=new i.Plane,d=Math.cos(Math.PI/180*70),p=(e,t)=>(e%t+t)%t;class h extends i.EventDispatcher{constructor(e,t){super(),s(this,"object"),s(this,"domElement"),s(this,"enabled",!0),s(this,"target",new i.Vector3),s(this,"minDistance",0),s(this,"maxDistance",1/0),s(this,"minZoom",0),s(this,"maxZoom",1/0),s(this,"minPolarAngle",0),s(this,"maxPolarAngle",Math.PI),s(this,"minAzimuthAngle",-1/0),s(this,"maxAzimuthAngle",1/0),s(this,"enableDamping",!1),s(this,"dampingFactor",.05),s(this,"enableZoom",!0),s(this,"zoomSpeed",1),s(this,"enableRotate",!0),s(this,"rotateSpeed",1),s(this,"enablePan",!0),s(this,"panSpeed",1),s(this,"screenSpacePanning",!0),s(this,"keyPanSpeed",7),s(this,"zoomToCursor",!1),s(this,"autoRotate",!1),s(this,"autoRotateSpeed",2),s(this,"reverseOrbit",!1),s(this,"reverseHorizontalOrbit",!1),s(this,"reverseVerticalOrbit",!1),s(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),s(this,"mouseButtons",{LEFT:i.MOUSE.ROTATE,MIDDLE:i.MOUSE.DOLLY,RIGHT:i.MOUSE.PAN}),s(this,"touches",{ONE:i.TOUCH.ROTATE,TWO:i.TOUCH.DOLLY_PAN}),s(this,"target0"),s(this,"position0"),s(this,"zoom0"),s(this,"_domElementKeyEvents",null),s(this,"getPolarAngle"),s(this,"getAzimuthalAngle"),s(this,"setPolarAngle"),s(this,"setAzimuthalAngle"),s(this,"getDistance"),s(this,"listenToKeyEvents"),s(this,"stopListenToKeyEvents"),s(this,"saveState"),s(this,"reset"),s(this,"update"),s(this,"connect"),s(this,"dispose"),this.object=e,this.domElement=t,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>m.phi,this.getAzimuthalAngle=()=>m.theta,this.setPolarAngle=e=>{let t=p(e,2*Math.PI),r=m.phi;r<0&&(r+=2*Math.PI),t<0&&(t+=2*Math.PI);let l=Math.abs(t-r);2*Math.PI-l{let t=p(e,2*Math.PI),r=m.theta;r<0&&(r+=2*Math.PI),t<0&&(t+=2*Math.PI);let l=Math.abs(t-r);2*Math.PI-ln.object.position.distanceTo(n.target),this.listenToKeyEvents=e=>{e.addEventListener("keydown",en),this._domElementKeyEvents=e},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",en),this._domElementKeyEvents=null},this.saveState=()=>{n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=()=>{n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(r),n.update(),u=o.NONE},this.update=(()=>{let t=new i.Vector3,l=new i.Vector3(0,1,0),a=new i.Quaternion().setFromUnitVectors(e.up,l),s=a.clone().invert(),p=new i.Vector3,y=new i.Quaternion,w=2*Math.PI;return function(){let S=n.object.position;a.setFromUnitVectors(e.up,l),s.copy(a).invert(),t.copy(S).sub(n.target),t.applyQuaternion(a),m.setFromVector3(t),n.autoRotate&&u===o.NONE&&L(2*Math.PI/60/60*n.autoRotateSpeed),n.enableDamping?(m.theta+=g.theta*n.dampingFactor,m.phi+=g.phi*n.dampingFactor):(m.theta+=g.theta,m.phi+=g.phi);let x=n.minAzimuthAngle,E=n.maxAzimuthAngle;isFinite(x)&&isFinite(E)&&(x<-Math.PI?x+=w:x>Math.PI&&(x-=w),E<-Math.PI?E+=w:E>Math.PI&&(E-=w),x<=E?m.theta=Math.max(x,Math.min(E,m.theta)):m.theta=m.theta>(x+E)/2?Math.max(x,m.theta):Math.min(E,m.theta)),m.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,m.phi)),m.makeSafe(),!0===n.enableDamping?n.target.addScaledVector(b,n.dampingFactor):n.target.add(b),n.zoomToCursor&&z||n.object.isOrthographicCamera?m.radius=V(m.radius):m.radius=V(m.radius*v),t.setFromSpherical(m),t.applyQuaternion(s),S.copy(n.target).add(t),n.object.matrixAutoUpdate||n.object.updateMatrix(),n.object.lookAt(n.target),!0===n.enableDamping?(g.theta*=1-n.dampingFactor,g.phi*=1-n.dampingFactor,b.multiplyScalar(1-n.dampingFactor)):(g.set(0,0,0),b.set(0,0,0));let k=!1;if(n.zoomToCursor&&z){let r=null;if(n.object instanceof i.PerspectiveCamera&&n.object.isPerspectiveCamera){let e=t.length();r=V(e*v);let l=e-r;n.object.position.addScaledVector(M,l),n.object.updateMatrixWorld()}else if(n.object.isOrthographicCamera){let e=new i.Vector3(T.x,T.y,0);e.unproject(n.object),n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/v)),n.object.updateProjectionMatrix(),k=!0;let l=new i.Vector3(T.x,T.y,0);l.unproject(n.object),n.object.position.sub(l).add(e),n.object.updateMatrixWorld(),r=t.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),n.zoomToCursor=!1;null!==r&&(n.screenSpacePanning?n.target.set(0,0,-1).transformDirection(n.object.matrix).multiplyScalar(r).add(n.object.position):(c.origin.copy(n.object.position),c.direction.set(0,0,-1).transformDirection(n.object.matrix),Math.abs(n.object.up.dot(c.direction))h||8*(1-y.dot(n.object.quaternion))>h)&&(n.dispatchEvent(r),p.copy(n.object.position),y.copy(n.object.quaternion),k=!1,!0)}})(),this.connect=e=>{e===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),n.domElement=e,n.domElement.style.touchAction="none",n.domElement.addEventListener("contextmenu",er),n.domElement.addEventListener("pointerdown",Z),n.domElement.addEventListener("pointercancel",ee),n.domElement.addEventListener("wheel",et)},this.dispose=()=>{var e,t,r,l,a,i;null==(e=n.domElement)||e.removeEventListener("contextmenu",er),null==(t=n.domElement)||t.removeEventListener("pointerdown",Z),null==(r=n.domElement)||r.removeEventListener("pointercancel",ee),null==(l=n.domElement)||l.removeEventListener("wheel",et),null==(a=n.domElement)||a.ownerDocument.removeEventListener("pointermove",K),null==(i=n.domElement)||i.ownerDocument.removeEventListener("pointerup",J),null!==n._domElementKeyEvents&&n._domElementKeyEvents.removeEventListener("keydown",en)};let n=this,r={type:"change"},l={type:"start"},a={type:"end"},o={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},u=o.NONE,h=1e-6,m=new i.Spherical,g=new i.Spherical,v=1,b=new i.Vector3,y=new i.Vector2,w=new i.Vector2,S=new i.Vector2,x=new i.Vector2,E=new i.Vector2,k=new i.Vector2,P=new i.Vector2,C=new i.Vector2,_=new i.Vector2,M=new i.Vector3,T=new i.Vector2,z=!1,N=[],I={};function O(){return Math.pow(.95,n.zoomSpeed)}function L(e){n.reverseOrbit||n.reverseHorizontalOrbit?g.theta+=e:g.theta-=e}function A(e){n.reverseOrbit||n.reverseVerticalOrbit?g.phi+=e:g.phi-=e}let j=(()=>{let e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),b.add(e)}})(),R=(()=>{let e=new i.Vector3;return function(t,r){!0===n.screenSpacePanning?e.setFromMatrixColumn(r,1):(e.setFromMatrixColumn(r,0),e.crossVectors(n.object.up,e)),e.multiplyScalar(t),b.add(e)}})(),D=(()=>{let e=new i.Vector3;return function(t,r){let l=n.domElement;if(l&&n.object instanceof i.PerspectiveCamera&&n.object.isPerspectiveCamera){let a=n.object.position;e.copy(a).sub(n.target);let i=e.length();j(2*t*(i*=Math.tan(n.object.fov/2*Math.PI/180))/l.clientHeight,n.object.matrix),R(2*r*i/l.clientHeight,n.object.matrix)}else l&&n.object instanceof i.OrthographicCamera&&n.object.isOrthographicCamera?(j(t*(n.object.right-n.object.left)/n.object.zoom/l.clientWidth,n.object.matrix),R(r*(n.object.top-n.object.bottom)/n.object.zoom/l.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}})();function F(e){n.object instanceof i.PerspectiveCamera&&n.object.isPerspectiveCamera||n.object instanceof i.OrthographicCamera&&n.object.isOrthographicCamera?v/=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function U(e){n.object instanceof i.PerspectiveCamera&&n.object.isPerspectiveCamera||n.object instanceof i.OrthographicCamera&&n.object.isOrthographicCamera?v*=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function H(e){if(!n.zoomToCursor||!n.domElement)return;z=!0;let t=n.domElement.getBoundingClientRect(),r=e.clientX-t.left,l=e.clientY-t.top,a=t.width,i=t.height;T.x=r/a*2-1,T.y=-(l/i*2)+1,M.set(T.x,T.y,1).unproject(n.object).sub(n.object.position).normalize()}function V(e){return Math.max(n.minDistance,Math.min(n.maxDistance,e))}function B(e){y.set(e.clientX,e.clientY)}function W(e){x.set(e.clientX,e.clientY)}function Q(){if(1==N.length)y.set(N[0].pageX,N[0].pageY);else{let e=.5*(N[0].pageX+N[1].pageX),t=.5*(N[0].pageY+N[1].pageY);y.set(e,t)}}function q(){if(1==N.length)x.set(N[0].pageX,N[0].pageY);else{let e=.5*(N[0].pageX+N[1].pageX),t=.5*(N[0].pageY+N[1].pageY);x.set(e,t)}}function Y(){let e=N[0].pageX-N[1].pageX,t=N[0].pageY-N[1].pageY;P.set(0,Math.sqrt(e*e+t*t))}function $(e){if(1==N.length)w.set(e.pageX,e.pageY);else{let t=ei(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);w.set(n,r)}S.subVectors(w,y).multiplyScalar(n.rotateSpeed);let t=n.domElement;t&&(L(2*Math.PI*S.x/t.clientHeight),A(2*Math.PI*S.y/t.clientHeight)),y.copy(w)}function G(e){if(1==N.length)E.set(e.pageX,e.pageY);else{let t=ei(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);E.set(n,r)}k.subVectors(E,x).multiplyScalar(n.panSpeed),D(k.x,k.y),x.copy(E)}function X(e){let t=ei(e),r=e.pageX-t.x,l=e.pageY-t.y;C.set(0,Math.sqrt(r*r+l*l)),_.set(0,Math.pow(C.y/P.y,n.zoomSpeed)),F(_.y),P.copy(C)}function Z(e){var t,r;!1!==n.enabled&&(0===N.length&&(null==(t=n.domElement)||t.ownerDocument.addEventListener("pointermove",K),null==(r=n.domElement)||r.ownerDocument.addEventListener("pointerup",J)),N.push(e),"touch"===e.pointerType?function(e){switch(ea(e),N.length){case 1:switch(n.touches.ONE){case i.TOUCH.ROTATE:if(!1===n.enableRotate)return;Q(),u=o.TOUCH_ROTATE;break;case i.TOUCH.PAN:if(!1===n.enablePan)return;q(),u=o.TOUCH_PAN;break;default:u=o.NONE}break;case 2:switch(n.touches.TWO){case i.TOUCH.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&Y(),n.enablePan&&q(),u=o.TOUCH_DOLLY_PAN;break;case i.TOUCH.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&Y(),n.enableRotate&&Q(),u=o.TOUCH_DOLLY_ROTATE;break;default:u=o.NONE}break;default:u=o.NONE}u!==o.NONE&&n.dispatchEvent(l)}(e):function(e){let t;switch(e.button){case 0:t=n.mouseButtons.LEFT;break;case 1:t=n.mouseButtons.MIDDLE;break;case 2:t=n.mouseButtons.RIGHT;break;default:t=-1}switch(t){case i.MOUSE.DOLLY:if(!1===n.enableZoom)return;H(e),P.set(e.clientX,e.clientY),u=o.DOLLY;break;case i.MOUSE.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enablePan)return;W(e),u=o.PAN}else{if(!1===n.enableRotate)return;B(e),u=o.ROTATE}break;case i.MOUSE.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enableRotate)return;B(e),u=o.ROTATE}else{if(!1===n.enablePan)return;W(e),u=o.PAN}break;default:u=o.NONE}u!==o.NONE&&n.dispatchEvent(l)}(e))}function K(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(ea(e),u){case o.TOUCH_ROTATE:if(!1===n.enableRotate)return;$(e),n.update();break;case o.TOUCH_PAN:if(!1===n.enablePan)return;G(e),n.update();break;case o.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&X(e),n.enablePan&&G(e),n.update();break;case o.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&X(e),n.enableRotate&&$(e),n.update();break;default:u=o.NONE}}(e):function(e){if(!1!==n.enabled)switch(u){case o.ROTATE:if(!1===n.enableRotate)return;!function(e){w.set(e.clientX,e.clientY),S.subVectors(w,y).multiplyScalar(n.rotateSpeed);let t=n.domElement;t&&(L(2*Math.PI*S.x/t.clientHeight),A(2*Math.PI*S.y/t.clientHeight)),y.copy(w),n.update()}(e);break;case o.DOLLY:if(!1===n.enableZoom)return;C.set(e.clientX,e.clientY),_.subVectors(C,P),_.y>0?F(O()):_.y<0&&U(O()),P.copy(C),n.update();break;case o.PAN:if(!1===n.enablePan)return;E.set(e.clientX,e.clientY),k.subVectors(E,x).multiplyScalar(n.panSpeed),D(k.x,k.y),x.copy(E),n.update()}}(e))}function J(e){var t,r,l;el(e),0===N.length&&(null==(t=n.domElement)||t.releasePointerCapture(e.pointerId),null==(r=n.domElement)||r.ownerDocument.removeEventListener("pointermove",K),null==(l=n.domElement)||l.ownerDocument.removeEventListener("pointerup",J)),n.dispatchEvent(a),u=o.NONE}function ee(e){el(e)}function et(e){!1!==n.enabled&&!1!==n.enableZoom&&(u===o.NONE||u===o.ROTATE)&&(e.preventDefault(),n.dispatchEvent(l),H(e),e.deltaY<0?U(O()):e.deltaY>0&&F(O()),n.update(),n.dispatchEvent(a))}function en(e){!1!==n.enabled&&!1!==n.enablePan&&function(e){let t=!1;switch(e.code){case n.keys.UP:D(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:D(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:D(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:D(-n.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),n.update())}(e)}function er(e){!1!==n.enabled&&e.preventDefault()}function el(e){delete I[e.pointerId];for(let t=0;t{let m=(0,l.A)(e=>e.invalidate),g=(0,l.A)(e=>e.camera),v=(0,l.A)(e=>e.gl),b=(0,l.A)(e=>e.events),y=(0,l.A)(e=>e.setEvents),w=(0,l.A)(e=>e.set),S=(0,l.A)(e=>e.get),x=(0,l.A)(e=>e.performance),E=t||g,k=i||b.connected||v.domElement,P=a.useMemo(()=>new h(E),[E]);return(0,l.C)(()=>{P.enabled&&P.update()},-1),a.useEffect(()=>(u&&P.connect(!0===u?k:u),P.connect(k),()=>void P.dispose()),[u,k,n,P,m]),a.useEffect(()=>{let e=e=>{m(),n&&x.regress(),s&&s(e)},t=e=>{c&&c(e)},r=e=>{f&&f(e)};return P.addEventListener("change",e),P.addEventListener("start",t),P.addEventListener("end",r),()=>{P.removeEventListener("start",t),P.removeEventListener("end",r),P.removeEventListener("change",e)}},[s,c,f,P,m,y]),a.useEffect(()=>{if(e){let e=S().controls;return w({controls:P}),()=>w({controls:e})}},[e,P]),a.createElement("primitive",(0,r.Z)({ref:p,object:P,enableDamping:o},d))})},37158:function(e,t,n){"use strict";let r,l,a;n.d(t,{A:function(){return es},B:function(){return N},C:function(){return ec},E:function(){return I},a:function(){return T},b:function(){return eS},c:function(){return K},d:function(){return eE},e:function(){return k},i:function(){return M},u:function(){return z}});var i,o,u=n(99477),s=n(67294),c=n(32576);let f="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?s.useEffect:s.useLayoutEffect;var d=n(76525),p=n.n(d),h=n(63840);let m=e=>"object"==typeof e&&"function"==typeof e.then,g=[];function v(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;let r=e.length;if(t.length!==r)return!1;for(let l=0;l0&&(l.timeout&&clearTimeout(l.timeout),l.timeout=setTimeout(l.remove,r.lifespan)),l.response;if(!n)throw l.promise}let l={keys:t,equal:r.equal,remove:()=>{let e=g.indexOf(l);-1!==e&&g.splice(e,1)},promise:(m(e)?e:e(...t)).then(e=>{l.response=e,r.lifespan&&r.lifespan>0&&(l.timeout=setTimeout(l.remove,r.lifespan))}).catch(e=>l.error=e)};if(g.push(l),!n)throw l.promise}let y=(e,t,n)=>b(e,t,!1,n),w=(e,t,n)=>void b(e,t,!0,n),S=e=>{if(void 0===e||0===e.length)g.splice(0,g.length);else{let t=g.find(t=>v(e,t.keys,t.equal));t&&t.remove()}};var x=n(83454);let E={},k=e=>void Object.assign(E,e),P=e=>"colorSpace"in e||"outputColorSpace"in e,C=()=>{var e;return null!=(e=E.ColorManagement)?e:null},_=e=>e&&e.isOrthographicCamera,M=e=>e&&e.hasOwnProperty("current"),T="undefined"!=typeof window&&(null!=(i=window.document)&&i.createElement||(null==(o=window.navigator)?void 0:o.product)==="ReactNative")?s.useLayoutEffect:s.useEffect;function z(e){let t=s.useRef(e);return T(()=>void(t.current=e),[e]),t}function N({set:e}){return T(()=>(e(new Promise(()=>null)),()=>e(!1)),[e]),null}class I extends s.Component{constructor(...e){super(...e),this.state={error:!1}}componentDidCatch(e){this.props.set(e)}render(){return this.state.error?null:this.props.children}}I.getDerivedStateFromError=()=>({error:!0});let O="__default",L=new Map,A=e=>e&&!!e.memoized&&!!e.changes;function j(e){var t;let n="undefined"!=typeof window?null!=(t=window.devicePixelRatio)?t:2:1;return Array.isArray(e)?Math.min(Math.max(e[0],n),e[1]):e}let R=e=>{var t;return null==(t=e.__r3f)?void 0:t.root.getState()};function D(e){let t=e.__r3f.root;for(;t.getState().previousRoot;)t=t.getState().previousRoot;return t}let F={obj:e=>e===Object(e)&&!F.arr(e)&&"function"!=typeof e,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,boo:e=>"boolean"==typeof e,und:e=>void 0===e,arr:e=>Array.isArray(e),equ(e,t,{arrays:n="shallow",objects:r="reference",strict:l=!0}={}){let a;if(typeof e!=typeof t||!!e!=!!t)return!1;if(F.str(e)||F.num(e))return e===t;let i=F.obj(e);if(i&&"reference"===r)return e===t;let o=F.arr(e);if(o&&"reference"===n)return e===t;if((o||i)&&e===t)return!0;for(a in e)if(!(a in t))return!1;if(i&&"shallow"===n&&"shallow"===r){for(a in l?t:e)if(!F.equ(e[a],t[a],{strict:l,objects:"reference"}))return!1}else for(a in l?t:e)if(e[a]!==t[a])return!1;if(F.und(a)){if(o&&0===e.length&&0===t.length||i&&0===Object.keys(e).length&&0===Object.keys(t).length)return!0;if(e!==t)return!1}return!0}};function U(e,t){return e.__r3f={type:"",root:null,previousAttach:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null,...t},e}function H(e,t){let n=e;if(!t.includes("-"))return{target:n,key:t};{let r=t.split("-"),l=r.pop();return{target:n=r.reduce((e,t)=>e[t],e),key:l}}}let V=/-\d+$/;function B(e,t,n){if(F.str(n)){if(V.test(n)){let{target:t,key:r}=H(e,n.replace(V,""));Array.isArray(t[r])||(t[r]=[])}let{target:r,key:l}=H(e,n);t.__r3f.previousAttach=r[l],r[l]=t}else t.__r3f.previousAttach=n(e,t)}function W(e,t,n){var r,l;if(F.str(n)){let{target:r,key:l}=H(e,n),a=t.__r3f.previousAttach;void 0===a?delete r[l]:r[l]=a}else null==(r=t.__r3f)||null==r.previousAttach||r.previousAttach(e,t);null==(l=t.__r3f)||delete l.previousAttach}function Q(e,{children:t,key:n,ref:r,...l},{children:a,key:i,ref:o,...u}={},s=!1){var c;let f=null!=(c=null==e?void 0:e.__r3f)?c:{},d=Object.entries(l),p=[];if(s){let e=Object.keys(u);for(let t=0;t{var r;if(null!=(r=e.__r3f)&&r.primitive&&"object"===t||F.equ(n,u[t]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(t))return p.push([t,n,!0,[]]);let a=[];for(let e in t.includes("-")&&(a=t.split("-")),p.push([t,n,!1,a]),l){let n=l[e];e.startsWith(`${t}-`)&&p.push([e,n,!1,e.split("-")])}});let h={...l};return f.memoizedProps&&f.memoizedProps.args&&(h.args=f.memoizedProps.args),f.memoizedProps&&f.memoizedProps.attach&&(h.attach=f.memoizedProps.attach),{memoized:h,changes:p}}let q=void 0!==x&&!1;function Y(e,t){var n,r,l;let a=null!=(n=e.__r3f)?n:{},i=a.root,o=null!=(r=null==i?void 0:null==i.getState?void 0:i.getState())?r:{},{memoized:s,changes:c}=A(t)?t:Q(e,t),f=a.eventCount;e.__r3f&&(e.__r3f.memoizedProps=s);for(let t=0;te[t],e))&&f.set)){let[t,...r]=i.reverse();s=r.reverse().reduce((e,t)=>e[t],e),n=t}if(r===O+"remove"){if(s.constructor){let e=L.get(s.constructor);e||(e=new s.constructor,L.set(s.constructor,e)),r=e[n]}else r=0}if(l)r?a.handlers[n]=r:delete a.handlers[n],a.eventCount=Object.keys(a.handlers).length;else if(f&&f.set&&(f.copy||f instanceof u.Layers)){if(Array.isArray(r))f.fromArray?f.fromArray(r):f.set(...r);else if(f.copy&&r&&r.constructor&&(q?f.constructor.name===r.constructor.name:f.constructor===r.constructor))f.copy(r);else if(void 0!==r){let e=f instanceof u.Color;!e&&f.setScalar?f.setScalar(r):f instanceof u.Layers&&r instanceof u.Layers?f.mask=r.mask:f.set(r),C()||o.linear||!e||f.convertSRGBToLinear()}}else if(s[n]=r,s[n]instanceof u.Texture&&s[n].format===u.RGBAFormat&&s[n].type===u.UnsignedByteType){let e=s[n];P(e)&&P(o.gl)?e.colorSpace=o.gl.outputColorSpace:e.encoding=o.gl.outputEncoding}$(e)}if(a.parent&&e.raycast&&f!==a.eventCount){let t=D(e).getState().internal,n=t.interaction.indexOf(e);n>-1&&t.interaction.splice(n,1),a.eventCount&&t.interaction.push(e)}return!(1===c.length&&"onUpdate"===c[0][0])&&c.length&&null!=(l=e.__r3f)&&l.parent&&G(e),e}function $(e){var t,n;let r=null==(t=e.__r3f)?void 0:null==(n=t.root)?void 0:null==n.getState?void 0:n.getState();r&&0===r.internal.frames&&r.invalidate()}function G(e){null==e.onUpdate||e.onUpdate(e)}function X(e){return(e.eventObject||e.object).uuid+"/"+e.index+e.instanceId}function Z(e,t,n,r){let l=n.get(t);l&&(n.delete(t),0===n.size&&(e.delete(r),l.target.releasePointerCapture(r)))}function K(e){function t(e){return e.filter(e=>["Move","Over","Enter","Out","Leave"].some(t=>{var n;return null==(n=e.__r3f)?void 0:n.handlers["onPointer"+t]}))}function n(t){let{internal:n}=e.getState();for(let e of n.hovered.values())if(!t.length||!t.find(t=>t.object===e.object&&t.index===e.index&&t.instanceId===e.instanceId)){let r=e.eventObject.__r3f,l=null==r?void 0:r.handlers;if(n.hovered.delete(X(e)),null!=r&&r.eventCount){let n={...e,intersections:t};null==l.onPointerOut||l.onPointerOut(n),null==l.onPointerLeave||l.onPointerLeave(n)}}}function r(e,t){for(let n=0;nn([]);case"onLostPointerCapture":return t=>{let{internal:r}=e.getState();"pointerId"in t&&r.capturedMap.has(t.pointerId)&&requestAnimationFrame(()=>{r.capturedMap.has(t.pointerId)&&(r.capturedMap.delete(t.pointerId),n([]))})}}return function(a){let{onPointerMissed:i,internal:o}=e.getState();o.lastEvent.current=a;let s="onPointerMove"===l,c="onClick"===l||"onContextMenu"===l||"onDoubleClick"===l,f=function(t,n){let r=e.getState(),l=new Set,a=[],i=n?n(r.internal.interaction):r.internal.interaction;for(let e=0;e{let n=R(e.object),r=R(t.object);return n&&r&&r.events.priority-n.events.priority||e.distance-t.distance}).filter(e=>{let t=X(e);return!l.has(t)&&(l.add(t),!0)});for(let e of(r.events.filter&&(o=r.events.filter(o,r)),o)){let t=e.object;for(;t;){var u;null!=(u=t.__r3f)&&u.eventCount&&a.push({...e,eventObject:t}),t=t.parent}}if("pointerId"in t&&r.internal.capturedMap.has(t.pointerId))for(let e of r.internal.capturedMap.get(t.pointerId).values())l.has(X(e.intersection))||a.push(e.intersection);return a}(a,s?t:void 0),d=c?function(t){let{internal:n}=e.getState(),r=t.offsetX-n.initialClick[0],l=t.offsetY-n.initialClick[1];return Math.round(Math.sqrt(r*r+l*l))}(a):0;"onPointerDown"===l&&(o.initialClick=[a.offsetX,a.offsetY],o.initialHits=f.map(e=>e.eventObject)),c&&!f.length&&d<=2&&(r(a,o.interaction),i&&i(a)),s&&n(f),function(t,r,l,a){let i=e.getState();if(t.length){let e={stopped:!1};for(let o of t){let{raycaster:s,pointer:c,camera:f,internal:d}=R(o.object)||i,p=new u.Vector3(c.x,c.y,0).unproject(f),h=e=>{var t,n;return null!=(t=null==(n=d.capturedMap.get(e))?void 0:n.has(o.eventObject))&&t},m=e=>{let t={intersection:o,target:r.target};d.capturedMap.has(e)?d.capturedMap.get(e).set(o.eventObject,t):d.capturedMap.set(e,new Map([[o.eventObject,t]])),r.target.setPointerCapture(e)},g=e=>{let t=d.capturedMap.get(e);t&&Z(d.capturedMap,o.eventObject,t,e)},v={};for(let e in r){let t=r[e];"function"!=typeof t&&(v[e]=t)}let b={...o,...v,pointer:c,intersections:t,stopped:e.stopped,delta:l,unprojectedPoint:p,ray:s.ray,camera:f,stopPropagation(){let l="pointerId"in r&&d.capturedMap.get(r.pointerId);(!l||l.has(o.eventObject))&&(b.stopped=e.stopped=!0,d.hovered.size&&Array.from(d.hovered.values()).find(e=>e.eventObject===o.eventObject)&&n([...t.slice(0,t.indexOf(o)),o]))},target:{hasPointerCapture:h,setPointerCapture:m,releasePointerCapture:g},currentTarget:{hasPointerCapture:h,setPointerCapture:m,releasePointerCapture:g},nativeEvent:r};if(a(b),!0===e.stopped)break}}}(f,a,d,function(e){let t=e.eventObject,n=t.__r3f,i=null==n?void 0:n.handlers;if(null!=n&&n.eventCount){if(s){if(i.onPointerOver||i.onPointerEnter||i.onPointerOut||i.onPointerLeave){let t=X(e),n=o.hovered.get(t);n?n.stopped&&e.stopPropagation():(o.hovered.set(t,e),null==i.onPointerOver||i.onPointerOver(e),null==i.onPointerEnter||i.onPointerEnter(e))}null==i.onPointerMove||i.onPointerMove(e)}else{let n=i[l];n?(!c||o.initialHits.includes(t))&&(r(a,o.interaction.filter(e=>!o.initialHits.includes(e))),n(e)):c&&o.initialHits.includes(t)&&r(a,o.interaction.filter(e=>!o.initialHits.includes(e)))}}})}}}}let J=e=>!!(null!=e&&e.render),ee=s.createContext(null),et=(e,t)=>{let n=function(e){let t="function"==typeof e?function(e){let t;let n=new Set,r=(e,r)=>{let l="function"==typeof e?e(t):e;if(l!==t){let e=t;t=r?l:Object.assign({},t,l),n.forEach(n=>n(t,e))}},l=()=>t,a=(e,r=l,a=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let i=r(t);function o(){let n=r(t);if(!a(i,n)){let t=i;e(i=n,t)}}return n.add(o),()=>n.delete(o)},i={setState:r,getState:l,subscribe:(e,t,r)=>t||r?a(e,t,r):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,l,i),i}(e):e,n=(e=t.getState,n=Object.is)=>{let r;let[,l]=(0,s.useReducer)(e=>e+1,0),a=t.getState(),i=(0,s.useRef)(a),o=(0,s.useRef)(e),u=(0,s.useRef)(n),c=(0,s.useRef)(!1),d=(0,s.useRef)();void 0===d.current&&(d.current=e(a));let p=!1;(i.current!==a||o.current!==e||u.current!==n||c.current)&&(r=e(a),p=!n(d.current,r)),f(()=>{p&&(d.current=r),i.current=a,o.current=e,u.current=n,c.current=!1});let h=(0,s.useRef)(a);f(()=>{let e=()=>{try{let e=t.getState(),n=o.current(e);u.current(d.current,n)||(i.current=e,d.current=n,l())}catch(e){c.current=!0,l()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n},[]);let m=p?r:d.current;return(0,s.useDebugValue)(m),m};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");let e=[n,t];return{next(){let t=e.length<=0;return{value:e.shift(),done:t}}}},n}((n,r)=>{let l;let a=new u.Vector3,i=new u.Vector3,o=new u.Vector3;function c(e=r().camera,t=i,n=r().size){let{width:l,height:s,top:c,left:f}=n,d=l/s;t instanceof u.Vector3?o.copy(t):o.set(...t);let p=e.getWorldPosition(a).distanceTo(o);if(_(e))return{width:l/e.zoom,height:s/e.zoom,top:c,left:f,factor:1,distance:p,aspect:d};{let t=2*Math.tan(e.fov*Math.PI/180/2)*p,n=l/s*t;return{width:n,height:t,top:c,left:f,factor:l/n,distance:p,aspect:d}}}let f=e=>n(t=>({performance:{...t.performance,current:e}})),d=new u.Vector2;return{set:n,get:r,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1},xr:null,scene:null,invalidate:(t=1)=>e(r(),t),advance:(e,n)=>t(e,n,r()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new u.Clock,pointer:d,mouse:d,frameloop:"always",onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{let e=r();l&&clearTimeout(l),e.performance.current!==e.performance.min&&f(e.performance.min),l=setTimeout(()=>f(r().performance.max),e.performance.debounce)}},size:{width:0,height:0,top:0,left:0,updateStyle:!1},viewport:{initialDpr:0,dpr:0,width:0,height:0,top:0,left:0,aspect:0,distance:0,factor:0,getCurrentViewport:c},setEvents:e=>n(t=>({...t,events:{...t.events,...e}})),setSize:(e,t,l,a,o)=>{let u=r().camera,s={width:e,height:t,top:a||0,left:o||0,updateStyle:l};n(e=>({size:s,viewport:{...e.viewport,...c(u,i,s)}}))},setDpr:e=>n(t=>{let n=j(e);return{viewport:{...t.viewport,dpr:n,initialDpr:t.viewport.initialDpr||n}}}),setFrameloop:(e="always")=>{let t=r().clock;t.stop(),t.elapsedTime=0,"never"!==e&&(t.start(),t.elapsedTime=0),n(()=>({frameloop:e}))},previousRoot:void 0,internal:{active:!1,priority:0,frames:0,lastEvent:s.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(e,t,n)=>{let l=r().internal;return l.priority=l.priority+(t>0?1:0),l.subscribers.push({ref:e,priority:t,store:n}),l.subscribers=l.subscribers.sort((e,t)=>e.priority-t.priority),()=>{let n=r().internal;null!=n&&n.subscribers&&(n.priority=n.priority-(t>0?1:0),n.subscribers=n.subscribers.filter(t=>t.ref!==e))}}}}}),r=n.getState(),l=r.size,a=r.viewport.dpr,i=r.camera;return n.subscribe(()=>{let{camera:e,size:t,viewport:r,gl:o,set:u}=n.getState();if(t.width!==l.width||t.height!==l.height||r.dpr!==a){var s;l=t,a=r.dpr,e.manual||(_(e)?(e.left=-(t.width/2),e.right=t.width/2,e.top=t.height/2,e.bottom=-(t.height/2)):e.aspect=t.width/t.height,e.updateProjectionMatrix(),e.updateMatrixWorld()),o.setPixelRatio(r.dpr);let n=null!=(s=t.updateStyle)?s:"undefined"!=typeof HTMLCanvasElement&&o.domElement instanceof HTMLCanvasElement;o.setSize(t.width,t.height,n)}e!==i&&(i=e,u(t=>({viewport:{...t.viewport,...t.viewport.getCurrentViewport(e)}})))}),n.subscribe(t=>e(t)),n},en=new Set,er=new Set,el=new Set;function ea(e,t){if(e.size)for(let{callback:n}of e.values())n(t)}function ei(e,t){switch(e){case"before":return ea(en,t);case"after":return ea(er,t);case"tail":return ea(el,t)}}function eo(e,t,n){let i=t.clock.getDelta();for("never"===t.frameloop&&"number"==typeof e&&(i=e-t.clock.elapsedTime,t.clock.oldTime=t.clock.elapsedTime,t.clock.elapsedTime=e),l=t.internal.subscribers,r=0;re,t){return eu()(e,t)}function ec(e,t=0){let n=eu(),r=n.getState().internal.subscribe,l=z(e);return T(()=>r(l,t,n),[t,r,n]),null}let ef=new WeakMap;function ed(e,t){return function(n,...r){let l=ef.get(n);return l||(l=new n,ef.set(n,l)),e&&e(l),Promise.all(r.map(e=>new Promise((n,r)=>l.load(e,e=>{e.scene&&Object.assign(e,function(e){let t={nodes:{},materials:{}};return e&&e.traverse(e=>{e.name&&(t.nodes[e.name]=e),e.material&&!t.materials[e.material.name]&&(t.materials[e.material.name]=e.material)}),t}(e.scene)),n(e)},t,t=>r(Error(`Could not load ${e}: ${null==t?void 0:t.message}`))))))}}function ep(e,t,n,r){let l=Array.isArray(t)?t:[t],a=y(ed(n,r),[e,...l],{equal:F.equ});return Array.isArray(t)?a:a[0]}ep.preload=function(e,t,n){let r=Array.isArray(t)?t:[t];return w(ed(n),[e,...r])},ep.clear=function(e,t){return S([e,...Array.isArray(t)?t:[t]])};let eh=new Map,{invalidate:em,advance:eg}=function(e){let t,n,r,l=!1,a=!1;function i(o){for(let s of(n=requestAnimationFrame(i),l=!0,t=0,ei("before",o),a=!0,e.values())){var u;(r=s.store.getState()).internal.active&&("always"===r.frameloop||r.internal.frames>0)&&!(null!=(u=r.gl.xr)&&u.isPresenting)&&(t+=eo(o,r))}if(a=!1,ei("after",o),0===t)return ei("tail",o),l=!1,cancelAnimationFrame(n)}return{loop:i,invalidate:function t(n,r=1){var o;if(!n)return e.forEach(e=>t(e.store.getState(),r));null!=(o=n.gl.xr)&&o.isPresenting||!n.internal.active||"never"===n.frameloop||(r>1?n.internal.frames=Math.min(60,n.internal.frames+r):a?n.internal.frames=2:n.internal.frames=1,l||(l=!0,requestAnimationFrame(i)))},advance:function(t,n=!0,r,l){if(n&&ei("before",t),r)eo(t,r,l);else for(let n of e.values())eo(t,n.store.getState());n&&ei("after",t)}}}(eh),{reconciler:ev,applyProps:eb}=function(e,t){function n(e,{args:t=[],attach:n,...r},l){let a,i=`${e[0].toUpperCase()}${e.slice(1)}`;if("primitive"===e){if(void 0===r.object)throw Error("R3F: Primitives without 'object' are invalid!");a=U(r.object,{type:e,root:l,attach:n,primitive:!0})}else{let r=E[i];if(!r)throw Error(`R3F: ${i} is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively`);if(!Array.isArray(t))throw Error("R3F: The args prop must be an array!");a=U(new r(...t),{type:e,root:l,attach:n,memoizedProps:{args:t}})}return void 0===a.__r3f.attach&&(a instanceof u.BufferGeometry?a.__r3f.attach="geometry":a instanceof u.Material&&(a.__r3f.attach="material")),"inject"!==i&&Y(a,r),a}function r(e,t){let n=!1;if(t){var r,l;null!=(r=t.__r3f)&&r.attach?B(e,t,t.__r3f.attach):t.isObject3D&&e.isObject3D&&(e.add(t),n=!0),n||null==(l=e.__r3f)||l.objects.push(t),t.__r3f||U(t,{}),t.__r3f.parent=e,G(t),$(t)}}function l(e,t,n){let r=!1;if(t){var l,a;if(null!=(l=t.__r3f)&&l.attach)B(e,t,t.__r3f.attach);else if(t.isObject3D&&e.isObject3D){t.parent=e,t.dispatchEvent({type:"added"}),e.dispatchEvent({type:"childadded",child:t});let l=e.children.filter(e=>e!==t),a=l.indexOf(n);e.children=[...l.slice(0,a),t,...l.slice(a)],r=!0}r||null==(a=e.__r3f)||a.objects.push(t),t.__r3f||U(t,{}),t.__r3f.parent=e,G(t),$(t)}}function a(e,t,n=!1){e&&[...e].forEach(e=>i(t,e,n))}function i(e,t,n){if(t){var r,l,i,o,u;t.__r3f&&(t.__r3f.parent=null),null!=(r=e.__r3f)&&r.objects&&(e.__r3f.objects=e.__r3f.objects.filter(e=>e!==t)),null!=(l=t.__r3f)&&l.attach?W(e,t,t.__r3f.attach):t.isObject3D&&e.isObject3D&&(e.remove(t),null!=(o=t.__r3f)&&o.root&&function(e,t){let{internal:n}=e.getState();n.interaction=n.interaction.filter(e=>e!==t),n.initialHits=n.initialHits.filter(e=>e!==t),n.hovered.forEach((e,r)=>{(e.eventObject===t||e.object===t)&&n.hovered.delete(r)}),n.capturedMap.forEach((e,r)=>{Z(n.capturedMap,t,e,r)})}(D(t),t));let s=null==(i=t.__r3f)?void 0:i.primitive,c=!s&&(void 0===n?null!==t.dispose:n);if(s||(a(null==(u=t.__r3f)?void 0:u.objects,t,c),a(t.children,t,c)),delete t.__r3f,c&&t.dispose&&"Scene"!==t.type){let e=()=>{try{t.dispose()}catch(e){}};"undefined"==typeof IS_REACT_ACT_ENVIRONMENT?(0,h.unstable_scheduleCallback)(h.unstable_IdlePriority,e):e()}$(e)}}let o=()=>console.warn("Text is not allowed in the R3F tree! This could be stray whitespace or characters.");return{reconciler:p()({createInstance:n,removeChild:i,appendChild:r,appendInitialChild:r,insertBefore:l,supportsMutation:!0,isPrimaryRenderer:!1,supportsPersistence:!1,supportsHydration:!1,noTimeout:-1,appendChildToContainer:(e,t)=>{if(!t)return;let n=e.getState().scene;n.__r3f&&(n.__r3f.root=e,r(n,t))},removeChildFromContainer:(e,t)=>{t&&i(e.getState().scene,t)},insertInContainerBefore:(e,t,n)=>{if(!t||!n)return;let r=e.getState().scene;r.__r3f&&l(r,t,n)},getRootHostContext:()=>null,getChildHostContext:e=>e,finalizeInitialChildren(e){var t;return!!(null!=(t=null==e?void 0:e.__r3f)?t:{}).handlers},prepareUpdate(e,t,n,r){var l;if((null!=(l=null==e?void 0:e.__r3f)?l:{}).primitive&&r.object&&r.object!==e)return[!0];{let{args:t=[],children:l,...a}=r,{args:i=[],children:o,...u}=n;if(!Array.isArray(t))throw Error("R3F: the args prop must be an array!");if(t.some((e,t)=>e!==i[t]))return[!0];let s=Q(e,a,u,!0);return s.changes.length?[!1,s]:null}},commitUpdate(e,[t,l],a,o,u,s){t?function(e,t,l,a){var o;let u=null==(o=e.__r3f)?void 0:o.parent;if(!u)return;let s=n(t,l,e.__r3f.root);if(e.children){for(let t of e.children)t.__r3f&&r(s,t);e.children=e.children.filter(e=>!e.__r3f)}e.__r3f.objects.forEach(e=>r(s,e)),e.__r3f.objects=[],e.__r3f.autoRemovedBeforeAppend||i(u,e),s.parent&&(s.__r3f.autoRemovedBeforeAppend=!0),r(u,s),s.raycast&&s.__r3f.eventCount&&D(s).getState().internal.interaction.push(s),[a,a.alternate].forEach(e=>{null!==e&&(e.stateNode=s,e.ref&&("function"==typeof e.ref?e.ref(s):e.ref.current=s))})}(e,a,u,s):Y(e,l)},commitMount(e,t,n,r){var l;let a=null!=(l=e.__r3f)?l:{};e.raycast&&a.handlers&&a.eventCount&&D(e).getState().internal.interaction.push(e)},getPublicInstance:e=>e,prepareForCommit:()=>null,preparePortalMount:e=>U(e.getState().scene),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance(e){var t;let{attach:n,parent:r}=null!=(t=e.__r3f)?t:{};n&&r&&W(r,e,n),e.isObject3D&&(e.visible=!1),$(e)},unhideInstance(e,t){var n;let{attach:r,parent:l}=null!=(n=e.__r3f)?n:{};r&&l&&B(l,e,r),(e.isObject3D&&null==t.visible||t.visible)&&(e.visible=!0),$(e)},createTextInstance:o,hideTextInstance:o,unhideTextInstance:o,getCurrentEventPriority:()=>t?t():c.DefaultEventPriority,beforeActiveInstanceBlur:()=>{},afterActiveInstanceBlur:()=>{},detachDeletedInstance:()=>{},now:"undefined"!=typeof performance&&F.fun(performance.now)?performance.now:F.fun(Date.now)?Date.now:()=>0,scheduleTimeout:F.fun(setTimeout)?setTimeout:void 0,cancelTimeout:F.fun(clearTimeout)?clearTimeout:void 0}),applyProps:Y}}(0,function(){var e;let t="undefined"!=typeof self&&self||"undefined"!=typeof window&&window;if(!t)return c.DefaultEventPriority;switch(null==(e=t.event)?void 0:e.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return c.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return c.ContinuousEventPriority;default:return c.DefaultEventPriority}}),ey={objects:"shallow",strict:!1},ew=(e,t)=>{let n="function"==typeof e?e(t):e;return J(n)?n:new u.WebGLRenderer({powerPreference:"high-performance",canvas:t,antialias:!0,alpha:!0,...e})};function eS(e){let t,n;let r=eh.get(e),l=null==r?void 0:r.fiber,a=null==r?void 0:r.store;r&&console.warn("R3F.createRoot should only be called once!");let i="function"==typeof reportError?reportError:console.error,o=a||et(em,eg),f=l||ev.createContainer(o,c.ConcurrentRoot,null,!1,null,"",i,null);r||eh.set(e,{fiber:f,store:o});let d=!1;return{configure(r={}){var l,a;let{gl:i,size:s,scene:c,events:f,onCreated:p,shadows:h=!1,linear:m=!1,flat:g=!1,legacy:v=!1,orthographic:b=!1,frameloop:y="always",dpr:w=[1,2],performance:S,raycaster:x,camera:E,onPointerMissed:k}=r,P=o.getState(),_=P.gl;P.gl||P.set({gl:_=ew(i,e)});let M=P.raycaster;M||P.set({raycaster:M=new u.Raycaster});let{params:T,...z}=x||{};if(F.equ(z,M,ey)||eb(M,{...z}),F.equ(T,M.params,ey)||eb(M,{params:{...M.params,...T}}),!P.camera||P.camera===n&&!F.equ(n,E,ey)){n=E;let e=E instanceof u.Camera,t=e?E:b?new u.OrthographicCamera(0,0,0,0,.1,1e3):new u.PerspectiveCamera(75,0,.1,1e3);e||(t.position.z=5,E&&eb(t,E),P.camera||null!=E&&E.rotation||t.lookAt(0,0,0)),P.set({camera:t}),M.camera=t}if(!P.scene){let e;c instanceof u.Scene?e=c:(e=new u.Scene,c&&eb(e,c)),P.set({scene:U(e)})}if(!P.xr){let e=(e,t)=>{let n=o.getState();"never"!==n.frameloop&&eg(e,!0,n,t)},t=()=>{let t=o.getState();t.gl.xr.enabled=t.gl.xr.isPresenting,t.gl.xr.setAnimationLoop(t.gl.xr.isPresenting?e:null),t.gl.xr.isPresenting||em(t)},n={connect(){let e=o.getState().gl;e.xr.addEventListener("sessionstart",t),e.xr.addEventListener("sessionend",t)},disconnect(){let e=o.getState().gl;e.xr.removeEventListener("sessionstart",t),e.xr.removeEventListener("sessionend",t)}};"function"==typeof(null==(l=_.xr)?void 0:l.addEventListener)&&n.connect(),P.set({xr:n})}if(_.shadowMap){let e=_.shadowMap.enabled,t=_.shadowMap.type;if(_.shadowMap.enabled=!!h,F.boo(h))_.shadowMap.type=u.PCFSoftShadowMap;else if(F.str(h)){let e={basic:u.BasicShadowMap,percentage:u.PCFShadowMap,soft:u.PCFSoftShadowMap,variance:u.VSMShadowMap};_.shadowMap.type=null!=(a=e[h])?a:u.PCFSoftShadowMap}else F.obj(h)&&Object.assign(_.shadowMap,h);(e!==_.shadowMap.enabled||t!==_.shadowMap.type)&&(_.shadowMap.needsUpdate=!0)}let N=C();N&&("enabled"in N?N.enabled=!v:"legacyMode"in N&&(N.legacyMode=v)),d||eb(_,{outputEncoding:m?3e3:3001,toneMapping:g?u.NoToneMapping:u.ACESFilmicToneMapping}),P.legacy!==v&&P.set(()=>({legacy:v})),P.linear!==m&&P.set(()=>({linear:m})),P.flat!==g&&P.set(()=>({flat:g})),!i||F.fun(i)||J(i)||F.equ(i,_,ey)||eb(_,i),f&&!P.events.handlers&&P.set({events:f(o)});let I=function(e,t){let n="undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement;if(t){let{width:e,height:r,top:l,left:a,updateStyle:i=n}=t;return{width:e,height:r,top:l,left:a,updateStyle:i}}if("undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement&&e.parentElement){let{width:t,height:r,top:l,left:a}=e.parentElement.getBoundingClientRect();return{width:t,height:r,top:l,left:a,updateStyle:n}}return"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?{width:e.width,height:e.height,top:0,left:0,updateStyle:n}:{width:0,height:0,top:0,left:0}}(e,s);return F.equ(I,P.size,ey)||P.setSize(I.width,I.height,I.updateStyle,I.top,I.left),w&&P.viewport.dpr!==j(w)&&P.setDpr(w),P.frameloop!==y&&P.setFrameloop(y),P.onPointerMissed||P.set({onPointerMissed:k}),S&&!F.equ(S,P.performance,ey)&&P.set(e=>({performance:{...e.performance,...S}})),t=p,d=!0,this},render(n){return d||this.configure(),ev.updateContainer(s.createElement(ex,{store:o,children:n,onCreated:t,rootElement:e}),f,null,()=>void 0),o},unmount(){eE(e)}}}function ex({store:e,children:t,onCreated:n,rootElement:r}){return T(()=>{let t=e.getState();t.set(e=>({internal:{...e.internal,active:!0}})),n&&n(t),e.getState().events.connected||null==t.events.connect||t.events.connect(r)},[]),s.createElement(ee.Provider,{value:e},t)}function eE(e,t){let n=eh.get(e),r=null==n?void 0:n.fiber;if(r){let l=null==n?void 0:n.store.getState();l&&(l.internal.active=!1),ev.updateContainer(null,r,null,()=>{l&&setTimeout(()=>{try{var n,r,a,i;null==l.events.disconnect||l.events.disconnect(),null==(n=l.gl)||null==(r=n.renderLists)||null==r.dispose||r.dispose(),null==(a=l.gl)||null==a.forceContextLoss||a.forceContextLoss(),null!=(i=l.gl)&&i.xr&&l.xr.disconnect(),function(e){for(let t in e.dispose&&"Scene"!==e.type&&e.dispose(),e)null==t.dispose||t.dispose(),delete e[t]}(l),eh.delete(e),t&&t(e)}catch(e){}},500)})}}ev.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:s.version}),s.unstable_act},15029:function(e,t,n){"use strict";n.d(t,{Xz:function(){return T}});var r,l,a=n(37158),i=n(87462),o=n(67294),u=n(99477),s=n(20296),c=n.n(s);let f=["x","y","top","bottom","left","right","width","height"],d=(e,t)=>f.every(n=>e[n]===t[n]);var p=Object.defineProperty,h=Object.defineProperties,m=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&y(e,n,t[n]);if(g)for(var n of g(t))b.call(t,n)&&y(e,n,t[n]);return e},S=(e,t)=>h(e,m(t));function x(e){try{return Object.defineProperties(e,{_currentRenderer:{get:()=>null,set(){}},_currentRenderer2:{get:()=>null,set(){}}})}catch(t){return e}}"undefined"!=typeof window&&((null==(r=window.document)?void 0:r.createElement)||(null==(l=window.navigator)?void 0:l.product)==="ReactNative")?o.useLayoutEffect:o.useEffect;let E=console.error;console.error=function(){let e=[...arguments].join("");if((null==e?void 0:e.startsWith("Warning:"))&&e.includes("useContext")){console.error=E;return}return E.apply(this,arguments)};let k=x(o.createContext(null));class P extends o.Component{render(){return o.createElement(k.Provider,{value:this._reactInternals},this.props.children)}}n(32576),n(76525),n(63840);let C={onClick:["click",!1],onContextMenu:["contextmenu",!1],onDoubleClick:["dblclick",!1],onWheel:["wheel",!0],onPointerDown:["pointerdown",!0],onPointerUp:["pointerup",!0],onPointerLeave:["pointerleave",!0],onPointerMove:["pointermove",!0],onPointerCancel:["pointercancel",!0],onLostPointerCapture:["lostpointercapture",!0]};function _(e){let{handlePointer:t}=(0,a.c)(e);return{priority:1,enabled:!0,compute(e,t,n){t.pointer.set(e.offsetX/t.size.width*2-1,-(e.offsetY/t.size.height*2)+1),t.raycaster.setFromCamera(t.pointer,t.camera)},connected:void 0,handlers:Object.keys(C).reduce((e,n)=>({...e,[n]:t(n)}),{}),update:()=>{var t;let{events:n,internal:r}=e.getState();null!=(t=r.lastEvent)&&t.current&&n.handlers&&n.handlers.onPointerMove(r.lastEvent.current)},connect:t=>{var n;let{set:r,events:l}=e.getState();null==l.disconnect||l.disconnect(),r(e=>({events:{...e.events,connected:t}})),Object.entries(null!=(n=l.handlers)?n:[]).forEach(([e,n])=>{let[r,l]=C[e];t.addEventListener(r,n,{passive:l})})},disconnect:()=>{let{set:t,events:n}=e.getState();if(n.connected){var r;Object.entries(null!=(r=n.handlers)?r:[]).forEach(([e,t])=>{if(n&&n.connected instanceof HTMLElement){let[r]=C[e];n.connected.removeEventListener(r,t)}}),t(e=>({events:{...e.events,connected:void 0}}))}}}}let M=o.forwardRef(function({children:e,fallback:t,resize:n,style:r,gl:l,events:s=_,eventSource:f,eventPrefix:p,shadows:h,linear:m,flat:g,legacy:v,orthographic:b,frameloop:y,dpr:E,performance:C,raycaster:M,camera:T,scene:z,onPointerMissed:N,onCreated:I,...O},L){o.useMemo(()=>(0,a.e)(u),[]);let A=function(){let e=function(){let e=function(){let e=o.useContext(k);if(null===e)throw Error("its-fine: useFiber must be called within a !");let t=o.useId();return o.useMemo(()=>{for(let n of[e,null==e?void 0:e.alternate]){if(!n)continue;let e=function e(t,n,r){if(!t)return;if(!0===r(t))return t;let l=n?t.return:t.child;for(;l;){let t=e(l,n,r);if(t)return t;l=n?null:l.sibling}}(n,!1,e=>{let n=e.memoizedState;for(;n;){if(n.memoizedState===t)return!0;n=n.next}});if(e)return e}},[e,t])}(),[t]=o.useState(()=>new Map);t.clear();let n=e;for(;n;){if(n.type&&"object"==typeof n.type){let e=void 0===n.type._context&&n.type.Provider===n.type?n.type:n.type._context;e&&e!==k&&!t.has(e)&&t.set(e,o.useContext(x(e)))}n=n.return}return t}();return o.useMemo(()=>Array.from(e.keys()).reduce((t,n)=>r=>o.createElement(t,null,o.createElement(n.Provider,S(w({},r),{value:e.get(n)}))),e=>o.createElement(P,w({},e))),[e])}(),[j,R]=function(e){var t;let{debounce:n,scroll:r,polyfill:l,offsetSize:a}=void 0===e?{debounce:0,scroll:!1,offsetSize:!1}:e,i=l||("undefined"==typeof window?class{}:window.ResizeObserver);if(!i)throw Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[u,s]=(0,o.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),f=(0,o.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:u}),p=n?"number"==typeof n?n:n.scroll:null,h=n?"number"==typeof n?n:n.resize:null,m=(0,o.useRef)(!1);(0,o.useEffect)(()=>(m.current=!0,()=>void(m.current=!1)));let[g,v,b]=(0,o.useMemo)(()=>{let e=()=>{if(!f.current.element)return;let{left:e,top:t,width:n,height:r,bottom:l,right:i,x:o,y:u}=f.current.element.getBoundingClientRect(),c={left:e,top:t,width:n,height:r,bottom:l,right:i,x:o,y:u};f.current.element instanceof HTMLElement&&a&&(c.height=f.current.element.offsetHeight,c.width=f.current.element.offsetWidth),Object.freeze(c),m.current&&!d(f.current.lastBounds,c)&&s(f.current.lastBounds=c)};return[e,h?c()(e,h):e,p?c()(e,p):e]},[s,a,p,h]);function y(){f.current.scrollContainers&&(f.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",b,!0)),f.current.scrollContainers=null),f.current.resizeObserver&&(f.current.resizeObserver.disconnect(),f.current.resizeObserver=null)}function w(){f.current.element&&(f.current.resizeObserver=new i(b),f.current.resizeObserver.observe(f.current.element),r&&f.current.scrollContainers&&f.current.scrollContainers.forEach(e=>e.addEventListener("scroll",b,{capture:!0,passive:!0})))}return t=!!r,(0,o.useEffect)(()=>{if(t)return window.addEventListener("scroll",b,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",b,!0)},[b,t]),(0,o.useEffect)(()=>(window.addEventListener("resize",v),()=>void window.removeEventListener("resize",v)),[v]),(0,o.useEffect)(()=>{y(),w()},[r,b,v]),(0,o.useEffect)(()=>y,[]),[e=>{e&&e!==f.current.element&&(y(),f.current.element=e,f.current.scrollContainers=function e(t){let n=[];if(!t||t===document.body)return n;let{overflow:r,overflowX:l,overflowY:a}=window.getComputedStyle(t);return[r,l,a].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),w())},u,g]}({scroll:!0,debounce:{scroll:50,resize:0},...n}),D=o.useRef(null),F=o.useRef(null);o.useImperativeHandle(L,()=>D.current);let U=(0,a.u)(N),[H,V]=o.useState(!1),[B,W]=o.useState(!1);if(H)throw H;if(B)throw B;let Q=o.useRef(null);(0,a.a)(()=>{let t=D.current;R.width>0&&R.height>0&&t&&(Q.current||(Q.current=(0,a.b)(t)),Q.current.configure({gl:l,events:s,shadows:h,linear:m,flat:g,legacy:v,orthographic:b,frameloop:y,dpr:E,performance:C,raycaster:M,camera:T,scene:z,size:R,onPointerMissed:(...e)=>null==U.current?void 0:U.current(...e),onCreated:e=>{null==e.events.connect||e.events.connect(f?(0,a.i)(f)?f.current:f:F.current),p&&e.setEvents({compute:(e,t)=>{let n=e[p+"X"],r=e[p+"Y"];t.pointer.set(n/t.size.width*2-1,-(r/t.size.height*2)+1),t.raycaster.setFromCamera(t.pointer,t.camera)}}),null==I||I(e)}}),Q.current.render(o.createElement(A,null,o.createElement(a.E,{set:W},o.createElement(o.Suspense,{fallback:o.createElement(a.B,{set:V})},e)))))}),o.useEffect(()=>{let e=D.current;if(e)return()=>(0,a.d)(e)},[]);let q=f?"none":"auto";return o.createElement("div",(0,i.Z)({ref:F,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:q,...r}},O),o.createElement("div",{ref:j,style:{width:"100%",height:"100%"}},o.createElement("canvas",{ref:D,style:{display:"block"}},t)))}),T=o.forwardRef(function(e,t){return o.createElement(P,null,o.createElement(M,(0,i.Z)({},e,{ref:t})))})},20296:function(e){function t(e,t,n){function r(){var s=Date.now()-o;s=0?l=setTimeout(r,t-s):(l=null,n||(u=e.apply(i,a),i=a=null))}null==t&&(t=100);var l,a,i,o,u,s=function(){i=this,a=arguments,o=Date.now();var s=n&&!l;return l||(l=setTimeout(r,t)),s&&(u=e.apply(i,a),i=a=null),u};return s.clear=function(){l&&(clearTimeout(l),l=null)},s.flush=function(){l&&(u=e.apply(i,a),i=a=null,clearTimeout(l),l=null)},s}t.debounce=t,e.exports=t},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),l=n(89607),a=n(2333),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?l(e):a(e)}},27561:function(e,t,n){var r=n(67990),l=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(l,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),l=Object.prototype,a=l.hasOwnProperty,i=l.toString,o=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch(e){}var l=i.call(e);return r&&(t?e[o]=n:delete e[o]),l}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),l="object"==typeof self&&self&&self.Object===Object&&self,a=r||l||Function("return this")();e.exports=a},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},80954:function(e,t,n){var r=n(13218),l=n(7771),a=n(14841),i=Math.max,o=Math.min;e.exports=function(e,t,n){var u,s,c,f,d,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var n=u,r=s;return u=s=void 0,h=t,f=e.apply(r,n)}function y(e){var n=e-p,r=e-h;return void 0===p||n>=t||n<0||g&&r>=c}function w(){var e,n,r,a=l();if(y(a))return S(a);d=setTimeout(w,(e=a-p,n=a-h,r=t-e,g?o(r,c-n):r))}function S(e){return(d=void 0,v&&u)?b(e):(u=s=void 0,f)}function x(){var e,n=l(),r=y(n);if(u=arguments,s=this,p=n,r){if(void 0===d)return h=e=p,d=setTimeout(w,t),m?b(e):f;if(g)return clearTimeout(d),d=setTimeout(w,t),b(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=a(t)||0,r(n)&&(m=!!n.leading,c=(g="maxWait"in n)?i(a(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=s=d=void 0},x.flush=function(){return void 0===d?f:S(l())},x}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),l=n(37005);e.exports=function(e){return"symbol"==typeof e||l(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},14841:function(e,t,n){var r=n(27561),l=n(13218),a=n(33448),i=0/0,o=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return i;if(l(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=l(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):o.test(e)?i:+e}},46511:function(e,t){"use strict";/** - * @license React - * react-reconciler-constants.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */t.ConcurrentRoot=1,t.ContinuousEventPriority=4,t.DefaultEventPriority=16,t.DiscreteEventPriority=1},67287:function(e,t,n){/** - * @license React - * react-reconciler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */e.exports=function(e){"use strict";var t,r,l,a,i,o={},u=n(67294),s=n(63840),c=Object.assign;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--o||l[i]!==a[o]){var u="\n"+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=o);break}}}finally{e3=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?e2(e):""}var e5=Object.prototype.hasOwnProperty,e6=[],e8=-1;function e9(e){return{current:e}}function e7(e){0>e8||(e.current=e6[e8],e6[e8]=null,e8--)}function te(e,t){e6[++e8]=e.current,e.current=t}var tt={},tn=e9(tt),tr=e9(!1),tl=tt;function ta(e,t){var n=e.type.contextTypes;if(!n)return tt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in n)a[l]=t[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ti(e){return null!=(e=e.childContextTypes)}function to(){e7(tr),e7(tn)}function tu(e,t,n){if(tn.current!==tt)throw Error(f(168));te(tn,t),te(tr,n)}function ts(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var l in r=r.getChildContext())if(!(l in t))throw Error(f(108,function(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return M(t);case 8:return t===g?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}(e)||"Unknown",l));return c({},n,r)}function tc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tt,tl=tn.current,te(tn,e),te(tr,tr.current),!0}function tf(e,t,n){var r=e.stateNode;if(!r)throw Error(f(169));n?(e=ts(e,t,tl),r.__reactInternalMemoizedMergedChildContext=e,e7(tr),e7(tn),te(tn,e)):e7(tr),te(tr,n)}var td=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(tp(e)/th|0)|0},tp=Math.log,th=Math.LN2,tm=64,tg=4194304;function tv(e){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: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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function tb(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var o=i&~l;0!==o?r=tv(o):0!=(a&=i)&&(r=tv(a))}else 0!=(i=n&~l)?r=tv(i):0!==a&&(r=tv(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&l)&&((l=r&-r)>=(a=t&-t)||16===l&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function tS(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-td(t)]=n}function tx(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-td(n),l=1<>=i,l-=i,nm=1<<32-td(t)+l|n<p?(h=f,f=null):h=f.sibling;var m=g(l,f,o[p],u);if(null===m){null===f&&(f=h);break}e&&f&&null===m.alternate&&t(l,f),i=a(m,i,p),null===c?s=m:c.sibling=m,c=m,f=h}if(p===o.length)return n(l,f),nE&&nv(l,p),s;if(null===f){for(;ph?(m=p,p=null):m=p.sibling;var y=g(l,p,b.value,u);if(null===y){null===p&&(p=m);break}e&&p&&null===y.alternate&&t(l,p),i=a(y,i,h),null===c?s=y:c.sibling=y,c=y,p=m}if(b.done)return n(l,p),nE&&nv(l,h),s;if(null===p){for(;!b.done;h++,b=o.next())null!==(b=d(l,b.value,u))&&(i=a(b,i,h),null===c?s=b:c.sibling=b,c=b);return nE&&nv(l,h),s}for(p=r(l,p);!b.done;h++,b=o.next())null!==(b=v(p,l,h,b.value,u))&&(e&&null!==b.alternate&&p.delete(null===b.key?h:b.key),i=a(b,i,h),null===c?s=b:c.sibling=b,c=b);return e&&p.forEach(function(e){return t(l,e)}),nE&&nv(l,h),s}(u,s,c,b);nA(u,c)}return"string"==typeof c&&""!==c||"number"==typeof c?(c=""+c,null!==s&&6===s.tag?(n(u,s.sibling),(s=l(s,c)).return=u):(n(u,s),(s=aB(c,u.mode,b)).return=u),i(u=s)):n(u,s)}}var nD=nR(!0),nF=nR(!1),nU={},nH=e9(nU),nV=e9(nU),nB=e9(nU);function nW(e){if(e===nU)throw Error(f(174));return e}function nQ(e,t){te(nB,t),te(nV,e),te(nH,nU),e=j(t),e7(nH),te(nH,e)}function nq(){e7(nH),e7(nV),e7(nB)}function nY(e){var t=nW(nB.current),n=nW(nH.current);t=R(n,e.type,t),n!==t&&(te(nV,e),te(nH,t))}function n$(e){nV.current===e&&(e7(nH),e7(nV))}var nG=e9(0);function nX(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||eD(n)||eF(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nZ=[];function nK(){for(var e=0;en?n:4,e(!0);var r=n0.transition;n0.transition={};try{e(!1),t()}finally{tE=n,n0.transition=r}}function rT(){return rl().memoizedState}function rz(e,t,n){var r=ac(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rI(e)?rO(t,n):(rL(e,t,n),null!==(e=af(e,r,n=as()))&&rA(e,t,r))}function rN(e,t,n){var r=ac(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rI(e))rO(t,l);else{rL(e,t,l);var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,o=a(i,n);if(l.hasEagerState=!0,l.eagerState=o,tj(o,i))return}catch(e){}finally{}null!==(e=af(e,r,n=as()))&&rA(e,t,r)}}function rI(e){var t=e.alternate;return e===n2||null!==t&&t===n2}function rO(e,t){n6=n5=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rL(e,t,n){null!==l$&&0!=(1&e.mode)&&0==(2&lY)?(null===(e=t.interleaved)?(n.next=n,null===t1?t1=[t]:t1.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(null===(e=t.pending)?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function rA(e,t,n){if(0!=(4194240&n)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tx(e,n)}}var rj={readContext:t0,useCallback:n7,useContext:n7,useEffect:n7,useImperativeHandle:n7,useInsertionEffect:n7,useLayoutEffect:n7,useMemo:n7,useReducer:n7,useRef:n7,useState:n7,useDebugValue:n7,useDeferredValue:n7,useTransition:n7,useMutableSource:n7,useSyncExternalStore:n7,useId:n7,unstable_isNewReconciler:!1},rR={readContext:t0,useCallback:function(e,t){return rr().memoizedState=[e,void 0===t?null:t],e},useContext:t0,useEffect:ry,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,rv(4194308,4,rE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rv(4194308,4,e,t)},useInsertionEffect:function(e,t){return rv(4,2,e,t)},useMemo:function(e,t){var n=rr();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rr();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=rz.bind(null,n2,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},rr().memoizedState=e},useState:rh,useDebugValue:rP,useDeferredValue:function(e){var t=rh(e),n=t[0],r=t[1];return ry(function(){var t=n0.transition;n0.transition={};try{r(e)}finally{n0.transition=t}},[e]),n},useTransition:function(){var e=rh(!1),t=e[0];return e=rM.bind(null,e[1]),rr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=n2,l=rr();if(nE){if(void 0===n)throw Error(f(407));n=n()}else{if(n=t(),null===l$)throw Error(f(349));0!=(30&n1)||rc(r,t,n)}l.memoizedState=n;var a={value:n,getSnapshot:t};return l.queue=a,ry(rd.bind(null,r,a,e),[e]),r.flags|=2048,rm(9,rf.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=rr(),t=l$.identifierPrefix;if(nE){var n=ng,r=nm;t=":"+t+"R"+(n=(r&~(1<<32-td(r)-1)).toString(32)+n),0<(n=n8++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=n9++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},rD={readContext:t0,useCallback:rC,useContext:t0,useEffect:rw,useImperativeHandle:rk,useInsertionEffect:rS,useLayoutEffect:rx,useMemo:r_,useReducer:ri,useRef:rg,useState:function(){return ri(ra)},useDebugValue:rP,useDeferredValue:function(e){var t=ri(ra),n=t[0],r=t[1];return rw(function(){var t=n0.transition;n0.transition={};try{r(e)}finally{n0.transition=t}},[e]),n},useTransition:function(){return[ri(ra)[0],rl().memoizedState]},useMutableSource:ru,useSyncExternalStore:rs,useId:rT,unstable_isNewReconciler:!1},rF={readContext:t0,useCallback:rC,useContext:t0,useEffect:rw,useImperativeHandle:rk,useInsertionEffect:rS,useLayoutEffect:rx,useMemo:r_,useReducer:ro,useRef:rg,useState:function(){return ro(ra)},useDebugValue:rP,useDeferredValue:function(e){var t=ro(ra),n=t[0],r=t[1];return rw(function(){var t=n0.transition;n0.transition={};try{r(e)}finally{n0.transition=t}},[e]),n},useTransition:function(){return[ro(ra)[0],rl().memoizedState]},useMutableSource:ru,useSyncExternalStore:rs,useId:rT,unstable_isNewReconciler:!1};function rU(e,t){try{var n="",r=t;do n+=function(e){switch(e.tag){case 5:return e2(e.type);case 16:return e2("Lazy");case 13:return e2("Suspense");case 19:return e2("SuspenseList");case 0:case 2:case 15:return e=e4(e.type,!1);case 11:return e=e4(e.type.render,!1);case 1:return e=e4(e.type,!0);default:return""}}(r),r=r.return;while(r);var l=n}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:l}}function rH(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var rV="function"==typeof WeakMap?WeakMap:Map;function rB(e,t,n){(n=t5(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){l7||(l7=!0,ae=r),rH(e,t)},n}function rW(e,t,n){(n=t5(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){rH(e,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){rH(e,t),"function"!=typeof r&&(null===at?at=new Set([this]):at.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function rQ(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new rV;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=aI.bind(null,e,t,n),t.then(e,e))}function rq(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function rY(e,t,n,r,l){return 0==(1&e.mode)?e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=t5(-1,1)).tag=2,t6(n,t))),n.lanes|=1):(e.flags|=65536,e.lanes=l),e}function r$(e){e.flags|=4}function rG(e,t){if(null!==e&&e.child===t.child)return!0;if(0!=(16&t.flags))return!1;for(e=t.child;null!==e;){if(0!=(12854&e.flags)||0!=(12854&e.subtreeFlags))return!1;e=e.sibling}return!0}if(X)t=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)H(e,n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},r=function(){},l=function(e,t,n,r,l){(e=e.memoizedProps)!==r&&(n=B(t.stateNode,n,e,r,l,nW(nH.current)),(t.updateQueue=n)&&r$(t))},a=function(e,t,n,r){n!==r&&r$(t)};else if(Z){t=function(e,n,r,l){for(var a=n.child;null!==a;){if(5===a.tag){var i=a.stateNode;r&&l&&(i=eO(i,a.type,a.memoizedProps,a)),H(e,i)}else if(6===a.tag)i=a.stateNode,r&&l&&(i=eL(i,a.memoizedProps,a)),H(e,i);else if(4!==a.tag){if(22===a.tag&&null!==a.memoizedState)null!==(i=a.child)&&(i.return=a),t(e,a,!0,!0);else if(null!==a.child){a.child.return=a,a=a.child;continue}}if(a===n)break;for(;null===a.sibling;){if(null===a.return||a.return===n)return;a=a.return}a.sibling.return=a.return,a=a.sibling}};var rX=function(e,t,n,r){for(var l=t.child;null!==l;){if(5===l.tag){var a=l.stateNode;n&&r&&(a=eO(a,l.type,l.memoizedProps,l)),ez(e,a)}else if(6===l.tag)a=l.stateNode,n&&r&&(a=eL(a,l.memoizedProps,l)),ez(e,a);else if(4!==l.tag){if(22===l.tag&&null!==l.memoizedState)null!==(a=l.child)&&(a.return=l),rX(e,l,!0,!0);else if(null!==l.child){l.child.return=l,l=l.child;continue}}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)return;l=l.return}l.sibling.return=l.return,l=l.sibling}};r=function(e,t){var n=t.stateNode;if(!rG(e,t)){var r=eT(e=n.containerInfo);rX(r,t,!1,!1),n.pendingChildren=r,r$(t),eN(e,r)}},l=function(e,n,r,l,a){var i=e.stateNode,o=e.memoizedProps;if((e=rG(e,n))&&o===l)n.stateNode=i;else{var u=n.stateNode,s=nW(nH.current),c=null;o!==l&&(c=B(u,r,o,l,a,s)),e&&null===c?n.stateNode=i:(V(i=eM(i,c,r,o,l,n,e,u),r,l,a,s)&&r$(n),n.stateNode=i,e?r$(n):t(i,n,!1,!1))}},a=function(e,t,n,r){n!==r?(e=nW(nB.current),n=nW(nH.current),t.stateNode=Q(r,e,n,t),r$(t)):t.stateNode=e.stateNode}}else r=function(){},l=function(){},a=function(){};function rZ(e,t){if(!nE)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function rK(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}var rJ=d.ReactCurrentOwner,r0=!1;function r1(e,t,n,r){t.child=null===e?nF(t,null,n,r):nD(t,e.child,n,r)}function r2(e,t,n,r,l){n=n.render;var a=t.ref;return(tJ(t,l),r=rt(e,t,n,r,a,l),n=rn(),null===e||r0)?(nE&&n&&ny(t),t.flags|=1,r1(e,t,r,l),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,lc(e,t,l))}function r3(e,t,n,r,l){if(null===e){var a=n.type;return"function"!=typeof a||aD(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=aU(n.type,null,r,t,t.mode,l)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,r4(e,t,a,r,l))}if(a=e.child,0==(e.lanes&l)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:tB)(i,r)&&e.ref===t.ref)return lc(e,t,l)}return t.flags|=1,(e=aF(a,r)).ref=t.ref,e.return=t,t.child=e}function r4(e,t,n,r,l){if(null!==e&&tB(e.memoizedProps,r)&&e.ref===t.ref){if(r0=!1,0==(e.lanes&l))return t.lanes=e.lanes,lc(e,t,l);0!=(131072&e.flags)&&(r0=!0)}return r8(e,t,n,r,l)}function r5(e,t,n){var r=t.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null},te(lK,lZ),lZ|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,te(lK,lZ),lZ|=e,null;t.memoizedState={baseLanes:0,cachePool:null},r=null!==a?a.baseLanes:n,te(lK,lZ),lZ|=r}}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,te(lK,lZ),lZ|=r;return r1(e,t,l,n),t.child}function r6(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function r8(e,t,n,r,l){var a=ti(n)?tl:tn.current;return(a=ta(t,a),tJ(t,l),n=rt(e,t,n,r,a,l),r=rn(),null===e||r0)?(nE&&r&&ny(t),t.flags|=1,r1(e,t,n,l),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,lc(e,t,l))}function r9(e,t,n,r,l){if(ti(n)){var a=!0;tc(t)}else a=!1;if(tJ(t,l),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),na(t,n,r),no(t,n,r,l),r=!0;else if(null===e){var i=t.stateNode,o=t.memoizedProps;i.props=o;var u=i.context,s=n.contextType;s="object"==typeof s&&null!==s?t0(s):ta(t,s=ti(n)?tl:tn.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(o!==r||u!==s)&&ni(t,i,r,s),t2=!1;var d=t.memoizedState;i.state=d,t7(t,r,i,l),u=t.memoizedState,o!==r||d!==u||tr.current||t2?("function"==typeof c&&(nn(t,n,c,r),u=t.memoizedState),(o=t2||nl(t,n,o,r,d,u,s))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=o):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,t4(e,t),o=t.memoizedProps,s=t.type===t.elementType?o:tW(t.type,o),i.props=s,f=t.pendingProps,d=i.context,u="object"==typeof(u=n.contextType)&&null!==u?t0(u):ta(t,u=ti(n)?tl:tn.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(o!==f||d!==u)&&ni(t,i,r,u),t2=!1,d=t.memoizedState,i.state=d,t7(t,r,i,l);var h=t.memoizedState;o!==f||d!==h||tr.current||t2?("function"==typeof p&&(nn(t,n,p,r),h=t.memoizedState),(s=t2||nl(t,n,s,r,d,h,u)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=u,r=s):("function"!=typeof i.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return r7(e,t,n,r,a,l)}function r7(e,t,n,r,l,a){r6(e,t);var i=0!=(128&t.flags);if(!r&&!i)return l&&tf(t,n,!1),lc(e,t,a);r=t.stateNode,rJ.current=t;var o=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=nD(t,e.child,null,a),t.child=nD(t,null,o,a)):r1(e,t,o,a),t.memoizedState=r.state,l&&tf(t,n,!0),t.child}function le(e){var t=e.stateNode;t.pendingContext?tu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tu(e,t.context,!1),nQ(e,t.containerInfo)}function lt(e,t,n,r,l){return nI(),nO(l),t.flags|=256,r1(e,t,n,r),t.child}var ln={dehydrated:null,treeContext:null,retryLane:0};function lr(e){return{baseLanes:e,cachePool:null}}function ll(e,t,n){var r,l,a,i,o,u,s,c,d,p,h,m,g,v,b=t.pendingProps,y=nG.current,w=!1,S=0!=(128&t.flags);if((v=S)||(v=(null===e||null!==e.memoizedState)&&0!=(2&y)),v?(w=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(y|=1),te(nG,1&y),null===e)return(nT(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated))?(0==(1&t.mode)?t.lanes=1:eF(e)?t.lanes=8:t.lanes=1073741824,null):(y=b.children,e=b.fallback,w?(b=t.mode,w=t.child,y={mode:"hidden",children:y},0==(1&b)&&null!==w?(w.childLanes=0,w.pendingProps=y):w=aV(y,b,0,null),e=aH(e,b,n,null),w.return=t,e.return=t,w.sibling=e,t.child=w,t.child.memoizedState=lr(n),t.memoizedState=ln,e):la(t,y));if(null!==(y=e.memoizedState)&&null!==(v=y.dehydrated)){if(S)return 256&t.flags?(t.flags&=-257,li(e,t,n,Error(f(422)))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(w=b.fallback,y=t.mode,b=aV({mode:"visible",children:b.children},y,0,null),w=aH(w,y,n,null),w.flags|=2,b.return=t,w.return=t,b.sibling=w,t.child=b,0!=(1&t.mode)&&nD(t,e.child,null,n),t.child.memoizedState=lr(n),t.memoizedState=ln,w);if(0==(1&t.mode))t=li(e,t,n,null);else if(eF(v))t=li(e,t,n,Error(f(419)));else if(b=0!=(n&e.childLanes),r0||b){if(null!==(b=l$)){switch(n&-n){case 4:w=2;break;case 16:w=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:w=32;break;case 536870912:w=268435456;break;default:w=0}0!==(b=0!=(w&(b.suspendedLanes|n))?0:w)&&b!==y.retryLane&&(y.retryLane=b,af(e,b,-1))}ak(),t=li(e,t,n,Error(f(421)))}else eD(v)?(t.flags|=128,t.child=e.child,eU(v,t=aL.bind(null,e)),t=null):(n=y.treeContext,K&&(nx=eW(v),nS=t,nE=!0,nP=null,nk=!1,null!==n&&(nd[np++]=nm,nd[np++]=ng,nd[np++]=nh,nm=n.id,ng=n.overflow,nh=t)),t=la(t,t.pendingProps.children),t.flags|=4096);return t}return w?(r=e,l=t,a=b.children,i=b.fallback,o=n,u=l.mode,s=(r=r.child).sibling,c={mode:"hidden",children:a},0==(1&u)&&l.child!==r?((a=l.child).childLanes=0,a.pendingProps=c,l.deletions=null):(a=aF(r,c)).subtreeFlags=14680064&r.subtreeFlags,null!==s?i=aF(s,i):(i=aH(i,u,o,null),i.flags|=2),i.return=l,a.return=l,a.sibling=i,l.child=a,b=i,w=t.child,y=e.child.memoizedState,w.memoizedState=null===y?lr(n):{baseLanes:y.baseLanes|n,cachePool:null},w.childLanes=e.childLanes&~n,t.memoizedState=ln,b):(d=e,p=t,h=b.children,m=n,d=(g=d.child).sibling,h=aF(g,{mode:"visible",children:h}),0==(1&p.mode)&&(h.lanes=m),h.return=p,h.sibling=null,null!==d&&(null===(m=p.deletions)?(p.deletions=[d],p.flags|=16):m.push(d)),n=p.child=h,t.memoizedState=null,n)}function la(e,t){return(t=aV({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function li(e,t,n,r){return null!==r&&nO(r),nD(t,e.child,null,n),e=la(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lo(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),tK(e.return,t,n)}function lu(e,t,n,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=l)}function ls(e,t,n){var r=t.pendingProps,l=r.revealOrder,a=r.tail;if(r1(e,t,r.children,n),0!=(2&(r=nG.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&lo(e,n,t);else if(19===e.tag)lo(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(te(nG,r),0==(1&t.mode))t.memoizedState=null;else switch(l){case"forwards":for(l=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===nX(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),lu(t,!1,l,n,a);break;case"backwards":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===nX(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}lu(t,!0,n,null,a);break;case"together":lu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lc(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),l1|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(f(153));if(null!==t.child){for(n=aF(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=aF(e,e.pendingProps)).return=t;n.sibling=null}return t.child}var lf=!1,ld=!1,lp="function"==typeof WeakSet?WeakSet:Set,lh=null;function lm(e,t){var n=e.ref;if(null!==n){if("function"==typeof n)try{n(null)}catch(n){aN(e,t,n)}else n.current=null}}function lg(e,t,n){try{n()}catch(n){aN(e,t,n)}}var lv=!1;function lb(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&lg(t,n,a)}l=l.next}while(l!==r)}}function ly(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function lw(e){var t=e.ref;if(null!==t){var n=e.stateNode;e=5===e.tag?A(n):n,"function"==typeof t?t(e):t.current=e}}function lS(e,t,n){if(tA&&"function"==typeof tA.onCommitFiberUnmount)try{tA.onCommitFiberUnmount(tL,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var l=r,a=l.destroy;l=l.tag,void 0!==a&&(0!=(2&l)?lg(t,n,a):0!=(4&l)&&lg(t,n,a)),r=r.next}while(r!==e)}break;case 1:if(lm(t,n),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){aN(t,n,e)}break;case 5:lm(t,n);break;case 4:X?lC(e,t,n):Z&&Z&&(n=eT(t=t.stateNode.containerInfo),eI(t,n))}}function lx(e,t,n){for(var r=t;;)if(lS(e,r,n),null===r.child||X&&4===r.tag){if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}else r.child.return=r,r=r.child}function lE(e){return 5===e.tag||3===e.tag||4===e.tag}function lk(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||lE(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function lP(e){if(X){e:{for(var t=e.return;null!==t;){if(lE(t))break e;t=t.return}throw Error(f(160))}var n=t;switch(n.tag){case 5:t=n.stateNode,32&n.flags&&(ex(t),n.flags&=-33),n=lk(e),function e(t,n,r){var l=t.tag;if(5===l||6===l)t=t.stateNode,n?eb(r,t,n):ep(r,t);else if(4!==l&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t);break;case 3:case 4:t=n.stateNode.containerInfo,n=lk(e),function e(t,n,r){var l=t.tag;if(5===l||6===l)t=t.stateNode,n?ey(r,t,n):eh(r,t);else if(4!==l&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t);break;default:throw Error(f(161))}}}function lC(e,t,n){for(var r,l,a=t,i=!1;;){if(!i){i=a.return;e:for(;;){if(null===i)throw Error(f(160));switch(r=i.stateNode,i.tag){case 5:l=!1;break e;case 3:case 4:r=r.containerInfo,l=!0;break e}i=i.return}i=!0}if(5===a.tag||6===a.tag)lx(e,a,n),l?eS(r,a.stateNode):ew(r,a.stateNode);else if(18===a.tag)l?eK(r,a.stateNode):eZ(r,a.stateNode);else if(4===a.tag){if(null!==a.child){r=a.stateNode.containerInfo,l=!0,a.child.return=a,a=a.child;continue}}else if(lS(e,a,n),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(i=!1)}a.sibling.return=a.return,a=a.sibling}}function l_(e,t){if(X){switch(t.tag){case 0:case 11:case 14:case 15:lb(3,t,t.return),ly(3,t),lb(5,t,t.return);return;case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var l=t.type,a=t.updateQueue;t.updateQueue=null,null!==a&&ev(n,a,l,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(f(162));n=t.memoizedProps,em(t.stateNode,null!==e?e.memoizedProps:n,n);return;case 3:K&&null!==e&&e.memoizedState.isDehydrated&&eG(t.stateNode.containerInfo);return;case 13:case 19:lM(t);return}throw Error(f(163))}switch(t.tag){case 0:case 11:case 14:case 15:lb(3,t,t.return),ly(3,t),lb(5,t,t.return);return;case 12:case 22:case 23:return;case 13:case 19:lM(t);return;case 3:K&&null!==e&&e.memoizedState.isDehydrated&&eG(t.stateNode.containerInfo)}e:if(Z){switch(t.tag){case 1:case 5:case 6:break e;case 3:case 4:eI((t=t.stateNode).containerInfo,t.pendingChildren);break e}throw Error(f(163))}}function lM(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new lp),t.forEach(function(t){var r=aA.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function lT(e){for(;null!==lh;){var t=lh;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:ld||ly(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!ld){if(null===n)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:tW(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}}var a=t.updateQueue;null!==a&&ne(t,a,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:n=A(t.child.stateNode);break;case 1:n=t.child.stateNode}ne(t,i,n)}break;case 5:var o=t.stateNode;null===n&&4&t.flags&&eg(o,t.type,t.memoizedProps,t);break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:break;case 13:if(K&&null===t.memoizedState){var u=t.alternate;if(null!==u){var s=u.memoizedState;if(null!==s){var c=s.dehydrated;null!==c&&eX(c)}}}break;default:throw Error(f(163))}ld||512&t.flags&&lw(t)}catch(e){aN(t,t.return,e)}}if(t===e){lh=null;break}if(null!==(n=t.sibling)){n.return=t.return,lh=n;break}lh=t.return}}function lz(e){for(;null!==lh;){var t=lh;if(t===e){lh=null;break}var n=t.sibling;if(null!==n){n.return=t.return,lh=n;break}lh=t.return}}function lN(e){for(;null!==lh;){var t=lh;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ly(4,t)}catch(e){aN(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var l=t.return;try{r.componentDidMount()}catch(e){aN(t,l,e)}}var a=t.return;try{lw(t)}catch(e){aN(t,a,e)}break;case 5:var i=t.return;try{lw(t)}catch(e){aN(t,i,e)}}}catch(e){aN(t,t.return,e)}if(t===e){lh=null;break}var o=t.sibling;if(null!==o){o.return=t.return,lh=o;break}lh=t.return}}var lI=0,lO=1,lL=2,lA=3,lj=4;if("function"==typeof Symbol&&Symbol.for){var lR=Symbol.for;lI=lR("selector.component"),lO=lR("selector.has_pseudo_class"),lL=lR("selector.role"),lA=lR("selector.test_id"),lj=lR("selector.text")}function lD(e){var t=J(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(f(364));return t}if(null===(e=ei(e)))throw Error(f(362));return e.stateNode.current}function lF(e,t){switch(t.$$typeof){case lI:if(e.type===t.value)return!0;break;case lO:e:{t=t.value,e=[e,0];for(var n=0;n";case lO:return":has("+(lU(e)||"")+")";case lL:return'[role="'+e.value+'"]';case lj:return'"'+e.value+'"';case lA:return'[data-testname="'+e.value+'"]';default:throw Error(f(365))}}function lH(e,t){var n=[];e=[e,0];for(var r=0;rl&&(l=i),r&=~a}if(r=l,10<(r=(120>(r=tT()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*lB(r/1960))-r)){e.timeoutHandle=q(aM.bind(null,e,l5),r);break}aM(e,l5);break;default:throw Error(f(329))}}}return ap(e,tT()),e.callbackNode===n?ah.bind(null,e):null}function am(e,t){var n=l4;return e.current.memoizedState.isDehydrated&&(aS(e,t).flags|=256),2!==(e=aP(e,t))&&(t=l5,l5=n,null!==t&&ag(t)),e}function ag(e){null===l5?l5=e:l5.push.apply(l5,e)}function av(e,t){for(t&=~l3,t&=~l2,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0l8&&(n.flags|=128,o=!0,rZ(u,!1),n.lanes=4194304)}}else{if(!o){if(null!==(e=nX(s))){if(n.flags|=128,o=!0,null!==(e=e.updateQueue)&&(n.updateQueue=e,n.flags|=4),rZ(u,!0),null===u.tail&&"hidden"===u.tailMode&&!s.alternate&&!nE)return rK(n),null}else 2*tT()-u.renderingStartTime>l8&&1073741824!==i&&(n.flags|=128,o=!0,rZ(u,!1),n.lanes=4194304)}u.isBackwards?(s.sibling=n.child,n.child=s):(null!==(e=u.last)?e.sibling=s:n.child=s,u.last=s)}if(null!==u.tail)return n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=tT(),n.sibling=null,e=nG.current,te(nG,o?1&e|2:1&e),n;return rK(n),null;case 22:case 23:return aw(),o=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==o&&(n.flags|=8192),o&&0!=(1&n.mode)?0!=(1073741824&lZ)&&(rK(n),X&&6&n.subtreeFlags&&(n.flags|=8192)):rK(n),null;case 24:case 25:return null}throw Error(f(156,n.tag))}(i,n,lZ))){lG=i;return}}else{if(null!==(i=function(e,t){switch(nw(t),t.tag){case 1:return ti(t.type)&&to(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return nq(),e7(tr),e7(tn),nK(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return n$(t),null;case 13:if(e7(nG),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(f(340));nI()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return e7(nG),null;case 4:return nq(),null;case 10:return tZ(t.type._context),null;case 22:case 23:return aw(),null;default:return null}}(i,n))){i.flags&=32767,lG=i;return}if(null!==e)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{lJ=6,lG=null;return}}if(null!==(n=n.sibling)){lG=n;return}lG=n=e}while(null!==n);0===lJ&&(lJ=5)}function aM(e,t){var n=tE,r=lq.transition;try{lq.transition=null,tE=1,function(e,t,n){do aT();while(null!==ar);if(0!=(6&lY))throw Error(f(327));var r=e.finishedWork,l=e.finishedLanes;if(null!==r){if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(f(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0e?16:e,null===ar)var r=!1;else{if(e=ar,ar=null,al=0,0!=(6&lY))throw Error(f(331));var l=lY;for(lY|=4,lh=e.current;null!==lh;){var a=lh,i=a.child;if(0!=(16&lh.flags)){var o=a.deletions;if(null!==o){for(var u=0;utT()-l6?aS(e,0):l3|=n),ap(e,t)}function aO(e,t){0===t&&(0==(1&e.mode)?t=1:(t=tg,0==(130023424&(tg<<=1))&&(tg=4194304)));var n=as();null!==(e=ad(e,t))&&(tS(e,t,n),ap(e,n))}function aL(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),aO(e,n)}function aA(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(f(314))}null!==r&&r.delete(t),aO(e,n)}function aj(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function aR(e,t,n,r){return new aj(e,t,n,r)}function aD(e){return!(!(e=e.prototype)||!e.isReactComponent)}function aF(e,t){var n=e.alternate;return null===n?((n=aR(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function aU(e,t,n,r,l,a){var i=2;if(r=e,"function"==typeof e)aD(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case m:return aH(n.children,l,a,t);case g:i=8,l|=8;break;case v:return(e=aR(12,n,t,2|l)).elementType=v,e.lanes=a,e;case S:return(e=aR(13,n,t,l)).elementType=S,e.lanes=a,e;case x:return(e=aR(19,n,t,l)).elementType=x,e.lanes=a,e;case P:return aV(n,l,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case b:i=10;break e;case y:i=9;break e;case w:i=11;break e;case E:i=14;break e;case k:i=16,r=null;break e}throw Error(f(130,null==e?e:typeof e,""))}return(t=aR(i,n,t,l)).elementType=e,t.type=r,t.lanes=a,t}function aH(e,t,n,r){return(e=aR(7,e,r,t)).lanes=n,e}function aV(e,t,n,r){return(e=aR(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={},e}function aB(e,t,n){return(e=aR(6,e,null,t)).lanes=n,e}function aW(e,t,n){return(t=aR(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function aQ(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=$,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tw(0),this.expirationTimes=tw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tw(0),this.identifierPrefix=r,this.onRecoverableError=l,K&&(this.mutableSourceEagerHydrationData=null)}function aq(e,t,n,r,l,a,i,o,u){return e=new aQ(e,t,n,o,u),1===t?(t=1,!0===a&&(t|=8)):t=0,a=aR(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null},t3(a),e}function aY(e){if(!e)return tt;e=e._reactInternals;e:{if(T(e)!==e||1!==e.tag)throw Error(f(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ti(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(f(171))}if(1===e.tag){var n=e.type;if(ti(n))return ts(e,n,t)}return t}function a$(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(f(188));throw Error(f(268,e=Object.keys(e).join(",")))}return null===(e=I(t))?null:e.stateNode}function aG(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n=s&&a>=d&&l<=c&&i<=p){e.splice(t,1);break}if(r!==s||n.width!==u.width||pi){if(!(a!==d||n.height!==u.height||cl)){s>r&&(u.width+=s-r,u.x=r),ca&&(u.height+=d-a,u.y=a),pn&&(n=i)),i ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},o.getPublicRootInstance=function(e){return(e=e.current).child?5===e.child.tag?A(e.child.stateNode):e.child.stateNode:null},o.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:d.ReactCurrentDispatcher,findHostInstanceByFiber:aZ,findFiberByHostInstance:e.findFiberByHostInstance||aK,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{tL=t.inject(e),tA=t}catch(e){}e=!!t.checkDCE}}return e},o.isAlreadyRendering=function(){return!1},o.observeVisibleRects=function(e,t,n,r){if(!ea)throw Error(f(363));var l=ed(e=lV(e,t),n,r).disconnect;return{disconnect:function(){l()}}},o.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},o.runWithPriority=function(e,t){var n=tE;try{return tE=e,t()}finally{tE=n}},o.shouldError=function(){return null},o.shouldSuspend=function(){return!1},o.updateContainer=function(e,t,n,r){var l=t.current,a=as(),i=ac(l);return n=aY(n),null===t.context?t.context=n:t.pendingContext=n,(t=t5(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),t6(l,t),null!==(e=af(l,i,a))&&t8(e,l,i),i},o}},32576:function(e,t,n){"use strict";e.exports=n(46511)},76525:function(e,t,n){"use strict";e.exports=n(67287)},60053:function(e,t){"use strict";/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function n(e,t){var n=e.length;for(e.push(t);0>>1,l=e[r];if(0>>1;ra(u,n))sa(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[o]=n,r=o);else if(sa(c,n))e[r]=c,e[s]=n,r=s;else break}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i,o=performance;t.unstable_now=function(){return o.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}var c=[],f=[],d=1,p=null,h=3,m=!1,g=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function S(e){for(var t=r(f);null!==t;){if(null===t.callback)l(f);else if(t.startTime<=e)l(f),t.sortIndex=t.expirationTime,n(c,t);else break;t=r(f)}}function x(e){if(v=!1,S(e),!g){if(null!==r(c))g=!0,O(E);else{var t=r(f);null!==t&&L(x,t.startTime-e)}}}function E(e,n){g=!1,v&&(v=!1,y(C),C=-1),m=!0;var a=h;try{for(S(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!T());){var i=p.callback;if("function"==typeof i){p.callback=null,h=p.priorityLevel;var o=i(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof o?p.callback=o:p===r(c)&&l(c),S(n)}else l(c);p=r(c)}if(null!==p)var u=!0;else{var s=r(f);null!==s&&L(x,s.startTime-n),u=!1}return u}finally{p=null,h=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k=!1,P=null,C=-1,_=5,M=-1;function T(){return!(t.unstable_now()-M<_)}function z(){if(null!==P){var e=t.unstable_now();M=e;var n=!0;try{n=P(!0,e)}finally{n?i():(k=!1,P=null)}}else k=!1}if("function"==typeof w)i=function(){w(z)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,I=N.port2;N.port1.onmessage=z,i=function(){I.postMessage(null)}}else i=function(){b(z,0)};function O(e){P=e,k||(k=!0,i())}function L(e,n){C=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||m||(g=!0,O(E))},t.unstable_forceFrameRate=function(e){0>e||125i?(e.sortIndex=a,n(f,e),null===r(c)&&e===r(f)&&(v?(y(C),C=-1):v=!0,L(x,a-i))):(e.sortIndex=o,n(c,e),g||m||(g=!0,O(E))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},63840:function(e,t,n){"use strict";e.exports=n(60053)},87462:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t1){let e=Math.sqrt(v);t*=e,n*=e,p=t*t,h=n*n}let b=p*g+h*m,y=Math.sqrt(Math.max(0,(p*h-b)/b));l===i&&(y=-y);let w=y*t*d/n,S=-y*n*f/t,x=Math.cos(r)*w-Math.sin(r)*S+(o.x+u.x)/2,E=Math.sin(r)*w+Math.cos(r)*S+(o.y+u.y)/2,k=a(1,0,(f-w)/t,(d-S)/n),P=a((f-w)/t,(d-S)/n,(-f-w)/t,(-d-S)/n)%(2*Math.PI);e.currentPath.absellipse(x,E,t,n,k,k+P,0===i,r)}function a(e,t,n,r){let l=Math.acos(Math.max(-1,Math.min(1,(e*n+t*r)/(Math.sqrt(e*e+t*t)*Math.sqrt(n*n+r*r)))));return e*r-t*n<0&&(l=-l),l}function i(e,t){t=Object.assign({},t);let n={};if(e.hasAttribute("class")){let t=e.getAttribute("class").split(/\s/).filter(Boolean).map(e=>e.trim());for(let e=0;e=0;e--){let r=n[e].trim();if(""===r)continue;let l=r.indexOf("("),a=r.length;if(l>0&&l=1){let e=t[0],n=0;t.length>=2&&(n=t[1]),v.translate(e,n)}break;case"rotate":if(t.length>=1){let e=0,n=0,r=0;e=t[0]*Math.PI/180,t.length>=3&&(n=t[1],r=t[2]),b.makeTranslation(-n,-r),y.makeRotation(e),w.multiplyMatrices(y,b),b.makeTranslation(n,r),v.multiplyMatrices(b,w)}break;case"scale":if(t.length>=1){let e=t[0],n=e;t.length>=2&&(n=t[1]),v.scale(e,n)}break;case"skewX":1===t.length&&v.set(1,Math.tan(t[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":1===t.length&&v.set(1,0,0,Math.tan(t[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":6===t.length&&v.set(t[0],t[2],t[4],t[1],t[3],t[5],0,0,1)}}t.premultiply(v)}}return t}(e);return g.length>0&&t.premultiply(g[g.length-1]),E.copy(t),g.push(t),t}(t),s=!1,k=null;switch(t.nodeName){case"svg":case"g":a=i(t,a);break;case"style":(function(e){if(e.sheet&&e.sheet.cssRules&&e.sheet.cssRules.length)for(let t=0;te.trim());for(let e=0;e""!==e));m[r[e]]=Object.assign(m[r[e]]||{},t)}}})(t);break;case"path":a=i(t,a),t.hasAttribute("d")&&(k=function(e){let t=new r.ShapePath,l=new r.Vector2,a=new r.Vector2,i=new r.Vector2,u=!0,s=!1,c=e.getAttribute("d");if(""===c||"none"===c)return null;let f=c.match(/[a-df-z][^a-df-z]*/ig);for(let e=0,r=f.length;e0&&(l.copy(i),t.currentPath.currentPoint.copy(l),u=!0);break;default:console.warn(c)}s=!1}return t}(t));break;case"rect":a=i(t,a),k=function(e){let t=c(e.getAttribute("x")||0),n=c(e.getAttribute("y")||0),l=c(e.getAttribute("rx")||e.getAttribute("ry")||0),a=c(e.getAttribute("ry")||e.getAttribute("rx")||0),i=c(e.getAttribute("width")),o=c(e.getAttribute("height")),u=new r.ShapePath;return u.moveTo(t+l,n),u.lineTo(t+i-l,n),(0!==l||0!==a)&&u.bezierCurveTo(t+i-.448084975506*l,n,t+i,n+.448084975506*a,t+i,n+a),u.lineTo(t+i,n+o-a),(0!==l||0!==a)&&u.bezierCurveTo(t+i,n+o-.448084975506*a,t+i-.448084975506*l,n+o,t+i-l,n+o),u.lineTo(t+l,n+o),(0!==l||0!==a)&&u.bezierCurveTo(t+.448084975506*l,n+o,t,n+o-.448084975506*a,t,n+o-a),u.lineTo(t,n+a),(0!==l||0!==a)&&u.bezierCurveTo(t,n+.448084975506*a,t+.448084975506*l,n,t+l,n),u}(t);break;case"polygon":a=i(t,a),k=function(e){let t=new r.ShapePath,n=0;return e.getAttribute("points").replace(/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,function(e,r,l){let a=c(r),i=c(l);0===n?t.moveTo(a,i):t.lineTo(a,i),n++}),t.currentPath.autoClose=!0,t}(t);break;case"polyline":a=i(t,a),k=function(e){let t=new r.ShapePath,n=0;return e.getAttribute("points").replace(/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,function(e,r,l){let a=c(r),i=c(l);0===n?t.moveTo(a,i):t.lineTo(a,i),n++}),t.currentPath.autoClose=!1,t}(t);break;case"circle":a=i(t,a),k=function(e){let t=c(e.getAttribute("cx")||0),n=c(e.getAttribute("cy")||0),l=c(e.getAttribute("r")||0),a=new r.Path;a.absarc(t,n,l,0,2*Math.PI);let i=new r.ShapePath;return i.subPaths.push(a),i}(t);break;case"ellipse":a=i(t,a),k=function(e){let t=c(e.getAttribute("cx")||0),n=c(e.getAttribute("cy")||0),l=c(e.getAttribute("rx")||0),a=c(e.getAttribute("ry")||0),i=new r.Path;i.absellipse(t,n,l,a,0,2*Math.PI);let o=new r.ShapePath;return o.subPaths.push(i),o}(t);break;case"line":a=i(t,a),k=function(e){let t=c(e.getAttribute("x1")||0),n=c(e.getAttribute("y1")||0),l=c(e.getAttribute("x2")||0),a=c(e.getAttribute("y2")||0),i=new r.ShapePath;return i.moveTo(t,n),i.lineTo(l,a),i.currentPath.autoClose=!1,i}(t);break;case"defs":s=!0;break;case"use":a=i(t,a);let P=(t.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),C=t.viewportElement.getElementById(P);C?e(C,a):console.warn("SVGLoader: 'use node' references non-existent node id: "+P)}k&&(void 0!==a.fill&&"none"!==a.fill&&k.color.setStyle(a.fill,l),function(e,t){function n(e){x.set(e.x,e.y,1).applyMatrix3(t),e.set(x.x,x.y)}let l=e.subPaths;for(let e=0,a=l.length;eNumber.EPSILON}(t)?function(e){let n=e.xRadius,l=e.yRadius,a=Math.cos(e.aRotation),i=Math.sin(e.aRotation),o=new r.Vector3(n*a,n*i,0),u=new r.Vector3(-l*i,l*a,0),s=o.applyMatrix3(t),c=u.applyMatrix3(t),d=v.set(s.x,c.x,0,s.y,c.y,0,0,0,1),p=b.copy(d).invert(),h=y.copy(p).transpose().multiply(p).elements,m=function(e,t,n){let r,l,a,i,o;let u=e+n,s=e-n,c=Math.sqrt(s*s+4*t*t);return u>0?l=e*(o=1/(r=.5*(u+c)))*n-t*o*t:u<0?l=.5*(u-c):(r=.5*c,l=-.5*c),Math.abs(a=s>0?s+c:s-c)>2*Math.abs(t)?(i=1/Math.sqrt(1+(o=-2*t/a)*o),a=o*i):0===Math.abs(t)?(a=1,i=0):(a=1/Math.sqrt(1+(o=-.5*a/t)*o),i=o*a),s>0&&(o=a,a=-i,i=o),{rt1:r,rt2:l,cs:a,sn:i}}(h[0],h[1],h[4]),g=Math.sqrt(m.rt1),w=Math.sqrt(m.rt2);if(e.xRadius=1/g,e.yRadius=1/w,e.aRotation=Math.atan2(m.sn,m.cs),!((e.aEndAngle-e.aStartAngle)%(2*Math.PI){let{x:t,y:n}=new r.Vector3(Math.cos(e),Math.sin(e),0).applyMatrix3(a);return Math.atan2(n,t)};e.aStartAngle=i(e.aStartAngle),e.aEndAngle=i(e.aEndAngle),f(t)&&(e.aClockwise=!e.aClockwise)}}(l):function(e){let n=d(t),r=p(t);e.xRadius*=n,e.yRadius*=r;let l=n>Number.EPSILON?Math.atan2(t.elements[1],t.elements[0]):Math.atan2(-t.elements[3],t.elements[4]);e.aRotation+=l,f(t)&&(e.aStartAngle*=-1,e.aEndAngle*=-1,e.aClockwise=!e.aClockwise)}(l))}}}(k,E),h.push(k),k.userData={node:t,style:a});let _=t.childNodes;for(let t=0;t<_.length;t++){let n=_[t];s&&"style"!==n.nodeName&&"defs"!==n.nodeName||e(n,a)}u&&(g.pop(),g.length>0?E.copy(g[g.length-1]):E.identity())}(k.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:h,xml:k.documentElement}}static createShapes(e){let t={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},n={loc:t.ORIGIN,t:0};function l(e,r,l){let a;let i=l.x-r.x,o=l.y-r.y,u=e.x-r.x,s=e.y-r.y,c=i*s-u*o;if(e.x===r.x&&e.y===r.y){n.loc=t.ORIGIN,n.t=0;return}if(e.x===l.x&&e.y===l.y){n.loc=t.DESTINATION,n.t=1;return}if(c<-Number.EPSILON){n.loc=t.LEFT;return}if(c>Number.EPSILON){n.loc=t.RIGHT;return}if(i*u<0||o*s<0){n.loc=t.BEHIND;return}if(Math.sqrt(i*i+o*o){let t=e.getPoints(),n=-999999999,l=999999999,o=-999999999,u=999999999;for(let e=0;en&&(n=r.y),r.yo&&(o=r.x),r.x=u&&(a=u-1),{curves:e.curves,points:t,isCW:r.ShapeUtils.isClockWise(t),identifier:-1,boundingBox:new r.Box2(new r.Vector2(u,l),new r.Vector2(o,n))}});o=o.filter(e=>e.points.length>1);for(let e=0;e(function(e,a,i,o,u){(null==u||""===u)&&(u="nonzero");let s=new r.Vector2;e.boundingBox.getCenter(s);let c=function(e,a,i){let o=new r.Vector2;a.getCenter(o);let u=[];return i.forEach(a=>{a.boundingBox.containsPoint(o)&&(function(e,a){let i=[],o=[];for(let u=1;u=1||b<0||b>1)return null;if(0===m&&0===g){for(let s=0;s<2;s++){if(l(0===s?a:i,e,r),n.loc==t.ORIGIN){let e=0===s?a:i;return{x:e.x,y:e.y,t:n.t}}if(n.loc==t.BETWEEN)return{x:+(o+n.t*(u-o)).toPrecision(10),y:+(f+n.t*(d-f)).toPrecision(10),t:n.t}}return null}for(let o=0;o<2;o++)if(l(0===o?a:i,e,r),n.loc==t.ORIGIN){let e=0===o?a:i;return{x:e.x,y:e.y,t:n.t}}return{x:+(o+v*(u-o)).toPrecision(10),y:+(f+v*(d-f)).toPrecision(10),t:v}}(s,c,a[e-1],a[e]);null!==u&&void 0===i.find(e=>e.t<=u.t+Number.EPSILON&&e.t>=u.t-Number.EPSILON)&&(i.push(u),o.push(new r.Vector2(u.x,u.y)))}}return o})(e,a.points).forEach(e=>{u.push({identifier:a.identifier,isCW:a.isCW,point:e})})}),u.sort((e,t)=>e.point.x-t.point.x),u}([new r.Vector2(i,s.y),new r.Vector2(o,s.y)],e.boundingBox,a);c.sort((e,t)=>e.point.x-t.point.x);let f=[],d=[];c.forEach(t=>{t.identifier===e.identifier?f.push(t):d.push(t)});let p=f[0].point.x,h=[],m=0;for(;m0&&h[h.length-1]===d[m].identifier?h.pop():h.push(d[m].identifier),m++;if(h.push(e.identifier),"evenodd"===u){let t=h.length%2==0,n=h[h.length-2];return{identifier:e.identifier,isHole:t,for:n}}if("nonzero"===u){let t=!0,n=null,r=null;for(let e=0;e{if(!u[e.identifier].isHole){let t=new r.Shape;t.curves=e.curves,u.filter(t=>t.isHole&&t.for===e.identifier).forEach(e=>{let n=o[e.identifier],l=new r.Path;l.curves=n.curves,t.holes.push(l)}),s.push(t)}}),s}static getStrokeStyle(e,t,n,r,l){return{strokeColor:t=void 0!==t?t:"#000",strokeWidth:e=void 0!==e?e:1,strokeLineJoin:n=void 0!==n?n:"miter",strokeLineCap:r=void 0!==r?r:"butt",strokeMiterLimit:l=void 0!==l?l:4}}static pointsToStroke(e,t,n,l){let i=[],o=[],u=[];if(0===a.pointsToStrokeWithBuffers(e,t,n,l,i,o,u))return null;let s=new r.BufferGeometry;return s.setAttribute("position",new r.Float32BufferAttribute(i,3)),s.setAttribute("normal",new r.Float32BufferAttribute(o,3)),s.setAttribute("uv",new r.Float32BufferAttribute(u,2)),s}static pointsToStrokeWithBuffers(e,t,n,l,a,i,o,u){let s,c,f,d,p;let h=new r.Vector2,m=new r.Vector2,g=new r.Vector2,v=new r.Vector2,b=new r.Vector2,y=new r.Vector2,w=new r.Vector2,S=new r.Vector2,x=new r.Vector2,E=new r.Vector2,k=new r.Vector2,P=new r.Vector2,C=new r.Vector2,_=new r.Vector2,M=new r.Vector2,T=new r.Vector2,z=new r.Vector2;n=void 0!==n?n:12,l=void 0!==l?l:.001,u=void 0!==u?u:0;let N=(e=function(e){let t=!1;for(let n=1,r=e.length-1;n=l&&n.push(e[t]);return n.push(e[e.length-1]),n}(e)).length;if(N<2)return 0;let I=e[0].equals(e[N-1]),O=e[0],L=t.strokeWidth/2,A=1/(N-1),j=0,R,D=!1,F=0,U=3*u,H=2*u;V(e[0],e[1],h).multiplyScalar(L),S.copy(e[0]).sub(h),x.copy(e[0]).add(h),E.copy(S),k.copy(x);for(let n=1;nh.dot(g)&&(d=!1),1===n&&(D=d),g.subVectors(c,s),g.normalize();let e=Math.abs(h.dot(g));if(e>Number.EPSILON){let n=L/e;g.multiplyScalar(-n),v.subVectors(s,O),b.copy(v).setLength(n).add(g),T.copy(b).negate();let r=b.length(),l=v.length();v.divideScalar(l),y.subVectors(c,s);let a=y.length();switch(y.divideScalar(a),v.dot(T)Math.abs(o)&&(i=Math.abs(Math.acos(o))),i/=n,g.copy(t);for(let t=0,r=n-1;t>8&255]+iC[e>>16&255]+iC[e>>24&255]+"-"+iC[255&t]+iC[t>>8&255]+"-"+iC[t>>16&15|64]+iC[t>>24&255]+"-"+iC[63&i|128]+iC[i>>8&255]+"-"+iC[i>>16&255]+iC[i>>24&255]+iC[255&n]+iC[n>>8&255]+iC[n>>16&255]+iC[n>>24&255]).toLowerCase()}function iN(e,t,i){return Math.max(t,Math.min(i,e))}function iD(e,t){return(e%t+t)%t}function iO(e,t,i){return(1-i)*e+i*t}function iF(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error("Invalid component type.")}}function iB(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(4294967295*e);case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int32Array:return Math.round(2147483647*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw Error("Invalid component type.")}}let iz={DEG2RAD:iL,RAD2DEG:iI,generateUUID:iU,clamp:iN,euclideanModulo:iD,mapLinear:function(e,t,i,n,r){return n+(e-t)*(r-n)/(i-t)},inverseLerp:function(e,t,i){return e!==t?(i-e)/(t-e):0},lerp:iO,damp:function(e,t,i,n){return iO(e,t,1-Math.exp(-i*n))},pingpong:function(e,t=1){return t-Math.abs(iD(e,2*t)-t)},smoothstep:function(e,t,i){return e<=t?0:e>=i?1:(e=(e-t)/(i-t))*e*(3-2*e)},smootherstep:function(e,t,i){return e<=t?0:e>=i?1:(e=(e-t)/(i-t))*e*e*(e*(6*e-15)+10)},randInt:function(e,t){return e+Math.floor(Math.random()*(t-e+1))},randFloat:function(e,t){return e+Math.random()*(t-e)},randFloatSpread:function(e){return e*(.5-Math.random())},seededRandom:function(e){void 0!==e&&(iP=e);let t=iP+=1831565813;return t=Math.imul(t^t>>>15,1|t),(((t^=t+Math.imul(t^t>>>7,61|t))^t>>>14)>>>0)/4294967296},degToRad:function(e){return e*iL},radToDeg:function(e){return e*iI},isPowerOfTwo:function(e){return(e&e-1)==0&&0!==e},ceilPowerOfTwo:function(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},floorPowerOfTwo:function(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))},setQuaternionFromProperEuler:function(e,t,i,n,r){let a=Math.cos,s=Math.sin,o=a(i/2),l=s(i/2),h=a((t+n)/2),u=s((t+n)/2),c=a((t-n)/2),d=s((t-n)/2),p=a((n-t)/2),f=s((n-t)/2);switch(r){case"XYX":e.set(o*u,l*c,l*d,o*h);break;case"YZY":e.set(l*d,o*u,l*c,o*h);break;case"ZXZ":e.set(l*c,l*d,o*u,o*h);break;case"XZX":e.set(o*u,l*f,l*p,o*h);break;case"YXY":e.set(l*p,o*u,l*f,o*h);break;case"ZYZ":e.set(l*f,l*p,o*u,o*h);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}},normalize:iB,denormalize:iF};class ik{constructor(e=0,t=0){ik.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,i=this.y,n=e.elements;return this.x=n[0]*t+n[3]*i+n[6],this.y=n[1]*t+n[4]*i+n[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){let i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());return 0===t?Math.PI/2:Math.acos(iN(this.dot(e)/t,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,i=this.y-e.y;return t*t+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let i=Math.cos(t),n=Math.sin(t),r=this.x-e.x,a=this.y-e.y;return this.x=r*i-a*n+e.x,this.y=r*n+a*i+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class iV{constructor(e,t,i,n,r,a,s,o,l){iV.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==e&&this.set(e,t,i,n,r,a,s,o,l)}set(e,t,i,n,r,a,s,o,l){let h=this.elements;return h[0]=e,h[1]=n,h[2]=s,h[3]=t,h[4]=r,h[5]=o,h[6]=i,h[7]=a,h[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],this}extractBasis(e,t,i){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let i=e.elements,n=t.elements,r=this.elements,a=i[0],s=i[3],o=i[6],l=i[1],h=i[4],u=i[7],c=i[2],d=i[5],p=i[8],f=n[0],m=n[3],g=n[6],v=n[1],_=n[4],y=n[7],x=n[2],M=n[5],S=n[8];return r[0]=a*f+s*v+o*x,r[3]=a*m+s*_+o*M,r[6]=a*g+s*y+o*S,r[1]=l*f+h*v+u*x,r[4]=l*m+h*_+u*M,r[7]=l*g+h*y+u*S,r[2]=c*f+d*v+p*x,r[5]=c*m+d*_+p*M,r[8]=c*g+d*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],i=e[1],n=e[2],r=e[3],a=e[4],s=e[5],o=e[6],l=e[7],h=e[8];return t*a*h-t*s*l-i*r*h+i*s*o+n*r*l-n*a*o}invert(){let e=this.elements,t=e[0],i=e[1],n=e[2],r=e[3],a=e[4],s=e[5],o=e[6],l=e[7],h=e[8],u=h*a-s*l,c=s*o-h*r,d=l*r-a*o,p=t*u+i*c+n*d;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);let f=1/p;return e[0]=u*f,e[1]=(n*l-h*i)*f,e[2]=(s*i-n*a)*f,e[3]=c*f,e[4]=(h*t-n*o)*f,e[5]=(n*r-s*t)*f,e[6]=d*f,e[7]=(i*o-l*t)*f,e[8]=(a*t-i*r)*f,this}transpose(){let e;let t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,i,n,r,a,s){let o=Math.cos(r),l=Math.sin(r);return this.set(i*o,i*l,-i*(o*a+l*s)+a+e,-n*l,n*o,-n*(-l*a+o*s)+s+t,0,0,1),this}scale(e,t){return this.premultiply(iH.makeScale(e,t)),this}rotate(e){return this.premultiply(iH.makeRotation(-e)),this}translate(e,t){return this.premultiply(iH.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,i,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,i=e.elements;for(let e=0;e<9;e++)if(t[e]!==i[e])return!1;return!0}fromArray(e,t=0){for(let i=0;i<9;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){let i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e}clone(){return new this.constructor().fromArray(this.elements)}}let iH=new iV;function iG(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}let iW={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:Uint8ClampedArray,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function iX(e,t){return new iW[e](t)}function ij(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function iq(){let e=ij("canvas");return e.style.display="block",e}let iY={};function iZ(e){e in iY||(iY[e]=!0,console.warn(e))}let iJ=new iV().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),iK=new iV().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),i$={[tj]:{transfer:tZ,primaries:tK,toReference:e=>e,fromReference:e=>e},[tX]:{transfer:tJ,primaries:tK,toReference:e=>e.convertSRGBToLinear(),fromReference:e=>e.convertLinearToSRGB()},[tY]:{transfer:tZ,primaries:t$,toReference:e=>e.applyMatrix3(iK),fromReference:e=>e.applyMatrix3(iJ)},[tq]:{transfer:tJ,primaries:t$,toReference:e=>e.convertSRGBToLinear().applyMatrix3(iK),fromReference:e=>e.applyMatrix3(iJ).convertLinearToSRGB()}},iQ=new Set([tj,tY]),i0={enabled:!0,_workingColorSpace:tj,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(colorSpace){if(!iQ.has(colorSpace))throw Error(`Unsupported working color space, "${colorSpace}".`);this._workingColorSpace=colorSpace},convert:function(e,t,i){if(!1===this.enabled||t===i||!t||!i)return e;let n=i$[t].toReference;return(0,i$[i].fromReference)(n(e))},fromWorkingColorSpace:function(e,t){return this.convert(e,this._workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this._workingColorSpace)},getPrimaries:function(e){return i$[e].primaries},getTransfer:function(e){return e===tW?tZ:i$[e].transfer}};function i1(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function i2(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}class i3{static getDataURL(e){let t;if(/^data:/i.test(e.src)||"undefined"==typeof HTMLCanvasElement)return e.src;if(e instanceof HTMLCanvasElement)t=e;else{void 0===n&&(n=ij("canvas")),n.width=e.width,n.height=e.height;let i=n.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),t=n}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){let t=ij("canvas");t.width=e.width,t.height=e.height;let i=t.getContext("2d");i.drawImage(e,0,0,e.width,e.height);let n=i.getImageData(0,0,e.width,e.height),r=n.data;for(let e=0;e0&&(i.userData=this.userData),t||(e.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==em)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case eM:e.x=e.x-Math.floor(e.x);break;case eS:e.x=e.x<0?0:1;break;case eb:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case eM:e.y=e.y-Math.floor(e.y);break;case eS:e.y=e.y<0?0:1;break;case eb:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){!0===e&&this.pmremVersion++}}i9.DEFAULT_IMAGE=null,i9.DEFAULT_MAPPING=em,i9.DEFAULT_ANISOTROPY=1;class i7{constructor(e=0,t=0,i=0,n=1){i7.prototype.isVector4=!0,this.x=e,this.y=t,this.z=i,this.w=n}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,i,n){return this.x=e,this.y=t,this.z=i,this.w=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,i=this.y,n=this.z,r=this.w,a=e.elements;return this.x=a[0]*t+a[4]*i+a[8]*n+a[12]*r,this.y=a[1]*t+a[5]*i+a[9]*n+a[13]*r,this.z=a[2]*t+a[6]*i+a[10]*n+a[14]*r,this.w=a[3]*t+a[7]*i+a[11]*n+a[15]*r,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,i,n,r;let a=e.elements,s=a[0],o=a[4],l=a[8],h=a[1],u=a[5],c=a[9],d=a[2],p=a[6],f=a[10];if(.01>Math.abs(o-h)&&.01>Math.abs(l-d)&&.01>Math.abs(c-p)){if(.1>Math.abs(o+h)&&.1>Math.abs(l+d)&&.1>Math.abs(c+p)&&.1>Math.abs(s+u+f-3))return this.set(1,0,0,0),this;t=Math.PI;let e=(s+1)/2,a=(u+1)/2,m=(f+1)/2,g=(o+h)/4,v=(l+d)/4,_=(c+p)/4;return e>a&&e>m?e<.01?(i=0,n=.707106781,r=.707106781):(n=g/(i=Math.sqrt(e)),r=v/i):a>m?a<.01?(i=.707106781,n=0,r=.707106781):(i=g/(n=Math.sqrt(a)),r=_/n):m<.01?(i=.707106781,n=.707106781,r=0):(i=v/(r=Math.sqrt(m)),n=_/r),this.set(i,n,r,t),this}let m=Math.sqrt((p-c)*(p-c)+(l-d)*(l-d)+(h-o)*(h-o));return .001>Math.abs(m)&&(m=1),this.x=(p-c)/m,this.y=(l-d)/m,this.z=(h-o)/m,this.w=Math.acos((s+u+f-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){let i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this.w=e.w+(t.w-e.w)*i,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class ne extends iR{constructor(e=1,t=1,i={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new i7(0,0,e,t),this.scissorTest=!1,this.viewport=new i7(0,0,e,t);let n=new i9({width:e,height:t,depth:1},(i=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:eC,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},i)).mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.colorSpace);n.flipY=!1,n.generateMipmaps=i.generateMipmaps,n.internalFormat=i.internalFormat,this.textures=[];let r=i.count;for(let e=0;e=0?1:-1,n=1-t*t;if(n>Number.EPSILON){let r=Math.sqrt(n),a=Math.atan2(r,t*i);e=Math.sin(e*a)/r,s=Math.sin(s*a)/r}let r=s*i;if(o=o*e+c*r,l=l*e+d*r,h=h*e+p*r,u=u*e+f*r,e===1-s){let e=1/Math.sqrt(o*o+l*l+h*h+u*u);o*=e,l*=e,h*=e,u*=e}}e[t]=o,e[t+1]=l,e[t+2]=h,e[t+3]=u}static multiplyQuaternionsFlat(e,t,i,n,r,a){let s=i[n],o=i[n+1],l=i[n+2],h=i[n+3],u=r[a],c=r[a+1],d=r[a+2],p=r[a+3];return e[t]=s*p+h*u+o*d-l*c,e[t+1]=o*p+h*c+l*u-s*d,e[t+2]=l*p+h*d+s*c-o*u,e[t+3]=h*p-s*u-o*c-l*d,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,i,n){return this._x=e,this._y=t,this._z=i,this._w=n,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let i=e._x,n=e._y,r=e._z,a=e._order,s=Math.cos,o=Math.sin,l=s(i/2),h=s(n/2),u=s(r/2),c=o(i/2),d=o(n/2),p=o(r/2);switch(a){case"XYZ":this._x=c*h*u+l*d*p,this._y=l*d*u-c*h*p,this._z=l*h*p+c*d*u,this._w=l*h*u-c*d*p;break;case"YXZ":this._x=c*h*u+l*d*p,this._y=l*d*u-c*h*p,this._z=l*h*p-c*d*u,this._w=l*h*u+c*d*p;break;case"ZXY":this._x=c*h*u-l*d*p,this._y=l*d*u+c*h*p,this._z=l*h*p+c*d*u,this._w=l*h*u-c*d*p;break;case"ZYX":this._x=c*h*u-l*d*p,this._y=l*d*u+c*h*p,this._z=l*h*p-c*d*u,this._w=l*h*u+c*d*p;break;case"YZX":this._x=c*h*u+l*d*p,this._y=l*d*u+c*h*p,this._z=l*h*p-c*d*u,this._w=l*h*u-c*d*p;break;case"XZY":this._x=c*h*u-l*d*p,this._y=l*d*u-c*h*p,this._z=l*h*p+c*d*u,this._w=l*h*u+c*d*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return!0===t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let i=t/2,n=Math.sin(i);return this._x=e.x*n,this._y=e.y*n,this._z=e.z*n,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,i=t[0],n=t[4],r=t[8],a=t[1],s=t[5],o=t[9],l=t[2],h=t[6],u=t[10],c=i+s+u;if(c>0){let e=.5/Math.sqrt(c+1);this._w=.25/e,this._x=(h-o)*e,this._y=(r-l)*e,this._z=(a-n)*e}else if(i>s&&i>u){let e=2*Math.sqrt(1+i-s-u);this._w=(h-o)/e,this._x=.25*e,this._y=(n+a)/e,this._z=(r+l)/e}else if(s>u){let e=2*Math.sqrt(1+s-i-u);this._w=(r-l)/e,this._x=(n+a)/e,this._y=.25*e,this._z=(o+h)/e}else{let e=2*Math.sqrt(1+u-i-s);this._w=(a-n)/e,this._x=(r+l)/e,this._y=(o+h)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let i=e.dot(t)+1;return iMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0):(this._x=0,this._y=-e.z,this._z=e.y)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x),this._w=i,this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(iN(this.dot(e),-1,1)))}rotateTowards(e,t){let i=this.angleTo(e);return 0===i||this.slerp(e,Math.min(1,t/i)),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let i=e._x,n=e._y,r=e._z,a=e._w,s=t._x,o=t._y,l=t._z,h=t._w;return this._x=i*h+a*s+n*l-r*o,this._y=n*h+a*o+r*s-i*l,this._z=r*h+a*l+i*o-n*s,this._w=a*h-i*s-n*o-r*l,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);let i=this._x,n=this._y,r=this._z,a=this._w,s=a*e._w+i*e._x+n*e._y+r*e._z;if(s<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,s=-s):this.copy(e),s>=1)return this._w=a,this._x=i,this._y=n,this._z=r,this;let o=1-s*s;if(o<=Number.EPSILON){let e=1-t;return this._w=e*a+t*this._w,this._x=e*i+t*this._x,this._y=e*n+t*this._y,this._z=e*r+t*this._z,this.normalize(),this}let l=Math.sqrt(o),h=Math.atan2(l,s),u=Math.sin((1-t)*h)/l,c=Math.sin(t*h)/l;return this._w=a*u+this._w*c,this._x=i*u+this._x*c,this._y=n*u+this._y*c,this._z=r*u+this._z*c,this._onChangeCallback(),this}slerpQuaternions(e,t,i){return this.copy(e).slerp(t,i)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),i=Math.random(),n=Math.sqrt(1-i),r=Math.sqrt(i);return this.set(n*Math.sin(e),n*Math.cos(e),r*Math.sin(t),r*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class no{constructor(e=0,t=0,i=0){no.prototype.isVector3=!0,this.x=e,this.y=t,this.z=i}set(e,t,i){return void 0===i&&(i=this.z),this.x=e,this.y=t,this.z=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(nh.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(nh.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,i=this.y,n=this.z,r=e.elements;return this.x=r[0]*t+r[3]*i+r[6]*n,this.y=r[1]*t+r[4]*i+r[7]*n,this.z=r[2]*t+r[5]*i+r[8]*n,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,i=this.y,n=this.z,r=e.elements,a=1/(r[3]*t+r[7]*i+r[11]*n+r[15]);return this.x=(r[0]*t+r[4]*i+r[8]*n+r[12])*a,this.y=(r[1]*t+r[5]*i+r[9]*n+r[13])*a,this.z=(r[2]*t+r[6]*i+r[10]*n+r[14])*a,this}applyQuaternion(e){let t=this.x,i=this.y,n=this.z,r=e.x,a=e.y,s=e.z,o=e.w,l=2*(a*n-s*i),h=2*(s*t-r*n),u=2*(r*i-a*t);return this.x=t+o*l+a*u-s*h,this.y=i+o*h+s*l-r*u,this.z=n+o*u+r*h-a*l,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,i=this.y,n=this.z,r=e.elements;return this.x=r[0]*t+r[4]*i+r[8]*n,this.y=r[1]*t+r[5]*i+r[9]*n,this.z=r[2]*t+r[6]*i+r[10]*n,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){let i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let i=e.x,n=e.y,r=e.z,a=t.x,s=t.y,o=t.z;return this.x=n*o-r*s,this.y=r*a-i*o,this.z=i*s-n*a,this}projectOnVector(e){let t=e.lengthSq();if(0===t)return this.set(0,0,0);let i=e.dot(this)/t;return this.copy(e).multiplyScalar(i)}projectOnPlane(e){return nl.copy(this).projectOnVector(e),this.sub(nl)}reflect(e){return this.sub(nl.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());return 0===t?Math.PI/2:Math.acos(iN(this.dot(e)/t,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,i=this.y-e.y,n=this.z-e.z;return t*t+i*i+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,i){let n=Math.sin(t)*e;return this.x=n*Math.sin(i),this.y=Math.cos(t)*e,this.z=n*Math.cos(i),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,i){return this.x=e*Math.sin(t),this.y=i,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),n=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=i,this.z=n,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=2*Math.random()-1,i=Math.sqrt(1-t*t);return this.x=i*Math.cos(e),this.y=t,this.z=i*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}let nl=new no,nh=new ns;class nu{constructor(e=new no(Infinity,Infinity,Infinity),t=new no(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,i=e.length;tthis.max.x)&&!(e.ythis.max.y)&&!(e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x)&&!(e.max.ythis.max.y)&&!(e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,nd),nd.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,i;return e.normal.x>0?(t=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),t<=-e.constant&&i>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(nx),nM.subVectors(this.max,nx),nf.subVectors(e.a,nx),nm.subVectors(e.b,nx),ng.subVectors(e.c,nx),nv.subVectors(nm,nf),n_.subVectors(ng,nm),ny.subVectors(nf,ng);let t=[0,-nv.z,nv.y,0,-n_.z,n_.y,0,-ny.z,ny.y,nv.z,0,-nv.x,n_.z,0,-n_.x,ny.z,0,-ny.x,-nv.y,nv.x,0,-n_.y,n_.x,0,-ny.y,ny.x,0];return!!(nT(t,nf,nm,ng,nM)&&nT(t=[1,0,0,0,1,0,0,0,1],nf,nm,ng,nM))&&(nS.crossVectors(nv,n_),nT(t=[nS.x,nS.y,nS.z],nf,nm,ng,nM))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,nd).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(nd).length()),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(nc[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),nc[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),nc[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),nc[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),nc[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),nc[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),nc[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),nc[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(nc)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}let nc=[new no,new no,new no,new no,new no,new no,new no,new no],nd=new no,np=new nu,nf=new no,nm=new no,ng=new no,nv=new no,n_=new no,ny=new no,nx=new no,nM=new no,nS=new no,nb=new no;function nT(e,t,i,n,r){for(let a=0,s=e.length-3;a<=s;a+=3){nb.fromArray(e,a);let s=r.x*Math.abs(nb.x)+r.y*Math.abs(nb.y)+r.z*Math.abs(nb.z),o=t.dot(nb),l=i.dot(nb),h=n.dot(nb);if(Math.max(-Math.max(o,l,h),Math.min(o,l,h))>s)return!1}return!0}let nE=new nu,nw=new no,nA=new no;class nR{constructor(e=new no,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){let i=this.center;void 0!==t?i.copy(t):nE.setFromPoints(e).getCenter(i);let n=0;for(let t=0,r=e.length;tthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?e.makeEmpty():(e.set(this.center,this.center),e.expandByScalar(this.radius)),e}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;nw.subVectors(e,this.center);let t=nw.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),i=(e-this.radius)*.5;this.center.addScaledVector(nw,i/e),this.radius+=i}return this}union(e){return e.isEmpty()||(this.isEmpty()?this.copy(e):!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(nA.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(nw.copy(e.center).add(nA)),this.expandByPoint(nw.copy(e.center).sub(nA)))),this}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}let nC=new no,nP=new no,nL=new no,nI=new no,nU=new no,nN=new no,nD=new no;class nO{constructor(e=new no,t=new no(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,nC)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let i=t.dot(this.direction);return i<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=nC.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(nC.copy(this.origin).addScaledVector(this.direction,t),nC.distanceToSquared(e))}distanceSqToSegment(e,t,i,n){let r,a,s,o;nP.copy(e).add(t).multiplyScalar(.5),nL.copy(t).sub(e).normalize(),nI.copy(this.origin).sub(nP);let l=.5*e.distanceTo(t),h=-this.direction.dot(nL),u=nI.dot(this.direction),c=-nI.dot(nL),d=nI.lengthSq(),p=Math.abs(1-h*h);if(p>0){if(r=h*c-u,a=h*u-c,o=l*p,r>=0){if(a>=-o){if(a<=o){let e=1/p;r*=e,a*=e,s=r*(r+h*a+2*u)+a*(h*r+a+2*c)+d}else s=-(r=Math.max(0,-(h*(a=l)+u)))*r+a*(a+2*c)+d}else s=-(r=Math.max(0,-(h*(a=-l)+u)))*r+a*(a+2*c)+d}else a<=-o?(a=(r=Math.max(0,-(-h*l+u)))>0?-l:Math.min(Math.max(-l,-c),l),s=-r*r+a*(a+2*c)+d):a<=o?(r=0,s=(a=Math.min(Math.max(-l,-c),l))*(a+2*c)+d):(a=(r=Math.max(0,-(h*l+u)))>0?l:Math.min(Math.max(-l,-c),l),s=-r*r+a*(a+2*c)+d)}else a=h>0?-l:l,s=-(r=Math.max(0,-(h*a+u)))*r+a*(a+2*c)+d;return i&&i.copy(this.origin).addScaledVector(this.direction,r),n&&n.copy(nP).addScaledVector(nL,a),s}intersectSphere(e,t){nC.subVectors(e.center,this.origin);let i=nC.dot(this.direction),n=nC.dot(nC)-i*i,r=e.radius*e.radius;if(n>r)return null;let a=Math.sqrt(r-n),s=i-a,o=i+a;return o<0?null:s<0?this.at(o,t):this.at(s,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;let i=-(this.origin.dot(e.normal)+e.constant)/t;return i>=0?i:null}intersectPlane(e,t){let i=this.distanceToPlane(e);return null===i?null:this.at(i,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return!!(0===t||e.normal.dot(this.direction)*t<0)}intersectBox(e,t){let i,n,r,a,s,o;let l=1/this.direction.x,h=1/this.direction.y,u=1/this.direction.z,c=this.origin;return(l>=0?(i=(e.min.x-c.x)*l,n=(e.max.x-c.x)*l):(i=(e.max.x-c.x)*l,n=(e.min.x-c.x)*l),h>=0?(r=(e.min.y-c.y)*h,a=(e.max.y-c.y)*h):(r=(e.max.y-c.y)*h,a=(e.min.y-c.y)*h),i>a||r>n)?null:((r>i||isNaN(i))&&(i=r),(a=0?(s=(e.min.z-c.z)*u,o=(e.max.z-c.z)*u):(s=(e.max.z-c.z)*u,o=(e.min.z-c.z)*u),i>o||s>n)?null:((s>i||i!=i)&&(i=s),(o=0?i:n,t)}intersectsBox(e){return null!==this.intersectBox(e,nC)}intersectTriangle(e,t,i,n,r){let a;nU.subVectors(t,e),nN.subVectors(i,e),nD.crossVectors(nU,nN);let s=this.direction.dot(nD);if(s>0){if(n)return null;a=1}else{if(!(s<0))return null;a=-1,s=-s}nI.subVectors(this.origin,e);let o=a*this.direction.dot(nN.crossVectors(nI,nN));if(o<0)return null;let l=a*this.direction.dot(nU.cross(nI));if(l<0||o+l>s)return null;let h=-a*nI.dot(nD);return h<0?null:this.at(h/s,r)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class nF{constructor(e,t,i,n,r,a,s,o,l,h,u,c,d,p,f,m){nF.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==e&&this.set(e,t,i,n,r,a,s,o,l,h,u,c,d,p,f,m)}set(e,t,i,n,r,a,s,o,l,h,u,c,d,p,f,m){let g=this.elements;return g[0]=e,g[4]=t,g[8]=i,g[12]=n,g[1]=r,g[5]=a,g[9]=s,g[13]=o,g[2]=l,g[6]=h,g[10]=u,g[14]=c,g[3]=d,g[7]=p,g[11]=f,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new nF().fromArray(this.elements)}copy(e){let t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],this}copyPosition(e){let t=this.elements,i=e.elements;return t[12]=i[12],t[13]=i[13],t[14]=i[14],this}setFromMatrix3(e){let t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,i){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(e,t,i){return this.set(e.x,t.x,i.x,0,e.y,t.y,i.y,0,e.z,t.z,i.z,0,0,0,0,1),this}extractRotation(e){let t=this.elements,i=e.elements,n=1/nB.setFromMatrixColumn(e,0).length(),r=1/nB.setFromMatrixColumn(e,1).length(),a=1/nB.setFromMatrixColumn(e,2).length();return t[0]=i[0]*n,t[1]=i[1]*n,t[2]=i[2]*n,t[3]=0,t[4]=i[4]*r,t[5]=i[5]*r,t[6]=i[6]*r,t[7]=0,t[8]=i[8]*a,t[9]=i[9]*a,t[10]=i[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){let t=this.elements,i=e.x,n=e.y,r=e.z,a=Math.cos(i),s=Math.sin(i),o=Math.cos(n),l=Math.sin(n),h=Math.cos(r),u=Math.sin(r);if("XYZ"===e.order){let e=a*h,i=a*u,n=s*h,r=s*u;t[0]=o*h,t[4]=-o*u,t[8]=l,t[1]=i+n*l,t[5]=e-r*l,t[9]=-s*o,t[2]=r-e*l,t[6]=n+i*l,t[10]=a*o}else if("YXZ"===e.order){let e=o*h,i=o*u,n=l*h,r=l*u;t[0]=e+r*s,t[4]=n*s-i,t[8]=a*l,t[1]=a*u,t[5]=a*h,t[9]=-s,t[2]=i*s-n,t[6]=r+e*s,t[10]=a*o}else if("ZXY"===e.order){let e=o*h,i=o*u,n=l*h,r=l*u;t[0]=e-r*s,t[4]=-a*u,t[8]=n+i*s,t[1]=i+n*s,t[5]=a*h,t[9]=r-e*s,t[2]=-a*l,t[6]=s,t[10]=a*o}else if("ZYX"===e.order){let e=a*h,i=a*u,n=s*h,r=s*u;t[0]=o*h,t[4]=n*l-i,t[8]=e*l+r,t[1]=o*u,t[5]=r*l+e,t[9]=i*l-n,t[2]=-l,t[6]=s*o,t[10]=a*o}else if("YZX"===e.order){let e=a*o,i=a*l,n=s*o,r=s*l;t[0]=o*h,t[4]=r-e*u,t[8]=n*u+i,t[1]=u,t[5]=a*h,t[9]=-s*h,t[2]=-l*h,t[6]=i*u+n,t[10]=e-r*u}else if("XZY"===e.order){let e=a*o,i=a*l,n=s*o,r=s*l;t[0]=o*h,t[4]=-u,t[8]=l*h,t[1]=e*u+r,t[5]=a*h,t[9]=i*u-n,t[2]=n*u-i,t[6]=s*h,t[10]=r*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(nk,e,nV)}lookAt(e,t,i){let n=this.elements;return nW.subVectors(e,t),0===nW.lengthSq()&&(nW.z=1),nW.normalize(),nH.crossVectors(i,nW),0===nH.lengthSq()&&(1===Math.abs(i.z)?nW.x+=1e-4:nW.z+=1e-4,nW.normalize(),nH.crossVectors(i,nW)),nH.normalize(),nG.crossVectors(nW,nH),n[0]=nH.x,n[4]=nG.x,n[8]=nW.x,n[1]=nH.y,n[5]=nG.y,n[9]=nW.y,n[2]=nH.z,n[6]=nG.z,n[10]=nW.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let i=e.elements,n=t.elements,r=this.elements,a=i[0],s=i[4],o=i[8],l=i[12],h=i[1],u=i[5],c=i[9],d=i[13],p=i[2],f=i[6],m=i[10],g=i[14],v=i[3],_=i[7],y=i[11],x=i[15],M=n[0],S=n[4],b=n[8],T=n[12],E=n[1],w=n[5],A=n[9],R=n[13],C=n[2],P=n[6],L=n[10],I=n[14],U=n[3],N=n[7],D=n[11],O=n[15];return r[0]=a*M+s*E+o*C+l*U,r[4]=a*S+s*w+o*P+l*N,r[8]=a*b+s*A+o*L+l*D,r[12]=a*T+s*R+o*I+l*O,r[1]=h*M+u*E+c*C+d*U,r[5]=h*S+u*w+c*P+d*N,r[9]=h*b+u*A+c*L+d*D,r[13]=h*T+u*R+c*I+d*O,r[2]=p*M+f*E+m*C+g*U,r[6]=p*S+f*w+m*P+g*N,r[10]=p*b+f*A+m*L+g*D,r[14]=p*T+f*R+m*I+g*O,r[3]=v*M+_*E+y*C+x*U,r[7]=v*S+_*w+y*P+x*N,r[11]=v*b+_*A+y*L+x*D,r[15]=v*T+_*R+y*I+x*O,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){let e=this.elements,t=e[0],i=e[4],n=e[8],r=e[12],a=e[1],s=e[5],o=e[9],l=e[13],h=e[2],u=e[6],c=e[10],d=e[14],p=e[3];return p*(+r*o*u-n*l*u-r*s*c+i*l*c+n*s*d-i*o*d)+e[7]*(+t*o*d-t*l*c+r*a*c-n*a*d+n*l*h-r*o*h)+e[11]*(+t*l*u-t*s*d-r*a*u+i*a*d+r*s*h-i*l*h)+e[15]*(-n*s*h-t*o*u+t*s*c+n*a*u-i*a*c+i*o*h)}transpose(){let e;let t=this.elements;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(e,t,i){let n=this.elements;return e.isVector3?(n[12]=e.x,n[13]=e.y,n[14]=e.z):(n[12]=e,n[13]=t,n[14]=i),this}invert(){let e=this.elements,t=e[0],i=e[1],n=e[2],r=e[3],a=e[4],s=e[5],o=e[6],l=e[7],h=e[8],u=e[9],c=e[10],d=e[11],p=e[12],f=e[13],m=e[14],g=e[15],v=u*m*l-f*c*l+f*o*d-s*m*d-u*o*g+s*c*g,_=p*c*l-h*m*l-p*o*d+a*m*d+h*o*g-a*c*g,y=h*f*l-p*u*l+p*s*d-a*f*d-h*s*g+a*u*g,x=p*u*o-h*f*o-p*s*c+a*f*c+h*s*m-a*u*m,M=t*v+i*_+n*y+r*x;if(0===M)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let S=1/M;return e[0]=v*S,e[1]=(f*c*r-u*m*r-f*n*d+i*m*d+u*n*g-i*c*g)*S,e[2]=(s*m*r-f*o*r+f*n*l-i*m*l-s*n*g+i*o*g)*S,e[3]=(u*o*r-s*c*r-u*n*l+i*c*l+s*n*d-i*o*d)*S,e[4]=_*S,e[5]=(h*m*r-p*c*r+p*n*d-t*m*d-h*n*g+t*c*g)*S,e[6]=(p*o*r-a*m*r-p*n*l+t*m*l+a*n*g-t*o*g)*S,e[7]=(a*c*r-h*o*r+h*n*l-t*c*l-a*n*d+t*o*d)*S,e[8]=y*S,e[9]=(p*u*r-h*f*r-p*i*d+t*f*d+h*i*g-t*u*g)*S,e[10]=(a*f*r-p*s*r+p*i*l-t*f*l-a*i*g+t*s*g)*S,e[11]=(h*s*r-a*u*r-h*i*l+t*u*l+a*i*d-t*s*d)*S,e[12]=x*S,e[13]=(h*f*n-p*u*n+p*i*c-t*f*c-h*i*m+t*u*m)*S,e[14]=(p*s*n-a*f*n-p*i*o+t*f*o+a*i*m-t*s*m)*S,e[15]=(a*u*n-h*s*n+h*i*o-t*u*o-a*i*c+t*s*c)*S,this}scale(e){let t=this.elements,i=e.x,n=e.y,r=e.z;return t[0]*=i,t[4]*=n,t[8]*=r,t[1]*=i,t[5]*=n,t[9]*=r,t[2]*=i,t[6]*=n,t[10]*=r,t[3]*=i,t[7]*=n,t[11]*=r,this}getMaxScaleOnAxis(){let e=this.elements;return Math.sqrt(Math.max(e[0]*e[0]+e[1]*e[1]+e[2]*e[2],e[4]*e[4]+e[5]*e[5]+e[6]*e[6],e[8]*e[8]+e[9]*e[9]+e[10]*e[10]))}makeTranslation(e,t,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,i,0,0,0,1),this}makeRotationX(e){let t=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,t,-i,0,0,i,t,0,0,0,0,1),this}makeRotationY(e){let t=Math.cos(e),i=Math.sin(e);return this.set(t,0,i,0,0,1,0,0,-i,0,t,0,0,0,0,1),this}makeRotationZ(e){let t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,0,i,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){let i=Math.cos(t),n=Math.sin(t),r=1-i,a=e.x,s=e.y,o=e.z,l=r*a,h=r*s;return this.set(l*a+i,l*s-n*o,l*o+n*s,0,l*s+n*o,h*s+i,h*o-n*a,0,l*o-n*s,h*o+n*a,r*o*o+i,0,0,0,0,1),this}makeScale(e,t,i){return this.set(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1),this}makeShear(e,t,i,n,r,a){return this.set(1,i,r,0,e,1,a,0,t,n,1,0,0,0,0,1),this}compose(e,t,i){let n=this.elements,r=t._x,a=t._y,s=t._z,o=t._w,l=r+r,h=a+a,u=s+s,c=r*l,d=r*h,p=r*u,f=a*h,m=a*u,g=s*u,v=o*l,_=o*h,y=o*u,x=i.x,M=i.y,S=i.z;return n[0]=(1-(f+g))*x,n[1]=(d+y)*x,n[2]=(p-_)*x,n[3]=0,n[4]=(d-y)*M,n[5]=(1-(c+g))*M,n[6]=(m+v)*M,n[7]=0,n[8]=(p+_)*S,n[9]=(m-v)*S,n[10]=(1-(c+f))*S,n[11]=0,n[12]=e.x,n[13]=e.y,n[14]=e.z,n[15]=1,this}decompose(e,t,i){let n=this.elements,r=nB.set(n[0],n[1],n[2]).length(),a=nB.set(n[4],n[5],n[6]).length(),s=nB.set(n[8],n[9],n[10]).length();0>this.determinant()&&(r=-r),e.x=n[12],e.y=n[13],e.z=n[14],nz.copy(this);let o=1/r,l=1/a,h=1/s;return nz.elements[0]*=o,nz.elements[1]*=o,nz.elements[2]*=o,nz.elements[4]*=l,nz.elements[5]*=l,nz.elements[6]*=l,nz.elements[8]*=h,nz.elements[9]*=h,nz.elements[10]*=h,t.setFromRotationMatrix(nz),i.x=r,i.y=a,i.z=s,this}makePerspective(e,t,i,n,r,a,s=iw){let o,l;let h=this.elements;if(s===iw)o=-(a+r)/(a-r),l=-2*a*r/(a-r);else if(s===iA)o=-a/(a-r),l=-a*r/(a-r);else throw Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+s);return h[0]=2*r/(t-e),h[4]=0,h[8]=(t+e)/(t-e),h[12]=0,h[1]=0,h[5]=2*r/(i-n),h[9]=(i+n)/(i-n),h[13]=0,h[2]=0,h[6]=0,h[10]=o,h[14]=l,h[3]=0,h[7]=0,h[11]=-1,h[15]=0,this}makeOrthographic(e,t,i,n,r,a,s=iw){let o,l;let h=this.elements,u=1/(t-e),c=1/(i-n),d=1/(a-r);if(s===iw)o=(a+r)*d,l=-2*d;else if(s===iA)o=r*d,l=-1*d;else throw Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+s);return h[0]=2*u,h[4]=0,h[8]=0,h[12]=-((t+e)*u),h[1]=0,h[5]=2*c,h[9]=0,h[13]=-((i+n)*c),h[2]=0,h[6]=0,h[10]=l,h[14]=-o,h[3]=0,h[7]=0,h[11]=0,h[15]=1,this}equals(e){let t=this.elements,i=e.elements;for(let e=0;e<16;e++)if(t[e]!==i[e])return!1;return!0}fromArray(e,t=0){for(let i=0;i<16;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){let i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e[t+9]=i[9],e[t+10]=i[10],e[t+11]=i[11],e[t+12]=i[12],e[t+13]=i[13],e[t+14]=i[14],e[t+15]=i[15],e}}let nB=new no,nz=new nF,nk=new no(0,0,0),nV=new no(1,1,1),nH=new no,nG=new no,nW=new no,nX=new nF,nj=new ns;class nq{constructor(e=0,t=0,i=0,n=nq.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=i,this._order=n}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,i,n=this._order){return this._x=e,this._y=t,this._z=i,this._order=n,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,i=!0){let n=e.elements,r=n[0],a=n[4],s=n[8],o=n[1],l=n[5],h=n[9],u=n[2],c=n[6],d=n[10];switch(t){case"XYZ":this._y=Math.asin(iN(s,-1,1)),.9999999>Math.abs(s)?(this._x=Math.atan2(-h,d),this._z=Math.atan2(-a,r)):(this._x=Math.atan2(c,l),this._z=0);break;case"YXZ":this._x=Math.asin(-iN(h,-1,1)),.9999999>Math.abs(h)?(this._y=Math.atan2(s,d),this._z=Math.atan2(o,l)):(this._y=Math.atan2(-u,r),this._z=0);break;case"ZXY":this._x=Math.asin(iN(c,-1,1)),.9999999>Math.abs(c)?(this._y=Math.atan2(-u,d),this._z=Math.atan2(-a,l)):(this._y=0,this._z=Math.atan2(o,r));break;case"ZYX":this._y=Math.asin(-iN(u,-1,1)),.9999999>Math.abs(u)?(this._x=Math.atan2(c,d),this._z=Math.atan2(o,r)):(this._x=0,this._z=Math.atan2(-a,l));break;case"YZX":this._z=Math.asin(iN(o,-1,1)),.9999999>Math.abs(o)?(this._x=Math.atan2(-h,l),this._y=Math.atan2(-u,r)):(this._x=0,this._y=Math.atan2(s,d));break;case"XZY":this._z=Math.asin(-iN(a,-1,1)),.9999999>Math.abs(a)?(this._x=Math.atan2(c,l),this._y=Math.atan2(s,r)):(this._x=Math.atan2(-h,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===i&&this._onChangeCallback(),this}setFromQuaternion(e,t,i){return nX.makeRotationFromQuaternion(e),this.setFromRotationMatrix(nX,t,i)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return nj.setFromEuler(this),this.setFromQuaternion(nj,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}nq.DEFAULT_ORDER="XYZ";class nY{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(n.userData=this.userData),n.layers=this.layers.mask,n.matrix=this.matrix.toArray(),n.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(n.matrixAutoUpdate=!1),this.isInstancedMesh&&(n.type="InstancedMesh",n.count=this.count,n.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(n.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(n.type="BatchedMesh",n.perObjectFrustumCulled=this.perObjectFrustumCulled,n.sortObjects=this.sortObjects,n.drawRanges=this._drawRanges,n.reservedRanges=this._reservedRanges,n.visibility=this._visibility,n.active=this._active,n.bounds=this._bounds.map(e=>({boxInitialized:e.boxInitialized,boxMin:e.box.min.toArray(),boxMax:e.box.max.toArray(),sphereInitialized:e.sphereInitialized,sphereRadius:e.sphere.radius,sphereCenter:e.sphere.center.toArray()})),n.maxGeometryCount=this._maxGeometryCount,n.maxVertexCount=this._maxVertexCount,n.maxIndexCount=this._maxIndexCount,n.geometryInitialized=this._geometryInitialized,n.geometryCount=this._geometryCount,n.matricesTexture=this._matricesTexture.toJSON(e),null!==this.boundingSphere&&(n.boundingSphere={center:n.boundingSphere.center.toArray(),radius:n.boundingSphere.radius}),null!==this.boundingBox&&(n.boundingBox={min:n.boundingBox.min.toArray(),max:n.boundingBox.max.toArray()})),this.isScene)this.background&&(this.background.isColor?n.background=this.background.toJSON():this.background.isTexture&&(n.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(n.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){n.geometry=r(e.geometries,this.geometry);let t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){let i=t.shapes;if(Array.isArray(i))for(let t=0,n=i.length;t0){n.children=[];for(let t=0;t0){n.animations=[];for(let t=0;t0&&(i.geometries=t),n.length>0&&(i.materials=n),r.length>0&&(i.textures=r),s.length>0&&(i.images=s),o.length>0&&(i.shapes=o),l.length>0&&(i.skeletons=l),h.length>0&&(i.animations=h),u.length>0&&(i.nodes=u)}return i.object=n,i;function a(e){let t=[];for(let i in e){let n=e[i];delete n.metadata,t.push(n)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(let t=0;t0?n.multiplyScalar(1/Math.sqrt(r)):n.set(0,0,0)}static getBarycoord(e,t,i,n,r){rt.subVectors(n,t),ri.subVectors(i,t),rn.subVectors(e,t);let a=rt.dot(rt),s=rt.dot(ri),o=rt.dot(rn),l=ri.dot(ri),h=ri.dot(rn),u=a*l-s*s;if(0===u)return r.set(0,0,0),null;let c=1/u,d=(l*o-s*h)*c,p=(a*h-s*o)*c;return r.set(1-d-p,p,d)}static containsPoint(e,t,i,n){return null!==this.getBarycoord(e,t,i,n,rr)&&rr.x>=0&&rr.y>=0&&rr.x+rr.y<=1}static getInterpolation(e,t,i,n,r,a,s,o){return null===this.getBarycoord(e,t,i,n,rr)?(o.x=0,o.y=0,"z"in o&&(o.z=0),"w"in o&&(o.w=0),null):(o.setScalar(0),o.addScaledVector(r,rr.x),o.addScaledVector(a,rr.y),o.addScaledVector(s,rr.z),o)}static isFrontFacing(e,t,i,n){return rt.subVectors(i,t),ri.subVectors(e,t),0>rt.cross(ri).dot(n)}set(e,t,i){return this.a.copy(e),this.b.copy(t),this.c.copy(i),this}setFromPointsAndIndices(e,t,i,n){return this.a.copy(e[t]),this.b.copy(e[i]),this.c.copy(e[n]),this}setFromAttributeAndIndices(e,t,i,n){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,n),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return rt.subVectors(this.c,this.b),ri.subVectors(this.a,this.b),.5*rt.cross(ri).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return rc.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return rc.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,i,n,r){return rc.getInterpolation(e,this.a,this.b,this.c,t,i,n,r)}containsPoint(e){return rc.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return rc.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let i,n;let r=this.a,a=this.b,s=this.c;ra.subVectors(a,r),rs.subVectors(s,r),rl.subVectors(e,r);let o=ra.dot(rl),l=rs.dot(rl);if(o<=0&&l<=0)return t.copy(r);rh.subVectors(e,a);let h=ra.dot(rh),u=rs.dot(rh);if(h>=0&&u<=h)return t.copy(a);let c=o*u-h*l;if(c<=0&&o>=0&&h<=0)return i=o/(o-h),t.copy(r).addScaledVector(ra,i);ru.subVectors(e,s);let d=ra.dot(ru),p=rs.dot(ru);if(p>=0&&d<=p)return t.copy(s);let f=d*l-o*p;if(f<=0&&l>=0&&p<=0)return n=l/(l-p),t.copy(r).addScaledVector(rs,n);let m=h*p-d*u;if(m<=0&&u-h>=0&&d-p>=0)return ro.subVectors(s,a),n=(u-h)/(u-h+(d-p)),t.copy(a).addScaledVector(ro,n);let g=1/(m+f+c);return i=f*g,n=c*g,t.copy(r).addScaledVector(ra,i).addScaledVector(rs,n)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}let rd={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},rp={h:0,s:0,l:0},rf={h:0,s:0,l:0};function rm(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*6*(2/3-i):e}class rg{constructor(e,t,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,i)}set(e,t,i){return void 0===t&&void 0===i?e&&e.isColor?this.copy(e):"number"==typeof e?this.setHex(e):"string"==typeof e&&this.setStyle(e):this.setRGB(e,t,i),this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=tX){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,i0.toWorkingColorSpace(this,t),this}setRGB(e,t,i,n=i0.workingColorSpace){return this.r=e,this.g=t,this.b=i,i0.toWorkingColorSpace(this,n),this}setHSL(e,t,i,n=i0.workingColorSpace){if(e=iD(e,1),t=iN(t,0,1),i=iN(i,0,1),0===t)this.r=this.g=this.b=i;else{let n=i<=.5?i*(1+t):i+t-i*t,r=2*i-n;this.r=rm(r,n,e+1/3),this.g=rm(r,n,e),this.b=rm(r,n,e-1/3)}return i0.toWorkingColorSpace(this,n),this}setStyle(e,t=tX){let i;function n(t){void 0!==t&&1>parseFloat(t)&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;let a=i[1],s=i[2];switch(a){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return n(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return n(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,t);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return n(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=i[1],r=n.length;if(3===r)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(6===r)return this.setHex(parseInt(n,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=tX){let i=rd[e.toLowerCase()];return void 0!==i?this.setHex(i,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=i1(e.r),this.g=i1(e.g),this.b=i1(e.b),this}copyLinearToSRGB(e){return this.r=i2(e.r),this.g=i2(e.g),this.b=i2(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=tX){return i0.fromWorkingColorSpace(rv.copy(this),e),65536*Math.round(iN(255*rv.r,0,255))+256*Math.round(iN(255*rv.g,0,255))+Math.round(iN(255*rv.b,0,255))}getHexString(e=tX){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=i0.workingColorSpace){let i,n;i0.fromWorkingColorSpace(rv.copy(this),t);let r=rv.r,a=rv.g,s=rv.b,o=Math.max(r,a,s),l=Math.min(r,a,s),h=(l+o)/2;if(l===o)i=0,n=0;else{let e=o-l;switch(n=h<=.5?e/(o+l):e/(2-o-l),o){case r:i=(a-s)/e+(a0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(let t in e){let i=e[t];if(void 0===i){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}let n=this[t];if(void 0===n){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}n&&n.isColor?n.set(i):n&&n.isVector3&&i&&i.isVector3?n.copy(i):this[t]=i}}toJSON(e){let t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});let i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function n(e){let t=[];for(let i in e){let n=e[i];delete n.metadata,t.push(n)}return t}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),void 0!==this.sheen&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearcoat&&(i.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.dispersion&&(i.dispersion=this.dispersion),void 0!==this.iridescence&&(i.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(i.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),void 0!==this.anisotropy&&(i.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(i.combine=this.combine)),void 0!==this.envMapRotation&&(i.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(i.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(i.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(i.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(i.size=this.size),null!==this.shadowSide&&(i.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==b&&(i.blending=this.blending),this.side!==y&&(i.side=this.side),!0===this.vertexColors&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=!0),this.blendSrc!==F&&(i.blendSrc=this.blendSrc),this.blendDst!==B&&(i.blendDst=this.blendDst),this.blendEquation!==R&&(i.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(i.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(i.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==K&&(i.depthFunc=this.depthFunc),!1===this.depthTest&&(i.depthTest=this.depthTest),!1===this.depthWrite&&(i.depthWrite=this.depthWrite),!1===this.colorWrite&&(i.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==ia&&(i.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(i.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==t0&&(i.stencilFail=this.stencilFail),this.stencilZFail!==t0&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==t0&&(i.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(i.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(i.rotation=this.rotation),!0===this.polygonOffset&&(i.polygonOffset=!0),0!==this.polygonOffsetFactor&&(i.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(i.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(i.linewidth=this.linewidth),void 0!==this.dashSize&&(i.dashSize=this.dashSize),void 0!==this.gapSize&&(i.gapSize=this.gapSize),void 0!==this.scale&&(i.scale=this.scale),!0===this.dithering&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.alphaHash&&(i.alphaHash=!0),!0===this.alphaToCoverage&&(i.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=!0),!0===this.forceSinglePass&&(i.forceSinglePass=!0),!0===this.wireframe&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(i.flatShading=!0),!1===this.visible&&(i.visible=!1),!1===this.toneMapped&&(i.toneMapped=!1),!1===this.fog&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData),t){let t=n(e.textures),r=n(e.images);t.length>0&&(i.textures=t),r.length>0&&(i.images=r)}return i}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,i=null;if(null!==t){let e=t.length;i=Array(e);for(let n=0;n!==e;++n)i[n]=t[n].clone()}return this.clippingPlanes=i,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}}class rx extends ry{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new rg(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new nq,this.combine=ei,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}let rM=function(){let e=new ArrayBuffer(4),t=new Float32Array(e),i=new Uint32Array(e),n=new Uint32Array(512),r=new Uint32Array(512);for(let e=0;e<256;++e){let t=e-127;t<-27?(n[e]=0,n[256|e]=32768,r[e]=24,r[256|e]=24):t<-14?(n[e]=1024>>-t-14,n[256|e]=1024>>-t-14|32768,r[e]=-t-1,r[256|e]=-t-1):t<=15?(n[e]=t+15<<10,n[256|e]=t+15<<10|32768,r[e]=13,r[256|e]=13):t<128?(n[e]=31744,n[256|e]=64512,r[e]=24,r[256|e]=24):(n[e]=31744,n[256|e]=64512,r[e]=13,r[256|e]=13)}let a=new Uint32Array(2048),s=new Uint32Array(64),o=new Uint32Array(64);for(let e=1;e<1024;++e){let t=e<<13,i=0;for(;(8388608&t)==0;)t<<=1,i-=8388608;t&=-8388609,i+=947912704,a[e]=t|i}for(let e=1024;e<2048;++e)a[e]=939524096+(e-1024<<13);for(let e=1;e<31;++e)s[e]=e<<23;s[31]=1199570944,s[32]=2147483648;for(let e=33;e<63;++e)s[e]=2147483648+(e-32<<23);s[63]=3347054592;for(let e=1;e<64;++e)32!==e&&(o[e]=1024);return{floatView:t,uint32View:i,baseTable:n,shiftTable:r,mantissaTable:a,exponentTable:s,offsetTable:o}}();function rS(e){Math.abs(e)>65504&&console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."),e=iN(e,-65504,65504),rM.floatView[0]=e;let t=rM.uint32View[0],i=t>>23&511;return rM.baseTable[i]+((8388607&t)>>rM.shiftTable[i])}function rb(e){let t=e>>10;return rM.uint32View[0]=rM.mantissaTable[rM.offsetTable[t]+(1023&e)]+rM.exponentTable[t],rM.floatView[0]}let rT={toHalfFloat:rS,fromHalfFloat:rb},rE=new no,rw=new ik;class rA{constructor(e,t,i=!1){if(Array.isArray(e))throw TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=i,this.usage=im,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=ek,this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}get updateRange(){return iZ("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,i){e*=this.itemSize,i*=t.itemSize;for(let n=0,r=this.itemSize;n0&&(e.userData=this.userData),void 0!==this.parameters){let t=this.parameters;for(let i in t)void 0!==t[i]&&(e[i]=t[i]);return e}e.data={attributes:{}};let t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let i=this.attributes;for(let t in i){let n=i[t];e.data.attributes[t]=n.toJSON(e.data)}let n={},r=!1;for(let t in this.morphAttributes){let i=this.morphAttributes[t],a=[];for(let t=0,n=i.length;t0&&(n[t]=a,r=!0)}r&&(e.data.morphAttributes=n,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let s=this.boundingSphere;return null!==s&&(e.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let i=e.index;null!==i&&this.setIndex(i.clone(t));let n=e.attributes;for(let e in n){let i=n[e];this.setAttribute(e,i.clone(t))}let r=e.morphAttributes;for(let e in r){let i=[],n=r[e];for(let e=0,r=n.length;e0){let i=e[t[0]];if(void 0!==i){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=i.length;e(e.far-e.near)**2)||(rX.copy(r).invert(),rj.copy(e.ray).applyMatrix4(rX),null!==i.boundingBox&&!1===rj.intersectsBox(i.boundingBox)))return;this._computeIntersections(e,t,rj)}}_computeIntersections(e,t,i){let n;let r=this.geometry,a=this.material,s=r.index,o=r.attributes.position,l=r.attributes.uv,h=r.attributes.uv1,u=r.attributes.normal,c=r.groups,d=r.drawRange;if(null!==s){if(Array.isArray(a))for(let r=0,o=c.length;ri.far?null:{distance:l,point:r8.clone(),object:e}}(e,t,i,n,rZ,rJ,rK,r6);if(u){r&&(r0.fromBufferAttribute(r,o),r1.fromBufferAttribute(r,l),r2.fromBufferAttribute(r,h),u.uv=rc.getInterpolation(r6,rZ,rJ,rK,r0,r1,r2,new ik)),a&&(r0.fromBufferAttribute(a,o),r1.fromBufferAttribute(a,l),r2.fromBufferAttribute(a,h),u.uv1=rc.getInterpolation(r6,rZ,rJ,rK,r0,r1,r2,new ik)),s&&(r3.fromBufferAttribute(s,o),r4.fromBufferAttribute(s,l),r5.fromBufferAttribute(s,h),u.normal=rc.getInterpolation(r6,rZ,rJ,rK,r3,r4,r5,new no),u.normal.dot(n.direction)>0&&u.normal.multiplyScalar(-1));let e={a:o,b:l,c:h,normal:new no,materialIndex:0};rc.getNormal(rZ,rJ,rK,e.normal),u.face=e}return u}class ae extends rW{constructor(e=1,t=1,i=1,n=1,r=1,a=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:i,widthSegments:n,heightSegments:r,depthSegments:a};let s=this;n=Math.floor(n),r=Math.floor(r);let o=[],l=[],h=[],u=[],c=0,d=0;function p(e,t,i,n,r,a,p,f,m,g,v){let _=a/m,y=p/g,x=a/2,M=p/2,S=f/2,b=m+1,T=g+1,E=0,w=0,A=new no;for(let a=0;a0?1:-1,h.push(A.x,A.y,A.z),u.push(o/m),u.push(1-a/g),E+=1}}for(let e=0;e0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let i={};for(let e in this.extensions)!0===this.extensions[e]&&(i[e]=!0);return Object.keys(i).length>0&&(t.extensions=i),t}}class as extends re{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new nF,this.projectionMatrix=new nF,this.projectionMatrixInverse=new nF,this.coordinateSystem=iw}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}let ao=new no,al=new ik,ah=new ik;class au extends as{constructor(e=50,t=1,i=.1,n=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=i,this.far=n,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){let t=.5*this.getFilmHeight()/e;this.fov=2*iI*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){let e=Math.tan(.5*iL*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*iI*Math.atan(Math.tan(.5*iL*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,i){ao.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(ao.x,ao.y).multiplyScalar(-e/ao.z),ao.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),i.set(ao.x,ao.y).multiplyScalar(-e/ao.z)}getViewSize(e,t){return this.getViewBounds(e,al,ah),t.subVectors(ah,al)}setViewOffset(e,t,i,n,r,a){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=i,this.view.offsetY=n,this.view.width=r,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){let e=this.near,t=e*Math.tan(.5*iL*this.fov)/this.zoom,i=2*t,n=this.aspect*i,r=-.5*n,a=this.view;if(null!==this.view&&this.view.enabled){let e=a.fullWidth,s=a.fullHeight;r+=a.offsetX*n/e,t-=a.offsetY*i/s,n*=a.width/e,i*=a.height/s}let s=this.filmOffset;0!==s&&(r+=e*s/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+n,t,t-i,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){let t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}class ac extends re{constructor(e,t,i){super(),this.type="CubeCamera",this.renderTarget=i,this.coordinateSystem=null,this.activeMipmapLevel=0;let n=new au(-90,1,e,t);n.layers=this.layers,this.add(n);let r=new au(-90,1,e,t);r.layers=this.layers,this.add(r);let a=new au(-90,1,e,t);a.layers=this.layers,this.add(a);let s=new au(-90,1,e,t);s.layers=this.layers,this.add(s);let o=new au(-90,1,e,t);o.layers=this.layers,this.add(o);let l=new au(-90,1,e,t);l.layers=this.layers,this.add(l)}updateCoordinateSystem(){let e=this.coordinateSystem,t=this.children.concat(),[i,n,r,a,s,o]=t;for(let e of t)this.remove(e);if(e===iw)i.up.set(0,1,0),i.lookAt(1,0,0),n.up.set(0,1,0),n.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),s.up.set(0,1,0),s.lookAt(0,0,1),o.up.set(0,1,0),o.lookAt(0,0,-1);else if(e===iA)i.up.set(0,-1,0),i.lookAt(-1,0,0),n.up.set(0,-1,0),n.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),s.up.set(0,-1,0),s.lookAt(0,0,1),o.up.set(0,-1,0),o.lookAt(0,0,-1);else throw Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(let e of t)this.add(e),e.updateMatrixWorld()}update(e,t){null===this.parent&&this.updateMatrixWorld();let{renderTarget:i,activeMipmapLevel:n}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());let[r,a,s,o,l,h]=this.children,u=e.getRenderTarget(),c=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;let f=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,e.setRenderTarget(i,0,n),e.render(t,r),e.setRenderTarget(i,1,n),e.render(t,a),e.setRenderTarget(i,2,n),e.render(t,s),e.setRenderTarget(i,3,n),e.render(t,o),e.setRenderTarget(i,4,n),e.render(t,l),i.texture.generateMipmaps=f,e.setRenderTarget(i,5,n),e.render(t,h),e.setRenderTarget(u,c,d),e.xr.enabled=p,i.texture.needsPMREMUpdate=!0}}class ad extends i9{constructor(e,t,i,n,r,a,s,o,l,h){super(e=void 0!==e?e:[],t=void 0!==t?t:eg,i,n,r,a,s,o,l,h),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class ap extends nt{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let i={width:e,height:e,depth:1};this.texture=new ad([i,i,i,i,i,i],t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==t.generateMipmaps&&t.generateMipmaps,this.texture.minFilter=void 0!==t.minFilter?t.minFilter:eC}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let i={uniforms:{tEquirect:{value:null}},vertexShader:` - - varying vec3 vWorldDirection; - - vec3 transformDirection( in vec3 dir, in mat4 matrix ) { - - return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); - - } - - void main() { - - vWorldDirection = transformDirection( position, modelMatrix ); - - #include - #include - - } - `,fragmentShader:` - - uniform sampler2D tEquirect; - - varying vec3 vWorldDirection; - - #include - - void main() { - - vec3 direction = normalize( vWorldDirection ); - - vec2 sampleUV = equirectUv( direction ); - - gl_FragColor = texture2D( tEquirect, sampleUV ); - - } - `},n=new ae(5,5,5),r=new aa({name:"CubemapFromEquirect",uniforms:at(i.uniforms),vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,side:x,blending:S});r.uniforms.tEquirect.value=t;let a=new r9(n,r),s=t.minFilter;return t.minFilter===eI&&(t.minFilter=eC),new ac(1,10,this).update(e,a),t.minFilter=s,a.geometry.dispose(),a.material.dispose(),this}clear(e,t,i,n){let r=e.getRenderTarget();for(let r=0;r<6;r++)e.setRenderTarget(this,r),e.clear(t,i,n);e.setRenderTarget(r)}}let af=new no,am=new no,ag=new iV;class av{constructor(e=new no(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,i,n){return this.normal.set(e,t,i),this.constant=n,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,i){let n=af.subVectors(i,t).cross(am.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(n,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){let e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){let i=e.delta(af),n=this.normal.dot(i);if(0===n)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;let r=-(e.start.dot(this.normal)+this.constant)/n;return r<0||r>1?null:t.copy(e.start).addScaledVector(i,r)}intersectsLine(e){let t=this.distanceToPoint(e.start),i=this.distanceToPoint(e.end);return t<0&&i>0||i<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let i=t||ag.getNormalMatrix(e),n=this.coplanarPoint(af).applyMatrix4(e),r=this.normal.applyMatrix3(i).normalize();return this.constant=-n.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}let a_=new nR,ay=new no;class ax{constructor(e=new av,t=new av,i=new av,n=new av,r=new av,a=new av){this.planes=[e,t,i,n,r,a]}set(e,t,i,n,r,a){let s=this.planes;return s[0].copy(e),s[1].copy(t),s[2].copy(i),s[3].copy(n),s[4].copy(r),s[5].copy(a),this}copy(e){let t=this.planes;for(let i=0;i<6;i++)t[i].copy(e.planes[i]);return this}setFromProjectionMatrix(e,t=iw){let i=this.planes,n=e.elements,r=n[0],a=n[1],s=n[2],o=n[3],l=n[4],h=n[5],u=n[6],c=n[7],d=n[8],p=n[9],f=n[10],m=n[11],g=n[12],v=n[13],_=n[14],y=n[15];if(i[0].setComponents(o-r,c-l,m-d,y-g).normalize(),i[1].setComponents(o+r,c+l,m+d,y+g).normalize(),i[2].setComponents(o+a,c+h,m+p,y+v).normalize(),i[3].setComponents(o-a,c-h,m-p,y-v).normalize(),i[4].setComponents(o-s,c-u,m-f,y-_).normalize(),t===iw)i[5].setComponents(o+s,c+u,m+f,y+_).normalize();else if(t===iA)i[5].setComponents(s,u,f,_).normalize();else throw Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(void 0!==e.boundingSphere)null===e.boundingSphere&&e.computeBoundingSphere(),a_.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{let t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),a_.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(a_)}intersectsSprite(e){return a_.center.set(0,0,0),a_.radius=.7071067811865476,a_.applyMatrix4(e.matrixWorld),this.intersectsSphere(a_)}intersectsSphere(e){let t=this.planes,i=e.center,n=-e.radius;for(let e=0;e<6;e++)if(t[e].distanceToPoint(i)0?e.max.x:e.min.x,ay.y=n.normal.y>0?e.max.y:e.min.y,ay.z=n.normal.z>0?e.max.z:e.min.z,0>n.distanceToPoint(ay))return!1}return!0}containsPoint(e){let t=this.planes;for(let i=0;i<6;i++)if(0>t[i].distanceToPoint(e))return!1;return!0}clone(){return new this.constructor().copy(this)}}function aM(){let e=null,t=!1,i=null,n=null;function r(t,a){i(t,a),n=e.requestAnimationFrame(r)}return{start:function(){!0!==t&&null!==i&&(n=e.requestAnimationFrame(r),t=!0)},stop:function(){e.cancelAnimationFrame(n),t=!1},setAnimationLoop:function(e){i=e},setContext:function(t){e=t}}}function aS(e){let t=new WeakMap;return{get:function(e){return e.isInterleavedBufferAttribute&&(e=e.data),t.get(e)},remove:function(i){i.isInterleavedBufferAttribute&&(i=i.data);let n=t.get(i);n&&(e.deleteBuffer(n.buffer),t.delete(i))},update:function(i,n){if(i.isGLBufferAttribute){let e=t.get(i);(!e||e.version 0\n vec4 plane;\n #ifdef ALPHA_TO_COVERAGE\n float distanceToPlane, distanceGradient;\n float clipOpacity = 1.0;\n #pragma unroll_loop_start\n for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n distanceGradient = fwidth( distanceToPlane ) / 2.0;\n clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n if ( clipOpacity == 0.0 ) discard;\n }\n #pragma unroll_loop_end\n #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n float unionClipOpacity = 1.0;\n #pragma unroll_loop_start\n for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n distanceGradient = fwidth( distanceToPlane ) / 2.0;\n unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n }\n #pragma unroll_loop_end\n clipOpacity *= 1.0 - unionClipOpacity;\n #endif\n diffuseColor.a *= clipOpacity;\n if ( diffuseColor.a == 0.0 ) discard;\n #else\n #pragma unroll_loop_start\n for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n }\n #pragma unroll_loop_end\n #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n bool clipped = true;\n #pragma unroll_loop_start\n for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n }\n #pragma unroll_loop_end\n if ( clipped ) discard;\n #endif\n #endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n varying vec3 vClipPosition;\n uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n varying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n vClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n diffuseColor *= vColor;\n#elif defined( USE_COLOR )\n diffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n varying vec4 vColor;\n#elif defined( USE_COLOR )\n varying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n varying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n varying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n vColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n vColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n vColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n vColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n return fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n float precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n float precisionSafeLength( vec3 v ) {\n float maxComponent = max3( abs( v ) );\n return length( v / maxComponent ) * maxComponent;\n }\n#endif\nstruct IncidentLight {\n vec3 color;\n vec3 direction;\n bool visible;\n};\nstruct ReflectedLight {\n vec3 directDiffuse;\n vec3 directSpecular;\n vec3 indirectDiffuse;\n vec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n varying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n mat3 tmp;\n tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n return tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n const vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n return dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n return m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n return vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n return RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n #define cubeUV_minMipLevel 4.0\n #define cubeUV_minTileSize 16.0\n float getFace( vec3 direction ) {\n vec3 absDirection = abs( direction );\n float face = - 1.0;\n if ( absDirection.x > absDirection.z ) {\n if ( absDirection.x > absDirection.y )\n face = direction.x > 0.0 ? 0.0 : 3.0;\n else\n face = direction.y > 0.0 ? 1.0 : 4.0;\n } else {\n if ( absDirection.z > absDirection.y )\n face = direction.z > 0.0 ? 2.0 : 5.0;\n else\n face = direction.y > 0.0 ? 1.0 : 4.0;\n }\n return face;\n }\n vec2 getUV( vec3 direction, float face ) {\n vec2 uv;\n if ( face == 0.0 ) {\n uv = vec2( direction.z, direction.y ) / abs( direction.x );\n } else if ( face == 1.0 ) {\n uv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n } else if ( face == 2.0 ) {\n uv = vec2( - direction.x, direction.y ) / abs( direction.z );\n } else if ( face == 3.0 ) {\n uv = vec2( - direction.z, direction.y ) / abs( direction.x );\n } else if ( face == 4.0 ) {\n uv = vec2( - direction.x, direction.z ) / abs( direction.y );\n } else {\n uv = vec2( direction.x, direction.y ) / abs( direction.z );\n }\n return 0.5 * ( uv + 1.0 );\n }\n vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n float face = getFace( direction );\n float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n mipInt = max( mipInt, cubeUV_minMipLevel );\n float faceSize = exp2( mipInt );\n highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n if ( face > 2.0 ) {\n uv.y += faceSize;\n face -= 3.0;\n }\n uv.x += face * faceSize;\n uv.x += filterInt * 3.0 * cubeUV_minTileSize;\n uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n uv.x *= CUBEUV_TEXEL_WIDTH;\n uv.y *= CUBEUV_TEXEL_HEIGHT;\n #ifdef texture2DGradEXT\n return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n #else\n return texture2D( envMap, uv ).rgb;\n #endif\n }\n #define cubeUV_r0 1.0\n #define cubeUV_m0 - 2.0\n #define cubeUV_r1 0.8\n #define cubeUV_m1 - 1.0\n #define cubeUV_r4 0.4\n #define cubeUV_m4 2.0\n #define cubeUV_r5 0.305\n #define cubeUV_m5 3.0\n #define cubeUV_r6 0.21\n #define cubeUV_m6 4.0\n float roughnessToMip( float roughness ) {\n float mip = 0.0;\n if ( roughness >= cubeUV_r1 ) {\n mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n } else if ( roughness >= cubeUV_r4 ) {\n mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n } else if ( roughness >= cubeUV_r5 ) {\n mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n } else if ( roughness >= cubeUV_r6 ) {\n mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n } else {\n mip = - 2.0 * log2( 1.16 * roughness ); }\n return mip;\n }\n vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n float mipF = fract( mip );\n float mipInt = floor( mip );\n vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n if ( mipF == 0.0 ) {\n return vec4( color0, 1.0 );\n } else {\n vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n return vec4( mix( color0, color1, mipF ), 1.0 );\n }\n }\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n vec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n mat3 bm = mat3( batchingMatrix );\n transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n transformedNormal = bm * transformedNormal;\n #ifdef USE_TANGENT\n transformedTangent = bm * transformedTangent;\n #endif\n#endif\n#ifdef USE_INSTANCING\n mat3 im = mat3( instanceMatrix );\n transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n transformedNormal = im * transformedNormal;\n #ifdef USE_TANGENT\n transformedTangent = im * transformedTangent;\n #endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n transformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n #ifdef FLIP_SIDED\n transformedTangent = - transformedTangent;\n #endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n uniform sampler2D displacementMap;\n uniform float displacementScale;\n uniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n totalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n uniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"\nconst mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(\n vec3( 0.8224621, 0.177538, 0.0 ),\n vec3( 0.0331941, 0.9668058, 0.0 ),\n vec3( 0.0170827, 0.0723974, 0.9105199 )\n);\nconst mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(\n vec3( 1.2249401, - 0.2249404, 0.0 ),\n vec3( - 0.0420569, 1.0420571, 0.0 ),\n vec3( - 0.0196376, - 0.0786361, 1.0982735 )\n);\nvec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {\n return vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );\n}\nvec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {\n return vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n return value;\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 LinearToLinear( in vec4 value ) {\n return value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n return sRGBTransferOETF( value );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n #ifdef ENV_WORLDPOS\n vec3 cameraToFrag;\n if ( isOrthographic ) {\n cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n } else {\n cameraToFrag = normalize( vWorldPosition - cameraPosition );\n }\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n #ifdef ENVMAP_MODE_REFLECTION\n vec3 reflectVec = reflect( cameraToFrag, worldNormal );\n #else\n vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n #endif\n #else\n vec3 reflectVec = vReflect;\n #endif\n #ifdef ENVMAP_TYPE_CUBE\n vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n #else\n vec4 envColor = vec4( 0.0 );\n #endif\n #ifdef ENVMAP_BLENDING_MULTIPLY\n outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n #elif defined( ENVMAP_BLENDING_MIX )\n outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n #elif defined( ENVMAP_BLENDING_ADD )\n outgoingLight += envColor.xyz * specularStrength * reflectivity;\n #endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n uniform float envMapIntensity;\n uniform float flipEnvMap;\n uniform mat3 envMapRotation;\n #ifdef ENVMAP_TYPE_CUBE\n uniform samplerCube envMap;\n #else\n uniform sampler2D envMap;\n #endif\n \n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n uniform float reflectivity;\n #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n #define ENV_WORLDPOS\n #endif\n #ifdef ENV_WORLDPOS\n varying vec3 vWorldPosition;\n uniform float refractionRatio;\n #else\n varying vec3 vReflect;\n #endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n #define ENV_WORLDPOS\n #endif\n #ifdef ENV_WORLDPOS\n \n varying vec3 vWorldPosition;\n #else\n varying vec3 vReflect;\n uniform float refractionRatio;\n #endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n vec3 getIBLIrradiance( const in vec3 normal ) {\n #ifdef ENVMAP_TYPE_CUBE_UV\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n return PI * envMapColor.rgb * envMapIntensity;\n #else\n return vec3( 0.0 );\n #endif\n }\n vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n #ifdef ENVMAP_TYPE_CUBE_UV\n vec3 reflectVec = reflect( - viewDir, normal );\n reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n reflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n return envMapColor.rgb * envMapIntensity;\n #else\n return vec3( 0.0 );\n #endif\n }\n #ifdef USE_ANISOTROPY\n vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n #ifdef ENVMAP_TYPE_CUBE_UV\n vec3 bentNormal = cross( bitangent, viewDir );\n bentNormal = normalize( cross( bentNormal, bitangent ) );\n bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n return getIBLRadiance( viewDir, bentNormal, roughness );\n #else\n return vec3( 0.0 );\n #endif\n }\n #endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n #ifdef ENV_WORLDPOS\n vWorldPosition = worldPosition.xyz;\n #else\n vec3 cameraToVertex;\n if ( isOrthographic ) {\n cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n } else {\n cameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n }\n vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n #ifdef ENVMAP_MODE_REFLECTION\n vReflect = reflect( cameraToVertex, worldNormal );\n #else\n vReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n #endif\n #endif\n#endif",fog_vertex:"#ifdef USE_FOG\n vFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n varying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n #ifdef FOG_EXP2\n float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n #else\n float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n #endif\n gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n uniform vec3 fogColor;\n varying float vFogDepth;\n #ifdef FOG_EXP2\n uniform float fogDensity;\n #else\n uniform float fogNear;\n uniform float fogFar;\n #endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n uniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n float dotNL = dot( normal, lightDirection );\n vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n #ifdef USE_GRADIENTMAP\n return vec3( texture2D( gradientMap, coord ).r );\n #else\n vec2 fw = fwidth( coord ) * 0.5;\n return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n #endif\n}",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n uniform sampler2D lightMap;\n uniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n vec3 diffuseColor;\n float specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct RE_Direct_Lambert\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n uniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n float x = normal.x, y = normal.y, z = normal.z;\n vec3 result = shCoefficients[ 0 ] * 0.886227;\n result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n return result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n return irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n vec3 irradiance = ambientLightColor;\n return irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n #if defined ( LEGACY_LIGHTS )\n if ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n return pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n }\n return 1.0;\n #else\n float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n if ( cutoffDistance > 0.0 ) {\n distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n }\n return distanceFalloff;\n #endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n return smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n struct DirectionalLight {\n vec3 direction;\n vec3 color;\n };\n uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n light.color = directionalLight.color;\n light.direction = directionalLight.direction;\n light.visible = true;\n }\n#endif\n#if NUM_POINT_LIGHTS > 0\n struct PointLight {\n vec3 position;\n vec3 color;\n float distance;\n float decay;\n };\n uniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n vec3 lVector = pointLight.position - geometryPosition;\n light.direction = normalize( lVector );\n float lightDistance = length( lVector );\n light.color = pointLight.color;\n light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n light.visible = ( light.color != vec3( 0.0 ) );\n }\n#endif\n#if NUM_SPOT_LIGHTS > 0\n struct SpotLight {\n vec3 position;\n vec3 direction;\n vec3 color;\n float distance;\n float decay;\n float coneCos;\n float penumbraCos;\n };\n uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n vec3 lVector = spotLight.position - geometryPosition;\n light.direction = normalize( lVector );\n float angleCos = dot( light.direction, spotLight.direction );\n float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n if ( spotAttenuation > 0.0 ) {\n float lightDistance = length( lVector );\n light.color = spotLight.color * spotAttenuation;\n light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n light.visible = ( light.color != vec3( 0.0 ) );\n } else {\n light.color = vec3( 0.0 );\n light.visible = false;\n }\n }\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n struct RectAreaLight {\n vec3 color;\n vec3 position;\n vec3 halfWidth;\n vec3 halfHeight;\n };\n uniform sampler2D ltc_1; uniform sampler2D ltc_2;\n uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n struct HemisphereLight {\n vec3 direction;\n vec3 skyColor;\n vec3 groundColor;\n };\n uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n float dotNL = dot( normal, hemiLight.direction );\n float hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n return irradiance;\n }\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n vec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct RE_Direct_Toon\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n vec3 diffuseColor;\n vec3 specularColor;\n float specularShininess;\n float specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct RE_Direct_BlinnPhong\n#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n material.ior = ior;\n #ifdef USE_SPECULAR\n float specularIntensityFactor = specularIntensity;\n vec3 specularColorFactor = specularColor;\n #ifdef USE_SPECULAR_COLORMAP\n specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n #endif\n #ifdef USE_SPECULAR_INTENSITYMAP\n specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n #endif\n material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n #else\n float specularIntensityFactor = 1.0;\n vec3 specularColorFactor = vec3( 1.0 );\n material.specularF90 = 1.0;\n #endif\n material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n material.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n material.clearcoat = clearcoat;\n material.clearcoatRoughness = clearcoatRoughness;\n material.clearcoatF0 = vec3( 0.04 );\n material.clearcoatF90 = 1.0;\n #ifdef USE_CLEARCOATMAP\n material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n #endif\n #ifdef USE_CLEARCOAT_ROUGHNESSMAP\n material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n #endif\n material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n material.clearcoatRoughness += geometryRoughness;\n material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_DISPERSION\n material.dispersion = dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n material.iridescence = iridescence;\n material.iridescenceIOR = iridescenceIOR;\n #ifdef USE_IRIDESCENCEMAP\n material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n #endif\n #ifdef USE_IRIDESCENCE_THICKNESSMAP\n material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n #else\n material.iridescenceThickness = iridescenceThicknessMaximum;\n #endif\n#endif\n#ifdef USE_SHEEN\n material.sheenColor = sheenColor;\n #ifdef USE_SHEEN_COLORMAP\n material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n #endif\n material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n #ifdef USE_SHEEN_ROUGHNESSMAP\n material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n #endif\n#endif\n#ifdef USE_ANISOTROPY\n #ifdef USE_ANISOTROPYMAP\n mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n #else\n vec2 anisotropyV = anisotropyVector;\n #endif\n material.anisotropy = length( anisotropyV );\n if( material.anisotropy == 0.0 ) {\n anisotropyV = vec2( 1.0, 0.0 );\n } else {\n anisotropyV /= material.anisotropy;\n material.anisotropy = saturate( material.anisotropy );\n }\n material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n vec3 diffuseColor;\n float roughness;\n vec3 specularColor;\n float specularF90;\n float dispersion;\n #ifdef USE_CLEARCOAT\n float clearcoat;\n float clearcoatRoughness;\n vec3 clearcoatF0;\n float clearcoatF90;\n #endif\n #ifdef USE_IRIDESCENCE\n float iridescence;\n float iridescenceIOR;\n float iridescenceThickness;\n vec3 iridescenceFresnel;\n vec3 iridescenceF0;\n #endif\n #ifdef USE_SHEEN\n vec3 sheenColor;\n float sheenRoughness;\n #endif\n #ifdef IOR\n float ior;\n #endif\n #ifdef USE_TRANSMISSION\n float transmission;\n float transmissionAlpha;\n float thickness;\n float attenuationDistance;\n vec3 attenuationColor;\n #endif\n #ifdef USE_ANISOTROPY\n float anisotropy;\n float alphaT;\n vec3 anisotropyT;\n vec3 anisotropyB;\n #endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n float a2 = pow2( alpha );\n float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n return 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n float a2 = pow2( alpha );\n float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n return RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n float v = 0.5 / ( gv + gl );\n return saturate(v);\n }\n float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n float a2 = alphaT * alphaB;\n highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n highp float v2 = dot( v, v );\n float w2 = a2 / v2;\n return RECIPROCAL_PI * a2 * pow2 ( w2 );\n }\n#endif\n#ifdef USE_CLEARCOAT\n vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n vec3 f0 = material.clearcoatF0;\n float f90 = material.clearcoatF90;\n float roughness = material.clearcoatRoughness;\n float alpha = pow2( roughness );\n vec3 halfDir = normalize( lightDir + viewDir );\n float dotNL = saturate( dot( normal, lightDir ) );\n float dotNV = saturate( dot( normal, viewDir ) );\n float dotNH = saturate( dot( normal, halfDir ) );\n float dotVH = saturate( dot( viewDir, halfDir ) );\n vec3 F = F_Schlick( f0, f90, dotVH );\n float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n float D = D_GGX( alpha, dotNH );\n return F * ( V * D );\n }\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n vec3 f0 = material.specularColor;\n float f90 = material.specularF90;\n float roughness = material.roughness;\n float alpha = pow2( roughness );\n vec3 halfDir = normalize( lightDir + viewDir );\n float dotNL = saturate( dot( normal, lightDir ) );\n float dotNV = saturate( dot( normal, viewDir ) );\n float dotNH = saturate( dot( normal, halfDir ) );\n float dotVH = saturate( dot( viewDir, halfDir ) );\n vec3 F = F_Schlick( f0, f90, dotVH );\n #ifdef USE_IRIDESCENCE\n F = mix( F, material.iridescenceFresnel, material.iridescence );\n #endif\n #ifdef USE_ANISOTROPY\n float dotTL = dot( material.anisotropyT, lightDir );\n float dotTV = dot( material.anisotropyT, viewDir );\n float dotTH = dot( material.anisotropyT, halfDir );\n float dotBL = dot( material.anisotropyB, lightDir );\n float dotBV = dot( material.anisotropyB, viewDir );\n float dotBH = dot( material.anisotropyB, halfDir );\n float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n #else\n float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n float D = D_GGX( alpha, dotNH );\n #endif\n return F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n const float LUT_SIZE = 64.0;\n const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n const float LUT_BIAS = 0.5 / LUT_SIZE;\n float dotNV = saturate( dot( N, V ) );\n vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n uv = uv * LUT_SCALE + LUT_BIAS;\n return uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n float l = length( f );\n return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n float x = dot( v1, v2 );\n float y = abs( x );\n float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n float b = 3.4175940 + ( 4.1616724 + y ) * y;\n float v = a / b;\n float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n return cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n vec3 lightNormal = cross( v1, v2 );\n if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n vec3 T1, T2;\n T1 = normalize( V - N * dot( V, N ) );\n T2 = - cross( N, T1 );\n mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n vec3 coords[ 4 ];\n coords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n coords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n coords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n coords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n coords[ 0 ] = normalize( coords[ 0 ] );\n coords[ 1 ] = normalize( coords[ 1 ] );\n coords[ 2 ] = normalize( coords[ 2 ] );\n coords[ 3 ] = normalize( coords[ 3 ] );\n vec3 vectorFormFactor = vec3( 0.0 );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n float result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n return vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n float alpha = pow2( roughness );\n float invAlpha = 1.0 / alpha;\n float cos2h = dotNH * dotNH;\n float sin2h = max( 1.0 - cos2h, 0.0078125 );\n return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n vec3 halfDir = normalize( lightDir + viewDir );\n float dotNL = saturate( dot( normal, lightDir ) );\n float dotNV = saturate( dot( normal, viewDir ) );\n float dotNH = saturate( dot( normal, halfDir ) );\n float D = D_Charlie( sheenRoughness, dotNH );\n float V = V_Neubelt( dotNV, dotNL );\n return sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n float dotNV = saturate( dot( normal, viewDir ) );\n float r2 = roughness * roughness;\n float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n return saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n float dotNV = saturate( dot( normal, viewDir ) );\n const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n vec4 r = roughness * c0 + c1;\n float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n return fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n vec2 fab = DFGApprox( normal, viewDir, roughness );\n return specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n vec2 fab = DFGApprox( normal, viewDir, roughness );\n #ifdef USE_IRIDESCENCE\n vec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n #else\n vec3 Fr = specularColor;\n #endif\n vec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n float Ess = fab.x + fab.y;\n float Ems = 1.0 - Ess;\n vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n singleScatter += FssEss;\n multiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n vec3 normal = geometryNormal;\n vec3 viewDir = geometryViewDir;\n vec3 position = geometryPosition;\n vec3 lightPos = rectAreaLight.position;\n vec3 halfWidth = rectAreaLight.halfWidth;\n vec3 halfHeight = rectAreaLight.halfHeight;\n vec3 lightColor = rectAreaLight.color;\n float roughness = material.roughness;\n vec3 rectCoords[ 4 ];\n rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n vec2 uv = LTC_Uv( normal, viewDir, roughness );\n vec4 t1 = texture2D( ltc_1, uv );\n vec4 t2 = texture2D( ltc_2, uv );\n mat3 mInv = mat3(\n vec3( t1.x, 0, t1.y ),\n vec3( 0, 1, 0 ),\n vec3( t1.z, 0, t1.w )\n );\n vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n }\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n #ifdef USE_CLEARCOAT\n float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n vec3 ccIrradiance = dotNLcc * directLight.color;\n clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n #endif\n #ifdef USE_SHEEN\n sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n #endif\n reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n #ifdef USE_CLEARCOAT\n clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n #endif\n #ifdef USE_SHEEN\n sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n #endif\n vec3 singleScattering = vec3( 0.0 );\n vec3 multiScattering = vec3( 0.0 );\n vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n #ifdef USE_IRIDESCENCE\n computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n #else\n computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n #endif\n vec3 totalScattering = singleScattering + multiScattering;\n vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n reflectedLight.indirectSpecular += radiance * singleScattering;\n reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct RE_Direct_Physical\n#define RE_Direct_RectArea RE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular RE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n geometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n float dotNVi = saturate( dot( normal, geometryViewDir ) );\n if ( material.iridescenceThickness == 0.0 ) {\n material.iridescence = 0.0;\n } else {\n material.iridescence = saturate( material.iridescence );\n }\n if ( material.iridescence > 0.0 ) {\n material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n }\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n PointLight pointLight;\n #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n PointLightShadow pointLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n pointLight = pointLights[ i ];\n getPointLightInfo( pointLight, geometryPosition, directLight );\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n pointLightShadow = pointLightShadows[ i ];\n directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n #endif\n RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n SpotLight spotLight;\n vec4 spotColor;\n vec3 spotLightCoord;\n bool inSpotLightMap;\n #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n SpotLightShadow spotLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n spotLight = spotLights[ i ];\n getSpotLightInfo( spotLight, geometryPosition, directLight );\n #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n #else\n #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n #endif\n #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n #endif\n #undef SPOT_LIGHT_MAP_INDEX\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n spotLightShadow = spotLightShadows[ i ];\n directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n #endif\n RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n DirectionalLight directionalLight;\n #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n DirectionalLightShadow directionalLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n directionalLight = directionalLights[ i ];\n getDirectionalLightInfo( directionalLight, directLight );\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n directionalLightShadow = directionalLightShadows[ i ];\n directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n #endif\n RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n RectAreaLight rectAreaLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n rectAreaLight = rectAreaLights[ i ];\n RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n vec3 iblIrradiance = vec3( 0.0 );\n vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n #if defined( USE_LIGHT_PROBES )\n irradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n #endif\n #if ( NUM_HEMI_LIGHTS > 0 )\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n }\n #pragma unroll_loop_end\n #endif\n#endif\n#if defined( RE_IndirectSpecular )\n vec3 radiance = vec3( 0.0 );\n vec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n #ifdef USE_LIGHTMAP\n vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n irradiance += lightMapIrradiance;\n #endif\n #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n iblIrradiance += getIBLIrradiance( geometryNormal );\n #endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n #ifdef USE_ANISOTROPY\n radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n #else\n radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n #endif\n #ifdef USE_CLEARCOAT\n clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n #endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF )\n gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF )\n uniform float logDepthBufFC;\n varying float vFragDepth;\n varying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n varying float vFragDepth;\n varying float vIsPerspective;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n vFragDepth = 1.0 + gl_Position.w;\n vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n#endif",map_fragment:"#ifdef USE_MAP\n vec4 sampledDiffuseColor = texture2D( map, vMapUv );\n #ifdef DECODE_VIDEO_TEXTURE\n sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n \n #endif\n diffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n uniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n #if defined( USE_POINTS_UV )\n vec2 uv = vUv;\n #else\n vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n #endif\n#endif\n#ifdef USE_MAP\n diffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n diffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n varying vec2 vUv;\n#else\n #if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n uniform mat3 uvTransform;\n #endif\n#endif\n#ifdef USE_MAP\n uniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n uniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n metalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n uniform sampler2D metalnessMap;\n#endif",morphinstance_vertex:"#ifdef USE_INSTANCING_MORPH\n float morphTargetInfluences[MORPHTARGETS_COUNT];\n float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n }\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n vColor *= morphTargetBaseInfluence;\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n #if defined( USE_COLOR_ALPHA )\n if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n #elif defined( USE_COLOR )\n if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n #endif\n }\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n objectNormal *= morphTargetBaseInfluence;\n #ifdef MORPHTARGETS_TEXTURE\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n }\n #else\n objectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n objectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n objectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n objectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n #endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n #ifndef USE_INSTANCING_MORPH\n uniform float morphTargetBaseInfluence;\n #endif\n #ifdef MORPHTARGETS_TEXTURE\n #ifndef USE_INSTANCING_MORPH\n uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n #endif\n uniform sampler2DArray morphTargetsTexture;\n uniform ivec2 morphTargetsTextureSize;\n vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n int y = texelIndex / morphTargetsTextureSize.x;\n int x = texelIndex - y * morphTargetsTextureSize.x;\n ivec3 morphUV = ivec3( x, y, morphTargetIndex );\n return texelFetch( morphTargetsTexture, morphUV, 0 );\n }\n #else\n #ifndef USE_MORPHNORMALS\n uniform float morphTargetInfluences[ 8 ];\n #else\n uniform float morphTargetInfluences[ 4 ];\n #endif\n #endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n transformed *= morphTargetBaseInfluence;\n #ifdef MORPHTARGETS_TEXTURE\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n }\n #else\n transformed += morphTarget0 * morphTargetInfluences[ 0 ];\n transformed += morphTarget1 * morphTargetInfluences[ 1 ];\n transformed += morphTarget2 * morphTargetInfluences[ 2 ];\n transformed += morphTarget3 * morphTargetInfluences[ 3 ];\n #ifndef USE_MORPHNORMALS\n transformed += morphTarget4 * morphTargetInfluences[ 4 ];\n transformed += morphTarget5 * morphTargetInfluences[ 5 ];\n transformed += morphTarget6 * morphTargetInfluences[ 6 ];\n transformed += morphTarget7 * morphTargetInfluences[ 7 ];\n #endif\n #endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n vec3 fdx = dFdx( vViewPosition );\n vec3 fdy = dFdy( vViewPosition );\n vec3 normal = normalize( cross( fdx, fdy ) );\n#else\n vec3 normal = normalize( vNormal );\n #ifdef DOUBLE_SIDED\n normal *= faceDirection;\n #endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n #ifdef USE_TANGENT\n mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n #else\n mat3 tbn = getTangentFrame( - vViewPosition, normal,\n #if defined( USE_NORMALMAP )\n vNormalMapUv\n #elif defined( USE_CLEARCOAT_NORMALMAP )\n vClearcoatNormalMapUv\n #else\n vUv\n #endif\n );\n #endif\n #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n tbn[0] *= faceDirection;\n tbn[1] *= faceDirection;\n #endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n #ifdef USE_TANGENT\n mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n #else\n mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n #endif\n #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n tbn2[0] *= faceDirection;\n tbn2[1] *= faceDirection;\n #endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n #ifdef FLIP_SIDED\n normal = - normal;\n #endif\n #ifdef DOUBLE_SIDED\n normal = normal * faceDirection;\n #endif\n normal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n mapN.xy *= normalScale;\n normal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n varying vec3 vNormal;\n #ifdef USE_TANGENT\n varying vec3 vTangent;\n varying vec3 vBitangent;\n #endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n varying vec3 vNormal;\n #ifdef USE_TANGENT\n varying vec3 vTangent;\n varying vec3 vBitangent;\n #endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n vNormal = normalize( transformedNormal );\n #ifdef USE_TANGENT\n vTangent = normalize( transformedTangent );\n vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n #endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n uniform sampler2D normalMap;\n uniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n uniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n vec3 q0 = dFdx( eye_pos.xyz );\n vec3 q1 = dFdy( eye_pos.xyz );\n vec2 st0 = dFdx( uv.st );\n vec2 st1 = dFdy( uv.st );\n vec3 N = surf_norm;\n vec3 q1perp = cross( q1, N );\n vec3 q0perp = cross( N, q0 );\n vec3 T = q1perp * st0.x + q0perp * st1.x;\n vec3 B = q1perp * st0.y + q0perp * st1.y;\n float det = max( dot( T, T ), dot( B, B ) );\n float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n return mat3( T * scale, B * scale, N );\n }\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n vec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n clearcoatMapN.xy *= clearcoatNormalScale;\n clearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n uniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n uniform sampler2D clearcoatNormalMap;\n uniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n uniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n uniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n uniform sampler2D iridescenceThicknessMap;\n#endif",opaque_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n return normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n return 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n vec4 r = vec4( fract( v * PackFactors ), v );\n r.yzw -= r.xyz * ShiftRight8; return r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n return dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n return packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n return unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n return ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n return depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n return ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n gl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n mvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n mvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n gl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n vec3 dithering( vec3 color ) {\n float grid_position = rand( gl_FragCoord.xy );\n vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n return color + dither_shift_RGB;\n }\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n roughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n uniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n struct DirectionalLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n struct SpotLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n struct PointLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n float shadowCameraNear;\n float shadowCameraFar;\n };\n uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n #endif\n float texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n }\n vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n return unpackRGBATo2Half( texture2D( shadow, uv ) );\n }\n float VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n float occlusion = 1.0;\n vec2 distribution = texture2DDistribution( shadow, uv );\n float hard_shadow = step( compare , distribution.x );\n if (hard_shadow != 1.0 ) {\n float distance = compare - distribution.x ;\n float variance = max( 0.00000, distribution.y * distribution.y );\n float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n }\n return occlusion;\n }\n float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n float shadow = 1.0;\n shadowCoord.xyz /= shadowCoord.w;\n shadowCoord.z += shadowBias;\n bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n bool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n if ( frustumTest ) {\n #if defined( SHADOWMAP_TYPE_PCF )\n vec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n float dx0 = - texelSize.x * shadowRadius;\n float dy0 = - texelSize.y * shadowRadius;\n float dx1 = + texelSize.x * shadowRadius;\n float dy1 = + texelSize.y * shadowRadius;\n float dx2 = dx0 / 2.0;\n float dy2 = dy0 / 2.0;\n float dx3 = dx1 / 2.0;\n float dy3 = dy1 / 2.0;\n shadow = (\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n ) * ( 1.0 / 17.0 );\n #elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n vec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n float dx = texelSize.x;\n float dy = texelSize.y;\n vec2 uv = shadowCoord.xy;\n vec2 f = fract( uv * shadowMapSize + 0.5 );\n uv -= f * texelSize;\n shadow = (\n texture2DCompare( shadowMap, uv, shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n f.x ) +\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n f.x ) +\n mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n f.y ) +\n mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n f.y ) +\n mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n f.x ),\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n f.x ),\n f.y )\n ) * ( 1.0 / 9.0 );\n #elif defined( SHADOWMAP_TYPE_VSM )\n shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n #else\n shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n #endif\n }\n return shadow;\n }\n vec2 cubeToUV( vec3 v, float texelSizeY ) {\n vec3 absV = abs( v );\n float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n absV *= scaleToCube;\n v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n vec2 planar = v.xy;\n float almostATexel = 1.5 * texelSizeY;\n float almostOne = 1.0 - almostATexel;\n if ( absV.z >= almostOne ) {\n if ( v.z > 0.0 )\n planar.x = 4.0 - v.x;\n } else if ( absV.x >= almostOne ) {\n float signX = sign( v.x );\n planar.x = v.z * signX + 2.0 * signX;\n } else if ( absV.y >= almostOne ) {\n float signY = sign( v.y );\n planar.x = v.x + 2.0 * signY + 2.0;\n planar.y = v.z * signY - 2.0;\n }\n return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n }\n float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n float shadow = 1.0;\n vec3 lightToPosition = shadowCoord.xyz;\n \n float lightToPositionLength = length( lightToPosition );\n if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {\n float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias;\n vec3 bd3D = normalize( lightToPosition );\n vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n shadow = (\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n ) * ( 1.0 / 9.0 );\n #else\n shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n #endif\n }\n return shadow;\n }\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n struct DirectionalLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n struct SpotLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n struct PointLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n float shadowCameraNear;\n float shadowCameraFar;\n };\n uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n #endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n vec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n #if NUM_DIR_LIGHT_SHADOWS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n #endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n shadowWorldPosition = worldPosition;\n #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n #endif\n vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n float shadow = 1.0;\n #ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n DirectionalLightShadow directionalLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n directionalLight = directionalLightShadows[ i ];\n shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n SpotLightShadow spotLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n spotLight = spotLightShadows[ i ];\n shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n PointLightShadow pointLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n pointLight = pointLightShadows[ i ];\n shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #endif\n return shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n mat4 boneMatX = getBoneMatrix( skinIndex.x );\n mat4 boneMatY = getBoneMatrix( skinIndex.y );\n mat4 boneMatZ = getBoneMatrix( skinIndex.z );\n mat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n uniform mat4 bindMatrix;\n uniform mat4 bindMatrixInverse;\n uniform highp sampler2D boneTexture;\n mat4 getBoneMatrix( const in float i ) {\n int size = textureSize( boneTexture, 0 ).x;\n int j = int( i ) * 4;\n int x = j % size;\n int y = j / size;\n vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n return mat4( v1, v2, v3, v4 );\n }\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n vec4 skinned = vec4( 0.0 );\n skinned += boneMatX * skinVertex * skinWeight.x;\n skinned += boneMatY * skinVertex * skinWeight.y;\n skinned += boneMatZ * skinVertex * skinWeight.z;\n skinned += boneMatW * skinVertex * skinWeight.w;\n transformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n mat4 skinMatrix = mat4( 0.0 );\n skinMatrix += skinWeight.x * boneMatX;\n skinMatrix += skinWeight.y * boneMatY;\n skinMatrix += skinWeight.z * boneMatZ;\n skinMatrix += skinWeight.w * boneMatW;\n skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n #ifdef USE_TANGENT\n objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n #endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n specularStrength = texelSpecular.r;\n#else\n specularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n uniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n return saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n color *= toneMappingExposure;\n return saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n color *= toneMappingExposure;\n color = max( vec3( 0.0 ), color - 0.004 );\n return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n vec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n return a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n const mat3 ACESInputMat = mat3(\n vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ),\n vec3( 0.04823, 0.01566, 0.83777 )\n );\n const mat3 ACESOutputMat = mat3(\n vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ),\n vec3( -0.07367, -0.00605, 1.07602 )\n );\n color *= toneMappingExposure / 0.6;\n color = ACESInputMat * color;\n color = RRTAndODTFit( color );\n color = ACESOutputMat * color;\n return saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n vec3( 1.6605, - 0.1246, - 0.0182 ),\n vec3( - 0.5876, 1.1329, - 0.1006 ),\n vec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n vec3( 0.6274, 0.0691, 0.0164 ),\n vec3( 0.3293, 0.9195, 0.0880 ),\n vec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n vec3 x2 = x * x;\n vec3 x4 = x2 * x2;\n return + 15.5 * x4 * x2\n - 40.14 * x4 * x\n + 31.96 * x4\n - 6.868 * x2 * x\n + 0.4298 * x2\n + 0.1191 * x\n - 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n const mat3 AgXInsetMatrix = mat3(\n vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n );\n const mat3 AgXOutsetMatrix = mat3(\n vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n );\n const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069;\n color *= toneMappingExposure;\n color = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n color = AgXInsetMatrix * color;\n color = max( color, 1e-10 ); color = log2( color );\n color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n color = clamp( color, 0.0, 1.0 );\n color = agxDefaultContrastApprox( color );\n color = AgXOutsetMatrix * color;\n color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n color = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n color = clamp( color, 0.0, 1.0 );\n return color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n const float StartCompression = 0.8 - 0.04;\n const float Desaturation = 0.15;\n color *= toneMappingExposure;\n float x = min( color.r, min( color.g, color.b ) );\n float offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n color -= offset;\n float peak = max( color.r, max( color.g, color.b ) );\n if ( peak < StartCompression ) return color;\n float d = 1. - StartCompression;\n float newPeak = 1. - d * d / ( peak + d - StartCompression );\n color *= newPeak / peak;\n float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );\n return mix( color, vec3( newPeak ), g );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n material.transmission = transmission;\n material.transmissionAlpha = 1.0;\n material.thickness = thickness;\n material.attenuationDistance = attenuationDistance;\n material.attenuationColor = attenuationColor;\n #ifdef USE_TRANSMISSIONMAP\n material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n #endif\n #ifdef USE_THICKNESSMAP\n material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n #endif\n vec3 pos = vWorldPosition;\n vec3 v = normalize( cameraPosition - pos );\n vec3 n = inverseTransformDirection( normal, viewMatrix );\n vec4 transmitted = getIBLVolumeRefraction(\n n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,\n material.attenuationColor, material.attenuationDistance );\n material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n uniform float transmission;\n uniform float thickness;\n uniform float attenuationDistance;\n uniform vec3 attenuationColor;\n #ifdef USE_TRANSMISSIONMAP\n uniform sampler2D transmissionMap;\n #endif\n #ifdef USE_THICKNESSMAP\n uniform sampler2D thicknessMap;\n #endif\n uniform vec2 transmissionSamplerSize;\n uniform sampler2D transmissionSamplerMap;\n uniform mat4 modelMatrix;\n uniform mat4 projectionMatrix;\n varying vec3 vWorldPosition;\n float w0( float a ) {\n return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n }\n float w1( float a ) {\n return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n }\n float w2( float a ){\n return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n }\n float w3( float a ) {\n return ( 1.0 / 6.0 ) * ( a * a * a );\n }\n float g0( float a ) {\n return w0( a ) + w1( a );\n }\n float g1( float a ) {\n return w2( a ) + w3( a );\n }\n float h0( float a ) {\n return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n }\n float h1( float a ) {\n return 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n }\n vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n uv = uv * texelSize.zw + 0.5;\n vec2 iuv = floor( uv );\n vec2 fuv = fract( uv );\n float g0x = g0( fuv.x );\n float g1x = g1( fuv.x );\n float h0x = h0( fuv.x );\n float h1x = h1( fuv.x );\n float h0y = h0( fuv.y );\n float h1y = h1( fuv.y );\n vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n }\n vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n vec2 fLodSizeInv = 1.0 / fLodSize;\n vec2 cLodSizeInv = 1.0 / cLodSize;\n vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n return mix( fSample, cSample, fract( lod ) );\n }\n vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n vec3 modelScale;\n modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n return normalize( refractionVector ) * thickness * modelScale;\n }\n float applyIorToRoughness( const in float roughness, const in float ior ) {\n return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n }\n vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n }\n vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n if ( isinf( attenuationDistance ) ) {\n return vec3( 1.0 );\n } else {\n vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance;\n }\n }\n vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,\n const in vec3 attenuationColor, const in float attenuationDistance ) {\n vec4 transmittedLight;\n vec3 transmittance;\n #ifdef USE_DISPERSION\n float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;\n vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );\n for ( int i = 0; i < 3; i ++ ) {\n vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );\n vec3 refractedRayExit = position + transmissionRay;\n \n vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n vec2 refractionCoords = ndcPos.xy / ndcPos.w;\n refractionCoords += 1.0;\n refractionCoords /= 2.0;\n \n vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );\n transmittedLight[ i ] = transmissionSample[ i ];\n transmittedLight.a += transmissionSample.a;\n transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];\n }\n transmittedLight.a /= 3.0;\n \n #else\n \n vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n vec3 refractedRayExit = position + transmissionRay;\n vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n vec2 refractionCoords = ndcPos.xy / ndcPos.w;\n refractionCoords += 1.0;\n refractionCoords /= 2.0;\n transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n \n #endif\n vec3 attenuatedColor = transmittance * transmittedLight.rgb;\n vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n }\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n varying vec2 vUv;\n#endif\n#ifdef USE_MAP\n varying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n varying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n varying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n varying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n varying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n varying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n varying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n varying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n varying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n varying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n varying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n varying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n varying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n varying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n varying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n varying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n varying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n varying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n varying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n varying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n uniform mat3 transmissionMapTransform;\n varying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n uniform mat3 thicknessMapTransform;\n varying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n varying vec2 vUv;\n#endif\n#ifdef USE_MAP\n uniform mat3 mapTransform;\n varying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n uniform mat3 alphaMapTransform;\n varying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n uniform mat3 lightMapTransform;\n varying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n uniform mat3 aoMapTransform;\n varying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n uniform mat3 bumpMapTransform;\n varying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n uniform mat3 normalMapTransform;\n varying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n uniform mat3 displacementMapTransform;\n varying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n uniform mat3 emissiveMapTransform;\n varying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n uniform mat3 metalnessMapTransform;\n varying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n uniform mat3 roughnessMapTransform;\n varying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n uniform mat3 anisotropyMapTransform;\n varying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n uniform mat3 clearcoatMapTransform;\n varying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n uniform mat3 clearcoatNormalMapTransform;\n varying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n uniform mat3 clearcoatRoughnessMapTransform;\n varying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n uniform mat3 sheenColorMapTransform;\n varying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n uniform mat3 sheenRoughnessMapTransform;\n varying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n uniform mat3 iridescenceMapTransform;\n varying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n uniform mat3 iridescenceThicknessMapTransform;\n varying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n uniform mat3 specularMapTransform;\n varying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n uniform mat3 specularColorMapTransform;\n varying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n uniform mat3 specularIntensityMapTransform;\n varying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n uniform mat3 transmissionMapTransform;\n varying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n uniform mat3 thicknessMapTransform;\n varying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n vUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n vec4 worldPosition = vec4( transformed, 1.0 );\n #ifdef USE_BATCHING\n worldPosition = batchingMatrix * worldPosition;\n #endif\n #ifdef USE_INSTANCING\n worldPosition = instanceMatrix * worldPosition;\n #endif\n worldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n vUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n gl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n vec4 texColor = texture2D( t2D, vUv );\n #ifdef DECODE_VIDEO_TEXTURE\n texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n #endif\n texColor.rgb *= backgroundIntensity;\n gl_FragColor = texColor;\n #include \n #include \n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n vWorldDirection = transformDirection( position, modelMatrix );\n #include \n #include \n gl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n uniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n uniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n #ifdef ENVMAP_TYPE_CUBE\n vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n #elif defined( ENVMAP_TYPE_CUBE_UV )\n vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n #else\n vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n #endif\n texColor.rgb *= backgroundIntensity;\n gl_FragColor = texColor;\n #include \n #include \n}",cube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n vWorldDirection = transformDirection( position, modelMatrix );\n #include \n #include \n gl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n gl_FragColor = texColor;\n gl_FragColor.a *= opacity;\n #include \n #include \n}",depth_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n #include \n #include \n #include \n #include \n #ifdef USE_DISPLACEMENTMAP\n #include \n #include \n #include \n #endif\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n uniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n vec4 diffuseColor = vec4( 1.0 );\n #include \n #if DEPTH_PACKING == 3200\n diffuseColor.a = opacity;\n #endif\n #include \n #include \n #include \n #include \n #include \n float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n #if DEPTH_PACKING == 3200\n gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n #elif DEPTH_PACKING == 3201\n gl_FragColor = packDepthToRGBA( fragCoordZ );\n #endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #ifdef USE_DISPLACEMENTMAP\n #include \n #include \n #include \n #endif\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main () {\n vec4 diffuseColor = vec4( 1.0 );\n #include \n #include \n #include \n #include \n #include \n float dist = length( vWorldPosition - referencePosition );\n dist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n dist = saturate( dist );\n gl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n vWorldDirection = transformDirection( position, modelMatrix );\n #include \n #include \n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n vec3 direction = normalize( vWorldDirection );\n vec2 sampleUV = equirectUv( direction );\n gl_FragColor = texture2D( tEquirect, sampleUV );\n #include \n #include \n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n vLineDistance = scale * lineDistance;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include \n if ( mod( vLineDistance, totalSize ) > dashSize ) {\n discard;\n }\n vec3 outgoingLight = vec3( 0.0 );\n #include \n #include \n #include \n outgoingLight = diffuseColor.rgb;\n #include \n #include \n #include \n #include \n #include \n}",meshbasic_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #include \n #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n #include \n #include \n #include \n #include \n #include \n #endif\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n varying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n #ifdef USE_LIGHTMAP\n vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n #else\n reflectedLight.indirectDiffuse += vec3( 1.0 );\n #endif\n #include \n reflectedLight.indirectDiffuse *= diffuseColor.rgb;\n vec3 outgoingLight = reflectedLight.indirectDiffuse;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vViewPosition = - mvPosition.xyz;\n #include \n #include \n #include \n #include \n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include \n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vec3 viewDir = normalize( vViewPosition );\n vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n vec3 y = cross( viewDir, x );\n vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n #ifdef USE_MATCAP\n vec4 matcapColor = texture2D( matcap, uv );\n #else\n vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n #endif\n vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n #include \n #include \n #include \n #include \n #include \n #include \n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n varying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n vViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n varying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\n #include \n #include \n #include \n #include \n gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );\n #ifdef OPAQUE\n gl_FragColor.a = 1.0;\n #endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vViewPosition = - mvPosition.xyz;\n #include \n #include \n #include \n #include \n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include \n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n varying vec3 vWorldPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vViewPosition = - mvPosition.xyz;\n #include \n #include \n #include \n#ifdef USE_TRANSMISSION\n vWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n #define IOR\n #define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n uniform float ior;\n#endif\n#ifdef USE_SPECULAR\n uniform float specularIntensity;\n uniform vec3 specularColor;\n #ifdef USE_SPECULAR_COLORMAP\n uniform sampler2D specularColorMap;\n #endif\n #ifdef USE_SPECULAR_INTENSITYMAP\n uniform sampler2D specularIntensityMap;\n #endif\n#endif\n#ifdef USE_CLEARCOAT\n uniform float clearcoat;\n uniform float clearcoatRoughness;\n#endif\n#ifdef USE_DISPERSION\n uniform float dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n uniform float iridescence;\n uniform float iridescenceIOR;\n uniform float iridescenceThicknessMinimum;\n uniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n uniform vec3 sheenColor;\n uniform float sheenRoughness;\n #ifdef USE_SHEEN_COLORMAP\n uniform sampler2D sheenColorMap;\n #endif\n #ifdef USE_SHEEN_ROUGHNESSMAP\n uniform sampler2D sheenRoughnessMap;\n #endif\n#endif\n#ifdef USE_ANISOTROPY\n uniform vec2 anisotropyVector;\n #ifdef USE_ANISOTROPYMAP\n uniform sampler2D anisotropyMap;\n #endif\n#endif\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include \n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n #include \n vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n #ifdef USE_SHEEN\n float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n #endif\n #ifdef USE_CLEARCOAT\n float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;\n #endif\n #include \n #include \n #include \n #include \n #include \n #include \n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vViewPosition = - mvPosition.xyz;\n #include \n #include \n #include \n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include \n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n #include \n #include \n #include \n #include \n #include \n #include \n}",points_vert:"uniform float size;\nuniform float scale;\n#include \n#include \n#include \n#include \n#include \n#include \n#ifdef USE_POINTS_UV\n varying vec2 vUv;\n uniform mat3 uvTransform;\n#endif\nvoid main() {\n #ifdef USE_POINTS_UV\n vUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n #endif\n #include \n #include \n #include \n #include \n #include \n #include \n gl_PointSize = size;\n #ifdef USE_SIZEATTENUATION\n bool isPerspective = isPerspectiveMatrix( projectionMatrix );\n if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n #endif\n #include \n #include \n #include \n #include \n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include \n vec3 outgoingLight = vec3( 0.0 );\n #include \n #include \n #include \n #include \n #include \n outgoingLight = diffuseColor.rgb;\n #include \n #include \n #include \n #include \n #include \n}",shadow_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n #include \n #include \n #include \n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n vec2 scale;\n scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n #ifndef USE_SIZEATTENUATION\n bool isPerspective = isPerspectiveMatrix( projectionMatrix );\n if ( isPerspective ) scale *= - mvPosition.z;\n #endif\n vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n vec2 rotatedPosition;\n rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n mvPosition.xy += rotatedPosition;\n gl_Position = projectionMatrix * mvPosition;\n #include \n #include \n #include \n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include \n vec3 outgoingLight = vec3( 0.0 );\n #include \n #include \n #include \n #include \n #include \n outgoingLight = diffuseColor.rgb;\n #include \n #include \n #include \n #include \n}"},aE={common:{diffuse:{value:new rg(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new iV},alphaMap:{value:null},alphaMapTransform:{value:new iV},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new iV}},envmap:{envMap:{value:null},envMapRotation:{value:new iV},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new iV}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new iV}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new iV},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new iV},normalScale:{value:new ik(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new iV},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new iV}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new iV}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new iV}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new rg(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new rg(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new iV},alphaTest:{value:0},uvTransform:{value:new iV}},sprite:{diffuse:{value:new rg(16777215)},opacity:{value:1},center:{value:new ik(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new iV},alphaMap:{value:null},alphaMapTransform:{value:new iV},alphaTest:{value:0}}},aw={basic:{uniforms:ai([aE.common,aE.specularmap,aE.envmap,aE.aomap,aE.lightmap,aE.fog]),vertexShader:aT.meshbasic_vert,fragmentShader:aT.meshbasic_frag},lambert:{uniforms:ai([aE.common,aE.specularmap,aE.envmap,aE.aomap,aE.lightmap,aE.emissivemap,aE.bumpmap,aE.normalmap,aE.displacementmap,aE.fog,aE.lights,{emissive:{value:new rg(0)}}]),vertexShader:aT.meshlambert_vert,fragmentShader:aT.meshlambert_frag},phong:{uniforms:ai([aE.common,aE.specularmap,aE.envmap,aE.aomap,aE.lightmap,aE.emissivemap,aE.bumpmap,aE.normalmap,aE.displacementmap,aE.fog,aE.lights,{emissive:{value:new rg(0)},specular:{value:new rg(1118481)},shininess:{value:30}}]),vertexShader:aT.meshphong_vert,fragmentShader:aT.meshphong_frag},standard:{uniforms:ai([aE.common,aE.envmap,aE.aomap,aE.lightmap,aE.emissivemap,aE.bumpmap,aE.normalmap,aE.displacementmap,aE.roughnessmap,aE.metalnessmap,aE.fog,aE.lights,{emissive:{value:new rg(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:aT.meshphysical_vert,fragmentShader:aT.meshphysical_frag},toon:{uniforms:ai([aE.common,aE.aomap,aE.lightmap,aE.emissivemap,aE.bumpmap,aE.normalmap,aE.displacementmap,aE.gradientmap,aE.fog,aE.lights,{emissive:{value:new rg(0)}}]),vertexShader:aT.meshtoon_vert,fragmentShader:aT.meshtoon_frag},matcap:{uniforms:ai([aE.common,aE.bumpmap,aE.normalmap,aE.displacementmap,aE.fog,{matcap:{value:null}}]),vertexShader:aT.meshmatcap_vert,fragmentShader:aT.meshmatcap_frag},points:{uniforms:ai([aE.points,aE.fog]),vertexShader:aT.points_vert,fragmentShader:aT.points_frag},dashed:{uniforms:ai([aE.common,aE.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:aT.linedashed_vert,fragmentShader:aT.linedashed_frag},depth:{uniforms:ai([aE.common,aE.displacementmap]),vertexShader:aT.depth_vert,fragmentShader:aT.depth_frag},normal:{uniforms:ai([aE.common,aE.bumpmap,aE.normalmap,aE.displacementmap,{opacity:{value:1}}]),vertexShader:aT.meshnormal_vert,fragmentShader:aT.meshnormal_frag},sprite:{uniforms:ai([aE.sprite,aE.fog]),vertexShader:aT.sprite_vert,fragmentShader:aT.sprite_frag},background:{uniforms:{uvTransform:{value:new iV},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:aT.background_vert,fragmentShader:aT.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new iV}},vertexShader:aT.backgroundCube_vert,fragmentShader:aT.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:aT.cube_vert,fragmentShader:aT.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:aT.equirect_vert,fragmentShader:aT.equirect_frag},distanceRGBA:{uniforms:ai([aE.common,aE.displacementmap,{referencePosition:{value:new no},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:aT.distanceRGBA_vert,fragmentShader:aT.distanceRGBA_frag},shadow:{uniforms:ai([aE.lights,aE.fog,{color:{value:new rg(0)},opacity:{value:1}}]),vertexShader:aT.shadow_vert,fragmentShader:aT.shadow_frag}};aw.physical={uniforms:ai([aw.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new iV},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new iV},clearcoatNormalScale:{value:new ik(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new iV},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new iV},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new iV},sheen:{value:0},sheenColor:{value:new rg(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new iV},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new iV},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new iV},transmissionSamplerSize:{value:new ik},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new iV},attenuationDistance:{value:0},attenuationColor:{value:new rg(0)},specularColor:{value:new rg(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new iV},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new iV},anisotropyVector:{value:new ik},anisotropyMap:{value:null},anisotropyMapTransform:{value:new iV}}]),vertexShader:aT.meshphysical_vert,fragmentShader:aT.meshphysical_frag};let aA={r:0,b:0,g:0},aR=new nq,aC=new nF;function aP(e,t,i,n,r,a,s){let o,l;let h=new rg(0),u=!0===a?0:1,c=null,d=0,p=null;function f(e){let n=!0===e.isScene?e.background:null;return n&&n.isTexture&&(n=(e.backgroundBlurriness>0?i:t).get(n)),n}function m(t,i){t.getRGB(aA,an(e)),n.buffers.color.setClear(aA.r,aA.g,aA.b,i,s)}return{getClearColor:function(){return h},setClearColor:function(e,t=1){h.set(e),m(h,u=t)},getClearAlpha:function(){return u},setClearAlpha:function(e){m(h,u=e)},render:function(t){let i=!1,r=f(t);null===r?m(h,u):r&&r.isColor&&(m(r,1),i=!0);let a=e.xr.getEnvironmentBlendMode();"additive"===a?n.buffers.color.setClear(0,0,0,1,s):"alpha-blend"===a&&n.buffers.color.setClear(0,0,0,0,s),(e.autoClear||i)&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil)},addToRenderList:function(t,i){let n=f(i);n&&(n.isCubeTexture||n.mapping===ex)?(void 0===l&&((l=new r9(new ae(1,1,1),new aa({name:"BackgroundCubeMaterial",uniforms:at(aw.backgroundCube.uniforms),vertexShader:aw.backgroundCube.vertexShader,fragmentShader:aw.backgroundCube.fragmentShader,side:x,depthTest:!1,depthWrite:!1,fog:!1}))).geometry.deleteAttribute("normal"),l.geometry.deleteAttribute("uv"),l.onBeforeRender=function(e,t,i){this.matrixWorld.copyPosition(i.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(l)),aR.copy(i.backgroundRotation),aR.x*=-1,aR.y*=-1,aR.z*=-1,n.isCubeTexture&&!1===n.isRenderTargetTexture&&(aR.y*=-1,aR.z*=-1),l.material.uniforms.envMap.value=n,l.material.uniforms.flipEnvMap.value=n.isCubeTexture&&!1===n.isRenderTargetTexture?-1:1,l.material.uniforms.backgroundBlurriness.value=i.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=i.backgroundIntensity,l.material.uniforms.backgroundRotation.value.setFromMatrix4(aC.makeRotationFromEuler(aR)),l.material.toneMapped=i0.getTransfer(n.colorSpace)!==tJ,(c!==n||d!==n.version||p!==e.toneMapping)&&(l.material.needsUpdate=!0,c=n,d=n.version,p=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null)):n&&n.isTexture&&(void 0===o&&((o=new r9(new ab(2,2),new aa({name:"BackgroundMaterial",uniforms:at(aw.background.uniforms),vertexShader:aw.background.vertexShader,fragmentShader:aw.background.fragmentShader,side:y,depthTest:!1,depthWrite:!1,fog:!1}))).geometry.deleteAttribute("normal"),Object.defineProperty(o.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(o)),o.material.uniforms.t2D.value=n,o.material.uniforms.backgroundIntensity.value=i.backgroundIntensity,o.material.toneMapped=i0.getTransfer(n.colorSpace)!==tJ,!0===n.matrixAutoUpdate&&n.updateMatrix(),o.material.uniforms.uvTransform.value.copy(n.matrix),(c!==n||d!==n.version||p!==e.toneMapping)&&(o.material.needsUpdate=!0,c=n,d=n.version,p=e.toneMapping),o.layers.enableAll(),t.unshift(o,o.geometry,o.material,0,0,null))}}}function aL(e,t){let i=e.getParameter(e.MAX_VERTEX_ATTRIBS),n={},r=h(null),a=r,s=!1;function o(t){return e.bindVertexArray(t)}function l(t){return e.deleteVertexArray(t)}function h(e){let t=[],n=[],r=[];for(let e=0;e=0){let i=r[t],n=s[t];if(void 0===n&&("instanceMatrix"===t&&e.instanceMatrix&&(n=e.instanceMatrix),"instanceColor"===t&&e.instanceColor&&(n=e.instanceColor)),void 0===i||i.attribute!==n||n&&i.data!==n.data)return!0;o++}return a.attributesNum!==o||a.index!==n}(i,m,l,g))&&function(e,t,i,n){let r={},s=t.attributes,o=0,l=i.getAttributes();for(let t in l)if(l[t].location>=0){let i=s[t];void 0===i&&("instanceMatrix"===t&&e.instanceMatrix&&(i=e.instanceMatrix),"instanceColor"===t&&e.instanceColor&&(i=e.instanceColor));let n={};n.attribute=i,i&&i.data&&(n.data=i.data),r[t]=n,o++}a.attributes=r,a.attributesNum=o,a.index=n}(i,m,l,g),null!==g&&t.update(g,e.ELEMENT_ARRAY_BUFFER),(v||s)&&(s=!1,function(i,n,r,a){u();let s=a.attributes,o=r.getAttributes(),l=n.defaultAttributeValues;for(let n in o){let r=o[n];if(r.location>=0){let o=s[n];if(void 0===o&&("instanceMatrix"===n&&i.instanceMatrix&&(o=i.instanceMatrix),"instanceColor"===n&&i.instanceColor&&(o=i.instanceColor)),void 0!==o){let n=o.normalized,s=o.itemSize,l=t.get(o);if(void 0===l)continue;let h=l.buffer,u=l.type,p=l.bytesPerElement,m=u===e.INT||u===e.UNSIGNED_INT||o.gpuType===eB;if(o.isInterleavedBufferAttribute){let t=o.data,l=t.stride,g=o.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let s=void 0!==i.precision?i.precision:"highp",o=a(s);o!==s&&(console.warn("THREE.WebGLRenderer:",s,"not supported, using",o,"instead."),s=o);let l=!0===i.logarithmicDepthBuffer,h=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),u=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),c=e.getParameter(e.MAX_TEXTURE_SIZE),d=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),p=e.getParameter(e.MAX_VERTEX_ATTRIBS),f=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS);return{isWebGL2:!0,getMaxAnisotropy:function(){if(void 0!==r)return r;if(!0===t.has("EXT_texture_filter_anisotropic")){let i=t.get("EXT_texture_filter_anisotropic");r=e.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r},getMaxPrecision:a,textureFormatReadable:function(t){return t===eY||n.convert(t)===e.getParameter(e.IMPLEMENTATION_COLOR_READ_FORMAT)},textureTypeReadable:function(i){let r=i===eV&&(t.has("EXT_color_buffer_half_float")||t.has("EXT_color_buffer_float"));return i===eN||n.convert(i)===e.getParameter(e.IMPLEMENTATION_COLOR_READ_TYPE)||i===ek||!!r},precision:s,logarithmicDepthBuffer:l,maxTextures:h,maxVertexTextures:u,maxTextureSize:c,maxCubemapSize:d,maxAttributes:p,maxVertexUniforms:f,maxVaryings:e.getParameter(e.MAX_VARYING_VECTORS),maxFragmentUniforms:e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),vertexTextures:u>0,maxSamples:e.getParameter(e.MAX_SAMPLES)}}function aN(e){let t=this,i=null,n=0,r=!1,a=!1,s=new av,o=new iV,l={value:null,needsUpdate:!1};function h(e,i,n,r){let a=null!==e?e.length:0,h=null;if(0!==a){if(h=l.value,!0!==r||null===h){let t=n+4*a,r=i.matrixWorldInverse;o.getNormalMatrix(r),(null===h||h.length0),t.numPlanes=n,t.numIntersection=0)}}function aD(e){let t=new WeakMap;function i(e,t){return t===e_?e.mapping=eg:t===ey&&(e.mapping=ev),e}function n(e){let i=e.target;i.removeEventListener("dispose",n);let r=t.get(i);void 0!==r&&(t.delete(i),r.dispose())}return{get:function(r){if(r&&r.isTexture){let a=r.mapping;if(a===e_||a===ey){if(t.has(r))return i(t.get(r).texture,r.mapping);{let a=r.image;if(!a||!(a.height>0))return null;{let s=new ap(a.height);return s.fromEquirectangularTexture(e,r),t.set(r,s),r.addEventListener("dispose",n),i(s.texture,r.mapping)}}}}return r},dispose:function(){t=new WeakMap}}}class aO extends as{constructor(e=-1,t=1,i=1,n=-1,r=.1,a=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=i,this.bottom=n,this.near=r,this.far=a,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}setViewOffset(e,t,i,n,r,a){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=i,this.view.offsetY=n,this.view.width=r,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){let e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,n=(this.top+this.bottom)/2,r=i-e,a=i+e,s=n+t,o=n-t;if(null!==this.view&&this.view.enabled){let e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=e*this.view.offsetX,a=r+e*this.view.width,s-=t*this.view.offsetY,o=s-t*this.view.height}this.projectionMatrix.makeOrthographic(r,a,s,o,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){let t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}let aF=[.125,.215,.35,.446,.526,.582],aB=new aO,az=new rg,ak=null,aV=0,aH=0,aG=!1,aW=(1+Math.sqrt(5))/2,aX=1/aW,aj=[new no(-aW,aX,0),new no(aW,aX,0),new no(-aX,0,aW),new no(aX,0,aW),new no(0,aW,-aX),new no(0,aW,aX),new no(-1,1,-1),new no(1,1,-1),new no(-1,1,1),new no(1,1,1)];class aq{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,i=.1,n=100){ak=this._renderer.getRenderTarget(),aV=this._renderer.getActiveCubeFace(),aH=this._renderer.getActiveMipmapLevel(),aG=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);let r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,i,n,r),t>0&&this._blur(r,0,0,t),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=aK(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=aJ(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;ee-4?o=aF[s-e+4-1]:0===s&&(o=0),n.push(o);let l=1/(a-2),h=-l,u=1+l,c=[h,h,u,h,u,u,h,h,u,u,h,u],d=new Float32Array(108),p=new Float32Array(72),f=new Float32Array(36);for(let e=0;e<6;e++){let t=e%3*2/3-1,i=e>2?0:-1,n=[t,i,0,t+2/3,i,0,t+2/3,i+1,0,t,i,0,t+2/3,i+1,0,t,i+1,0];d.set(n,18*e),p.set(c,12*e);let r=[e,e,e,e,e,e];f.set(r,6*e)}let m=new rW;m.setAttribute("position",new rA(d,3)),m.setAttribute("uv",new rA(p,2)),m.setAttribute("faceIndex",new rA(f,1)),t.push(m),r>4&&r--}return{lodPlanes:t,sizeLods:i,sigmas:n}}(n)),this._blurMaterial=new aa({name:"SphericalGaussianBlur",defines:{n:20,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:new Float32Array(20)},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:new no(0,1,0)}},vertexShader:a$(),fragmentShader:` - - precision mediump float; - precision mediump int; - - varying vec3 vOutputDirection; - - uniform sampler2D envMap; - uniform int samples; - uniform float weights[ n ]; - uniform bool latitudinal; - uniform float dTheta; - uniform float mipInt; - uniform vec3 poleAxis; - - #define ENVMAP_TYPE_CUBE_UV - #include - - vec3 getSample( float theta, vec3 axis ) { - - float cosTheta = cos( theta ); - // Rodrigues' axis-angle rotation - vec3 sampleDirection = vOutputDirection * cosTheta - + cross( axis, vOutputDirection ) * sin( theta ) - + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); - - return bilinearCubeUV( envMap, sampleDirection, mipInt ); - - } - - void main() { - - vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); - - if ( all( equal( axis, vec3( 0.0 ) ) ) ) { - - axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); - - } - - axis = normalize( axis ); - - gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); - gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); - - for ( int i = 1; i < n; i++ ) { - - if ( i >= samples ) { - - break; - - } - - float theta = dTheta * float( i ); - gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); - gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); - - } - - } - `,blending:S,depthTest:!1,depthWrite:!1})}return n}_compileMaterial(e){let t=new r9(this._lodPlanes[0],e);this._renderer.compile(t,aB)}_sceneToCubeUV(e,t,i,n){let r=new au(90,1,t,i),a=[1,-1,1,1,1,1],s=[1,1,1,-1,-1,-1],o=this._renderer,l=o.autoClear,h=o.toneMapping;o.getClearColor(az),o.toneMapping=ea,o.autoClear=!1;let u=new rx({name:"PMREM.Background",side:x,depthWrite:!1,depthTest:!1}),c=new r9(new ae,u),d=!1,p=e.background;p?p.isColor&&(u.color.copy(p),e.background=null,d=!0):(u.color.copy(az),d=!0);for(let t=0;t<6;t++){let i=t%3;0===i?(r.up.set(0,a[t],0),r.lookAt(s[t],0,0)):1===i?(r.up.set(0,0,a[t]),r.lookAt(0,s[t],0)):(r.up.set(0,a[t],0),r.lookAt(0,0,s[t]));let l=this._cubeSize;aZ(n,i*l,t>2?l:0,l,l),o.setRenderTarget(n),d&&o.render(c,r),o.render(e,r)}c.geometry.dispose(),c.material.dispose(),o.toneMapping=h,o.autoClear=l,e.background=p}_textureToCubeUV(e,t){let i=this._renderer,n=e.mapping===eg||e.mapping===ev;n?(null===this._cubemapMaterial&&(this._cubemapMaterial=aK()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=aJ());let r=n?this._cubemapMaterial:this._equirectMaterial,a=new r9(this._lodPlanes[0],r);r.uniforms.envMap.value=e;let s=this._cubeSize;aZ(t,0,0,3*s,2*s),i.setRenderTarget(t),i.render(a,aB)}_applyPMREM(e){let t=this._renderer,i=t.autoClear;t.autoClear=!1;let n=this._lodPlanes.length;for(let t=1;t20&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${f} samples when the maximum is set to 20`);let m=[],g=0;for(let e=0;e<20;++e){let t=e/p,i=Math.exp(-t*t/2);m.push(i),0===e?g+=i:ev-4?n-v+4:0),y,3*_,2*_),o.setRenderTarget(t),o.render(h,aB)}}function aY(e,t,i){let n=new nt(e,t,i);return n.texture.mapping=ex,n.texture.name="PMREM.cubeUv",n.scissorTest=!0,n}function aZ(e,t,i,n,r){e.viewport.set(t,i,n,r),e.scissor.set(t,i,n,r)}function aJ(){return new aa({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:a$(),fragmentShader:` - - precision mediump float; - precision mediump int; - - varying vec3 vOutputDirection; - - uniform sampler2D envMap; - - #include - - void main() { - - vec3 outputDirection = normalize( vOutputDirection ); - vec2 uv = equirectUv( outputDirection ); - - gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); - - } - `,blending:S,depthTest:!1,depthWrite:!1})}function aK(){return new aa({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:a$(),fragmentShader:` - - precision mediump float; - precision mediump int; - - uniform float flipEnvMap; - - varying vec3 vOutputDirection; - - uniform samplerCube envMap; - - void main() { - - gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); - - } - `,blending:S,depthTest:!1,depthWrite:!1})}function a$(){return` - - precision mediump float; - precision mediump int; - - attribute float faceIndex; - - varying vec3 vOutputDirection; - - // RH coordinate system; PMREM face-indexing convention - vec3 getDirection( vec2 uv, float face ) { - - uv = 2.0 * uv - 1.0; - - vec3 direction = vec3( uv, 1.0 ); - - if ( face == 0.0 ) { - - direction = direction.zyx; // ( 1, v, u ) pos x - - } else if ( face == 1.0 ) { - - direction = direction.xzy; - direction.xz *= -1.0; // ( -u, 1, -v ) pos y - - } else if ( face == 2.0 ) { - - direction.x *= -1.0; // ( -u, v, 1 ) pos z - - } else if ( face == 3.0 ) { - - direction = direction.zyx; - direction.xz *= -1.0; // ( -1, v, -u ) neg x - - } else if ( face == 4.0 ) { - - direction = direction.xzy; - direction.xy *= -1.0; // ( -u, -1, v ) neg y - - } else if ( face == 5.0 ) { - - direction.z *= -1.0; // ( u, v, -1 ) neg z - - } - - return direction; - - } - - void main() { - - vOutputDirection = getDirection( uv, faceIndex ); - gl_Position = vec4( position, 1.0 ); - - } - `}function aQ(e){let t=new WeakMap,i=null;function n(e){let i=e.target;i.removeEventListener("dispose",n);let r=t.get(i);void 0!==r&&(t.delete(i),r.dispose())}return{get:function(r){if(r&&r.isTexture){let a=r.mapping,s=a===e_||a===ey,o=a===eg||a===ev;if(s||o){let a=t.get(r),l=void 0!==a?a.texture.pmremVersion:0;if(r.isRenderTargetTexture&&r.pmremVersion!==l)return null===i&&(i=new aq(e)),(a=s?i.fromEquirectangular(r,a):i.fromCubemap(r,a)).texture.pmremVersion=r.pmremVersion,t.set(r,a),a.texture;if(void 0!==a)return a.texture;{let l=r.image;return s&&l&&l.height>0||o&&l&&function(e){let t=0;for(let i=0;i<6;i++)void 0!==e[i]&&t++;return 6===t}(l)?(null===i&&(i=new aq(e)),(a=s?i.fromEquirectangular(r):i.fromCubemap(r)).texture.pmremVersion=r.pmremVersion,t.set(r,a),r.addEventListener("dispose",n),a.texture):null}}}return r},dispose:function(){t=new WeakMap,null!==i&&(i.dispose(),i=null)}}}function a0(e){let t={};function i(i){let n;if(void 0!==t[i])return t[i];switch(i){case"WEBGL_depth_texture":n=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":n=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":n=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":n=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:n=e.getExtension(i)}return t[i]=n,n}return{has:function(e){return null!==i(e)},init:function(){i("EXT_color_buffer_float"),i("WEBGL_clip_cull_distance"),i("OES_texture_float_linear"),i("EXT_color_buffer_half_float"),i("WEBGL_multisampled_render_to_texture"),i("WEBGL_render_shared_exponent")},get:function(e){let t=i(e);return null===t&&console.warn("THREE.WebGLRenderer: "+e+" extension not supported."),t}}}function a1(e,t,i,n){let r={},a=new WeakMap;function s(e){let o=e.target;for(let e in null!==o.index&&t.remove(o.index),o.attributes)t.remove(o.attributes[e]);for(let e in o.morphAttributes){let i=o.morphAttributes[e];for(let e=0,n=i.length;et.maxTextureSize&&(f=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let m=new Float32Array(p*f*4*u),g=new ni(m,p,f,u);g.type=ek,g.needsUpdate=!0;let v=4*d;for(let t=0;t0)return e;let r=t*i,a=si[r];if(void 0===a&&(a=new Float32Array(r),si[r]=a),0!==t){n.toArray(a,0);for(let n=1,r=0;n!==t;++n)r+=i,e[n].toArray(a,r)}return a}function sl(e,t){if(e.length!==t.length)return!1;for(let i=0,n=e.length;i":" "} ${r}: ${i[e]}`)}return n.join("\n")}(e.getShaderSource(t),n)}}function s4(e){return""!==e}function s5(e,t){let i=t.numSpotLightShadows+t.numSpotLightMaps-t.numSpotLightShadowsWithMaps;return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,t.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,i).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,t.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function s6(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}let s8=/^[ \t]*#include +<([\w\d./]+)>/gm;function s9(e){return e.replace(s8,oe)}let s7=new Map;function oe(e,t){let i=aT[t];if(void 0===i){let e=s7.get(t);if(void 0!==e)i=aT[e],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',t,e);else throw Error("Can not resolve #include <"+t+">")}return s9(i)}let ot=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function oi(e){return e.replace(ot,on)}function on(e,t,i,n){let r="";for(let e=parseInt(t);e0&&(r+="\n"),(a=["#define SHADER_TYPE "+i.shaderType,"#define SHADER_NAME "+i.shaderName,b].filter(s4).join("\n")).length>0&&(a+="\n")):(r=[or(i),"#define SHADER_TYPE "+i.shaderType,"#define SHADER_NAME "+i.shaderName,b,i.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",i.batching?"#define USE_BATCHING":"",i.instancing?"#define USE_INSTANCING":"",i.instancingColor?"#define USE_INSTANCING_COLOR":"",i.instancingMorph?"#define USE_INSTANCING_MORPH":"",i.useFog&&i.fog?"#define USE_FOG":"",i.useFog&&i.fogExp2?"#define FOG_EXP2":"",i.map?"#define USE_MAP":"",i.envMap?"#define USE_ENVMAP":"",i.envMap?"#define "+y:"",i.lightMap?"#define USE_LIGHTMAP":"",i.aoMap?"#define USE_AOMAP":"",i.bumpMap?"#define USE_BUMPMAP":"",i.normalMap?"#define USE_NORMALMAP":"",i.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",i.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",i.displacementMap?"#define USE_DISPLACEMENTMAP":"",i.emissiveMap?"#define USE_EMISSIVEMAP":"",i.anisotropy?"#define USE_ANISOTROPY":"",i.anisotropyMap?"#define USE_ANISOTROPYMAP":"",i.clearcoatMap?"#define USE_CLEARCOATMAP":"",i.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",i.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",i.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",i.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",i.specularMap?"#define USE_SPECULARMAP":"",i.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",i.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",i.roughnessMap?"#define USE_ROUGHNESSMAP":"",i.metalnessMap?"#define USE_METALNESSMAP":"",i.alphaMap?"#define USE_ALPHAMAP":"",i.alphaHash?"#define USE_ALPHAHASH":"",i.transmission?"#define USE_TRANSMISSION":"",i.transmissionMap?"#define USE_TRANSMISSIONMAP":"",i.thicknessMap?"#define USE_THICKNESSMAP":"",i.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",i.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",i.mapUv?"#define MAP_UV "+i.mapUv:"",i.alphaMapUv?"#define ALPHAMAP_UV "+i.alphaMapUv:"",i.lightMapUv?"#define LIGHTMAP_UV "+i.lightMapUv:"",i.aoMapUv?"#define AOMAP_UV "+i.aoMapUv:"",i.emissiveMapUv?"#define EMISSIVEMAP_UV "+i.emissiveMapUv:"",i.bumpMapUv?"#define BUMPMAP_UV "+i.bumpMapUv:"",i.normalMapUv?"#define NORMALMAP_UV "+i.normalMapUv:"",i.displacementMapUv?"#define DISPLACEMENTMAP_UV "+i.displacementMapUv:"",i.metalnessMapUv?"#define METALNESSMAP_UV "+i.metalnessMapUv:"",i.roughnessMapUv?"#define ROUGHNESSMAP_UV "+i.roughnessMapUv:"",i.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+i.anisotropyMapUv:"",i.clearcoatMapUv?"#define CLEARCOATMAP_UV "+i.clearcoatMapUv:"",i.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+i.clearcoatNormalMapUv:"",i.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+i.clearcoatRoughnessMapUv:"",i.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+i.iridescenceMapUv:"",i.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+i.iridescenceThicknessMapUv:"",i.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+i.sheenColorMapUv:"",i.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+i.sheenRoughnessMapUv:"",i.specularMapUv?"#define SPECULARMAP_UV "+i.specularMapUv:"",i.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+i.specularColorMapUv:"",i.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+i.specularIntensityMapUv:"",i.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+i.transmissionMapUv:"",i.thicknessMapUv?"#define THICKNESSMAP_UV "+i.thicknessMapUv:"",i.vertexTangents&&!1===i.flatShading?"#define USE_TANGENT":"",i.vertexColors?"#define USE_COLOR":"",i.vertexAlphas?"#define USE_COLOR_ALPHA":"",i.vertexUv1s?"#define USE_UV1":"",i.vertexUv2s?"#define USE_UV2":"",i.vertexUv3s?"#define USE_UV3":"",i.pointsUvs?"#define USE_POINTS_UV":"",i.flatShading?"#define FLAT_SHADED":"",i.skinning?"#define USE_SKINNING":"",i.morphTargets?"#define USE_MORPHTARGETS":"",i.morphNormals&&!1===i.flatShading?"#define USE_MORPHNORMALS":"",i.morphColors?"#define USE_MORPHCOLORS":"",i.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE":"",i.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+i.morphTextureStride:"",i.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+i.morphTargetsCount:"",i.doubleSided?"#define DOUBLE_SIDED":"",i.flipSided?"#define FLIP_SIDED":"",i.shadowMapEnabled?"#define USE_SHADOWMAP":"",i.shadowMapEnabled?"#define "+f:"",i.sizeAttenuation?"#define USE_SIZEATTENUATION":"",i.numLightProbes>0?"#define USE_LIGHT_PROBES":"",i.useLegacyLights?"#define LEGACY_LIGHTS":"",i.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif","\n"].filter(s4).join("\n"),a=[or(i),"#define SHADER_TYPE "+i.shaderType,"#define SHADER_NAME "+i.shaderName,b,i.useFog&&i.fog?"#define USE_FOG":"",i.useFog&&i.fogExp2?"#define FOG_EXP2":"",i.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",i.map?"#define USE_MAP":"",i.matcap?"#define USE_MATCAP":"",i.envMap?"#define USE_ENVMAP":"",i.envMap?"#define "+m:"",i.envMap?"#define "+y:"",i.envMap?"#define "+x:"",M?"#define CUBEUV_TEXEL_WIDTH "+M.texelWidth:"",M?"#define CUBEUV_TEXEL_HEIGHT "+M.texelHeight:"",M?"#define CUBEUV_MAX_MIP "+M.maxMip+".0":"",i.lightMap?"#define USE_LIGHTMAP":"",i.aoMap?"#define USE_AOMAP":"",i.bumpMap?"#define USE_BUMPMAP":"",i.normalMap?"#define USE_NORMALMAP":"",i.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",i.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",i.emissiveMap?"#define USE_EMISSIVEMAP":"",i.anisotropy?"#define USE_ANISOTROPY":"",i.anisotropyMap?"#define USE_ANISOTROPYMAP":"",i.clearcoat?"#define USE_CLEARCOAT":"",i.clearcoatMap?"#define USE_CLEARCOATMAP":"",i.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",i.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",i.dispersion?"#define USE_DISPERSION":"",i.iridescence?"#define USE_IRIDESCENCE":"",i.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",i.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",i.specularMap?"#define USE_SPECULARMAP":"",i.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",i.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",i.roughnessMap?"#define USE_ROUGHNESSMAP":"",i.metalnessMap?"#define USE_METALNESSMAP":"",i.alphaMap?"#define USE_ALPHAMAP":"",i.alphaTest?"#define USE_ALPHATEST":"",i.alphaHash?"#define USE_ALPHAHASH":"",i.sheen?"#define USE_SHEEN":"",i.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",i.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",i.transmission?"#define USE_TRANSMISSION":"",i.transmissionMap?"#define USE_TRANSMISSIONMAP":"",i.thicknessMap?"#define USE_THICKNESSMAP":"",i.vertexTangents&&!1===i.flatShading?"#define USE_TANGENT":"",i.vertexColors||i.instancingColor?"#define USE_COLOR":"",i.vertexAlphas?"#define USE_COLOR_ALPHA":"",i.vertexUv1s?"#define USE_UV1":"",i.vertexUv2s?"#define USE_UV2":"",i.vertexUv3s?"#define USE_UV3":"",i.pointsUvs?"#define USE_POINTS_UV":"",i.gradientMap?"#define USE_GRADIENTMAP":"",i.flatShading?"#define FLAT_SHADED":"",i.doubleSided?"#define DOUBLE_SIDED":"",i.flipSided?"#define FLIP_SIDED":"",i.shadowMapEnabled?"#define USE_SHADOWMAP":"",i.shadowMapEnabled?"#define "+f:"",i.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",i.numLightProbes>0?"#define USE_LIGHT_PROBES":"",i.useLegacyLights?"#define LEGACY_LIGHTS":"",i.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",i.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",i.toneMapping!==ea?"#define TONE_MAPPING":"",i.toneMapping!==ea?aT.tonemapping_pars_fragment:"",i.toneMapping!==ea?function(e,t){let i;switch(t){case es:i="Linear";break;case eo:i="Reinhard";break;case el:i="OptimizedCineon";break;case eh:i="ACESFilmic";break;case ec:i="AgX";break;case ed:i="Neutral";break;case eu:i="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),i="Linear"}return"vec3 "+e+"( vec3 color ) { return "+i+"ToneMapping( color ); }"}("toneMapping",i.toneMapping):"",i.dithering?"#define DITHERING":"",i.opaque?"#define OPAQUE":"",aT.colorspace_pars_fragment,function(e,t){let i=function(e){let t;let i=i0.getPrimaries(i0.workingColorSpace),n=i0.getPrimaries(e);switch(i===n?t="":i===t$&&n===tK?t="LinearDisplayP3ToLinearSRGB":i===tK&&n===t$&&(t="LinearSRGBToLinearDisplayP3"),e){case tj:case tY:return[t,"LinearTransferOETF"];case tX:case tq:return[t,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",e),[t,"LinearTransferOETF"]}}(t);return`vec4 ${e}( vec4 value ) { return ${i[0]}( ${i[1]}( value ) ); }`}("linearToOutputTexel",i.outputColorSpace),i.useDepthPacking?"#define DEPTH_PACKING "+i.depthPacking:"","\n"].filter(s4).join("\n")),d=s6(d=s5(d=s9(d),i),i),p=s6(p=s5(p=s9(p),i),i),d=oi(d),p=oi(p),!0!==i.isRawShaderMaterial&&(E="#version 300 es\n",r=[S,"#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+r,a=["#define varying in",i.glslVersion===iE?"":"layout(location = 0) out highp vec4 pc_fragColor;",i.glslVersion===iE?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+a);let w=E+r+d,A=E+a+p,R=s1(u,u.VERTEX_SHADER,w),C=s1(u,u.FRAGMENT_SHADER,A);function P(t){if(e.debug.checkShaderErrors){let i=u.getProgramInfoLog(T).trim(),n=u.getShaderInfoLog(R).trim(),s=u.getShaderInfoLog(C).trim(),o=!0,l=!0;if(!1===u.getProgramParameter(T,u.LINK_STATUS)){if(o=!1,"function"==typeof e.debug.onShaderError)e.debug.onShaderError(u,T,R,C);else{let e=s3(u,R,"vertex"),n=s3(u,C,"fragment");console.error("THREE.WebGLProgram: Shader Error "+u.getError()+" - VALIDATE_STATUS "+u.getProgramParameter(T,u.VALIDATE_STATUS)+"\n\nMaterial Name: "+t.name+"\nMaterial Type: "+t.type+"\n\nProgram Info Log: "+i+"\n"+e+"\n"+n)}}else""!==i?console.warn("THREE.WebGLProgram: Program Info Log:",i):(""===n||""===s)&&(l=!1);l&&(t.diagnostics={runnable:o,programLog:i,vertexShader:{log:n,prefix:r},fragmentShader:{log:s,prefix:a}})}u.deleteShader(R),u.deleteShader(C),s=new s0(u,T),o=function(e,t){let i={},n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let r=0;r0,Z=a.clearcoat>0,J=a.dispersion>0,K=a.iridescence>0,$=a.sheen>0,Q=a.transmission>0,ee=Y&&!!a.anisotropyMap,et=Z&&!!a.clearcoatMap,ei=Z&&!!a.clearcoatNormalMap,en=Z&&!!a.clearcoatRoughnessMap,er=K&&!!a.iridescenceMap,es=K&&!!a.iridescenceThicknessMap,eo=$&&!!a.sheenColorMap,el=$&&!!a.sheenRoughnessMap,eh=!!a.specularMap,eu=!!a.specularColorMap,ec=!!a.specularIntensityMap,ed=Q&&!!a.transmissionMap,ep=Q&&!!a.thicknessMap,ef=!!a.gradientMap,em=!!a.alphaMap,eg=a.alphaTest>0,ev=!!a.alphaHash,e_=!!a.extensions,ey=ea;a.toneMapped&&(null===N||!0===N.isXRRenderTarget)&&(ey=e.toneMapping);let eM={shaderID:P,shaderType:a.type,shaderName:a.name,vertexShader:_,fragmentShader:y,defines:a.defines,customVertexShaderID:S,customFragmentShaderID:T,isRawShaderMaterial:!0===a.isRawShaderMaterial,glslVersion:a.glslVersion,precision:p,batching:O,instancing:D,instancingColor:D&&null!==v.instanceColor,instancingMorph:D&&null!==v.morphTexture,supportsVertexTextures:d,outputColorSpace:null===N?e.outputColorSpace:!0===N.isXRRenderTarget?N.texture.colorSpace:tj,alphaToCoverage:!!a.alphaToCoverage,map:F,matcap:B,envMap:z,envMapMode:z&&R.mapping,envMapCubeUVHeight:C,aoMap:k,lightMap:V,bumpMap:H,normalMap:G,displacementMap:d&&W,emissiveMap:X,normalMapObjectSpace:G&&a.normalMapType===tG,normalMapTangentSpace:G&&a.normalMapType===tH,metalnessMap:j,roughnessMap:q,anisotropy:Y,anisotropyMap:ee,clearcoat:Z,clearcoatMap:et,clearcoatNormalMap:ei,clearcoatRoughnessMap:en,dispersion:J,iridescence:K,iridescenceMap:er,iridescenceThicknessMap:es,sheen:$,sheenColorMap:eo,sheenRoughnessMap:el,specularMap:eh,specularColorMap:eu,specularIntensityMap:ec,transmission:Q,transmissionMap:ed,thicknessMap:ep,gradientMap:ef,opaque:!1===a.transparent&&a.blending===b&&!1===a.alphaToCoverage,alphaMap:em,alphaTest:eg,alphaHash:ev,combine:a.combine,mapUv:F&&m(a.map.channel),aoMapUv:k&&m(a.aoMap.channel),lightMapUv:V&&m(a.lightMap.channel),bumpMapUv:H&&m(a.bumpMap.channel),normalMapUv:G&&m(a.normalMap.channel),displacementMapUv:W&&m(a.displacementMap.channel),emissiveMapUv:X&&m(a.emissiveMap.channel),metalnessMapUv:j&&m(a.metalnessMap.channel),roughnessMapUv:q&&m(a.roughnessMap.channel),anisotropyMapUv:ee&&m(a.anisotropyMap.channel),clearcoatMapUv:et&&m(a.clearcoatMap.channel),clearcoatNormalMapUv:ei&&m(a.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:en&&m(a.clearcoatRoughnessMap.channel),iridescenceMapUv:er&&m(a.iridescenceMap.channel),iridescenceThicknessMapUv:es&&m(a.iridescenceThicknessMap.channel),sheenColorMapUv:eo&&m(a.sheenColorMap.channel),sheenRoughnessMapUv:el&&m(a.sheenRoughnessMap.channel),specularMapUv:eh&&m(a.specularMap.channel),specularColorMapUv:eu&&m(a.specularColorMap.channel),specularIntensityMapUv:ec&&m(a.specularIntensityMap.channel),transmissionMapUv:ed&&m(a.transmissionMap.channel),thicknessMapUv:ep&&m(a.thicknessMap.channel),alphaMapUv:em&&m(a.alphaMap.channel),vertexTangents:!!w.attributes.tangent&&(G||Y),vertexColors:a.vertexColors,vertexAlphas:!0===a.vertexColors&&!!w.attributes.color&&4===w.attributes.color.itemSize,pointsUvs:!0===v.isPoints&&!!w.attributes.uv&&(F||em),fog:!!E,useFog:!0===a.fog,fogExp2:!!E&&E.isFogExp2,flatShading:!0===a.flatShading,sizeAttenuation:!0===a.sizeAttenuation,logarithmicDepthBuffer:c,skinning:!0===v.isSkinnedMesh,morphTargets:void 0!==w.morphAttributes.position,morphNormals:void 0!==w.morphAttributes.normal,morphColors:void 0!==w.morphAttributes.color,morphTargetsCount:I,morphTextureStride:U,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numClippingPlanes:s.numPlanes,numClipIntersection:s.numIntersection,dithering:a.dithering,shadowMapEnabled:e.shadowMap.enabled&&u.length>0,shadowMapType:e.shadowMap.type,toneMapping:ey,useLegacyLights:e._useLegacyLights,decodeVideoTexture:F&&!0===a.map.isVideoTexture&&i0.getTransfer(a.map.colorSpace)===tJ,premultipliedAlpha:a.premultipliedAlpha,doubleSided:a.side===M,flipSided:a.side===x,useDepthPacking:a.depthPacking>=0,depthPacking:a.depthPacking||0,index0AttributeName:a.index0AttributeName,extensionClipCullDistance:e_&&!0===a.extensions.clipCullDistance&&n.has("WEBGL_clip_cull_distance"),extensionMultiDraw:e_&&!0===a.extensions.multiDraw&&n.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:n.has("KHR_parallel_shader_compile"),customProgramCacheKey:a.customProgramCacheKey()};return eM.vertexUv1s=h.has(1),eM.vertexUv2s=h.has(2),eM.vertexUv3s=h.has(3),h.clear(),eM},getProgramCacheKey:function(t){let i=[];if(t.shaderID?i.push(t.shaderID):(i.push(t.customVertexShaderID),i.push(t.customFragmentShaderID)),void 0!==t.defines)for(let e in t.defines)i.push(e),i.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(i.push(t.precision),i.push(t.outputColorSpace),i.push(t.envMapMode),i.push(t.envMapCubeUVHeight),i.push(t.mapUv),i.push(t.alphaMapUv),i.push(t.lightMapUv),i.push(t.aoMapUv),i.push(t.bumpMapUv),i.push(t.normalMapUv),i.push(t.displacementMapUv),i.push(t.emissiveMapUv),i.push(t.metalnessMapUv),i.push(t.roughnessMapUv),i.push(t.anisotropyMapUv),i.push(t.clearcoatMapUv),i.push(t.clearcoatNormalMapUv),i.push(t.clearcoatRoughnessMapUv),i.push(t.iridescenceMapUv),i.push(t.iridescenceThicknessMapUv),i.push(t.sheenColorMapUv),i.push(t.sheenRoughnessMapUv),i.push(t.specularMapUv),i.push(t.specularColorMapUv),i.push(t.specularIntensityMapUv),i.push(t.transmissionMapUv),i.push(t.thicknessMapUv),i.push(t.combine),i.push(t.fogExp2),i.push(t.sizeAttenuation),i.push(t.morphTargetsCount),i.push(t.morphAttributeCount),i.push(t.numDirLights),i.push(t.numPointLights),i.push(t.numSpotLights),i.push(t.numSpotLightMaps),i.push(t.numHemiLights),i.push(t.numRectAreaLights),i.push(t.numDirLightShadows),i.push(t.numPointLightShadows),i.push(t.numSpotLightShadows),i.push(t.numSpotLightShadowsWithMaps),i.push(t.numLightProbes),i.push(t.shadowMapType),i.push(t.toneMapping),i.push(t.numClippingPlanes),i.push(t.numClipIntersection),i.push(t.depthPacking),o.disableAll(),t.supportsVertexTextures&&o.enable(0),t.instancing&&o.enable(1),t.instancingColor&&o.enable(2),t.instancingMorph&&o.enable(3),t.matcap&&o.enable(4),t.envMap&&o.enable(5),t.normalMapObjectSpace&&o.enable(6),t.normalMapTangentSpace&&o.enable(7),t.clearcoat&&o.enable(8),t.iridescence&&o.enable(9),t.alphaTest&&o.enable(10),t.vertexColors&&o.enable(11),t.vertexAlphas&&o.enable(12),t.vertexUv1s&&o.enable(13),t.vertexUv2s&&o.enable(14),t.vertexUv3s&&o.enable(15),t.vertexTangents&&o.enable(16),t.anisotropy&&o.enable(17),t.alphaHash&&o.enable(18),t.batching&&o.enable(19),t.dispersion&&o.enable(20),i.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.skinning&&o.enable(4),t.morphTargets&&o.enable(5),t.morphNormals&&o.enable(6),t.morphColors&&o.enable(7),t.premultipliedAlpha&&o.enable(8),t.shadowMapEnabled&&o.enable(9),t.useLegacyLights&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.useDepthPacking&&o.enable(13),t.dithering&&o.enable(14),t.transmission&&o.enable(15),t.sheen&&o.enable(16),t.opaque&&o.enable(17),t.pointsUvs&&o.enable(18),t.decodeVideoTexture&&o.enable(19),t.alphaToCoverage&&o.enable(20),i.push(o.mask),i.push(e.outputColorSpace)),i.push(t.customProgramCacheKey),i.join()},getUniforms:function(e){let t;let i=f[e.type];if(i){let e=aw[i];t=ar.clone(e.uniforms)}else t=e.uniforms;return t},acquireProgram:function(t,i){let n;for(let e=0,t=u.length;e0?n.push(u):!0===s.transparent?r.push(u):i.push(u)},unshift:function(e,t,s,o,l,h){let u=a(e,t,s,o,l,h);s.transmission>0?n.unshift(u):!0===s.transparent?r.unshift(u):i.unshift(u)},finish:function(){for(let i=t,n=e.length;i1&&i.sort(e||oc),n.length>1&&n.sort(t||od),r.length>1&&r.sort(t||od)}}}function of(){let e=new WeakMap;return{get:function(t,i){let n;let r=e.get(t);return void 0===r?(n=new op,e.set(t,[n])):i>=r.length?(n=new op,r.push(n)):n=r[i],n},dispose:function(){e=new WeakMap}}}function om(){let e={};return{get:function(t){let i;if(void 0!==e[t.id])return e[t.id];switch(t.type){case"DirectionalLight":i={direction:new no,color:new rg};break;case"SpotLight":i={position:new no,direction:new no,color:new rg,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":i={position:new no,color:new rg,distance:0,decay:0};break;case"HemisphereLight":i={direction:new no,skyColor:new rg,groundColor:new rg};break;case"RectAreaLight":i={color:new rg,position:new no,halfWidth:new no,halfHeight:new no}}return e[t.id]=i,i}}}let og=0;function ov(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function o_(e){let t=new om,i=function(){let e={};return{get:function(t){let i;if(void 0!==e[t.id])return e[t.id];switch(t.type){case"DirectionalLight":case"SpotLight":i={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ik};break;case"PointLight":i={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ik,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=i,i}}}(),n={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)n.probe.push(new no);let r=new no,a=new nF,s=new nF;return{setup:function(r,a){let s=0,o=0,l=0;for(let e=0;e<9;e++)n.probe[e].set(0,0,0);let h=0,u=0,c=0,d=0,p=0,f=0,m=0,g=0,v=0,_=0,y=0;r.sort(ov);let x=!0===a?Math.PI:1;for(let e=0,a=r.length;e0&&(!0===e.has("OES_texture_float_linear")?(n.rectAreaLTC1=aE.LTC_FLOAT_1,n.rectAreaLTC2=aE.LTC_FLOAT_2):(n.rectAreaLTC1=aE.LTC_HALF_1,n.rectAreaLTC2=aE.LTC_HALF_2)),n.ambient[0]=s,n.ambient[1]=o,n.ambient[2]=l;let M=n.hash;(M.directionalLength!==h||M.pointLength!==u||M.spotLength!==c||M.rectAreaLength!==d||M.hemiLength!==p||M.numDirectionalShadows!==f||M.numPointShadows!==m||M.numSpotShadows!==g||M.numSpotMaps!==v||M.numLightProbes!==y)&&(n.directional.length=h,n.spot.length=c,n.rectArea.length=d,n.point.length=u,n.hemi.length=p,n.directionalShadow.length=f,n.directionalShadowMap.length=f,n.pointShadow.length=m,n.pointShadowMap.length=m,n.spotShadow.length=g,n.spotShadowMap.length=g,n.directionalShadowMatrix.length=f,n.pointShadowMatrix.length=m,n.spotLightMatrix.length=g+v-_,n.spotLightMap.length=v,n.numSpotLightShadowsWithMaps=_,n.numLightProbes=y,M.directionalLength=h,M.pointLength=u,M.spotLength=c,M.rectAreaLength=d,M.hemiLength=p,M.numDirectionalShadows=f,M.numPointShadows=m,M.numSpotShadows=g,M.numSpotMaps=v,M.numLightProbes=y,n.version=og++)},setupView:function(e,t){let i=0,o=0,l=0,h=0,u=0,c=t.matrixWorldInverse;for(let t=0,d=e.length;t=a.length?(r=new oy(e),a.push(r)):r=a[n],r},dispose:function(){t=new WeakMap}}}class oM extends ry{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=tk,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class oS extends ry{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}function ob(e,t,i){let n=new ax,r=new ik,a=new ik,s=new i7,o=new oM({depthPacking:tV}),l=new oS,h={},u=i.maxTextureSize,c={[y]:x,[x]:y,[M]:M},d=new aa({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new ik},radius:{value:4}},vertexShader:"void main() {\n gl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include \nvoid main() {\n const float samples = float( VSM_SAMPLES );\n float mean = 0.0;\n float squared_mean = 0.0;\n float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n float uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n for ( float i = 0.0; i < samples; i ++ ) {\n float uvOffset = uvStart + i * uvStride;\n #ifdef HORIZONTAL_PASS\n vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n mean += distribution.x;\n squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n #else\n float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n mean += depth;\n squared_mean += depth * depth;\n #endif\n }\n mean = mean / samples;\n squared_mean = squared_mean / samples;\n float std_dev = sqrt( squared_mean - mean * mean );\n gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),p=d.clone();p.defines.HORIZONTAL_PASS=1;let f=new rW;f.setAttribute("position",new rA(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let m=new r9(f,d),v=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=g;let b=this.type;function T(t,i,n,r){let a=null,s=!0===n.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(void 0!==s)a=s;else if(a=!0===n.isPointLight?l:o,e.localClippingEnabled&&!0===i.clipShadows&&Array.isArray(i.clippingPlanes)&&0!==i.clippingPlanes.length||i.displacementMap&&0!==i.displacementScale||i.alphaMap&&i.alphaTest>0||i.map&&i.alphaTest>0){let e=a.uuid,t=i.uuid,n=h[e];void 0===n&&(n={},h[e]=n);let r=n[t];void 0===r&&(r=a.clone(),n[t]=r,i.addEventListener("dispose",E)),a=r}return a.visible=i.visible,a.wireframe=i.wireframe,r===_?a.side=null!==i.shadowSide?i.shadowSide:i.side:a.side=null!==i.shadowSide?i.shadowSide:c[i.side],a.alphaMap=i.alphaMap,a.alphaTest=i.alphaTest,a.map=i.map,a.clipShadows=i.clipShadows,a.clippingPlanes=i.clippingPlanes,a.clipIntersection=i.clipIntersection,a.displacementMap=i.displacementMap,a.displacementScale=i.displacementScale,a.displacementBias=i.displacementBias,a.wireframeLinewidth=i.wireframeLinewidth,a.linewidth=i.linewidth,!0===n.isPointLight&&!0===a.isMeshDistanceMaterial&&(e.properties.get(a).light=n),a}function E(e){for(let t in e.target.removeEventListener("dispose",E),h){let i=h[t],n=e.target.uuid;n in i&&(i[n].dispose(),delete i[n])}}this.render=function(i,o,l){if(!1===v.enabled||!1===v.autoUpdate&&!1===v.needsUpdate||0===i.length)return;let h=e.getRenderTarget(),c=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),g=e.state;g.setBlending(S),g.buffers.color.setClear(1,1,1,1),g.buffers.depth.setTest(!0),g.setScissorTest(!1);let y=b!==_&&this.type===_,x=b===_&&this.type!==_;for(let h=0,c=i.length;hu||r.y>u)&&(r.x>u&&(a.x=Math.floor(u/v.x),r.x=a.x*v.x,f.mapSize.x=a.x),r.y>u&&(a.y=Math.floor(u/v.y),r.y=a.y*v.y,f.mapSize.y=a.y)),null===f.map||!0===y||!0===x){let e=this.type!==_?{minFilter:eT,magFilter:eT}:{};null!==f.map&&f.map.dispose(),f.map=new nt(r.x,r.y,e),f.map.texture.name=c.name+".shadowMap",f.camera.updateProjectionMatrix()}e.setRenderTarget(f.map),e.clear();let M=f.getViewportCount();for(let i=0;i=1:-1!==ef.indexOf("OpenGL ES")&&(ep=parseFloat(/^OpenGL ES (\d)/.exec(ef)[1])>=2);let em=null,eg={},ev=e.getParameter(e.SCISSOR_BOX),e_=e.getParameter(e.VIEWPORT),ey=new i7().fromArray(ev),ex=new i7().fromArray(e_);function eM(t,i,n,r){let a=new Uint8Array(4),s=e.createTexture();e.bindTexture(t,s),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let s=0;si||r.height>i)&&(n=i/Math.max(r.width,r.height)),n<1){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap||"undefined"!=typeof VideoFrame&&e instanceof VideoFrame){let i=Math.floor(n*r.width),a=Math.floor(n*r.height);void 0===o&&(o=f(i,a));let s=t?f(i,a):o;return s.width=i,s.height=a,s.getContext("2d").drawImage(e,0,0,i,a),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+r.width+"x"+r.height+") to ("+i+"x"+a+")."),s}"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+r.width+"x"+r.height+").")}return e}function g(e){return e.generateMipmaps&&e.minFilter!==eT&&e.minFilter!==eC}function v(t){e.generateMipmap(t)}function _(i,n,r,a,s=!1){if(null!==i){if(void 0!==e[i])return e[i];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+i+"'")}let o=n;if(n===e.RED&&(r===e.FLOAT&&(o=e.R32F),r===e.HALF_FLOAT&&(o=e.R16F),r===e.UNSIGNED_BYTE&&(o=e.R8)),n===e.RED_INTEGER&&(r===e.UNSIGNED_BYTE&&(o=e.R8UI),r===e.UNSIGNED_SHORT&&(o=e.R16UI),r===e.UNSIGNED_INT&&(o=e.R32UI),r===e.BYTE&&(o=e.R8I),r===e.SHORT&&(o=e.R16I),r===e.INT&&(o=e.R32I)),n===e.RG&&(r===e.FLOAT&&(o=e.RG32F),r===e.HALF_FLOAT&&(o=e.RG16F),r===e.UNSIGNED_BYTE&&(o=e.RG8)),n===e.RG_INTEGER&&(r===e.UNSIGNED_BYTE&&(o=e.RG8UI),r===e.UNSIGNED_SHORT&&(o=e.RG16UI),r===e.UNSIGNED_INT&&(o=e.RG32UI),r===e.BYTE&&(o=e.RG8I),r===e.SHORT&&(o=e.RG16I),r===e.INT&&(o=e.RG32I)),n===e.RGB&&r===e.UNSIGNED_INT_5_9_9_9_REV&&(o=e.RGB9_E5),n===e.RGBA){let t=s?tZ:i0.getTransfer(a);r===e.FLOAT&&(o=e.RGBA32F),r===e.HALF_FLOAT&&(o=e.RGBA16F),r===e.UNSIGNED_BYTE&&(o=t===tJ?e.SRGB8_ALPHA8:e.RGBA8),r===e.UNSIGNED_SHORT_4_4_4_4&&(o=e.RGBA4),r===e.UNSIGNED_SHORT_5_5_5_1&&(o=e.RGB5_A1)}return(o===e.R16F||o===e.R32F||o===e.RG16F||o===e.RG32F||o===e.RGBA16F||o===e.RGBA32F)&&t.get("EXT_color_buffer_float"),o}function y(e,t){return!0===g(e)||e.isFramebufferTexture&&e.minFilter!==eT&&e.minFilter!==eC?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function x(e){let t=e.target;t.removeEventListener("dispose",x),function(e){let t=n.get(e);if(void 0===t.__webglInit)return;let i=e.source,r=d.get(i);if(r){let n=r[t.__cacheKey];n.usedTimes--,0===n.usedTimes&&S(e),0===Object.keys(r).length&&d.delete(i)}n.remove(e)}(t),t.isVideoTexture&&c.delete(t)}function M(t){let i=t.target;i.removeEventListener("dispose",M),function(t){let i=n.get(t);if(t.depthTexture&&t.depthTexture.dispose(),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(i.__webglFramebuffer[t]))for(let n=0;n0&&a.__version!==t.version){let e=t.image;if(null===e)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(!1===e.complete)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{P(a,t,r);return}}i.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+r)}let E={[eM]:e.REPEAT,[eS]:e.CLAMP_TO_EDGE,[eb]:e.MIRRORED_REPEAT},w={[eT]:e.NEAREST,[eE]:e.NEAREST_MIPMAP_NEAREST,[eA]:e.NEAREST_MIPMAP_LINEAR,[eC]:e.LINEAR,[eP]:e.LINEAR_MIPMAP_NEAREST,[eI]:e.LINEAR_MIPMAP_LINEAR},A={[is]:e.NEVER,[ip]:e.ALWAYS,[io]:e.LESS,[ih]:e.LEQUAL,[il]:e.EQUAL,[id]:e.GEQUAL,[iu]:e.GREATER,[ic]:e.NOTEQUAL};function R(i,a){if(a.type===ek&&!1===t.has("OES_texture_float_linear")&&(a.magFilter===eC||a.magFilter===eP||a.magFilter===eA||a.magFilter===eI||a.minFilter===eC||a.minFilter===eP||a.minFilter===eA||a.minFilter===eI)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),e.texParameteri(i,e.TEXTURE_WRAP_S,E[a.wrapS]),e.texParameteri(i,e.TEXTURE_WRAP_T,E[a.wrapT]),(i===e.TEXTURE_3D||i===e.TEXTURE_2D_ARRAY)&&e.texParameteri(i,e.TEXTURE_WRAP_R,E[a.wrapR]),e.texParameteri(i,e.TEXTURE_MAG_FILTER,w[a.magFilter]),e.texParameteri(i,e.TEXTURE_MIN_FILTER,w[a.minFilter]),a.compareFunction&&(e.texParameteri(i,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(i,e.TEXTURE_COMPARE_FUNC,A[a.compareFunction])),!0===t.has("EXT_texture_filter_anisotropic")&&a.magFilter!==eT&&(a.minFilter===eA||a.minFilter===eI)&&(a.type!==ek||!1!==t.has("OES_texture_float_linear"))&&(a.anisotropy>1||n.get(a).__currentAnisotropy)){let s=t.get("EXT_texture_filter_anisotropic");e.texParameterf(i,s.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,r.getMaxAnisotropy())),n.get(a).__currentAnisotropy=a.anisotropy}}function C(t,i){let n=!1;void 0===t.__webglInit&&(t.__webglInit=!0,i.addEventListener("dispose",x));let r=i.source,a=d.get(r);void 0===a&&(a={},d.set(r,a));let o=function(e){let t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}(i);if(o!==t.__cacheKey){void 0===a[o]&&(a[o]={texture:e.createTexture(),usedTimes:0},s.memory.textures++,n=!0),a[o].usedTimes++;let r=a[t.__cacheKey];void 0!==r&&(a[t.__cacheKey].usedTimes--,0===r.usedTimes&&S(i)),t.__cacheKey=o,t.__webglTexture=a[o].texture}return n}function P(t,s,o){let l=e.TEXTURE_2D;(s.isDataArrayTexture||s.isCompressedArrayTexture)&&(l=e.TEXTURE_2D_ARRAY),s.isData3DTexture&&(l=e.TEXTURE_3D);let h=C(t,s),u=s.source;i.bindTexture(l,t.__webglTexture,e.TEXTURE0+o);let c=n.get(u);if(u.version!==c.__version||!0===h){let t;i.activeTexture(e.TEXTURE0+o);let n=i0.getPrimaries(i0.workingColorSpace),d=s.colorSpace===tW?null:i0.getPrimaries(s.colorSpace),p=s.colorSpace===tW||n===d?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,s.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,s.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,s.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,p);let f=m(s.image,!1,r.maxTextureSize);f=B(s,f);let x=a.convert(s.format,s.colorSpace),M=a.convert(s.type),S=_(s.internalFormat,x,M,s.colorSpace,s.isVideoTexture);R(l,s);let b=s.mipmaps,T=!0!==s.isVideoTexture,E=void 0===c.__version||!0===h,w=u.dataReady,A=y(s,f);if(s.isDepthTexture)S=e.DEPTH_COMPONENT16,s.type===ek?S=e.DEPTH_COMPONENT32F:s.type===ez?S=e.DEPTH_COMPONENT24:s.type===eW&&(S=e.DEPTH24_STENCIL8),E&&(T?i.texStorage2D(e.TEXTURE_2D,1,S,f.width,f.height):i.texImage2D(e.TEXTURE_2D,0,S,f.width,f.height,0,x,M,null));else if(s.isDataTexture){if(b.length>0){T&&E&&i.texStorage2D(e.TEXTURE_2D,A,S,b[0].width,b[0].height);for(let n=0,r=b.length;n>=1,n>>=1}}}else if(b.length>0){if(T&&E){let t=z(b[0]);i.texStorage2D(e.TEXTURE_2D,A,S,t.width,t.height)}for(let n=0,r=b.length;n>u),n=Math.max(1,r.height>>u);h===e.TEXTURE_3D||h===e.TEXTURE_2D_ARRAY?i.texImage3D(h,u,p,t,n,r.depth,0,c,d,null):i.texImage2D(h,u,p,t,n,0,c,d,null)}i.bindFramebuffer(e.FRAMEBUFFER,t),F(r)?l.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,o,h,n.get(s).__webglTexture,0,O(r)):(h===e.TEXTURE_2D||h>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&h<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,o,h,n.get(s).__webglTexture,u),i.bindFramebuffer(e.FRAMEBUFFER,null)}function I(t,i,n){if(e.bindRenderbuffer(e.RENDERBUFFER,t),i.depthBuffer&&!i.stencilBuffer){let r=e.DEPTH_COMPONENT24;if(n||F(i)){let t=i.depthTexture;t&&t.isDepthTexture&&(t.type===ek?r=e.DEPTH_COMPONENT32F:t.type===ez&&(r=e.DEPTH_COMPONENT24));let n=O(i);F(i)?l.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,n,r,i.width,i.height):e.renderbufferStorageMultisample(e.RENDERBUFFER,n,r,i.width,i.height)}else e.renderbufferStorage(e.RENDERBUFFER,r,i.width,i.height);e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t)}else if(i.depthBuffer&&i.stencilBuffer){let r=O(i);n&&!1===F(i)?e.renderbufferStorageMultisample(e.RENDERBUFFER,r,e.DEPTH24_STENCIL8,i.width,i.height):F(i)?l.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,r,e.DEPTH24_STENCIL8,i.width,i.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,i.width,i.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.RENDERBUFFER,t)}else{let t=i.textures;for(let r=0;r0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==i.__useRenderToTexture}function B(e,t){let i=e.colorSpace,n=e.format,r=e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||i!==tj&&i!==tW&&(i0.getTransfer(i)===tJ?(n!==eY||r!==eN)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",i)),t}function z(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement?(u.width=e.naturalWidth||e.width,u.height=e.naturalHeight||e.height):"undefined"!=typeof VideoFrame&&e instanceof VideoFrame?(u.width=e.displayWidth,u.height=e.displayHeight):(u.width=e.width,u.height=e.height),u}this.allocateTextureUnit=function(){let e=b;return e>=r.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+r.maxTextures),b+=1,e},this.resetTextureUnits=function(){b=0},this.setTexture2D=T,this.setTexture2DArray=function(t,r){let a=n.get(t);if(t.version>0&&a.__version!==t.version){P(a,t,r);return}i.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+r)},this.setTexture3D=function(t,r){let a=n.get(t);if(t.version>0&&a.__version!==t.version){P(a,t,r);return}i.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+r)},this.setTextureCube=function(t,s){let o=n.get(t);if(t.version>0&&o.__version!==t.version){(function(t,s,o){if(6!==s.image.length)return;let l=C(t,s),h=s.source;i.bindTexture(e.TEXTURE_CUBE_MAP,t.__webglTexture,e.TEXTURE0+o);let u=n.get(h);if(h.version!==u.__version||!0===l){let t;i.activeTexture(e.TEXTURE0+o);let n=i0.getPrimaries(i0.workingColorSpace),c=s.colorSpace===tW?null:i0.getPrimaries(s.colorSpace),d=s.colorSpace===tW||n===c?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,s.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,s.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,s.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,d);let p=s.isCompressedTexture||s.image[0].isCompressedTexture,f=s.image[0]&&s.image[0].isDataTexture,x=[];for(let e=0;e<6;e++)p||f?x[e]=f?s.image[e].image:s.image[e]:x[e]=m(s.image[e],!0,r.maxCubemapSize),x[e]=B(s,x[e]);let M=x[0],S=a.convert(s.format,s.colorSpace),b=a.convert(s.type),T=_(s.internalFormat,S,b,s.colorSpace),E=!0!==s.isVideoTexture,w=void 0===u.__version||!0===l,A=h.dataReady,C=y(s,M);if(R(e.TEXTURE_CUBE_MAP,s),p){E&&w&&i.texStorage2D(e.TEXTURE_CUBE_MAP,C,T,M.width,M.height);for(let n=0;n<6;n++){t=x[n].mipmaps;for(let r=0;r0&&C++;let n=z(x[0]);i.texStorage2D(e.TEXTURE_CUBE_MAP,C,T,n.width,n.height)}for(let n=0;n<6;n++)if(f){E?A&&i.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+n,0,0,0,x[n].width,x[n].height,S,b,x[n].data):i.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+n,0,T,x[n].width,x[n].height,0,S,b,x[n].data);for(let r=0;r1;if(!c&&(void 0===l.__webglTexture&&(l.__webglTexture=e.createTexture()),l.__version=r.version,s.memory.textures++),u){o.__webglFramebuffer=[];for(let t=0;t<6;t++)if(r.mipmaps&&r.mipmaps.length>0){o.__webglFramebuffer[t]=[];for(let i=0;i0){o.__webglFramebuffer=[];for(let t=0;t0&&!1===F(t)){o.__webglMultisampledFramebuffer=e.createFramebuffer(),o.__webglColorRenderbuffer=[],i.bindFramebuffer(e.FRAMEBUFFER,o.__webglMultisampledFramebuffer);for(let i=0;i0)for(let n=0;n0)for(let i=0;i0){if(!1===F(t)){let r=t.textures,a=t.width,s=t.height,o=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=n.get(t),c=r.length>1;if(c)for(let t=0;t.025?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!l.inputState.pinching&&s<=.015&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==o&&e.gripSpace&&null!==(r=t.getPose(e.gripSpace,i))&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1);null!==s&&(null===(n=t.getPose(e.targetRaySpace,i))&&null!==r&&(n=r),null!==n&&(s.matrix.fromArray(n.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,n.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(n.linearVelocity)):s.hasLinearVelocity=!1,n.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(n.angularVelocity)):s.hasAngularVelocity=!1,this.dispatchEvent(oC)))}return null!==s&&(s.visible=null!==n),null!==o&&(o.visible=null!==r),null!==l&&(l.visible=null!==a),this}_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){let i=new oR;i.matrixAutoUpdate=!1,i.visible=!1,e.joints[t.jointName]=i,e.add(i)}return e.joints[t.jointName]}}let oL=` -void main() { - - gl_Position = vec4( position, 1.0 ); - -}`,oI=` -uniform sampler2DArray depthColor; -uniform float depthWidth; -uniform float depthHeight; - -void main() { - - vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); - - if ( coord.x >= 1.0 ) { - - gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; - - } else { - - gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; - - } - -}`;class oU{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,i){if(null===this.texture){let n=new i9;e.properties.get(n).__webglTexture=t.texture,(t.depthNear!=i.depthNear||t.depthFar!=i.depthFar)&&(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=n}}render(e,t){if(null!==this.texture){if(null===this.mesh){let e=t.cameras[0].viewport,i=new aa({vertexShader:oL,fragmentShader:oI,uniforms:{depthColor:{value:this.texture},depthWidth:{value:e.z},depthHeight:{value:e.w}}});this.mesh=new r9(new ab(20,20),i)}e.render(this.mesh,t)}}reset(){this.texture=null,this.mesh=null}}class oN extends iR{constructor(e,t){super();let i=this,n=null,r=1,a=null,s="local-floor",o=1,l=null,h=null,u=null,c=null,d=null,p=null,f=new oU,m=t.getContextAttributes(),g=null,v=null,_=[],y=[],x=new ik,M=null,S=new au;S.layers.enable(1),S.viewport=new i7;let b=new au;b.layers.enable(2),b.viewport=new i7;let T=[S,b],E=new oA;E.layers.enable(1),E.layers.enable(2);let w=null,A=null;function R(e){let t=y.indexOf(e.inputSource);if(-1===t)return;let i=_[t];void 0!==i&&(i.update(e.inputSource,e.frame,l||a),i.dispatchEvent({type:e.type,data:e.inputSource}))}function C(){n.removeEventListener("select",R),n.removeEventListener("selectstart",R),n.removeEventListener("selectend",R),n.removeEventListener("squeeze",R),n.removeEventListener("squeezestart",R),n.removeEventListener("squeezeend",R),n.removeEventListener("end",C),n.removeEventListener("inputsourceschange",P);for(let e=0;e<_.length;e++){let t=y[e];null!==t&&(y[e]=null,_[e].disconnect(t))}w=null,A=null,f.reset(),e.setRenderTarget(g),d=null,c=null,u=null,n=null,v=null,D.stop(),i.isPresenting=!1,e.setPixelRatio(M),e.setSize(x.width,x.height,!1),i.dispatchEvent({type:"sessionend"})}function P(e){for(let t=0;t=0&&(y[n]=null,_[n].disconnect(i))}for(let t=0;t=y.length){y.push(i),n=e;break}if(null===y[e]){y[e]=i,n=e;break}}if(-1===n)break}let r=_[n];r&&r.connect(i)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=_[e];return void 0===t&&(t=new oP,_[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=_[e];return void 0===t&&(t=new oP,_[e]=t),t.getGripSpace()},this.getHand=function(e){let t=_[e];return void 0===t&&(t=new oP,_[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){r=e,!0===i.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(e){s=e,!0===i.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return l||a},this.setReferenceSpace=function(e){l=e},this.getBaseLayer=function(){return null!==c?c:d},this.getBinding=function(){return u},this.getFrame=function(){return p},this.getSession=function(){return n},this.setSession=async function(h){if(null!==(n=h)){if(g=e.getRenderTarget(),n.addEventListener("select",R),n.addEventListener("selectstart",R),n.addEventListener("selectend",R),n.addEventListener("squeeze",R),n.addEventListener("squeezestart",R),n.addEventListener("squeezeend",R),n.addEventListener("end",C),n.addEventListener("inputsourceschange",P),!0!==m.xrCompatible&&await t.makeXRCompatible(),M=e.getPixelRatio(),e.getSize(x),void 0===n.renderState.layers){let i={antialias:m.antialias,alpha:!0,depth:m.depth,stencil:m.stencil,framebufferScaleFactor:r};d=new XRWebGLLayer(n,t,i),n.updateRenderState({baseLayer:d}),e.setPixelRatio(1),e.setSize(d.framebufferWidth,d.framebufferHeight,!1),v=new nt(d.framebufferWidth,d.framebufferHeight,{format:eY,type:eN,colorSpace:e.outputColorSpace,stencilBuffer:m.stencil})}else{let i=null,a=null,s=null;m.depth&&(s=m.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,i=m.stencil?e$:eK,a=m.stencil?eW:ez);let o={colorFormat:t.RGBA8,depthFormat:s,scaleFactor:r};c=(u=new XRWebGLBinding(n,t)).createProjectionLayer(o),n.updateRenderState({layers:[c]}),e.setPixelRatio(1),e.setSize(c.textureWidth,c.textureHeight,!1),v=new nt(c.textureWidth,c.textureHeight,{format:eY,type:eN,depthTexture:new a6(c.textureWidth,c.textureHeight,a,void 0,void 0,void 0,void 0,void 0,void 0,i),stencilBuffer:m.stencil,colorSpace:e.outputColorSpace,samples:m.antialias?4:0,resolveDepthBuffer:!1===c.ignoreDepthValues})}v.isXRRenderTarget=!0,this.setFoveation(o),l=null,a=await n.requestReferenceSpace(s),D.setContext(n),D.start(),i.isPresenting=!0,i.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(null!==n)return n.environmentBlendMode};let L=new no,I=new no;function U(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(null===n)return;null!==f.texture&&(e.near=f.depthNear,e.far=f.depthFar),E.near=b.near=S.near=e.near,E.far=b.far=S.far=e.far,(w!==E.near||A!==E.far)&&(n.updateRenderState({depthNear:E.near,depthFar:E.far}),w=E.near,A=E.far,S.near=w,S.far=A,b.near=w,b.far=A,S.updateProjectionMatrix(),b.updateProjectionMatrix(),e.updateProjectionMatrix());let t=e.parent,i=E.cameras;U(E,t);for(let e=0;e0&&(n.alphaTest.value=r.alphaTest);let a=t.get(r),s=a.envMap,o=a.envMapRotation;if(s&&(n.envMap.value=s,oD.copy(o),oD.x*=-1,oD.y*=-1,oD.z*=-1,s.isCubeTexture&&!1===s.isRenderTargetTexture&&(oD.y*=-1,oD.z*=-1),n.envMapRotation.value.setFromMatrix4(oO.makeRotationFromEuler(oD)),n.flipEnvMap.value=s.isCubeTexture&&!1===s.isRenderTargetTexture?-1:1,n.reflectivity.value=r.reflectivity,n.ior.value=r.ior,n.refractionRatio.value=r.refractionRatio),r.lightMap){n.lightMap.value=r.lightMap;let t=!0===e._useLegacyLights?Math.PI:1;n.lightMapIntensity.value=r.lightMapIntensity*t,i(r.lightMap,n.lightMapTransform)}r.aoMap&&(n.aoMap.value=r.aoMap,n.aoMapIntensity.value=r.aoMapIntensity,i(r.aoMap,n.aoMapTransform))}return{refreshFogUniforms:function(t,i){i.color.getRGB(t.fogColor.value,an(e)),i.isFog?(t.fogNear.value=i.near,t.fogFar.value=i.far):i.isFogExp2&&(t.fogDensity.value=i.density)},refreshMaterialUniforms:function(e,r,a,s,o){r.isMeshBasicMaterial?n(e,r):r.isMeshLambertMaterial?n(e,r):r.isMeshToonMaterial?(n(e,r),r.gradientMap&&(e.gradientMap.value=r.gradientMap)):r.isMeshPhongMaterial?(n(e,r),e.specular.value.copy(r.specular),e.shininess.value=Math.max(r.shininess,1e-4)):r.isMeshStandardMaterial?(n(e,r),e.metalness.value=r.metalness,r.metalnessMap&&(e.metalnessMap.value=r.metalnessMap,i(r.metalnessMap,e.metalnessMapTransform)),e.roughness.value=r.roughness,r.roughnessMap&&(e.roughnessMap.value=r.roughnessMap,i(r.roughnessMap,e.roughnessMapTransform)),r.envMap&&(e.envMapIntensity.value=r.envMapIntensity),r.isMeshPhysicalMaterial&&(e.ior.value=r.ior,r.sheen>0&&(e.sheenColor.value.copy(r.sheenColor).multiplyScalar(r.sheen),e.sheenRoughness.value=r.sheenRoughness,r.sheenColorMap&&(e.sheenColorMap.value=r.sheenColorMap,i(r.sheenColorMap,e.sheenColorMapTransform)),r.sheenRoughnessMap&&(e.sheenRoughnessMap.value=r.sheenRoughnessMap,i(r.sheenRoughnessMap,e.sheenRoughnessMapTransform))),r.clearcoat>0&&(e.clearcoat.value=r.clearcoat,e.clearcoatRoughness.value=r.clearcoatRoughness,r.clearcoatMap&&(e.clearcoatMap.value=r.clearcoatMap,i(r.clearcoatMap,e.clearcoatMapTransform)),r.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=r.clearcoatRoughnessMap,i(r.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),r.clearcoatNormalMap&&(e.clearcoatNormalMap.value=r.clearcoatNormalMap,i(r.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(r.clearcoatNormalScale),r.side===x&&e.clearcoatNormalScale.value.negate())),r.dispersion>0&&(e.dispersion.value=r.dispersion),r.iridescence>0&&(e.iridescence.value=r.iridescence,e.iridescenceIOR.value=r.iridescenceIOR,e.iridescenceThicknessMinimum.value=r.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=r.iridescenceThicknessRange[1],r.iridescenceMap&&(e.iridescenceMap.value=r.iridescenceMap,i(r.iridescenceMap,e.iridescenceMapTransform)),r.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=r.iridescenceThicknessMap,i(r.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),r.transmission>0&&(e.transmission.value=r.transmission,e.transmissionSamplerMap.value=o.texture,e.transmissionSamplerSize.value.set(o.width,o.height),r.transmissionMap&&(e.transmissionMap.value=r.transmissionMap,i(r.transmissionMap,e.transmissionMapTransform)),e.thickness.value=r.thickness,r.thicknessMap&&(e.thicknessMap.value=r.thicknessMap,i(r.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=r.attenuationDistance,e.attenuationColor.value.copy(r.attenuationColor)),r.anisotropy>0&&(e.anisotropyVector.value.set(r.anisotropy*Math.cos(r.anisotropyRotation),r.anisotropy*Math.sin(r.anisotropyRotation)),r.anisotropyMap&&(e.anisotropyMap.value=r.anisotropyMap,i(r.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=r.specularIntensity,e.specularColor.value.copy(r.specularColor),r.specularColorMap&&(e.specularColorMap.value=r.specularColorMap,i(r.specularColorMap,e.specularColorMapTransform)),r.specularIntensityMap&&(e.specularIntensityMap.value=r.specularIntensityMap,i(r.specularIntensityMap,e.specularIntensityMapTransform)))):r.isMeshMatcapMaterial?(n(e,r),r.matcap&&(e.matcap.value=r.matcap)):r.isMeshDepthMaterial?n(e,r):r.isMeshDistanceMaterial?(n(e,r),function(e,i){let n=t.get(i).light;e.referencePosition.value.setFromMatrixPosition(n.matrixWorld),e.nearDistance.value=n.shadow.camera.near,e.farDistance.value=n.shadow.camera.far}(e,r)):r.isMeshNormalMaterial?n(e,r):r.isLineBasicMaterial?(e.diffuse.value.copy(r.color),e.opacity.value=r.opacity,r.map&&(e.map.value=r.map,i(r.map,e.mapTransform)),r.isLineDashedMaterial&&(e.dashSize.value=r.dashSize,e.totalSize.value=r.dashSize+r.gapSize,e.scale.value=r.scale)):r.isPointsMaterial?(e.diffuse.value.copy(r.color),e.opacity.value=r.opacity,e.size.value=r.size*a,e.scale.value=.5*s,r.map&&(e.map.value=r.map,i(r.map,e.uvTransform)),r.alphaMap&&(e.alphaMap.value=r.alphaMap,i(r.alphaMap,e.alphaMapTransform)),r.alphaTest>0&&(e.alphaTest.value=r.alphaTest)):r.isSpriteMaterial?(e.diffuse.value.copy(r.color),e.opacity.value=r.opacity,e.rotation.value=r.rotation,r.map&&(e.map.value=r.map,i(r.map,e.mapTransform)),r.alphaMap&&(e.alphaMap.value=r.alphaMap,i(r.alphaMap,e.alphaMapTransform)),r.alphaTest>0&&(e.alphaTest.value=r.alphaTest)):r.isShadowMaterial?(e.color.value.copy(r.color),e.opacity.value=r.opacity):r.isShaderMaterial&&(r.uniformsNeedUpdate=!1)}}}function oB(e,t,i,n){let r={},a={},s=[],o=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function l(e){let t={boundary:0,storage:0};return"number"==typeof e||"boolean"==typeof e?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",e),t}function h(t){let i=t.target;i.removeEventListener("dispose",h);let n=s.indexOf(i.__bindingPointIndex);s.splice(n,1),e.deleteBuffer(r[i.id]),delete r[i.id],delete a[i.id]}return{bind:function(e,t){let i=t.program;n.uniformBlockBinding(e,i)},update:function(i,u){let c=r[i.id];void 0===c&&(function(e){let t=e.uniforms,i=0;for(let e=0,n=t.length;e0&&(i+=16-n),e.__size=i,e.__cache={}}(i),c=function(t){let i=function(){for(let e=0;el.matrixWorld.determinant(),v=function(e,t,i,a,l){var c;!0!==t.isScene&&(t=e_),o.resetTextureUnits();let d=t.fog,p=a.isMeshStandardMaterial?t.environment:null,f=null===J?j.outputColorSpace:!0===J.isXRRenderTarget?J.texture.colorSpace:tj,g=(a.isMeshStandardMaterial?u:h).get(a.envMap||p),v=!0===a.vertexColors&&!!i.attributes.color&&4===i.attributes.color.itemSize,y=!!i.attributes.tangent&&(!!a.normalMap||a.anisotropy>0),x=!!i.morphAttributes.position,M=!!i.morphAttributes.normal,S=!!i.morphAttributes.color,b=ea;a.toneMapped&&(null===J||!0===J.isXRRenderTarget)&&(b=j.toneMapping);let E=i.morphAttributes.position||i.morphAttributes.normal||i.morphAttributes.color,w=void 0!==E?E.length:0,A=s.get(a),R=G.state.lights;if(!0===ef&&(!0===em||e!==$)){let t=e===$&&a.id===K;_.setState(a,e,t)}let P=!1;a.version===A.__version?A.needsLights&&A.lightsStateVersion!==R.state.version?P=!0:A.outputColorSpace!==f?P=!0:l.isBatchedMesh&&!1===A.batching?P=!0:l.isBatchedMesh||!0!==A.batching?l.isInstancedMesh&&!1===A.instancing?P=!0:l.isInstancedMesh||!0!==A.instancing?l.isSkinnedMesh&&!1===A.skinning?P=!0:l.isSkinnedMesh||!0!==A.skinning?l.isInstancedMesh&&!0===A.instancingColor&&null===l.instanceColor?P=!0:l.isInstancedMesh&&!1===A.instancingColor&&null!==l.instanceColor?P=!0:l.isInstancedMesh&&!0===A.instancingMorph&&null===l.morphTexture?P=!0:l.isInstancedMesh&&!1===A.instancingMorph&&null!==l.morphTexture?P=!0:A.envMap!==g?P=!0:!0===a.fog&&A.fog!==d?P=!0:void 0!==A.numClippingPlanes&&(A.numClippingPlanes!==_.numPlanes||A.numIntersection!==_.numIntersection)?P=!0:A.vertexAlphas!==v?P=!0:A.vertexTangents!==y?P=!0:A.morphTargets!==x?P=!0:A.morphNormals!==M?P=!0:A.morphColors!==S?P=!0:A.toneMapping!==b?P=!0:A.morphTargetsCount!==w&&(P=!0):P=!0:P=!0:P=!0:(P=!0,A.__version=a.version);let L=A.currentProgram;!0===P&&(L=eX(a,t,l));let I=!1,U=!1,N=!1,D=L.getUniforms(),O=A.uniforms;if(r.useProgram(L.program)&&(I=!0,U=!0,N=!0),a.id!==K&&(K=a.id,U=!0),I||$!==e){D.setValue(ex,"projectionMatrix",e.projectionMatrix),D.setValue(ex,"viewMatrix",e.matrixWorldInverse);let t=D.map.cameraPosition;void 0!==t&&t.setValue(ex,ev.setFromMatrixPosition(e.matrixWorld)),n.logarithmicDepthBuffer&&D.setValue(ex,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),(a.isMeshPhongMaterial||a.isMeshToonMaterial||a.isMeshLambertMaterial||a.isMeshBasicMaterial||a.isMeshStandardMaterial||a.isShaderMaterial)&&D.setValue(ex,"isOrthographic",!0===e.isOrthographicCamera),$!==e&&($=e,U=!0,N=!0)}if(l.isSkinnedMesh){D.setOptional(ex,l,"bindMatrix"),D.setOptional(ex,l,"bindMatrixInverse");let e=l.skeleton;e&&(null===e.boneTexture&&e.computeBoneTexture(),D.setValue(ex,"boneTexture",e.boneTexture,o))}l.isBatchedMesh&&(D.setOptional(ex,l,"batchingTexture"),D.setValue(ex,"batchingTexture",l._matricesTexture,o));let F=i.morphAttributes;if((void 0!==F.position||void 0!==F.normal||void 0!==F.color)&&T.update(l,i,L),(U||A.receiveShadow!==l.receiveShadow)&&(A.receiveShadow=l.receiveShadow,D.setValue(ex,"receiveShadow",l.receiveShadow)),a.isMeshGouraudMaterial&&null!==a.envMap&&(O.envMap.value=g,O.flipEnvMap.value=g.isCubeTexture&&!1===g.isRenderTargetTexture?-1:1),a.isMeshStandardMaterial&&null===a.envMap&&null!==t.environment&&(O.envMapIntensity.value=t.environmentIntensity),U&&(D.setValue(ex,"toneMappingExposure",j.toneMappingExposure),A.needsLights&&(c=N,O.ambientLightColor.needsUpdate=c,O.lightProbe.needsUpdate=c,O.directionalLights.needsUpdate=c,O.directionalLightShadows.needsUpdate=c,O.pointLights.needsUpdate=c,O.pointLightShadows.needsUpdate=c,O.spotLights.needsUpdate=c,O.spotLightShadows.needsUpdate=c,O.rectAreaLights.needsUpdate=c,O.hemisphereLights.needsUpdate=c),d&&!0===a.fog&&m.refreshFogUniforms(O,d),m.refreshMaterialUniforms(O,a,eo,es,G.state.transmissionRenderTarget[e.id]),s0.upload(ex,ej(A),O,o)),a.isShaderMaterial&&!0===a.uniformsNeedUpdate&&(s0.upload(ex,ej(A),O,o),a.uniformsNeedUpdate=!1),a.isSpriteMaterial&&D.setValue(ex,"center",l.center),D.setValue(ex,"modelViewMatrix",l.modelViewMatrix),D.setValue(ex,"normalMatrix",l.normalMatrix),D.setValue(ex,"modelMatrix",l.matrixWorld),a.isShaderMaterial||a.isRawShaderMaterial){let e=a.uniformsGroups;for(let t=0,i=e.length;t{function n(){if(r.forEach(function(e){s.get(e).currentProgram.isReady()&&r.delete(e)}),0===r.size){t(e);return}setTimeout(n,10)}null!==i.get("KHR_parallel_shader_compile")?n():setTimeout(n,10)})};let eC=null;function eP(){eU.stop()}function eL(){eU.start()}let eU=new aM;function eD(e,t,i,n){let a=e.opaque,s=e.transmissive,o=e.transparent;G.setupLightsView(i),!0===ef&&_.setGlobalState(j.clippingPlanes,i),n&&r.viewport(Q.copy(n)),a.length>0&&eB(a,t,i),s.length>0&&eB(s,t,i),o.length>0&&eB(o,t,i),r.buffers.depth.setTest(!0),r.buffers.depth.setMask(!0),r.buffers.color.setMask(!0),r.setPolygonOffset(!1)}function eO(e,t,n,r){if(null!==(!0===n.isScene?n.overrideMaterial:null))return;void 0===G.state.transmissionRenderTarget[r.id]&&(G.state.transmissionRenderTarget[r.id]=new nt(1,1,{generateMipmaps:!0,type:i.has("EXT_color_buffer_half_float")||i.has("EXT_color_buffer_float")?eV:eN,minFilter:eI,samples:4,stencilBuffer:U,resolveDepthBuffer:!1,resolveStencilBuffer:!1}));let a=G.state.transmissionRenderTarget[r.id],s=r.viewport||Q;a.setSize(s.z,s.w);let l=j.getRenderTarget();j.setRenderTarget(a),j.getClearColor(ei),(en=j.getClearAlpha())<1&&j.setClearColor(16777215,.5),j.clear();let h=j.toneMapping;j.toneMapping=ea;let u=r.viewport;if(void 0!==r.viewport&&(r.viewport=void 0),G.setupLightsView(r),!0===ef&&_.setGlobalState(j.clippingPlanes,r),eB(e,n,r),o.updateMultisampleRenderTarget(a),o.updateRenderTargetMipmap(a),!1===i.has("WEBGL_multisampled_render_to_texture")){let e=!1;for(let i=0,a=t.length;i0)for(let t=0,i=n.length;t0&&eO(r,a,e,t),i&&b.render(e),eD(H,e,t);null!==J&&(o.updateMultisampleRenderTarget(J),o.updateRenderTargetMipmap(J)),!0===e.isScene&&e.onAfterRender(j,e,t),R.resetDefaultState(),K=-1,$=null,X.pop(),X.length>0?(G=X[X.length-1],!0===ef&&_.setGlobalState(j.clippingPlanes,G.state.camera)):G=null,W.pop(),H=W.length>0?W[W.length-1]:null},this.getActiveCubeFace=function(){return Y},this.getActiveMipmapLevel=function(){return Z},this.getRenderTarget=function(){return J},this.setRenderTargetTextures=function(e,t,n){s.get(e.texture).__webglTexture=t,s.get(e.depthTexture).__webglTexture=n;let r=s.get(e);r.__hasExternalTextures=!0,r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||!0!==i.has("WEBGL_multisampled_render_to_texture")||(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),r.__useRenderToTexture=!1)},this.setRenderTargetFramebuffer=function(e,t){let i=s.get(e);i.__webglFramebuffer=t,i.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e,t=0,i=0){J=e,Y=t,Z=i;let n=!0,a=null,l=!1,h=!1;if(e){let u=s.get(e);void 0!==u.__useDefaultFramebuffer?(r.bindFramebuffer(ex.FRAMEBUFFER,null),n=!1):void 0===u.__webglFramebuffer?o.setupRenderTarget(e):u.__hasExternalTextures&&o.rebindTextures(e,s.get(e.texture).__webglTexture,s.get(e.depthTexture).__webglTexture);let c=e.texture;(c.isData3DTexture||c.isDataArrayTexture||c.isCompressedArrayTexture)&&(h=!0);let d=s.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(a=Array.isArray(d[t])?d[t][i]:d[t],l=!0):a=e.samples>0&&!1===o.useMultisampledRTT(e)?s.get(e).__webglMultisampledFramebuffer:Array.isArray(d)?d[i]:d,Q.copy(e.viewport),ee.copy(e.scissor),et=e.scissorTest}else Q.copy(eu).multiplyScalar(eo).floor(),ee.copy(ec).multiplyScalar(eo).floor(),et=ed;if(r.bindFramebuffer(ex.FRAMEBUFFER,a)&&n&&r.drawBuffers(e,a),r.viewport(Q),r.scissor(ee),r.setScissorTest(et),l){let n=s.get(e.texture);ex.framebufferTexture2D(ex.FRAMEBUFFER,ex.COLOR_ATTACHMENT0,ex.TEXTURE_CUBE_MAP_POSITIVE_X+t,n.__webglTexture,i)}else if(h){let n=s.get(e.texture);ex.framebufferTextureLayer(ex.FRAMEBUFFER,ex.COLOR_ATTACHMENT0,n.__webglTexture,i||0,t||0)}K=-1},this.readRenderTargetPixels=function(e,t,i,a,o,l,h){if(!(e&&e.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let u=s.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==h&&(u=u[h]),u){r.bindFramebuffer(ex.FRAMEBUFFER,u);try{let r=e.texture,s=r.format,h=r.type;if(!n.textureFormatReadable(s)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!n.textureTypeReadable(h)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}t>=0&&t<=e.width-a&&i>=0&&i<=e.height-o&&ex.readPixels(t,i,a,o,A.convert(s),A.convert(h),l)}finally{let e=null!==J?s.get(J).__webglFramebuffer:null;r.bindFramebuffer(ex.FRAMEBUFFER,e)}}},this.copyFramebufferToTexture=function(e,t,i=0){let n=Math.pow(2,-i),a=Math.floor(t.image.width*n),s=Math.floor(t.image.height*n);o.setTexture2D(t,0),ex.copyTexSubImage2D(ex.TEXTURE_2D,i,0,0,e.x,e.y,a,s),r.unbindTexture()},this.copyTextureToTexture=function(e,t,i,n=0){let a=t.image.width,s=t.image.height,l=A.convert(i.format),h=A.convert(i.type);o.setTexture2D(i,0),ex.pixelStorei(ex.UNPACK_FLIP_Y_WEBGL,i.flipY),ex.pixelStorei(ex.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.premultiplyAlpha),ex.pixelStorei(ex.UNPACK_ALIGNMENT,i.unpackAlignment),t.isDataTexture?ex.texSubImage2D(ex.TEXTURE_2D,n,e.x,e.y,a,s,l,h,t.image.data):t.isCompressedTexture?ex.compressedTexSubImage2D(ex.TEXTURE_2D,n,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,l,t.mipmaps[0].data):ex.texSubImage2D(ex.TEXTURE_2D,n,e.x,e.y,l,h,t.image),0===n&&i.generateMipmaps&&ex.generateMipmap(ex.TEXTURE_2D),r.unbindTexture()},this.copyTextureToTexture3D=function(e,t,i,n,a=0){let s;let l=e.max.x-e.min.x,h=e.max.y-e.min.y,u=e.max.z-e.min.z,c=A.convert(n.format),d=A.convert(n.type);if(n.isData3DTexture)o.setTexture3D(n,0),s=ex.TEXTURE_3D;else if(n.isDataArrayTexture||n.isCompressedArrayTexture)o.setTexture2DArray(n,0),s=ex.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}ex.pixelStorei(ex.UNPACK_FLIP_Y_WEBGL,n.flipY),ex.pixelStorei(ex.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.premultiplyAlpha),ex.pixelStorei(ex.UNPACK_ALIGNMENT,n.unpackAlignment);let p=ex.getParameter(ex.UNPACK_ROW_LENGTH),f=ex.getParameter(ex.UNPACK_IMAGE_HEIGHT),m=ex.getParameter(ex.UNPACK_SKIP_PIXELS),g=ex.getParameter(ex.UNPACK_SKIP_ROWS),v=ex.getParameter(ex.UNPACK_SKIP_IMAGES),_=i.isCompressedTexture?i.mipmaps[a]:i.image;ex.pixelStorei(ex.UNPACK_ROW_LENGTH,_.width),ex.pixelStorei(ex.UNPACK_IMAGE_HEIGHT,_.height),ex.pixelStorei(ex.UNPACK_SKIP_PIXELS,e.min.x),ex.pixelStorei(ex.UNPACK_SKIP_ROWS,e.min.y),ex.pixelStorei(ex.UNPACK_SKIP_IMAGES,e.min.z),i.isDataTexture||i.isData3DTexture?ex.texSubImage3D(s,a,t.x,t.y,t.z,l,h,u,c,d,_.data):n.isCompressedArrayTexture?ex.compressedTexSubImage3D(s,a,t.x,t.y,t.z,l,h,u,c,_.data):ex.texSubImage3D(s,a,t.x,t.y,t.z,l,h,u,c,d,_),ex.pixelStorei(ex.UNPACK_ROW_LENGTH,p),ex.pixelStorei(ex.UNPACK_IMAGE_HEIGHT,f),ex.pixelStorei(ex.UNPACK_SKIP_PIXELS,m),ex.pixelStorei(ex.UNPACK_SKIP_ROWS,g),ex.pixelStorei(ex.UNPACK_SKIP_IMAGES,v),0===a&&n.generateMipmaps&&ex.generateMipmap(s),r.unbindTexture()},this.initTexture=function(e){e.isCubeTexture?o.setTextureCube(e,0):e.isData3DTexture?o.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?o.setTexture2DArray(e,0):o.setTexture2D(e,0),r.unbindTexture()},this.resetState=function(){Y=0,Z=0,J=null,r.reset(),R.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return iw}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;let t=this.getContext();t.drawingBufferColorSpace=e===tq?"display-p3":"srgb",t.unpackColorSpace=i0.workingColorSpace===tY?"display-p3":"srgb"}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class ok{constructor(e,t=25e-5){this.isFogExp2=!0,this.name="",this.color=new rg(e),this.density=t}clone(){return new ok(this.color,this.density)}toJSON(){return{type:"FogExp2",name:this.name,color:this.color.getHex(),density:this.density}}}class oV{constructor(e,t=1,i=1e3){this.isFog=!0,this.name="",this.color=new rg(e),this.near=t,this.far=i}clone(){return new oV(this.color,this.near,this.far)}toJSON(){return{type:"Fog",name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}}class oH extends re{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new nq,this.environmentIntensity=1,this.environmentRotation=new nq,this.overrideMaterial=null,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){let t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),1!==this.environmentIntensity&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}class oG{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.usage=im,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=iU()}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}get updateRange(){return iZ("THREE.InterleavedBuffer: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,i){e*=this.stride,i*=t.stride;for(let n=0,r=this.stride;ne.far||t.push({distance:o,point:oq.clone(),uv:rc.getInterpolation(oq,oQ,o0,o1,o2,o3,o4,new ik),face:null,object:this})}copy(e,t){return super.copy(e,t),void 0!==e.center&&this.center.copy(e.center),this.material=e.material,this}}function o6(e,t,i,n,r,a){oJ.subVectors(e,i).addScalar(.5).multiply(n),void 0!==r?(oK.x=a*oJ.x-r*oJ.y,oK.y=r*oJ.x+a*oJ.y):oK.copy(oJ),e.copy(t),e.x+=oK.x,e.y+=oK.y,e.applyMatrix4(o$)}let o8=new no,o9=new no;class o7 extends re{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);let t=e.levels;for(let e=0,i=t.length;e0){let i,n;for(i=1,n=t.length;i0){o8.setFromMatrixPosition(this.matrixWorld);let i=e.ray.origin.distanceTo(o8);this.getObjectForDistance(i).raycast(e,t)}}update(e){let t=this.levels;if(t.length>1){let i,n;o8.setFromMatrixPosition(e.matrixWorld),o9.setFromMatrixPosition(this.matrixWorld);let r=o8.distanceTo(o9)/e.zoom;for(i=1,t[0].object.visible=!0,n=t.length;i=e)t[i-1].object.visible=!1,t[i].object.visible=!0;else break}for(this._currentLevel=i-1;i=i.length&&i.push({start:-1,count:-1,z:-1});let r=i[this.index];n.push(r),this.index++,r.start=e.start,r.count=e.count,r.z=t}reset(){this.list.length=0,this.index=0}}let lA="batchId",lR=new nF,lC=new nF,lP=new nF,lL=new nF,lI=new ax,lU=new nu,lN=new nR,lD=new no,lO=new lw,lF=new r9,lB=[];class lz extends r9{get maxGeometryCount(){return this._maxGeometryCount}constructor(e,t,i=2*t,n){super(new rW,n),this.isBatchedMesh=!0,this.perObjectFrustumCulled=!0,this.sortObjects=!0,this.boundingBox=null,this.boundingSphere=null,this.customSort=null,this._drawRanges=[],this._reservedRanges=[],this._visibility=[],this._active=[],this._bounds=[],this._maxGeometryCount=e,this._maxVertexCount=t,this._maxIndexCount=i,this._geometryInitialized=!1,this._geometryCount=0,this._multiDrawCounts=new Int32Array(e),this._multiDrawStarts=new Int32Array(e),this._multiDrawCount=0,this._multiDrawInstances=null,this._visibilityChanged=!0,this._matricesTexture=null,this._initMatricesTexture()}_initMatricesTexture(){let e=Math.sqrt(4*this._maxGeometryCount),t=new lc(new Float32Array((e=Math.max(e=4*Math.ceil(e/4),4))*e*4),e,e,eY,ek);this._matricesTexture=t}_initializeGeometry(e){let t=this.geometry,i=this._maxVertexCount,n=this._maxGeometryCount,r=this._maxIndexCount;if(!1===this._geometryInitialized){for(let n in e.attributes){let{array:r,itemSize:a,normalized:s}=e.getAttribute(n),o=new rA(new r.constructor(i*a),a,s);t.setAttribute(n,o)}if(null!==e.getIndex()){let e=i>65536?new Uint32Array(r):new Uint16Array(r);t.setIndex(new rA(e,1))}let a=n>65536?new Uint32Array(i):new Uint16Array(i);t.setAttribute(lA,new rA(a,1)),this._geometryInitialized=!0}}_validateGeometry(e){if(e.getAttribute(lA))throw Error(`BatchedMesh: Geometry cannot use attribute "${lA}"`);let t=this.geometry;if(!!e.getIndex()!=!!t.getIndex())throw Error('BatchedMesh: All geometries must consistently have "index".');for(let i in t.attributes){if(i===lA)continue;if(!e.hasAttribute(i))throw Error(`BatchedMesh: Added geometry missing "${i}". All geometries must have consistent attributes.`);let n=e.getAttribute(i),r=t.getAttribute(i);if(n.itemSize!==r.itemSize||n.normalized!==r.normalized)throw Error("BatchedMesh: All attributes must have a consistent itemSize and normalized value.")}}setCustomSort(e){return this.customSort=e,this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new nu);let e=this._geometryCount,t=this.boundingBox,i=this._active;t.makeEmpty();for(let n=0;n=this._maxGeometryCount)throw Error("BatchedMesh: Maximum geometry count reached.");let n={vertexStart:-1,vertexCount:-1,indexStart:-1,indexCount:-1},r=null,a=this._reservedRanges,s=this._drawRanges,o=this._bounds;0!==this._geometryCount&&(r=a[a.length-1]),-1===t?n.vertexCount=e.getAttribute("position").count:n.vertexCount=t,null===r?n.vertexStart=0:n.vertexStart=r.vertexStart+r.vertexCount;let l=e.getIndex(),h=null!==l;if(h&&(-1===i?n.indexCount=l.count:n.indexCount=i,null===r?n.indexStart=0:n.indexStart=r.indexStart+r.indexCount),-1!==n.indexStart&&n.indexStart+n.indexCount>this._maxIndexCount||n.vertexStart+n.vertexCount>this._maxVertexCount)throw Error("BatchedMesh: Reserved space request exceeds the maximum buffer size.");let u=this._visibility,c=this._active,d=this._matricesTexture,p=this._matricesTexture.image.data;u.push(!0),c.push(!0);let f=this._geometryCount;this._geometryCount++,lP.toArray(p,16*f),d.needsUpdate=!0,a.push(n),s.push({start:h?n.indexStart:n.vertexStart,count:-1}),o.push({boxInitialized:!1,box:new nu,sphereInitialized:!1,sphere:new nR});let m=this.geometry.getAttribute(lA);for(let e=0;e=this._geometryCount)throw Error("BatchedMesh: Maximum geometry count reached.");this._validateGeometry(t);let i=this.geometry,n=null!==i.getIndex(),r=i.getIndex(),a=t.getIndex(),s=this._reservedRanges[e];if(n&&a.count>s.indexCount||t.attributes.position.count>s.vertexCount)throw Error("BatchedMesh: Reserved space not large enough for provided geometry.");let o=s.vertexStart,l=s.vertexCount;for(let e in i.attributes){if(e===lA)continue;let n=t.getAttribute(e),r=i.getAttribute(e);!function(e,t,i=0){let n=t.itemSize;if(e.isInterleavedBufferAttribute||e.array.constructor!==t.array.constructor){let r=e.count;for(let a=0;a=t.length||!1===t[e]||(t[e]=!1,this._visibilityChanged=!0),this}getInstanceCountAt(e){return null===this._multiDrawInstances?null:this._multiDrawInstances[e]}setInstanceCountAt(e,t){return null===this._multiDrawInstances&&(this._multiDrawInstances=new Int32Array(this._maxGeometryCount).fill(1)),this._multiDrawInstances[e]=t,e}getBoundingBoxAt(e,t){if(!1===this._active[e])return null;let i=this._bounds[e],n=i.box,r=this.geometry;if(!1===i.boxInitialized){n.makeEmpty();let t=r.index,a=r.attributes.position,s=this._drawRanges[e];for(let e=s.start,i=s.start+s.count;e=this._geometryCount||!1===i[e]||(t.toArray(r,16*e),n.needsUpdate=!0),this}getMatrixAt(e,t){let i=this._active,n=this._matricesTexture.image.data;return e>=this._geometryCount||!1===i[e]?null:t.fromArray(n,16*e)}setVisibleAt(e,t){let i=this._visibility,n=this._active;return e>=this._geometryCount||!1===n[e]||i[e]===t||(i[e]=t,this._visibilityChanged=!0),this}getVisibleAt(e){let t=this._visibility,i=this._active;return!(e>=this._geometryCount)&&!1!==i[e]&&t[e]}raycast(e,t){let i=this._visibility,n=this._active,r=this._drawRanges,a=this._geometryCount,s=this.matrixWorld,o=this.geometry;lF.material=this.material,lF.geometry.index=o.index,lF.geometry.attributes=o.attributes,null===lF.geometry.boundingBox&&(lF.geometry.boundingBox=new nu),null===lF.geometry.boundingSphere&&(lF.geometry.boundingSphere=new nR);for(let o=0;o({...e})),this._reservedRanges=e._reservedRanges.map(e=>({...e})),this._visibility=e._visibility.slice(),this._active=e._active.slice(),this._bounds=e._bounds.map(e=>({boxInitialized:e.boxInitialized,box:e.box.clone(),sphereInitialized:e.sphereInitialized,sphere:e.sphere.clone()})),this._maxGeometryCount=e._maxGeometryCount,this._maxVertexCount=e._maxVertexCount,this._maxIndexCount=e._maxIndexCount,this._geometryInitialized=e._geometryInitialized,this._geometryCount=e._geometryCount,this._multiDrawCounts=e._multiDrawCounts.slice(),this._multiDrawStarts=e._multiDrawStarts.slice(),this._matricesTexture=e._matricesTexture.clone(),this._matricesTexture.image.data=this._matricesTexture.image.slice(),this}dispose(){return this.geometry.dispose(),this._matricesTexture.dispose(),this._matricesTexture=null,this}onBeforeRender(e,t,i,n,r){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;let a=n.getIndex(),s=null===a?1:a.array.BYTES_PER_ELEMENT,o=this._active,l=this._visibility,h=this._multiDrawStarts,u=this._multiDrawCounts,c=this._drawRanges,d=this.perObjectFrustumCulled;d&&(lL.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse).multiply(this.matrixWorld),lI.setFromProjectionMatrix(lL,e.coordinateSystem));let p=0;if(this.sortObjects){lC.copy(this.matrixWorld).invert(),lD.setFromMatrixPosition(i.matrixWorld).applyMatrix4(lC);for(let e=0,t=l.length;e0){let i=e[t[0]];if(void 0!==i){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=i.length;en)return;lj.applyMatrix4(e.matrixWorld);let o=t.ray.origin.distanceTo(lj);if(!(ot.far))return{distance:o,point:lq.clone().applyMatrix4(e.matrixWorld),index:r,face:null,faceIndex:null,object:e}}let lJ=new no,lK=new no;class l$ extends lY{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){let e=this.geometry;if(null===e.index){let t=e.attributes.position,i=[];for(let e=0,n=t.count;e0){let i=e[t[0]];if(void 0!==i){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=i.length;er.far)return;a.push({distance:l,distanceToRay:Math.sqrt(o),point:i,index:t,face:null,object:s})}}class l8 extends i9{constructor(e,t,i,n,r,a,s,o,l){super(e,t,i,n,r,a,s,o,l),this.isVideoTexture=!0,this.minFilter=void 0!==a?a:eC,this.magFilter=void 0!==r?r:eC,this.generateMipmaps=!1;let h=this;"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(function t(){h.needsUpdate=!0,e.requestVideoFrameCallback(t)})}clone(){return new this.constructor(this.image).copy(this)}update(){let e=this.image;!1=="requestVideoFrameCallback"in e&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class l9 extends i9{constructor(e,t){super({width:e,height:t}),this.isFramebufferTexture=!0,this.magFilter=eT,this.minFilter=eT,this.generateMipmaps=!1,this.needsUpdate=!0}}class l7 extends i9{constructor(e,t,i,n,r,a,s,o,l,h,u,c){super(null,a,s,o,l,h,n,r,u,c),this.isCompressedTexture=!0,this.image={width:t,height:i},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class he extends l7{constructor(e,t,i,n,r,a){super(e,t,i,r,a),this.isCompressedArrayTexture=!0,this.image.depth=n,this.wrapR=eS}}class ht extends l7{constructor(e,t,i){super(void 0,e[0].width,e[0].height,t,i,eg),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}}class hi extends i9{constructor(e,t,i,n,r,a,s,o,l){super(e,t,i,n,r,a,s,o,l),this.isCanvasTexture=!0,this.needsUpdate=!0}}class hn{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(e,t){let i=this.getUtoTmapping(e);return this.getPoint(i,t)}getPoints(e=5){let t=[];for(let i=0;i<=e;i++)t.push(this.getPoint(i/e));return t}getSpacedPoints(e=5){let t=[];for(let i=0;i<=e;i++)t.push(this.getPointAt(i/e));return t}getLength(){let e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;let t=[],i,n=this.getPoint(0),r=0;t.push(0);for(let a=1;a<=e;a++)t.push(r+=(i=this.getPoint(a/e)).distanceTo(n)),n=i;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){let i;let n=this.getLengths(),r=0,a=n.length;i=t||e*n[a-1];let s=0,o=a-1,l;for(;s<=o;)if((l=n[r=Math.floor(s+(o-s)/2)]-i)<0)s=r+1;else if(l>0)o=r-1;else{o=r;break}if(n[r=o]===i)return r/(a-1);let h=n[r],u=n[r+1];return(r+(i-h)/(u-h))/(a-1)}getTangent(e,t){let i=e-1e-4,n=e+1e-4;i<0&&(i=0),n>1&&(n=1);let r=this.getPoint(i),a=this.getPoint(n),s=t||(r.isVector2?new ik:new no);return s.copy(a).sub(r).normalize(),s}getTangentAt(e,t){let i=this.getUtoTmapping(e);return this.getTangent(i,t)}computeFrenetFrames(e,t){let i=new no,n=[],r=[],a=[],s=new no,o=new nF;for(let t=0;t<=e;t++){let i=t/e;n[t]=this.getTangentAt(i,new no)}r[0]=new no,a[0]=new no;let l=Number.MAX_VALUE,h=Math.abs(n[0].x),u=Math.abs(n[0].y),c=Math.abs(n[0].z);h<=l&&(l=h,i.set(1,0,0)),u<=l&&(l=u,i.set(0,1,0)),c<=l&&i.set(0,0,1),s.crossVectors(n[0],i).normalize(),r[0].crossVectors(n[0],s),a[0].crossVectors(n[0],r[0]);for(let t=1;t<=e;t++){if(r[t]=r[t-1].clone(),a[t]=a[t-1].clone(),s.crossVectors(n[t-1],n[t]),s.length()>Number.EPSILON){s.normalize();let e=Math.acos(iN(n[t-1].dot(n[t]),-1,1));r[t].applyMatrix4(o.makeRotationAxis(s,e))}a[t].crossVectors(n[t],r[t])}if(!0===t){let t=Math.acos(iN(r[0].dot(r[e]),-1,1));t/=e,n[0].dot(s.crossVectors(r[0],r[e]))>0&&(t=-t);for(let i=1;i<=e;i++)r[i].applyMatrix4(o.makeRotationAxis(n[i],t*i)),a[i].crossVectors(n[i],r[i])}return{tangents:n,normals:r,binormals:a}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){let e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class hr extends hn{constructor(e=0,t=0,i=1,n=1,r=0,a=2*Math.PI,s=!1,o=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=i,this.yRadius=n,this.aStartAngle=r,this.aEndAngle=a,this.aClockwise=s,this.aRotation=o}getPoint(e,t=new ik){let i=2*Math.PI,n=this.aEndAngle-this.aStartAngle,r=Math.abs(n)i;)n-=i;n0?0:(Math.floor(Math.abs(o)/a)+1)*a:0===l&&o===a-1&&(o=a-2,l=1),this.closed||o>0?i=r[(o-1)%a]:(ho.subVectors(r[0],r[1]).add(r[0]),i=ho);let h=r[o%a],u=r[(o+1)%a];if(this.closed||o+2i.length-2?i.length-1:r+1],h=i[r>i.length-3?i.length-1:r+2];return t.set(hd(a,s.x,o.x,l.x,h.x),hd(a,s.y,o.y,l.y,h.y)),t}copy(e){super.copy(e),this.points=[];for(let t=0,i=e.points.length;t=i){let e=n[r]-i,a=this.curves[r],s=a.getLength(),o=0===s?0:1-e/s;return a.getPointAt(o,t)}r++}return null}getLength(){let e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;let e=[],t=0;for(let i=0,n=this.curves.length;i1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i}copy(e){super.copy(e),this.curves=[];for(let t=0,i=e.curves.length;t0){let e=l.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(l);let h=l.getPoint(1);return this.currentPoint.copy(h),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){let e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class hE extends rW{constructor(e=[new ik(0,-.5),new ik(.5,0),new ik(0,.5)],t=12,i=0,n=2*Math.PI){super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:i,phiLength:n},t=Math.floor(t),n=iN(n,0,2*Math.PI);let r=[],a=[],s=[],o=[],l=[],h=1/t,u=new no,c=new ik,d=new no,p=new no,f=new no,m=0,g=0;for(let t=0;t<=e.length-1;t++)switch(t){case 0:m=e[t+1].x-e[t].x,g=e[t+1].y-e[t].y,d.x=1*g,d.y=-m,d.z=0*g,f.copy(d),d.normalize(),o.push(d.x,d.y,d.z);break;case e.length-1:o.push(f.x,f.y,f.z);break;default:m=e[t+1].x-e[t].x,g=e[t+1].y-e[t].y,d.x=1*g,d.y=-m,d.z=0*g,p.copy(d),d.x+=f.x,d.y+=f.y,d.z+=f.z,d.normalize(),o.push(d.x,d.y,d.z),f.copy(p)}for(let r=0;r<=t;r++){let d=i+r*h*n,p=Math.sin(d),f=Math.cos(d);for(let i=0;i<=e.length-1;i++){u.x=e[i].x*p,u.y=e[i].y,u.z=e[i].x*f,a.push(u.x,u.y,u.z),c.x=r/t,c.y=i/(e.length-1),s.push(c.x,c.y);let n=o[3*i+0]*p,h=o[3*i+1],d=o[3*i+0]*f;l.push(n,h,d)}}for(let i=0;i0&&v(!0),t>0&&v(!1)),this.setIndex(h),this.setAttribute("position",new rO(u,3)),this.setAttribute("normal",new rO(c,3)),this.setAttribute("uv",new rO(d,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new hR(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class hC extends hR{constructor(e=1,t=1,i=32,n=1,r=!1,a=0,s=2*Math.PI){super(0,e,t,i,n,r,a,s),this.type="ConeGeometry",this.parameters={radius:e,height:t,radialSegments:i,heightSegments:n,openEnded:r,thetaStart:a,thetaLength:s}}static fromJSON(e){return new hC(e.radius,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class hP extends rW{constructor(e=[],t=[],i=1,n=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:e,indices:t,radius:i,detail:n};let r=[],a=[];function s(e){r.push(e.x,e.y,e.z)}function o(t,i){let n=3*t;i.x=e[n+0],i.y=e[n+1],i.z=e[n+2]}function l(e,t,i,n){n<0&&1===e.x&&(a[t]=e.x-1),0===i.x&&0===i.z&&(a[t]=n/2/Math.PI+.5)}function h(e){return Math.atan2(e.z,-e.x)}(function(e){let i=new no,n=new no,r=new no;for(let a=0;a.9&&s<.1&&(t<.2&&(a[e+0]+=1),i<.2&&(a[e+2]+=1),n<.2&&(a[e+4]+=1))}}()}(),this.setAttribute("position",new rO(r,3)),this.setAttribute("normal",new rO(r.slice(),3)),this.setAttribute("uv",new rO(a,2)),0===n?this.computeVertexNormals():this.normalizeNormals()}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new hP(e.vertices,e.indices,e.radius,e.details)}}class hL extends hP{constructor(e=1,t=0){let i=(1+Math.sqrt(5))/2,n=1/i;super([-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-n,-i,0,-n,i,0,n,-i,0,n,i,-n,-i,0,-n,i,0,n,-i,0,n,i,0,-i,0,-n,i,0,-n,-i,0,n,i,0,n],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],e,t),this.type="DodecahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new hL(e.radius,e.detail)}}let hI=new no,hU=new no,hN=new no,hD=new rc;class hO extends rW{constructor(e=null,t=1){if(super(),this.type="EdgesGeometry",this.parameters={geometry:e,thresholdAngle:t},null!==e){let i=Math.cos(iL*t),n=e.getIndex(),r=e.getAttribute("position"),a=n?n.count:r.count,s=[0,0,0],o=["a","b","c"],l=[,,,],h={},u=[];for(let e=0;e=i.next.y&&i.next.y!==i.y){let e=i.x+(s-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(e<=a&&e>n&&(n=e,r=i.x=i.x&&i.x>=l&&a!==i.x&&hG(sr.x||i.x===r.x&&(d=r,p=i,0>hW(d.prev,d,p.prev)&&0>hW(p.next,d,d.next))))&&(r=i,u=c)),i=i.next}while(i!==o);return r}(e,t);if(!i)return t;let n=hJ(i,e);return hk(n,n.next),hk(i,i.next)}(h[r],i);return i}(e,t,d,i)),e.length>80*i){n=a=e[0],r=s=e[1];for(let t=i;ta&&(a=o),l>s&&(s=l);h=0!==(h=Math.max(a-n,s-r))?32767/h:0}return function e(t,i,n,r,a,s,o){if(!t)return;!o&&s&&function(e,t,i,n){let r=e;do 0===r.z&&(r.z=hH(r.x,r.y,t,i,n)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next;while(r!==e);r.prevZ.nextZ=null,r.prevZ=null,function(e){let t,i,n,r,a,s,o,l,h=1;do{for(i=e,e=null,a=null,s=0;i;){for(s++,n=i,o=0,t=0;t0||l>0&&n;)0!==o&&(0===l||!n||i.z<=n.z)?(r=i,i=i.nextZ,o--):(r=n,n=n.nextZ,l--),a?a.nextZ=r:e=r,r.prevZ=a,a=r;i=n}a.nextZ=null,h*=2}while(s>1)}(r)}(t,r,a,s);let l=t,h,u;for(;t.prev!==t.next;){if(h=t.prev,u=t.next,s?function(e,t,i,n){let r=e.prev,a=e.next;if(hW(r,e,a)>=0)return!1;let s=r.x,o=e.x,l=a.x,h=r.y,u=e.y,c=a.y,d=so?s>l?s:l:o>l?o:l,m=h>u?h>c?h:c:u>c?u:c,g=hH(d,p,t,i,n),v=hH(f,m,t,i,n),_=e.prevZ,y=e.nextZ;for(;_&&_.z>=g&&y&&y.z<=v;){if(_.x>=d&&_.x<=f&&_.y>=p&&_.y<=m&&_!==r&&_!==a&&hG(s,h,o,u,l,c,_.x,_.y)&&hW(_.prev,_,_.next)>=0||(_=_.prevZ,y.x>=d&&y.x<=f&&y.y>=p&&y.y<=m&&y!==r&&y!==a&&hG(s,h,o,u,l,c,y.x,y.y)&&hW(y.prev,y,y.next)>=0))return!1;y=y.nextZ}for(;_&&_.z>=g;){if(_.x>=d&&_.x<=f&&_.y>=p&&_.y<=m&&_!==r&&_!==a&&hG(s,h,o,u,l,c,_.x,_.y)&&hW(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;y&&y.z<=v;){if(y.x>=d&&y.x<=f&&y.y>=p&&y.y<=m&&y!==r&&y!==a&&hG(s,h,o,u,l,c,y.x,y.y)&&hW(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}(t,r,a,s):function(e){let t=e.prev,i=e.next;if(hW(t,e,i)>=0)return!1;let n=t.x,r=e.x,a=i.x,s=t.y,o=e.y,l=i.y,h=nr?n>a?n:a:r>a?r:a,d=s>o?s>l?s:l:o>l?o:l,p=i.next;for(;p!==t;){if(p.x>=h&&p.x<=c&&p.y>=u&&p.y<=d&&hG(n,s,r,o,a,l,p.x,p.y)&&hW(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}(t)){i.push(h.i/n|0),i.push(t.i/n|0),i.push(u.i/n|0),h$(t),t=u.next,l=u.next;continue}if((t=u)===l){o?1===o?e(t=function(e,t,i){let n=e;do{let r=n.prev,a=n.next.next;!hX(r,a)&&hj(r,n,n.next,a)&&hZ(r,a)&&hZ(a,r)&&(t.push(r.i/i|0),t.push(n.i/i|0),t.push(a.i/i|0),h$(n),h$(n.next),n=e=a),n=n.next}while(n!==e);return hk(n)}(hk(t),i,n),i,n,r,a,s,2):2===o&&function(t,i,n,r,a,s){let o=t;do{let t=o.next.next;for(;t!==o.prev;){var l,h;if(o.i!==t.i&&(l=o,h=t,l.next.i!==h.i&&l.prev.i!==h.i&&!function(e,t){let i=e;do{if(i.i!==e.i&&i.next.i!==e.i&&i.i!==t.i&&i.next.i!==t.i&&hj(i,i.next,e,t))return!0;i=i.next}while(i!==e);return!1}(l,h)&&(hZ(l,h)&&hZ(h,l)&&function(e,t){let i=e,n=!1,r=(e.x+t.x)/2,a=(e.y+t.y)/2;do i.y>a!=i.next.y>a&&i.next.y!==i.y&&r<(i.next.x-i.x)*(a-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next;while(i!==e);return n}(l,h)&&(hW(l.prev,l,h.prev)||hW(l,h.prev,h))||hX(l,h)&&hW(l.prev,l,l.next)>0&&hW(h.prev,h,h.next)>0))){let l=hJ(o,t);o=hk(o,o.next),l=hk(l,l.next),e(o,i,n,r,a,s,0),e(l,i,n,r,a,s,0);return}t=t.next}o=o.next}while(o!==t)}(t,i,n,r,a,s):e(hk(t),i,n,r,a,s,1);break}}}(d,p,i,n,r,h,0),p};function hz(e,t,i,n,r){let a,s;if(r===function(e,t,i,n){let r=0;for(let a=t,s=i-n;a0)for(a=t;a=t;a-=n)s=hK(a,e[a],e[a+1],s);return s&&hX(s,s.next)&&(h$(s),s=s.next),s}function hk(e,t){if(!e)return e;t||(t=e);let i=e,n;do if(n=!1,!i.steiner&&(hX(i,i.next)||0===hW(i.prev,i,i.next))){if(h$(i),(i=t=i.prev)===i.next)break;n=!0}else i=i.next;while(n||i!==t);return t}function hV(e,t){return e.x-t.x}function hH(e,t,i,n,r){return(e=((e=((e=((e=((e=(e-i)*r|0)|e<<8)&16711935)|e<<4)&252645135)|e<<2)&858993459)|e<<1)&1431655765)|(t=((t=((t=((t=((t=(t-n)*r|0)|t<<8)&16711935)|t<<4)&252645135)|t<<2)&858993459)|t<<1)&1431655765)<<1}function hG(e,t,i,n,r,a,s,o){return(r-s)*(t-o)>=(e-s)*(a-o)&&(e-s)*(n-o)>=(i-s)*(t-o)&&(i-s)*(a-o)>=(r-s)*(n-o)}function hW(e,t,i){return(t.y-e.y)*(i.x-t.x)-(t.x-e.x)*(i.y-t.y)}function hX(e,t){return e.x===t.x&&e.y===t.y}function hj(e,t,i,n){let r=hY(hW(e,t,i)),a=hY(hW(e,t,n)),s=hY(hW(i,n,e)),o=hY(hW(i,n,t));return!!(r!==a&&s!==o||0===r&&hq(e,i,t)||0===a&&hq(e,n,t)||0===s&&hq(i,e,n)||0===o&&hq(i,t,n))}function hq(e,t,i){return t.x<=Math.max(e.x,i.x)&&t.x>=Math.min(e.x,i.x)&&t.y<=Math.max(e.y,i.y)&&t.y>=Math.min(e.y,i.y)}function hY(e){return e>0?1:e<0?-1:0}function hZ(e,t){return 0>hW(e.prev,e,e.next)?hW(e,t,e.next)>=0&&hW(e,e.prev,t)>=0:0>hW(e,t,e.prev)||0>hW(e,e.next,t)}function hJ(e,t){let i=new hQ(e.i,e.x,e.y),n=new hQ(t.i,t.x,t.y),r=e.next,a=t.prev;return e.next=t,t.prev=e,i.next=r,r.prev=i,n.next=i,i.prev=n,a.next=n,n.prev=a,n}function hK(e,t,i,n){let r=new hQ(e,t,i);return n?(r.next=n.next,r.prev=n,n.next.prev=r,n.next=r):(r.prev=r,r.next=r),r}function h$(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function hQ(e,t,i){this.i=e,this.x=t,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}class h0{static area(e){let t=e.length,i=0;for(let n=t-1,r=0;rh0.area(e)}static triangulateShape(e,t){let i=[],n=[],r=[];h1(e),h2(i,e);let a=e.length;t.forEach(h1);for(let e=0;e2&&e[t-1].equals(e[0])&&e.pop()}function h2(e,t){for(let i=0;iNumber.EPSILON){let c=Math.sqrt(u),d=Math.sqrt(l*l+h*h),p=t.x-o/c,f=t.y+s/c,m=((i.x-h/d-p)*h-(i.y+l/d-f)*l)/(s*h-o*l),g=(n=p+s*m-e.x)*n+(r=f+o*m-e.y)*r;if(g<=2)return new ik(n,r);a=Math.sqrt(g/2)}else{let e=!1;s>Number.EPSILON?l>Number.EPSILON&&(e=!0):s<-Number.EPSILON?l<-Number.EPSILON&&(e=!0):Math.sign(o)===Math.sign(h)&&(e=!0),e?(n=-o,r=s,a=Math.sqrt(u)):(n=s,r=o,a=Math.sqrt(u/2))}return new ik(n/a,r/a)}let L=[];for(let e=0,t=w.length,i=t-1,n=e+1;e=0;e--){let t=e/v,i=f*Math.cos(t*Math.PI/2),n=m*Math.sin(t*Math.PI/2)+g;for(let e=0,t=w.length;e=0;){let a=r,s=r-1;s<0&&(s=e.length-1);for(let e=0,r=c+2*v;e0)&&d.push(t,r,l),(e!==i-1||o0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class uc extends ry{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new rg(16777215),this.specular=new rg(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new rg(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=tH,this.normalScale=new ik(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new nq,this.combine=ei,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class ud extends ry{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new rg(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new rg(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=tH,this.normalScale=new ik(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class up extends ry{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=tH,this.normalScale=new ik(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}class uf extends ry{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new rg(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new rg(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=tH,this.normalScale=new ik(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new nq,this.combine=ei,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class um extends ry{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new rg(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=tH,this.normalScale=new ik(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this.fog=e.fog,this}}class ug extends lk{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}function uv(e,t,i){return e&&(i||e.constructor!==t)?"number"==typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e):e}function u_(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function uy(e){let t=e.length,i=Array(t);for(let e=0;e!==t;++e)i[e]=e;return i.sort(function(t,i){return e[t]-e[i]}),i}function ux(e,t,i){let n=e.length,r=new e.constructor(n);for(let a=0,s=0;s!==n;++a){let n=i[a]*t;for(let i=0;i!==t;++i)r[s++]=e[n+i]}return r}function uM(e,t,i,n){let r=1,a=e[0];for(;void 0!==a&&void 0===a[n];)a=e[r++];if(void 0===a)return;let s=a[n];if(void 0!==s){if(Array.isArray(s))do void 0!==(s=a[n])&&(t.push(a.time),i.push.apply(i,s)),a=e[r++];while(void 0!==a);else if(void 0!==s.toArray)do void 0!==(s=a[n])&&(t.push(a.time),s.toArray(i,i.length)),a=e[r++];while(void 0!==a);else do void 0!==(s=a[n])&&(t.push(a.time),i.push(s)),a=e[r++];while(void 0!==a)}}let uS={convertArray:uv,isTypedArray:u_,getKeyframeOrder:uy,sortedArray:ux,flattenJSON:uM,subclip:function(e,t,i,n,r=30){let a=e.clone();a.name=t;let s=[];for(let e=0;e=n)){l.push(t.times[e]);for(let i=0;ia.tracks[e].times[0]&&(o=a.tracks[e].times[0]);for(let e=0;e=r.times[d]){let e=d*h+l,t=e+h-l;n=r.values.slice(e,t)}else{let e=r.createInterpolant(),t=l,i=h-l;e.evaluate(a),n=e.resultBuffer.slice(t,i)}"quaternion"===s&&new ns().fromArray(n).normalize().conjugate().toArray(n);let p=o.times.length;for(let e=0;e=r)){let s=t[1];e=(r=t[--i-1]))break t}a=i,i=0;break i}break e}for(;i>>1;et;)--a;if(++a,0!==r||a!==n){r>=a&&(r=(a=Math.max(a,1))-1);let e=this.getValueSize();this.times=i.slice(r,a),this.values=this.values.slice(r*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);let i=this.times,n=this.values,r=i.length;0===r&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let a=null;for(let t=0;t!==r;t++){let n=i[t];if("number"==typeof n&&isNaN(n)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,t,n),e=!1;break}if(null!==a&&a>n){console.error("THREE.KeyframeTrack: Out of order keys.",this,t,n,a),e=!1;break}a=n}if(void 0!==n&&u_(n))for(let t=0,i=n.length;t!==i;++t){let i=n[t];if(isNaN(i)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,t,i),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),i=this.getValueSize(),n=this.getInterpolation()===tL,r=e.length-1,a=1;for(let s=1;s0){e[a]=e[r];for(let e=r*i,n=a*i,s=0;s!==i;++s)t[n+s]=t[e+s];++a}return a!==e.length?(this.times=e.slice(0,a),this.values=t.slice(0,a*i)):(this.times=e,this.values=t),this}clone(){let e=this.times.slice(),t=this.values.slice(),i=new this.constructor(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}uA.prototype.TimeBufferType=Float32Array,uA.prototype.ValueBufferType=Float32Array,uA.prototype.DefaultInterpolation=tP;class uR extends uA{}uR.prototype.ValueTypeName="bool",uR.prototype.ValueBufferType=Array,uR.prototype.DefaultInterpolation=tC,uR.prototype.InterpolantFactoryMethodLinear=void 0,uR.prototype.InterpolantFactoryMethodSmooth=void 0;class uC extends uA{}uC.prototype.ValueTypeName="color";class uP extends uA{}uP.prototype.ValueTypeName="number";class uL extends ub{constructor(e,t,i,n){super(e,t,i,n)}interpolate_(e,t,i,n){let r=this.resultBuffer,a=this.sampleValues,s=this.valueSize,o=(i-t)/(n-t),l=e*s;for(let e=l+s;l!==e;l+=4)ns.slerpFlat(r,0,a,l-s,a,l,o);return r}}class uI extends uA{InterpolantFactoryMethodLinear(e){return new uL(this.times,this.values,this.getValueSize(),e)}}uI.prototype.ValueTypeName="quaternion",uI.prototype.DefaultInterpolation=tP,uI.prototype.InterpolantFactoryMethodSmooth=void 0;class uU extends uA{}uU.prototype.ValueTypeName="string",uU.prototype.ValueBufferType=Array,uU.prototype.DefaultInterpolation=tC,uU.prototype.InterpolantFactoryMethodLinear=void 0,uU.prototype.InterpolantFactoryMethodSmooth=void 0;class uN extends uA{}uN.prototype.ValueTypeName="vector";class uD{constructor(e="",t=-1,i=[],n=tD){this.name=e,this.tracks=i,this.duration=t,this.blendMode=n,this.uuid=iU(),this.duration<0&&this.resetDuration()}static parse(e){let t=[],i=e.tracks,n=1/(e.fps||1);for(let e=0,r=i.length;e!==r;++e)t.push((function(e){if(void 0===e.type)throw Error("THREE.KeyframeTrack: track type undefined, can not parse");let t=function(e){switch(e.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return uP;case"vector":case"vector2":case"vector3":case"vector4":return uN;case"color":return uC;case"quaternion":return uI;case"bool":case"boolean":return uR;case"string":return uU}throw Error("THREE.KeyframeTrack: Unsupported typeName: "+e)}(e.type);if(void 0===e.times){let t=[],i=[];uM(e.keys,t,i,"value"),e.times=t,e.values=i}return void 0!==t.parse?t.parse(e):new t(e.name,e.times,e.values,e.interpolation)})(i[e]).scale(n));let r=new this(e.name,e.duration,t,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){let t=[],i=e.tracks,n={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let e=0,n=i.length;e!==n;++e)t.push(uA.toJSON(i[e]));return n}static CreateFromMorphTargetSequence(e,t,i,n){let r=t.length,a=[];for(let e=0;e1){let e=a[1],t=n[e];t||(n[e]=t=[]),t.push(i)}}let a=[];for(let e in n)a.push(this.CreateFromMorphTargetSequence(e,n[e],t,i));return a}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;let i=function(e,t,i,n,r){if(0!==i.length){let a=[],s=[];uM(i,a,s,n),0!==a.length&&r.push(new e(t,a,s))}},n=[],r=e.name||"default",a=e.fps||30,s=e.blendMode,o=e.length||-1,l=e.hierarchy||[];for(let e=0;e{t&&t(r),this.manager.itemEnd(e)},0),r;if(void 0!==uk[e]){uk[e].push({onLoad:t,onProgress:i,onError:n});return}uk[e]=[],uk[e].push({onLoad:t,onProgress:i,onError:n});let a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),s=this.mimeType,o=this.responseType;fetch(a).then(t=>{if(200===t.status||0===t.status){if(0===t.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"==typeof ReadableStream||void 0===t.body||void 0===t.body.getReader)return t;let i=uk[e],n=t.body.getReader(),r=t.headers.get("X-File-Size")||t.headers.get("Content-Length"),a=r?parseInt(r):0,s=0!==a,o=0;return new Response(new ReadableStream({start(e){(function t(){n.read().then(({done:n,value:r})=>{if(n)e.close();else{let n=new ProgressEvent("progress",{lengthComputable:s,loaded:o+=r.byteLength,total:a});for(let e=0,t=i.length;e{switch(o){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then(e=>new DOMParser().parseFromString(e,s));case"json":return e.json();default:if(void 0===s)return e.text();{let t=/charset="?([^;"\s]*)"?/i.exec(s),i=new TextDecoder(t&&t[1]?t[1].toLowerCase():void 0);return e.arrayBuffer().then(e=>i.decode(e))}}}).then(t=>{uO.add(e,t);let i=uk[e];delete uk[e];for(let e=0,n=i.length;e{let i=uk[e];if(void 0===i)throw this.manager.itemError(e),t;delete uk[e];for(let e=0,n=i.length;e{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class uG extends uz{constructor(e){super(e)}load(e,t,i,n){let r=this,a=new uH(this.manager);a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,function(i){try{t(r.parse(JSON.parse(i)))}catch(t){n?n(t):console.error(t),r.manager.itemError(e)}},i,n)}parse(e){let t=[];for(let i=0;i0:n.vertexColors=e.vertexColors),void 0!==e.uniforms)for(let t in e.uniforms){let r=e.uniforms[t];switch(n.uniforms[t]={},r.type){case"t":n.uniforms[t].value=i(r.value);break;case"c":n.uniforms[t].value=new rg().setHex(r.value);break;case"v2":n.uniforms[t].value=new ik().fromArray(r.value);break;case"v3":n.uniforms[t].value=new no().fromArray(r.value);break;case"v4":n.uniforms[t].value=new i7().fromArray(r.value);break;case"m3":n.uniforms[t].value=new iV().fromArray(r.value);break;case"m4":n.uniforms[t].value=new nF().fromArray(r.value);break;default:n.uniforms[t].value=r.value}}if(void 0!==e.defines&&(n.defines=e.defines),void 0!==e.vertexShader&&(n.vertexShader=e.vertexShader),void 0!==e.fragmentShader&&(n.fragmentShader=e.fragmentShader),void 0!==e.glslVersion&&(n.glslVersion=e.glslVersion),void 0!==e.extensions)for(let t in e.extensions)n.extensions[t]=e.extensions[t];if(void 0!==e.lights&&(n.lights=e.lights),void 0!==e.clipping&&(n.clipping=e.clipping),void 0!==e.size&&(n.size=e.size),void 0!==e.sizeAttenuation&&(n.sizeAttenuation=e.sizeAttenuation),void 0!==e.map&&(n.map=i(e.map)),void 0!==e.matcap&&(n.matcap=i(e.matcap)),void 0!==e.alphaMap&&(n.alphaMap=i(e.alphaMap)),void 0!==e.bumpMap&&(n.bumpMap=i(e.bumpMap)),void 0!==e.bumpScale&&(n.bumpScale=e.bumpScale),void 0!==e.normalMap&&(n.normalMap=i(e.normalMap)),void 0!==e.normalMapType&&(n.normalMapType=e.normalMapType),void 0!==e.normalScale){let t=e.normalScale;!1===Array.isArray(t)&&(t=[t,t]),n.normalScale=new ik().fromArray(t)}return void 0!==e.displacementMap&&(n.displacementMap=i(e.displacementMap)),void 0!==e.displacementScale&&(n.displacementScale=e.displacementScale),void 0!==e.displacementBias&&(n.displacementBias=e.displacementBias),void 0!==e.roughnessMap&&(n.roughnessMap=i(e.roughnessMap)),void 0!==e.metalnessMap&&(n.metalnessMap=i(e.metalnessMap)),void 0!==e.emissiveMap&&(n.emissiveMap=i(e.emissiveMap)),void 0!==e.emissiveIntensity&&(n.emissiveIntensity=e.emissiveIntensity),void 0!==e.specularMap&&(n.specularMap=i(e.specularMap)),void 0!==e.specularIntensityMap&&(n.specularIntensityMap=i(e.specularIntensityMap)),void 0!==e.specularColorMap&&(n.specularColorMap=i(e.specularColorMap)),void 0!==e.envMap&&(n.envMap=i(e.envMap)),void 0!==e.envMapRotation&&n.envMapRotation.fromArray(e.envMapRotation),void 0!==e.envMapIntensity&&(n.envMapIntensity=e.envMapIntensity),void 0!==e.reflectivity&&(n.reflectivity=e.reflectivity),void 0!==e.refractionRatio&&(n.refractionRatio=e.refractionRatio),void 0!==e.lightMap&&(n.lightMap=i(e.lightMap)),void 0!==e.lightMapIntensity&&(n.lightMapIntensity=e.lightMapIntensity),void 0!==e.aoMap&&(n.aoMap=i(e.aoMap)),void 0!==e.aoMapIntensity&&(n.aoMapIntensity=e.aoMapIntensity),void 0!==e.gradientMap&&(n.gradientMap=i(e.gradientMap)),void 0!==e.clearcoatMap&&(n.clearcoatMap=i(e.clearcoatMap)),void 0!==e.clearcoatRoughnessMap&&(n.clearcoatRoughnessMap=i(e.clearcoatRoughnessMap)),void 0!==e.clearcoatNormalMap&&(n.clearcoatNormalMap=i(e.clearcoatNormalMap)),void 0!==e.clearcoatNormalScale&&(n.clearcoatNormalScale=new ik().fromArray(e.clearcoatNormalScale)),void 0!==e.iridescenceMap&&(n.iridescenceMap=i(e.iridescenceMap)),void 0!==e.iridescenceThicknessMap&&(n.iridescenceThicknessMap=i(e.iridescenceThicknessMap)),void 0!==e.transmissionMap&&(n.transmissionMap=i(e.transmissionMap)),void 0!==e.thicknessMap&&(n.thicknessMap=i(e.thicknessMap)),void 0!==e.anisotropyMap&&(n.anisotropyMap=i(e.anisotropyMap)),void 0!==e.sheenColorMap&&(n.sheenColorMap=i(e.sheenColorMap)),void 0!==e.sheenRoughnessMap&&(n.sheenRoughnessMap=i(e.sheenRoughnessMap)),n}setTextures(e){return this.textures=e,this}static createMaterialFromType(e){return new({ShadowMaterial:uo,SpriteMaterial:oj,RawShaderMaterial:ul,ShaderMaterial:aa,PointsMaterial:l0,MeshPhysicalMaterial:uu,MeshStandardMaterial:uh,MeshPhongMaterial:uc,MeshToonMaterial:ud,MeshNormalMaterial:up,MeshLambertMaterial:uf,MeshDepthMaterial:oM,MeshDistanceMaterial:oS,MeshBasicMaterial:rx,MeshMatcapMaterial:um,LineDashedMaterial:ug,LineBasicMaterial:lk,Material:ry})[e]}}class ca{static decodeText(e){if("undefined"!=typeof TextDecoder)return new TextDecoder().decode(e);let t="";for(let i=0,n=e.length;i0){(i=new uX(new uF(t))).setCrossOrigin(this.crossOrigin);for(let t=0,i=e.length;t0){(t=new uX(this.manager)).setCrossOrigin(this.crossOrigin);for(let t=0,i=e.length;t{let t=new nu;t.min.fromArray(e.boxMin),t.max.fromArray(e.boxMax);let i=new nR;return i.radius=e.sphereRadius,i.center.fromArray(e.sphereCenter),{boxInitialized:e.boxInitialized,box:t,sphereInitialized:e.sphereInitialized,sphere:i}}),a._maxGeometryCount=e.maxGeometryCount,a._maxVertexCount=e.maxVertexCount,a._maxIndexCount=e.maxIndexCount,a._geometryInitialized=e.geometryInitialized,a._geometryCount=e.geometryCount,a._matricesTexture=u(e.matricesTexture.uuid);break;case"LOD":a=new o7;break;case"Line":a=new lY(l(e.geometry),h(e.material));break;case"LineLoop":a=new lQ(l(e.geometry),h(e.material));break;case"LineSegments":a=new l$(l(e.geometry),h(e.material));break;case"PointCloud":case"Points":a=new l5(l(e.geometry),h(e.material));break;case"Sprite":a=new o5(h(e.material));break;case"Group":a=new oR;break;case"Bone":a=new lu;break;default:a=new re}if(a.uuid=e.uuid,void 0!==e.name&&(a.name=e.name),void 0!==e.matrix?(a.matrix.fromArray(e.matrix),void 0!==e.matrixAutoUpdate&&(a.matrixAutoUpdate=e.matrixAutoUpdate),a.matrixAutoUpdate&&a.matrix.decompose(a.position,a.quaternion,a.scale)):(void 0!==e.position&&a.position.fromArray(e.position),void 0!==e.rotation&&a.rotation.fromArray(e.rotation),void 0!==e.quaternion&&a.quaternion.fromArray(e.quaternion),void 0!==e.scale&&a.scale.fromArray(e.scale)),void 0!==e.up&&a.up.fromArray(e.up),void 0!==e.castShadow&&(a.castShadow=e.castShadow),void 0!==e.receiveShadow&&(a.receiveShadow=e.receiveShadow),e.shadow&&(void 0!==e.shadow.bias&&(a.shadow.bias=e.shadow.bias),void 0!==e.shadow.normalBias&&(a.shadow.normalBias=e.shadow.normalBias),void 0!==e.shadow.radius&&(a.shadow.radius=e.shadow.radius),void 0!==e.shadow.mapSize&&a.shadow.mapSize.fromArray(e.shadow.mapSize),void 0!==e.shadow.camera&&(a.shadow.camera=this.parseObject(e.shadow.camera))),void 0!==e.visible&&(a.visible=e.visible),void 0!==e.frustumCulled&&(a.frustumCulled=e.frustumCulled),void 0!==e.renderOrder&&(a.renderOrder=e.renderOrder),void 0!==e.userData&&(a.userData=e.userData),void 0!==e.layers&&(a.layers.mask=e.layers),void 0!==e.children){let s=e.children;for(let e=0;e{t&&t(i),r.manager.itemEnd(e)}).catch(e=>{n&&n(e)});return}return setTimeout(function(){t&&t(a),r.manager.itemEnd(e)},0),a}let s={};s.credentials="anonymous"===this.crossOrigin?"same-origin":"include",s.headers=this.requestHeader;let o=fetch(e,s).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,Object.assign(r.options,{colorSpaceConversion:"none"}))}).then(function(i){return uO.add(e,i),t&&t(i),r.manager.itemEnd(e),i}).catch(function(t){n&&n(t),uO.remove(e),r.manager.itemError(e),r.manager.itemEnd(e)});uO.add(e,o),r.manager.itemStart(e)}}class cp{static getContext(){return void 0===a&&(a=new(window.AudioContext||window.webkitAudioContext)),a}static setContext(e){a=e}}class cf extends uz{constructor(e){super(e)}load(e,t,i,n){let r=this,a=new uH(this.manager);function s(t){n?n(t):console.error(t),r.manager.itemError(e)}a.setResponseType("arraybuffer"),a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,function(e){try{let i=e.slice(0);cp.getContext().decodeAudioData(i,function(e){t(e)}).catch(s)}catch(e){s(e)}},i,n)}}let cm=new nF,cg=new nF,cv=new nF;class c_{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new au,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new au,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){let t=this._cache;if(t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep){let i,n;t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep,cv.copy(e.projectionMatrix);let r=t.eyeSep/2,a=r*t.near/t.focus,s=t.near*Math.tan(iL*t.fov*.5)/t.zoom;cg.elements[12]=-r,cm.elements[12]=r,i=-s*t.aspect+a,n=s*t.aspect+a,cv.elements[0]=2*t.near/(n-i),cv.elements[8]=(n+i)/(n-i),this.cameraL.projectionMatrix.copy(cv),i=-s*t.aspect-a,n=s*t.aspect-a,cv.elements[0]=2*t.near/(n-i),cv.elements[8]=(n+i)/(n-i),this.cameraR.projectionMatrix.copy(cv)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(cg),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(cm)}}class cy{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=cx(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){let t=cx();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}function cx(){return("undefined"==typeof performance?Date:performance).now()}let cM=new no,cS=new ns,cb=new no,cT=new no;class cE extends re{constructor(){super(),this.type="AudioListener",this.context=cp.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new cy}getInput(){return this.gain}removeFilter(){return null!==this.filter&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return null!==this.filter?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);let t=this.context.listener,i=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(cM,cS,cb),cT.set(0,0,-1).applyQuaternion(cS),t.positionX){let e=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(cM.x,e),t.positionY.linearRampToValueAtTime(cM.y,e),t.positionZ.linearRampToValueAtTime(cM.z,e),t.forwardX.linearRampToValueAtTime(cT.x,e),t.forwardY.linearRampToValueAtTime(cT.y,e),t.forwardZ.linearRampToValueAtTime(cT.z,e),t.upX.linearRampToValueAtTime(i.x,e),t.upY.linearRampToValueAtTime(i.y,e),t.upZ.linearRampToValueAtTime(i.z,e)}else t.setPosition(cM.x,cM.y,cM.z),t.setOrientation(cT.x,cT.y,cT.z,i.x,i.y,i.z)}}class cw extends re{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(!0===this.isPlaying){console.warn("THREE.Audio: Audio is already playing.");return}if(!1===this.hasPlaybackControl){console.warn("THREE.Audio: this Audio has no playback control.");return}this._startedAt=this.context.currentTime+e;let t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(!1===this.hasPlaybackControl){console.warn("THREE.Audio: this Audio has no playback control.");return}return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(){if(!1===this.hasPlaybackControl){console.warn("THREE.Audio: this Audio has no playback control.");return}return this._progress=0,null!==this.source&&(this.source.stop(),this.source.onended=null),this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(let e=1,t=this.filters.length;e0&&this._mixBufferRegionAdditive(i,n,this._addIndex*t,1,t);for(let e=t,r=t+t;e!==r;++e)if(i[e]!==i[e+t]){s.setValue(i,n);break}}saveOriginalState(){let e=this.binding,t=this.buffer,i=this.valueSize,n=i*this._origIndex;e.getValue(t,n);for(let e=i;e!==n;++e)t[e]=t[n+e%i];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){let e=3*this.valueSize;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){let e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let i=e;i=.5)for(let n=0;n!==r;++n)e[t+n]=e[i+n]}_slerp(e,t,i,n){ns.slerpFlat(e,t,e,t,e,i,n)}_slerpAdditive(e,t,i,n,r){let a=this._workIndex*r;ns.multiplyQuaternionsFlat(e,a,e,t,e,i),ns.slerpFlat(e,t,e,t,e,a,n)}_lerp(e,t,i,n,r){let a=1-n;for(let s=0;s!==r;++s){let r=t+s;e[r]=e[r]*a+e[i+s]*n}}_lerpAdditive(e,t,i,n,r){for(let a=0;a!==r;++a){let r=t+a;e[r]=e[r]+e[i+a]*n}}}let cN="\\[\\]\\.:\\/",cD=RegExp("["+cN+"]","g"),cO="[^"+cN+"]",cF="[^"+cN.replace("\\.","")+"]",cB=/((?:WC+[\/:])*)/.source.replace("WC",cO),cz=RegExp("^"+cB+/(WCOD+)?/.source.replace("WCOD",cF)+/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",cO)+/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",cO)+"$"),ck=["material","materials","bones","map"];class cV{constructor(e,t,i){let n=i||cH.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,n)}getValue(e,t){this.bind();let i=this._targetGroup.nCachedObjects_,n=this._bindings[i];void 0!==n&&n.getValue(e,t)}setValue(e,t){let i=this._bindings;for(let n=this._targetGroup.nCachedObjects_,r=i.length;n!==r;++n)i[n].setValue(e,t)}bind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,i=e.length;t!==i;++t)e[t].bind()}unbind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,i=e.length;t!==i;++t)e[t].unbind()}}class cH{constructor(e,t,i){this.path=t,this.parsedPath=i||cH.parseTrackName(t),this.node=cH.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,i){return e&&e.isAnimationObjectGroup?new cH.Composite(e,t,i):new cH(e,t,i)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(cD,"")}static parseTrackName(e){let t=cz.exec(e);if(null===t)throw Error("PropertyBinding: Cannot parse trackName: "+e);let i={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},n=i.nodeName&&i.nodeName.lastIndexOf(".");if(void 0!==n&&-1!==n){let e=i.nodeName.substring(n+1);-1!==ck.indexOf(e)&&(i.nodeName=i.nodeName.substring(0,n),i.objectName=e)}if(null===i.propertyName||0===i.propertyName.length)throw Error("PropertyBinding: can not parse propertyName from trackName: "+e);return i}static findNode(e,t){if(void 0===t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){let i=e.skeleton.getBoneByName(t);if(void 0!==i)return i}if(e.children){let i=function(e){for(let n=0;n=r){let a=r++,h=e[a];t[h.uuid]=l,e[l]=h,t[o]=a,e[a]=s;for(let e=0;e!==n;++e){let t=i[e],n=t[a],r=t[l];t[l]=n,t[a]=r}}}this.nCachedObjects_=r}uncache(){let e=this._objects,t=this._indicesByUUID,i=this._bindings,n=i.length,r=this.nCachedObjects_,a=e.length;for(let s=0,o=arguments.length;s!==o;++s){let o=arguments[s],l=o.uuid,h=t[l];if(void 0!==h){if(delete t[l],h0&&(t[s.uuid]=h),e[h]=s,e.pop();for(let e=0;e!==n;++e){let t=i[e];t[h]=t[r],t.pop()}}}}this.nCachedObjects_=r}subscribe_(e,t){let i=this._bindingsIndicesByPath,n=i[e],r=this._bindings;if(void 0!==n)return r[n];let a=this._paths,s=this._parsedPaths,o=this._objects,l=o.length,h=this.nCachedObjects_,u=Array(l);n=r.length,i[e]=n,a.push(e),s.push(t),r.push(u);for(let i=h,n=o.length;i!==n;++i){let n=o[i];u[i]=new cH(n,e,t)}return u}unsubscribe_(e){let t=this._bindingsIndicesByPath,i=t[e];if(void 0!==i){let n=this._paths,r=this._parsedPaths,a=this._bindings,s=a.length-1,o=a[s];t[e[s]]=i,a[i]=o,a.pop(),r[i]=r[s],r.pop(),n[i]=n[s],n.pop()}}}class cW{constructor(e,t,i=null,n=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=i,this.blendMode=n;let r=t.tracks,a=r.length,s=Array(a),o={endingStart:tI,endingEnd:tI};for(let e=0;e!==a;++e){let t=r[e].createInterpolant(null);s[e]=t,t.settings=o}this._interpolantSettings=o,this._interpolants=s,this._propertyBindings=Array(a),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=tA,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,i){if(e.fadeOut(t),this.fadeIn(t),i){let i=this._clip.duration,n=e._clip.duration;e.warp(1,n/i,t),this.warp(i/n,1,t)}return this}crossFadeTo(e,t,i){return e.crossFadeFrom(this,t,i)}stopFading(){let e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,i){let n=this._mixer,r=n.time,a=this.timeScale,s=this._timeScaleInterpolant;null===s&&(s=n._lendControlInterpolant(),this._timeScaleInterpolant=s);let o=s.parameterPositions,l=s.sampleValues;return o[0]=r,o[1]=r+i,l[0]=e/a,l[1]=t/a,this}stopWarping(){let e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,i,n){if(!this.enabled){this._updateWeight(e);return}let r=this._startTime;if(null!==r){let n=(e-r)*i;n<0||0===i?t=0:(this._startTime=null,t=i*n)}t*=this._updateTimeScale(e);let a=this._updateTime(t),s=this._updateWeight(e);if(s>0){let e=this._interpolants,t=this._propertyBindings;if(this.blendMode===tO)for(let i=0,n=e.length;i!==n;++i)e[i].evaluate(a),t[i].accumulateAdditive(s);else for(let i=0,r=e.length;i!==r;++i)e[i].evaluate(a),t[i].accumulate(n,s)}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;let i=this._weightInterpolant;if(null!==i){let n=i.evaluate(e)[0];t*=n,e>i.parameterPositions[1]&&(this.stopFading(),0===n&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;let i=this._timeScaleInterpolant;null!==i&&(t*=i.evaluate(e)[0],e>i.parameterPositions[1]&&(this.stopWarping(),0===t?this.paused=!0:this.timeScale=t))}return this._effectiveTimeScale=t,t}_updateTime(e){let t=this._clip.duration,i=this.loop,n=this.time+e,r=this._loopCount,a=i===tR;if(0===e)return -1===r?n:a&&(1&r)==1?t-n:n;if(i===tw){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));r:{if(n>=t)n=t;else if(n<0)n=0;else{this.time=n;break r}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=n,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===r&&(e>=0?(r=0,this._setEndings(!0,0===this.repetitions,a)):this._setEndings(0===this.repetitions,!0,a)),n>=t||n<0){let i=Math.floor(n/t);n-=t*i,r+=Math.abs(i);let s=this.repetitions-r;if(s<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,n=e>0?t:0,this.time=n,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===s){let t=e<0;this._setEndings(t,!t,a)}else this._setEndings(!1,!1,a);this._loopCount=r,this.time=n,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:i})}}else this.time=n;if(a&&(1&r)==1)return t-n}return n}_setEndings(e,t,i){let n=this._interpolantSettings;i?(n.endingStart=tU,n.endingEnd=tU):(e?n.endingStart=this.zeroSlopeAtStart?tU:tI:n.endingStart=tN,t?n.endingEnd=this.zeroSlopeAtEnd?tU:tI:n.endingEnd=tN)}_scheduleFading(e,t,i){let n=this._mixer,r=n.time,a=this._weightInterpolant;null===a&&(a=n._lendControlInterpolant(),this._weightInterpolant=a);let s=a.parameterPositions,o=a.sampleValues;return s[0]=r,o[0]=t,s[1]=r+e,o[1]=i,this}}let cX=new Float32Array(1);class cj extends iR{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){let i=e._localRoot||this._root,n=e._clip.tracks,r=n.length,a=e._propertyBindings,s=e._interpolants,o=i.uuid,l=this._bindingsByRootAndName,h=l[o];void 0===h&&(h={},l[o]=h);for(let e=0;e!==r;++e){let r=n[e],l=r.name,u=h[l];if(void 0!==u)++u.referenceCount,a[e]=u;else{if(void 0!==(u=a[e])){null===u._cacheIndex&&(++u.referenceCount,this._addInactiveBinding(u,o,l));continue}let n=t&&t._propertyBindings[e].binding.parsedPath;u=new cU(cH.create(i,l,n),r.ValueTypeName,r.getValueSize()),++u.referenceCount,this._addInactiveBinding(u,o,l),a[e]=u}s[e].resultBuffer=u.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){let t=(e._localRoot||this._root).uuid,i=e._clip.uuid,n=this._actionsByClip[i];this._bindAction(e,n&&n.knownActions[0]),this._addInactiveAction(e,i,t)}let t=e._propertyBindings;for(let e=0,i=t.length;e!==i;++e){let i=t[e];0==i.useCount++&&(this._lendBinding(i),i.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){let t=e._propertyBindings;for(let e=0,i=t.length;e!==i;++e){let i=t[e];0==--i.useCount&&(i.restoreOriginalState(),this._takeBackBinding(i))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;let e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){let t=e._cacheIndex;return null!==t&&t=0;--i)e[i].stop();return this}update(e){e*=this.timeScale;let t=this._actions,i=this._nActiveActions,n=this.time+=e,r=Math.sign(e),a=this._accuIndex^=1;for(let s=0;s!==i;++s)t[s]._update(n,e,r,a);let s=this._bindings,o=this._nActiveBindings;for(let e=0;e!==o;++e)s[e].apply(a);return this}setTime(e){this.time=0;for(let e=0;ethis.max.x)&&!(e.ythis.max.y)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return!(e.max.xthis.max.x)&&!(e.max.ythis.max.y)}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,c4).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}let c6=new no,c8=new no;class c9{constructor(e=new no,t=new no){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){c6.subVectors(e,this.start),c8.subVectors(this.end,this.start);let i=c8.dot(c8),n=c8.dot(c6)/i;return t&&(n=iN(n,0,1)),n}closestPointToPoint(e,t,i){let n=this.closestPointToPointParameter(e,t);return this.delta(i).multiplyScalar(n).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return new this.constructor().copy(this)}}let c7=new no;class de extends re{constructor(e,t){super(),this.light=e,this.matrixAutoUpdate=!1,this.color=t,this.type="SpotLightHelper";let i=new rW,n=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let e=0,t=1;e<32;e++,t++){let i=e/32*Math.PI*2,r=t/32*Math.PI*2;n.push(Math.cos(i),Math.sin(i),1,Math.cos(r),Math.sin(r),1)}i.setAttribute("position",new rO(n,3));let r=new lk({fog:!1,toneMapped:!1});this.cone=new l$(i,r),this.add(this.cone),this.update()}dispose(){this.cone.geometry.dispose(),this.cone.material.dispose()}update(){this.light.updateWorldMatrix(!0,!1),this.light.target.updateWorldMatrix(!0,!1),this.parent?(this.parent.updateWorldMatrix(!0),this.matrix.copy(this.parent.matrixWorld).invert().multiply(this.light.matrixWorld)):this.matrix.copy(this.light.matrixWorld),this.matrixWorld.copy(this.light.matrixWorld);let e=this.light.distance?this.light.distance:1e3,t=e*Math.tan(this.light.angle);this.cone.scale.set(t,t,e),c7.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(c7),void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}let dt=new no,di=new nF,dn=new nF;class dr extends l${constructor(e){let t=function e(t){let i=[];!0===t.isBone&&i.push(t);for(let n=0;n1)for(let i=0;i.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{dE.set(e.z,0,-e.x).normalize();let t=Math.acos(e.y);this.quaternion.setFromAxisAngle(dE,t)}}setLength(e,t=.2*e,i=.2*t){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(i,t,i),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}}class dA extends l${constructor(e=1){let t=new rW;t.setAttribute("position",new rO([0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],3)),t.setAttribute("color",new rO([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3)),super(t,new lk({vertexColors:!0,toneMapped:!1})),this.type="AxesHelper"}setColors(e,t,i){let n=new rg,r=this.geometry.attributes.color.array;return n.set(e),n.toArray(r,0),n.toArray(r,3),n.set(t),n.toArray(r,6),n.toArray(r,9),n.set(i),n.toArray(r,12),n.toArray(r,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class dR{constructor(){this.type="ShapePath",this.color=new rg,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new hT,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,i,n){return this.currentPath.quadraticCurveTo(e,t,i,n),this}bezierCurveTo(e,t,i,n,r,a){return this.currentPath.bezierCurveTo(e,t,i,n,r,a),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){let t,i,n,r,a;let s=h0.isClockWise,o=this.subPaths;if(0===o.length)return[];let l=[];if(1===o.length)return i=o[0],(n=new hF).curves=i.curves,l.push(n),l;let h=!s(o[0].getPoints());h=e?!h:h;let u=[],c=[],d=[],p=0;c[0]=void 0,d[p]=[];for(let n=0,a=o.length;n1){let e=!1,t=0;for(let e=0,t=c.length;eNumber.EPSILON){if(l<0&&(i=t[a],o=-o,s=t[r],l=-l),e.ys.y)continue;if(e.y===i.y){if(e.x===i.x)return!0}else{let t=l*(e.x-i.x)-o*(e.y-i.y);if(0===t)return!0;if(t<0)continue;n=!n}}else{if(e.y!==i.y)continue;if(s.x<=e.x&&e.x<=i.x||i.x<=e.x&&e.x<=s.x)return!0}}return n})(a.p,c[n].p)&&(i!==n&&t++,s?(s=!1,u[n].push(a)):e=!0);s&&u[i].push(a)}}t>0&&!1===e&&(d=u)}for(let e=0,t=c.length;e0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function u(e){var t=c(e),r=t[0],n=t[1];return(r+n)*3/4-n}function l(e,t,r){return(t+r)*3/4-r}function d(e){var t,r,o=c(e),a=o[0],s=o[1],u=new i(l(e,a,s)),d=0,f=s>0?a-4:a;for(r=0;r>16&255,u[d++]=t>>8&255,u[d++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[d++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[d++]=t>>8&255,u[d++]=255&t),u}function f(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,r){for(var n=[],i=t;ic?c:s+a));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(e,t,r){"use strict";/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */let n=r(79742),i=r(80645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50;let a=2147483647;function s(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function c(e){if(e>a)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return p(e,t);if(ArrayBuffer.isView(e))return b(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ea(e,ArrayBuffer)||e&&ea(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(ea(e,SharedArrayBuffer)||e&&ea(e.buffer,SharedArrayBuffer)))return g(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return u.from(n,t,r);let i=y(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function f(e,t,r){return(d(e),e<=0)?c(e):void 0!==t?"string"==typeof r?c(e).fill(t,r):c(e).fill(t):c(e)}function h(e){return d(e),c(e<0?0:0|_(e))}function p(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!u.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|E(e,t),n=c(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function m(e){let t=e.length<0?0:0|_(e.length),r=c(t);for(let n=0;n=a)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),u.alloc(+e)}function E(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ea(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return et(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ei(e).length;default:if(i)return n?-1:et(e).length;t=(""+t).toLowerCase(),i=!0}}function T(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,r);case"utf8":case"utf-8":return R(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return $(this,t,r);case"base64":return O(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r);default:if(n)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function A(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function S(e,t,r,n,i){if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),es(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:x(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):x(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function x(e,t,r,n,i){let o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;os&&(r=s-c),o=r;o>=0;o--){let r=!0;for(let n=0;no&&(n=o):n=o;let a=t.length;for(n>a/2&&(n=a/2),i=0;i239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(c=(31&t)<<6|63&r)>127&&(o=c);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(c=(15&t)<<12|(63&r)<<6|63&n)>2047&&(c<55296||c>57343)&&(o=c);break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&c<1114112&&(o=c)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return P(n)}t.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=s(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return f(e,t,r)},u.allocUnsafe=function(e){return h(e)},u.allocUnsafeSlow=function(e){return h(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(ea(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),ea(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(u.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},u.byteLength=E,u.prototype._isBuffer=!0,u.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,i){if(ea(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,a=r-t,s=Math.min(o,a),c=this.slice(n,i),l=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return C(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":case"latin1":case"binary":return N(this,e,t,r);case"base64":return M(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(o)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let I=4096;function P(e){let t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let n=t;nr)throw RangeError("Trying to access beyond buffer length")}function U(e,t,r,n,i,o){if(!u.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function B(e,t,r,n,i){K(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function H(e,t,r,n,i){K(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function z(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function V(e,t,r,n,o){return t=+t,r>>>=0,o||z(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function G(e,t,r,n,o){return t=+t,r>>>=0,o||z(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=eu(function(e){X(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&Q(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&Q(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return(e>>>=0,t||j(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=eu(function(e){X(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&Q(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&Q(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<>>=0,t||j(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;U(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;U(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=eu(function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=eu(function(e,t=0){return H(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);U(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);U(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=eu(function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=eu(function(e,t=0){return H(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(e,t,r){return V(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return V(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return G(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return G(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Z(e,t,r){X(t,"offset"),(void 0===e[t]||void 0===e[t+r])&&Q(t,e.length-(r+1))}function K(e,t,r,n,i,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new Y.ERR_OUT_OF_RANGE("value",n,e)}Z(n,i,o)}function X(e,t){if("number"!=typeof e)throw new Y.ERR_INVALID_ARG_TYPE(t,"number",e)}function Q(e,t,r){if(Math.floor(e)!==e)throw X(e,r),new Y.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new Y.ERR_BUFFER_OUT_OF_BOUNDS;throw new Y.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}q("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),q("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),q("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=W(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=W(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let J=/[^+/0-9A-Za-z-_]/g;function ee(e){if((e=(e=e.split("=")[0]).trim().replace(J,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function et(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let a=0;a55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function er(e){let t=[];for(let r=0;r>8,i.push(r%256),i.push(n);return i}function ei(e){return n.toByteArray(ee(e))}function eo(e,t,r,n){let i;for(i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function ea(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function es(e){return e!=e}let ec=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function eu(e){return"undefined"==typeof BigInt?el:e}function el(){throw Error("BigInt not supported")}},17187:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function i(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=y,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function c(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){if(c(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=u(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,a,s,l=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,i(l)}return e}function d(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=d.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?g(i):m(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=Array(t),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else for(var u=c.length,l=m(c,u),r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():b(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return h(this,e,!0)},a.prototype.rawListeners=function(e){return h(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(i)return i(e,r).value}return e[r]};e.exports=function e(){var t,r,n,i,u,l,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f=n}},"es6","es3"),$jscomp.findInternal=function(e,t,r){e instanceof String&&(e=String(e));for(var n=e.length,i=0;i=i}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(e){return e||function(e){var t=$jscomp.checkStringArgs(this,null,"repeat");if(0>e||1342177279>>=1)&&(t+=t);return r}},"es6","es3"),$jscomp.initSymbol=function(){},$jscomp.polyfill("Symbol",function(e){if(e)return e;var t=function(e,t){this.$jscomp$symbol$id_=e,$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:t})};t.prototype.toString=function(){return this.$jscomp$symbol$id_};var r=0,n=function(e){if(this instanceof n)throw TypeError("Symbol is not a constructor");return new t("jscomp_symbol_"+(e||"")+"_"+r++,e)};return n},"es6","es3"),$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),r=0;r(t=t||0)&&(t=Math.max(t+n,0));t>>0),goog.uidCounter_=0,goog.cloneObject=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if("function"==typeof e.clone)return e.clone();for(var r in t="array"==t?[]:{},e)t[r]=goog.cloneObject(e[r]);return t}return e},goog.bindNative_=function(e,t,r){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,r){if(!e)throw Error();if(2").replace(/'/g,"'").replace(/"/g,'"').replace(/&/g,"&")),t&&(e=e.replace(/\{\$([^}]+)}/g,function(e,r){return null!=t&&r in t?t[r]:e})),e},goog.getMsgWithFallback=function(e,t){return e},goog.exportSymbol=function(e,t,r){goog.exportPath_(e,t,!0,r)},goog.exportProperty=function(e,t,r){e[t]=r},goog.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.superClass_=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.base=function(e,r,n){for(var i=Array(arguments.length-2),o=2;o{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')}),a("es7",function(){return b("2 ** 2 == 4")}),a("es8",function(){return b("async () => 1, true")}),a("es9",function(){return b("({...rest} = {}), true")}),a("es_next",function(){return!1}),{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(e,t){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;if(!this.requiresTranspilation_){var r=this.createRequiresTranspilation_();this.requiresTranspilation_=r.map,this.transpilationTarget_=this.transpilationTarget_||r.target}if(e in this.requiresTranspilation_)return!!this.requiresTranspilation_[e]||!(!goog.inHtmlDocument_()||"es6"!=t||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+e)},goog.Transpiler.prototype.transpile=function(e,t){return goog.transpile_(e,t,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(e){return e.replace(/<\/(SCRIPT)/ig,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(e,t){function r(){n&&(goog.global.setTimeout(n,0),n=null)}var n=t;if(e.length){t=[];for(var i=0;i';o+="",o=(goog.Dependency.defer_?o+("document.getElementById('script-"+i)+"').onload = function() {\n goog.Dependency.callback_('"+i+"', this);\n};\n":o+("goog.Dependency.callback_('"+i)+"', document.getElementById('script-"+i+"'));")+"",t.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(o):o)}else{var a=t.createElement("script");a.defer=goog.Dependency.defer_,a.async=!1,r&&(a.nonce=r),goog.DebugLoader_.IS_OLD_IE_?(e.pause(),a.onreadystatechange=function(){("loaded"==a.readyState||"complete"==a.readyState)&&(e.loaded(),e.resume())}):a.onload=function(){a.onload=null,e.loaded()},a.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path,t.head.appendChild(a)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),"deps.js"==this.relativePath?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."),e.loaded()):e.pause()},goog.Es6ModuleDependency=function(e,t,r,n,i){goog.Dependency.call(this,e,t,r,n,i)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(e){function t(e,t){var r="",i=goog.getScriptNonce();i&&(r=' nonce="'+i+'"'),e=t?'":'",n.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(e):e)}function r(e,t){var r=n.createElement("script");r.defer=!0,r.async=!1,r.type="module",r.setAttribute("crossorigin",!0);var i=goog.getScriptNonce();i&&(r.nonce=i),t?r.text=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScript(t):t:r.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(e):e,n.head.appendChild(r)}if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?e.loaded():e.pause();else if(goog.inHtmlDocument_()){var n=goog.global.document,i=this;if(goog.isDocumentLoading_()){var o=t;goog.Dependency.defer_=!0}else o=r;var a=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(a),e.setModuleState(goog.ModuleType.ES6)});o(void 0,'goog.Dependency.callback_("'+a+'")'),o(this.path,void 0);var s=goog.Dependency.registerCallback_(function(t){goog.Dependency.unregisterCallback_(s),e.registerEs6ModuleExports(i.path,t,goog.moduleLoaderState_.moduleName)});o(void 0,'import * as m from "'+this.path+'"; goog.Dependency.callback_("'+s+'", m)');var c=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(c),e.clearModuleState(),e.loaded()});o(void 0,'goog.Dependency.callback_("'+c+'")')}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),e.pause()},goog.TransformedDependency=function(e,t,r,n,i){goog.Dependency.call(this,e,t,r,n,i),this.contents_=null,this.lazyFetch_=!goog.inHtmlDocument_()||!("noModule"in goog.global.document.createElement("script"))},goog.inherits(goog.TransformedDependency,goog.Dependency),goog.TransformedDependency.prototype.load=function(e){function t(){i.contents_=goog.loadFileSync_(i.path),i.contents_&&(i.contents_=i.transform(i.contents_),i.contents_&&(i.contents_+="\n//# sourceURL="+i.path))}function r(){if(i.lazyFetch_&&t(),i.contents_){o&&e.setModuleState(goog.ModuleType.ES6);try{var r=i.contents_;if(i.contents_=null,goog.globalEval(r),o)var n=goog.moduleLoaderState_.moduleName}finally{o&&e.clearModuleState()}o&&goog.global.$jscomp.require.ensure([i.getPathName()],function(){e.registerEs6ModuleExports(i.path,goog.global.$jscomp.require(i.getPathName()),n)}),e.loaded()}}function n(){var e=goog.global.document,t=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(t),r()}),n=goog.getScriptNonce();n=""+goog.protectScriptTag_('goog.Dependency.callback_("'+t+'");')+"",e.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(n):n)}var i=this;if(goog.global.CLOSURE_IMPORT_SCRIPT)t(),this.contents_&&goog.global.CLOSURE_IMPORT_SCRIPT("",this.contents_)?(this.contents_=null,e.loaded()):e.pause();else{var o=this.loadFlags.module==goog.ModuleType.ES6;this.lazyFetch_||t();var a=1r?Math.max(0,e.length+r):r,"string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,r);for(;r(r=null==r?e.length-1:r)&&(r=Math.max(0,e.length+r)),"string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.lastIndexOf(t,r);for(;0<=r;r--)if(r in e&&e[r]===t)return r;return -1};goog.array.lastIndexOf=module$contents$goog$array_lastIndexOf;var module$contents$goog$array_forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(e,t,r){goog.asserts.assert(null!=e.length),Array.prototype.forEach.call(e,t,r)}:function(e,t,r){for(var n=e.length,i="string"==typeof e?e.split(""):e,o=0;o(t=module$contents$goog$array_findIndex(e,t,r))?null:"string"==typeof e?e.charAt(t):e[t]}function module$contents$goog$array_findIndex(e,t,r){for(var n=e.length,i="string"==typeof e?e.split(""):e,o=0;o(t=module$contents$goog$array_findIndexRight(e,t,r))?null:"string"==typeof e?e.charAt(t):e[t]}function module$contents$goog$array_findIndexRight(e,t,r){var n=e.length,i="string"==typeof e?e.split(""):e;for(--n;0<=n;n--)if(n in i&&t.call(r,i[n],n,e))return n;return -1}function module$contents$goog$array_contains(e,t){return 0<=module$contents$goog$array_indexOf(e,t)}function module$contents$goog$array_isEmpty(e){return 0==e.length}function module$contents$goog$array_clear(e){if(!Array.isArray(e))for(var t=e.length-1;0<=t;t--)delete e[t];e.length=0}function module$contents$goog$array_insert(e,t){module$contents$goog$array_contains(e,t)||e.push(t)}function module$contents$goog$array_insertAt(e,t,r){module$contents$goog$array_splice(e,r,0,t)}function module$contents$goog$array_insertArrayAt(e,t,r){goog.partial(module$contents$goog$array_splice,e,r,0).apply(null,t)}function module$contents$goog$array_insertBefore(e,t,r){var n;2==arguments.length||0>(n=module$contents$goog$array_indexOf(e,r))?e.push(t):module$contents$goog$array_insertAt(e,t,n)}function module$contents$goog$array_remove(e,t){var r;return(r=0<=(t=module$contents$goog$array_indexOf(e,t)))&&module$contents$goog$array_removeAt(e,t),r}function module$contents$goog$array_removeLast(e,t){return 0<=(t=module$contents$goog$array_lastIndexOf(e,t))&&(module$contents$goog$array_removeAt(e,t),!0)}function module$contents$goog$array_removeAt(e,t){return goog.asserts.assert(null!=e.length),1==Array.prototype.splice.call(e,t,1).length}function module$contents$goog$array_removeIf(e,t,r){return 0<=(t=module$contents$goog$array_findIndex(e,t,r))&&(module$contents$goog$array_removeAt(e,t),!0)}function module$contents$goog$array_removeAllIf(e,t,r){var n=0;return module$contents$goog$array_forEachRight(e,function(i,o){t.call(r,i,o,e)&&module$contents$goog$array_removeAt(e,o)&&n++}),n}function module$contents$goog$array_concat(e){return Array.prototype.concat.apply([],arguments)}function module$contents$goog$array_join(e){return Array.prototype.concat.apply([],arguments)}function module$contents$goog$array_toArray(e){var t=e.length;if(0=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,r)}function module$contents$goog$array_removeDuplicates(e,t,r){t=t||e;var n=function(e){return goog.isObject(e)?"o"+goog.getUid(e):(typeof e).charAt(0)+e};r=r||n,n={};for(var i=0,o=0;o>>1),u=r?t.call(i,e[c],c,e):t(n,e[c]);0t?1:e(r=module$contents$goog$array_binarySearch(e,t,r))&&(module$contents$goog$array_insertAt(e,t,-(r+1)),!0)}function module$contents$goog$array_binaryRemove(e,t,r){return 0<=(t=module$contents$goog$array_binarySearch(e,t,r))&&module$contents$goog$array_removeAt(e,t)}function module$contents$goog$array_bucket(e,t,r){for(var n={},i=0;ir*(o-i))return[];if(0o;e+=r)n.push(e);return n}function module$contents$goog$array_repeat(e,t){for(var r=[],n=0;nt&&Array.prototype.push.apply(e,e.splice(0,-t))),e}function module$contents$goog$array_moveItem(e,t,r){goog.asserts.assert(0<=t&&t"}},goog.dom.asserts.getWindow_=function(e){try{var t=e&&e.ownerDocument,r=t&&(t.defaultView||t.parentWindow);if((r=r||goog.global).Element&&r.Location)return r}catch(e){}return null},goog.dom.HtmlElement=function(){},goog.functions={},goog.functions.constant=function(e){return function(){return e}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(e,t){return e},goog.functions.error=function(e){return function(){throw Error(e)}},goog.functions.fail=function(e){return function(){throw e}},goog.functions.lock=function(e,t){return t=t||0,function(){return e.apply(this,Array.prototype.slice.call(arguments,0,t))}},goog.functions.nth=function(e){return function(){return arguments[e]}},goog.functions.partialRight=function(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=this;t===goog.global&&(t=void 0);var n=Array.prototype.slice.call(arguments);return n.push.apply(n,r),e.apply(t,n)}},goog.functions.withReturnValue=function(e,t){return goog.functions.sequence(e,goog.functions.constant(t))},goog.functions.equalTo=function(e,t){return function(r){return t?e==r:e===r}},goog.functions.compose=function(e,t){var r=arguments,n=r.length;return function(){var e;n&&(e=r[n-1].apply(this,arguments));for(var t=n-2;0<=t;t--)e=r[t].call(this,e);return e}},goog.functions.sequence=function(e){var t=arguments,r=t.length;return function(){for(var e,n=0;ne?goog.i18n.bidi.Dir.RTL:t?null:goog.i18n.bidi.Dir.NEUTRAL:null==e?null:e?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.ltrChars_="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸ̀-֐ऀ-῿‎Ⰰ-\ud801\ud804-\ud839\ud83c-\udbff豈-﬜︀-﹯﻽-￿",goog.i18n.bidi.rtlChars_="֑-ۯۺ-ࣿ‏\ud802-\ud803\ud83a-\ud83bיִ-﷿ﹰ-ﻼ",goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g,goog.i18n.bidi.stripHtmlIfNeeded_=function(e,t){return t?e.replace(goog.i18n.bidi.htmlSkipReg_,""):e},goog.i18n.bidi.rtlCharReg_=RegExp("["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.ltrCharReg_=RegExp("["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.hasAnyRtl=function(e,t){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(e,t){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.ltrRe_=RegExp("^["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlRe_=RegExp("^["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.isRtlChar=function(e){return goog.i18n.bidi.rtlRe_.test(e)},goog.i18n.bidi.isLtrChar=function(e){return goog.i18n.bidi.ltrRe_.test(e)},goog.i18n.bidi.isNeutralChar=function(e){return!goog.i18n.bidi.isLtrChar(e)&&!goog.i18n.bidi.isRtlChar(e)},goog.i18n.bidi.ltrDirCheckRe_=RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlDirCheckRe_=RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.startsWithRtl=function(e,t){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(e,t){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(e,t){return e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t),goog.i18n.bidi.isRequiredLtrRe_.test(e)||!goog.i18n.bidi.hasAnyLtr(e)&&!goog.i18n.bidi.hasAnyRtl(e)},goog.i18n.bidi.ltrExitDirCheckRe_=RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$"),goog.i18n.bidi.rtlExitDirCheckRe_=RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$"),goog.i18n.bidi.endsWithLtr=function(e,t){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(e,t){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl,goog.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,goog.i18n.bidi.isRtlLanguage=function(e){return goog.i18n.bidi.rtlLocalesRe_.test(e)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(e,t){return t=(void 0===t?goog.i18n.bidi.hasAnyRtl(e):t)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,e.replace(goog.i18n.bidi.bracketGuardTextRe_,t+"$&"+t)},goog.i18n.bidi.enforceRtlInHtml=function(e){return"<"==e.charAt(0)?e.replace(/<\w+/,"$& dir=rtl"):"\n"+e+""},goog.i18n.bidi.enforceRtlInText=function(e){return goog.i18n.bidi.Format.RLE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.enforceLtrInHtml=function(e){return"<"==e.charAt(0)?e.replace(/<\w+/,"$& dir=ltr"):"\n"+e+""},goog.i18n.bidi.enforceLtrInText=function(e){return goog.i18n.bidi.Format.LRE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,goog.i18n.bidi.leftRe_=/left/gi,goog.i18n.bidi.rightRe_=/right/gi,goog.i18n.bidi.tempRe_=/%%%%/g,goog.i18n.bidi.mirrorCSS=function(e){return e.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)},goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g,goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g,goog.i18n.bidi.normalizeHebrewQuote=function(e){return e.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1״").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1׳")},goog.i18n.bidi.wordSeparatorRe_=/\s+/,goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/,goog.i18n.bidi.rtlDetectionThreshold_=.4,goog.i18n.bidi.estimateDirection=function(e,t){var r=0,n=0,i=!1;for(e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t).split(goog.i18n.bidi.wordSeparatorRe_),t=0;tgoog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(e,t){return goog.i18n.bidi.estimateDirection(e,t)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(e,t){e&&(t=goog.i18n.bidi.toDir(t))&&(e.style.textAlign=t==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,e.dir=t==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(e,t){switch(goog.i18n.bidi.estimateDirection(t)){case goog.i18n.bidi.Dir.LTR:"ltr"!==e.dir&&(e.dir="ltr");break;case goog.i18n.bidi.Dir.RTL:"rtl"!==e.dir&&(e.dir="rtl");break;default:e.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(e,t){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=t===goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_?e:""},goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0,goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()},goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(e,t){var r=goog.html.TrustedResourceUrl.unwrap(this),n=(r=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(r))[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(r[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",r[2]||"",e)+goog.html.TrustedResourceUrl.stringifyParams_("#",n,t))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(e){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(e){return e instanceof goog.html.TrustedResourceUrl&&e.constructor===goog.html.TrustedResourceUrl?e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.format=function(e,t){var r=goog.string.Const.unwrap(e);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(r))throw Error("Invalid TrustedResourceUrl format: "+r);return e=r.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(e,n){if(!Object.prototype.hasOwnProperty.call(t,n))throw Error('Found marker, "'+n+'", in format string, "'+r+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[n])instanceof goog.string.Const?goog.string.Const.unwrap(e):encodeURIComponent(String(e))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g,goog.html.TrustedResourceUrl.BASE_URL_=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,goog.html.TrustedResourceUrl.URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,goog.html.TrustedResourceUrl.formatWithParams=function(e,t,r,n){return goog.html.TrustedResourceUrl.format(e,t).cloneWithParams(r,n)},goog.html.TrustedResourceUrl.fromConstant=function(e){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.TrustedResourceUrl.fromConstants=function(e){for(var t="",r=0;re.length?"&":"")+encodeURIComponent(n)+"="+encodeURIComponent(String(a)))}}return t},goog.string.internal={},goog.string.internal.startsWith=function(e,t){return 0==e.lastIndexOf(t,0)},goog.string.internal.endsWith=function(e,t){var r=e.length-t.length;return 0<=r&&e.indexOf(t,r)==r},goog.string.internal.caseInsensitiveStartsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.substr(0,t.length))},goog.string.internal.caseInsensitiveEndsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.substr(e.length-t.length,t.length))},goog.string.internal.caseInsensitiveEquals=function(e,t){return e.toLowerCase()==t.toLowerCase()},goog.string.internal.isEmptyOrWhitespace=function(e){return/^[\s\xa0]*$/.test(e)},goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},goog.string.internal.caseInsensitiveCompare=function(e,t){return(e=String(e).toLowerCase())<(t=String(t).toLowerCase())?-1:e==t?0:1},goog.string.internal.newLineToBr=function(e,t){return e.replace(/(\r\n|\r|\n)/g,t?"
":"
")},goog.string.internal.htmlEscape=function(e,t){if(t)e=e.replace(goog.string.internal.AMP_RE_,"&").replace(goog.string.internal.LT_RE_,"<").replace(goog.string.internal.GT_RE_,">").replace(goog.string.internal.QUOT_RE_,""").replace(goog.string.internal.SINGLE_QUOTE_RE_,"'").replace(goog.string.internal.NULL_RE_,"�");else{if(!goog.string.internal.ALL_RE_.test(e))return e;-1!=e.indexOf("&")&&(e=e.replace(goog.string.internal.AMP_RE_,"&")),-1!=e.indexOf("<")&&(e=e.replace(goog.string.internal.LT_RE_,"<")),-1!=e.indexOf(">")&&(e=e.replace(goog.string.internal.GT_RE_,">")),-1!=e.indexOf('"')&&(e=e.replace(goog.string.internal.QUOT_RE_,""")),-1!=e.indexOf("'")&&(e=e.replace(goog.string.internal.SINGLE_QUOTE_RE_,"'")),-1!=e.indexOf("\0")&&(e=e.replace(goog.string.internal.NULL_RE_,"�"))}return e},goog.string.internal.AMP_RE_=/&/g,goog.string.internal.LT_RE_=//g,goog.string.internal.QUOT_RE_=/"/g,goog.string.internal.SINGLE_QUOTE_RE_=/'/g,goog.string.internal.NULL_RE_=/\x00/g,goog.string.internal.ALL_RE_=/[\x00&<>"']/,goog.string.internal.whitespaceEscape=function(e,t){return goog.string.internal.newLineToBr(e.replace(/ /g,"  "),t)},goog.string.internal.contains=function(e,t){return -1!=e.indexOf(t)},goog.string.internal.caseInsensitiveContains=function(e,t){return goog.string.internal.contains(e.toLowerCase(),t.toLowerCase())},goog.string.internal.compareVersions=function(e,t){var r=0;e=goog.string.internal.trim(String(e)).split("."),t=goog.string.internal.trim(String(t)).split(".");for(var n=Math.max(e.length,t.length),i=0;0==r&&it?1:0},goog.html.SafeUrl=function(e,t){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=t===goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_?e:""},goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez",goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0,goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"}),goog.html.SafeUrl.unwrap=function(e){return e instanceof goog.html.SafeUrl&&e.constructor===goog.html.SafeUrl?e.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(e){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(e)},goog.html.SafeUrl.fromBlob=function(e){return e=goog.html.SafeUrl.isSafeMimeType(e.type)?goog.fs.url.createObjectUrl(e):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.revokeObjectUrl=function(e){(e=e.getTypedStringValue())!==goog.html.SafeUrl.INNOCUOUS_STRING&&goog.fs.url.revokeObjectUrl(e)},goog.html.SafeUrl.fromMediaSource=function(e){return goog.asserts.assert("MediaSource"in goog.global,"No support for MediaSource"),e=e instanceof MediaSource?goog.fs.url.createObjectUrl(e):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.DATA_URL_PATTERN_=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.tryFromDataUrl=function(e){var t=(e=(e=String(e)).replace(/(%0A|%0D)/g,"")).match(goog.html.DATA_URL_PATTERN_);return t&&goog.html.SafeUrl.isSafeMimeType(t[1])?goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e):null},goog.html.SafeUrl.fromDataUrl=function(e){return goog.html.SafeUrl.tryFromDataUrl(e)||goog.html.SafeUrl.INNOCUOUS_URL},goog.html.SafeUrl.fromTelUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"tel:")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(e){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(e))||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"fb-messenger://share")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromWhatsAppUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"whatsapp://send")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromSmsUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(e){var t=e.indexOf("#");if(0+~[\]()=^$|]+$/.test(r))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+e);if(!module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_(r))throw Error("() and [] in selector must be balanced, got: "+e);return t instanceof goog.html.SafeStyle||(t=goog.html.SafeStyle.create(t)),e=e+"{"+goog.html.SafeStyle.unwrap(t).replace(/",null)},goog.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/,goog.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_=goog.object.createSet(goog.dom.TagName.APPLET,goog.dom.TagName.BASE,goog.dom.TagName.EMBED,goog.dom.TagName.IFRAME,goog.dom.TagName.LINK,goog.dom.TagName.MATH,goog.dom.TagName.META,goog.dom.TagName.OBJECT,goog.dom.TagName.SCRIPT,goog.dom.TagName.STYLE,goog.dom.TagName.SVG,goog.dom.TagName.TEMPLATE),goog.html.SafeHtml.create=function(e,t,r){return goog.html.SafeHtml.verifyTagName(String(e)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(e),t,r)},goog.html.SafeHtml.verifyTagName=function(e){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(e))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Invalid tag name <"+e+">.":"");if(e.toUpperCase() in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Tag name <"+e+"> is not allowed for SafeHtml.":"")},goog.html.SafeHtml.createIframe=function(e,t,r,n){e&&goog.html.TrustedResourceUrl.unwrap(e);var i={};return i.src=e||null,i.srcdoc=t&&goog.html.SafeHtml.unwrap(t),e=goog.html.SafeHtml.combineAttributes(i,{sandbox:""},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,n)},goog.html.SafeHtml.createSandboxIframe=function(e,t,r,n){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"The browser does not support sandboxed iframes.":"");var i={};return i.src=e?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)):null,i.srcdoc=t||null,i.sandbox="",e=goog.html.SafeHtml.combineAttributes(i,{},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,n)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(e,t){return goog.html.TrustedResourceUrl.unwrap(e),e=goog.html.SafeHtml.combineAttributes({src:e},{},t),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",e)},goog.html.SafeHtml.createScript=function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=r.toLowerCase();if("language"==n||"src"==n||"text"==n||"type"==n)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot set "'+n+'" attribute':"")}for(n=0,r="",e=module$contents$goog$array_concat(e);n does not allow content."),i+=">"):(n=goog.html.SafeHtml.concat(r),i+=">"+goog.html.SafeHtml.unwrap(n)+"",n=n.getDirection()),(e=t&&t.dir)&&(n=/^(ltr|rtl|auto)$/i.test(e)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(i,n)},goog.html.SafeHtml.stringifyAttributes=function(e,t){var r="";if(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(n))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Invalid attribute name "'+n+'".':"");var i=t[n];null!=i&&(r+=" "+goog.html.SafeHtml.getAttrNameAndValue_(e,n,i))}}return r},goog.html.SafeHtml.combineAttributes=function(e,t,r){var n,i={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(goog.asserts.assert(n.toLowerCase()==n,"Must be lower case"),i[n]=e[n]);for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(goog.asserts.assert(n.toLowerCase()==n,"Must be lower case"),i[n]=t[n]);if(r){for(n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var o=n.toLowerCase();if(o in e)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot override "'+o+'" attribute, got "'+n+'" with value "'+r[n]+'"':"");o in t&&delete i[o],i[n]=r[n]}}return i},goog.html.SafeHtml.DOCTYPE_HTML=function(){return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL)}(),goog.html.SafeHtml.EMPTY=new goog.html.SafeHtml(goog.global.trustedTypes&&goog.global.trustedTypes.emptyHTML||"",goog.i18n.bidi.Dir.NEUTRAL,goog.html.SafeHtml.CONSTRUCTOR_TOKEN_PRIVATE_),goog.html.SafeHtml.BR=function(){return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("
",goog.i18n.bidi.Dir.NEUTRAL)}(),goog.html.uncheckedconversions={},goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract=function(e,t,r){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(t,r||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(e,t,r){e.insertAdjacentHTML(t,goog.html.SafeHtml.unwrapTrustedHTML(r))},goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.dom.safe.isInnerHtmlCleanupRecursive_=goog.functions.cacheReturnValue(function(){if(goog.DEBUG&&"undefined"==typeof document)return!1;var e=document.createElement("div"),t=document.createElement("div");return t.appendChild(document.createElement("div")),e.appendChild(t),(!goog.DEBUG||!!e.firstChild)&&(t=e.firstChild.firstChild,e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),!t.parentElement)}),goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(e,t){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;e.lastChild;)e.removeChild(e.lastChild);e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setInnerHtml=function(e,t){if(goog.asserts.ENABLE_ASSERTS&&e.tagName){var r=e.tagName.toUpperCase();if(goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[r])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+e.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(e,t)},goog.dom.safe.setInnerHtmlFromConstant=function(e,t){goog.dom.safe.setInnerHtml(e,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Constant HTML to be immediatelly used."),goog.string.Const.unwrap(t)))},goog.dom.safe.setOuterHtml=function(e,t){e.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setFormElementAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLFormElement(e).action=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setButtonFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLButtonElement(e).formAction=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setInputFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLInputElement(e).formAction=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setStyle=function(e,t){e.style.cssText=goog.html.SafeStyle.unwrap(t)},goog.dom.safe.documentWrite=function(e,t){e.write(goog.html.SafeHtml.unwrapTrustedHTML(t))},goog.dom.safe.setAnchorHref=function(e,t){goog.dom.asserts.assertIsHTMLAnchorElement(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setImageSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLImageElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:image\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setAudioSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLAudioElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:audio\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setVideoSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLVideoElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:video\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setEmbedSrc=function(e,t){goog.dom.asserts.assertIsHTMLEmbedElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setFrameSrc=function(e,t){goog.dom.asserts.assertIsHTMLFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrap(t)},goog.dom.safe.setIframeSrc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrap(t)},goog.dom.safe.setIframeSrcdoc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setLinkHrefAndRel=function(e,t,r){goog.dom.asserts.assertIsHTMLLinkElement(e),e.rel=r,goog.string.internal.caseInsensitiveContains(r,"stylesheet")?(goog.asserts.assert(t instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),e.href=goog.html.TrustedResourceUrl.unwrap(t)):e.href=t instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrap(t):t instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrap(t):goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitizeAssertUnchanged(t))},goog.dom.safe.setObjectData=function(e,t){goog.dom.asserts.assertIsHTMLObjectElement(e),e.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setScriptSrc=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t),goog.dom.safe.setNonceForScriptElement_(e)},goog.dom.safe.setScriptContent=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.textContent=module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript(t),goog.dom.safe.setNonceForScriptElement_(e)},goog.dom.safe.setNonceForScriptElement_=function(e){var t=goog.getScriptNonce(e.ownerDocument&&e.ownerDocument.defaultView);t&&e.setAttribute("nonce",t)},goog.dom.safe.setLocationHref=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.assignLocation=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.assign(goog.html.SafeUrl.unwrap(t))},goog.dom.safe.replaceLocation=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.replace(goog.html.SafeUrl.unwrap(t))},goog.dom.safe.openInWindow=function(e,t,r,n,i){return e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),t=t||goog.global,r=r instanceof goog.string.Const?goog.string.Const.unwrap(r):r||"",t.open(goog.html.SafeUrl.unwrap(e),r,n,i)},goog.dom.safe.parseFromStringHtml=function(e,t){return goog.dom.safe.parseFromString(e,t,"text/html")},goog.dom.safe.parseFromString=function(e,t,r){return e.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(t),r)},goog.dom.safe.createImageFromBlob=function(e){if(!/^image\/.*/g.test(e.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var t=goog.global.URL.createObjectURL(e);return(e=new goog.global.Image).onload=function(){goog.global.URL.revokeObjectURL(t)},goog.dom.safe.setImageSrc(e,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),t)),e},goog.string.DETECT_DOUBLE_ESCAPING=!1,goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1,goog.string.Unicode={NBSP:"\xa0"},goog.string.startsWith=goog.string.internal.startsWith,goog.string.endsWith=goog.string.internal.endsWith,goog.string.caseInsensitiveStartsWith=goog.string.internal.caseInsensitiveStartsWith,goog.string.caseInsensitiveEndsWith=goog.string.internal.caseInsensitiveEndsWith,goog.string.caseInsensitiveEquals=goog.string.internal.caseInsensitiveEquals,goog.string.subs=function(e,t){for(var r=e.split("%s"),n="",i=Array.prototype.slice.call(arguments,1);i.length&&1=e||"\x80"<=e&&"�">=e},goog.string.stripNewlines=function(e){return e.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(e){return e.replace(/(\r\n|\r|\n)/g,"\n")},goog.string.normalizeWhitespace=function(e){return e.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(e){return e.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(e){return e.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(e){return e.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(e){return e.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(e,t,r){if(e==t)return 0;if(!e)return -1;if(!t)return 1;for(var n=e.toLowerCase().match(r),i=t.toLowerCase().match(r),o=Math.min(n.length,i.length),a=0;a",""":'"'},n=t?t.createElement("div"):goog.global.document.createElement("div");return e.replace(goog.string.HTML_ENTITY_PATTERN_,function(e,t){var i=r[e];return i||("#"==t.charAt(0)&&(isNaN(t=Number("0"+t.substr(1)))||(i=String.fromCharCode(t))),i||(goog.dom.safe.setInnerHtml(n,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),e+" ")),i=n.firstChild.nodeValue.slice(0,-1)),r[e]=i)})},goog.string.unescapePureXmlEntities_=function(e){return e.replace(/&([^;]+);/g,function(e,t){switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return"#"!=t.charAt(0)||isNaN(t=Number("0"+t.substr(1)))?e:String.fromCharCode(t)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(e,t){return goog.string.newLineToBr(e.replace(/ /g,"  "),t)},goog.string.preserveSpaces=function(e){return e.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(e,t){for(var r=t.length,n=0;nt&&(e=e.substring(0,t-3)+"..."),r&&(e=goog.string.htmlEscape(e)),e},goog.string.truncateMiddle=function(e,t,r,n){if(r&&(e=goog.string.unescapeEntities(e)),n&&e.length>t){n>t&&(n=t);var i=e.length-n;e=e.substring(0,t-n)+"..."+e.substring(i)}else e.length>t&&(n=Math.floor(t/2),i=e.length-n,e=e.substring(0,n+t%2)+"..."+e.substring(i));return r&&(e=goog.string.htmlEscape(e)),e},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(e){e=String(e);for(var t=['"'],r=0;ri?n:goog.string.escapeChar(n))}return t.push('"'),t.join("")},goog.string.escapeString=function(e){for(var t=[],r=0;rt)var r=e;else 256>t?(r="\\x",(16>t||256t&&(r+="0")),r+=t.toString(16).toUpperCase();return goog.string.jsEscapeCache_[e]=r},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(e,t){return e&&t?e.split(t).length-1:0},goog.string.removeAt=function(e,t,r){var n=e;return 0<=t&&t>>0;return t},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(e){var t=Number(e);return 0==t&&goog.string.isEmptyOrWhitespace(e)?NaN:t},goog.string.isLowerCamelCase=function(e){return/^[a-z]+([A-Z][a-z]*)*$/.test(e)},goog.string.isUpperCamelCase=function(e){return/^([A-Z][a-z]*)+$/.test(e)},goog.string.toCamelCase=function(e){return String(e).replace(/\-([a-z])/g,function(e,t){return t.toUpperCase()})},goog.string.toSelectorCase=function(e){return String(e).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(e,t){return t="string"==typeof t?goog.string.regExpEscape(t):"\\s",e.replace(RegExp("(^"+(t?"|["+t+"]+":"")+")([a-z])","g"),function(e,t,r){return t+r.toUpperCase()})},goog.string.capitalize=function(e){return String(e.charAt(0)).toUpperCase()+String(e.substr(1)).toLowerCase()},goog.string.parseInt=function(e){return isFinite(e)&&(e=String(e)),"string"==typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN},goog.string.splitLimit=function(e,t,r){e=e.split(t);for(var n=[];0r&&(r=i)}return -1==r?e:e.slice(r+1)},goog.string.editDistance=function(e,t){var r=[],n=[];if(e==t)return 0;if(!e.length||!t.length)return Math.max(e.length,t.length);for(var i=0;i=t.length?0:this.getNumberType(e)==i18n.phonenumbers.PhoneNumberType.MOBILE&&""!=(e=i18n.phonenumbers.PhoneNumberUtil.getCountryMobileToken(e.getCountryCodeOrDefault()))?t[2].length+e.length:t[1].length},i18n.phonenumbers.PhoneNumberUtil.getCountryMobileToken=function(e){return i18n.phonenumbers.PhoneNumberUtil.MOBILE_TOKEN_MAPPINGS_[e]||""},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedRegions=function(){return Object.keys(i18n.phonenumbers.metadata.countryToMetadata).filter(function(e){return isNaN(e)})},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedGlobalNetworkCallingCodes=function(){return Object.keys(i18n.phonenumbers.metadata.countryToMetadata).filter(function(e){return!isNaN(e)}).map(function(e){return parseInt(e,10)})},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedCallingCodes=function(){var e=Object.keys(i18n.phonenumbers.metadata.countryCodeToRegionCodeMap);return[].concat($jscomp.arrayFromIterable(this.getSupportedGlobalNetworkCallingCodes()),$jscomp.arrayFromIterable(e.map(function(e){return parseInt(e,10)})))},i18n.phonenumbers.PhoneNumberUtil.descHasPossibleNumberData_=function(e){return null!=e&&(1!=e.possibleLengthCount()||-1!=e.possibleLengthArray()[0])},i18n.phonenumbers.PhoneNumberUtil.descHasData_=function(e){return null!=e&&(e.hasExampleNumber()||i18n.phonenumbers.PhoneNumberUtil.descHasPossibleNumberData_(e)||e.hasNationalNumberPattern())},i18n.phonenumbers.PhoneNumberUtil.getSupportedTypesForMetadata_=function(e){var t=[];return goog.object.forEach(i18n.phonenumbers.PhoneNumberType,function(r){if(r!=i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE&&r!=i18n.phonenumbers.PhoneNumberType.UNKNOWN){var n=i18n.phonenumbers.PhoneNumberUtil.getNumberDescByType_(e,r);i18n.phonenumbers.PhoneNumberUtil.descHasData_(n)&&t.push(r)}}),t},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedTypesForRegion=function(e){return this.isValidRegionCode_(e)?i18n.phonenumbers.PhoneNumberUtil.getSupportedTypesForMetadata_(this.getMetadataForRegion(e)):[]},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedTypesForNonGeoEntity=function(e){return null==(e=this.getMetadataForNonGeographicalRegion(e))?[]:i18n.phonenumbers.PhoneNumberUtil.getSupportedTypesForMetadata_(e)},i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_=function(e,t,r){for(var n,i,o=new goog.string.StringBuffer,a=e.length,s=0;s=i||(n=n.substring(0,i),0!=(n=i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly(n)).length&&((t=r.clone()).clearNationalPrefixFormattingRule(),t=this.formatByPattern(e,i18n.phonenumbers.PhoneNumberFormat.NATIONAL,[t])))}}return e=e.getRawInputOrDefault(),null!=t&&0e?i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_SHORT:i[i.length-1]i18n.phonenumbers.PhoneNumberUtil.MAX_INPUT_STRING_LENGTH_)throw Error(i18n.phonenumbers.Error.TOO_LONG);var i=new goog.string.StringBuffer;if(this.buildNationalNumberForParsing_(e,i),!i18n.phonenumbers.PhoneNumberUtil.isViablePhoneNumber(i.toString()))throw Error(i18n.phonenumbers.Error.NOT_A_NUMBER);if(n&&!this.checkRegionForParsing_(i.toString(),t))throw Error(i18n.phonenumbers.Error.INVALID_COUNTRY_CODE);n=new i18n.phonenumbers.PhoneNumber,r&&n.setRawInput(e),0<(e=this.maybeStripExtension(i)).length&&n.setExtension(e);var o=this.getMetadataForRegion(t);e=new goog.string.StringBuffer;var a=0,s=i.toString();try{a=this.maybeExtractCountryCode(s,o,e,r,n)}catch(t){if(t.message==i18n.phonenumbers.Error.INVALID_COUNTRY_CODE&&i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN.test(s)){if(s=s.replace(i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN,""),0==(a=this.maybeExtractCountryCode(s,o,e,r,n)))throw t}else throw t}if(0!=a?(i=this.getRegionCodeForCountryCode(a))!=t&&(o=this.getMetadataForRegionOrCallingCode_(a,i)):(i18n.phonenumbers.PhoneNumberUtil.normalizeSB_(i),e.append(i.toString()),null!=t?(a=o.getCountryCodeOrDefault(),n.setCountryCode(a)):r&&n.clearCountryCodeSource()),e.getLength()i18n.phonenumbers.PhoneNumberUtil.MAX_LENGTH_FOR_NSN_)throw Error(i18n.phonenumbers.Error.TOO_LONG);return i18n.phonenumbers.PhoneNumberUtil.setItalianLeadingZerosForPhoneNumber_(r,n),n.setNationalNumber(parseInt(r,10)),n},i18n.phonenumbers.PhoneNumberUtil.prototype.extractPhoneContext_=function(e){var t=e.indexOf(i18n.phonenumbers.PhoneNumberUtil.RFC3966_PHONE_CONTEXT_);if(-1===t)return null;if((t+=i18n.phonenumbers.PhoneNumberUtil.RFC3966_PHONE_CONTEXT_.length)>=e.length)return"";var r=e.indexOf(";",t);return -1!==r?e.substring(t,r):e.substring(t)},i18n.phonenumbers.PhoneNumberUtil.prototype.isPhoneContextValid_=function(e){if(null==e)return!0;if(0===e.length)return!1;var t=i18n.phonenumbers.PhoneNumberUtil.RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.exec(e);return e=i18n.phonenumbers.PhoneNumberUtil.RFC3966_DOMAINNAME_PATTERN_.exec(e),null!==t||null!==e},i18n.phonenumbers.PhoneNumberUtil.prototype.buildNationalNumberForParsing_=function(e,t){var r=i18n.phonenumbers.PhoneNumberUtil.prototype.extractPhoneContext_(e);if(!i18n.phonenumbers.PhoneNumberUtil.prototype.isPhoneContextValid_(r))throw Error(i18n.phonenumbers.Error.NOT_A_NUMBER);if(null!=r){r.charAt(0)===i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN&&t.append(r),r=0<=(r=e.indexOf(i18n.phonenumbers.PhoneNumberUtil.RFC3966_PREFIX_))?r+i18n.phonenumbers.PhoneNumberUtil.RFC3966_PREFIX_.length:0;var n=e.indexOf(i18n.phonenumbers.PhoneNumberUtil.RFC3966_PHONE_CONTEXT_);t.append(e.substring(r,n))}else t.append(i18n.phonenumbers.PhoneNumberUtil.extractPossibleNumber(null!=e?e:""));0<(r=(e=t.toString()).indexOf(i18n.phonenumbers.PhoneNumberUtil.RFC3966_ISDN_SUBADDRESS_))&&(t.clear(),t.append(e.substring(0,r)))},i18n.phonenumbers.PhoneNumberUtil.copyCoreFieldsOnly_=function(e){var t=new i18n.phonenumbers.PhoneNumber;return t.setCountryCode(e.getCountryCodeOrDefault()),t.setNationalNumber(e.getNationalNumberOrDefault()),0=i18n.phonenumbers.AsYouTypeFormatter.MIN_LEADING_DIGITS_LENGTH_?(this.getAvailableFormats_(e),0<(e=this.attemptToFormatAccruedDigits_()).length?e:this.maybeCreateNewTemplate_()?this.inputAccruedNationalNumber_():this.accruedInput_.toString()):this.appendNationalNumber_(e)},i18n.phonenumbers.AsYouTypeFormatter.prototype.inputAccruedNationalNumber_=function(){var e=this.nationalNumber_.toString(),t=e.length;if(0 */t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<>1,l=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,u=8*o-i-1,l=(1<>1,f=23===i?5960464477539062e-23:0,h=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+d>=1?t+=f/c:t+=f*Math.pow(2,1-d),t*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*m}},18139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,u="\n",l="/",d="*",f="",h="comment",p="declaration";function m(e){return e?e.replace(c,f):f}e.exports=function(e,c){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];c=c||{};var b=1,g=1;function y(e){var t=e.match(r);t&&(b+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function _(){var e={line:b,column:g};return function(t){return t.position=new v(e),S(),t}}function v(e){this.start=e,this.end={line:b,column:g},this.source=c.source}v.prototype.content=e;var E=[];function T(t){var r=Error(c.source+":"+b+":"+g+": "+t);if(r.reason=t,r.filename=c.source,r.line=b,r.column=g,r.source=e,c.silent)E.push(r);else throw r}function A(t){var r=t.exec(e);if(r){var n=r[0];return y(n),e=e.slice(n.length),r}}function S(){A(n)}function x(e){var t;for(e=e||[];t=C();)!1!==t&&e.push(t);return e}function C(){var t=_();if(l==e.charAt(0)&&d==e.charAt(1)){for(var r=2;f!=e.charAt(r)&&(d!=e.charAt(r)||l!=e.charAt(r+1));)++r;if(r+=2,f===e.charAt(r-1))return T("End of comment missing");var n=e.slice(2,r-2);return g+=2,y(n),e=e.slice(r),g+=2,t({type:h,comment:n})}}function w(){var e=_(),r=A(i);if(r){if(C(),!A(o))return T("property missing ':'");var n=A(a),c=e({type:p,property:m(r[0].replace(t,f)),value:n?m(n[0].replace(t,f)):f});return A(s),c}}function N(){var e,t=[];for(x(t);e=w();)!1!==e&&(t.push(e),x(t));return t}return S(),N()}},96486:function(e,t,r){var n;e=r.nmd(e),(function(){var i,o="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",u="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,p=2,m=4,b=1,g=2,y=1,_=2,v=4,E=8,T=16,A=32,S=64,x=128,C=256,w=512,N=30,M="...",k=800,O=16,R=1,I=2,P=3,D=1/0,$=9007199254740991,L=17976931348623157e292,F=0/0,j=4294967295,U=4294967294,B=2147483647,H=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],z="[object Arguments]",V="[object Array]",G="[object AsyncFunction]",Y="[object Boolean]",q="[object Date]",W="[object DOMException]",Z="[object Error]",K="[object Function]",X="[object GeneratorFunction]",Q="[object Map]",J="[object Number]",ee="[object Null]",et="[object Object]",er="[object Promise]",en="[object Proxy]",ei="[object RegExp]",eo="[object Set]",ea="[object String]",es="[object Symbol]",ec="[object Undefined]",eu="[object WeakMap]",el="[object WeakSet]",ed="[object ArrayBuffer]",ef="[object DataView]",eh="[object Float32Array]",ep="[object Float64Array]",em="[object Int8Array]",eb="[object Int16Array]",eg="[object Int32Array]",ey="[object Uint8Array]",e_="[object Uint8ClampedArray]",ev="[object Uint16Array]",eE="[object Uint32Array]",eT=/\b__p \+= '';/g,eA=/\b(__p \+=) '' \+/g,eS=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ex=/&(?:amp|lt|gt|quot|#39);/g,eC=/[&<>"']/g,ew=RegExp(ex.source),eN=RegExp(eC.source),eM=/<%-([\s\S]+?)%>/g,ek=/<%([\s\S]+?)%>/g,eO=/<%=([\s\S]+?)%>/g,eR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eI=/^\w*$/,eP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eD=/[\\^$.*+?()[\]{}|]/g,e$=RegExp(eD.source),eL=/^\s+/,eF=/\s/,ej=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eU=/\{\n\/\* \[wrapped with (.+)\] \*/,eB=/,? & /,eH=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ez=/[()=,{}\[\]\/\s]/,eV=/\\(\\)?/g,eG=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,eY=/\w*$/,eq=/^[-+]0x[0-9a-f]+$/i,eW=/^0b[01]+$/i,eZ=/^\[object .+?Constructor\]$/,eK=/^0o[0-7]+$/i,eX=/^(?:0|[1-9]\d*)$/,eQ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,eJ=/($^)/,e0=/['\n\r\u2028\u2029\\]/g,e1="\ud800-\udfff",e2="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",e3="\\u2700-\\u27bf",e4="a-z\\xdf-\\xf6\\xf8-\\xff",e6="A-Z\\xc0-\\xd6\\xd8-\\xde",e5="\\ufe0e\\ufe0f",e8="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",e9="['’]",e7="["+e1+"]",te="["+e8+"]",tt="["+e2+"]",tr="\\d+",tn="["+e3+"]",ti="["+e4+"]",to="[^"+e1+e8+tr+e3+e4+e6+"]",ta="\ud83c[\udffb-\udfff]",ts="[^"+e1+"]",tc="(?:\ud83c[\udde6-\uddff]){2}",tu="[\ud800-\udbff][\udc00-\udfff]",tl="["+e6+"]",td="\\u200d",tf="(?:"+ti+"|"+to+")",th="(?:"+tl+"|"+to+")",tp="(?:"+e9+"(?:d|ll|m|re|s|t|ve))?",tm="(?:"+e9+"(?:D|LL|M|RE|S|T|VE))?",tb="(?:"+tt+"|"+ta+")?",tg="["+e5+"]?",ty="(?:"+td+"(?:"+[ts,tc,tu].join("|")+")"+tg+tb+")*",t_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tv="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tE=tg+tb+ty,tT="(?:"+[tn,tc,tu].join("|")+")"+tE,tA="(?:"+[ts+tt+"?",tt,tc,tu,e7].join("|")+")",tS=RegExp(e9,"g"),tx=RegExp(tt,"g"),tC=RegExp(ta+"(?="+ta+")|"+tA+tE,"g"),tw=RegExp([tl+"?"+ti+"+"+tp+"(?="+[te,tl,"$"].join("|")+")",th+"+"+tm+"(?="+[te,tl+tf,"$"].join("|")+")",tl+"?"+tf+"+"+tp,tl+"+"+tm,tv,t_,tr,tT].join("|"),"g"),tN=RegExp("["+td+e1+e2+e5+"]"),tM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tk=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tO=-1,tR={};tR[eh]=tR[ep]=tR[em]=tR[eb]=tR[eg]=tR[ey]=tR[e_]=tR[ev]=tR[eE]=!0,tR[z]=tR[V]=tR[ed]=tR[Y]=tR[ef]=tR[q]=tR[Z]=tR[K]=tR[Q]=tR[J]=tR[et]=tR[ei]=tR[eo]=tR[ea]=tR[eu]=!1;var tI={};tI[z]=tI[V]=tI[ed]=tI[ef]=tI[Y]=tI[q]=tI[eh]=tI[ep]=tI[em]=tI[eb]=tI[eg]=tI[Q]=tI[J]=tI[et]=tI[ei]=tI[eo]=tI[ea]=tI[es]=tI[ey]=tI[e_]=tI[ev]=tI[eE]=!0,tI[Z]=tI[K]=tI[eu]=!1;var tP={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},tD={"&":"&","<":"<",">":">",'"':""","'":"'"},t$={"&":"&","<":"<",">":">",""":'"',"'":"'"},tL={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tF=parseFloat,tj=parseInt,tU="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,tB="object"==typeof self&&self&&self.Object===Object&&self,tH=tU||tB||Function("return this")(),tz=t&&!t.nodeType&&t,tV=tz&&e&&!e.nodeType&&e,tG=tV&&tV.exports===tz,tY=tG&&tU.process,tq=function(){try{var e=tV&&tV.require&&tV.require("util").types;if(e)return e;return tY&&tY.binding&&tY.binding("util")}catch(e){}}(),tW=tq&&tq.isArrayBuffer,tZ=tq&&tq.isDate,tK=tq&&tq.isMap,tX=tq&&tq.isRegExp,tQ=tq&&tq.isSet,tJ=tq&&tq.isTypedArray;function t0(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function t1(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function t8(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function rS(e,t){for(var r=e.length;r--&&rc(t,e[r],0)>-1;);return r}function rx(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var rC=rh(tP),rw=rh(tD);function rN(e){return"\\"+tL[e]}function rM(e,t){return null==e?i:e[t]}function rk(e){return tN.test(e)}function rO(e){return tM.test(e)}function rR(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function rI(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function rP(e,t){return function(r){return e(t(r))}}function rD(e,t){for(var r=-1,n=e.length,i=0,o=[];++r-1}function nd(e,t){var r=this.__data__,n=nI(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function nf(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function nU(e,t,r,n,o,a){var s,c=t&h,u=t&p,l=t&m;if(r&&(s=o?r(e,n,o,a):r(e)),i!==s)return s;if(!cQ(e))return e;var d=c$(e);if(d){if(s=o6(e),!c)return oc(e,s)}else{var f=o1(e),b=f==K||f==X;if(cB(e))return i9(e,c);if(f==et||f==z||b&&!o){if(s=u||b?{}:o5(e),!c)return u?od(e,n$(s,e)):ol(e,nD(s,e))}else{if(!tI[f])return o?e:{};s=o8(e,f,c)}}a||(a=new nE);var g=a.get(e);if(g)return g;a.set(e,s),ut(e)?e.forEach(function(n){s.add(nU(n,t,r,n,e,a))}):c0(e)&&e.forEach(function(n,i){s.set(i,nU(n,t,r,i,e,a))});var y=l?u?oV:oz:u?uB:uU,_=d?i:y(e);return t2(_||e,function(n,i){_&&(n=e[i=n]),nR(s,i,nU(n,t,r,i,e,a))}),s}function nB(e){var t=uU(e);return function(r){return nH(r,e,t)}}function nH(e,t,r){var n=r.length;if(null==e)return!n;for(e=e2(e);n--;){var o=r[n],a=t[o],s=e[o];if(i===s&&!(o in e)||!a(s))return!1}return!0}function nz(e,t,r){if("function"!=typeof e)throw new e6(c);return a_(function(){e.apply(i,r)},t)}function nV(e,t,r,n){var i=-1,o=t5,s=!0,c=e.length,u=[],l=t.length;if(!c)return u;r&&(t=t9(t,rv(r))),n?(o=t8,s=!1):t.length>=a&&(o=rT,s=!1,t=new ny(t));e:for(;++io?0:o+r),(n=i===n||n>o?o:uf(n))<0&&(n+=o),n=r>n?0:uh(n);r0&&r(s)?t>1?nX(s,t-1,r,n,i):t7(i,s):n||(i[i.length]=s)}return i}var nQ=om(),nJ=om(!0);function n0(e,t){return e&&nQ(e,t,uU)}function n1(e,t){return e&&nJ(e,t,uU)}function n2(e,t){return t6(t,function(t){return cZ(e[t])})}function n3(e,t){t=i4(t,e);for(var r=0,n=t.length;null!=e&&rt}function n8(e,t){return null!=e&&tt.call(e,t)}function n9(e,t){return null!=e&&t in e2(e)}function n7(e,t,r){return e>=tL(t,r)&&e=120&&f.length>=120)?new ny(c&&f):i}f=e[0];var h=-1,p=u[0];e:for(;++h-1;)s!==e&&tm.call(s,c,1),tm.call(e,c,1);return e}function iO(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;ae(i)?tm.call(e,i,1):iK(e,i)}}return e}function iR(e,t){return e+tC(tz()*(t-e+1))}function iI(e,t,n,i){for(var o=-1,a=t$(tA((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}function iP(e,t){var r="";if(!e||t<1||t>$)return r;do t%2&&(r+=e),(t=tC(t/2))&&(e+=e);while(t);return r}function iD(e,t){return av(ap(e,t,lF),e+"")}function i$(e){return nN(u6(e))}function iL(e,t){var r=u6(e);return aA(r,nj(t,0,r.length))}function iF(e,t,r,n){if(!cQ(e))return e;t=i4(t,e);for(var o=-1,a=t.length,s=a-1,c=e;null!=c&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!un(a)&&(r?a<=t:a=a){var l=t?null:oI(e);if(l)return r$(l);s=!1,i=rT,u=new ny}else u=t?[]:c;e:for(;++n=n?e:iH(e,t,r)}var i8=tv||function(e){return tH.clearTimeout(e)};function i9(e,t){if(t)return e.slice();var r=e.length,n=td?td(r):new e.constructor(r);return e.copy(n),n}function i7(e){var t=new e.constructor(e.byteLength);return new tl(t).set(new tl(e)),t}function oe(e,t){var r=t?i7(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function ot(e){var t=new e.constructor(e.source,eY.exec(e));return t.lastIndex=e.lastIndex,t}function or(e){return r0?e2(r0.call(e)):{}}function on(e,t){var r=t?i7(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function oi(e,t){if(e!==t){var r=i!==e,n=null===e,o=e==e,a=un(e),s=i!==t,c=null===t,u=t==t,l=un(t);if(!c&&!l&&!a&&e>t||a&&s&&u&&!c&&!l||n&&s&&u||!r&&u||!o)return 1;if(!n&&!a&&!l&&e=s)return c;return c*("desc"==r[n]?-1:1)}}return e.index-t.index}function oa(e,t,n,i){for(var o=-1,a=e.length,s=n.length,c=-1,u=t.length,l=t$(a-s,0),d=r(u+l),f=!i;++c1?r[o-1]:i,s=o>2?r[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&at(r[0],r[1],s)&&(a=o<3?i:a,o=1),t=e2(t);++n-1?o[a?t[s]:s]:i}}function oT(e){return oH(function(t){var r=t.length,n=r,o=r6.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new e6(c);if(o&&!s&&"wrapper"==oY(a))var s=new r6([],!0)}for(n=s?n:r;++n1&&y.reverse(),f&&lc))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var f=-1,h=!0,p=r&g?new ny:i;for(a.set(e,t),a.set(t,e);++f1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ej,"{\n/* [wrapped with "+t+"] */\n")}function o7(e){return c$(e)||cD(e)||!!(tb&&e&&e[tb])}function ae(e,t){var r=typeof e;return!!(t=null==t?$:t)&&("number"==r||"symbol"!=r&&eX.test(e))&&e>-1&&e%1==0&&e0){if(++t>=k)return arguments[0]}else t=0;return e.apply(i,arguments)}}function aA(e,t){var r=-1,n=e.length,o=n-1;for(t=i===t?n:t;++r1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,sv(e,r)});function sM(e){var t=r2(e);return t.__chain__=!0,t}function sk(e,t){return t(e),e}function sO(e,t){return t(e)}var sR=oH(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return nF(t,e)};return!(t>1)&&!this.__actions__.length&&n instanceof r5&&ae(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:sO,args:[o],thisArg:i}),new r6(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});function sI(){return sM(this)}function sP(){return new r6(this.value(),this.__chain__)}function sD(){i===this.__values__&&(this.__values__=ul(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function s$(){return this}function sL(e){for(var t,r=this;r instanceof r4;){var n=aN(r);n.__index__=0,n.__values__=i,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t}function sF(){var e=this.__wrapped__;if(e instanceof r5){var t=e;return this.__actions__.length&&(t=new r5(this)),(t=t.reverse()).__actions__.push({func:sO,args:[a9],thisArg:i}),new r6(t,this.__chain__)}return this.thru(a9)}function sj(){return iJ(this.__wrapped__,this.__actions__)}var sU=of(function(e,t,r){tt.call(e,r)?++e[r]:nL(e,r,1)});function sB(e,t,r){var n=c$(e)?t4:nq;return r&&at(e,t,r)&&(t=i),n(e,oW(t,3))}function sH(e,t){return(c$(e)?t6:nK)(e,oW(t,3))}var sz=oE(aU),sV=oE(aB);function sG(e,t){return nX(s0(e,t),1)}function sY(e,t){return nX(s0(e,t),D)}function sq(e,t,r){return r=i===r?1:uf(r),nX(s0(e,t),r)}function sW(e,t){return(c$(e)?t2:nG)(e,oW(t,3))}function sZ(e,t){return(c$(e)?t3:nY)(e,oW(t,3))}var sK=of(function(e,t,r){tt.call(e,r)?e[r].push(t):nL(e,r,[t])});function sX(e,t,r,n){e=cF(e)?e:u6(e),r=r&&!n?uf(r):0;var i=e.length;return r<0&&(r=t$(i+r,0)),ur(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&rc(e,t,r)>-1}var sQ=iD(function(e,t,n){var i=-1,o="function"==typeof t,a=cF(e)?r(e.length):[];return nG(e,function(e){a[++i]=o?t0(t,e,n):ir(e,t,n)}),a}),sJ=of(function(e,t,r){nL(e,r,t)});function s0(e,t){return(c$(e)?t9:iv)(e,oW(t,3))}function s1(e,t,r,n){return null==e?[]:(c$(t)||(t=null==t?[]:[t]),c$(r=n?i:r)||(r=null==r?[]:[r]),iC(e,t,r))}var s2=of(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function s3(e,t,r){var n=c$(e)?re:rp,i=arguments.length<3;return n(e,oW(t,4),r,i,nG)}function s4(e,t,r){var n=c$(e)?rt:rp,i=arguments.length<3;return n(e,oW(t,4),r,i,nY)}function s6(e,t){return(c$(e)?t6:nK)(e,cm(oW(t,3)))}function s5(e){return(c$(e)?nN:i$)(e)}function s8(e,t,r){return t=(r?at(e,t,r):i===t)?1:uf(t),(c$(e)?nM:iL)(e,t)}function s9(e){return(c$(e)?nk:iB)(e)}function s7(e){if(null==e)return 0;if(cF(e))return ur(e)?rU(e):e.length;var t=o1(e);return t==Q||t==eo?e.size:ig(e).length}function ce(e,t,r){var n=c$(e)?rr:iz;return r&&at(e,t,r)&&(t=i),n(e,oW(t,3))}var ct=iD(function(e,t){if(null==e)return[];var r=t.length;return r>1&&at(e,t[0],t[1])?t=[]:r>2&&at(t[0],t[1],t[2])&&(t=[t[0]]),iC(e,nX(t,1),[])}),cr=tE||function(){return tH.Date.now()};function cn(e,t){if("function"!=typeof t)throw new e6(c);return e=uf(e),function(){if(--e<1)return t.apply(this,arguments)}}function ci(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,oD(e,x,i,i,i,i,t)}function co(e,t){var r;if("function"!=typeof t)throw new e6(c);return e=uf(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var ca=iD(function(e,t,r){var n=y;if(r.length){var i=rD(r,oq(ca));n|=A}return oD(e,n,t,r,i)}),cs=iD(function(e,t,r){var n=y|_;if(r.length){var i=rD(r,oq(cs));n|=A}return oD(t,n,e,r,i)});function cc(e,t,r){t=r?i:t;var n=oD(e,E,i,i,i,i,i,t);return n.placeholder=cc.placeholder,n}function cu(e,t,r){t=r?i:t;var n=oD(e,T,i,i,i,i,i,t);return n.placeholder=cu.placeholder,n}function cl(e,t,r){var n,o,a,s,u,l,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new e6(c);function m(t){var r=n,a=o;return n=o=i,d=t,s=e.apply(a,r)}function b(e){return d=e,u=a_(_,t),f?m(e):s}function g(e){var r=e-l,n=e-d,i=t-r;return h?tL(i,a-n):i}function y(e){var r=e-l,n=e-d;return i===l||r>=t||r<0||h&&n>=a}function _(){var e=cr();if(y(e))return v(e);u=a_(_,g(e))}function v(e){return(u=i,p&&n)?m(e):(n=o=i,s)}function E(){i!==u&&i8(u),d=0,n=l=o=u=i}function T(){return i===u?s:v(cr())}function A(){var e=cr(),r=y(e);if(n=arguments,o=this,l=e,r){if(i===u)return b(l);if(h)return i8(u),u=a_(_,t),m(l)}return i===u&&(u=a_(_,t)),s}return t=up(t)||0,cQ(r)&&(f=!!r.leading,a=(h="maxWait"in r)?t$(up(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),A.cancel=E,A.flush=T,A}var cd=iD(function(e,t){return nz(e,1,t)}),cf=iD(function(e,t,r){return nz(e,up(t)||0,r)});function ch(e){return oD(e,w)}function cp(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new e6(c);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(cp.Cache||nf),r}function cm(e){if("function"!=typeof e)throw new e6(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function cb(e){return co(2,e)}cp.Cache=nf;var cg=i6(function(e,t){var r=(t=1==t.length&&c$(t[0])?t9(t[0],rv(oW())):t9(nX(t,1),rv(oW()))).length;return iD(function(n){for(var i=-1,o=tL(n.length,r);++i=t}),cD=ii(function(){return arguments}())?ii:function(e){return cJ(e)&&tt.call(e,"callee")&&!tp.call(e,"callee")},c$=r.isArray,cL=tW?rv(tW):io;function cF(e){return null!=e&&cX(e.length)&&!cZ(e)}function cj(e){return cJ(e)&&cF(e)}function cU(e){return!0===e||!1===e||cJ(e)&&n6(e)==Y}var cB=tN||l2,cH=tZ?rv(tZ):ia;function cz(e){return cJ(e)&&1===e.nodeType&&!c9(e)}function cV(e){if(null==e)return!0;if(cF(e)&&(c$(e)||"string"==typeof e||"function"==typeof e.splice||cB(e)||ui(e)||cD(e)))return!e.length;var t=o1(e);if(t==Q||t==eo)return!e.size;if(as(e))return!ig(e).length;for(var r in e)if(tt.call(e,r))return!1;return!0}function cG(e,t){return is(e,t)}function cY(e,t,r){var n=(r="function"==typeof r?r:i)?r(e,t):i;return i===n?is(e,t,i,r):!!n}function cq(e){if(!cJ(e))return!1;var t=n6(e);return t==Z||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!c9(e)}function cW(e){return"number"==typeof e&&tM(e)}function cZ(e){if(!cQ(e))return!1;var t=n6(e);return t==K||t==X||t==G||t==en}function cK(e){return"number"==typeof e&&e==uf(e)}function cX(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=$}function cQ(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function cJ(e){return null!=e&&"object"==typeof e}var c0=tK?rv(tK):iu;function c1(e,t){return e===t||il(e,t,oK(t))}function c2(e,t,r){return r="function"==typeof r?r:i,il(e,t,oK(t),r)}function c3(e){return c8(e)&&e!=+e}function c4(e){if(aa(e))throw new eF(s);return id(e)}function c6(e){return null===e}function c5(e){return null==e}function c8(e){return"number"==typeof e||cJ(e)&&n6(e)==J}function c9(e){if(!cJ(e)||n6(e)!=et)return!1;var t=tf(e);if(null===t)return!0;var r=tt.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&te.call(r)==to}var c7=tX?rv(tX):ih;function ue(e){return cK(e)&&e>=-$&&e<=$}var ut=tQ?rv(tQ):ip;function ur(e){return"string"==typeof e||!c$(e)&&cJ(e)&&n6(e)==ea}function un(e){return"symbol"==typeof e||cJ(e)&&n6(e)==es}var ui=tJ?rv(tJ):im;function uo(e){return i===e}function ua(e){return cJ(e)&&o1(e)==eu}function us(e){return cJ(e)&&n6(e)==el}var uc=ok(i_),uu=ok(function(e,t){return e<=t});function ul(e){if(!e)return[];if(cF(e))return ur(e)?rB(e):oc(e);if(tg&&e[tg])return rR(e[tg]());var t=o1(e);return(t==Q?rI:t==eo?r$:u6)(e)}function ud(e){return e?(e=up(e))===D||e===-D?(e<0?-1:1)*L:e==e?e:0:0===e?e:0}function uf(e){var t=ud(e),r=t%1;return t==t?r?t-r:t:0}function uh(e){return e?nj(uf(e),0,j):0}function up(e){if("number"==typeof e)return e;if(un(e))return F;if(cQ(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=cQ(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r_(e);var r=eW.test(e);return r||eK.test(e)?tj(e.slice(2),r?2:8):eq.test(e)?F:+e}function um(e){return ou(e,uB(e))}function ub(e){return e?nj(uf(e),-$,$):0===e?e:0}function ug(e){return null==e?"":iW(e)}var uy=oh(function(e,t){if(as(t)||cF(t)){ou(t,uU(t),e);return}for(var r in t)tt.call(t,r)&&nR(e,r,t[r])}),u_=oh(function(e,t){ou(t,uB(t),e)}),uv=oh(function(e,t,r,n){ou(t,uB(t),e,n)}),uE=oh(function(e,t,r,n){ou(t,uU(t),e,n)}),uT=oH(nF);function uA(e,t){var r=r3(e);return null==t?r:nD(r,t)}var uS=iD(function(e,t){e=e2(e);var r=-1,n=t.length,o=n>2?t[2]:i;for(o&&at(t[0],t[1],o)&&(n=1);++r1),t}),ou(e,oV(e),r),n&&(r=nU(r,h|p|m,oF));for(var i=t.length;i--;)iK(r,t[i]);return r});function uq(e,t){return uZ(e,cm(oW(t)))}var uW=oH(function(e,t){return null==e?{}:iw(e,t)});function uZ(e,t){if(null==e)return{};var r=t9(oV(e),function(e){return[e]});return t=oW(t),iN(e,r,function(e,r){return t(e,r[0])})}function uK(e,t,r){t=i4(t,e);var n=-1,o=t.length;for(o||(o=1,e=i);++nt){var n=e;e=t,t=n}if(r||e%1||t%1){var o=tz();return tL(e+o*(t-e+tF("1e-"+((o+"").length-1))),t)}return iR(e,t)}var le=oy(function(e,t,r){return t=t.toLowerCase(),e+(r?lt(t):t)});function lt(e){return lN(ug(e).toLowerCase())}function lr(e){return(e=ug(e))&&e.replace(eQ,rC).replace(tx,"")}function ln(e,t,r){e=ug(e),t=iW(t);var n=e.length,o=r=i===r?n:nj(uf(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t}function li(e){return(e=ug(e))&&eN.test(e)?e.replace(eC,rw):e}function lo(e){return(e=ug(e))&&e$.test(e)?e.replace(eD,"\\$&"):e}var la=oy(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),ls=oy(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),lc=og("toLowerCase");function lu(e,t,r){e=ug(e);var n=(t=uf(t))?rU(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return ow(tC(i),r)+e+ow(tA(i),r)}function ll(e,t,r){e=ug(e);var n=(t=uf(t))?rU(e):0;return t&&n>>0)?(e=ug(e))&&("string"==typeof t||null!=t&&!c7(t))&&!(t=iW(t))&&rk(e)?i5(rB(e),0,r):e.split(t,r):[]}var lg=oy(function(e,t,r){return e+(r?" ":"")+lN(t)});function ly(e,t,r){return e=ug(e),r=null==r?0:nj(uf(r),0,e.length),t=iW(t),e.slice(r,r+t.length)==t}function l_(e,t,r){var n=r2.templateSettings;r&&at(e,t,r)&&(t=i),e=ug(e),t=uv({},t,n,o$);var o,a,s=uv({},t.imports,n.imports,o$),c=uU(s),l=rE(s,c),d=0,f=t.interpolate||eJ,h="__p += '",p=e3((t.escape||eJ).source+"|"+f.source+"|"+(f===eO?eG:eJ).source+"|"+(t.evaluate||eJ).source+"|$","g"),m="//# sourceURL="+(tt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tO+"]")+"\n";e.replace(p,function(t,r,n,i,s,c){return n||(n=i),h+=e.slice(d,c).replace(e0,rN),r&&(o=!0,h+="' +\n__e("+r+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),d=c+t.length,t}),h+="';\n";var b=tt.call(t,"variable")&&t.variable;if(b){if(ez.test(b))throw new eF(u)}else h="with (obj) {\n"+h+"\n}\n";h=(a?h.replace(eT,""):h).replace(eA,"$1").replace(eS,"$1;"),h="function("+(b||"obj")+") {\n"+(b?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=lk(function(){return eH(c,m+"return "+h).apply(i,l)});if(g.source=h,cq(g))throw g;return g}function lv(e){return ug(e).toLowerCase()}function lE(e){return ug(e).toUpperCase()}function lT(e,t,r){if((e=ug(e))&&(r||i===t))return r_(e);if(!e||!(t=iW(t)))return e;var n=rB(e),o=rB(t),a=rA(n,o),s=rS(n,o)+1;return i5(n,a,s).join("")}function lA(e,t,r){if((e=ug(e))&&(r||i===t))return e.slice(0,rH(e)+1);if(!e||!(t=iW(t)))return e;var n=rB(e),o=rS(n,rB(t))+1;return i5(n,0,o).join("")}function lS(e,t,r){if((e=ug(e))&&(r||i===t))return e.replace(eL,"");if(!e||!(t=iW(t)))return e;var n=rB(e),o=rA(n,rB(t));return i5(n,o).join("")}function lx(e,t){var r=N,n=M;if(cQ(t)){var o="separator"in t?t.separator:o;r="length"in t?uf(t.length):r,n="omission"in t?iW(t.omission):n}var a=(e=ug(e)).length;if(rk(e)){var s=rB(e);a=s.length}if(r>=a)return e;var c=r-rU(n);if(c<1)return n;var u=s?i5(s,0,c).join(""):e.slice(0,c);if(i===o)return u+n;if(s&&(c+=u.length-c),c7(o)){if(e.slice(c).search(o)){var l,d=u;for(o.global||(o=e3(o.source,ug(eY.exec(o))+"g")),o.lastIndex=0;l=o.exec(d);)var f=l.index;u=u.slice(0,i===f?c:f)}}else if(e.indexOf(iW(o),c)!=c){var h=u.lastIndexOf(o);h>-1&&(u=u.slice(0,h))}return u+n}function lC(e){return(e=ug(e))&&ew.test(e)?e.replace(ex,rz):e}var lw=oy(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),lN=og("toUpperCase");function lM(e,t,r){return(e=ug(e),t=r?i:t,i===t)?rO(e)?rY(e):ro(e):e.match(t)||[]}var lk=iD(function(e,t){try{return t0(e,i,t)}catch(e){return cq(e)?e:new eF(e)}}),lO=oH(function(e,t){return t2(t,function(t){nL(e,t=ax(t),ca(e[t],e))}),e});function lR(e){var t=null==e?0:e.length,r=oW();return e=t?t9(e,function(e){if("function"!=typeof e[1])throw new e6(c);return[r(e[0]),e[1]]}):[],iD(function(r){for(var n=-1;++n$)return[];var r=j,n=tL(e,j);t=oW(t),e-=j;for(var i=rg(n,t);++r0||t<0)?new r5(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),i!==t&&(r=(t=uf(t))<0?r.dropRight(-t):r.take(t-e)),r)},r5.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},r5.prototype.toArray=function(){return this.take(j)},n0(r5.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=r2[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);o&&(r2.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,c=t instanceof r5,u=s[0],l=c||c$(t),d=function(e){var t=o.apply(r2,t7([e],s));return n&&f?t[0]:t};l&&r&&"function"==typeof u&&1!=u.length&&(c=l=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,m=c&&!h;if(!a&&l){t=m?t:new r5(this);var b=e.apply(t,s);return b.__actions__.push({func:sO,args:[d],thisArg:i}),new r6(b,f)}return p&&m?e.apply(this,s):(b=this.thru(d),p?n?b.value()[0]:b.value():b)})}),t2(["pop","push","shift","sort","splice","unshift"],function(e){var t=e5[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);r2.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(c$(i)?i:[],e)}return this[r](function(r){return t.apply(c$(r)?r:[],e)})}}),n0(r5.prototype,function(e,t){var r=r2[t];if(r){var n=r.name+"";tt.call(rG,n)||(rG[n]=[]),rG[n].push({name:t,func:r})}}),rG[oA(i,_).name]=[{name:"wrapper",func:i}],r5.prototype.clone=r8,r5.prototype.reverse=r9,r5.prototype.value=r7,r2.prototype.at=sR,r2.prototype.chain=sI,r2.prototype.commit=sP,r2.prototype.next=sD,r2.prototype.plant=sL,r2.prototype.reverse=sF,r2.prototype.toJSON=r2.prototype.valueOf=r2.prototype.value=sj,r2.prototype.first=r2.prototype.head,tg&&(r2.prototype[tg]=s$),r2}();tH._=rq,i!==(n=(function(){return rq}).call(t,r,t,e))&&(e.exports=n)}).call(this)},69654:function(e,t){"use strict";var r=["input.jsx-3978586702,textarea.jsx-3978586702{width:100%;height:inherit;font-size:inherit;font-style:inherit;font-family:inherit;-webkit-letter-spacing:1.5px;-moz-letter-spacing:1.5px;-ms-letter-spacing:1.5px;letter-spacing:1.5px;outline:none;color:inherit;border:none;cursor:inherit;background-color:transparent;-webkit-text-fill-color:inherit;}","input.jsx-3978586702::-webkit-outer-spin-button,input.jsx-3978586702::-webkit-inner-spin-button,textarea.jsx-3978586702::-webkit-outer-spin-button,textarea.jsx-3978586702::-webkit-inner-spin-button{-webkit-appearance:none;}","input[type=button].jsx-3978586702,textarea[type=button].jsx-3978586702{cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}","input.jsx-3978586702:-webkit-autofill,input.jsx-3978586702:-webkit-autofill.jsx-3978586702:hover,input.jsx-3978586702:-webkit-autofill.jsx-3978586702:focus,input.jsx-3978586702:-webkit-autofill.jsx-3978586702:active,input.jsx-3978586702:-internal-autofill-selected,textarea.jsx-3978586702:-webkit-autofill,textarea.jsx-3978586702:-webkit-autofill.jsx-3978586702:hover,textarea.jsx-3978586702:-webkit-autofill.jsx-3978586702:focus,textarea.jsx-3978586702:-webkit-autofill.jsx-3978586702:active,textarea.jsx-3978586702:-internal-autofill-selected{color:inherit !important;background-color:transparent !important;-webkit-text-fill-color:inherit;-webkit-box-shadow:0 0 0px 1000px transparent inset !important;-webkit-transition:background-color 5000s ease-in-out 0s !important;transition:background-color 5000s ease-in-out 0s !important;}","input.nav-item.jsx-3978586702,textarea.nav-item.jsx-3978586702{padding:0;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}","input.input__has-icons.jsx-3978586702,textarea.input__has-icons.jsx-3978586702{text-indent:8px;}","input.center.jsx-3978586702,textarea.center.jsx-3978586702{text-align:center;text-indent:0;min-height:var(--s-element);height:100%;min-width:var(--s-element);width:0;}","input.center.jsx-3978586702:focus,input.center.jsx-3978586702:hover,textarea.center.jsx-3978586702:focus,textarea.center.jsx-3978586702:hover{background-color:transparent;}","input.invalid.jsx-3978586702,textarea.invalid.jsx-3978586702{background-color:transparent;z-index:2;-webkit-text-decoration:underline dashed;text-decoration:underline dashed;border-width:0px 0px 2px 0px;border-bottom-color:var(--red-70);}",'input.signature.jsx-3978586702,textarea.signature.jsx-3978586702{padding-left:var(--s-3);font-size:var(--s-2);font-family:"Ephesis",cursive;}',"input.signature.jsx-3978586702::-webkit-input-placeholder,textarea.signature.jsx-3978586702::-webkit-input-placeholder{color:var(--gray-70);padding:0;font-size:var(--s-2);}","input.signature.jsx-3978586702::-moz-placeholder,textarea.signature.jsx-3978586702::-moz-placeholder{color:var(--gray-70);padding:0;font-size:var(--s-2);}","input.signature.jsx-3978586702:-ms-input-placeholder,textarea.signature.jsx-3978586702:-ms-input-placeholder{color:var(--gray-70);padding:0;font-size:var(--s-2);}","input.signature.jsx-3978586702::placeholder,textarea.signature.jsx-3978586702::placeholder{color:var(--gray-70);padding:0;font-size:var(--s-2);}","input.signature.jsx-3978586702::-webkit-input-placeholder.jsx-3978586702:hover,textarea.signature.jsx-3978586702::-webkit-input-placeholder.jsx-3978586702:hover{color:var(--gray-10);}","input.signature.jsx-3978586702::-moz-placeholder.jsx-3978586702:hover,textarea.signature.jsx-3978586702::-moz-placeholder.jsx-3978586702:hover{color:var(--gray-10);}","input.signature.jsx-3978586702:-ms-input-placeholder.jsx-3978586702:hover,textarea.signature.jsx-3978586702:-ms-input-placeholder.jsx-3978586702:hover{color:var(--gray-10);}","input.signature.jsx-3978586702::placeholder.jsx-3978586702:hover,textarea.signature.jsx-3978586702::placeholder.jsx-3978586702:hover{color:var(--gray-10);}","input.signature.jsx-3978586702::-webkit-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before,textarea.signature.jsx-3978586702::-webkit-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before{color:var(--gray-40);}","input.signature.jsx-3978586702::-moz-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before,textarea.signature.jsx-3978586702::-moz-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before{color:var(--gray-40);}","input.signature.jsx-3978586702:-ms-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before,textarea.signature.jsx-3978586702:-ms-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before{color:var(--gray-40);}","input.signature.jsx-3978586702::placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before,textarea.signature.jsx-3978586702::placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before{color:var(--gray-40);}","input.signature.jsx-3978586702::-webkit-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after,textarea.signature.jsx-3978586702::-webkit-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after{border-top-color:var(--gray-40);}","input.signature.jsx-3978586702::-moz-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after,textarea.signature.jsx-3978586702::-moz-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after{border-top-color:var(--gray-40);}","input.signature.jsx-3978586702:-ms-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after,textarea.signature.jsx-3978586702:-ms-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after{border-top-color:var(--gray-40);}","input.signature.jsx-3978586702::placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after,textarea.signature.jsx-3978586702::placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after{border-top-color:var(--gray-40);}","*.jsx-3978586702::-webkit-input-placeholder{font-style:italic;padding:0;font-size:16px;-webkit-animation:fadeIn-jsx-3978586702 0.6s ease-in-out;animation:fadeIn-jsx-3978586702 0.6s ease-in-out;}","*.jsx-3978586702::-moz-placeholder{font-style:italic;padding:0;font-size:16px;-webkit-animation:fadeIn-jsx-3978586702 0.6s ease-in-out;animation:fadeIn-jsx-3978586702 0.6s ease-in-out;}","*.jsx-3978586702:-ms-input-placeholder{font-style:italic;padding:0;font-size:16px;-webkit-animation:fadeIn-jsx-3978586702 0.6s ease-in-out;animation:fadeIn-jsx-3978586702 0.6s ease-in-out;}","*.jsx-3978586702::placeholder{font-style:italic;padding:0;font-size:16px;-webkit-animation:fadeIn-jsx-3978586702 0.6s ease-in-out;animation:fadeIn-jsx-3978586702 0.6s ease-in-out;}","@-webkit-keyframes fadeIn-jsx-3978586702{0%{opacity:0;}100%{opacity:0;}}","@keyframes fadeIn-jsx-3978586702{0%{opacity:0;}100%{opacity:0;}}",".input__message.jsx-3978586702{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;color:var(--orange-50);height:var(--s-element);line-height:1;display:none;text-indent:var(--s-4);}",".input__message.input__message-show.jsx-3978586702{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}"];r.__hash="3978586702",t.Z=r},55340:function(e){e.exports={deploy:"mb1",merchants:{mb1:{mid:"mb1",name:"deepturn",url:"https://deepturn.com",stripeId:"acct_1G38IXIodeKZRLDV"},ah1:{mid:"ah1",name:"aire-hotel",url:"https://airehotel.com",stripeId:""},nirv1:{mid:"nirv1",name:"nirvana-energy",url:"https://nirvanaenergy.net",stripeId:"acct_1OWy0fE8XAGZDdpK"}}}},36593:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_FAST_REFRESH:function(){return u},ACTION_NAVIGATE:function(){return o},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return i},ACTION_RESTORE:function(){return a},ACTION_SERVER_ACTION:function(){return l},ACTION_SERVER_PATCH:function(){return s},PrefetchCacheEntryStatus:function(){return n},PrefetchKind:function(){return r},isThenable:function(){return d}});var r,n,i="refresh",o="navigate",a="restore",s="server-patch",c="prefetch",u="fast-refresh",l="server-action";function d(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}!function(e){e.AUTO="auto",e.FULL="full",e.TEMPORARY="temporary"}(r||(r={})),function(e){e.fresh="fresh",e.reusable="reusable",e.expired="expired",e.stale="stale"}(n||(n={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},83617:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(61063),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78065:function(e,t,r){"use strict";var n=r(20968),i=r(43171),o=r(47069),a=["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"];function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t0;t&&r&&t(r)})},e),elements:i},c.push(r),s.set(r,t),t}function l(e,t,r){var n=u(r),i=n.id,o=n.observer,a=n.elements;return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),s.delete(i);var t=c.findIndex(function(e){return e.root===i.root&&e.margin===i.margin});t>-1&&c.splice(t,1)}}}function d(e){var t=e.rootRef,r=e.rootMargin,s=e.disabled||!a,c=n((0,i.useState)(!1),2),u=c[0],d=c[1],f=(0,i.useRef)(null),h=(0,i.useCallback)(function(e){f.current=e},[]);return(0,i.useEffect)(function(){if(a){if(!s&&!u){var e=f.current;if(e&&e.tagName)return l(e,function(e){return e&&d(e)},{root:null==t?void 0:t.current,rootMargin:r})}}else if(!u){var n=(0,o.requestIdleCallback)(function(){return d(!0)});return function(){return(0,o.cancelIdleCallback)(n)}}},[s,r,t,u,f.current]),[h,u,(0,i.useCallback)(function(){d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31240:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});var n=r(38754)._(r(67294)).default.createContext({})},68911:function(e,t){"use strict";function r(e){var t=void 0===e?{}:e,r=t.ampFirst,n=void 0!==r&&r,i=t.hybrid,o=void 0!==i&&i,a=t.hasQuery,s=void 0!==a&&a;return n||o&&s}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},49903:function(e,t,r){"use strict";var n=r(20968);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t0){a=!0;var s=i.key.slice(i.key.indexOf("$")+1);e.has(s)?o=!1:e.add(s)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(var c=0,u=b.length;c>>0},p={};function m(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return p[n]||(p[n]="jsx-"+h(e+"-"+r)),p[n]}function b(e,t){var r=/__jsx-style-dynamic-selector/g,n=e+t;return p[n]||(p[n]=t.replace(r,e)),p[n]}function g(e,t){return void 0===t&&(t={}),e.map(function(e){var r=e[0],n=e[1];return a.default.createElement("style",{id:"__"+r,key:"__"+r,nonce:t.nonce?t.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})}var y=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,o=void 0!==i&&i;this._sheet=n||new d({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),n&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var o=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=o,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(_(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){return g(this.cssRules(),e)},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=m(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return b(i,e)}):[b(i,t)]}}return{styleId:m(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}();function _(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}var v=o.createContext(null);function E(){return new y}function T(e){var t=e.registry,r=e.children,n=o.useContext(v),i=o.useState(function(){return n||t||E()})[0];return a.default.createElement(v.Provider,{value:i},r)}function A(){return o.useContext(v)}v.displayName="StyleSheetContext";var S=a.default.useInsertionEffect||a.default.useLayoutEffect,x=E();function C(e){var t=x||A();return t&&S(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}C.dynamic=function(e){return e.map(function(e){return m(e[0],e[1])}).join(" ")},n=T,n=E,t.style=C},21378:function(e,t,r){e.exports=r(21082).style},11907:function(e,t,r){"use strict";r.d(t,{C9:function(){return s},Kt:function(){return c},aF:function(){return o},dN:function(){return a}});var n=r(10394),i=r(67294),o=function(){var e=(0,n.ko)("IMemberService"),t=(0,i.useState)(e.getCurrentUser()),r=t[0],o=t[1];return(0,i.useEffect)(function(){var t=[];return t.push(e.userChanged.subscribe(function(e){o(e)})),function(){t.forEach(function(e){return e.unsubscribe()})}},[e.userChanged]),r},a=function(){var e,t=o();return(null==t||null===(e=t.metadata)||void 0===e||null===(e=e.user)||void 0===e?void 0:e.clearance)||0},s=function(e){var t={user:{type:"guest"},others:{creation:0}};switch(e){case 1:t.user={type:"member"};break;case 9:t={user:{type:"manager"},others:{creation:9}};break;case 10:t={user:{type:"admin-1"},others:{creation:9}};break;case 11:t={user:{type:"admin-2"},others:{creation:10}};break;case 12:t={user:{type:"admin-3"},others:{creation:12}}}return t},c=function(){return s(a())}},99980:function(e,t,r){"use strict";var n=r(50029),i=r(64687),o=r.n(i),a=r(67294),s=function(){var e=(0,a.useState)({}),t=e[0],r=e[1];return(0,a.useEffect)(function(){(function(){var e=(0,n.Z)(o().mark(function e(){var t,i,a,s,c;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=(t=window.navigator).userAgent,a=t.userAgentData,s=function(){var e=(0,n.Z)(o().mark(function e(){var t,r;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://api.ipify.org?format=json");case 3:return t=e.sent,e.next=6,t.json();case 6:return r=e.sent,e.abrupt("return",r.ip);case 10:return e.prev=10,e.t0=e.catch(0),console.error("Error fetching IP:",e.t0),e.abrupt("return",null);case 14:case"end":return e.stop()}},e,null,[[0,10]])}));return function(){return e.apply(this,arguments)}}(),e.next=7,s();case 7:c=e.sent,r({user_agent:i,user_agent_data:a,wan:c});case 9:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}})()()},[]),t};t.Z=s},23992:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n,i=r(59499),o=r(55340),a=r.n(o);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t20&&(e=$(n,"error",c));break;case"email":o&&!o.includes("@")?e=$(n,"error","".concat(i,', missing "@"')):o&&!o.includes(".")&&(e=$(n,"error","".concat(i,', missing "."')));break;case"password":var u=null===(r=P.find(function(e){return"confirm_password"==e.name}))||void 0===r?void 0:r.value;a<3?e=$(n,"error",s):a>20&&(e=$(n,"error",c)),o!=u&&(e=$(n,"error","Passwords don't match"),e=$("confirm_password","error","Passwords don't match"))}else e=$(n,"error","".concat(i,", can't be empty"))}),e},F=function(e){var t=e.target;$(t.name,"value",t.value)},j=function(){var e=(0,o.Z)(l().mark(function e(){var t,r,n,i,o,a,c,u,d,f,h,p,m;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(M(!0),t=L()){e.next=16;break}return d={name:"".concat(null===(r=(0,_.PI)(P,"first_name"))||void 0===r?void 0:r.value," ").concat(null===(n=(0,_.PI)(P,"last_name"))||void 0===n?void 0:n.value),email:null===(i=(0,_.PI)(P,"email"))||void 0===i?void 0:i.value,phone:null===(o=(0,_.PI)(P,"phone"))||void 0===o?void 0:o.value,address:null===(a=(0,_.PI)(P,"address"))||void 0===a?void 0:a.value,metadata:{user:{email:null===(c=(0,_.PI)(P,"email"))||void 0===c?void 0:c.value,devices:[{user_agent:R,created:"".concat(Date.now())}],password:null===(u=(0,_.PI)(P,"password"))||void 0===u?void 0:u.value},merchant:E.Z.merchant}},e.prev=4,e.next=7,O.signUp(d);case 7:(null==(h=e.sent)?void 0:h.email)!==void 0?(f=h,s&&s(h)):(null==h?void 0:h.status)==="existing"&&s?s(f=S(S({},h),{},{email:null===(p=(0,_.PI)(P,"email"))||void 0===p?void 0:p.value})):console.error("[ SIGN UP RESPONSE UNHANDLED ]",h),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),null!==e.t0&&void 0!==e.t0&&null!==(m=e.t0.detail)&&void 0!==m&&m.fields?(console.log("[ e.detail.fields ]",e.t0.detail.fields),e.t0.detail.fields.forEach(function(e){$(e.name,"error",e.message)})):console.error("[ SIGN UP RESPONSE ERRORS ]",e.t0);case 14:e.next=17;break;case 16:console.error("[ SIGN UP ERRORS LOCAL ]",t);case 17:M(!1);case 18:case"end":return e.stop()}},e,null,[[4,11]])}));return function(){return e.apply(this,arguments)}}();return(0,d.useEffect)(function(){r&&D([].concat((0,n.Z)(P),C))},[]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(c(),{id:h.__hash,children:h}),!k&&(0,T.jsx)(g.Z,{title:u,fields:P,onSubmit:j,loading:N,onChange:F,submitText:i||"sign up"}),(0,T.jsx)("div",{className:"jsx-".concat(h.__hash)+" authentication__authentication-status",children:null==N?void 0:N.message})]})}},44983:function(e,t,r){"use strict";r.d(t,{R:function(){return a}});var n=r(67294),i=r(42711),o=function(){var e=function(){var e,t=i.Z.getCookie("cart");return"string"==typeof t&&(t=null===(e=JSON.parse(t))||void 0===e?void 0:e.items),t||[]},t=(0,n.useState)(e()),r=t[0],o=t[1],a=function(e){0===e.length?i.Z.deleteCookie("cart"):i.Z.setCookie("cart",JSON.stringify({items:e}),{}),o(e)},s=function(t){var r=e(),n=r.findIndex(function(e){return e.price.id===t.price.id});if(n>-1){var i=r[n];0===t.price.qty?r.splice(n,1):i.price.qty=Number(t.price.qty)}else 0!==t.price.qty&&r.push(t);a(r)};return(0,n.useEffect)(function(){var t=function(){o(e())},r=function(e){"cart"===e.detail.cookieName&&t()};return window.addEventListener("cookieChange",r),function(){return window.removeEventListener("cookieChange",r)}},[]),{cart:r,addCartItem:s}};t.Z=o;var a=function(){var e=o().cart,t=(0,n.useState)(0),r=t[0],i=t[1];return(0,n.useEffect)(function(){e&&i(e.reduce(function(e,t){var r;return e+((null==t||null===(r=t.price)||void 0===r?void 0:r.qty)||0)},0))},[e]),r}},80789:function(e,t,r){"use strict";r.d(t,{RF:function(){return d},db:function(){return l}});var n,i=r(27812),o=r(49334),a=r(67294),s=r(11907),c=(null===(n=r(23992).Z.merchant)||void 0===n?void 0:n.name)||"deepturn",u=[{href:"/payment",hide:!0},{href:"/verify",hide:!0},{href:"/transaction",hide:!0},{label:(0,o.Z)(c),icon:"".concat(c,"-logo"),href:"/"},{label:"products",href:"/product",icon:"fa-tags",active:!0},{label:"Social",icon:"fa-biohazard",href:"/social",clearance:10,items:[{label:"instagram",href:"/social?platform=instagram",icon:"fa-instagram",active:!0}]},{label:"Home",icon:"fa-home",href:"/home",clearance:6,items:[{label:"surveillance",href:"home?vid=surveillance",icon:"fa-camera-security",active:!0},{label:"lights",href:"home?vid=light",icon:"fa-lightbulb-on",active:!0}]},{label:"profile",icon:"fal-circle-user",clearance:1,items:[{href:"/admin?vid=management",label:"admin",clearance:10},{href:"/profile",label:"profile",clearance:1},{href:"/authentication/signout",label:"logout",clearance:1}]},{label:"login",modal:"login",icon:"fa-circle-user",clearance:0},{label:"about",href:"/about",icon:"fal-circle-info",active:!0},{label:"",href:"/cart",icon:"fal-bag-shopping"},{label:"",href:"/checkout",hide:!0}],l=function(){var e,t=(0,s.aF)(),r=(null==t||null===(e=t.metadata)||void 0===e||null===(e=e.user)||void 0===e?void 0:e.clearance)||0;return(0,a.useMemo)(function(){return(function(e){return e.filter(function(e){if("login"===e.label&&0===e.clearance&&t)return!1;var n=void 0===e.clearance||e.clearance<=r;return n&&e.items&&(e.items=e.items.filter(function(e){return void 0===e.clearance||e.clearance<=r})),n})})(u).sort(function(e,t){var r=["login","profile"],n=e.label&&r.includes(e.label)?r.indexOf(e.label):"/cart"===e.href?r.length:-1,i=t.label&&r.includes(t.label)?r.indexOf(t.label):"/cart"===t.href?r.length:-1;return -1!==n&&-1!==i?n-i:-1!==n?1:-1!==i?-1:0}).reverse()},[t,r])},d=function(e){var t=[];return u.forEach(function(r){null!=r&&r.label&&r.items&&!e.includes(null==r?void 0:r.label)?t.push.apply(t,(0,i.Z)(r.items)):(void 0===r.label&&t.push(r),r.label&&!e.includes(r.label)&&t.push(r))}),t}},45485:function(e,t,r){"use strict";let n,i,o;r.r(t),r.d(t,{default:function(){return n0}});var a={};r.r(a),r.d(a,{hasBrowserEnv:function(){return tB},hasStandardBrowserEnv:function(){return tH},hasStandardBrowserWebWorkerEnv:function(){return tz}});var s=r(59499),c=r(21378),u=r.n(c),l=r(67294),d=r(9008),f=r.n(d),h=["main.jsx-3185233888{overflow-y:visible;position:relative;margin-left:auto;margin-right:auto;}","@media (min-width:1260px){main.jsx-3185233888{margin:0 auto;max-width:1260px;inline-size:var(--s-4-width);}}","@media (max-width:900px){main.jsx-3185233888{height:inherit;min-height:auto;}}"];h.__hash="3185233888";var p=h,m=r(11163),b=r(23992),g=r(39925);function y(){var e=(0,l.useState)(!1),t=e[0],r=e[1];function n(){return window.matchMedia("(prefers-color-scheme: dark)").matches}return(0,l.useEffect)(function(){window&&r(n)},[r]),t}var _=r(85893),v=function(){var e=(0,m.useRouter)(),t=(0,g.R)(String(b.Z.merchant.name).replaceAll("-"," ")),r=(0,g.Z)(e.pathname.replace("/","")),n=(0,l.useState)(t),i=n[0],o=n[1];return(0,l.useEffect)(function(){o("".concat(t).concat(null!=r&&r.length?" | "+r:""))},[r]),(0,_.jsxs)(f(),{children:[(0,_.jsx)("title",{children:i}),y()?(0,_.jsx)("link",{rel:"shortcut icon",href:"/merchant/".concat(b.Z.merchant.mid,"/favicon-lite.ico")}):(0,_.jsx)("link",{rel:"shortcut icon",href:"/merchant/".concat(b.Z.merchant.mid,"/favicon-dark.ico")})]})},E=function(e){var t=(0,l.useRef)(),r=b.Z.merchant.mid,n=function(){if(r&&null!=t&&t.current){var e=document.querySelector('link[href*="'.concat(r,'.css"]'));if(!e){var n=document.createElement("link");n.rel="stylesheet",n.href="/styles/merchants/".concat(r,".css"),document.head.appendChild(n)}}};return(0,l.useEffect)(function(){return n(),window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)}},[]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(v,{}),(0,_.jsx)(u(),{id:p.__hash,children:p}),(0,_.jsx)("main",{ref:t,className:"jsx-".concat(p.__hash),children:e.children})]})},T=r(92777),A=r(82262),S=r(45959),x=r(63553),C=r(37247),w=r(10394),N=r(50029),M=r(10748);function k(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,C.Z)(e)););return e}function O(){return(O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=k(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}var R=r(64687),I=r.n(R),P=r(42711),D=function(e,t){return(D=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function $(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function L(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function F(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function j(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?G:(this.currentObservers=null,o.push(e),new V(function(){t.currentObservers=null,z(o,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new eb;return e.source=this,e},t.create=function(e,t){return new eT(e,t)},t}(eb),eT=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return $(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:G},t}(eE);function eA(e){var t=eS();return function(){var r,n=(0,C.Z)(e);return r=t?Reflect.construct(n,arguments,(0,C.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function eS(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var ex=function(e){(0,S.Z)(r,e);var t=eA(r);function r(){var e;(0,T.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o{let t=ew.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),ek=e=>(e=e.toLowerCase(),t=>eM(t)===e),eO=e=>t=>typeof t===e,{isArray:eR}=Array,eI=eO("undefined");function eP(e){return null!==e&&!eI(e)&&null!==e.constructor&&!eI(e.constructor)&&eF(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let eD=ek("ArrayBuffer");function e$(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&eD(e.buffer)}let eL=eO("string"),eF=eO("function"),ej=eO("number"),eU=e=>null!==e&&"object"==typeof e,eB=e=>!0===e||!1===e,eH=e=>{if("object"!==eM(e))return!1;let t=eN(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ez=ek("Date"),eV=ek("File"),eG=ek("Blob"),eY=ek("FileList"),eq=e=>eU(e)&&eF(e.pipe),eW=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||eF(e.append)&&("formdata"===(t=eM(e))||"object"===t&&eF(e.toString)&&"[object FormData]"===e.toString()))},eZ=ek("URLSearchParams"),eK=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function eX(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e){if("object"!=typeof e&&(e=[e]),eR(e))for(n=0,i=e.length;n0;)if(t===(r=n[i]).toLowerCase())return r;return null}let eJ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,e0=e=>!eI(e)&&e!==eJ;function e1(){let{caseless:e}=e0(this)&&this||{},t={},r=(r,n)=>{let i=e&&eQ(t,n)||n;eH(t[i])&&eH(r)?t[i]=e1(t[i],r):eH(r)?t[i]=e1({},r):eR(r)?t[i]=r.slice():t[i]=r};for(let e=0,t=arguments.length;e(eX(t,(t,n)=>{r&&eF(t)?e[n]=eC(t,r):e[n]=t},{allOwnKeys:n}),e),e3=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),e4=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},e6=(e,t,r,n)=>{let i,o,a;let s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==r&&eN(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},e5=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},e8=e=>{if(!e)return null;if(eR(e))return e;let t=e.length;if(!ej(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},e9=(i="undefined"!=typeof Uint8Array&&eN(Uint8Array),e=>i&&e instanceof i),e7=(e,t)=>{let r;let n=(e&&e[Symbol.iterator]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},te=(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},tt=ek("HTMLFormElement"),tr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),tn=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ti=ek("RegExp"),to=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};eX(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)},ta=e=>{to(e,(t,r)=>{if(eF(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(eF(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},ts=(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(eR(e)?e:String(e).split(t)),r},tc=()=>{},tu=(e,t)=>Number.isFinite(e=+e)?e:t,tl="abcdefghijklmnopqrstuvwxyz",td="0123456789",tf={DIGIT:td,ALPHA:tl,ALPHA_DIGIT:tl+tl.toUpperCase()+td},th=(e=16,t=tf.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function tp(e){return!!(e&&eF(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}let tm=e=>{let t=Array(10),r=(e,n)=>{if(eU(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;let i=eR(e)?[]:{};return eX(e,(e,t)=>{let o=r(e,n+1);eI(o)||(i[t]=o)}),t[n]=void 0,i}}return e};return r(e,0)},tb=ek("AsyncFunction"),tg=e=>e&&(eU(e)||eF(e))&&eF(e.then)&&eF(e.catch);var ty={isArray:eR,isArrayBuffer:eD,isBuffer:eP,isFormData:eW,isArrayBufferView:e$,isString:eL,isNumber:ej,isBoolean:eB,isObject:eU,isPlainObject:eH,isUndefined:eI,isDate:ez,isFile:eV,isBlob:eG,isRegExp:ti,isFunction:eF,isStream:eq,isURLSearchParams:eZ,isTypedArray:e9,isFileList:eY,forEach:eX,merge:e1,extend:e2,trim:eK,stripBOM:e3,inherits:e4,toFlatObject:e6,kindOf:eM,kindOfTest:ek,endsWith:e5,toArray:e8,forEachEntry:e7,matchAll:te,isHTMLForm:tt,hasOwnProperty:tn,hasOwnProp:tn,reduceDescriptors:to,freezeMethods:ta,toObjectSet:ts,toCamelCase:tr,noop:tc,toFiniteNumber:tu,findKey:eQ,global:eJ,isContextDefined:e0,ALPHABET:tf,generateString:th,isSpecCompliantForm:tp,toJSONObject:tm,isAsyncFn:tb,isThenable:tg};function t_(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}ty.inherits(t_,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ty.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let tv=t_.prototype,tE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{tE[e]={value:e}}),Object.defineProperties(t_,tE),Object.defineProperty(tv,"isAxiosError",{value:!0}),t_.from=(e,t,r,n,i,o)=>{let a=Object.create(tv);return ty.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),t_.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var tT=t_,tA=null,tS=r(48764).Buffer;function tx(e){return ty.isPlainObject(e)||ty.isArray(e)}function tC(e){return ty.endsWith(e,"[]")?e.slice(0,-2):e}function tw(e,t,r){return e?e.concat(t).map(function(e,t){return e=tC(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}function tN(e){return ty.isArray(e)&&!e.some(tx)}let tM=ty.toFlatObject(ty,{},null,function(e){return/^is[A-Z]/.test(e)});var tk=function(e,t,r){if(!ty.isObject(e))throw TypeError("target must be an object");t=t||new(tA||FormData);let n=(r=ty.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ty.isUndefined(t[e])})).metaTokens,i=r.visitor||u,o=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&ty.isSpecCompliantForm(t);if(!ty.isFunction(i))throw TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ty.isDate(e))return e.toISOString();if(!s&&ty.isBlob(e))throw new tT("Blob is not supported. Use a Buffer instead.");return ty.isArrayBuffer(e)||ty.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):tS.from(e):e}function u(e,r,i){let s=e;if(e&&!i&&"object"==typeof e){if(ty.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(ty.isArray(e)&&tN(e)||(ty.isFileList(e)||ty.endsWith(r,"[]"))&&(s=ty.toArray(e)))return r=tC(r),s.forEach(function(e,n){ty.isUndefined(e)||null===e||t.append(!0===a?tw([r],n,o):null===a?r:r+"[]",c(e))}),!1}return!!tx(e)||(t.append(tw(i,r,o),c(e)),!1)}let l=[],d=Object.assign(tM,{defaultVisitor:u,convertValue:c,isVisitable:tx});function f(e,r){if(!ty.isUndefined(e)){if(-1!==l.indexOf(e))throw Error("Circular reference detected in "+r.join("."));l.push(e),ty.forEach(e,function(e,n){!0===(!(ty.isUndefined(e)||null===e)&&i.call(t,e,ty.isString(n)?n.trim():n,r,d))&&f(e,r?r.concat(n):[n])}),l.pop()}}if(!ty.isObject(e))throw TypeError("data must be an object");return f(e),t};function tO(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function tR(e,t){this._pairs=[],e&&tk(e,this,t)}let tI=tR.prototype;tI.append=function(e,t){this._pairs.push([e,t])},tI.toString=function(e){let t=e?function(t){return e.call(this,t,tO)}:tO;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var tP=tR;function tD(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function t$(e,t,r){let n;if(!t)return e;let i=r&&r.encode||tD,o=r&&r.serialize;if(n=o?o(t,r):ty.isURLSearchParams(t)?t.toString():new tP(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}class tL{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ty.forEach(this.handlers,function(t){null!==t&&e(t)})}}var tF=tL,tj={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tU={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:tP,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};let tB="undefined"!=typeof window&&"undefined"!=typeof document,tH=(o="undefined"!=typeof navigator&&navigator.product,tB&&0>["ReactNative","NativeScript","NS"].indexOf(o)),tz="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var tV={...a,...tU};function tG(e,t){return tk(e,new tV.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return tV.isNode&&ty.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}function tY(e){return ty.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function tq(e){let t,r;let n={},i=Object.keys(e),o=i.length;for(t=0;t=e.length;return(o=!o&&ty.isArray(n)?n.length:o,s)?ty.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r:(n[o]&&ty.isObject(n[o])||(n[o]=[]),t(e,r,n[o],i)&&ty.isArray(n[o])&&(n[o]=tq(n[o]))),!a}if(ty.isFormData(e)&&ty.isFunction(e.entries)){let r={};return ty.forEachEntry(e,(e,n)=>{t(tY(e),n,r,0)}),r}return null};function tZ(e,t,r){if(ty.isString(e))try{return(t||JSON.parse)(e),ty.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}let tK={transitional:tj,adapter:["xhr","http"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=ty.isObject(e);if(o&&ty.isHTMLForm(e)&&(e=new FormData(e)),ty.isFormData(e))return i?JSON.stringify(tW(e)):e;if(ty.isArrayBuffer(e)||ty.isBuffer(e)||ty.isStream(e)||ty.isFile(e)||ty.isBlob(e))return e;if(ty.isArrayBufferView(e))return e.buffer;if(ty.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return tG(e,this.formSerializer).toString();if((r=ty.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return tk(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),tZ(e)):e}],transformResponse:[function(e){let t=this.transitional||tK.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&ty.isString(e)&&(r&&!this.responseType||n)){let r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw tT.from(e,tT.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tV.classes.FormData,Blob:tV.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ty.forEach(["delete","get","head","post","put","patch"],e=>{tK.headers[e]={}});var tX=tK;let tQ=ty.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var tJ=e=>{let t,r,n;let i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&tQ[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i};let t0=Symbol("internals");function t1(e){return e&&String(e).trim().toLowerCase()}function t2(e){return!1===e||null==e?e:ty.isArray(e)?e.map(t2):String(e)}function t3(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}let t4=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function t6(e,t,r,n,i){if(ty.isFunction(n))return n.call(this,t,r);if(i&&(t=r),ty.isString(t)){if(ty.isString(n))return -1!==t.indexOf(n);if(ty.isRegExp(n))return n.test(t)}}function t5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function t8(e,t){let r=ty.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}class t9{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=t1(t);if(!i)throw Error("header name must be a non-empty string");let o=ty.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=t2(e))}let o=(e,t)=>ty.forEach(e,(e,r)=>i(e,r,t));return ty.isPlainObject(e)||e instanceof this.constructor?o(e,t):ty.isString(e)&&(e=e.trim())&&!t4(e)?o(tJ(e),t):null!=e&&i(t,e,r),this}get(e,t){if(e=t1(e)){let r=ty.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return t3(e);if(ty.isFunction(t))return t.call(this,e,r);if(ty.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=t1(e)){let r=ty.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||t6(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=t1(e)){let i=ty.findKey(r,e);i&&(!t||t6(r,r[i],i,t))&&(delete r[i],n=!0)}}return ty.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||t6(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return ty.forEach(this,(n,i)=>{let o=ty.findKey(r,i);if(o){t[o]=t2(n),delete t[i];return}let a=e?t5(i):String(i).trim();a!==i&&delete t[i],t[a]=t2(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return ty.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&ty.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[t0]=this[t0]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=t1(e);t[n]||(t8(r,e),t[n]=!0)}return ty.isArray(e)?e.forEach(n):n(e),this}}t9.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ty.reduceDescriptors(t9.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),ty.freezeMethods(t9);var t7=t9;function re(e,t){let r=this||tX,n=t||r,i=t7.from(n.headers),o=n.data;return ty.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function rt(e){return!!(e&&e.__CANCEL__)}function rr(e,t,r){tT.call(this,null==e?"canceled":e,tT.ERR_CANCELED,t,r),this.name="CanceledError"}ty.inherits(rr,tT,{__CANCEL__:!0});var rn=rr;function ri(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new tT("Request failed with status code "+r.status,[tT.ERR_BAD_REQUEST,tT.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}var ro=tV.hasStandardBrowserEnv?{write(e,t,r,n,i,o){let a=[e+"="+encodeURIComponent(t)];ty.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),ty.isString(n)&&a.push("path="+n),ty.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ra(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function rc(e,t){return e&&!ra(t)?rs(e,t):t}var ru=tV.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){let r=ty.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}();function rl(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}var rd=function(e,t){let r;let n=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let c=Date.now(),u=i[a];r||(r=c),n[o]=s,i[o]=c;let l=a,d=0;for(;l!==o;)d+=n[l++],l%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),c-r{let o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,c=n(s),u=o<=a;r=o;let l={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&u?(a-o)/c:void 0,event:i};l[t?"download":"upload"]=!0,e(l)}}let rh={http:tA,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,i,o=e.data,a=t7.from(e.headers).normalize(),{responseType:s,withXSRFToken:c}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}if(ty.isFormData(o)){if(tV.hasStandardBrowserEnv||tV.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if(!1!==(i=a.getContentType())){let[e,...t]=i?i.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}}let l=new XMLHttpRequest;if(e.auth){let t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(t+":"+r))}let d=rc(e.baseURL,e.url);function f(){if(!l)return;let n=t7.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());ri(function(e){t(e),u()},function(e){r(e),u()},{data:s&&"text"!==s&&"json"!==s?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),t$(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=f:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(f)},l.onabort=function(){l&&(r(new tT("Request aborted",tT.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new tT("Network Error",tT.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||tj;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new tT(t,n.clarifyTimeoutError?tT.ETIMEDOUT:tT.ECONNABORTED,e,l)),l=null},tV.hasStandardBrowserEnv&&(c&&ty.isFunction(c)&&(c=c(e)),c||!1!==c&&ru(d))){let t=e.xsrfHeaderName&&e.xsrfCookieName&&ro.read(e.xsrfCookieName);t&&a.set(e.xsrfHeaderName,t)}void 0===o&&a.setContentType(null),"setRequestHeader"in l&&ty.forEach(a.toJSON(),function(e,t){l.setRequestHeader(t,e)}),ty.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),s&&"json"!==s&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",rf(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",rf(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=t=>{l&&(r(!t||t.type?new rn(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));let h=rl(d);if(h&&-1===tV.protocols.indexOf(h)){r(new tT("Unsupported protocol "+h+":",tT.ERR_BAD_REQUEST,e));return}l.send(o||null)})}};ty.forEach(rh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let rp=e=>`- ${e}`,rm=e=>ty.isFunction(e)||null===e||!1===e;var rb=e=>{let t,r;let{length:n}=e=ty.isArray(e)?e:[e],i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new tT("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(rp).join("\n"):" "+rp(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function rg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rn(null,e)}function ry(e){return rg(e),e.headers=t7.from(e.headers),e.data=re.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rb(e.adapter||tX.adapter)(e).then(function(t){return rg(e),t.data=re.call(e,e.transformResponse,t),t.headers=t7.from(t.headers),t},function(t){return!rt(t)&&(rg(e),t&&t.response&&(t.response.data=re.call(e,e.transformResponse,t.response),t.response.headers=t7.from(t.response.headers))),Promise.reject(t)})}let r_=e=>e instanceof t7?{...e}:e;function rv(e,t){t=t||{};let r={};function n(e,t,r){return ty.isPlainObject(e)&&ty.isPlainObject(t)?ty.merge.call({caseless:r},e,t):ty.isPlainObject(t)?ty.merge({},t):ty.isArray(t)?t.slice():t}function i(e,t,r){return ty.isUndefined(t)?ty.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function o(e,t){if(!ty.isUndefined(t))return n(void 0,t)}function a(e,t){return ty.isUndefined(t)?ty.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}let c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(r_(e),r_(t),!0)};return ty.forEach(Object.keys(Object.assign({},e,t)),function(n){let o=c[n]||i,a=o(e[n],t[n],n);ty.isUndefined(a)&&o!==s||(r[n]=a)}),r}let rE="1.6.8",rT={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{rT[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let rA={};rT.transitional=function(e,t,r){function n(e,t){return"[Axios v"+rE+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new tT(n(i," has been removed"+(t?" in "+t:"")),tT.ERR_DEPRECATED);return t&&!rA[i]&&(rA[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};var rS={assertOptions:function(e,t,r){if("object"!=typeof e)throw new tT("options must be an object",tT.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],a=t[o];if(a){let t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new tT("option "+o+" must be "+r,tT.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new tT("Unknown option "+o,tT.ERR_BAD_OPTION)}},validators:rT};let rx=rS.validators;class rC{constructor(e){this.defaults=e,this.interceptors={request:new tF,response:new tF}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=rv(this.defaults,t);void 0!==i&&rS.assertOptions(i,{silentJSONParsing:rx.transitional(rx.boolean),forcedJSONParsing:rx.transitional(rx.boolean),clarifyTimeoutError:rx.transitional(rx.boolean)},!1),null!=o&&(ty.isFunction(o)?t.paramsSerializer={serialize:o}:rS.assertOptions(o,{encode:rx.function,serialize:rx.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&ty.merge(a.common,a[t.method]);a&&ty.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=t7.concat(s,a);let c=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,c.unshift(e.fulfilled,e.rejected))});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[ry.bind(this),void 0];for(e.unshift.apply(e,c),e.push.apply(e,l),n=e.length,r=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new rn(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new rN(function(t){e=t}),cancel:e}}}var rM=rN;function rk(e){return function(t){return e.apply(null,t)}}function rO(e){return ty.isObject(e)&&!0===e.isAxiosError}let rR={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rR).forEach(([e,t])=>{rR[t]=e});var rI=rR;function rP(e){let t=new rw(e),r=eC(rw.prototype.request,t);return ty.extend(r,rw.prototype,t,{allOwnKeys:!0}),ty.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return rP(rv(e,t))},r}let rD=rP(tX);rD.Axios=rw,rD.CanceledError=rn,rD.CancelToken=rM,rD.isCancel=rt,rD.VERSION=rE,rD.toFormData=tk,rD.AxiosError=tT,rD.Cancel=rD.CanceledError,rD.all=function(e){return Promise.all(e)},rD.spread=rk,rD.isAxiosError=rO,rD.mergeConfig=rv,rD.AxiosHeaders=t7,rD.formToJSON=e=>tW(ty.isHTMLForm(e)?new FormData(e):e),rD.getAdapter=rb,rD.HttpStatusCode=rI,rD.default=rD;var r$=rD,rL=function(){function e(t){(0,T.Z)(this,e),this.apiEndpoint=t}return(0,A.Z)(e,[{key:"get",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"json";return new Promise(function(n,i){r$.get(t.getFullUrl(e),{headers:t.getDefaultHeaders(),responseType:r}).then(function(e){n(e.data)}).catch(function(e){i(t.createApiErrorForAxios(e))})})}},{key:"post",value:function(e,t,r){var n=this;return new Promise(function(i,o){var a=n.getDefaultHeaders();null!=r&&Object.assign(a,r),r$.post(n.getFullUrl(e),t,{headers:a}).then(function(e){i(e.data)}).catch(function(e){o(n.createApiErrorForAxios(e))})})}},{key:"put",value:function(e,t){var r=this;return new Promise(function(n,i){r$.put(r.getFullUrl(e),t,{headers:r.getDefaultHeaders()}).then(function(e){n(e.data)}).catch(function(e){i(r.createApiErrorForAxios(e))})})}},{key:"delete",value:function(e){var t=this;return new Promise(function(r,n){r$.delete(t.getFullUrl(e),{headers:t.getDefaultHeaders()}).then(function(e){r(e.data)}).catch(function(e){n(t.createApiErrorForAxios(e))})})}},{key:"getDefaultHeaders",value:function(){var e={};return this.appendHeaders(e),e}},{key:"appendHeaders",value:function(e){e["Cache-Control"]="no-cache",e.Pragma="no-cache",e.Expires="0"}},{key:"getFullUrl",value:function(e){if(!this.apiEndpoint)throw Error("apiEndpoint missing");if(!e)throw Error("URI required");var t="/"===this.apiEndpoint[this.apiEndpoint.length-1],r="/"===e[0];return(t||r||(e="/"+e),e.includes("/https://"))?e.replace("/",""):this.apiEndpoint+e}},{key:"createApiErrorForAxios",value:function(e){if(!e.isAxiosError)return new rF("unhandled error (ws.bc.1)",500);if(e.response){var t,r,n,i=e.response,o=i.data;return o&&o.status&&o.status.toString().startsWith("4")&&o.title?new rF(o.title,i.status,null===(r=i.data)||void 0===r?void 0:r.code,i.data):e.message?new rF(e.message,i.status,null===(n=i.data)||void 0===n?void 0:n.code,i.data):new rF("Unhandled Error",i.status,null===(t=i.data)||void 0===t?void 0:t.code,i.data)}return new rF(e.request?"no response was received":"Unhandled Error")}}]),e}(),rF=(0,A.Z)(function e(t,r,n,i){(0,T.Z)(this,e),this.message=null!=t?t:"Unhandled Error",this.status=r,this.detail=i,this.code=n,this.error=!0}),rj=r(42474),rU=r.n(rj),rB=r(48764).Buffer;function rH(e,t){if(t){var r=rU().createHash("sha256");r.update(t);var n=r.digest(),i=rU().randomBytes(16),o=rU().createCipheriv("aes-256-cbc",n,i),a=o.update(e);return a=rB.concat([a,o.final()]),i.toString("hex")+":"+a.toString("hex")}}function rz(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rV(e){for(var t=1;t0&&(alert(1),this._timeout=setTimeout(function(){t._getCurrentUser(!0)},a+1e3)),alert(2)}return this._userContext}},{key:"_getCurrentGuest",value:function(e){var t=this;if(!e&&null!=this._guestContext)return this._guestContext;var r=this.getguestTokenFromStorage();if(!r){this.updateguestContext(void 0,void 0);return}var n=this.parseToken(r),i=null==n?void 0:n.user;if(null==i){this.updateguestContext(void 0,void 0);return}if(this.updateguestContext(rq({},i),r),null!=this._timeout&&clearTimeout(this._timeout),null!=n&&n.exp){var o=new Date().getTime(),a=1e3*parseInt(n.exp)-o;a>0&&(alert(1),this._timeout=setTimeout(function(){t._getCurrentGuest(!0)},a+1e3)),alert(2)}return this._guestContext}},{key:"saveTransactionToken",value:function(e){var t;this.isBrowser&&(null===(t=localStorage)||void 0===t||t.setItem(rX,e))}},{key:"saveMemberToken",value:function(e){if(this.isBrowser){var t,r=this.getguestTokenFromStorage();r&&this.deleteguestToken(),null===(t=localStorage)||void 0===t||t.setItem(rK,e)}}},{key:"saveguestToken",value:function(e){if(this.isBrowser){var t,r=this.getMemberTokenFromStorage();r&&this.deleteMemberToken(),null===(t=localStorage)||void 0===t||t.setItem(rQ,e)}}},{key:"isBrowser",get:function(){return!0}},{key:"signOut",value:function(){var e=(0,N.Z)(I().mark(function e(){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.getCurrentUserToken){e.next=2;break}return e.abrupt("return","No User");case 2:return this.updateUserContext(void 0,void 0),this.deleteMemberToken(),this.deleteLegacyCookie(),e.abrupt("return","Success");case 6:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"signOutguest",value:function(){var e=(0,N.Z)(I().mark(function e(){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.getCurrentGuestToken){e.next=2;break}return e.abrupt("return","No User");case 2:return this.updateguestContext(void 0,void 0),this.deleteguestToken(),this.deleteLegacyguestCookie(),e.abrupt("return","Success");case 6:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"deleteLegacyCookie",value:function(){var e={},t=b.Z.legacyJwtCookie;e.path="/",t.domain&&(e.domain=t.domain),P.Z.deleteCookie(t.authToken)}},{key:"deleteLegacyguestCookie",value:function(){var e={},t=b.Z.legacyJwtCookie;e.path="/",t.domain&&(e.domain=t.domain),P.Z.setCookie(t.guestToken,"",e)}},{key:"parseToken",value:function(e){var t=e.split(".");if(3!==t.length)return null;var r=t[1].replace(/-/g,"+").replace(/_/g,"/");try{var n=window.atob(r);return JSON.parse(n)}catch(e){return console.error("Error decoding JWT payload",e,"[MemberService.ts]"),alert("Error decoding JWT payload: "+JSON.stringify(e)),null}}},{key:"deleteguestToken",value:function(){if(this.isBrowser){var e;null===(e=localStorage)||void 0===e||e.removeItem(rQ)}}},{key:"deleteMemberToken",value:function(){if(this.isBrowser){var e;null===(e=localStorage)||void 0===e||e.removeItem(rK)}}},{key:"getguestTokenFromStorage",value:function(){if(!this.isBrowser)return null;var e,t=null===(e=localStorage)||void 0===e?void 0:e.getItem(rQ);return null==t?null:null==this.parseToken(t)?(this.deleteguestToken(),null):t}},{key:"getMemberTokenFromStorage",value:function(){if(!this.isBrowser)return null;var e,t=null===(e=localStorage)||void 0===e?void 0:e.getItem(rK);return null==t?null:null==this.parseToken(t)?(this.deleteMemberToken(),null):t}},{key:"getCurrentUserToken",value:function(){return this._userToken}},{key:"getCurrentGuestToken",value:function(){return this._guestToken}},{key:"appendHeaders",value:function(e){O((0,C.Z)(r.prototype),"appendHeaders",this).call(this,e);var t=this.getCurrentUserToken();t&&(e.Authorization="Bearer ".concat(t))}}]),r}(rL);function r3(e){var t=r4();return function(){var r,n=(0,C.Z)(e);return r=t?Reflect.construct(n,arguments,(0,C.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function r4(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var r6=function(e){(0,S.Z)(r,e);var t=r3(r);function r(){var e;return(0,T.Z)(this,r),(e=t.call(this,b.Z.serviceEndpoints.social)).MemberService=(0,w.ko)("IMemberService"),e}return(0,A.Z)(r,[{key:"getProducts",value:function(){var e=(0,N.Z)(I().mark(function e(t){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post("/api/products",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"getProduct",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r,n;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.id,!(n=t.pri)){e.next=3;break}return e.abrupt("return",this.get("/api/product?id=".concat(r,"&pri=").concat(n)));case 3:return e.abrupt("return",this.get("/api/product?id=".concat(r)));case 4:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}]),r}(rL),r5=r(4730),r8=["group_id"];function r9(e){var t=r7();return function(){var r,n=(0,C.Z)(e);return r=t?Reflect.construct(n,arguments,(0,C.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function r7(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var ne=function(e){(0,S.Z)(r,e);var t=r9(r);function r(){var e;return(0,T.Z)(this,r),(e=t.call(this,b.Z.serviceEndpoints.home)).MemberService=(0,w.ko)("IMemberService"),e}return(0,A.Z)(r,[{key:"light",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r,n;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,n=t.name,e.abrupt("return",this.post("/hue/light",{id:r,name:n}));case 2:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"hue_list",value:function(){var e=(0,N.Z)(I().mark(function e(){var t,r=arguments;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:"light",e.next=3,this.get("/api/home/hue/list?type=".concat(t));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"lightsOn",value:function(){var e=(0,N.Z)(I().mark(function e(){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/api/home/hue/all-on");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"lightsOff",value:function(){var e=(0,N.Z)(I().mark(function e(){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/api/home/hue/all-off");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"stream",value:function(){var e=(0,N.Z)(I().mark(function e(t){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.get("/cam-".concat(t)));case 1:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"hue_brightness",value:function(){var e=(0,N.Z)(I().mark(function e(t,r,n){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.post("/api/home/hue/light-bri?id=".concat(t,"&bri=").concat(r,"&type=").concat(n)));case 1:case"end":return e.stop()}},e,this)}));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"listGroups",value:function(){var e=(0,N.Z)(I().mark(function e(){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/api/home/hue/groups");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"hue_rename",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r={id:t.id,name:t.name,new_name:t.new_name},e.next=4,this.post("/api/home/hue/light/rename",r);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"createGroup",value:function(){var e=(0,N.Z)(I().mark(function e(t){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post("/api/home/hue/groups",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"modifyGroup",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r,n;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.group_id,n=(0,r5.Z)(t,r8),e.next=3,this.put("/api/home/hue/groups/".concat(r),n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"deleteGroup",value:function(){var e=(0,N.Z)(I().mark(function e(t){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.delete("/api/home/hue/groups/".concat(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"hue_toggle",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r,n=arguments;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:"light",e.abrupt("return",this.get("/api/home/hue/toggle?id=".concat(t).concat(r&&"&type=".concat(r)||"")));case 2:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"lightColor",value:function(){var e=(0,N.Z)(I().mark(function e(t,r,n){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.get("/api/home/hue/light-hex-color?id=".concat(t,"&hex=").concat(r.replaceAll("#",""),"&type=").concat(n)));case 1:case"end":return e.stop()}},e,this)}));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"getVehicles",value:function(){var e=(0,N.Z)(I().mark(function e(t){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.post("/auto/vehicles",t));case 1:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"startVehicle",value:function(){var e=(0,N.Z)(I().mark(function e(t){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.post("/auto/vehicle/start",t));case 1:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"appendHeaders",value:function(e){O((0,C.Z)(r.prototype),"appendHeaders",this).call(this,e);var t=this.MemberService.getCurrentUserToken();t&&(e.Authorization="Bearer ".concat(t))}}]),r}(rL);function nt(e){var t=nr();return function(){var r,n=(0,C.Z)(e);return r=t?Reflect.construct(n,arguments,(0,C.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function nr(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var nn="00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF".trim(),ni=function(e){(0,S.Z)(r,e);var t=nt(r);function r(){return(0,T.Z)(this,r),t.call(this,b.Z.serviceEndpoints.membership)}return(0,A.Z)(r,[{key:"getAccount",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.get("/api/account?id=".concat(t));case 3:return r=e.sent,e.abrupt("return",r);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}},e,this,[[0,7]])}));return function(t){return e.apply(this,arguments)}}()},{key:"listAccounts",value:function(){var e=(0,N.Z)(I().mark(function e(){var t;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.get("/api/accounts/");case 3:return t=e.sent,e.abrupt("return",t);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}},e,this,[[0,7]])}));return function(){return e.apply(this,arguments)}}()},{key:"getCustomer",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=13;break}return e.prev=1,e.next=4,this.get("/usage/admin/customer?id=".concat(t));case 4:return r=e.sent,e.abrupt("return",r);case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",e.t0);case 11:e.next=14;break;case 13:throw new rF("No Token Provided",400,"MS.SI.02");case 14:case"end":return e.stop()}},e,this,[[1,8]])}));return function(t){return e.apply(this,arguments)}}()},{key:"getSystemInfo",value:function(){var e=(0,N.Z)(I().mark(function e(){var t;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.get("/api/system/");case 3:return t=e.sent,e.abrupt("return",t);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}},e,this,[[0,7]])}));return function(){return e.apply(this,arguments)}}()},{key:"deleteCustomer",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=13;break}return e.prev=1,e.next=4,this.get("/usage/admin/customer/delete?id=".concat(t));case 4:return r=e.sent,e.abrupt("return",r);case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",e.t0);case 11:e.next=14;break;case 13:throw new rF("No Token Provided",400,"MS.SI.02");case 14:case"end":return e.stop()}},e,this,[[1,8]])}));return function(t){return e.apply(this,arguments)}}()},{key:"listCustomers",value:function(){var e=(0,N.Z)(I().mark(function e(){var t;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.get("/usage/admin/customer/list");case 3:return t=e.sent,e.abrupt("return",t);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}},e,this,[[0,7]])}));return function(){return e.apply(this,arguments)}}()},{key:"updateCustomer",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return r=rH(JSON.stringify(t),nn),e.next=4,this.put("/usage/admin/customer",{data:r});case 4:return e.abrupt("return",e.sent);case 5:if(t){e.next=7;break}throw new rF("NO MEMBER DATA PROVIDED",400,"MS.SI.02");case 7:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"createCustomer",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return r=rH(JSON.stringify(t),nn),e.next=4,this.post("/usage/admin/customer/create",{data:r});case 4:return e.abrupt("return",e.sent);case 5:if(t){e.next=7;break}throw new rF("NO MEMBER DATA PROVIDED",400,"MS.SI.02");case 7:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}]),r}(rL);function no(e){var t=na();return function(){var r,n=(0,C.Z)(e);return r=t?Reflect.construct(n,arguments,(0,C.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function na(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var ns=function(e){(0,S.Z)(r,e);var t=no(r);function r(){var e;return(0,T.Z)(this,r),(e=t.call(this,b.Z.serviceEndpoints.social)).MemberService=(0,w.ko)("IMemberService"),e}return(0,A.Z)(r,[{key:"uploadDocument",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r,n,i,o,a,s=arguments;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:"pci_document",i=null===(r=this.MemberService.getCurrentUser())||void 0===r?void 0:r.id,e.prev=2,o=encodeURIComponent(n),e.next=6,this.post("api/document/upload?purpose=".concat(o,"&customerId=").concat(i),t);case 6:return a=e.sent,e.abrupt("return",a);case 10:throw e.prev=10,e.t0=e.catch(2),console.error("Error uploading document: ",e.t0),new rF("Error uploading document",400,"MS.UD.01");case 14:case"end":return e.stop()}},e,this,[[2,10]])}));return function(t){return e.apply(this,arguments)}}()},{key:"retrieveDocument",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.get("api/document/files/".concat(t));case 3:return r=e.sent,e.abrupt("return",r);case 7:throw e.prev=7,e.t0=e.catch(0),console.error("Error retrieving document: ",e.t0),new rF("Error retrieving document",400,"MS.RD.01");case 11:case"end":return e.stop()}},e,this,[[0,7]])}));return function(t){return e.apply(this,arguments)}}()},{key:"listDocuments",value:function(){var e=(0,N.Z)(I().mark(function e(){var t,r,n,i,o=arguments;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},e.prev=1,r=new URLSearchParams(t).toString(),n="api/document/files".concat(r?"?".concat(r):""),e.next=6,this.get(n);case 6:return i=e.sent,e.abrupt("return",i);case 10:throw e.prev=10,e.t0=e.catch(1),console.error("Error listing documents: ",e.t0),new rF("Error listing documents",400,"MS.LD.01");case 14:case"end":return e.stop()}},e,this,[[1,10]])}));return function(){return e.apply(this,arguments)}}()},{key:"downloadDocument",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.get("api/download-stripe-file/".concat(t),"blob");case 3:return r=e.sent,e.abrupt("return",r);case 7:throw e.prev=7,e.t0=e.catch(0),console.error("Error downloading document: ",e.t0),new rF("Error downloading document",400,"MS.DD.01");case 11:case"end":return e.stop()}},e,this,[[0,7]])}));return function(t){return e.apply(this,arguments)}}()}]),r}(rL);function nc(e){var t=nu();return function(){var r,n=(0,C.Z)(e);return r=t?Reflect.construct(n,arguments,(0,C.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function nu(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var nl=function(e){(0,S.Z)(r,e);var t=nc(r);function r(){return(0,T.Z)(this,r),t.call(this,b.Z.serviceEndpoints.social)}return(0,A.Z)(r,[{key:"instagramAuthenticate",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r,n,i,o,a,s;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.username,n=t.password,i=t.email,!(!r||!n||!i)){e.next=3;break}return e.abrupt("return");case 3:return o="00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF".trim(),a=rH(JSON.stringify({email:i,username:r,password:n,created:new Date().getTime()}),o),e.next=8,this.post("/usage/social/instagram/authenticate",{data:a});case 8:return console.log("[ SOCIAL (IG AUTH) ]",s=e.sent),e.abrupt("return",s);case 11:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}]),r}(rL);function nd(e){var t=nf();return function(){var r,n=(0,C.Z)(e);return r=t?Reflect.construct(n,arguments,(0,C.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function nf(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var nh=function(e){(0,S.Z)(r,e);var t=nd(r);function r(){return(0,T.Z)(this,r),t.call(this,b.Z.serviceEndpoints.membership)}return(0,A.Z)(r,[{key:"getPaymentIntentSecret",value:function(e){throw Error("Method not implemented.")}},{key:"prospectRequest",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=7;break}return e.next=3,this.post("usage/prospect/create/",t);case 3:return r=e.sent,e.abrupt("return",r);case 7:throw new rF("No Customer ID Provided",400,"MS.SI.02");case 8:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"getPaymentIntent",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=7;break}return e.next=3,this.get("usage/customer/method/confirm?setup_intent_client_secret=".concat(t));case 3:return r=e.sent,e.abrupt("return",r);case 7:throw new rF("No ID Provided",400,"MS.SI.02");case 8:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}]),r}(rL);function np(e){var t=nm();return function(){var r,n=(0,C.Z)(e);return r=t?Reflect.construct(n,arguments,(0,C.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function nm(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var nb=function(e){(0,S.Z)(r,e);var t=np(r);function r(e){var n,i;return(0,T.Z)(this,r),i=t.call(this,e),null===(n=b.Z.devSettings)||void 0===n||n.mockApis,w.fk.registerService("IMemberService",r2),w.fk.registerService("IProductService",r6),w.fk.registerService("IGuestService",nh),w.fk.registerService("IHomeService",ne),w.fk.registerService("IAdminService",ni),w.fk.registerService("IDocumentService",ns),w.fk.registerService("ISocialService",nl),i}return(0,A.Z)(r,[{key:"render",value:function(){return(0,_.jsx)(_.Fragment,{})}}]),r}(l.Component),ng=r(80360),ny=r(16835),n_=[".d-flex.jsx-3803800924,.navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--cart.jsx-3803800924,.navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924,.navbar__container.jsx-3803800924 .navbar__trigger.jsx-3803800924,.navbar__container.jsx-3803800924{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".navbar__container.jsx-3803800924{z-index:1000;min-height:var(--s-element);background-color:var(--black);width:100%;}","@-webkit-keyframes animateBg-jsx-3803800924{0%{background-position:100% 0%;}100%{background-position:0% 0%;}}","@keyframes animateBg-jsx-3803800924{0%{background-position:100% 0%;}100%{background-position:0% 0%;}}",".navbar__container.jsx-3803800924 .navbar.jsx-3803800924{padding:0 0 var(--s-9);width:100%;}","@media (min-width:1100px){.navbar__container.jsx-3803800924 .navbar.jsx-3803800924{min-height:var(--s-element);padding:0;margin:0 auto;inline-size:1260px;}}","@media (max-width:1100px){.navbar__container.jsx-3803800924{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}}","@-webkit-keyframes fade-jsx-3803800924{0%{-webkit-filter:brightness(2);filter:brightness(2);--ui-icon-color:var(--body);background-color:var(--gray-80-o);}100%{-webkit-filter:brightness(1);filter:brightness(1);background-color:var(--primary-o);--ui-icon-color:var(--white);}}","@keyframes fade-jsx-3803800924{0%{-webkit-filter:brightness(2);filter:brightness(2);--ui-icon-color:var(--body);background-color:var(--gray-80-o);}100%{-webkit-filter:brightness(1);filter:brightness(1);background-color:var(--primary-o);--ui-icon-color:var(--white);}}",".navbar__container.jsx-3803800924 .navbar__trigger.jsx-3803800924{cursor:pointer;--ui-icon-size:var(--s-7);-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-radius:var(--border-radius);display:none;background-color:var(--gray-90);--ui-icon-color:var(--primary-50);aspect-ratio:1;min-height:var(--s-element);}",".navbar__container.jsx-3803800924 .navbar__trigger--o.jsx-3803800924{--ui-icon-color:var(--dark-o);background-color:var(--dark-o);border:solid 1px var(--gray-70-o);-webkit-filter:blur(1px);filter:blur(1px);}",".navbar__container.jsx-3803800924 .navbar__trigger.jsx-3803800924:hover{-webkit-animation:fade-jsx-3803800924 1s forwards;animation:fade-jsx-3803800924 1s forwards;}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item.jsx-3803800924{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--gray-60);--ui-icon-color:$defaultColor;height:var(--s-element);padding:0 var(--s-9);}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--brand.jsx-3803800924{padding:0;}","@media (min-width:1260px){.navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--brand.jsx-3803800924{padding-left:var(--s-9);}}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--about.jsx-3803800924{margin-left:auto;}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--profile.jsx-3803800924,.navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--login.jsx-3803800924{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;justify-self:flex-end;}","@media (max-width:1100px){.navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--profile.jsx-3803800924,.navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--login.jsx-3803800924{position:inherit;}}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item.no-cart.jsx-3803800924{padding-right:0;}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--cart.jsx-3803800924{cursor:pointer;height:var(--s-element);width:var(--s-element);padding:0 var(--s-9) 0 0;--ui-icon-width:100%;--ui-icon-height:var(--s-5);--ui-icon-color:var(--gray-50);}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item.jsx-3803800924:hover{color:var(--primary-o);--ui-icon-color:$hoverColor;}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item__active.jsx-3803800924{--ui-icon-color:$focusColor;color:var(--primary-50);}",".navbar__container--hide.jsx-3803800924{width:auto;background-color:transparent;}",".navbar__container--hide.jsx-3803800924 .navbar__trigger.jsx-3803800924{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}",".navbar__container--hide.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924{display:none;}",".navbar__container--hide.jsx-3803800924 .nav-bar__nav-items--hide.jsx-3803800924{border:solid 1px #F30;}"];n_.__hash="3803800924";var nv=n_,nE=r(55140),nT=r(80789),nA=r(11907),nS=function(){var e=(0,nA.aF)(),t=(0,l.useState)(),r=t[0],n=t[1],i=(0,m.useRouter)(),o=(0,nT.db)(),a=(0,nA.dN)(),s=function(){var e;return(null===(e=String(i.pathname))||void 0===e?void 0:e.length)&&i.pathname.split("/")[1]||!1}(),c=[e,r,n,o,a],u=function(e){null!=e&&e.href&&i.push(e.href,void 0,{shallow:!1})},d=(0,l.useCallback)(function(){if(e&&!r&&n(e),o){var t=o.find(function(e){if((null==e?void 0:e.href)===i.pathname)return!0;if(e.clearance&&e.clearance>=a||!e.clearance);else if(null!=e&&e.items)return e.items.some(function(e){return(null==e?void 0:e.href.split("?")[0])===i.pathname});return!1});if(t){var s,c="string"==typeof(null==t?void 0:t.href),u=(null==t?void 0:t.href)&&!i.asPath.includes(null==t?void 0:t.href)||"current-route",l=!!("boolean"==typeof c&&"boolean"==typeof u);"/verify"==i.pathname&&(null==i||null===(s=i.query)||void 0===s?void 0:s.vid)=="email"&&e&&i.push("/profile"),l&&i.push(String(t.href),void 0,{shallow:!0})}else if("/authentication/signout"!==i.asPath){var d=i.asPath;d.includes("/404?")?i.push("/"):i.push("/404?loc=".concat(d))}}},[].concat(c)),f=i.pathname;return(0,l.useEffect)(function(){d()},[d]),{selectedUser:r,pathname:f,explicitRouter:u,routeTitle:s}},nx=r(10577),nC=r(53618),nw=r(44983),nN=r(36946),nM=r(82889),nk=r(27812),nO=[".d-flex.jsx-1501197092,.navbar__mobile--actions.jsx-1501197092{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".navbar__mobile.jsx-1501197092{display:none;margin:0;width:100%;--ui-icon-color:var(--gray-40);position:relative;}","@media (max-width:1260px){.navbar__mobile.jsx-1501197092{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;}}",".navbar__mobile--actions.jsx-1501197092{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}",".navbar__mobile--content.jsx-1501197092{border-radius:var(--border-radius);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;gap:var(--s-9);height:-webkit-max-content;height:-moz-max-content;height:max-content;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}"];nO.__hash="1501197092";var nR=nO,nI=function(e){var t=e.routes,r=e.handleClick,n=e.onBack;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(u(),{id:nR.__hash,children:nR}),(0,_.jsxs)("div",{className:"jsx-".concat(nR.__hash)+" navbar__mobile",children:[n&&(0,_.jsx)("div",{className:"jsx-".concat(nR.__hash)+" navbar__mobile--actions",children:(0,_.jsx)("div",{className:"jsx-".concat(nR.__hash),children:(0,_.jsx)(nx.Z,{variant:"inherit",traits:{beforeIcon:"fa-chevron-left"},onClick:n,children:"back"})})}),(0,_.jsx)("div",{className:"jsx-".concat(nR.__hash)+" navbar__mobile--content",children:(0,nk.Z)(t).map(function(e,t){return null!=e&&e.hide?null:(0,_.jsx)("span",{className:"jsx-".concat(nR.__hash),children:(0,_.jsxs)(nx.Z,{onClick:function(){return r(e)},traits:{beforeIcon:null==e?void 0:e.icon},children:[e.label,(null==e?void 0:e.href)=="/cart"?"cart":""]})},t)})})]})]})},nP=r(42700),nD=function(e,t,r){var n=(0,l.useState)(!1),i=n[0],o=n[1],a=(0,nP.Z)();return(0,l.useEffect)(function(){(function(){e.current&&t.current&&(e.current.offsetWidth,t.current.offsetWidth,o(a.width90?" navbar__trigger--o":""),children:(0,_.jsx)(nE.a,{icon:f?"fa-xmark":"fa-bars",onClick:O})}),(0,_.jsx)("div",{ref:A,className:"jsx-".concat(nv.__hash)+" nav-bar__nav-items",children:m&&m.map(function(e,t){return(0,_.jsx)("div",{onDoubleClick:function(){return(null==e?void 0:e.href)&&k({href:e.href})},className:"jsx-".concat(nv.__hash)+" "+"nav__nav-item nav__nav-item--".concat(e.label?w(e)?"brand":e.label.toLowerCase():String(e.href).split("/")[1]).concat(v===e.label?" nav__nav-item__active":"").concat("profile"===e.label&&0===I&&" no-cart"||""),children:"/cart"!==e.href?null!=e&&e.items?(0,_.jsx)(nM.Z,{openDirection:(null==e?void 0:e.label)==="profile"&&"left"||void 0,overlay:{zIndex:997},traits:null!=e&&e.icon?{afterIcon:{icon:e.icon}}:void 0,openState:v&&v===e.label?"open":"closed",variant:"flat",value:"profile"===e.label?R:e.label,options:null==e?void 0:e.items,onSelect:k,onToggle:function(){return e.label&&M(e.label)}}):(0,_.jsx)(nx.Z,{traits:null!=e&&e.icon?w(e)?{beforeIcon:{icon:e.icon}}:{afterIcon:{icon:e.icon}}:void 0,variant:"flat",onClick:function(){return k(e)},children:e.label}):(0,_.jsx)(nE.a,{badge:I,onClick:function(){return k(e)},icon:null==e?void 0:e.icon})},t)})})]})})]})},nj=[".d-flex.jsx-1307626242,.header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242 .header-title.jsx-1307626242 .brand-logo.jsx-1307626242,.header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242 .header-title.jsx-1307626242{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".header__container.jsx-1307626242{z-index:999;width:100vw;position:relative;color:var(--gray-40-o);background-color:var(--gray-100);box-shadow:var(--box-shadow);color:var(--gray-30);left:0;right:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;background-color:var(--primary-o);top:0;}",".header__container.aire-hotel--index.jsx-1307626242{display:none;}",".header__container.deepturn--index.jsx-1307626242{opacity:0;-webkit-transition:all 0.2s;transition:all 0.2s;}",".header__container.deepturn--index.jsx-1307626242:hover{opacity:1;}","@media (max-width:1099px){.header__container.jsx-1307626242{-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;background-color:transparent;height:-webkit-max-content;height:-moz-max-content;height:max-content;width:var(--s-9-width);padding:var(--s-9);border-bottom:unset;box-shadow:unset;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}}",".header.jsx-1307626242{left:0;z-index:1;height:-webkit-max-content;height:-moz-max-content;height:max-content;background-color:inherit;color:inherit;}","@media (max-width:1099px){.header.jsx-1307626242{width:100%;padding:0;margin:0;}}","@-webkit-keyframes slideDown-jsx-1307626242{0%{-webkit-transform:translateY(-200px);-ms-transform:translateY(-200px);transform:translateY(-200px);cursor:pointer;}5%{height:-webkit-max-content;height:-moz-max-content;height:max-content;cursor:unset;}100%{height:-webkit-max-content;height:-moz-max-content;height:max-content;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}}","@keyframes slideDown-jsx-1307626242{0%{-webkit-transform:translateY(-200px);-ms-transform:translateY(-200px);transform:translateY(-200px);cursor:pointer;}5%{height:-webkit-max-content;height:-moz-max-content;height:max-content;cursor:unset;}100%{height:-webkit-max-content;height:-moz-max-content;height:max-content;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}}",".header.jsx-1307626242 .header-content.jsx-1307626242{margin:auto;height:5px;-webkit-transform:translateY(-200px);-ms-transform:translateY(-200px);transform:translateY(-200px);cursor:pointer;}",".header.jsx-1307626242 .header-content__show.jsx-1307626242{-webkit-animation:slideDown-jsx-1307626242 1s forwards;animation:slideDown-jsx-1307626242 1s forwards;}","@media (max-width:1099px){.header.jsx-1307626242 .header-content.jsx-1307626242{-webkit-animation:slideDown-jsx-1307626242 1s forwards;animation:slideDown-jsx-1307626242 1s forwards;}}","@media (min-width:1260px){.header.jsx-1307626242 .header-content.jsx-1307626242{max-width:calc(1260px - var(--s-9) * 2);inline-size:var(--s-9-width);}}","@media (max-width:1260px){.header.jsx-1307626242 .header-content.jsx-1307626242{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}",".header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242,.header.jsx-1307626242 .header-content.jsx-1307626242 .header-right.jsx-1307626242{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;height:-webkit-max-content;height:-moz-max-content;height:max-content;}",".header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242{-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;color:inherit;}","@media (max-height:500px){.header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242{-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--s-9);}}",".header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242 .header-title.jsx-1307626242{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;color:var(--gray-40-o);--ui-icon-color:var(--gray-40-o);--ui-icon-height:auto;--ui-icon-width:100%;font-weight:700;text-transform:capitalize;line-height:1;height:-webkit-max-content;height:-moz-max-content;height:max-content;}","@media (max-width:1099px){.header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242 .header-title.jsx-1307626242{white-space:nowrap;font-style:italic;overflow:hidden;min-height:-webkit-max-content;min-height:-moz-max-content;min-height:max-content;text-transform:uppercase;}.header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242 .header-title.jsx-1307626242:hover{color:var(--primary-50);--ui-icon-color:var(--primary-50);}}",".header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242 .header-title.jsx-1307626242 .brand-logo.jsx-1307626242{height:inherit;}",".header.jsx-1307626242 .header-content.jsx-1307626242 .header-right.jsx-1307626242{-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;height:inherit;gap:10px;margin-top:auto;}",".header.jsx-1307626242 .subheader.jsx-1307626242{box-sizing:content-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-top:var(--header-primary-border);width:100%;}","@media (max-width:1100px){.header.jsx-1307626242 .subheader.jsx-1307626242{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:auto;padding:20px 0;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}}",".header.jsx-1307626242 .subheader.jsx-1307626242 .subheader-content.jsx-1307626242{height:100%;width:calc(100% - 40px);background-color:var(--header-primary-bg);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:20px;max-width:1260px;}"];nj.__hash="1307626242";var nU=nj,nB=r(96486),nH=r(85102),nz=(0,l.createContext)([null,function(){}]),nV=b.Z.merchant.name,nG=function(e){var t=e.children,r=(0,m.useRouter)().pathname,n=(0,l.useState)(null),i=n[0],o=n[1],a=r.replaceAll("/",""),s=(null==a?void 0:a.length)&&a.replaceAll("/","")||"index";return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(u(),{id:nU.__hash,children:nU}),(0,_.jsxs)(nz.Provider,{value:[i,o],children:[(0,_.jsxs)("div",{id:"header-container",className:"jsx-".concat(nU.__hash)+" "+"header__container ".concat(nV,"--").concat(s),children:[(0,_.jsx)(nF,{}),(0,_.jsx)(nY,{})]}),t]})]})},nY=function(){var e,t=b.Z.merchant.name,r=(0,l.useContext)(nz),n=r[0],i=r[1],o=(0,l.useState)(null),a=o[0],s=o[1],c=(0,l.useState)(null),d=c[0],f=c[1],h=(0,m.useRouter)(),p=nS(),g=(p.selectedUser,p.pathname,p.explicitRouter,p.routeTitle),y=(0,l.useState)(!1),v=y[0],E=y[1],T=null===(e=(0,nP.Z)())||void 0===e?void 0:e.width,A=(0,l.useCallback)((0,nB.debounce)(function(){E(!v)},1e3),[E]),S=(0,l.useRef)(),x=function(){var e=null!==n?n:{title:(0,nL.Z)("".concat(t),{dashed:!1})};s(g&&{title:g}||e),f(h.asPath)},C=function(){if(null!=S&&S.current&&t&&!(T>1100)){var e=S.current.offsetWidth,r=(null==a?void 0:a.title)&&(null==a?void 0:a.title.length)+2||!1;if(r){var n=e/r,i=.2,o=Number((n*Number(1-i)).toFixed(2));o>50&&(o=50);var s="".concat(o,"px"),c=Number((n*i).toFixed(2)),u="".concat(c,"px"),l=null==S?void 0:S.current;l.style.fontSize=s,l.style.letterSpacing=u,l.style.gap="".concat(.88*c,"px");var d=l.children[0];d&&(d.style.minWidth=s)}}};return(0,l.useEffect)(function(){C()},[T]),(0,l.useEffect)(function(){x(),h.asPath!==d&&(i(null),f(h.asPath))},[]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(u(),{id:nU.__hash,children:nU}),(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{onClick:A,onMouseLeave:function(){return E(!1)},className:"jsx-".concat(nU.__hash)+" "+"header ".concat(t),children:[(0,_.jsxs)("div",{className:"jsx-".concat(nU.__hash)+" "+"header-content ".concat(v?" header-content__show":""),children:[(0,_.jsx)("div",{className:"jsx-".concat(nU.__hash)+" header-left",children:(0,_.jsx)(nH.Z,{title:null==a?void 0:a.title,subTitle:null==a?void 0:a.title})}),(null==a?void 0:a.right)&&(0,_.jsx)("div",{className:"jsx-".concat(nU.__hash)+" header-right",children:null==a?void 0:a.right})]}),(null==a?void 0:a.subheader)&&(0,_.jsx)("div",{className:"jsx-".concat(nU.__hash)+" subheader",children:(0,_.jsx)("div",{className:"jsx-".concat(nU.__hash)+" subheader-content",children:null==a?void 0:a.subheader})})]})})]})},nq=r(27834),nW=[".d-flex.jsx-4028658063,.modal__body.jsx-4028658063 .modal-overlay__confirm--header.jsx-4028658063,.modal__body.jsx-4028658063 .modal-overlay__confirm.jsx-4028658063 .header.jsx-4028658063,.modal__body.jsx-4028658063 .modal-overlay__confirm.jsx-4028658063,.modal__body.jsx-4028658063,.modal__header.jsx-4028658063,.modal__content.jsx-4028658063,.modal__overlay.jsx-4028658063{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".p-fix.jsx-4028658063,.modal__overlay.jsx-4028658063{position:fixed;width:100vw;height:100vh;top:0;left:0;}",".modal__overlay.jsx-4028658063{cursor:pointer;overflow:hidden;z-index:998;background:var(--gray-70-o);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);}",'.modal__overlay__dragging.jsx-4028658063{cursor:url("/icons/fa-hand-back-fist.svg"),auto;}',".modal.jsx-4028658063{position:fixed;z-index:1000;font-family:Game;top:200px;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow-x:hidden;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background-color:var(--gray-100);border:solid 1px var(--gray-80-o);outline:solid 1px var(--gray-70-o);box-shadow:2px 4px 15px 5px var(--dark);border-radius:var(--s-7);gap:var(--s-1);min-width:450px;max-width:var(--s-6-width);}","@media (max-height:900px){.modal.jsx-4028658063{top:var(--s-9);bottom:var(--s-9);}}","@media (max-width:900px){.modal.jsx-4028658063{min-width:unset;max-width:var(--s-9-width);width:var(--s-9-width);margin:0 auto;padding-bottom:var(--s-9);top:var(--s-9);bottom:var(--s-9);height:-webkit-max-content;height:-moz-max-content;height:max-content;}}",".modal__popup.jsx-4028658063{width:var(--s-4-width);}","@-webkit-keyframes popup-jsx-4028658063{0%{min-width:0px;}100%{min-width:450px;}}","@keyframes popup-jsx-4028658063{0%{min-width:0px;}100%{min-width:450px;}}",".modal__fullscreen.jsx-4028658063{top:0;border:none;border-radius:unset;height:-webkit-max-content;height:-moz-max-content;height:max-content;width:100%;padding:0;}",'.modal__dragging.jsx-4028658063{cursor:url("/icons/fa-hand-back-fist.svg"),auto;-webkit-filter:blur(3px);filter:blur(3px);}',".modal__content.jsx-4028658063{overflow:hidden;padding:var(--s-10) 0 var(--s-4);height:100%;margin:auto 0;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);color:var(--gray-30);height:-webkit-max-content;height:-moz-max-content;height:max-content;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-transition:all 1s;transition:all 1s;position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-5);}",".modal__content__popup.jsx-4028658063{margin:0;}","@media (max-width:1100px){.modal__content__popup.jsx-4028658063{height:100%;}}",".modal__content.jsx-4028658063:hover{-webkit-transition:all 1s;transition:all 1s;}",".modal__content.jsx-4028658063::-webkit-scrollbar-thumb{background-color:var(--blue-60);border-radius:5px;}",".modal__content.jsx-4028658063::-webkit-scrollbar{width:10px;aspect-ratio:1/1;background-color:rgba(0,0,0,0.2);}","@media (max-width:900px){.modal__content.jsx-4028658063{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;min-width:unset;}}",".modal__content__fullscreen.jsx-4028658063{width:100%;padding:0;margin:0;}",".modal__content__fullscreen.jsx-4028658063:hover{background-color:rgba(255,255,255,0);}",".modal__header.jsx-4028658063{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);padding:var(--s-8) var(--s-9) 0 var(--s-4);gap:var(--s-4);position:relative;cursor:default;}","@media (max-width:1100px){.modal__header.jsx-4028658063{position:relative;}}",".modal__header.jsx-4028658063:hover,.modal__header.jsx-4028658063:focus,.modal__header.jsx-4028658063:focus-within,.modal__header.jsx-4028658063:visited,.modal__header.jsx-4028658063:active{cursor:pointer;--ui-icon-color:var(--primary-50);}",".modal__header.jsx-4028658063 .modal-overlay__title.jsx-4028658063{font-size:var(--s-1);text-transform:capitalize;font-family:Play;-webkit-letter-spacing:var(--s-12);-moz-letter-spacing:var(--s-12);-ms-letter-spacing:var(--s-12);letter-spacing:var(--s-12);color:var(--primary-50);}","@media (max-width:900px){.modal__header.jsx-4028658063 .modal-overlay__title.jsx-4028658063{font-size:var(--s-4);}}",".modal__header__fullscreen.jsx-4028658063{position:absolute;top:0;left:0;right:0;z-index:2;margin:0;min-height:var(--s-element);border-radius:unset;border:unset;top:var(--s-9);}",".modal__header__fullscreen.jsx-4028658063:hover{background-color:var(--gray-100);}",".modal__body.jsx-4028658063{position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:var(--s-4);font-family:FreightSans;font-weight:500;height:auto;color:var(--gray-50);padding:var(--s-4);overflow-y:auto;overflow-x:hidden;max-height:80vh;}","@media (max-width:900px){.modal__body.jsx-4028658063{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:-webkit-max-content;height:-moz-max-content;height:max-content;padding:var(--s-9);}}",".modal__body__fullscreen.jsx-4028658063{z-index:1;margin-bottom:0;padding:0;width:100%;}",".modal__body__popup.jsx-4028658063{border-radius:var(--border-radius);height:-webkit-max-content;height:-moz-max-content;height:max-content;overflow-y:auto;overflow-x:hidden;}",".modal__body.jsx-4028658063 .modal-overlay__confirm.jsx-4028658063{font-family:Play;gap:var(--s-6);border-radius:var(--border-radius);overflow:hidden;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;}",".modal__body.jsx-4028658063 .modal-overlay__confirm--header.jsx-4028658063,.modal__body.jsx-4028658063 .modal-overlay__confirm.jsx-4028658063 .header.jsx-4028658063{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;margin:auto 0 var(--s-4);width:100%;color:var(--gray-60);font-size:var(--s-7);}",".modal__body.jsx-4028658063 .modal-overlay__confirm--header.jsx-4028658063 .header--title.jsx-4028658063,.modal__body.jsx-4028658063 .modal-overlay__confirm.jsx-4028658063 .header.jsx-4028658063 .header--title.jsx-4028658063{font-size:var(--s-6);color:var(--gray-50);font-weight:bold;}",".modal__body.jsx-4028658063 .modal-overlay__confirm-col.jsx-4028658063{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".modal__body.jsx-4028658063 .modal-overlay__confirm-btn.jsx-4028658063{width:100%;}"];nW.__hash="4028658063";var nZ=nW,nK=function(){var e=(0,l.useRef)(null),t=(0,l.useContext)(nN.tC),r=t.isModalOpen,n=t.closeModal,i=t.modalContent;if(t.replaceModal,!r||!i)return null;var o=i.confirm,a=i.title,s=i.children,c=i.footer,d=i.variant,f=i.dismissable,h=void 0===f||f,p=function(e){null==e||e.onClick(),n()},m=function(e){return e||d?e&&d?"".concat(e," ").concat(e,"__").concat(d):e:""};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(u(),{id:nZ.__hash,children:nZ}),(0,_.jsx)("div",{onClick:n,className:"jsx-".concat(nZ.__hash)+" "+(m("modal__overlay")||"")}),(!!s||!!o)&&(0,_.jsxs)("div",{ref:e,className:"jsx-".concat(nZ.__hash)+" "+(m("modal")||""),children:[(0,_.jsxs)("div",{className:"jsx-".concat(nZ.__hash)+" "+(m("modal__header")||""),children:[(0,_.jsx)("div",{className:"jsx-".concat(nZ.__hash)+" modal-overlay__title",children:a}),h&&(0,_.jsx)("div",{onClick:n,className:"jsx-".concat(nZ.__hash)+" close-btn",children:(0,_.jsx)(nE.a,{icon:"fa-xmark"})})]}),(0,_.jsxs)("div",{className:"jsx-".concat(nZ.__hash)+" "+(m("modal__body")||""),children:[s,o&&(0,_.jsxs)("div",{className:"jsx-".concat(nZ.__hash)+" modal-overlay__confirm--header header",children:[(null==o?void 0:o.title)&&(0,_.jsx)("div",{className:"jsx-".concat(nZ.__hash)+" header--title",children:o.title}),(null==o?void 0:o.body)&&(0,_.jsx)("div",{className:"jsx-".concat(nZ.__hash)+" header--body",children:o.body})]}),o&&(0,_.jsx)("div",{className:"jsx-".concat(nZ.__hash)+" "+"modal-overlay__confirm ".concat(o.statements.length>2?"modal-overlay__confirm-col":""),children:o.statements.map(function(e,t){return(0,_.jsx)(nx.Z,{onClick:function(){return p(e)},variant:"yes"===e.label?"primary":null==e?void 0:e.variant,children:e.label},t)})})]}),c&&(0,_.jsx)("div",{className:"jsx-".concat(nZ.__hash)+" modal__footer",children:c})]})]})},nX=r(31831);function nQ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nJ(e){for(var t=1;t9,i=function(e){e&&n?C.push("/admin"):C.push("/profile"),k()};return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o(),{id:u.__hash,children:u}),(0,E.jsxs)("div",{className:"jsx-".concat(u.__hash)+" authentication__welcome-modal",children:[(0,E.jsxs)("h3",{className:"jsx-".concat(u.__hash),children:["Welcome, ",t.name]}),n&&(0,E.jsx)(p.Z,{onClick:i,children:"admin"}),(0,E.jsx)(p.Z,{onClick:i,children:"account"}),(0,E.jsx)(p.Z,{onClick:r,children:"Close"})]})]})};M({title:"User Details",children:(0,E.jsx)(t,{user:e,onClose:k})})}};return(0,a.useEffect)(function(){w&&w.verify&&"verify"!==m&&T("verify"),void 0!=r&&T("sign-in")},[D,$]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o(),{id:u.__hash,children:u}),(0,E.jsxs)("div",{className:"jsx-".concat(u.__hash)+" "+"authentication ".concat("sign-in"==m?" authentication__sign-in":""),children:[(0,E.jsxs)("div",{className:"jsx-".concat(u.__hash)+" authentication__view-header",children:[(0,E.jsx)("div",{className:"jsx-".concat(u.__hash)+" authentication__logo",children:(0,E.jsx)(l.a,{icon:"".concat(g.Z.merchant.name,"-logo")})}),(0,E.jsx)("div",{className:"jsx-".concat(u.__hash)+" authentication__view-name",children:(0,f.Z)(m)})]}),m.includes("@")&&(0,E.jsxs)("div",{className:"jsx-".concat(u.__hash)+" authentication__email-verify",children:["An email has been sent to",(0,E.jsx)(b(),{onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)},style:S?{color:"var(--primary"}:void 0,href:"mailto://".concat(m),children:" "+m+", "})," click the link in the email to continue."]}),"sign-in"==m&&(0,E.jsx)(s.Z,{email:r,onSuccess:$}),"sign-up"==m&&(0,E.jsx)(d.Z,{onSuccess:D}),(0,E.jsxs)("div",{className:"jsx-".concat(u.__hash)+" authentication__view-action",children:[(0,E.jsx)("div",{className:"jsx-".concat(u.__hash)+" authentication__view-label--strike"}),(0,E.jsxs)("div",{className:"jsx-".concat(u.__hash)+" authentication__view-label",children:["sign-in"==m&&"no account?","sign-up"==m&&"already have an account?"]}),(0,E.jsxs)(p.Z,{onClick:P,variant:"link",children:["sign-in"==m&&"Sign Up","sign-up"==m&&"Login"]})]})]})]})}},10394:function(e,t,r){"use strict";r.d(t,{ko:function(){return s},fk:function(){return a}});var n=r(92777),i=r(82262),o=r(59499),a=new(function(){function e(t){(0,n.Z)(this,e),(0,o.Z)(this,"serviceTypes",{}),(0,o.Z)(this,"serviceInstances",{}),this.config=t}return(0,i.Z)(e,[{key:"registerService",value:function(e,t){this.serviceTypes[e]=t}},{key:"registerInstance",value:function(e,t){this.serviceInstances[e]=t}},{key:"getService",value:function(e){if(null!=this.serviceInstances[e])return this.serviceInstances[e];var t=this.serviceTypes[e];if(null==t)throw Error("Type Not Registered: "+e);var r=new t;return this.serviceInstances[e]=r,r}}]),e}())({});function s(e){return a.getService(e)}},35486:function(e,t,r){"use strict";r.d(t,{r0:function(){return f},ZP:function(){return h}});var n=r(16835),i=r(21378),o=r.n(i),a=["@-webkit-keyframes fade-out-jsx-2496126089{0%,70%{opacity:1;}100%{opacity:0;}}","@keyframes fade-out-jsx-2496126089{0%,70%{opacity:1;}100%{opacity:0;}}","@-webkit-keyframes grow-right-jsx-2496126089{0%{width:0;}100%{width:100%;}}","@keyframes grow-right-jsx-2496126089{0%{width:0;}100%{width:100%;}}",".adapt-table-cell__center.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".adapt-table-cell__member-initials.jsx-2496126089{background-color:var(--gray-60);text-transform:uppercase;-webkit-letter-spacing:0;-moz-letter-spacing:0;-ms-letter-spacing:0;letter-spacing:0;font-style:italic;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:50%;aspect-ratio:1;padding:var(--s-10);}","@media (max-width:900px){.adapt-table-cell__member-initials.jsx-2496126089{display:none;}}",".adaptable-cell__invalid-cell.jsx-2496126089{height:inherit;line-height:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:inherit;font-weight:200;color:var(--gray-50);padding:4px 6px;border-radius:4px;font-style:italic;}",".adapt-table-cell__id.jsx-2496126089{overflow:hidden;width:inherit;text-overflow:ellipsis;}",".cell-flex.jsx-2496126089,.adaptable-cell__product.jsx-2496126089,.adaptable-cell__member.jsx-2496126089,.adaptable-cell__date.jsx-2496126089,.adaptable-cell__copy-id.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;gap:5px;}",".adaptable-cell__icon-label.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-transform:capitalize;width:-webkit-max-content;width:-moz-max-content;width:max-content;gap:12px;}",".adaptable-cell__icon-label.jsx-2496126089 .icon-label--label.jsx-2496126089{white-space:nowrap;}",".adaptable-cell__date.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;line-height:1;}",".adaptable-cell__date.jsx-2496126089>div.jsx-2496126089{white-space:nowrap;}",".adaptable-cell__member-container.jsx-2496126089{line-height:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;--ui-icon-height:24px;--ui-icon-width:24px;--ui-icon-color:white;gap:12px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}","@media (max-width:450px){.adaptable-cell__member-container.jsx-2496126089{gap:unset;height:-webkit-max-content;height:-moz-max-content;height:max-content;}}",".adaptable-cell__member-container.jsx-2496126089 .adaptable-cell__member.jsx-2496126089{overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}","@media (max-width:900px){.adaptable-cell__member-container.jsx-2496126089 .adaptable-cell__member.jsx-2496126089{-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;}}","@media (max-width:450px){.adaptable-cell__member-container.jsx-2496126089 .adaptable-cell__member.jsx-2496126089{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}}",".adaptable-cell__member-container.jsx-2496126089 .adaptable-cell__member.jsx-2496126089 .adaptable-cell__member-title.jsx-2496126089{white-space:nowrap;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:5px;line-height:1;}",".adaptable-cell__member-container.jsx-2496126089 .adaptable-cell__member.jsx-2496126089 .adaptable-cell__member-title.jsx-2496126089 .adaptable-cell__member-id.jsx-2496126089{color:var(--gray-50);}",".adaptable-cell__product.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".adaptable-cell__product.jsx-2496126089 .adaptable-cell__product-description.jsx-2496126089{line-height:1;white-space:nowrap;}",".adaptable-cell__product.jsx-2496126089 .adaptable-cell__product-icon.jsx-2496126089{--ui-icon-size:16px;}",".adaptable-cell__currency-crypto.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:4px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;--ui-icon-width:16px;--ui-icon-height:16px;line-height:16px;}",".adaptable-cell__currency-crypto.jsx-2496126089 .status.jsx-2496126089{margin-left:auto;}",".wallet-common.jsx-2496126089,.adaptable-cell__etherscan-link.jsx-2496126089,.adaptable-cell__copy.jsx-2496126089,.adaptable-cell__wallet-address.jsx-2496126089{gap:6px;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;--ui-icon-color:var(--gray-40);--ui-icon-width:16px;--ui-icon-height:16px;overflow:visible;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content;}",".d-flex.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".adapt-table-cell__address.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;}",".adapt-table-cell__address--line1.jsx-2496126089,.adapt-table-cell__address--line2.jsx-2496126089,.adapt-table-cell__address--city.jsx-2496126089,.adapt-table-cell__address--state.jsx-2496126089,.adapt-table-cell__address--postal_code.jsx-2496126089,.adapt-table-cell__address--country.jsx-2496126089{font-size:inherit;padding:0 2px;line-height:1.2;color:inherit;overflow:hidden;font-size:inherit;text-overflow:ellipsis;}",".adapt-table-cell__address--line1.jsx-2496126089{font-weight:900;}",'.adapt-table-cell__address--city.jsx-2496126089::after{content:", ";}','.adapt-table-cell__address--state.jsx-2496126089::after{content:", ";}',".adaptable-cell__wallet-address.jsx-2496126089{position:relative;width:inherit;}",".adaptable-cell__wallet-address.jsx-2496126089 .adaptable-cell__wallet-condensed.jsx-2496126089:hover .adaptable-cell__wallet-preview.jsx-2496126089{display:block;}",".adaptable-cell__copy.jsx-2496126089{aspect-ratio:1/1;height:16px;border-radius:3px;padding:6px;position:relative;z-index:1;}",".adaptable-cell__copy.jsx-2496126089:not(.adaptable-cell__copied):hover{--ui-icon-color:white;background-color:var(--gray-50);}",'.adaptable-cell__copy.jsx-2496126089:not(.adaptable-cell__copied):hover::before{-webkit-animation:fade-out-jsx-2496126089 3s forwards;animation:fade-out-jsx-2496126089 3s forwards;font-size:12px;position:absolute;left:auto;right:0;bottom:calc(100% + 4px);top:auto;padding:5px 12px;content:"copy";background-color:var(--gray-30);color:var(--gray-70);border-radius:4px;width:-webkit-max-content;width:-moz-max-content;width:max-content;}',".adaptable-cell__copy.jsx-2496126089:active.jsx-2496126089::before{display:none;}",'.adaptable-cell__copy.adaptable-cell__copied.jsx-2496126089::after{font-size:12px;position:absolute;left:auto;right:0;top:calc(100% + 4px);bottom:auto;padding:5px 12px;content:"copied!";background-color:var(--gray-30);color:var(--gray-70);border-radius:4px;width:-webkit-max-content;width:-moz-max-content;width:max-content;}',".adaptable-cell__etherscan-link.jsx-2496126089{position:relative;aspect-ratio:1/1;border-radius:3px;padding:6px 2px;z-index:1;}",'.adaptable-cell__etherscan-link.jsx-2496126089:hover.jsx-2496126089::after{font-size:12px;position:absolute;left:calc(100% + 10px);top:0;padding:5px 12px;content:"view transaction details";background-color:var(--gray-30);color:var(--gray-70);border-radius:4px;width:-webkit-max-content;width:-moz-max-content;width:max-content;}',"@media (max-width:900px){.adaptable-cell__etherscan-link.jsx-2496126089:hover.jsx-2496126089::after{left:auto;right:0;bottom:100%;top:auto;}}"];a.__hash="2496126089";var s=a,c=r(67294),u=r(55140),l=r(47265),d=r(85893),f=function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o(),{id:s.__hash,children:s}),(0,d.jsx)("span",{className:"jsx-".concat(s.__hash)+" adaptable-cell__invalid-cell",children:"n/a"})]})},h=function(e){var t=e.cell,r=e.data,i=(0,c.useState)(!1),a=i[0],h=i[1],p=(0,c.useState)(),m=p[0],b=p[1],g=(0,c.useState)(!1);g[0],g[1],(0,c.useEffect)(function(){(function(){void 0!=t&&void 0!=r&&(["wallet-address","id","copy-id","currency-crypto","icon-label"].includes(t)&&r?h(!0):"check"==t&&void 0!=r?h(!0):"member"===t&&r.email&&r.name&&r.id?h(!0):"address"===t&&r?(h(!0),"object"==typeof r&&(null==r?void 0:r.line1)&&b({line1:null==r?void 0:r.line1,line2:null==r?void 0:r.line2,city:null==r?void 0:r.city,state:null==r?void 0:r.state,postal_code:null==r?void 0:r.postal_code,country:null==r?void 0:r.country})):"date"===t&&r?(b((0,l.vc)(r,{time:!0,isTimestamp:!0,returnType:"object"})),h(!0)):"product"===t&&(b({description:null==r?void 0:r.description,icon:null==r?void 0:r.description}),h(!0)))})()},[t,r]);var y=function(e){var t,r,n=e.split(" ");return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o(),{id:s.__hash,children:s}),(0,d.jsx)("div",{className:"jsx-".concat(s.__hash)+" adapt-table-cell__member-initials",children:(0,d.jsxs)("div",{className:"jsx-".concat(s.__hash),children:[null===(t=n[0])||void 0===t?void 0:t.charAt(0),null===(r=n[1])||void 0===r?void 0:r.charAt(0)]})})]})};return a?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o(),{id:s.__hash,children:s}),"member"===t&&(0,d.jsxs)("div",{className:"jsx-".concat(s.__hash)+" adaptable-cell__member-container",children:[(0,d.jsx)("div",{className:"jsx-".concat(s.__hash),children:y(r.name)}),(0,d.jsxs)("div",{className:"jsx-".concat(s.__hash)+" adaptable-cell__member",children:[(0,d.jsxs)("div",{className:"jsx-".concat(s.__hash)+" adaptable-cell__member-title",children:[r.name,(0,d.jsxs)("span",{className:"jsx-".concat(s.__hash)+" adaptable-cell__member-id",children:["(",r.id,")"]})]}),r.email]})]}),"date"==t&&m,"id"==t&&(0,d.jsx)("div",{className:"jsx-".concat(s.__hash)+" adapt-table-cell__id",children:r}),"address"==t&&(0,d.jsxs)("div",{className:"jsx-".concat(s.__hash)+" adapt-table-cell__address",children:["string"==typeof m&&m,"object"==typeof m&&Object.entries(m).map(function(e,t){var r=(0,n.Z)(e,2),i=r[0],o=r[1];return(0,d.jsx)("div",{className:"jsx-".concat(s.__hash)+" "+"adapt-table-cell__address--".concat(i),children:o},t)})]}),"check"==t&&(0,d.jsx)("div",{className:"jsx-".concat(s.__hash)+" adapt-table-cell__center",children:(0,d.jsx)(u.a,{color:r?"#090":"#ff990050",icon:r?"fas-circle-check":"fa-xmark"})})]}):(0,d.jsx)(f,{})}},85854:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(21378),i=r.n(n),o=r(67294),a=[".adaptgrid.jsx-1823175346{display:grid;grid-column-gap:0px;grid-row-gap:0px;grid-template-rows:auto;width:100%;}",".adaptgrid.scroll-x.jsx-1823175346{overflow-x:auto;}",".adaptgrid.scroll-x.jsx-1823175346::-webkit-scrollbar{display:none;}",".adaptgrid.scroll-y.jsx-1823175346{overflow-y:auto;}",".adaptgrid.scrollable.jsx-1823175346{overflow:auto;}",".adaptgrid.center.jsx-1823175346{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}","@media (max-width:900px){.adaptgrid.adaptgrid_dynamic-grid.jsx-1823175346{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}",".adaptgrid.jsx-1823175346 .adaptgrid__grid-item.jsx-1823175346{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:100vw;}",".adaptgrid.jsx-1823175346 .adaptgrid__grid-item.adaptgrid_card.jsx-1823175346,.adaptgrid.jsx-1823175346 .adaptgrid__grid-item.adaptgrid_card-border.jsx-1823175346{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--gray-90);border-radius:var(--border-radius);box-shadow:var(--box-shadow-xl);-webkit-transition:all 0.3s ease-out;transition:all 0.3s ease-out;}",".adaptgrid.jsx-1823175346 .adaptgrid__grid-item.adaptgrid_card.jsx-1823175346:hover,.adaptgrid.jsx-1823175346 .adaptgrid__grid-item.adaptgrid_card-border.jsx-1823175346:hover{background-color:var(--gray-80);}",".adaptgrid.jsx-1823175346 .adaptgrid__grid-item.adaptgrid_card-border.jsx-1823175346{outline:solid 1px var(--gray-80);border:solid 1px var(--gray-60);}"];a.__hash="1823175346";var s=a,c=r(42700),u=r(85893);function l(e){var t=e.focus,r=e.xs,n=e.sm,a=e.md,l=e.lg,d=e.xl,f=e.children,h=e.variant,p=e.gap,m=e.gapX,b=e.gapY,g=e.margin,y=e.padding,_=(e.responsive,e.scroll),v=e.reverse,E=e.align,T=e.backgroundColor,A=(0,c.Z)().width,S=(0,o.useRef)(null);function x(e,t){return t.filter(function(e){return void 0!==e.value}).reduce(function(t,r){var n=Math.abs(t.breakpoint-e);return Math.abs(r.breakpoint-e)2?" notification__confirm-col":""),children:p.confirm.statements.map(function(e,t){return(0,h.jsx)("div",{className:"jsx-".concat(u.__hash)+" notification__confirm-btn",children:(0,h.jsx)(f.Z,{onClick:function(){return C(e)},variant:"yes"===e.text?"primary":null==e?void 0:e.variant,children:e.text||e.label})},t)})}),S&&(0,h.jsx)("div",{className:"jsx-".concat(u.__hash)+" notification__list",children:Object.entries(S).map(function(e,t){var r=(0,n.Z)(e,2),i=(r[0],r[1]);return(0,h.jsxs)("a",{href:i.href,onClick:i.onClick,className:"jsx-".concat(u.__hash)+" notification__list-item",children:[(0,h.jsxs)("div",{className:"jsx-".concat(u.__hash)+" notification__list-item__label",children:[(0,h.jsx)(d.Z,{text:i.label||(null==i?void 0:i.name)}),JSON.stringify(null==i?void 0:i.onClick)]}),(0,h.jsx)("div",{className:"jsx-".concat(u.__hash),children:(0,h.jsx)(d.Z,{text:i.message})})]},t)})})]})})]}):(0,h.jsx)(h.Fragment,{})}},80360:function(e,t,r){"use strict";r.d(t,{N3:function(){return f},Ir:function(){return d}});var n=r(21378),i=r.n(n),o=r(67294),a=[".overlay.jsx-2740910235{position:fixed;top:0;left:0;bottom:0;right:0;width:100vw;height:100%;border-radius:16px;z-index:2;cursor:pointer;background-color:transparent;}",".overlay.jsx-2740910235:not(.overlay-transparent){background:rgba(0,0,0,0.2);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);box-shadow:0 4px 30px rgba(0,0,0,0.062745098);}"];a.__hash="2740910235";var s=a,c=r(85893),u="no-scroll",l=(0,o.createContext)([{active:!1},function(){}]),d=function(){return(0,o.useContext)(l)},f=function(e){var t=e.children,r=(0,o.useState)({active:!1});return(0,c.jsxs)(l.Provider,{value:r,children:[(0,c.jsx)(h,{}),t]})},h=function(){var e=(0,o.useContext)(l),t=e[0];e[1];var r=(0,o.useState)(null),n=r[0],a=r[1],d=(0,o.useCallback)(function(){var e=document.getElementById("app-body");null!=t&&t.noScroll&&(null!=e&&e.classList.contains(u)?null==e||e.classList.remove(u):null==e||e.classList.add(u))},[t]);return((0,o.useEffect)(function(){a(t),d()},[t,d]),null!=n&&n.active)?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(i(),{id:s.__hash,children:s}),(0,c.jsx)("div",{id:"app-overlay",style:null!=n&&n.zIndex?{zIndex:"".concat(null==n?void 0:n.zIndex)}:{},onClick:null==t?void 0:t.onClick,className:"jsx-".concat(s.__hash)+" "+"overlay ".concat(null!=t&&t.transparent?" overlay-transparent":"")}),null==t?void 0:t.children]}):(0,c.jsx)(c.Fragment,{})}},10577:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(21378),i=r.n(n),o=r(67294),a=["@-webkit-keyframes abled-jsx-3417743627{0%{cursor:default;position:relative;color:transparent;text-shadow:0 0 2px var(--gray-60);}100%{color:inherit;text-shadow:none;}}","@keyframes abled-jsx-3417743627{0%{cursor:default;position:relative;color:transparent;text-shadow:0 0 2px var(--gray-60);}100%{color:inherit;text-shadow:none;}}","@-webkit-keyframes disable-jsx-3417743627{0%{color:inherit;text-shadow:none;}100%{cursor:default;position:relative;color:transparent;text-shadow:0 0 2px var(--gray-60);}}","@keyframes disable-jsx-3417743627{0%{color:inherit;text-shadow:none;}100%{cursor:default;position:relative;color:transparent;text-shadow:0 0 2px var(--gray-60);}}","button.jsx-3417743627{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:inherit;-webkit-box-align:inherit;-ms-flex-align:inherit;align-items:inherit;-webkit-box-pack:inherit;-webkit-justify-content:inherit;-ms-flex-pack:inherit;justify-content:inherit;color:inherit;background-color:transparent;outline:none;border:none;height:inherit;line-height:inherit;width:inherit;overflow:inherit;gap:inherit;text-transform:inherit;font-size:inherit;-webkit-animation:inherit;animation:inherit;font-weight:inherit;font-family:inherit;text-align:inherit;text-shadow:inherit;padding-block:0;padding-inline:0;cursor:inherit;padding:0;}","button.flat.jsx-3417743627{margin:0;}","button.fit-text.jsx-3417743627{padding:var(--s-9) 0;}","button.lite.jsx-3417743627{-webkit-text-decoration:none;text-decoration:none;}","button.link.jsx-3417743627,button.lowercase.jsx-3417743627{text-transform:none;width:-webkit-max-content;width:-moz-max-content;width:max-content;}","button.link.jsx-3417743627,button.flat.jsx-3417743627{padding:0;}","button.miniactive.jsx-3417743627,button.mini.jsx-3417743627{padding-right:var(--s-7);}","button.jsx-3417743627 .busy-spinner.jsx-3417743627{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:var(--input-border-radius);--ui-icon-color:var(--white);}","button.icon.jsx-3417743627,button.disabled-icon.jsx-3417743627{padding:0 7px;}","@media (max-width:1100px){button.nav-item.jsx-3417743627{text-indent:7px;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}}","button.jsx-3417743627:disabled{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:not-allowed !important;-webkit-animation:disable-jsx-3417743627 1s forwards;animation:disable-jsx-3417743627 1s forwards;}","button.jsx-3417743627:not(disabled){-webkit-animation:abled-jsx-3417743627 1s forwards;animation:abled-jsx-3417743627 1s forwards;}",".ui-button__link.jsx-3417743627{color:inherit;-webkit-text-decoration:none !important;text-decoration:none !important;border:solid 1px #f30 !important;}"];a.__hash="3417743627";var s=a,c=r(55140),u=r(12094),l=r(41664),d=r.n(l),f=r(11163),h=r(85893),p=function(e){var t=e.href,r=e.target,n=e.children,o=e.rel,a=e.formControl,c=void 0===a||a;return t?c?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(i(),{id:s.__hash,children:s}),(0,h.jsx)(u.Z,{variant:"inherit",children:(0,h.jsx)(d(),{className:"ui-button__link-provider",href:t,target:r,rel:o||"noopener noreferrer",children:n})})]}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(i(),{id:s.__hash,children:s}),(0,h.jsx)(d(),{href:t,target:r,rel:o||"noopener noreferrer",style:{width:"100%"},children:n})]}):(0,h.jsx)(h.Fragment,{children:"NO HREF"})},m=function(e){var t=e.context,r=t.traits?t.traits:{};r.disabled=t.disabled;var n=function(e){(null==t?void 0:t.onClick)&&(null==t||t.onClick(e))};null!=t&&t.disabled&&(t.variant="disabled");var a=(null==t?void 0:t.type)&&!["tel","email"].includes(t.type)&&t.type;return(0,o.useEffect)(function(){},[t]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(i(),{id:s.__hash,children:s}),(0,h.jsx)(u.Z,{label:t.label,size:t.size,variant:t.variant,traits:r,children:(0,h.jsxs)("button",{"data-element":"button",type:a||void 0,onClick:n,disabled:(null==t?void 0:t.disabled)||(null==t?void 0:t.variant)=="disabled",className:"jsx-".concat(s.__hash)+" "+((null!=t&&t.variant?null==t?void 0:t.variant:"")||""),children:[(null==t?void 0:t.busy)&&(0,h.jsx)("div",{className:"jsx-".concat(s.__hash)+" busy-spinner",children:(0,h.jsx)(c.a,{icon:"spinner"})}),!(null!=t&&t.busy)&&(null==t?void 0:t.children)]})})]})},b=function(e){var t=e.href,r=e.target,n=e.onClick,o=e.children,a=e.variant,c=e.disabled,u=e.busy,l=e.traits,d=e.label,b=e.type,g=e.size,y=(0,f.useRouter)();return(t&&"/"!==t&&y.asPath==t&&(c=!0),t)?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(i(),{id:s.__hash,children:s}),(0,h.jsx)(p,{href:t,target:r,formControl:!1,children:(0,h.jsx)(m,{context:{type:b,onClick:n,children:o,variant:a,size:g,disabled:c,busy:u,traits:l,label:d}})})]}):(0,h.jsx)(m,{context:{onClick:n,children:o,variant:a,size:g,disabled:c,busy:u,traits:l,label:d}})}},12094:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(16835),i=r(21378),o=r.n(i),a=[".inherit.jsx-3765746149,.form-control.form-control--inherit.jsx-3765746149{--ui-icon-color:inherit;--ui-icon-width:inherit;--ui-icon-height:inherit;-webkit-text-decoration:inherit;text-decoration:inherit;color:inherit;background-color:inherit;height:inherit;min-height:inherit;max-height:inherit;width:inherit;min-width:inherit;max-width:inherit;padding:inherit;margin:inherit;display:inherit;-webkit-box-pack:inherit;-webkit-justify-content:inherit;-ms-flex-pack:inherit;justify-content:inherit;-webkit-align-items:inherit;-webkit-box-align:inherit;-ms-flex-align:inherit;align-items:inherit;-webkit-flex-direction:inherit;-ms-flex-direction:inherit;flex-direction:inherit;gap:inherit;font-size:inherit;font-weight:inherit;font-family:inherit;border:inherit;outline:inherit;border-radius:inherit;box-shadow:inherit;aspect-ratio:inherit;position:inherit;}",".d-flex.jsx-3765746149,.form-control.jsx-3765746149 .form-control__header.jsx-3765746149,.form-control__badge.jsx-3765746149{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".form-control.jsx-3765746149{color:inherit;width:var(--s-border-width);position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;text-transform:capitalize;height:-webkit-max-content;height:-moz-max-content;height:max-content;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;border:solid 1px transparent;}",".form-control.jsx-3765746149:hover.jsx-3765746149:not(.form-control.jsx-3765746149:focus-within) label.jsx-3765746149{color:var(--gray-50);}",".form-control.jsx-3765746149:focus-within label.jsx-3765746149{color:var(--gray-20) !important;}",".form-control__badge.jsx-3765746149{top:0;right:0;position:absolute;width:var(--s-5);height:var(--s-5);font-size:var(--s-7);color:var(--white);}","@-webkit-keyframes glow-jsx-3765746149{0%,100%{color:var(--primary-10);border:solid 1px var(--primary-o);}33%{border:solid 1px var(--primary-50);color:var(--gray-20);}}","@keyframes glow-jsx-3765746149{0%,100%{color:var(--primary-10);border:solid 1px var(--primary-o);}33%{border:solid 1px var(--primary-50);color:var(--gray-20);}}",".form-control--glow.jsx-3765746149{-webkit-animation:glow-jsx-3765746149 1.5s infinite ease-in;animation:glow-jsx-3765746149 1.5s infinite ease-in;height:calc(var(--s-element) - 2px);overflow:hidden !important;border-radius:var(--border-radius);width:calc(100% - 6px);margin:auto;}",".form-control.jsx-3765746149 .form-control__header.jsx-3765746149{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-height:var(--s-4);}",".form-control.jsx-3765746149 .form-control__header.jsx-3765746149 label.jsx-3765746149{text-indent:var(--s-10);text-transform:uppercase;color:var(--gray-50-o);line-height:2;font-weight:bold;font-size:var(--s-8);-webkit-letter-spacing:3px;-moz-letter-spacing:3px;-ms-letter-spacing:3px;letter-spacing:3px;}","@media (max-width:900px){.form-control.jsx-3765746149 .form-control__header.jsx-3765746149 label.jsx-3765746149{font-size:var(--s-9);}}",".form-control-sm.jsx-3765746149 .form-control__header.jsx-3765746149{min-height:unset;}",".form-control-sm.jsx-3765746149 .form-control__header.jsx-3765746149 label.jsx-3765746149{text-indent:var(--s-9);font-size:var(--s-9);}",".form-control--maxY.jsx-3765746149{height:100%;}",".form-control.form-control--invalid.jsx-3765746149 label.jsx-3765746149{color:var(--orange-50);}",".form-control--signature.jsx-3765746149{gap:var(--s-4);background-color:var(--gray-90);height:-webkit-max-content;height:-moz-max-content;height:max-content;}",".form-control--signature.jsx-3765746149:hover{background-color:var(--gray-90);}",".form-control--link.jsx-3765746149,.form-control--checkbox.jsx-3765746149{width:auto;}",".form-control--dark.jsx-3765746149 .form-control__header.jsx-3765746149 label.jsx-3765746149{color:var(--gray-100);}"];a.__hash="3765746149";var s=a,c=[".d-flex.jsx-2661134240,.form-control__element--signature.jsx-2661134240::before,.form-control__element--signature.jsx-2661134240,.form-control__element.jsx-2661134240{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}","@-webkit-keyframes bump-jsx-2661134240{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);background-color:var(--gray-70);}30%{-webkit-transform:rotate(5deg);-ms-transform:rotate(5deg);transform:rotate(5deg);background-color:var(--red-70);}70%{-webkit-transform:rotate(-2deg);-ms-transform:rotate(-2deg);transform:rotate(-2deg);background-color:var(--gray-70);}100%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);background-color:var(--red-70);}}","@keyframes bump-jsx-2661134240{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);background-color:var(--gray-70);}30%{-webkit-transform:rotate(5deg);-ms-transform:rotate(5deg);transform:rotate(5deg);background-color:var(--red-70);}70%{-webkit-transform:rotate(-2deg);-ms-transform:rotate(-2deg);transform:rotate(-2deg);background-color:var(--gray-70);}100%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);background-color:var(--red-70);}}","@-webkit-keyframes glowTxt-jsx-2661134240{0%{text-shadow:0 0 var(--s-9) var(--primary-50);}100%{text-shadow:0 0 var(--s-8) var(--primary-o);}}","@keyframes glowTxt-jsx-2661134240{0%{text-shadow:0 0 var(--s-9) var(--primary-50);}100%{text-shadow:0 0 var(--s-8) var(--primary-o);}}",".form-control__element.jsx-2661134240:not(.form-control__element--warning,.form-control__element--center,.form-control__element--glow,.form-control__element--checkbox,.form-control__element--primary,.form-control__element--inherit,.form-control__element--dark,.form-control__element--transparent,.form-control__element--lite,.form-control__element--flat,.form-control__element--secondary,.form-control__element--link,.form-control__element--select,.form-control__element--invalid,.form-control__element--input,.form-control__element--textarea,.form-control__element--signature){--ui-icon-color:var(--gray-40);background-color:var(--gray-70-o);}",".form-control__element.jsx-2661134240:focus-within.jsx-2661134240:not(.form-control__element--warning,.form-control__element--center,.form-control__element--glow,.form-control__element--checkbox,.form-control__element--primary,.form-control__element--inherit,.form-control__element--dark,.form-control__element--transparent,.form-control__element--lite,.form-control__element--flat,.form-control__element--secondary,.form-control__element--link,.form-control__element--select,.form-control__element--invalid,.form-control__element--input,.form-control__element--textarea,.form-control__element--signature){color:var(--gray-40);}",".form-control__element.jsx-2661134240:focus-within.jsx-2661134240:not(.form-control__element--warning,.form-control__element--center,.form-control__element--glow,.form-control__element--checkbox,.form-control__element--primary,.form-control__element--inherit,.form-control__element--dark,.form-control__element--transparent,.form-control__element--lite,.form-control__element--flat,.form-control__element--secondary,.form-control__element--link,.form-control__element--select,.form-control__element--invalid,.form-control__element--input,.form-control__element--textarea,.form-control__element--signature) .form-control__icon.jsx-2661134240{--ui-icon-color:var(--gray-40);}",".form-control__element.jsx-2661134240:hover.jsx-2661134240:not(.form-control__element--warning,.form-control__element--center,.form-control__element--glow,.form-control__element--checkbox,.form-control__element--primary,.form-control__element--inherit,.form-control__element--dark,.form-control__element--transparent,.form-control__element--lite,.form-control__element--flat,.form-control__element--secondary,.form-control__element--link,.form-control__element--select,.form-control__element--invalid,.form-control__element--input,.form-control__element--textarea,.form-control__element--signature){-webkit-transition:all 300ms;transition:all 300ms;--ui-icon-color:var(--gray-50);color:var(--gray-50);background-color:var(--gray-80);border:solid 1px var(--gray-60);}",".b-rad.jsx-2661134240,.form-control__element.jsx-2661134240:not(.form-control__element--signature,.form-control__element--checkbox,.form-control__element--round){border-style:solid;border-width:1px;border-color:transparent;outline:solid 1px transparent;border-radius:var(--border-radius);}",".form-control__element.jsx-2661134240{font-size:var(--font-size);--ui-icon-width:var(--font-size);--ui-icon-height:var(--font-size);position:relative;overflow:hidden;cursor:pointer;font-weight:300;line-height:1;height:calc(var(--s-element) - 2px);white-space:nowrap;width:auto;}",".form-control__element-xs.jsx-2661134240,.form-control__element-sm.jsx-2661134240,.form-control__element-md.jsx-2661134240,.form-control__element-lg.jsx-2661134240,.form-control__element-xl.jsx-2661134240,.form-control__element-xxl.jsx-2661134240{height:auto;width:-webkit-max-content !important;width:-moz-max-content !important;width:max-content !important;line-height:1.5;}",".form-control__element-xs.jsx-2661134240{font-size:var(--s-9);}",".form-control__element-sm.jsx-2661134240{font-size:var(--s-7);padding:0;}",".form-control__element--input.jsx-2661134240{color:inherit;}",".form-control__element--input.jsx-2661134240::-webkit-input-placeholder{color:inherit;}",".form-control__element--input.jsx-2661134240::-moz-placeholder{color:inherit;}",".form-control__element--input.jsx-2661134240:-ms-input-placeholder{color:inherit;}",".form-control__element--input.jsx-2661134240::placeholder{color:inherit;}",".form-control__element--input-sm.jsx-2661134240{font-size:var(--s-8);height:var(--s-4);padding:0 var(--s-9);}",".form-control__element-md.jsx-2661134240{font-size:var(--s-6);}",".form-control__element-lg.jsx-2661134240{font-size:var(--s-4);}",".form-control__element-xl.jsx-2661134240{font-size:var(--s-3);}",".form-control__element-xxl.jsx-2661134240{font-size:var(--s-2);}",".form-control__element.jsx-2661134240:not(.form-control__element--before-icon,.form-control__element--after-icon,.form-control__element--glow){padding:0 var(--s-9);}",".form-control__element--before-icon.form-control__element--link.jsx-2661134240{gap:var(--s-9);}",".form-control__element--after-icon--link.form-control__element--link.jsx-2661134240{gap:var(--s-9);}",".form-control__element--after-icon.jsx-2661134240:not(.form-control__element--flat,.form-control__element--center){padding-left:var(--s-9);}",".form-control__element--before-icon.jsx-2661134240:not(.form-control__element--flat,.form-control__element--center){padding-right:var(--s-9);}",".form-control__element--button.jsx-2661134240{color:inherit;border-style:solid;border-width:1px;border-color:unset;-webkit-filter:brightness(0.8);filter:brightness(0.8);}",".form-control__element--button.jsx-2661134240:hover,.form-control__element--button.jsx-2661134240:focus{-webkit-filter:brightness(1);filter:brightness(1);}",".form-control__element--button.form-control__element--flat.jsx-2661134240{width:inherit;gap:var(--s-12);}",".form-control__element--button.form-control__element--flat.jsx-2661134240:first-child{padding:0;}",".form-control__element--checkbox.jsx-2661134240{width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:0;height:var(--s-element);}",".form-control__element--input.jsx-2661134240,.form-control__element--textarea.jsx-2661134240{-webkit-text-fill-color:var(--gray-50);--ui-icon-color:var(--gray-50);background-color:var(--gray-60-o);border:solid 1px var(--gray-50-o) !important;box-shadow:inset 1px 1px 3px 2px var(--gray-80-o);}",'.form-control__element--input.jsx-2661134240:not(.form-control__element--input--signature,.form-control__element--textarea--signature),.form-control__element--textarea.jsx-2661134240:not(.form-control__element--input--signature,.form-control__element--textarea--signature){font-family:"Game",sans-serif;font-style:italic;}',".form-control__element--input.jsx-2661134240:focus-within.jsx-2661134240:not(.form-control__element--nav-item,.form-control__element--signature,.form-control__element--transparent),.form-control__element--textarea.jsx-2661134240:focus-within.jsx-2661134240:not(.form-control__element--nav-item,.form-control__element--signature,.form-control__element--transparent){border:solid 1px var(--gray-10) !important;--ui-icon-color:var(--gray-10);-webkit-text-fill-color:var(--gray-50);color:var(--gray-10);background-color:var(--gray-70);}",".form-control__element--input.jsx-2661134240:not(.form-control__element--input--signature,.form-control__element--input--dark,.form-control__element--input--disabled,.form-control__element--input--transparent,.form-control__element--textarea--signature,.form-control__element--textarea--dark,.form-control__element--textarea--disabled,.form-control__element--textarea--transparent):hover:not(.form-control__element--input:not(.form-control__element--input--signature,.form-control__element--input--dark,.form-control__element--input--disabled,.form-control__element--input--transparent,.form-control__element--textarea--signature,.form-control__element--textarea--dark,.form-control__element--textarea--disabled,.form-control__element--textarea--transparent):focus-within,.form-control__element--textarea:not(.form-control__element--input--signature,.form-control__element--input--dark,.form-control__element--input--disabled,.form-control__element--input--transparent,.form-control__element--textarea--signature,.form-control__element--textarea--dark,.form-control__element--textarea--disabled,.form-control__element--textarea--transparent):focus-within),.form-control__element--textarea.jsx-2661134240:not(.form-control__element--input--signature,.form-control__element--input--dark,.form-control__element--input--disabled,.form-control__element--input--transparent,.form-control__element--textarea--signature,.form-control__element--textarea--dark,.form-control__element--textarea--disabled,.form-control__element--textarea--transparent):hover:not(.form-control__element--input:not(.form-control__element--input--signature,.form-control__element--input--dark,.form-control__element--input--disabled,.form-control__element--input--transparent,.form-control__element--textarea--signature,.form-control__element--textarea--dark,.form-control__element--textarea--disabled,.form-control__element--textarea--transparent):focus-within,.form-control__element--textarea:not(.form-control__element--input--signature,.form-control__element--input--dark,.form-control__element--input--disabled,.form-control__element--input--transparent,.form-control__element--textarea--signature,.form-control__element--textarea--dark,.form-control__element--textarea--disabled,.form-control__element--textarea--transparent):focus-within){-webkit-text-fill-color:var(--gray-70);background-color:var(--gray-60);font-weight:500;color:var(--gray-70);--ui-icon-color:var(--gray-70);}",".form-control__element--input.jsx-2661134240:nth-child(2),.form-control__element--textarea.jsx-2661134240:nth-child(2){padding-left:var(--s-8);}",".form-control__element--textarea.jsx-2661134240{height:-webkit-max-content;height:-moz-max-content;height:max-content;max-width:inherit;padding-top:4px;min-height:var(--s-element);}",".form-control__element-disabled.jsx-2661134240:hover,.form-control__element--disabled.jsx-2661134240:hover{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:not-allowed;}",".form-control__element-sm.jsx-2661134240:not(.form-control__element--before-icon),.form-control__element-sm.jsx-2661134240:not(.form-control__element--before-icon){padding:0 var(--s-9);}",".form-control__element--flat--after-icon.jsx-2661134240{padding:0 var(--s-2);}",".form-control__element--flat--after-icon-sm.jsx-2661134240{padding:0 var(--s-10);}",".form-control__element--input-color.jsx-2661134240{padding:0;height:100%;background-color:transparent;}",".form-control__element--round.jsx-2661134240{border-radius:var(--s-1);}",".form-control__element--primary.jsx-2661134240{background-color:var(--primary-o);border:solid 1px var(--primary-o);color:var(--gray-30);--ui-icon-color:$c;}",".form-control__element--primary.jsx-2661134240:hover{background-color:var(--primary-o);border:solid 1px var(--primary-50);color:var(--primary-50);--ui-icon-color:$hC;}",".form-control__element--primary.jsx-2661134240:focus-within{background-color:var(--primary-50);border:solid 1px transparent;color:var(--white);--ui-icon-color:$fC;}",".form-control__element--secondary.jsx-2661134240{background-color:var(--secondary-o);color:var(--gray-20);}",".form-control__element--secondary.jsx-2661134240:hover{background-color:var(--secondary);color:var(--white);}",".form-control__element--warning.jsx-2661134240{background-color:var(--gray-80);border:solid 1px var(--red-30);color:var(--warning);--ui-icon-color:$c;}",".form-control__element--warning.jsx-2661134240:hover{background-color:var(--red-30);border:solid 1px var(--red-30);color:var(--gray-40);--ui-icon-color:$hC;}",".form-control__element--warning.jsx-2661134240:focus-within{background-color:var(--red-30);border:solid 1px transparent;color:var(--gray-10);--ui-icon-color:$fC;}",".form-control__element--signature.jsx-2661134240{background-color:inherit;border:solid 1px transparent;color:var(--gray-40);--ui-icon-color:$c;}",".form-control__element--signature.jsx-2661134240:hover{background-color:inherit;border:solid 1px transparent;color:var(--gray-50);--ui-icon-color:$hC;}",".form-control__element--signature.jsx-2661134240:focus-within{background-color:inherit;border:solid 1px transparent;color:var(--gray-30);--ui-icon-color:$fC;}",".form-control__element--center.jsx-2661134240{min-width:150px;padding:0;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}",".form-control__element--fit-text.jsx-2661134240{white-space:unset;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;height:auto;}",".form-control__element--signature.jsx-2661134240{position:relative;overflow:visible;}",".form-control__element--signature.jsx-2661134240:hover{border-color:transparent;}",'.form-control__element--signature.jsx-2661134240::before{position:absolute;content:"x";left:0;color:var(--gray-70);font-size:var(--s-5);bottom:calc(var(--s-9) * -1);background-color:inherit;z-index:1;width:var(--s-1);text-align:center;line-height:1;}','.form-control__element--signature.jsx-2661134240::after{position:absolute;content:"";bottom:0;border-top:solid 1px var(--gray-70);width:calc(100% - var(--s-4));}',".form-control__element--signature.jsx-2661134240:hover.jsx-2661134240::before{color:var(--gray-50);}",".form-control__element--signature.jsx-2661134240:hover.jsx-2661134240::after{border-top-color:var(--gray-50);}",".form-control__element--signature.jsx-2661134240:focus-within.jsx-2661134240:not(.form-control__element--signature.jsx-2661134240:hover)::before{color:var(--gray-30);}",".form-control__element--signature.jsx-2661134240:focus-within.jsx-2661134240:not(.form-control__element--signature.jsx-2661134240:hover)::after{border-top-color:var(--gray-30);}",".form-control__element--lite.jsx-2661134240{background-color:var(--gray-40);border:solid 1px var(--gray-10);color:var(--gray-70);--ui-icon-color:$c;}",".form-control__element--lite.jsx-2661134240:hover{background-color:var(--gray-30);border:solid 1px var(--secondary);color:var(--gray-70);--ui-icon-color:$hC;}",".form-control__element--lite.jsx-2661134240:focus-within{background-color:var(--gray-40);border:solid 1px var(--gray-50);color:var(--gray-50);--ui-icon-color:$fC;}",".form-control__element--dark.jsx-2661134240{background-color:var(--black);border:solid 1px var(--primary-50);color:var(--primary-50);--ui-icon-color:$c;}",".form-control__element--dark.jsx-2661134240:hover{background-color:var(--gray-80-o);border:solid 1px var(--primary-50);color:var(--primary-50);--ui-icon-color:$hC;}",".form-control__element--dark.jsx-2661134240:focus-within{background-color:var(--primary-o);border:solid 1px var(--gray-70);color:var(--gray-100);--ui-icon-color:$fC;}",".form-control__element--secondary.jsx-2661134240{background-color:var(--secondary-o);border:solid 1px var(--gray-20);color:var(--gray-20);--ui-icon-color:$c;}",".form-control__element--secondary.jsx-2661134240:hover{background-color:var(--secondary-o);border:solid 1px var(--gray-20);color:var(--gray-20);--ui-icon-color:$hC;}",".form-control__element--secondary.jsx-2661134240:focus-within{background-color:var(--secondary-o);border:solid 1px var(--gray-20);color:var(--gray-20);--ui-icon-color:$fC;}",".form-control__element--link.jsx-2661134240{background-color:transparent;border:solid 1px transparent;color:var(--blue-60);--ui-icon-color:$c;}",".form-control__element--link.jsx-2661134240:hover{background-color:transparent;border:solid 1px transparent;color:var(--blue-10);--ui-icon-color:$hC;}",".form-control__element--link.jsx-2661134240:focus-within{background-color:transparent;border:solid 1px transparent;color:var(--blue-10);--ui-icon-color:$fC;}",".form-control__element--glow.jsx-2661134240{color:inherit;overflow:hidden;position:absolute;left:0;width:100%;outline:none;border:none;height:100%;-webkit-backdrop-filter:blur(var(--s-12));backdrop-filter:blur(var(--s-12));}",".form-control__element--glow.jsx-2661134240:focus,.form-control__element--glow.jsx-2661134240:focus-within{background-color:var(--gray-80);}",".form-control__element--glow.jsx-2661134240:hover.jsx-2661134240:not(:focus,.jsx-2661134240:focus-within){-webkit-animation:none;animation:none;background-color:var(--primary-10);color:var(--gray-10);}",".form-control__element--link.jsx-2661134240{padding:0;width:-webkit-max-content;width:-moz-max-content;width:max-content;gap:var(--s-10);}",".form-control__element--link.jsx-2661134240:hover{-webkit-animation:glowTxt-jsx-2661134240 2s infinite;animation:glowTxt-jsx-2661134240 2s infinite;}",".form-control__element--bump.jsx-2661134240{-webkit-animation:bump-jsx-2661134240 0.3s;animation:bump-jsx-2661134240 0.3s;}",".form-control__element--pill.jsx-2661134240{border:solid 1px var(--gray-70);width:-webkit-max-content;width:-moz-max-content;width:max-content;}",".form-control__element--error.jsx-2661134240{position:relative;color:var(--red-70) !important;--ui-icon-color:var(--red-70) !important;}",".form-control__element--error.jsx-2661134240:not(.form-control__element--error--signature){border:solid 1px var(--red-70) !important;}",".form-control__element--error--signature.jsx-2661134240{border:solid 1px transparent !important;}",".form-control__element--error--signature.jsx-2661134240 .form-control__invalid.jsx-2661134240{color:var(--red-70) !important;}",".form-control__element--error.jsx-2661134240 .form-control__invalid.jsx-2661134240{position:absolute;font-family:Play;font-style:italic;-webkit-animation:bump-jsx-2661134240 0.4s ease-in;animation:bump-jsx-2661134240 0.4s ease-in;right:var(--s-2);font-size:var(--s-3);font-weight:bold;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--secondary-o);opacity:0.5;}",".form-control__element--select--flat.jsx-2661134240{background-color:var(--gray-70-o);color:inherit;--ui-icon-color:var(--gray-70-o);border:solid 1px transparent;}",".form-control__element--select--flat.jsx-2661134240:hover,.form-control__element--select--flat.jsx-2661134240:focus-within{background-color:var(--gray-70);color:var(--gray-30);--ui-icon-color:var(--gray-70);border:solid 1px var(--gray-90);}",".form-control__element--select.jsx-2661134240:not(.form-control__element--flat){color:var(--gray-90);}",".form-control__element--select.jsx-2661134240:not(.form-control__element--flat,.form-control__element--lite){color:var(--gray-60);--ui-icon-color:var(--gray-60);background-color:var(--gray-90);}",".form-control__element--select.jsx-2661134240:not(.form-control__element--flat,.form-control__element--lite):hover{color:var(--gray-40);--ui-icon-color:var(--gray-40);}",".form-control__element--select.jsx-2661134240:not(.form-control__element--flat,.form-control__element--lite):focus-within{color:var(--white);--ui-icon-color:var(--white);background-color:var(--gray-70);}",".form-control__element--transparent.jsx-2661134240{background-color:var(--gray-100-o);background-color:transparent;color:var(--orange-50) !important;--ui-icon-color:var(--primary-50);}",".form-control__element--transparent.jsx-2661134240:hover.jsx-2661134240:not(.form-control__element--transparent.jsx-2661134240:focus-within){-webkit-text-fill-color:var(--gray-50);background-color:var(--gray-80-o);color:var(--gray-50);--ui-icon-color:var(--gray-50);}",".form-control__element--transparent.jsx-2661134240:focus-within{color:var(--gray-50);background-color:var(--gray-90-o);}"];c.__hash="2661134240";var u=c,l=[".d-flex.jsx-2996103592,.form-control-icon.jsx-2996103592{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".dark.jsx-2996103592{border-radius:calc(var(--border-radius) - var(--s-12));width:calc(var(--s-element) - var(--s-10));margin:4px 3px;height:calc(var(--s-element) - var(--s-10));aspect-ratio:unset;background-color:var(--dark-o);}",".dark.jsx-2996103592:hover{background-color:var(--primary-o);}",".form-control-icon.jsx-2996103592{--ui-icon-color:inherit;--ui-icon-size:var(--s-5);padding:0 var(--s-9) 0 var(--s-10);}",".form-control-icon-nav-item.jsx-2996103592{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;position:relative;padding:0;}","@media (max-width:1100px){.form-control-icon-nav-item.jsx-2996103592{position:relative;}}",".form-control-icon-flat.jsx-2996103592{width:var(--s-2);}",".form-control-icon-link.jsx-2996103592{width:var(--s-5);}","@media (max-width:1100px){.form-control-icon-link.jsx-2996103592{position:relative;}}",".form-control-icon-sm.jsx-2996103592{position:relative;--ui-icon-height:var(--s-7);--ui-icon-width:100%;}"];l.__hash="2996103592";var d=l,f=r(67294),h=r(80360),p=r(55140),m=r(59131),b=r(85893);function g(e,t,r,n){if(!e)return null;var i="string"==typeof e?e:e.icon,a="object"==typeof e?e.onClick:void 0,s="object"==typeof e?e.color:void 0,c="form-control-icon";return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o(),{id:d.__hash,children:d}),(0,b.jsx)("div",{className:"jsx-".concat(d.__hash)+" "+"".concat(c," ").concat(c,"__").concat(t," ").concat(n?" ".concat(c,"-").concat(n):""," ").concat(r?" ".concat(c,"-").concat(r):""),children:(0,b.jsx)(p.a,{icon:i,onClick:a,color:s})})]})}var y=function(e){var t=e.label,r=e.children,i=e.variant,a=e.overlay,c=e.size,l=e.setOverlay,d=e.traits,p=e.type,y=e.error,_=(0,f.useRef)(null),v=(0,h.Ir)(),E=(0,n.Z)(v,2),T=E[0],A=E[1];(0,f.useEffect)(function(){if(d){var e=_.current.querySelector(".form-control__element");if(e){Object.keys(d).forEach(function(t){t in e.style&&(e.style[t]=d[t])}),"string"==typeof d.outline&&(e.style.outline=d.outline),null!=d&&d.disabled&&e.classList.add("form-control__element--disabled"),null!=d&&d.responsive&&e.classList.add("form-control__element-responsive"),y&&e.classList.add("form-control__element--error");var t=Object.values(e.children).find(function(e){return e.getAttribute("data-element")&&["button","input","select","textarea"].includes(e.getAttribute("data-element"))});if(t){var r=t.getAttribute("data-element");_.current.classList.add("form-control--".concat(r)),e.classList.add("form-control__element--".concat(r).concat(p&&"color"==p?"-color":""))}}a?A({active:!0,transparent:!0,onClick:l||function(){return A({active:!1})}}):T.active&&A({active:!1})}},[a,d,i,l,A]);var S=function(e){var t=function(){return null!=d&&d.beforeIcon?" ".concat(e,"--before-icon"):null!=d&&d.afterIcon?" ".concat(e,"--after-icon"):""},r=function(){return i&&i.split(" ").reduce(function(t,r){var n="".concat(e,"--").concat(r);return t.includes(n)?t:"".concat(t," ").concat(n).trim()},e)},n=function(){return c?" ".concat(e,"-").concat(c):""},o=function(){return"color"!=p?"":"form-control"==e?" form-control--maxY":" ".concat(e,"-input-color")};return i?"".concat(r()).concat(t()).concat(n()).concat(o()):"".concat(e).concat(t()).concat(n()).concat(o())};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o(),{id:s.__hash,children:s}),(0,b.jsx)(o(),{id:u.__hash,children:u}),(0,b.jsxs)("div",{ref:_,className:"jsx-".concat(s.__hash," jsx-").concat(u.__hash)+" "+(S("form-control")||""),children:[t&&(0,b.jsx)("div",{className:"jsx-".concat(s.__hash," jsx-").concat(u.__hash)+" form-control__header",children:(0,b.jsx)("label",{className:"jsx-".concat(s.__hash," jsx-").concat(u.__hash),children:"string"==typeof t?(0,b.jsx)(m.Z,{text:t}):t})}),(0,b.jsxs)("div",{className:"jsx-".concat(s.__hash," jsx-").concat(u.__hash)+" "+(S("form-control__element")||""),children:[g(null==d?void 0:d.beforeIcon,"before",c,i),f.Children.map(r,function(e){return(0,f.cloneElement)(e)}),(null==d?void 0:d.badge)&&(0,b.jsx)("div",{className:"jsx-".concat(s.__hash," jsx-").concat(u.__hash)+" form-control__badge",children:(0,b.jsx)("div",{className:"jsx-".concat(s.__hash," jsx-").concat(u.__hash)+" form-control__badge-content",children:d.badge})}),g(null==d?void 0:d.afterIcon,"after",c,i),y&&(0,b.jsx)("div",{className:"jsx-".concat(s.__hash," jsx-").concat(u.__hash)+" form-control__invalid",children:(0,b.jsx)(m.Z,{text:y})})]})]})]})}},98067:function(e,t,r){"use strict";r.d(t,{Z:function(){return E}});var n=r(59499),i=r(16835),o=r(21378),a=r.n(o),s=r(69654),c=r(12094),u=r(67294);function l(e,t){return!e||"string"!=typeof e||!t||"email"!==t||/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)}var d=r(47265),f=new Date,h=f.getFullYear()%100,p=f.getMonth()+1,m=function(e,t){var r=e.target,n=r.name,o=r.value,a=r.defaultValue||"",s=o.length"1")o="0".concat(o);else if(o.length>=2){var m=o.slice(0,2),b=o.slice(2,4);Number(m)>12&&(m="12"),!s&&2===b.length&&(Number(b)1||_>1)&&(o=o.substring(0,o.length-1))}else if("phone"===n){var v,E,T=null===(v=o)||void 0===v?void 0:v.replace(/\D+/g,""),A=null===(E=e.nativeEvent)||void 0===E?void 0:E.inputType,S="";if(isNaN(o.substring(o.length-1,o.length))&&(S=0==T.length?1:o.substring(0,o.length-1)),"insertText"==A)switch(T.length){case 1:S="1"==T?"".concat(T," ("):"1 (".concat(T);break;case 5:S="1 ( ".concat(T.substring(1,4)," ) ").concat(T.substring(4));break;case 8:S="1 ( ".concat(T.substring(1,4)," ) ").concat(T.substring(4,7)," - ").concat(T.substring(7));break;case 12:S="1 ( ".concat(T.substring(1,4)," ) ").concat(T.substring(4,7)," - ").concat(T.substring(7,11));break;default:S=o}else"deleteContentBackward"==A&&(S=o.replace(/[^0-9]*$/,""));return[S,void 0]}else if("number"===e.target.type)return[o.replace(/[^0-9]+/g,""),void 0];else if("number"===n&&"phone"!=n){var x=(0,d.ZP)(o),C=(0,i.Z)(x,2),w=C[0],N=C[1];return"unknown"===w?[N,"fa-exclamation-triangle"]:[N,w]}return[o,void 0]},b=r(88566),g=r(96486),y=r(85893);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t100||"textarea"==o,R=null!=d?d:"",I=function(e){if(T&&("Backspace"===e.key||"Delete"===e.key)){var t=e.currentTarget;T({name:t.name,value:t.value})}h&&h(e)};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(a(),{id:s.Z.__hash,children:s.Z}),"address"!=e.name&&(0,y.jsx)(c.Z,v(v({},e),{},{traits:v(v({},e.traits),{},{disabled:e.disabled,afterIcon:"password"===o?{icon:x?"fa-eye":"fa-eye-slash",onClick:function(){return C(!x)}}:null===(r=e.traits)||void 0===r?void 0:r.afterIcon}),children:O?(0,y.jsx)("textarea",{"data-element":e["data-element"]||"textarea",disabled:(null==e?void 0:e.disabled)||void 0,id:null==e?void 0:e.id,name:n,placeholder:e.placeholder,value:R,onChange:w,autoComplete:e.autoComplete,onKeyDown:I,onKeyUp:p,onPaste:e.onPaste,required:!!E,className:"jsx-".concat(s.Z.__hash)+" "+(M||"")}):(0,y.jsx)("input",{onClick:"button"==o&&A&&A||void 0,"data-element":e["data-element"]||"input",disabled:(null==e?void 0:e.disabled)||void 0,id:null==e?void 0:e.id,name:n,type:k,placeholder:e.placeholder,min:e.min,max:e.max,value:R,onChange:"color"!=k?w:N,autoComplete:e.autoComplete,onKeyDown:I,onKeyUp:p,onPaste:e.onPaste,required:!!E,className:"jsx-".concat(s.Z.__hash)+" "+(M||"")})})),"address"==e.name&&(0,y.jsx)(b.Z,{label:e.label,inputClasses:M,traits:v({},e.traits),error:e.error,address:d,variant:e.variant,setAddress:w}),(0,y.jsx)("div",{className:"jsx-".concat(s.Z.__hash)+" "+"input__message ".concat(_?"input__message-show":"").concat(null!=e&&e.variant?" input__message-"+e.variant:""),children:_&&_})]})}},88566:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});var n,i=r(59499),o=r(50029),a=r(21378),s=r.n(a),c=r(64687),u=r.n(c),l=r(67294),d=r(69654),f=[".address-input.jsx-2341783493{position:relative;height:-webkit-max-content;height:-moz-max-content;height:max-content;width:100%;border:inherit;}",".address-input.jsx-2341783493 input.jsx-2341783493{height:-webkit-max-content;height:-moz-max-content;height:max-content;position:absolute;width:100%;padding:0;left:0;text-indent:var(--s-4);}",".address-input.jsx-2341783493 .menu-container.jsx-2341783493{position:absolute;top:100%;left:0;width:100%;z-index:1000;}",".address-input.jsx-2341783493 .pac-container.jsx-2341783493{width:100%;background-color:#fff;border:1px solid #ccc;max-height:200px;overflow-y:auto;box-shadow:0 2px 8px rgba(0,0,0,0.1);}",".address-input.jsx-2341783493 .pac-container.jsx-2341783493 .pac-item.jsx-2341783493{padding:10px;cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".address-input.jsx-2341783493 .pac-container.jsx-2341783493 .pac-item.jsx-2341783493:hover{background-color:#eee;}",".address-input.jsx-2341783493 .pac-container.jsx-2341783493 .pac-item.jsx-2341783493 .pac-icon.jsx-2341783493{margin-right:10px;}",".address-input.jsx-2341783493 .pac-container.jsx-2341783493 .pac-item.jsx-2341783493 .pac-item-query.jsx-2341783493{font-weight:bold;}",".address-input.jsx-2341783493 .pac-container.jsx-2341783493 .pac-item.jsx-2341783493 .pac-item-secondary.jsx-2341783493{font-size:0.9em;color:#666;}"];f.__hash="2341783493";var h=f;function p(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){e.done?r(e.value):i(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var m=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var n,i,o,a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r});let b="__googleMapsScriptId";!function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}(n||(n={}));class g{constructor({apiKey:e,authReferrerPolicy:t,channel:r,client:n,id:i=b,language:o,libraries:a=[],mapIds:s,nonce:c,region:u,retries:l=3,url:d="https://maps.googleapis.com/maps/api/js",version:f}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=r,this.client=n,this.id=i||b,this.language=o,this.libraries=a,this.mapIds=s,this.nonce=c,this.region=u,this.retries=l,this.url=d,this.version=f,g.instance){if(!m(this.options,g.instance.options))throw Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(g.instance.options)}`);return g.instance}g.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?n.FAILURE:this.done?n.SUCCESS:this.loading?n.LOADING:n.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`®ion=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){let e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>{this.loadCallback(r=>{r?t(r.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id)){this.callback();return}let r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(e=>!r[e]&&delete r[e]),(null===(t=null===(e=null==window?void 0:window.google)||void 0===e?void 0:e.maps)||void 0===t?void 0:t.importLibrary)||(e=>{let t,r,n,i="The Google Maps JavaScript API",o="google",a="importLibrary",s="__ib__",c=document,u=window,l=(u=u[o]||(u[o]={})).maps||(u.maps={}),d=new Set,f=new URLSearchParams,h=()=>t||(t=new Promise((a,u)=>p(this,void 0,void 0,function*(){var h;for(n in yield r=c.createElement("script"),r.id=this.id,f.set("libraries",[...d]+""),e)f.set(n.replace(/[A-Z]/g,e=>"_"+e[0].toLowerCase()),e[n]);f.set("callback",o+".maps."+s),r.src=this.url+"?"+f,l[s]=a,r.onerror=()=>t=u(Error(i+" could not load.")),r.nonce=this.nonce||(null===(h=c.querySelector("script[nonce]"))||void 0===h?void 0:h.nonce)||"",c.head.append(r)})));l[a]?console.warn(i+" only loads once. Ignoring:",e):l[a]=(e,...t)=>d.add(e)&&h().then(()=>l[a](e,...t))})(r);let n=this.libraries.map(e=>this.importLibrary(e));n.length||n.push(this.importLibrary("core")),Promise.all(n).then(()=>this.callback(),e=>{let t=new ErrorEvent("error",{error:e});this.loadErrorCallback(t)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){let e=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},e)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}var y=r(12094),_=r(13190),v=r(85893);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t2&&w?w.getPlacePredictions({input:t},function(e){E(e||[])}):E([])},R=(0,l.useCallback)(function(){x(t?"".concat(null!=t&&t.line1?(null==t?void 0:t.line1)+", ":"").concat(null!=t&&t.line2?(null==t?void 0:t.line2)+" ":"").concat(null!=t&&t.city?(null==t?void 0:t.city)+" ":"").concat(null!=t&&t.state?(null==t?void 0:t.state)+", ":"").concat(null!=t&&t.postal_code?(null==t?void 0:t.postal_code)+", ":"").concat(null!=t&&t.country?null==t?void 0:t.country:""):"")},[t]),I=function(e){var t=e.value;new g({apiKey:M,libraries:["places"]}).load().then(function(e){new e.maps.places.PlacesService(document.createElement("div")).getDetails({placeId:t},function(e){if(e&&e.address_components){var t,n,i=e.address_components.reduce(function(e,t){return e[t.types[0]]=t.short_name,e},{});r({target:{name:"address",value:{line1:"".concat(i.street_number||""," ").concat(i.route||""),line2:i.sublocality||"",city:i.locality||"",state:i.administrative_area_level_1||"",postal_code:i.postal_code||"",country:i.country||"",lat:(null===(t=e.geometry)||void 0===t||null===(t=t.location)||void 0===t?void 0:t.lat())||0,lng:(null===(n=e.geometry)||void 0===n||null===(n=n.location)||void 0===n?void 0:n.lng())||0}}}),E([])}})})};return(0,l.useEffect)(function(){k()},[]),(0,l.useEffect)(function(){R()},[t,R]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(s(),{id:d.Z.__hash,children:d.Z}),(0,v.jsx)(s(),{id:h.__hash,children:h}),(0,v.jsx)(y.Z,{error:f,label:c,traits:T(T({},i),{},{variant:"address"}),variant:n,children:(0,v.jsx)("input",{"data-element":"input",id:"autocomplete-address",type:"text",ref:p,placeholder:"Enter address",value:S,name:"address",onChange:O,className:"jsx-".concat(d.Z.__hash," jsx-").concat(h.__hash)+" "+(a||"")})}),b.length>0&&(0,v.jsx)("div",{className:"jsx-".concat(d.Z.__hash," jsx-").concat(h.__hash)+" address-input--suggestions",children:(0,v.jsx)(_.Z,{options:b.map(function(e){return{label:e.structured_formatting.main_text,value:e.place_id,secondary:e.structured_formatting.secondary_text}}),onSelect:I})})]})}},82889:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(21378),i=r.n(n),o=r(67294),a=[".select.jsx-1915958787{cursor:pointer;position:relative;display:block;-webkit-align-items:inherit;-webkit-box-align:inherit;-ms-flex-align:inherit;align-items:inherit;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;outline:none;border:none;width:100%;height:inherit;gap:inherit;text-transform:inherit;font-size:inherit;font-weight:inherit;border-radius:var(--border-radius);}",".select.jsx-1915958787:hover{color:inherit;}",".select-sm.jsx-1915958787{width:-webkit-max-content;width:-moz-max-content;width:max-content;}",".select.nav-item.jsx-1915958787{background-color:transparent;}","@media (max-width:900px){.select.nav-item.jsx-1915958787{width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}}",".select.flat.jsx-1915958787{background-color:transparent;}","@media (max-width:900px){.select.flat.jsx-1915958787{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}}",".select.jsx-1915958787 .select__selected.jsx-1915958787{color:inherit;height:inherit;line-height:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:7px;white-space:nowrap;cursor:pointer;--ui-icon-height:inherit;--ui-icon-width:inherit;text-transform:capitalize;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;}",".select.jsx-1915958787 .select__selected.nav-item.jsx-1915958787{width:100%;}",".select.jsx-1915958787 .select__options.jsx-1915958787{left:0;position:absolute;overflow:hidden;top:calc(100% + 3px);box-shadow:var(--box-shadow);border-radius:var(--border-radius);z-index:3;min-width:100%;width:-webkit-max-content;width:-moz-max-content;width:max-content;}",".select.jsx-1915958787 .select__options.jsx-1915958787 .left.jsx-1915958787{left:auto;right:0;}",".select.jsx-1915958787 .select__options.left.jsx-1915958787{left:auto;right:0;}",".select.jsx-1915958787 .select__options.jsx-1915958787 .right.jsx-1915958787{left:0;right:auto;}",".select.jsx-1915958787 .select__options.right.jsx-1915958787{left:0;right:auto;}",".select.up.jsx-1915958787 .select__options.jsx-1915958787{bottom:100%;}",".select.down.jsx-1915958787 .select__options.jsx-1915958787{top:calc(100% + 5px);}"];a.__hash="1915958787";var s=a,c=r(13190),u=r(98067),l=r(96486),d=r(36946),f=r(85893),h=function(e){var t=e.options,r=e.size,n=e.onSelect,a=e.openDirection,h=void 0===a?"down":a,p=e.onToggle,m=e.title,b=e.variant,g=e.openState,y=e.value,_=e.label,v=e.traits,E=e.search,T=e.setSearch,A=e.overlay,S=(0,o.useState)("closed"),x=S[0],C=S[1],w=(0,o.useState)(""),N=w[0],M=w[1],k=(0,d.dd)(),O=k.isModalOpen,R=k.openModal,I=k.closeModal,P=t,D=!!(null==P?void 0:P.every(function(e){return void 0!==e})),$=(0,o.useState)(null),L=$[0],F=$[1],j="open"===x,U=function(e){F(e),n&&n(e),"disabled"!==b&&C("closed")},B=function(){D&&C("closed"===x?"open":"closed"),A&&("closed"==x?"object"==typeof A&&null!=A&&A.zIndex?R({zIndex:null==A?void 0:A.zIndex}):R(null):I())},H=function(e){return"object"==typeof e&&!o.isValidElement(e)},z=function(e,t){return null!=t&&t.includes("nav-item")?j?"fa-xmark":null==v?void 0:v.afterIcon:j?"fa-xmark":"fa-chevron-".concat(h)};return(0,o.useEffect)(function(){void 0!==g&&C(g)},[g]),(0,o.useEffect)(function(){N!==m&&("string"==typeof m&&M(m),"object"==typeof m&&"text"in m&&void 0!==m.text&&M(m.text))},[m,n]),(0,o.useEffect)(function(){j&&p&&p(j)},[x,O]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:s.__hash,children:s}),(0,f.jsxs)("div",{style:null!=v&&v.width?{width:"".concat(v.width,"px")}:{},onClick:B,className:"jsx-".concat(s.__hash)+" "+"select ".concat(h," ").concat(r?" select-".concat(r):""),children:[(0,f.jsx)(u.Z,{"data-element":"select",type:"button",label:_,size:r,variant:D&&"disabled"!==b?b:"select__disabled",value:"string"==typeof y?(0,l.capitalize)(y):N||L||"Select",traits:{beforeIcon:H(m)&&m.preIcon?m.preIcon:void 0,afterIcon:z(v,b)}}),j&&"disabled"!==b&&(0,f.jsx)("div",{className:"jsx-".concat(s.__hash)+" "+"select__options ".concat(h," ").concat(b?" "+b:""),children:(0,f.jsx)(c.Z,{size:r,traits:v,search:E,setSearch:T,options:t,onSelect:U,variant:D?b:"disabled",value:y})})]})]})}},77734:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(21378),i=r.n(n),o=r(67294),a=[".toggle-switch.jsx-371548259{position:relative;display:inline-block;width:40px;height:20px;}",".toggle-switch.jsx-371548259 input.jsx-371548259 [type=checkbox].jsx-371548259{opacity:0;width:0;height:0;}",".slider.jsx-371548259{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:0.4s;transition:0.4s;border-radius:20px;}",'.slider.jsx-371548259:before{position:absolute;content:"";height:16px;width:16px;left:2px;bottom:2px;background-color:var(--white);-webkit-transition:0.4s;transition:0.4s;border-radius:50%;}',"input.jsx-371548259:checked+.slider.jsx-371548259:not(.slider--disabled){background-color:#2196f3;}","input.jsx-371548259:checked+.slider.slider--disabled.jsx-371548259{cursor:not-allowed;background-color:var(--gray-40);-webkit-filter:blur(1px);filter:blur(1px);}","input.jsx-371548259:checked+.slider.slider--disabled.jsx-371548259:before{background-color:var(--gray-50);}","input.jsx-371548259:checked+.slider.jsx-371548259:before{-webkit-transform:translateX(20px);-ms-transform:translateX(20px);transform:translateX(20px);}"];a.__hash="371548259";var s=a,c=r(12094),u=r(85893),l=function(e){var t=e.value,r=e.onChange,n=e.name,a=e.label,l=e.disabled,d=(0,o.useRef)(null),f=function(e){var t={target:{name:n,value:e.target.checked}};!l&&r&&r(t)};return(0,o.useEffect)(function(){d.current&&!0==t?d.current.setAttribute("checked",""):d.current.removeAttribute("checked")},[t,null==d?void 0:d.current]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i(),{id:s.__hash,children:s}),(0,u.jsx)(c.Z,{variant:"checkbox",label:a,children:(0,u.jsxs)("label",{className:"jsx-".concat(s.__hash)+" toggle-switch",children:[(0,u.jsx)("input",{disabled:l,ref:d,name:n,type:"checkbox",onChange:f,className:"jsx-".concat(s.__hash)}),(0,u.jsx)("span",{className:"jsx-".concat(s.__hash)+" "+"slider ".concat(l&&" slider--disabled"||"")})]})})]})}},38903:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(16835),i=r(59499),o=r(21378),a=r.n(o),s=r(67294),c=r(98067),u=[".d-flex.jsx-3498034248,input.jsx-3498034248,.form.jsx-3498034248 .form-field__readonly--value.jsx-3498034248 .object-item.jsx-3498034248,.form.jsx-3498034248 .form-field__readonly--value.jsx-3498034248 .object-list.jsx-3498034248,.form.jsx-3498034248 .form-field__readonly--value.jsx-3498034248,.form.jsx-3498034248 .form-field__readonly--label.jsx-3498034248,.form__title.jsx-3498034248,.form.jsx-3498034248,.d-flex-col.jsx-3498034248,.form.jsx-3498034248 .form-field.jsx-3498034248,.form.jsx-3498034248 .form-field__readonly.jsx-3498034248{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".d-flex-col.jsx-3498034248,.form.jsx-3498034248 .form-field.jsx-3498034248,.form.jsx-3498034248 .form-field__readonly.jsx-3498034248{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);}",".form.jsx-3498034248{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;height:auto;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;}",".form--mini.jsx-3498034248{padding:var(--s-8) var(--s-4);width:var(--s-4-width);gap:var(--s-10);}",".form--mini__submit.jsx-3498034248{border-top:unset !important;}",".form--card.jsx-3498034248{background-color:var(--gray-90);border-radius:var(--border-radius);box-shadow:var(--box-shadow);padding:var(--s-4);width:var(--s-4-width);}",".form__title.jsx-3498034248{text-transform:capitalize;font-size:var(--s-2);height:var(--s-element);line-height:1;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding-bottom:var(--s-9);}",".form.jsx-3498034248 .form-field.jsx-3498034248,.form.jsx-3498034248 .form-field__readonly.jsx-3498034248{width:100%;margin:0 0 var(--s-4);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}",".form.jsx-3498034248 .form-field__readonly.jsx-3498034248{border:solid 1px transparent;overflow:hidden;color:var(--gray-60);--ui-icon-color:var(--gray-60);gap:0;border:solid 1px transparent;}",".form.jsx-3498034248 .form-field__readonly--label.jsx-3498034248{text-indent:var(--s-9);text-transform:uppercase;line-height:2;font-weight:bold;font-size:var(--s-8);-webkit-letter-spacing:3px;-moz-letter-spacing:3px;-ms-letter-spacing:3px;-webkit-letter-spacing:3px;-moz-letter-spacing:3px;-ms-letter-spacing:3px;letter-spacing:3px;}",".form.jsx-3498034248 .form-field__readonly--value.jsx-3498034248{text-indent:var(--s-9);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;min-height:var(--s-element);}",".form.jsx-3498034248 .form-field__readonly--value.jsx-3498034248 .object-list.jsx-3498034248{background-color:var(--gray-100);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;padding:var(--s-9) 0;white-space:wrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--s-8);}",".form.jsx-3498034248 .form-field__readonly--value.jsx-3498034248 .object-item.jsx-3498034248{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;color:var(--green-20);}",".form.jsx-3498034248 .form-field__readonly--value.jsx-3498034248 .object-item--key.jsx-3498034248{color:var(--gray-30);}",".form.jsx-3498034248 .form-field__readonly.jsx-3498034248:hover{border-radius:var(--border-radius);border-color:var(--gray-50);background-color:var(--gray-80);color:var(--gray-20);--ui-icon-color:var(--gray-20);}",".form.jsx-3498034248 .form-field__readonly.jsx-3498034248:hover .form-field__readonly--value.jsx-3498034248{color:var(--gray-80);--ui-icon-color:var(--gray-80);background-color:var(--gray-60);}",".form__submit.jsx-3498034248{border-style:outset;border-color:transparent;width:100%;margin-top:var(--s-4);padding-top:var(--s-4);}",".form__submit--mini.jsx-3498034248{margin-top:0;padding-top:var(--s-9);border-top:unset !important;}","input.jsx-3498034248{width:var(--s-element);height:100%;text-align:center;border:none;outline:none;background-color:transparent;color:inherit;--ui-icon-color:inherit;}","input.jsx-3498034248:focus{color:inherit;}"];u.__hash="3498034248";var l=u,d=r(10577),f=r(82889),h=r(85153),p=r(77734),m=r(12094),b=[".d-flex.jsx-2466560169,.add-field.jsx-2466560169{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".add-field-form.jsx-2466560169{width:100%;}",".add-field.jsx-2466560169{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}"];b.__hash="2466560169";var g=b,y=r(36946),_=r(85893),v=function(e){var t=e.onAddField,r=(0,s.useState)(!0),n=r[0],i=r[1],o=(0,y.dd)(),c=o.openModal;o.closeModal;var u=(0,s.useState)(),l=u[0],f=u[1],h=function(e){f({target:{name:e.target.value?e.target.value.replaceAll(" ","_"):"add-field",value:e.target.value}})};(0,s.useEffect)(function(){},[h]);var p=function(){var e,t,r;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a(),{id:g.__hash,children:g}),(0,_.jsx)("div",{className:"jsx-".concat(g.__hash)+" add-field-form",children:(0,_.jsx)(x,{variant:"mini",onChange:h,onSubmit:m,fields:[{name:(null==l||null===(e=l.target)||void 0===e?void 0:e.name)||"add-field",value:(null==l||null===(t=l.target)||void 0===t?void 0:t.value)||"",label:(null==l||null===(r=l.target)||void 0===r?void 0:r.value)||"new field name"}]})})]})},m=function(e){n&&(c((0,_.jsx)(p,{})),i(!n)),n||t(l)};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a(),{id:g.__hash,children:g}),(0,_.jsx)("div",{className:"jsx-".concat(g.__hash)+" add-field",children:(0,_.jsx)(d.Z,{variant:"link",traits:{afterIcon:"fas-plus"},onClick:m,children:"add field"})})]})},E=r(88566),T=r(98014);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function S(e){for(var t=1;to&&(e[t.name]="*".concat(t.name," is too long")))}}),I(e),0==Object.keys(e).length?o(i):u&&u(e)}},L=function(e,t,r){if(r&&A){var n=function(){var e=Number(t.value);return"minus"==r?t.min&&e<=t.min?e=t.min:e-=1:t.max&&e>=t.max?e=t.max:e+=1,e};return A({target:{name:t.name,value:n()}})}var i=e.target,o=i.name,a=i.value;return a&&"0"==String(a).charAt(0)&&(a=a.slice(1,a.length)),null!=t&&t.min&&Number(a)<=(null==t?void 0:t.min)&&(a=String(t.min)),null!=t&&t.max&&Number(a)>=(null==t?void 0:t.max)&&(a=String(t.max)),D({target:{name:o,value:a}})},F=null===(t=Array(i))||void 0===t?void 0:t.length;return((0,s.useEffect)(function(){P()},[i,C,x]),i)?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a(),{id:l.__hash,children:l}),b&&(0,_.jsx)("div",{className:"jsx-".concat(l.__hash)+" form__title",children:b}),(0,_.jsxs)("div",{className:"jsx-".concat(l.__hash)+" "+"form".concat(r&&" form--".concat(r)||""),children:[F&&i.map(function(e,t){return e.name&&(null==e?void 0:e.readonly)&&(0,_.jsxs)("div",{style:null!=e&&e.width?{width:"calc(".concat(e.width," - 8px)")}:{},className:"jsx-".concat(l.__hash)+" form-field__readonly",children:[(0,_.jsx)("div",{className:"jsx-".concat(l.__hash)+" form-field__readonly--label",children:null==e?void 0:e.label}),(0,_.jsx)("div",{className:"jsx-".concat(l.__hash)+" form-field__readonly--value",children:"object"!=typeof e.value&&"".concat(null==e?void 0:e.value)||e.value&&(0,_.jsx)("div",{className:"jsx-".concat(l.__hash)+" object-list",children:Object.entries(e.value).map(function(e){var t=(0,n.Z)(e,2),r=t[0],i=t[1];return(0,_.jsxs)("span",{className:"jsx-".concat(l.__hash)+" object-item",children:[(0,_.jsxs)("span",{className:"jsx-".concat(l.__hash)+" object-item--key",children:[r,":"]}),(0,_.jsx)("span",{className:"jsx-".concat(l.__hash)+" object-item--value",children:JSON.stringify(i).replaceAll('"',"")})]},r)})})})]},t)}),F&&i.map(function(e,t){return e.name&&!e.readonly&&(0,_.jsxs)("div",{style:"string"==typeof(null==e?void 0:e.width)?{width:"calc(".concat(e.width," - 6px)")}:{},className:"jsx-".concat(l.__hash)+" form-field",children:["address"==e.name&&(0,_.jsx)("div",{className:"jsx-".concat(l.__hash)+" s-w-100",children:(0,_.jsx)(E.Z,{variant:(null==e?void 0:e.error)?"invalid":r||(null==e?void 0:e.variant),label:"address",address:e.value,error:null==e?void 0:e.error,setAddress:function(t){return D(t,e.constraints)}})}),"text"==(0,T.Ql)(null==e?void 0:e.value)&&"address"!==e.name&&(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(c.Z,{autoComplete:e.autoComplete,label:e.label,variant:(null==e?void 0:e.error)?"invalid":r||(null==e?void 0:e.variant),disabled:null==e?void 0:e.disabled,error:e.error,type:e.type,required:e.required,traits:e.traits,name:e.name,placeholder:e.placeholder,value:null==e?void 0:e.value,onChange:function(t){return D(t,e.constraints)}})}),"checkbox"==(0,T.Ql)(null==e?void 0:e.value)&&(0,_.jsx)(p.Z,{label:e.label,name:e.name,disabled:null==e?void 0:e.disabled,onChange:function(t){return D(t,null==e?void 0:e.constraints)},value:!!(null==e?void 0:e.value)}),(null==e?void 0:e.type)=="select"&&(null==e?void 0:e.options)!==void 0&&(0,_.jsx)(f.Z,{variant:null==e?void 0:e.variant,traits:e.traits,options:null==e?void 0:e.options,label:e.name,value:String(null==e?void 0:e.value),onSelect:function(t){return D({target:{name:e.name,value:t}},e.constraints)}}),"pill"==e.type&&(0,_.jsx)(m.Z,{label:null!=e&&e.error?"".concat(e.label," *").concat(e.error,"*"):e.label,variant:e.error&&"invalid"||!!((null==e?void 0:e.min)&&e.value==e.min||e.max&&e.value==e.max)&&"bump pill"||"pill",traits:{beforeIcon:{icon:"fas-minus",onClick:function(){return L(void 0,e,"minus")}},afterIcon:{icon:"fas-plus",onClick:function(){return L(void 0,e,"plus")}}},children:(0,_.jsx)("input",{name:e.name,type:"tel",min:null==e?void 0:e.min,max:null==e?void 0:e.max,value:isNaN(Number(e.value))?"0":String(e.value),placeholder:null==e?void 0:e.placeholder,onChange:function(t){return L(t,e,void 0)},className:"jsx-".concat(l.__hash)})})]},t)}),!F&&(0,_.jsx)(h.Z,{position:"relative"}),w&&(0,_.jsx)(v,{onAddField:w}),(0,_.jsx)("div",{className:"jsx-".concat(l.__hash)+" "+"form__submit ".concat(r&&" form__submit--".concat(r)||""),children:o&&(0,_.jsx)(d.Z,{onClick:$,traits:{afterIcon:y},disabled:C||!M,variant:!C&&M&&"glow",type:"submit",busy:!0==x,children:g||"Submit"})})]})]}):(0,_.jsx)("div",{className:"error",children:"No form fields"})}},98014:function(e,t,r){"use strict";r.d(t,{PI:function(){return n},Ql:function(){return i}});var n=function(e,t){return(e&&Object(e).filter(function(e){return e.name==t}))[0]},i=function(e){var t="text";switch(typeof e){case"number":t="tel";break;case"boolean":t="checkbox"}return t}},55140:function(e,t,r){"use strict";r.d(t,{a:function(){return S}});var n=r(59499),i=r(16835),o=r(50029),a=r(92777),s=r(82262),c=r(45959),u=r(63553),l=r(37247),d=r(21378),f=r.n(d),h=r(64687),p=r.n(h),m=r(59670),b=r(67294),g=[".d-flex.jsx-657283869,.ui-icon__badge.jsx-657283869,.iconGlow.jsx-657283869,div.jsx-657283869{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}","div.jsx-657283869{width:var(--ui-icon-width,var(--ui-icon-size,20px));height:var(--ui-icon-height,var(--ui-icon-size,20px));color:var(--ui-icon-color,#666);position:relative;overflow:visible;}","div.jsx-657283869 svg.jsx-657283869{display:block;width:100%;height:100%;}","@-webkit-keyframes glow-jsx-657283869{0%{-webkit-filter:drop-shadow(0 0 5px var(--primary-10));filter:drop-shadow(0 0 5px var(--primary-10));}100%{-webkit-filter:drop-shadow(0 0 20px var(--primary-10));filter:drop-shadow(0 0 20px var(--primary-10));}}","@keyframes glow-jsx-657283869{0%{-webkit-filter:drop-shadow(0 0 5px var(--primary-10));filter:drop-shadow(0 0 5px var(--primary-10));}100%{-webkit-filter:drop-shadow(0 0 20px var(--primary-10));filter:drop-shadow(0 0 20px var(--primary-10));}}","@-webkit-keyframes spin-jsx-657283869{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}}","@keyframes spin-jsx-657283869{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}}",".spinner.jsx-657283869{-webkit-animation:spin-jsx-657283869 0.7s forwards infinite ease-in-out;animation:spin-jsx-657283869 0.7s forwards infinite ease-in-out;}",".iconGlow.jsx-657283869{-webkit-animation:glow-jsx-657283869 1.5s infinite ease-in-out alternate;animation:glow-jsx-657283869 1.5s infinite ease-in-out alternate;width:inherit;height:inherit;}",".iconGlow.jsx-657283869:hover{-webkit-animation:glow-jsx-657283869 1.5s ease-in-out infinite alternate;animation:glow-jsx-657283869 1.5s ease-in-out infinite alternate;}",".ui-icon__badge.jsx-657283869{position:absolute;top:calc(var(--s-9) * -1);right:var(--s-12);background-color:var(--red-50);color:white;border-radius:50%;font-size:var(--s-8);line-height:1;width:auto;aspect-ratio:1;text-align:center;}"];g.__hash="657283869";var y=g,_=r(85893);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function E(e){for(var t=1;t").concat(this.getSvgPathElement(e),"")}this.setState({innerHtml:t})}},{key:"clearIcon",value:function(){this.setState({innerHtml:""})}},{key:"getSvgPathElement",value:function(e){var t=Object.entries(e.stroke?{"stroke-linecap":e.stroke.lineCap,"stroke-linejoin":e.stroke.lineJoin,"stroke-width":e.stroke.width,d:e.path}:{d:e.path}).map(function(e){var t=(0,i.Z)(e,2),r=t[0],n=t[1];return"".concat(r,'="').concat(n,'"')}).join(" ");return"")}},{key:"render",value:function(){var e=this.props,t=e.glow,r=e.spin,n=e.badge,i=e.onClick,o=this.state,a=o.innerHtml,s=o.iconStyles,c="ui-icon";t&&(c+="boolean"==typeof t?" iconGlow":" ".concat(t)),r&&(c+=" spinner");var u=E(E({},s),t?{textShadow:"0 0 5px ".concat(s.color||"currentColor")}:{}),l=n&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(f(),{id:y.__hash,children:y}),(0,_.jsx)("div",{className:"jsx-".concat(y.__hash)+" ui-icon__badge",children:n})]});return n?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(f(),{id:y.__hash,children:y}),(0,_.jsxs)("div",{className:"jsx-".concat(y.__hash)+" "+(c||""),children:[(0,_.jsx)("div",{onClick:i,style:u,dangerouslySetInnerHTML:{__html:a},className:"jsx-".concat(y.__hash)}),l]})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(f(),{id:y.__hash,children:y}),(0,_.jsx)("div",{onClick:i,style:u,dangerouslySetInnerHTML:{__html:a},className:"jsx-".concat(y.__hash)+" "+(c||"")})]})}}]),r}(b.Component)},85153:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(21378),i=r.n(n),o=[".d-flex.jsx-2298412402,.ui-loader__text.jsx-2298412402,.ui-loader__icon-content.jsx-2298412402,.ui-loader--content.jsx-2298412402,.ui-loader.jsx-2298412402{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".ui-loader.jsx-2298412402{width:100%;--ui-icon-color:var(--gray-10-o);color:var(--gray-50);height:100%;}",".ui-loader--content.jsx-2298412402{height:100%;width:100%;gap:var(--font-size,var(--s-1));-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}",".ui-loader__icon.jsx-2298412402{-webkit-flex:1;-ms-flex:1;flex:1;margin-top:var(--font-size,var(--s-9));width:-webkit-max-content;width:-moz-max-content;width:max-content;}",".ui-loader__icon-content.jsx-2298412402{overflow:visible;-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;width:100%;height:100%;--ui-icon-width:var(--icon-size,150px);--ui-icon-height:var(--icon-size,150px);}",".ui-loader__text.jsx-2298412402{width:100%;line-height:1;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;white-space:nowrap;font-size:var(--font-size,var(--s-5));--ui-icon-size:var(--font-size,var(--s-5));text-transform:uppercase;--ui-icon-color:var(--primary-50);-webkit-flex:1;-ms-flex:1;flex:1;gap:var(--s-9);}"];o.__hash="2298412402";var a=o,s=r(55140);r(67294);var c=r(23992),u=r(85893),l=function(e){var t=e.text,r=e.dots,n=void 0===r||r,o=e.height,l=e.position,d=e.width,f=e.fontSize,h=t||"string"==typeof t?t:"Loading",p=c.Z.merchant.name,m={width:d,height:o,position:l,fontSize:f};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i(),{id:a.__hash,children:a}),(0,u.jsx)("div",{style:m,className:"jsx-".concat(a.__hash)+" ui-loader",children:(0,u.jsxs)("div",{className:"jsx-".concat(a.__hash)+" ui-loader--content",children:[(0,u.jsx)("div",{className:"jsx-".concat(a.__hash)+" ui-loader__icon",children:(0,u.jsx)("div",{className:"jsx-".concat(a.__hash)+" ui-loader__icon-content",children:(0,u.jsx)(s.a,{icon:"".concat(p,"-logo")})})}),(0,u.jsxs)("div",{className:"jsx-".concat(a.__hash)+" "+"ui-loader__text".concat(!1===n?" ui-loader__text-no-dots":""),children:[h,n&&(0,u.jsx)(s.a,{spin:!0,icon:"spinner"})]})]})})]})}},59131:function(e,t,r){"use strict";r.d(t,{Z:function(){return u3}});var n,i,o,a,s,c,u,l,d,f,h,p,m,b,g,y,_={};r.r(_),r.d(_,{attentionMarkers:function(){return rW},contentInitial:function(){return rH},disable:function(){return rZ},document:function(){return rB},flow:function(){return rV},flowInitial:function(){return rz},insideSpan:function(){return rq},string:function(){return rG},text:function(){return rY}});var v={};r.r(v),r.d(v,{boolean:function(){return n3},booleanish:function(){return n4},commaOrSpaceSeparated:function(){return n7},commaSeparated:function(){return n9},number:function(){return n5},overloadedBoolean:function(){return n6},spaceSeparated:function(){return n8}});var E=r(59499),T=r(4730),A=r(67294),S=r(70529);function x(e){return e&&"object"==typeof e?"position"in e||"type"in e?w(e.position):"start"in e||"end"in e?w(e):"line"in e||"column"in e?C(e):"":""}function C(e){return N(e&&e.line)+":"+N(e&&e.column)}function w(e){return C(e&&e.start)+"-"+C(e&&e.end)}function N(e){return e&&"number"==typeof e?e:1}class M extends Error{constructor(e,t,r){let n=[null,null],i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(r=t,t=void 0),"string"==typeof r){let e=r.indexOf(":");-1===e?n[1]=r:(n[0]=r.slice(0,e),n[1]=r.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=x(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=n[0],this.ruleId=n[1],this.file,this.actual,this.expected,this.url,this.note}}M.prototype.file="",M.prototype.name="",M.prototype.reason="",M.prototype.message="",M.prototype.stack="",M.prototype.fatal=null,M.prototype.column=null,M.prototype.line=null,M.prototype.source=null,M.prototype.ruleId=null,M.prototype.position=null;let k={basename:O,dirname:R,extname:I,join:P,sep:"/"};function O(e,t){let r;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');L(e);let n=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.charCodeAt(o)){if(r){n=o+1;break}}else i<0&&(r=!0,i=o+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.charCodeAt(o)){if(r){n=o+1;break}}else a<0&&(r=!0,a=o+1),s>-1&&(e.charCodeAt(o)===t.charCodeAt(s--)?s<0&&(i=o):(s=-1,i=a));return n===i?i=a:i<0&&(i=e.length),e.slice(n,i)}function R(e){let t;if(L(e),0===e.length)return".";let r=-1,n=e.length;for(;--n;)if(47===e.charCodeAt(n)){if(t){r=n;break}}else t||(t=!0);return r<0?47===e.charCodeAt(0)?"/":".":1===r&&47===e.charCodeAt(0)?"//":e.slice(0,r)}function I(e){let t;L(e);let r=e.length,n=-1,i=0,o=-1,a=0;for(;r--;){let s=e.charCodeAt(r);if(47===s){if(t){i=r+1;break}continue}n<0&&(t=!0,n=r+1),46===s?o<0?o=r:1!==a&&(a=1):o>-1&&(a=-1)}return o<0||n<0||0===a||1===a&&o===n-1&&o===i+1?"":e.slice(o,n)}function P(...e){let t,r=-1;for(;++r0&&47===e.charCodeAt(e.length-1)&&(r+="/"),t?"/"+r:r}function $(e,t){let r,n,i="",o=0,a=-1,s=0,c=-1;for(;++c<=e.length;){if(c2){if((n=i.lastIndexOf("/"))!==i.length-1){n<0?(i="",o=0):o=(i=i.slice(0,n)).length-1-i.lastIndexOf("/"),a=c,s=0;continue}}else if(i.length>0){i="",o=0,a=c,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,c):i=e.slice(a+1,c),o=c-a-1;a=c,s=0}else 46===r&&s>-1?s++:s=-1}return i}function L(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let F=j;function j(){return"/"}function U(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function B(e){if("string"==typeof e)e=new URL(e);else if(!U(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return H(e)}function H(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,r=-1;for(;++rt.length;s&&t.push(i);try{a=e.apply(this,t)}catch(t){let e=t;if(s&&r)throw e;return i(e)}s||(a&&a.then&&"function"==typeof a.then?a.then(o,i):a instanceof Error?i(a):o(a))}function i(e,...n){r||(r=!0,t(e,...n))}function o(e){i(null,e)}}let et=en().freeze(),er={}.hasOwnProperty;function en(){let e;let t=J(),r=[],n={},i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=s,o.attachers=r,o.use=c,o.parse=u,o.stringify=l,o.run=d,o.runSync=f,o.process=h,o.processSync=p,o;function o(){let e=en(),t=-1;for(;++t{if(!e&&t&&r){let n=o.stringify(t,r);null==n||(eh(n)?r.value=n:r.result=n),a(e,r)}else a(e)})}r(null,t)}function p(e){let t;o.freeze(),ea("processSync",o.Parser),es("processSync",o.Compiler);let r=ed(e);return o.process(r,n),el("processSync","process",t),r;function n(e){t=!0,Z(e)}}}function ei(e,t){return"function"==typeof e&&e.prototype&&(eo(e.prototype)||t in e.prototype)}function eo(e){let t;for(t in e)if(er.call(e,t))return!0;return!1}function ea(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `Parser`")}function es(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `Compiler`")}function ec(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function eu(e){if(!Q(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function el(e,t,r){if(!r)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function ed(e){return ef(e)?e:new V(e)}function ef(e){return!!(e&&"object"==typeof e&&"message"in e&&"messages"in e)}function eh(e){return"string"==typeof e||K(e)}let ep={};function em(e,t){let r=t||ep;return eb(e,"boolean"!=typeof r.includeImageAlt||r.includeImageAlt,"boolean"!=typeof r.includeHtml||r.includeHtml)}function eb(e,t,r){if(ey(e)){if("value"in e)return"html"!==e.type||r?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eg(e.children,t,r)}return Array.isArray(e)?eg(e,t,r):""}function eg(e,t,r){let n=[],i=-1;for(;++io?0:o+t:t>o?o:t,r=r>0?r:0,n.length<1e4)(i=Array.from(n)).unshift(t,r),e.splice(...i);else for(r&&e.splice(t,r);a0?(e_(e,e.length,0,t),e):t}let eE={}.hasOwnProperty;function eT(e){let t={},r=-1;for(;++rn))return;let s=i.events.length,c=s;for(;c--;)if("exit"===i.events[c][0]&&"chunkFlow"===i.events[c][1].type){if(e){r=i.events[c][1].end;break}e=!0}for(g(a),o=s;ot;){let t=o[r];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),r=void 0,t=void 0,i.containerState._closeFlow=void 0}}function eL(e,t,r){return eN(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}let eF=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,ej=eZ(/[A-Za-z]/),eU=eZ(/[\dA-Za-z]/),eB=eZ(/[#-'*+\--9=?A-Z^-~]/);function eH(e){return null!==e&&(e<32||127===e)}let ez=eZ(/\d/),eV=eZ(/[\dA-Fa-f]/),eG=eZ(/[!-/:-@[-`{-~]/);function eY(e){return null!==e&&e<-2}function eq(e){return null!==e&&(e<0||32===e)}function eW(e){return -2===e||-1===e||32===e}function eZ(e){return t;function t(t){return null!==t&&e.test(String.fromCharCode(t))}}eZ(eF),eZ(/\s/);let eK={tokenize:eX,partial:!0};function eX(e,t,r){return n;function n(t){return eW(t)?eN(e,i,"linePrefix")(t):i(t)}function i(e){return null===e||eY(e)?t(e):r(e)}}function eQ(e){let t,r,n,i,o,a,s;let c={},u=-1;for(;++u=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}}let e6={tokenize:e5};function e5(e){let t=this,r=e.attempt(eK,n,e.attempt(this.parser.constructs.flowInitial,i,eN(e,e.attempt(this.parser.constructs.flow,i,e.attempt(e0,i)),"linePrefix")));return r;function n(n){if(null===n){e.consume(n);return}return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(n){if(null===n){e.consume(n);return}return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r}}let e8={resolveAll:tt()},e9=te("string"),e7=te("text");function te(e){return{tokenize:t,resolveAll:tt("text"===e?tr:void 0)};function t(t){let r=this,n=this.parser.constructs[e],i=t.attempt(n,o,a);return o;function o(e){return c(e)?i(e):a(e)}function a(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),s}function s(e){return c(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function c(e){if(null===e)return!0;let t=n[e],i=-1;if(t)for(;++i-1){let e=r[0];"string"==typeof e?r[0]=e.slice(i):r.shift()}a>0&&r.push(e[o].slice(0,a))}return r}function ta(e,t){let r,n=-1,i=[];for(;++n=3&&(null===o||eY(o))?(e.exit("thematicBreak"),t(o)):r(o)}function c(t){return t===n?(e.consume(t),i++,c):(e.exit("thematicBreakSequence"),eW(t)?eN(e,s,"whitespace")(t):s(t))}}let tu={name:"list",tokenize:tf,continuation:{tokenize:th},exit:tm},tl={tokenize:tb,partial:!0},td={tokenize:tp,partial:!0};function tf(e,t,r){let n=this,i=n.events[n.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(t){let i=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!n.containerState.marker||t===n.containerState.marker:ez(t)){if(n.containerState.type||(n.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(ts,r,u)(t):u(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(t)}return r(t)}function c(t){return ez(t)&&++a<10?(e.consume(t),c):(!n.interrupt||a<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),u(t)):r(t)}function u(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(eK,n.interrupt?r:l,e.attempt(tl,f,d))}function l(e){return n.containerState.initialBlankLine=!0,o++,f(e)}function d(t){return eW(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):r(t)}function f(r){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}}function th(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(eK,i,o);function i(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,eN(e,t,"listItemIndent",n.containerState.size+1)(r)}function o(r){return n.containerState.furtherBlankLines||!eW(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(td,t,a)(r))}function a(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,eN(e,e.attempt(tu,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}function tp(e,t,r){let n=this;return eN(e,i,"listItemIndent",n.containerState.size+1);function i(e){let i=n.events[n.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(e):r(e)}}function tm(e){e.exit(this.containerState.type)}function tb(e,t,r){let n=this;return eN(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(e){let i=n.events[n.events.length-1];return!eW(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)}}let tg={name:"blockQuote",tokenize:ty,continuation:{tokenize:t_},exit:tv};function ty(e,t,r){let n=this;return i;function i(t){if(62===t){let r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return r(t)}function o(r){return eW(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}}function t_(e,t,r){let n=this;return i;function i(t){return eW(t)?eN(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)}function o(n){return e.attempt(tg,t,r)(n)}}function tv(e){e.exit("blockQuote")}let tE=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;function tT(e){return null!==e&&(e<32||127===e)}function tA(e){return null!==e&&e<-2}function tS(e){return null!==e&&(e<0||32===e)}function tx(e){return t;function t(t){return null!==t&&e.test(String.fromCharCode(t))}}function tC(e,t,r,n,i,o,a,s,c){let u=c||Number.POSITIVE_INFINITY,l=0;return d;function d(t){return 60===t?(e.enter(n),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f):null===t||32===t||41===t||tT(t)?r(t):(e.enter(n),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(t))}function f(r){return 62===r?(e.enter(o),e.consume(r),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(r))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(s),f(t)):null===t||60===t||tA(t)?r(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function m(i){return!l&&(null===i||41===i||tS(i))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(i)):l999||null===u||91===u||93===u&&!a||94===u&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs?r(u):93===u?(e.exit(o),e.enter(i),e.consume(u),e.exit(i),e.exit(n),t):tN(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),d(u))}function d(t){return null===t||91===t||93===t||tN(t)||c++>999?(e.exit("chunkString"),l(t)):(e.consume(t),a||(a=!tM(t)),92===t?f:d)}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,d):d(t)}}tk(/[A-Za-z]/),tk(/[\dA-Za-z]/),tk(/[#-'*+\--9=?A-Z^-~]/),tk(/\d/),tk(/[\dA-Fa-f]/),tk(/[!-/:-@[-`{-~]/),tk(tw),tk(/\s/);let tR=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;function tI(e){return null!==e&&e<-2}function tP(e){return t;function t(t){return null!==t&&e.test(String.fromCharCode(t))}}function tD(e,t,r,n,i,o){let a;return s;function s(t){return 34===t||39===t||40===t?(e.enter(n),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,c):r(t)}function c(r){return r===a?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(o),u(r))}function u(t){return t===a?(e.exit(o),c(a)):null===t?r(t):tI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eN(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===a||null===t||tI(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?d:l)}function d(t){return t===a||92===t?(e.consume(t),l):l(t)}}tP(/[A-Za-z]/),tP(/[\dA-Za-z]/),tP(/[#-'*+\--9=?A-Z^-~]/),tP(/\d/),tP(/[\dA-Fa-f]/),tP(/[!-/:-@[-`{-~]/),tP(tR),tP(/\s/);let t$=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;function tL(e){return null!==e&&e<-2}function tF(e){return -2===e||-1===e||32===e}function tj(e){return t;function t(t){return null!==t&&e.test(String.fromCharCode(t))}}function tU(e,t){let r;return n;function n(i){return tL(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):tF(i)?eN(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}function tB(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}tj(/[A-Za-z]/),tj(/[\dA-Za-z]/),tj(/[#-'*+\--9=?A-Z^-~]/),tj(/\d/),tj(/[\dA-Fa-f]/),tj(/[!-/:-@[-`{-~]/),tj(t$),tj(/\s/);let tH={name:"definition",tokenize:tV},tz={tokenize:tG,partial:!0};function tV(e,t,r){let n;let i=this;return o;function o(t){return e.enter("definition"),a(t)}function a(t){return tO.call(i,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}function s(t){return(n=tB(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),c):r(t)}function c(t){return eq(t)?tU(e,u)(t):u(t)}function u(t){return tC(e,l,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(tz,d,d)(t)}function d(t){return eW(t)?eN(e,f,"whitespace")(t):f(t)}function f(o){return null===o||eY(o)?(e.exit("definition"),i.parser.defined.push(n),t(o)):r(o)}}function tG(e,t,r){return n;function n(t){return eq(t)?tU(e,i)(t):r(t)}function i(t){return tD(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return eW(t)?eN(e,a,"whitespace")(t):a(t)}function a(e){return null===e||eY(e)?t(e):r(e)}}let tY={name:"codeIndented",tokenize:tW},tq={tokenize:tZ,partial:!0};function tW(e,t,r){let n=this;return i;function i(t){return e.enter("codeIndented"),eN(e,o,"linePrefix",5)(t)}function o(e){let t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):r(e)}function a(t){return null===t?c(t):eY(t)?e.attempt(tq,a,c)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||eY(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),s)}function c(r){return e.exit("codeIndented"),t(r)}}function tZ(e,t,r){let n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):eY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eN(e,o,"linePrefix",5)(t)}function o(e){let o=n.events[n.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eY(e)?i(e):r(e)}}let tK={name:"headingAtx",tokenize:tQ,resolve:tX};function tX(e,t){let r,n,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(r={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},n={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},e_(e,o,i-o+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]])),e}function tQ(e,t,r){let n=0;return i;function i(t){return e.enter("atxHeading"),o(t)}function o(t){return e.enter("atxHeadingSequence"),a(t)}function a(t){return 35===t&&n++<6?(e.consume(t),a):null===t||eq(t)?(e.exit("atxHeadingSequence"),s(t)):r(t)}function s(r){return 35===r?(e.enter("atxHeadingSequence"),c(r)):null===r||eY(r)?(e.exit("atxHeading"),t(r)):eW(r)?eN(e,s,"whitespace")(r):(e.enter("atxHeadingText"),u(r))}function c(t){return 35===t?(e.consume(t),c):(e.exit("atxHeadingSequence"),s(t))}function u(t){return null===t||35===t||eq(t)?(e.exit("atxHeadingText"),s(t)):(e.consume(t),u)}}let tJ={name:"setextUnderline",tokenize:t1,resolveTo:t0};function t0(e,t){let r,n,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){r=o;break}"paragraph"===e[o][1].type&&(n=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let a={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function t1(e,t,r){let n;let i=this;return o;function o(t){let o,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){o="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),n=t,a(t)):r(t)}function a(t){return e.enter("setextHeadingLineSequence"),s(t)}function s(t){return t===n?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),eW(t)?eN(e,c,"lineSuffix")(t):c(t))}function c(n){return null===n||eY(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}}let t2=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],t3=["pre","script","style","textarea"],t4={name:"htmlFlow",tokenize:t9,resolveTo:t8,concrete:!0},t6={tokenize:re,partial:!0},t5={tokenize:t7,partial:!0};function t8(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function t9(e,t,r){let n,i,o,a,s;let c=this;return u;function u(e){return l(e)}function l(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),d}function d(a){return 33===a?(e.consume(a),f):47===a?(e.consume(a),i=!0,m):63===a?(e.consume(a),n=3,c.interrupt?t:$):ej(a)?(e.consume(a),o=String.fromCharCode(a),b):r(a)}function f(i){return 45===i?(e.consume(i),n=2,h):91===i?(e.consume(i),n=5,a=0,p):ej(i)?(e.consume(i),n=4,c.interrupt?t:$):r(i)}function h(n){return 45===n?(e.consume(n),c.interrupt?t:$):r(n)}function p(n){let i="CDATA[";return n===i.charCodeAt(a++)?(e.consume(n),a===i.length)?c.interrupt?t:N:p:r(n)}function m(t){return ej(t)?(e.consume(t),o=String.fromCharCode(t),b):r(t)}function b(a){if(null===a||47===a||62===a||eq(a)){let s=47===a,u=o.toLowerCase();return!s&&!i&&t3.includes(u)?(n=1,c.interrupt?t(a):N(a)):t2.includes(o.toLowerCase())?(n=6,s)?(e.consume(a),g):c.interrupt?t(a):N(a):(n=7,c.interrupt&&!c.parser.lazy[c.now().line]?r(a):i?y(a):_(a))}return 45===a||eU(a)?(e.consume(a),o+=String.fromCharCode(a),b):r(a)}function g(n){return 62===n?(e.consume(n),c.interrupt?t:N):r(n)}function y(t){return eW(t)?(e.consume(t),y):C(t)}function _(t){return 47===t?(e.consume(t),C):58===t||95===t||ej(t)?(e.consume(t),v):eW(t)?(e.consume(t),_):C(t)}function v(t){return 45===t||46===t||58===t||95===t||eU(t)?(e.consume(t),v):E(t)}function E(t){return 61===t?(e.consume(t),T):eW(t)?(e.consume(t),E):_(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),s=t,A):eW(t)?(e.consume(t),T):S(t)}function A(t){return t===s?(e.consume(t),s=null,x):null===t||eY(t)?r(t):(e.consume(t),A)}function S(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||eq(t)?E(t):(e.consume(t),S)}function x(e){return 47===e||62===e||eW(e)?_(e):r(e)}function C(t){return 62===t?(e.consume(t),w):r(t)}function w(t){return null===t||eY(t)?N(t):eW(t)?(e.consume(t),w):r(t)}function N(t){return 45===t&&2===n?(e.consume(t),R):60===t&&1===n?(e.consume(t),I):62===t&&4===n?(e.consume(t),L):63===t&&3===n?(e.consume(t),$):93===t&&5===n?(e.consume(t),D):eY(t)&&(6===n||7===n)?(e.exit("htmlFlowData"),e.check(t6,F,M)(t)):null===t||eY(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),N)}function M(t){return e.check(t5,k,F)(t)}function k(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||eY(t)?M(t):(e.enter("htmlFlowData"),N(t))}function R(t){return 45===t?(e.consume(t),$):N(t)}function I(t){return 47===t?(e.consume(t),o="",P):N(t)}function P(t){if(62===t){let r=o.toLowerCase();return t3.includes(r)?(e.consume(t),L):N(t)}return ej(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):N(t)}function D(t){return 93===t?(e.consume(t),$):N(t)}function $(t){return 62===t?(e.consume(t),L):45===t&&2===n?(e.consume(t),$):N(t)}function L(t){return null===t||eY(t)?(e.exit("htmlFlowData"),F(t)):(e.consume(t),L)}function F(r){return e.exit("htmlFlow"),t(r)}}function t7(e,t,r){let n=this;return i;function i(t){return eY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):r(t)}function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}function re(e,t,r){return n;function n(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(eK,t,r)}}let rt={tokenize:ri,partial:!0},rr={name:"codeFenced",tokenize:rn,concrete:!0};function rn(e,t,r){let n;let i=this,o={tokenize:E,partial:!0},a=0,s=0;return c;function c(e){return u(e)}function u(t){let r=i.events[i.events.length-1];return a=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,n=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}function l(t){return t===n?(s++,e.consume(t),l):s<3?r(t):(e.exit("codeFencedFenceSequence"),eW(t)?eN(e,d,"whitespace")(t):d(t))}function d(r){return null===r||eY(r)?(e.exit("codeFencedFence"),i.interrupt?t(r):e.check(rt,m,v)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(r))}function f(t){return null===t||eY(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(t)):eW(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eN(e,h,"whitespace")(t)):96===t&&t===n?r(t):(e.consume(t),f)}function h(t){return null===t||eY(t)?d(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||eY(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(t)):96===t&&t===n?r(t):(e.consume(t),p)}function m(t){return e.attempt(o,v,b)(t)}function b(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return a>0&&eW(t)?eN(e,y,"linePrefix",a+1)(t):y(t)}function y(t){return null===t||eY(t)?e.check(rt,m,v)(t):(e.enter("codeFlowValue"),_(t))}function _(t){return null===t||eY(t)?(e.exit("codeFlowValue"),y(t)):(e.consume(t),_)}function v(r){return e.exit("codeFenced"),t(r)}function E(e,t,r){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c}function c(t){return e.enter("codeFencedFence"),eW(t)?eN(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===n?(e.enter("codeFencedFenceSequence"),l(t)):r(t)}function l(t){return t===n?(o++,e.consume(t),l):o>=s?(e.exit("codeFencedFenceSequence"),eW(t)?eN(e,d,"whitespace")(t):d(t)):r(t)}function d(n){return null===n||eY(n)?(e.exit("codeFencedFence"),t(n)):r(n)}}}function ri(e,t,r){let n=this;return i;function i(t){return null===t?r(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)}function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}let ro=document.createElement("i");function ra(e){let t="&"+e+";";ro.innerHTML=t;let r=ro.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&r!==t&&r}let rs={name:"characterReference",tokenize:rc};function rc(e,t,r){let n,i;let o=this,a=0;return s;function s(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),c}function c(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),n=31,i=eU,l(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,i=eV,l):(e.enter("characterReferenceValue"),n=7,i=ez,l(t))}function l(s){if(59===s&&a){let n=e.exit("characterReferenceValue");return i!==eU||ra(o.sliceSerialize(n))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)}return i(s)&&a++1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;let d=Object.assign({},e[r][1].end),f=Object.assign({},e[l][1].start);rP(d,-s),rP(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[l][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[l][1].start)},n={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[l][1].start=Object.assign({},a.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ev(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ev(c,[["enter",n,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=ev(c,tn(t.parser.constructs.insideSpan.null,e.slice(r+1,l),t)),c=ev(c,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",n,t]]),e[l][1].end.offset-e[l][1].start.offset?(u=2,c=ev(c,[["enter",e[l][1],t],["exit",e[l][1],t]])):u=0,e_(e,r-1,l-r+3,c),l=r+c.length-u-2;break}}for(l=-1;++l13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(65535&r)==65535||(65535&r)==65534||r>1114111?"�":String.fromCharCode(r)}let r1=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function r2(e){return e.replace(r1,r3)}function r3(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){let e=r.charCodeAt(1),t=120===e||88===e;return r0(r.slice(t?2:1),t?16:10)}return ra(r)||e}let r4={}.hasOwnProperty,r6=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),r5(r)(rJ(rK(r).document().write(rQ()(e,t,!0))))};function r5(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(en),autolinkProtocol:N,autolinkEmail:N,atxHeading:s(J),blockQuote:s(W),characterEscape:N,characterReference:N,codeFenced:s(Z),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Z,c),codeText:s(K,c),codeTextData:N,data:N,codeFlowValue:N,definition:s(X),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Q),hardBreakEscape:s(ee),hardBreakTrailing:s(ee),htmlFlow:s(et,c),htmlFlowData:N,htmlText:s(et,c),htmlTextData:N,image:s(er),label:c,link:s(en),listItem:s(eo),listItemValue:p,listOrdered:s(ei,h),listUnordered:s(ei),paragraph:s(ea),reference:H,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(J),strong:s(es),thematicBreak:s(eu)},exit:{atxHeading:l(),atxHeadingSequence:A,autolink:l(),autolinkEmail:q,autolinkProtocol:Y,blockQuote:l(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:G,codeFenced:l(y),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:b,codeFlowValue:M,codeIndented:l(_),codeText:l(P),codeTextData:M,data:M,definition:l(),definitionDestinationString:T,definitionLabelString:v,definitionTitleString:E,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(R),htmlFlowData:M,htmlText:l(I),htmlTextData:M,image:l($),label:F,labelText:L,lineEnding:k,link:l(D),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:z,resourceDestinationString:j,resourceTitleString:U,resource:B,setextHeading:l(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:l(),thematicBreak:l()}};r9(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(e){let r={type:"root",children:[]},n={stack:[r],tokenStack:[],config:t,enter:u,exit:d,buffer:c,resume:f,setData:o,getData:a},s=[],l=-1;for(;++l0){let e=n.tokenStack[n.tokenStack.length-1];(e[1]||ne).call(n,void 0,e[0])}for(r.position={start:r8(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:r8(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},l=-1;++lr6(t,Object.assign({},this.data("settings"),e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))})}let nr=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;ni(/[A-Za-z]/);let nn=ni(/[\dA-Za-z]/);function ni(e){return t;function t(t){return null!==t&&e.test(String.fromCharCode(t))}}function no(e){let t=[],r=-1,n=0,i=0;for(;++r55295&&o<57344){let t=e.charCodeAt(r+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(n,r),encodeURIComponent(a)),n=r+i+1,a=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function na(e){let t=[],r=-1;for(;++r1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),c.length>0&&c.push({type:"text",value:" "}),c.push(t)}let u=i[i.length-1];if(u&&"element"===u.type&&"p"===u.tagName){let e=u.children[u.children.length-1];e&&"text"===e.type?e.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...c)}else i.push(...c);let l={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(n,l),t.push(l)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}ni(/[#-'*+\--9=?A-Z^-~]/),ni(/\d/),ni(/[\dA-Fa-f]/),ni(/[!-/:-@[-`{-~]/),ni(nr),ni(/\s/);let ns=function(e){if(null==e)return nf;if("string"==typeof e)return nl(e);if("object"==typeof e)return Array.isArray(e)?nc(e):nu(e);if("function"==typeof e)return nd(e);throw Error("Expected function, string, or object as test")};function nc(e){let t=[],r=-1;for(;++r":""))+")"})}return l;function l(){let u,l,d,f=[];if((!t||i(e,s,c[c.length-1]||null))&&(f=ny(r(e,c)))[0]===nm)return f;if(e.children&&f[0]!==nb)for(l=(n?e.children.length:-1)+o,d=c.concat(e);l>-1&&l-1?r.offset:null}}}function nS(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}let nx={}.hasOwnProperty;function nC(e){let t=Object.create(null);if(!e||!e.type)throw Error("mdast-util-definitions expected node");return n_(e,"definition",e=>{let r=nw(e.identifier);r&&!nx.call(t,r)&&(t[r]=e)}),r;function r(e){let r=nw(e);return r&&nx.call(t,r)?t[r]:null}}function nw(e){return String(e||"").toUpperCase()}function nN(e,t){let r;let n=String(t.identifier).toUpperCase(),i=no(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);-1===o?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,r=e.footnoteOrder.length):(e.footnoteCounts[n]++,r=o+1);let a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+i,id:e.clobberPrefix+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(r)}]};e.patch(t,s);let c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)}function nM(e,t){let r=e.footnoteById,n=1;for(;(n in r);)n++;let i=String(n);return r[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},nN(e,{type:"footnoteReference",identifier:i,position:t.position})}function nk(e,t){let r=t.referenceType,n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+n};let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let a=i[i.length-1];return a&&"text"===a.type?a.value+=n:i.push({type:"text",value:n}),i}function nO(e){let t=!1;if("list"===e.type){t=e.spread||!1;let r=e.children,n=-1;for(;!t&&++n1:t}let nI=9,nP=32;function nD(e){let t=String(e),r=/\r?\n|\r/g,n=r.exec(t),i=0,o=[];for(;n;)o.push(n$(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return o.push(n$(t.slice(i),i>0,!1)),o.join("")}function n$(e,t,r){let n=0,i=e.length;if(t){let t=e.codePointAt(n);for(;t===nI||t===nP;)n++,t=e.codePointAt(n)}if(r){let t=e.codePointAt(i-1);for(;t===nI||t===nP;)i--,t=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}let nL={blockquote:function(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)},break:function(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:"\n"}]},code:function(e,t){let r=t.value?t.value+"\n":"",n=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};n&&(i.className=["language-"+n]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},emphasis:function(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},footnoteReference:nN,footnote:nM,heading:function(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},html:function(e,t){if(e.dangerous){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}return null},imageReference:function(e,t){let r=e.definition(t.identifier);if(!r)return nk(e,t);let n={src:no(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(n.title=r.title);let i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){let r={src:no(t.url)};null!==t.alt&&void 0!==t.alt&&(r.alt=t.alt),null!==t.title&&void 0!==t.title&&(r.title=t.title);let n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)},inlineCode:function(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)},linkReference:function(e,t){let r=e.definition(t.identifier);if(!r)return nk(e,t);let n={href:no(r.url||"")};null!==r.title&&void 0!==r.title&&(n.title=r.title);let i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){let r={href:no(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);let n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},listItem:function(e,t,r){let n=e.all(t),i=r?nO(r):nR(t),o={},a=[];if("boolean"==typeof t.checked){let e;let r=n[0];r&&"element"===r.type&&"p"===r.tagName?e=r:(e={type:"element",tagName:"p",properties:{},children:[]},n.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s0){let n={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=nv(t.children[1]),a=nE(t.children[t.children.length-1]);o.line&&a.line&&(n.position={start:o,end:a}),i.push(n)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},tableRow:function(e,t,r){let n=r?r.children:void 0,i=0===(n?n.indexOf(t):1)?"th":"td",o=r&&"table"===r.type?r.align:void 0,a=o?o.length:t.children.length,s=-1,c=[];for(;++s{let t=String(e.identifier).toUpperCase();nj.call(i,t)||(i[t]=e)}),a;function o(e,t){if(e&&"data"in e&&e.data){let r=e.data;r.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=r.hName),"element"===t.type&&r.hProperties&&(t.properties={...t.properties,...r.hProperties}),"children"in t&&t.children&&r.hChildren&&(t.children=r.hChildren)}if(e){let r="type"in e?e:{position:e};nS(r)||(t.position={start:nv(r),end:nE(r)})}return t}function a(e,t,r,n){return Array.isArray(r)&&(n=r,r={}),o(e,{type:"element",tagName:t,properties:r||{},children:n||[]})}function s(e,t){return nz(a,e,t)}function c(e){return nV(a,e)}}function nB(e,t){e.position&&(t.position=nT(e))}function nH(e,t){let r=t;if(e&&e.data){let t=e.data.hName,n=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===r.type?r.tagName=t:r={type:"element",tagName:t,properties:{},children:[]}),"element"===r.type&&i&&(r.properties={...r.properties,...i}),"children"in r&&r.children&&null!=n&&(r.children=n)}return r}function nz(e,t,r){let n=t&&t.type;if(!n)throw Error("Expected node, got `"+t+"`");return nj.call(e.handlers,n)?e.handlers[n](e,t,r):e.passThrough&&e.passThrough.includes(n)?"children"in t?{...t,children:nV(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,r):nG(e,t)}function nV(e,t){let r=[];if("children"in t){let n=t.children,i=-1;for(;++i0&&r.push({type:"text",value:"\n"}),r}function nq(e,t){let r=nU(e,t),n=r.one(e,null),i=na(r);return i&&n.children.push({type:"text",value:"\n"},i),Array.isArray(n)?{type:"root",children:n}:n}var nW=function(e,t){return e&&"run"in e?nZ(e,t):nK(e||t)};function nZ(e,t){return(r,n,i)=>{e.run(nq(r,t),n,e=>{i(e)})}}function nK(e){return t=>nq(t,e)}var nX=r(45697);class nQ{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}function nJ(e,t){let r={},n={},i=-1;for(;++i"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ic=ia({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function iu(e,t){return t in e?e[t]:t}function il(e,t){return iu(e,t.toLowerCase())}let id=ia({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:il,properties:{xmlns:null,xmlnsXLink:null}}),ih=ia({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:n4,ariaAutoComplete:null,ariaBusy:n4,ariaChecked:n4,ariaColCount:n5,ariaColIndex:n5,ariaColSpan:n5,ariaControls:n8,ariaCurrent:null,ariaDescribedBy:n8,ariaDetails:null,ariaDisabled:n4,ariaDropEffect:n8,ariaErrorMessage:null,ariaExpanded:n4,ariaFlowTo:n8,ariaGrabbed:n4,ariaHasPopup:null,ariaHidden:n4,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:n8,ariaLevel:n5,ariaLive:null,ariaModal:n4,ariaMultiLine:n4,ariaMultiSelectable:n4,ariaOrientation:null,ariaOwns:n8,ariaPlaceholder:null,ariaPosInSet:n5,ariaPressed:n4,ariaReadOnly:n4,ariaRelevant:null,ariaRequired:n4,ariaRoleDescription:n8,ariaRowCount:n5,ariaRowIndex:n5,ariaRowSpan:n5,ariaSelected:n4,ariaSetSize:n5,ariaSort:null,ariaValueMax:n5,ariaValueMin:n5,ariaValueNow:n5,ariaValueText:null,role:null}}),ip=ia({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:il,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:n9,acceptCharset:n8,accessKey:n8,action:null,allow:null,allowFullScreen:n3,allowPaymentRequest:n3,allowUserMedia:n3,alt:null,as:null,async:n3,autoCapitalize:null,autoComplete:n8,autoFocus:n3,autoPlay:n3,blocking:n8,capture:null,charSet:null,checked:n3,cite:null,className:n8,cols:n5,colSpan:null,content:null,contentEditable:n4,controls:n3,controlsList:n8,coords:n5|n9,crossOrigin:null,data:null,dateTime:null,decoding:null,default:n3,defer:n3,dir:null,dirName:null,disabled:n3,download:n6,draggable:n4,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:n3,formTarget:null,headers:n8,height:n5,hidden:n3,high:n5,href:null,hrefLang:null,htmlFor:n8,httpEquiv:n8,id:null,imageSizes:null,imageSrcSet:null,inert:n3,inputMode:null,integrity:null,is:null,isMap:n3,itemId:null,itemProp:n8,itemRef:n8,itemScope:n3,itemType:n8,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:n3,low:n5,manifest:null,max:null,maxLength:n5,media:null,method:null,min:null,minLength:n5,multiple:n3,muted:n3,name:null,nonce:null,noModule:n3,noValidate:n3,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:n3,optimum:n5,pattern:null,ping:n8,placeholder:null,playsInline:n3,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:n3,referrerPolicy:null,rel:n8,required:n3,reversed:n3,rows:n5,rowSpan:n5,sandbox:n8,scope:null,scoped:n3,seamless:n3,selected:n3,shadowRootClonable:n3,shadowRootDelegatesFocus:n3,shadowRootMode:null,shape:null,size:n5,sizes:null,slot:null,span:n5,spellCheck:n4,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n5,step:null,style:null,tabIndex:n5,target:null,title:null,translate:null,type:null,typeMustMatch:n3,useMap:null,value:n4,width:n5,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:n8,axis:null,background:null,bgColor:null,border:n5,borderColor:null,bottomMargin:n5,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:n3,declare:n3,event:null,face:null,frame:null,frameBorder:null,hSpace:n5,leftMargin:n5,link:null,longDesc:null,lowSrc:null,marginHeight:n5,marginWidth:n5,noResize:n3,noHref:n3,noShade:n3,noWrap:n3,object:null,profile:null,prompt:null,rev:null,rightMargin:n5,rules:null,scheme:null,scrolling:n4,standby:null,summary:null,text:null,topMargin:n5,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n5,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:n3,disableRemotePlayback:n3,prefix:null,property:null,results:n5,security:null,unselectable:null}}),im=ia({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:iu,properties:{about:n7,accentHeight:n5,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n5,amplitude:n5,arabicForm:null,ascent:n5,attributeName:null,attributeType:null,azimuth:n5,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n5,by:null,calcMode:null,capHeight:n5,className:n8,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n5,diffuseConstant:n5,direction:null,display:null,dur:null,divisor:n5,dominantBaseline:null,download:n3,dx:null,dy:null,edgeMode:null,editable:null,elevation:n5,enableBackground:null,end:null,event:null,exponent:n5,externalResourcesRequired:null,fill:null,fillOpacity:n5,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:n9,g2:n9,glyphName:n9,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n5,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n5,horizOriginX:n5,horizOriginY:n5,id:null,ideographic:n5,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n5,k:n5,k1:n5,k2:n5,k3:n5,k4:n5,kernelMatrix:n7,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n5,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n5,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n5,overlineThickness:n5,paintOrder:null,panose1:null,path:null,pathLength:n5,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:n8,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n5,pointsAtY:n5,pointsAtZ:n5,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:n7,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:n7,rev:n7,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:n7,requiredFeatures:n7,requiredFonts:n7,requiredFormats:n7,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n5,specularExponent:n5,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n5,strikethroughThickness:n5,string:null,stroke:null,strokeDashArray:n7,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n5,strokeOpacity:n5,strokeWidth:null,style:null,surfaceScale:n5,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:n7,tabIndex:n5,tableValues:null,target:null,targetX:n5,targetY:n5,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:n7,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:n5,underlineThickness:n5,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n5,values:null,vAlphabetic:n5,vMathematical:n5,vectorEffect:null,vHanging:n5,vIdeographic:n5,version:null,vertAdvY:n5,vertOriginX:n5,vertOriginY:n5,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n5,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ib=nJ([ic,is,id,ih,ip],"html"),ig=nJ([ic,is,id,ih,im],"svg");function iy(e){if(e.allowedElements&&e.disallowedElements)throw TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{n_(t,"element",(t,r,n)=>{let i;let o=n;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&"number"==typeof r&&(i=!e.allowElement(t,r,o)),i&&"number"==typeof r)return e.unwrapDisallowed&&t.children?o.children.splice(r,1,...t.children):o.children.splice(r,1),r})}}var i_=r(82143);function iv(e){let t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}let iE=/^data[-\w.:]+$/i,iT=/-[a-z]/g,iA=/[A-Z]/g;function iS(e,t){let r=n0(t),n=t,i=n1;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&iE.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(iT,iC);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!iT.test(e)){let r=e.replace(iA,ix);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}i=ir}return new i(n,t)}function ix(e){return"-"+e.toLowerCase()}function iC(e){return e.charAt(1).toUpperCase()}let iw={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};function iN(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function iM(e){return e.join(" ").trim()}function ik(e){let t=[],r=String(e||""),n=r.indexOf(","),i=0,o=!1;for(;!o;){-1===n&&(n=r.length,o=!0);let e=r.slice(i,n).trim();(e||!o)&&t.push(e),i=n+1,n=r.indexOf(",",i)}return t}function iO(e,t){let r=t||{};return(""===e[e.length-1]?[...e,""]:e).join((r.padRight?" ":"")+","+(!1===r.padLeft?"":" ")).trim()}var iR=r(57848);let iI=["http","https","mailto","tel"];function iP(e){let t=(e||"").trim(),r=t.charAt(0);if("#"===r||"/"===r)return t;let n=t.indexOf(":");if(-1===n)return t;let i=-1;for(;++ii||-1!==(i=t.indexOf("#"))&&n>i?t:"javascript:void(0)"}let iD={}.hasOwnProperty,i$=new Set(["table","thead","tbody","tfoot","tr"]);function iL(e,t){let r;let n=[],i=-1;for(;++i0?A.createElement(h,u,d):A.createElement(h,u)}function ij(e){let t=-1;for(;++t for more info)`),delete iq[t]}let t=et().use(nt).use(e.remarkPlugins||[]).use(nW,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(iy,e),r=new V;"string"==typeof e.children?r.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);let n=t.runSync(t.parse(r),r);if("root"!==n.type)throw TypeError("Expected a `root` node");let i=A.createElement(A.Fragment,{},iL({options:e,schema:ib,listDepth:0},n));return e.className&&(i=A.createElement("div",{className:e.className},i)),i}iW.propTypes={children:nX.string,className:nX.string,allowElement:nX.func,allowedElements:nX.arrayOf(nX.string),disallowedElements:nX.arrayOf(nX.string),unwrapDisallowed:nX.bool,remarkPlugins:nX.arrayOf(nX.oneOfType([nX.object,nX.func,nX.arrayOf(nX.oneOfType([nX.bool,nX.string,nX.object,nX.func,nX.arrayOf(nX.any)]))])),rehypePlugins:nX.arrayOf(nX.oneOfType([nX.object,nX.func,nX.arrayOf(nX.oneOfType([nX.bool,nX.string,nX.object,nX.func,nX.arrayOf(nX.any)]))])),sourcePos:nX.bool,rawSourcePos:nX.bool,skipHtml:nX.bool,includeElementIndex:nX.bool,transformLinkUri:nX.oneOfType([nX.func,nX.bool]),linkTarget:nX.oneOfType([nX.func,nX.string]),transformImageUri:nX.func,components:nX.object};let iZ=-1,iK=0,iX=1,iQ=2,iJ=3,i0=4,i1=5,i2=6,i3=7,i4=8,i6="object"==typeof self?self:globalThis,i5=(e,t)=>{let r=(t,r)=>(e.set(r,t),t),n=i=>{if(e.has(i))return e.get(i);let[o,a]=t[i];switch(o){case iK:case iZ:return r(a,i);case iX:{let e=r([],i);for(let t of a)e.push(n(t));return e}case iQ:{let e=r({},i);for(let[t,r]of a)e[n(t)]=n(r);return e}case iJ:return r(new Date(a),i);case i0:{let{source:e,flags:t}=a;return r(new RegExp(e,t),i)}case i1:{let e=r(new Map,i);for(let[t,r]of a)e.set(n(t),n(r));return e}case i2:{let e=r(new Set,i);for(let t of a)e.add(n(t));return e}case i3:{let{name:e,message:t}=a;return r(new i6[e](t),i)}case i4:return r(BigInt(a),i);case"BigInt":return r(Object(BigInt(a)),i)}return r(new i6[o](a),i)};return n},i8=e=>i5(new Map,e)(0),i9="",{toString:i7}={},{keys:oe}=Object,ot=e=>{let t=typeof e;if("object"!==t||!e)return[iK,t];let r=i7.call(e).slice(8,-1);switch(r){case"Array":return[iX,i9];case"Object":return[iQ,i9];case"Date":return[iJ,i9];case"RegExp":return[i0,i9];case"Map":return[i1,i9];case"Set":return[i2,i9]}return r.includes("Array")?[iX,r]:r.includes("Error")?[i3,r]:[iQ,r]},or=([e,t])=>e===iK&&("function"===t||"symbol"===t),on=(e,t,r,n)=>{let i=(e,t)=>{let i=n.push(e)-1;return r.set(t,i),i},o=n=>{if(r.has(n))return r.get(n);let[a,s]=ot(n);switch(a){case iK:{let t=n;switch(s){case"bigint":a=i4,t=n.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([iZ],n)}return i([a,t],n)}case iX:{if(s)return i([s,[...n]],n);let e=[],t=i([a,e],n);for(let t of n)e.push(o(t));return t}case iQ:{if(s)switch(s){case"BigInt":return i([s,n.toString()],n);case"Boolean":case"Number":case"String":return i([s,n.valueOf()],n)}if(t&&"toJSON"in n)return o(n.toJSON());let r=[],c=i([a,r],n);for(let t of oe(n))(e||!or(ot(n[t])))&&r.push([o(t),o(n[t])]);return c}case iJ:return i([a,n.toISOString()],n);case i0:{let{source:e,flags:t}=n;return i([a,{source:e,flags:t}],n)}case i1:{let t=[],r=i([a,t],n);for(let[r,i]of n)(e||!(or(ot(r))||or(ot(i))))&&t.push([o(r),o(i)]);return r}case i2:{let t=[],r=i([a,t],n);for(let r of n)(e||!or(ot(r)))&&t.push(o(r));return r}}let{message:c}=n;return i([a,{name:s,message:c}],n)};return o},oi=(e,{json:t,lossy:r}={})=>{let n=[];return on(!(t||r),!!t,new Map,n)(e),n};var oo="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?i8(oi(e,t)):structuredClone(e):(e,t)=>i8(oi(e,t));let oa=/[#.]/g;function os(e,t){let r,n;let i=e||"",o={},a=0;for(;a-1&&ee)return{line:t+1,column:e-(t>0?r[t-1]:0)+1,offset:e}}}function i(e){let t=e&&e.line,n=e&&e.column;if("number"==typeof t&&"number"==typeof n&&!Number.isNaN(t)&&!Number.isNaN(n)&&t-1 in r){let e=(r[t-2]||0)+n-1||0;if(e>-1&&e=55296&&e<=57343}function oJ(e){return e>=56320&&e<=57343}function o0(e,t){return(e-55296)*1024+9216+t}function o1(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function o2(e){return e>=64976&&e<=65007||oZ.has(e)}!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(i=i||(i={}));let o3=65536;class o4{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=o3,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){let{line:t,col:r,offset:n}=this;return{code:e,startLine:t,endLine:t,startCol:r,endCol:r,startOffset:n,endOffset:n}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(oJ(t))return this.pos++,this._addGap(),o0(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,n.EOF;return this._err(i.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,n.EOF;let r=this.html.charCodeAt(t);return r===n.CARRIAGE_RETURN?n.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,n.EOF;let e=this.html.charCodeAt(this.pos);return e===n.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,n.LINE_FEED):e===n.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,oQ(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===n.LINE_FEED||e===n.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){o1(e)?this._err(i.controlCharacterInInputStream):o2(e)&&this._err(i.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(o=o||(o={}));var o5=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\ud835\udd04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\ud835\udd38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\ud835\udc9cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\ud835\udd05pf;쀀\ud835\udd39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\ud835\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\ud835\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\ud835\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\ud835\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\ud835\udd08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\ud835\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\ud835\udd09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\ud835\udd3dAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\ud835\udd0a;拙pf;쀀\ud835\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\ud835\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\ud835\udd40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\ud835\udd0dpf;쀀\ud835\udd41ǣ߇\0ߌr;쀀\ud835\udca5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\ud835\udd0epf;쀀\ud835\udd42cr;쀀\ud835\udca6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\ud835\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\ud835\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\ud835\udd10nusPlus;戓pf;쀀\ud835\udd44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\ud835\udd11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\ud835\udca9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\ud835\udd12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\ud835\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\ud835\udcaaash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\ud835\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\ud835\udcab;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\ud835\udd14pf;愚cr;쀀\ud835\udcac؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\ud835\udd16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\ud835\udd4aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\ud835\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\ud835\udd17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\ud835\udd4bipleDot;惛Āctዖዛr;쀀\ud835\udcafrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\ud835\udd18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\ud835\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\ud835\udcb0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\ud835\udd19pf;쀀\ud835\udd4dcr;쀀\ud835\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\ud835\udd1apf;쀀\ud835\udd4ecr;쀀\ud835\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\ud835\udd1b;䎞pf;쀀\ud835\udd4fcr;쀀\ud835\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\ud835\udd1cpf;쀀\ud835\udd50cr;쀀\ud835\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\ud835\udcb5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\ud835\udd1erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\ud835\udd52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\ud835\udcb6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\ud835\udd1fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\ud835\udd53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\ud835\udcb7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\ud835\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\ud835\udd54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\ud835\udcb8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\ud835\udd21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\ud835\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\ud835\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\ud835\udd22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\ud835\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\ud835\udd23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\ud835\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\ud835\udcbbࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\ud835\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\ud835\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\ud835\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\ud835\udd59bar;怕ƀclt≯≴≸r;쀀\ud835\udcbdas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\ud835\udd26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\ud835\udd5aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\ud835\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\ud835\udd27ath;䈷pf;쀀\ud835\udd5bǣ⏬\0⏱r;쀀\ud835\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\ud835\udd28reen;䄸cy;䑅cy;䑜pf;쀀\ud835\udd5ccr;쀀\ud835\udcc0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\ud835\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\ud835\udd5dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\ud835\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\ud835\udd2ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\ud835\udd5eĀct⣸⣽r;쀀\ud835\udcc2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\ud835\udd2bȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\ud835\udd5f膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\ud835\udcc3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\ud835\udd2cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\ud835\udd60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\ud835\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\ud835\udd61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\ud835\udcc5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\ud835\udd2epf;쀀\ud835\udd62rime;恗cr;쀀\ud835\udcc6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\ud835\udd2fĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\ud835\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\ud835\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\ud835\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\ud835\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\ud835\udcc8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\ud835\udd31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\ud835\udd65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\ud835\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\ud835\udd32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\ud835\udd66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\ud835\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\ud835\udd33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\ud835\udd67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\ud835\udccbĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\ud835\udd34pf;쀀\ud835\udd68Ā;eᑹ㩦at\xe8ᑹcr;쀀\ud835\udcccૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\ud835\udd35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\ud835\udd69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\ud835\udccdĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\ud835\udd36cy;䑗pf;쀀\ud835\udd6acr;쀀\ud835\udcceĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\ud835\udd37cy;䐶grarr;懝pf;쀀\ud835\udd6bcr;쀀\ud835\udccfĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),o8=new Uint16Array("Ȁaglq \x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));let o9=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),o7=null!==(a=String.fromCodePoint)&&void 0!==a?a:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function ae(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=o9.get(e))&&void 0!==t?t:e}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(s||(s={}));let at=32;function ar(e){return e>=s.ZERO&&e<=s.NINE}function an(e){return e>=s.UPPER_A&&e<=s.UPPER_F||e>=s.LOWER_A&&e<=s.LOWER_F}function ai(e){return e>=s.UPPER_A&&e<=s.UPPER_Z||e>=s.LOWER_A&&e<=s.LOWER_Z||ar(e)}function ao(e){return e===s.EQUALS||ai(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(c||(c={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(u||(u={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(l||(l={}));class aa{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=u.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=l.Strict}startEntity(e){this.decodeMode=e,this.state=u.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case u.EntityStart:if(e.charCodeAt(t)===s.NUM)return this.state=u.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=u.NamedEntity,this.stateNamedEntity(e,t);case u.NumericStart:return this.stateNumericStart(e,t);case u.NumericDecimal:return this.stateNumericDecimal(e,t);case u.NumericHex:return this.stateNumericHex(e,t);case u.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|at)===s.LOWER_X?(this.state=u.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=u.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){let i=r-t;this.result=this.result*Math.pow(n,i)+parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){let r=t;for(;t>14;for(;t>14)){if(o===s.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==l.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&c.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~c.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case u.NamedEntity:return 0!==this.result&&(this.decodeMode!==l.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case u.NumericDecimal:return this.emitNumericEntity(0,2);case u.NumericHex:return this.emitNumericEntity(0,3);case u.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case u.EntityStart:return 0}}}function as(e){let t="",r=new aa(e,e=>t+=o7(e));return function(e,n){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),r.startEntity(n);let a=r.write(e,o+1);if(a<0){i=o+r.end();break}i=o+a,o=0===a?i+1:i}let a=t+e.slice(i);return t="",a}}function ac(e,t,r,n){let i=(t&c.BRANCH_LENGTH)>>7,o=t&c.JUMP_TABLE;if(0===i)return 0!==o&&n===o?r:-1;if(o){let t=n-o;return t<0||t>=i?-1:e[r+t]-1}let a=r,s=a+i-1;for(;a<=s;){let t=a+s>>>1,r=e[t];if(rn))return e[t+i];s=t-1}}return -1}as(o5),as(o8),function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(d=d||(d={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(f=f||(f={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(h=h||(h={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(p=p||(p={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"}(m=m||(m={}));let au=new Map([[p.A,m.A],[p.ADDRESS,m.ADDRESS],[p.ANNOTATION_XML,m.ANNOTATION_XML],[p.APPLET,m.APPLET],[p.AREA,m.AREA],[p.ARTICLE,m.ARTICLE],[p.ASIDE,m.ASIDE],[p.B,m.B],[p.BASE,m.BASE],[p.BASEFONT,m.BASEFONT],[p.BGSOUND,m.BGSOUND],[p.BIG,m.BIG],[p.BLOCKQUOTE,m.BLOCKQUOTE],[p.BODY,m.BODY],[p.BR,m.BR],[p.BUTTON,m.BUTTON],[p.CAPTION,m.CAPTION],[p.CENTER,m.CENTER],[p.CODE,m.CODE],[p.COL,m.COL],[p.COLGROUP,m.COLGROUP],[p.DD,m.DD],[p.DESC,m.DESC],[p.DETAILS,m.DETAILS],[p.DIALOG,m.DIALOG],[p.DIR,m.DIR],[p.DIV,m.DIV],[p.DL,m.DL],[p.DT,m.DT],[p.EM,m.EM],[p.EMBED,m.EMBED],[p.FIELDSET,m.FIELDSET],[p.FIGCAPTION,m.FIGCAPTION],[p.FIGURE,m.FIGURE],[p.FONT,m.FONT],[p.FOOTER,m.FOOTER],[p.FOREIGN_OBJECT,m.FOREIGN_OBJECT],[p.FORM,m.FORM],[p.FRAME,m.FRAME],[p.FRAMESET,m.FRAMESET],[p.H1,m.H1],[p.H2,m.H2],[p.H3,m.H3],[p.H4,m.H4],[p.H5,m.H5],[p.H6,m.H6],[p.HEAD,m.HEAD],[p.HEADER,m.HEADER],[p.HGROUP,m.HGROUP],[p.HR,m.HR],[p.HTML,m.HTML],[p.I,m.I],[p.IMG,m.IMG],[p.IMAGE,m.IMAGE],[p.INPUT,m.INPUT],[p.IFRAME,m.IFRAME],[p.KEYGEN,m.KEYGEN],[p.LABEL,m.LABEL],[p.LI,m.LI],[p.LINK,m.LINK],[p.LISTING,m.LISTING],[p.MAIN,m.MAIN],[p.MALIGNMARK,m.MALIGNMARK],[p.MARQUEE,m.MARQUEE],[p.MATH,m.MATH],[p.MENU,m.MENU],[p.META,m.META],[p.MGLYPH,m.MGLYPH],[p.MI,m.MI],[p.MO,m.MO],[p.MN,m.MN],[p.MS,m.MS],[p.MTEXT,m.MTEXT],[p.NAV,m.NAV],[p.NOBR,m.NOBR],[p.NOFRAMES,m.NOFRAMES],[p.NOEMBED,m.NOEMBED],[p.NOSCRIPT,m.NOSCRIPT],[p.OBJECT,m.OBJECT],[p.OL,m.OL],[p.OPTGROUP,m.OPTGROUP],[p.OPTION,m.OPTION],[p.P,m.P],[p.PARAM,m.PARAM],[p.PLAINTEXT,m.PLAINTEXT],[p.PRE,m.PRE],[p.RB,m.RB],[p.RP,m.RP],[p.RT,m.RT],[p.RTC,m.RTC],[p.RUBY,m.RUBY],[p.S,m.S],[p.SCRIPT,m.SCRIPT],[p.SECTION,m.SECTION],[p.SELECT,m.SELECT],[p.SOURCE,m.SOURCE],[p.SMALL,m.SMALL],[p.SPAN,m.SPAN],[p.STRIKE,m.STRIKE],[p.STRONG,m.STRONG],[p.STYLE,m.STYLE],[p.SUB,m.SUB],[p.SUMMARY,m.SUMMARY],[p.SUP,m.SUP],[p.TABLE,m.TABLE],[p.TBODY,m.TBODY],[p.TEMPLATE,m.TEMPLATE],[p.TEXTAREA,m.TEXTAREA],[p.TFOOT,m.TFOOT],[p.TD,m.TD],[p.TH,m.TH],[p.THEAD,m.THEAD],[p.TITLE,m.TITLE],[p.TR,m.TR],[p.TRACK,m.TRACK],[p.TT,m.TT],[p.U,m.U],[p.UL,m.UL],[p.SVG,m.SVG],[p.VAR,m.VAR],[p.WBR,m.WBR],[p.XMP,m.XMP]]);function al(e){var t;return null!==(t=au.get(e))&&void 0!==t?t:m.UNKNOWN}let ad=m,af={[d.HTML]:new Set([ad.ADDRESS,ad.APPLET,ad.AREA,ad.ARTICLE,ad.ASIDE,ad.BASE,ad.BASEFONT,ad.BGSOUND,ad.BLOCKQUOTE,ad.BODY,ad.BR,ad.BUTTON,ad.CAPTION,ad.CENTER,ad.COL,ad.COLGROUP,ad.DD,ad.DETAILS,ad.DIR,ad.DIV,ad.DL,ad.DT,ad.EMBED,ad.FIELDSET,ad.FIGCAPTION,ad.FIGURE,ad.FOOTER,ad.FORM,ad.FRAME,ad.FRAMESET,ad.H1,ad.H2,ad.H3,ad.H4,ad.H5,ad.H6,ad.HEAD,ad.HEADER,ad.HGROUP,ad.HR,ad.HTML,ad.IFRAME,ad.IMG,ad.INPUT,ad.LI,ad.LINK,ad.LISTING,ad.MAIN,ad.MARQUEE,ad.MENU,ad.META,ad.NAV,ad.NOEMBED,ad.NOFRAMES,ad.NOSCRIPT,ad.OBJECT,ad.OL,ad.P,ad.PARAM,ad.PLAINTEXT,ad.PRE,ad.SCRIPT,ad.SECTION,ad.SELECT,ad.SOURCE,ad.STYLE,ad.SUMMARY,ad.TABLE,ad.TBODY,ad.TD,ad.TEMPLATE,ad.TEXTAREA,ad.TFOOT,ad.TH,ad.THEAD,ad.TITLE,ad.TR,ad.TRACK,ad.UL,ad.WBR,ad.XMP]),[d.MATHML]:new Set([ad.MI,ad.MO,ad.MN,ad.MS,ad.MTEXT,ad.ANNOTATION_XML]),[d.SVG]:new Set([ad.TITLE,ad.FOREIGN_OBJECT,ad.DESC]),[d.XLINK]:new Set,[d.XML]:new Set,[d.XMLNS]:new Set};function ah(e){return e===ad.H1||e===ad.H2||e===ad.H3||e===ad.H4||e===ad.H5||e===ad.H6}p.STYLE,p.SCRIPT,p.XMP,p.IFRAME,p.NOEMBED,p.NOFRAMES,p.PLAINTEXT;let ap=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"}(b||(b={}));let am={DATA:b.DATA,RCDATA:b.RCDATA,RAWTEXT:b.RAWTEXT,SCRIPT_DATA:b.SCRIPT_DATA,PLAINTEXT:b.PLAINTEXT,CDATA_SECTION:b.CDATA_SECTION};function ab(e){return e>=n.DIGIT_0&&e<=n.DIGIT_9}function ag(e){return e>=n.LATIN_CAPITAL_A&&e<=n.LATIN_CAPITAL_Z}function ay(e){return e>=n.LATIN_SMALL_A&&e<=n.LATIN_SMALL_Z}function a_(e){return ay(e)||ag(e)}function av(e){return a_(e)||ab(e)}function aE(e){return e>=n.LATIN_CAPITAL_A&&e<=n.LATIN_CAPITAL_F}function aT(e){return e>=n.LATIN_SMALL_A&&e<=n.LATIN_SMALL_F}function aA(e){return ab(e)||aE(e)||aT(e)}function aS(e){return e+32}function ax(e){return e===n.SPACE||e===n.LINE_FEED||e===n.TABULATION||e===n.FORM_FEED}function aC(e){return e===n.EQUALS_SIGN||av(e)}function aw(e){return ax(e)||e===n.SOLIDUS||e===n.GREATER_THAN_SIGN}class aN{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=b.DATA,this.returnState=b.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new o4(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,r;null===(r=(t=this.handler).onParseError)||void 0===r||r.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==r||r()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(i.endTagWithAttributes),e.selfClosing&&this._err(i.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case o.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case o.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case o.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:o.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type!==e)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=t;return}}this._createCharacterToken(e,t)}_emitCodePoint(e){let t=ax(e)?o.WHITESPACE_CHARACTER:e===n.NULL?o.NULL_CHARACTER:o.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(o.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,r=0,o=!1;for(let i=0,a=o5[0];i>=0&&!((i=ac(o5,a,i+1,e))<0);e=this._consume()){r+=1;let s=(a=o5[i])&c.VALUE_LENGTH;if(s){let a=(s>>14)-1;if(e!==n.SEMICOLON&&this._isCharacterReferenceInAttribute()&&aC(this.preprocessor.peek(1))?(t=[n.AMPERSAND],i+=a):(t=0===a?[o5[i]&~c.VALUE_LENGTH]:1===a?[o5[++i]]:[o5[++i],o5[++i]],r=0,o=e!==n.SEMICOLON),0===a){this._consume();break}}}return this._unconsume(r),o&&!this.preprocessor.endOfChunkHit&&this._err(i.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===b.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case b.DATA:this._stateData(e);break;case b.RCDATA:this._stateRcdata(e);break;case b.RAWTEXT:this._stateRawtext(e);break;case b.SCRIPT_DATA:this._stateScriptData(e);break;case b.PLAINTEXT:this._statePlaintext(e);break;case b.TAG_OPEN:this._stateTagOpen(e);break;case b.END_TAG_OPEN:this._stateEndTagOpen(e);break;case b.TAG_NAME:this._stateTagName(e);break;case b.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case b.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case b.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case b.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case b.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case b.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case b.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case b.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case b.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case b.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case b.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case b.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case b.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case b.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case b.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case b.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case b.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case b.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case b.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case b.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case b.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case b.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case b.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case b.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case b.BOGUS_COMMENT:this._stateBogusComment(e);break;case b.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case b.COMMENT_START:this._stateCommentStart(e);break;case b.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case b.COMMENT:this._stateComment(e);break;case b.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case b.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case b.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case b.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case b.COMMENT_END:this._stateCommentEnd(e);break;case b.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case b.DOCTYPE:this._stateDoctype(e);break;case b.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case b.DOCTYPE_NAME:this._stateDoctypeName(e);break;case b.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case b.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case b.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case b.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case b.CDATA_SECTION:this._stateCdataSection(e);break;case b.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case b.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case b.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case b.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case b.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case b.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case b.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case b.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case b.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case b.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case n.LESS_THAN_SIGN:this.state=b.TAG_OPEN;break;case n.AMPERSAND:this.returnState=b.DATA,this.state=b.CHARACTER_REFERENCE;break;case n.NULL:this._err(i.unexpectedNullCharacter),this._emitCodePoint(e);break;case n.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case n.AMPERSAND:this.returnState=b.RCDATA,this.state=b.CHARACTER_REFERENCE;break;case n.LESS_THAN_SIGN:this.state=b.RCDATA_LESS_THAN_SIGN;break;case n.NULL:this._err(i.unexpectedNullCharacter),this._emitChars(oK);break;case n.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case n.LESS_THAN_SIGN:this.state=b.RAWTEXT_LESS_THAN_SIGN;break;case n.NULL:this._err(i.unexpectedNullCharacter),this._emitChars(oK);break;case n.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case n.LESS_THAN_SIGN:this.state=b.SCRIPT_DATA_LESS_THAN_SIGN;break;case n.NULL:this._err(i.unexpectedNullCharacter),this._emitChars(oK);break;case n.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case n.NULL:this._err(i.unexpectedNullCharacter),this._emitChars(oK);break;case n.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(a_(e))this._createStartTagToken(),this.state=b.TAG_NAME,this._stateTagName(e);else switch(e){case n.EXCLAMATION_MARK:this.state=b.MARKUP_DECLARATION_OPEN;break;case n.SOLIDUS:this.state=b.END_TAG_OPEN;break;case n.QUESTION_MARK:this._err(i.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=b.BOGUS_COMMENT,this._stateBogusComment(e);break;case n.EOF:this._err(i.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(i.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=b.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(a_(e))this._createEndTagToken(),this.state=b.TAG_NAME,this._stateTagName(e);else switch(e){case n.GREATER_THAN_SIGN:this._err(i.missingEndTagName),this.state=b.DATA;break;case n.EOF:this._err(i.eofBeforeTagName),this._emitChars("");break;case n.NULL:this._err(i.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(oK);break;case n.EOF:this._err(i.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===n.SOLIDUS?this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:a_(e)?(this._emitChars("<"),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){a_(e)?(this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case n.NULL:this._err(i.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(oK);break;case n.EOF:this._err(i.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===n.SOLIDUS?(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(oX.SCRIPT,!1)&&aw(this.preprocessor.peek(oX.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e1114111)this._err(i.characterReferenceOutsideUnicodeRange),this.charRefCode=n.REPLACEMENT_CHARACTER;else if(oQ(this.charRefCode))this._err(i.surrogateCharacterReference),this.charRefCode=n.REPLACEMENT_CHARACTER;else if(o2(this.charRefCode))this._err(i.noncharacterCharacterReference);else if(o1(this.charRefCode)||this.charRefCode===n.CARRIAGE_RETURN){this._err(i.controlCharacterReference);let e=ap.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}let aM=new Set([m.DD,m.DT,m.LI,m.OPTGROUP,m.OPTION,m.P,m.RB,m.RP,m.RT,m.RTC]),ak=new Set([...aM,m.CAPTION,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]),aO=new Map([[m.APPLET,d.HTML],[m.CAPTION,d.HTML],[m.HTML,d.HTML],[m.MARQUEE,d.HTML],[m.OBJECT,d.HTML],[m.TABLE,d.HTML],[m.TD,d.HTML],[m.TEMPLATE,d.HTML],[m.TH,d.HTML],[m.ANNOTATION_XML,d.MATHML],[m.MI,d.MATHML],[m.MN,d.MATHML],[m.MO,d.MATHML],[m.MS,d.MATHML],[m.MTEXT,d.MATHML],[m.DESC,d.SVG],[m.FOREIGN_OBJECT,d.SVG],[m.TITLE,d.SVG]]),aR=[m.H1,m.H2,m.H3,m.H4,m.H5,m.H6],aI=[m.TR,m.TEMPLATE,m.HTML],aP=[m.TBODY,m.TFOOT,m.THEAD,m.TEMPLATE,m.HTML],aD=[m.TABLE,m.TEMPLATE,m.HTML],a$=[m.TD,m.TH];class aL{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,r){this.treeAdapter=t,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=m.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===m.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===d.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&(this.current=t)}insertAfter(e,t,r){let n=this._indexOf(e)+1;this.items.splice(n,0,t),this.tagIDs.splice(n,0,r),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==d.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;r--)if(e.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===t)return r;return -1}clearBackTo(e,t){let r=this._indexOfTagNames(e,t);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(aD,d.HTML)}clearBackToTableBodyContext(){this.clearBackTo(aP,d.HTML)}clearBackToTableRowContext(){this.clearBackTo(aI,d.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===m.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===m.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===d.HTML)break;if(aO.get(r)===n)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(ah(t)&&r===d.HTML)break;if(aO.get(t)===r)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===d.HTML)break;if((r===m.UL||r===m.OL)&&n===d.HTML||aO.get(r)===n)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===d.HTML)break;if(r===m.BUTTON&&n===d.HTML||aO.get(r)===n)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===d.HTML){if(r===e)break;if(r===m.TABLE||r===m.TEMPLATE||r===m.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===d.HTML){if(t===m.TBODY||t===m.THEAD||t===m.TFOOT)break;if(t===m.TABLE||t===m.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===d.HTML){if(r===e)break;if(r!==m.OPTION&&r!==m.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;aM.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ak.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&ak.has(this.currentTagId);)this.pop()}}let aF=3;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(g=g||(g={}));let aj={type:g.Marker};class aU{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let r=[],n=t.length,i=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let e=0;e[e.name,e.value])),i=0;for(let e=0;en.get(e.name)===e.value)&&(i+=1)>=aF&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(aj)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:g.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:g.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(aj);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===g.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===g.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===g.Element&&t.element===e)}}function aB(e){return{nodeName:"#text",value:e,parentNode:null}}let aH={createDocument:()=>({nodeName:"#document",mode:h.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,r)=>({nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){let n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,r,n){let i=e.childNodes.find(e=>"#documentType"===e.nodeName);if(i)i.name=t,i.publicId=r,i.systemId=n;else{let i={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};aH.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let r=e.childNodes[e.childNodes.length-1];if(aH.isTextNode(r)){r.value+=t;return}}aH.appendChild(e,aB(t))},insertTextBefore(e,t,r){let n=e.childNodes[e.childNodes.indexOf(r)-1];n&&aH.isTextNode(n)?n.value+=t:aH.insertBefore(e,aB(t),r)},adoptAttributes(e,t){let r=new Set(e.attrs.map(e=>e.name));for(let n=0;ne.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},az="html",aV="about:legacy-compat",aG="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",aY=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],aq=[...aY,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],aW=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),aZ=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],aK=[...aZ,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function aX(e,t){return t.some(t=>e.startsWith(t))}function aQ(e){return e.name===az&&null===e.publicId&&(null===e.systemId||e.systemId===aV)}function aJ(e){if(e.name!==az)return h.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===aG)return h.QUIRKS;let{publicId:r}=e;if(null!==r){if(r=r.toLowerCase(),aW.has(r))return h.QUIRKS;let e=null===t?aq:aY;if(aX(r,e))return h.QUIRKS;if(aX(r,e=null===t?aZ:aK))return h.LIMITED_QUIRKS}return h.NO_QUIRKS}let a0={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},a1="definitionurl",a2="definitionURL",a3=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),a4=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:d.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:d.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:d.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:d.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:d.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:d.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:d.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:d.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:d.XML}],["xml:space",{prefix:"xml",name:"space",namespace:d.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:d.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:d.XMLNS}]]),a6=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),a5=new Set([m.B,m.BIG,m.BLOCKQUOTE,m.BODY,m.BR,m.CENTER,m.CODE,m.DD,m.DIV,m.DL,m.DT,m.EM,m.EMBED,m.H1,m.H2,m.H3,m.H4,m.H5,m.H6,m.HEAD,m.HR,m.I,m.IMG,m.LI,m.LISTING,m.MENU,m.META,m.NOBR,m.OL,m.P,m.PRE,m.RUBY,m.S,m.SMALL,m.SPAN,m.STRONG,m.STRIKE,m.SUB,m.SUP,m.TABLE,m.TT,m.U,m.UL,m.VAR]);function a8(e){let t=e.tagID;return t===m.FONT&&e.attrs.some(({name:e})=>e===f.COLOR||e===f.SIZE||e===f.FACE)||a5.has(t)}function a9(e){for(let t=0;t0&&this._setContextModes(e,t)}onItemPop(e,t){var r,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(n=(r=this.treeAdapter).onItemPop)||void 0===n||n.call(r,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let r=e===this.document||this.treeAdapter.getNamespaceURI(e)===d.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,d.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=y.TEXT}switchToPlaintextParsing(){this.insertionMode=y.TEXT,this.originalInsertionMode=y.IN_BODY,this.tokenizer.state=am.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===p.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===d.HTML)switch(this.fragmentContextID){case m.TITLE:case m.TEXTAREA:this.tokenizer.state=am.RCDATA;break;case m.STYLE:case m.XMP:case m.IFRAME:case m.NOEMBED:case m.NOFRAMES:case m.NOSCRIPT:this.tokenizer.state=am.RAWTEXT;break;case m.SCRIPT:this.tokenizer.state=am.SCRIPT_DATA;break;case m.PLAINTEXT:this.tokenizer.state=am.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",r=e.publicId||"",n=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,r,n),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let r=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){let r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,t){let r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,t){let r=this.treeAdapter.createElement(e,d.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,d.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(p.HTML,d.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,m.HTML)}_appendCommentNode(e,t){let r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let t,r;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(t,e.chars,r):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let n=this.treeAdapter.getChildNodes(t),i=r?n.lastIndexOf(r):n.length,o=n[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){let{endLine:t,endCol:r,endOffset:n}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:r,endOffset:n})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let r=t.location,n=this.treeAdapter.getTagName(e),i=t.type===o.END_TAG&&n===t.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){let t,r;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,r=this.fragmentContextID):{current:t,currentTagId:r}=this.openElements,(e.tagID!==m.SVG||this.treeAdapter.getTagName(t)!==p.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==d.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===m.MGLYPH||e.tagID===m.MALIGNMARK)&&!this._isIntegrationPoint(r,t,d.HTML)))}_processToken(e){switch(e.type){case o.CHARACTER:this.onCharacter(e);break;case o.NULL_CHARACTER:this.onNullCharacter(e);break;case o.COMMENT:this.onComment(e);break;case o.DOCTYPE:this.onDoctype(e);break;case o.START_TAG:this._processStartTag(e);break;case o.END_TAG:this.onEndTag(e);break;case o.EOF:this.onEof(e);break;case o.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,r){return si(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),r)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===g.Marker||this.openElements.contains(e.element)),r=t<0?e-1:t-1;for(let e=r;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=y.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(m.P),this.openElements.popUntilTagNamePopped(m.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case m.TR:this.insertionMode=y.IN_ROW;return;case m.TBODY:case m.THEAD:case m.TFOOT:this.insertionMode=y.IN_TABLE_BODY;return;case m.CAPTION:this.insertionMode=y.IN_CAPTION;return;case m.COLGROUP:this.insertionMode=y.IN_COLUMN_GROUP;return;case m.TABLE:this.insertionMode=y.IN_TABLE;return;case m.BODY:this.insertionMode=y.IN_BODY;return;case m.FRAMESET:this.insertionMode=y.IN_FRAMESET;return;case m.SELECT:this._resetInsertionModeForSelect(e);return;case m.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case m.HTML:this.insertionMode=this.headElement?y.AFTER_HEAD:y.BEFORE_HEAD;return;case m.TD:case m.TH:if(e>0){this.insertionMode=y.IN_CELL;return}break;case m.HEAD:if(e>0){this.insertionMode=y.IN_HEAD;return}}this.insertionMode=y.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===m.TEMPLATE)break;if(e===m.TABLE){this.insertionMode=y.IN_SELECT_IN_TABLE;return}}this.insertionMode=y.IN_SELECT}_isElementCausesFosterParenting(e){return su.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case m.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===d.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case m.TABLE:{let r=this.treeAdapter.getParentNode(t);if(r)return{parent:r,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return af[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){uu(this,e);return}switch(this.insertionMode){case y.INITIAL:sS(this,e);break;case y.BEFORE_HTML:sw(this,e);break;case y.BEFORE_HEAD:sk(this,e);break;case y.IN_HEAD:sP(this,e);break;case y.IN_HEAD_NO_SCRIPT:sL(this,e);break;case y.AFTER_HEAD:sU(this,e);break;case y.IN_BODY:case y.IN_CAPTION:case y.IN_CELL:case y.IN_TEMPLATE:sz(this,e);break;case y.TEXT:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case y.IN_TABLE:case y.IN_TABLE_BODY:case y.IN_ROW:cN(this,e);break;case y.IN_TABLE_TEXT:cB(this,e);break;case y.IN_COLUMN_GROUP:cW(this,e);break;case y.AFTER_BODY:ue(this,e);break;case y.AFTER_AFTER_BODY:ua(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){uc(this,e);return}switch(this.insertionMode){case y.INITIAL:sS(this,e);break;case y.BEFORE_HTML:sw(this,e);break;case y.BEFORE_HEAD:sk(this,e);break;case y.IN_HEAD:sP(this,e);break;case y.IN_HEAD_NO_SCRIPT:sL(this,e);break;case y.AFTER_HEAD:sU(this,e);break;case y.TEXT:this._insertCharacters(e);break;case y.IN_TABLE:case y.IN_TABLE_BODY:case y.IN_ROW:cN(this,e);break;case y.IN_COLUMN_GROUP:cW(this,e);break;case y.AFTER_BODY:ue(this,e);break;case y.AFTER_AFTER_BODY:ua(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){s_(this,e);return}switch(this.insertionMode){case y.INITIAL:case y.BEFORE_HTML:case y.BEFORE_HEAD:case y.IN_HEAD:case y.IN_HEAD_NO_SCRIPT:case y.AFTER_HEAD:case y.IN_BODY:case y.IN_TABLE:case y.IN_CAPTION:case y.IN_COLUMN_GROUP:case y.IN_TABLE_BODY:case y.IN_ROW:case y.IN_CELL:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:case y.IN_TEMPLATE:case y.IN_FRAMESET:case y.AFTER_FRAMESET:s_(this,e);break;case y.IN_TABLE_TEXT:cH(this,e);break;case y.AFTER_BODY:sv(this,e);break;case y.AFTER_AFTER_BODY:case y.AFTER_AFTER_FRAMESET:sE(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case y.INITIAL:sA(this,e);break;case y.BEFORE_HEAD:case y.IN_HEAD:case y.IN_HEAD_NO_SCRIPT:case y.AFTER_HEAD:this._err(e,i.misplacedDoctype);break;case y.IN_TABLE_TEXT:cH(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,i.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?ud(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case y.INITIAL:sS(this,e);break;case y.BEFORE_HTML:sx(this,e);break;case y.BEFORE_HEAD:sN(this,e);break;case y.IN_HEAD:sO(this,e);break;case y.IN_HEAD_NO_SCRIPT:sD(this,e);break;case y.AFTER_HEAD:sF(this,e);break;case y.IN_BODY:cf(this,e);break;case y.IN_TABLE:cL(this,e);break;case y.IN_TABLE_TEXT:cH(this,e);break;case y.IN_CAPTION:cV(this,e);break;case y.IN_COLUMN_GROUP:cY(this,e);break;case y.IN_TABLE_BODY:cZ(this,e);break;case y.IN_ROW:cX(this,e);break;case y.IN_CELL:cJ(this,e);break;case y.IN_SELECT:c1(this,e);break;case y.IN_SELECT_IN_TABLE:c3(this,e);break;case y.IN_TEMPLATE:c6(this,e);break;case y.AFTER_BODY:c9(this,e);break;case y.IN_FRAMESET:ut(this,e);break;case y.AFTER_FRAMESET:un(this,e);break;case y.AFTER_AFTER_BODY:uo(this,e);break;case y.AFTER_AFTER_FRAMESET:us(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?uf(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case y.INITIAL:sS(this,e);break;case y.BEFORE_HTML:sC(this,e);break;case y.BEFORE_HEAD:sM(this,e);break;case y.IN_HEAD:sR(this,e);break;case y.IN_HEAD_NO_SCRIPT:s$(this,e);break;case y.AFTER_HEAD:sj(this,e);break;case y.IN_BODY:cS(this,e);break;case y.TEXT:cC(this,e);break;case y.IN_TABLE:cF(this,e);break;case y.IN_TABLE_TEXT:cH(this,e);break;case y.IN_CAPTION:cG(this,e);break;case y.IN_COLUMN_GROUP:cq(this,e);break;case y.IN_TABLE_BODY:cK(this,e);break;case y.IN_ROW:cQ(this,e);break;case y.IN_CELL:c0(this,e);break;case y.IN_SELECT:c2(this,e);break;case y.IN_SELECT_IN_TABLE:c4(this,e);break;case y.IN_TEMPLATE:c5(this,e);break;case y.AFTER_BODY:c7(this,e);break;case y.IN_FRAMESET:ur(this,e);break;case y.AFTER_FRAMESET:ui(this,e);break;case y.AFTER_AFTER_BODY:ua(this,e)}}onEof(e){switch(this.insertionMode){case y.INITIAL:sS(this,e);break;case y.BEFORE_HTML:sw(this,e);break;case y.BEFORE_HEAD:sk(this,e);break;case y.IN_HEAD:sP(this,e);break;case y.IN_HEAD_NO_SCRIPT:sL(this,e);break;case y.AFTER_HEAD:sU(this,e);break;case y.IN_BODY:case y.IN_TABLE:case y.IN_CAPTION:case y.IN_COLUMN_GROUP:case y.IN_TABLE_BODY:case y.IN_ROW:case y.IN_CELL:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:cx(this,e);break;case y.TEXT:cw(this,e);break;case y.IN_TABLE_TEXT:cH(this,e);break;case y.IN_TEMPLATE:c8(this,e);break;case y.AFTER_BODY:case y.IN_FRAMESET:case y.AFTER_FRAMESET:case y.AFTER_AFTER_BODY:case y.AFTER_AFTER_FRAMESET:sT(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===n.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case y.IN_HEAD:case y.IN_HEAD_NO_SCRIPT:case y.AFTER_HEAD:case y.TEXT:case y.IN_COLUMN_GROUP:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:case y.IN_FRAMESET:case y.AFTER_FRAMESET:this._insertCharacters(e);break;case y.IN_BODY:case y.IN_CAPTION:case y.IN_CELL:case y.IN_TEMPLATE:case y.AFTER_BODY:case y.AFTER_AFTER_BODY:case y.AFTER_AFTER_FRAMESET:sH(this,e);break;case y.IN_TABLE:case y.IN_TABLE_BODY:case y.IN_ROW:cN(this,e);break;case y.IN_TABLE_TEXT:cU(this,e)}}}function sf(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):cA(e,t),r}function sh(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){let i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[n])&&(r=i)}return r||(e.openElements.shortenToLength(n<0?0:n),e.activeFormattingElements.removeEntry(t)),r}function sp(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==r;o++,a=i){i=e.openElements.getCommonAncestor(a);let r=e.activeFormattingElements.getElementEntry(a),s=r&&o>=ss;!r||s?(s&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(a)):(a=sm(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(a,n),n=a)}return n}function sm(e,t){let r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function sb(e,t,r){let n=al(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(n))e._fosterParentElement(r);else{let i=e.treeAdapter.getNamespaceURI(t);n===m.TEMPLATE&&i===d.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function sg(e,t,r){let n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,o=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,o,i.tagID)}function sy(e,t){for(let r=0;r=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let r=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(r);if(n&&!n.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){let r=e.openElements.items[1],n=e.treeAdapter.getNodeSourceCodeLocation(r);n&&!n.endTag&&e._setEndLocation(r,t)}}}}function sA(e,t){e._setDocumentType(t);let r=t.forceQuirks?h.QUIRKS:aJ(t);aQ(t)||e._err(t,i.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=y.BEFORE_HTML}function sS(e,t){e._err(t,i.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,h.QUIRKS),e.insertionMode=y.BEFORE_HTML,e._processToken(t)}function sx(e,t){t.tagID===m.HTML?(e._insertElement(t,d.HTML),e.insertionMode=y.BEFORE_HEAD):sw(e,t)}function sC(e,t){let r=t.tagID;(r===m.HTML||r===m.HEAD||r===m.BODY||r===m.BR)&&sw(e,t)}function sw(e,t){e._insertFakeRootElement(),e.insertionMode=y.BEFORE_HEAD,e._processToken(t)}function sN(e,t){switch(t.tagID){case m.HTML:cf(e,t);break;case m.HEAD:e._insertElement(t,d.HTML),e.headElement=e.openElements.current,e.insertionMode=y.IN_HEAD;break;default:sk(e,t)}}function sM(e,t){let r=t.tagID;r===m.HEAD||r===m.BODY||r===m.HTML||r===m.BR?sk(e,t):e._err(t,i.endTagWithoutMatchingOpenElement)}function sk(e,t){e._insertFakeElement(p.HEAD,m.HEAD),e.headElement=e.openElements.current,e.insertionMode=y.IN_HEAD,e._processToken(t)}function sO(e,t){switch(t.tagID){case m.HTML:cf(e,t);break;case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:e._appendElement(t,d.HTML),t.ackSelfClosing=!0;break;case m.TITLE:e._switchToTextParsing(t,am.RCDATA);break;case m.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,am.RAWTEXT):(e._insertElement(t,d.HTML),e.insertionMode=y.IN_HEAD_NO_SCRIPT);break;case m.NOFRAMES:case m.STYLE:e._switchToTextParsing(t,am.RAWTEXT);break;case m.SCRIPT:e._switchToTextParsing(t,am.SCRIPT_DATA);break;case m.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=y.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(y.IN_TEMPLATE);break;case m.HEAD:e._err(t,i.misplacedStartTagForHeadElement);break;default:sP(e,t)}}function sR(e,t){switch(t.tagID){case m.HEAD:e.openElements.pop(),e.insertionMode=y.AFTER_HEAD;break;case m.BODY:case m.BR:case m.HTML:sP(e,t);break;case m.TEMPLATE:sI(e,t);break;default:e._err(t,i.endTagWithoutMatchingOpenElement)}}function sI(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==m.TEMPLATE&&e._err(t,i.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,i.endTagWithoutMatchingOpenElement)}function sP(e,t){e.openElements.pop(),e.insertionMode=y.AFTER_HEAD,e._processToken(t)}function sD(e,t){switch(t.tagID){case m.HTML:cf(e,t);break;case m.BASEFONT:case m.BGSOUND:case m.HEAD:case m.LINK:case m.META:case m.NOFRAMES:case m.STYLE:sO(e,t);break;case m.NOSCRIPT:e._err(t,i.nestedNoscriptInHead);break;default:sL(e,t)}}function s$(e,t){switch(t.tagID){case m.NOSCRIPT:e.openElements.pop(),e.insertionMode=y.IN_HEAD;break;case m.BR:sL(e,t);break;default:e._err(t,i.endTagWithoutMatchingOpenElement)}}function sL(e,t){let r=t.type===o.EOF?i.openElementsLeftAfterEof:i.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=y.IN_HEAD,e._processToken(t)}function sF(e,t){switch(t.tagID){case m.HTML:cf(e,t);break;case m.BODY:e._insertElement(t,d.HTML),e.framesetOk=!1,e.insertionMode=y.IN_BODY;break;case m.FRAMESET:e._insertElement(t,d.HTML),e.insertionMode=y.IN_FRAMESET;break;case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:e._err(t,i.abandonedHeadElementChild),e.openElements.push(e.headElement,m.HEAD),sO(e,t),e.openElements.remove(e.headElement);break;case m.HEAD:e._err(t,i.misplacedStartTagForHeadElement);break;default:sU(e,t)}}function sj(e,t){switch(t.tagID){case m.BODY:case m.HTML:case m.BR:sU(e,t);break;case m.TEMPLATE:sI(e,t);break;default:e._err(t,i.endTagWithoutMatchingOpenElement)}}function sU(e,t){e._insertFakeElement(p.BODY,m.BODY),e.insertionMode=y.IN_BODY,sB(e,t)}function sB(e,t){switch(t.type){case o.CHARACTER:sz(e,t);break;case o.WHITESPACE_CHARACTER:sH(e,t);break;case o.COMMENT:s_(e,t);break;case o.START_TAG:cf(e,t);break;case o.END_TAG:cS(e,t);break;case o.EOF:cx(e,t)}}function sH(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function sz(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function sV(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function sG(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function sY(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,d.HTML),e.insertionMode=y.IN_FRAMESET)}function sq(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,d.HTML)}function sW(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),ah(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,d.HTML)}function sZ(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,d.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function sK(e,t){let r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,d.HTML),r||(e.formElement=e.openElements.current))}function sX(e,t){e.framesetOk=!1;let r=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let n=e.openElements.tagIDs[t];if(r===m.LI&&n===m.LI||(r===m.DD||r===m.DT)&&(n===m.DD||n===m.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==m.ADDRESS&&n!==m.DIV&&n!==m.P&&e._isSpecialElement(e.openElements.items[t],n))break}e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,d.HTML)}function sQ(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,d.HTML),e.tokenizer.state=am.PLAINTEXT}function sJ(e,t){e.openElements.hasInScope(m.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,d.HTML),e.framesetOk=!1}function s0(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(p.A);r&&(sy(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,d.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function s1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,d.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function s2(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(m.NOBR)&&(sy(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,d.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function s3(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,d.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function s4(e,t){e.treeAdapter.getDocumentMode(e.document)!==h.QUIRKS&&e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,d.HTML),e.framesetOk=!1,e.insertionMode=y.IN_TABLE}function s6(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,d.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function s5(e){let t=o6(e,f.TYPE);return null!=t&&t.toLowerCase()===so}function s8(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,d.HTML),s5(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function s9(e,t){e._appendElement(t,d.HTML),t.ackSelfClosing=!0}function s7(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._appendElement(t,d.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ce(e,t){t.tagName=p.IMG,t.tagID=m.IMG,s6(e,t)}function ct(e,t){e._insertElement(t,d.HTML),e.skipNextNewLine=!0,e.tokenizer.state=am.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=y.TEXT}function cr(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,am.RAWTEXT)}function cn(e,t){e.framesetOk=!1,e._switchToTextParsing(t,am.RAWTEXT)}function ci(e,t){e._switchToTextParsing(t,am.RAWTEXT)}function co(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,d.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===y.IN_TABLE||e.insertionMode===y.IN_CAPTION||e.insertionMode===y.IN_TABLE_BODY||e.insertionMode===y.IN_ROW||e.insertionMode===y.IN_CELL?y.IN_SELECT_IN_TABLE:y.IN_SELECT}function ca(e,t){e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,d.HTML)}function cs(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,d.HTML)}function cc(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(m.RTC),e._insertElement(t,d.HTML)}function cu(e,t){e._reconstructActiveFormattingElements(),a9(t),se(t),t.selfClosing?e._appendElement(t,d.MATHML):e._insertElement(t,d.MATHML),t.ackSelfClosing=!0}function cl(e,t){e._reconstructActiveFormattingElements(),a7(t),se(t),t.selfClosing?e._appendElement(t,d.SVG):e._insertElement(t,d.SVG),t.ackSelfClosing=!0}function cd(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,d.HTML)}function cf(e,t){switch(t.tagID){case m.I:case m.S:case m.B:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.SMALL:case m.STRIKE:case m.STRONG:s1(e,t);break;case m.A:s0(e,t);break;case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:sW(e,t);break;case m.P:case m.DL:case m.OL:case m.UL:case m.DIV:case m.DIR:case m.NAV:case m.MAIN:case m.MENU:case m.ASIDE:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.DETAILS:case m.ADDRESS:case m.ARTICLE:case m.SECTION:case m.SUMMARY:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:sq(e,t);break;case m.LI:case m.DD:case m.DT:sX(e,t);break;case m.BR:case m.IMG:case m.WBR:case m.AREA:case m.EMBED:case m.KEYGEN:s6(e,t);break;case m.HR:s7(e,t);break;case m.RB:case m.RTC:cs(e,t);break;case m.RT:case m.RP:cc(e,t);break;case m.PRE:case m.LISTING:sZ(e,t);break;case m.XMP:cr(e,t);break;case m.SVG:cl(e,t);break;case m.HTML:sV(e,t);break;case m.BASE:case m.LINK:case m.META:case m.STYLE:case m.TITLE:case m.SCRIPT:case m.BGSOUND:case m.BASEFONT:case m.TEMPLATE:sO(e,t);break;case m.BODY:sG(e,t);break;case m.FORM:sK(e,t);break;case m.NOBR:s2(e,t);break;case m.MATH:cu(e,t);break;case m.TABLE:s4(e,t);break;case m.INPUT:s8(e,t);break;case m.PARAM:case m.TRACK:case m.SOURCE:s9(e,t);break;case m.IMAGE:ce(e,t);break;case m.BUTTON:sJ(e,t);break;case m.APPLET:case m.OBJECT:case m.MARQUEE:s3(e,t);break;case m.IFRAME:cn(e,t);break;case m.SELECT:co(e,t);break;case m.OPTION:case m.OPTGROUP:ca(e,t);break;case m.NOEMBED:ci(e,t);break;case m.FRAMESET:sY(e,t);break;case m.TEXTAREA:ct(e,t);break;case m.NOSCRIPT:e.options.scriptingEnabled?ci(e,t):cd(e,t);break;case m.PLAINTEXT:sQ(e,t);break;case m.COL:case m.TH:case m.TD:case m.TR:case m.HEAD:case m.FRAME:case m.TBODY:case m.TFOOT:case m.THEAD:case m.CAPTION:case m.COLGROUP:break;default:cd(e,t)}}function ch(e,t){if(e.openElements.hasInScope(m.BODY)&&(e.insertionMode=y.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function cp(e,t){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=y.AFTER_BODY,c7(e,t))}function cm(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function cb(e){let t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(m.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(m.FORM):r&&e.openElements.remove(r))}function cg(e){e.openElements.hasInButtonScope(m.P)||e._insertFakeElement(p.P,m.P),e._closePElement()}function cy(e){e.openElements.hasInListItemScope(m.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(m.LI),e.openElements.popUntilTagNamePopped(m.LI))}function c_(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function cv(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function cE(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function cT(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(p.BR,m.BR),e.openElements.pop(),e.framesetOk=!1}function cA(e,t){let r=t.tagName,n=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],o=e.openElements.tagIDs[t];if(n===o&&(n!==m.UNKNOWN||e.treeAdapter.getTagName(i)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,o))break}}function cS(e,t){switch(t.tagID){case m.A:case m.B:case m.I:case m.S:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.NOBR:case m.SMALL:case m.STRIKE:case m.STRONG:sy(e,t);break;case m.P:cg(e);break;case m.DL:case m.UL:case m.OL:case m.DIR:case m.DIV:case m.NAV:case m.PRE:case m.MAIN:case m.MENU:case m.ASIDE:case m.BUTTON:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.ADDRESS:case m.ARTICLE:case m.DETAILS:case m.SECTION:case m.SUMMARY:case m.LISTING:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:cm(e,t);break;case m.LI:cy(e);break;case m.DD:case m.DT:c_(e,t);break;case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:cv(e);break;case m.BR:cT(e);break;case m.BODY:ch(e,t);break;case m.HTML:cp(e,t);break;case m.FORM:cb(e);break;case m.APPLET:case m.OBJECT:case m.MARQUEE:cE(e,t);break;case m.TEMPLATE:sI(e,t);break;default:cA(e,t)}}function cx(e,t){e.tmplInsertionModeStack.length>0?c8(e,t):sT(e,t)}function cC(e,t){var r;t.tagID===m.SCRIPT&&(null===(r=e.scriptHandler)||void 0===r||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function cw(e,t){e._err(t,i.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function cN(e,t){if(su.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=y.IN_TABLE_TEXT,t.type){case o.CHARACTER:cB(e,t);break;case o.WHITESPACE_CHARACTER:cU(e,t)}else cj(e,t)}function cM(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,d.HTML),e.insertionMode=y.IN_CAPTION}function ck(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,d.HTML),e.insertionMode=y.IN_COLUMN_GROUP}function cO(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(p.COLGROUP,m.COLGROUP),e.insertionMode=y.IN_COLUMN_GROUP,cY(e,t)}function cR(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,d.HTML),e.insertionMode=y.IN_TABLE_BODY}function cI(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(p.TBODY,m.TBODY),e.insertionMode=y.IN_TABLE_BODY,cZ(e,t)}function cP(e,t){e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function cD(e,t){s5(t)?e._appendElement(t,d.HTML):cj(e,t),t.ackSelfClosing=!0}function c$(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,d.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function cL(e,t){switch(t.tagID){case m.TD:case m.TH:case m.TR:cI(e,t);break;case m.STYLE:case m.SCRIPT:case m.TEMPLATE:sO(e,t);break;case m.COL:cO(e,t);break;case m.FORM:c$(e,t);break;case m.TABLE:cP(e,t);break;case m.TBODY:case m.TFOOT:case m.THEAD:cR(e,t);break;case m.INPUT:cD(e,t);break;case m.CAPTION:cM(e,t);break;case m.COLGROUP:ck(e,t);break;default:cj(e,t)}}function cF(e,t){switch(t.tagID){case m.TABLE:e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode());break;case m.TEMPLATE:sI(e,t);break;case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:cj(e,t)}}function cj(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,sB(e,t),e.fosterParentingEnabled=r}function cU(e,t){e.pendingCharacterTokens.push(t)}function cB(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function cH(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r0&&e.openElements.currentTagId===m.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===m.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop();break;case m.OPTION:e.openElements.currentTagId===m.OPTION&&e.openElements.pop();break;case m.SELECT:e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode());break;case m.TEMPLATE:sI(e,t)}}function c3(e,t){let r=t.tagID;r===m.CAPTION||r===m.TABLE||r===m.TBODY||r===m.TFOOT||r===m.THEAD||r===m.TR||r===m.TD||r===m.TH?(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e._processStartTag(t)):c1(e,t)}function c4(e,t){let r=t.tagID;r===m.CAPTION||r===m.TABLE||r===m.TBODY||r===m.TFOOT||r===m.THEAD||r===m.TR||r===m.TD||r===m.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e.onEndTag(t)):c2(e,t)}function c6(e,t){switch(t.tagID){case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:sO(e,t);break;case m.CAPTION:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:e.tmplInsertionModeStack[0]=y.IN_TABLE,e.insertionMode=y.IN_TABLE,cL(e,t);break;case m.COL:e.tmplInsertionModeStack[0]=y.IN_COLUMN_GROUP,e.insertionMode=y.IN_COLUMN_GROUP,cY(e,t);break;case m.TR:e.tmplInsertionModeStack[0]=y.IN_TABLE_BODY,e.insertionMode=y.IN_TABLE_BODY,cZ(e,t);break;case m.TD:case m.TH:e.tmplInsertionModeStack[0]=y.IN_ROW,e.insertionMode=y.IN_ROW,cX(e,t);break;default:e.tmplInsertionModeStack[0]=y.IN_BODY,e.insertionMode=y.IN_BODY,cf(e,t)}}function c5(e,t){t.tagID===m.TEMPLATE&&sI(e,t)}function c8(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):sT(e,t)}function c9(e,t){t.tagID===m.HTML?cf(e,t):ue(e,t)}function c7(e,t){var r;if(t.tagID===m.HTML){if(e.fragmentContext||(e.insertionMode=y.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===m.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];!n||(null===(r=e.treeAdapter.getNodeSourceCodeLocation(n))||void 0===r?void 0:r.endTag)||e._setEndLocation(n,t)}}else ue(e,t)}function ue(e,t){e.insertionMode=y.IN_BODY,sB(e,t)}function ut(e,t){switch(t.tagID){case m.HTML:cf(e,t);break;case m.FRAMESET:e._insertElement(t,d.HTML);break;case m.FRAME:e._appendElement(t,d.HTML),t.ackSelfClosing=!0;break;case m.NOFRAMES:sO(e,t)}}function ur(e,t){t.tagID!==m.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===m.FRAMESET||(e.insertionMode=y.AFTER_FRAMESET))}function un(e,t){switch(t.tagID){case m.HTML:cf(e,t);break;case m.NOFRAMES:sO(e,t)}}function ui(e,t){t.tagID===m.HTML&&(e.insertionMode=y.AFTER_AFTER_FRAMESET)}function uo(e,t){t.tagID===m.HTML?cf(e,t):ua(e,t)}function ua(e,t){e.insertionMode=y.IN_BODY,sB(e,t)}function us(e,t){switch(t.tagID){case m.HTML:cf(e,t);break;case m.NOFRAMES:sO(e,t)}}function uc(e,t){t.chars=oK,e._insertCharacters(t)}function uu(e,t){e._insertCharacters(t),e.framesetOk=!1}function ul(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==d.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function ud(e,t){if(a8(t))ul(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===d.MATHML?a9(t):n===d.SVG&&(st(t),a7(t)),se(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function uf(e,t){if(t.tagID===m.P||t.tagID===m.BR){ul(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){let n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===d.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(n);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(r);break}}}let uh=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function up(e,t){return function(r){let n;let i=0,o="";for(;n=e.exec(r);)i!==n.index&&(o+=r.substring(i,n.index)),o+=t.get(n[0].charCodeAt(0)),i=n.index+1;return o+r.substring(i)}}null!=String.prototype.codePointAt||((e,t)=>(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)),up(/[&<>'"]/g,uh),up(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),up(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),p.AREA,p.BASE,p.BASEFONT,p.BGSOUND,p.BR,p.COL,p.EMBED,p.FRAME,p.HR,p.IMG,p.INPUT,p.KEYGEN,p.LINK,p.META,p.PARAM,p.SOURCE,p.TRACK,p.WBR;let um=ug("end"),ub=ug("start");function ug(e){return t;function t(t){let r=t&&t.position&&t.position[e]||{};if("number"==typeof r.line&&r.line>0&&"number"==typeof r.column&&r.column>0)return{line:r.line,column:r.column,offset:"number"==typeof r.offset&&r.offset>-1?r.offset:void 0}}}let uy=function(e){if(null==e)return uA;if("function"==typeof e)return uT(e);if("object"==typeof e)return Array.isArray(e)?u_(e):uv(e);if("string"==typeof e)return uE(e);throw Error("Expected function, string, or object as test")};function u_(e){let t=[],r=-1;for(;++r":""))+")"})}return l;function l(){let u,l,d,f=uC;if((!t||o(e,i,c[c.length-1]||void 0))&&(f=uO(r(e,c)))[0]===uN)return f;if("children"in e&&e.children){let t=e;if(t.children&&f[0]!==uM)for(l=(n?t.children.length:-1)+a,d=c.concat(t);l>-1&&l0?e+" "+n(t):n(t)},"")}r.d(t,{R:function(){return i},Z:function(){return n}})},42711:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(92777),i=r(82262);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw o}}}}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&(r[i.substring(0,a).trim()]=i.substring(a+1).trim())}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"getCookie",value:function(e){return this.getCookies()[e]}},{key:"setCookie",value:function(e,t,r){var n=[];for(var i in n.push("".concat(e,"=").concat(t)),r)n.push("".concat(i,"=").concat(r[i]));document.cookie=n.join(";");var o=new CustomEvent("cookieChange",{detail:{cookieName:e}});window.dispatchEvent(o)}},{key:"deleteCookie",value:function(e){document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;");var t=new CustomEvent("cookieChange",{detail:{cookieName:e}});window.dispatchEvent(t)}}]),e}()},59670:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(92777),i=r(82262),o=r(59499),a='',s='\n\n \n \n \n \n \n \n \n \n \n \n \n \n\n\n',c={path:"M65.2,40.7C29.6,40.7,1,51.4,1,64.8c0,13.3,28.8,24.1,64.2,24.1c35.4,0,64.2-10.8,64.2-24.1 C129.5,51.6,100.6,40.7,65.2,40.7z M65.2,86.8c-34,0-61.5-9.8-61.5-22c0-12.1,27.6-22,61.5-22c34,0,61.5,9.8,61.5,22 C126.8,77,99.2,86.8,65.2,86.8z M90.5,69.7c0,0.1,0,0.2,0,0.2c0,0.1,0.2,0.2,0.3,0.3c0,0,0.1,0.1,0,0.2c-0.4,0.9-0.8,1.4-1.3,2.1 c-0.5,0.7-1,1.2-1.6,1.7c-0.9,0.8-2.3,1.6-3.4,1.1c-0.5-0.3-0.7-0.9-0.7-1.5c0-1.5,0.7-3.1,2-4.7c1.5-1.9,3.3-2.9,4.4-2.3 C91.4,67.3,91.1,68.7,90.5,69.7z M58.7,59.7c-0.1-0.6,0.1-1.3,0.7-1.8c0.3-0.3,0.7-0.3,1-0.1c0.3,0.2,0.1,0.8-0.1,1.3 c-0.3,0.5-0.8,0.9-1.3,0.9C58.8,59.9,58.7,59.9,58.7,59.7z M65.2,44.7c-32.8,0-59.4,9.1-59.4,20.2C5.8,75.9,32.4,85,65.2,85 c32.8,0,59.4-9.1,59.4-20.2C124.6,53.7,98,44.7,65.2,44.7z M34.7,78.1c-3.5,0-6.6-2.1-7-5.9c-0.2-2.1,0.4-3.9,1.6-5.5 c1-1.4,2.8-2.5,4.3-2.8c0.5-0.1,1.1,0,1.4,0.3c0.4,0.5,0.3,1-0.1,1.3c-1.1,0.6-2.5,1.6-3.2,2.9c-0.6,1.1-0.7,2.5,0.2,3.7 c1.4,2.1,5.3,2.2,9-1.2c0.9-0.8,1.7-1.6,2.5-2.6c1.6-1.8,2.1-2.5,4.3-5.5c0,0,0-0.1,0-0.1c0,0,0,0-0.1-0.1c-1.4,0-2.7,0.5-3.9,1.4 c-0.3,0.3-0.8,0.2-1.1-0.1c-0.2-0.4-0.1-0.9,0.3-1.1c1.9-1.4,4.1-1.6,6.2-2c0,0,0.2,0,0.3-0.2c0.9-1.1,1.6-2.2,2.5-3.3 c1-1.2,2.2-2.2,3.1-3.1c1.3-1.1,2.2-1.5,3-2c0.2-0.1,0-0.3-0.1-0.3c-4.8-0.9-9.8-2.1-14.5-0.3c-3.3,1.2-4.7,3.8-4,5.6 c0.5,1.2,2.1,1.4,3.7,0.7c1.3-0.6,2.4-1.6,3.3-2.9c0.5-0.7,1.4-0.2,0.9,1c-1.4,3.3-4.1,5.9-7.3,6c-2.8,0.1-4.5-1.9-4.5-4.4 c0-4.9,5.5-8.2,11.3-8.7c7-0.6,13.6,1.3,20.5,2.1c5.3,0.6,10.4,0.7,15.7-0.6c0.6-0.1,1.1,0.3,1,0.9c-0.1,0.9-0.8,1.8-2.5,2.8 c-2,1.1-4.1,1.4-6.3,1.4c-5.3,0-10.2-2-15.3-3.1c0,0.2,0.1,0.5-0.1,0.6c-2.8,2.1-5.4,4.2-7.1,7.1c-0.1,0.1,0,0.1,0.1,0.1 c1.5-0.1,2.8-0.1,4.2-0.2c0.2,0,0.2-0.1,0.2-0.3c-0.1-1,0.2-2.2,1.1-3c0.9-0.8,2.1-0.9,2.8-0.3c0.9,0.7,0.8,1.9,0.3,2.8 c-0.5,0.9-1.3,1.4-2,1.7c0,0-0.2,0-0.1,0.2c0,0.2,1.1,0.8,1.2,1c0.1,0.1,0,0.4-0.1,0.5c-0.1,0.1-0.3,0.2-0.5,0.2 c-0.2,0-0.3-0.1-0.5-0.2c-0.5-0.3-1.1-0.7-1.4-1.2c-0.1-0.2-0.2-0.2-0.5-0.2c-1.5,0.1-3.8,0.3-5.4,0.5c-0.4,0-0.4,0.1-0.5,0.3 c-2.5,4.1-5.2,8.6-8.2,11.6C40.2,77.2,37.5,78.1,34.7,78.1z M103,57.9c-0.5,0.8-9.9,15.2-10.5,16.6c-0.2,0.5-0.2,0.8,0,1.1 c0.5,0.7,1.6,0.3,2.3-0.2c2-1.4,3.4-3.1,5-4.6c0.1-0.1,0.2-0.1,0.3,0c0.2,0.2,0.6,0.5,0.8,0.7c0.1,0.1,0.1,0.2,0,0.3 c-1.5,1.9-3.2,3.6-4.8,4.9c-2.5,1.9-5,2.4-6.3,1.2c-0.5-0.5-0.7-1.1-0.7-1.7c0-0.3-0.2-0.3-0.3-0.2c-1.5,1.5-4.1,3.1-6.4,1.9 c-2-1-2.4-3.3-2-5.3c0,0,0-0.3-0.3-0.2c-0.4,0.3-0.9,0.6-1.6,0.9c-0.8,0.3-1.2,0.4-2,0.4c-1,0-1.8-0.4-2.4-1.4 c-0.3-0.5-0.5-1.3-0.5-1.9c0-0.1-0.1-0.2-0.2,0c-1.6,2.4-3.1,4.8-4.7,7.3c-0.1,0.1-0.2,0.2-0.3,0.2c-1,0-2.1,0-3.1,0 c-0.2,0-0.3-0.1-0.2-0.3c0.6-1.1,3.6-5.5,5.7-9.3c0.6-1,0.5-1.6,0.1-1.8c-0.4-0.3-1.3,0.1-2.1,0.7c-2,1.5-3.7,3.9-4.6,5 c-0.5,0.6-1,1.6-2.3,3c-2.1,2.3-4.9,3.6-7.5,2.7c-1.5-0.5-2.5-1.7-2.9-3.1c-0.1-0.3-0.2-0.4-0.4-0.2c-0.4,0.5-1.3,1.3-2.1,1.8 c-0.1,0.1-0.3,0.2-0.5,0.1c-0.2-0.1-0.7-0.8-0.8-1.1c-0.1-0.2,0-0.3,0.1-0.4c1.1-0.9,1.6-1.5,2.1-2c0.3-0.4,0.6-0.9,0.9-1.7 c0.6-1.6,2.1-4.6,5-6.2c1.1-0.6,2.2-1,3.5-1.2c0.5-0.1,1,0,1.1,0.4c0.1,0.2,0.2,0.6,0.3,0.8c0.1,0.2,0,0.3-0.2,0.4 c-1.7,0.7-3.4,1.7-4.6,3.3c-1.4,1.8-1.7,4-0.8,5.2c0.7,0.9,1.7,1.1,2.8,0.7c1.6-0.5,2.9-1.9,3.6-3.6c0.7-1.8,0.9-3.8,0.3-5.7 c-0.1-0.3,0-0.6,0.2-0.7c0.4-0.3,1-0.6,1.1-0.7c0.4-0.2,0.8-0.1,1,0.2c0.6,0.8,0.9,2,0.9,3.3c0,0.3,0.1,0.3,0.3,0.1 c1-1.1,2-2.2,3-3.1c1-0.8,2.3-1.4,3.4-1.4c1.5,0,2.3,1.1,2.2,2.9c0,0.2,0.2,0.2,0.3,0.1c0.5-0.7,0.8-1,1.3-1.4 c1.1-0.9,2.1-1.3,3.3-1.2c1.4,0.1,2.5,1.4,2.3,2.8c-0.1,0.9-0.7,1.8-1.5,2.2c-0.7,0.4-1.6,0.3-2.2-0.2c-0.5-0.4-0.6-1.1-0.5-1.7 c0-0.1-0.1-0.3-0.3-0.1c-1.4,1.4-1.5,3.2-0.6,4.1c1,0.9,2.4,0.3,3.5-0.4c2-1.3,3.5-3,5.2-4.4c1.2-0.9,2.5-1.7,4-1.9 c0.8-0.1,1.6-0.1,2.4,0.3c1.1,0.4,1.7,1.3,1.8,2.1c0,0.2,0.2,0.3,0.3,0.1c0.8-1.3,5.4-8.1,5.8-8.8c0.1-0.2,0.2-0.3,0.5-0.3 c1,0,2.3,0,3.2,0C103,57.7,103,57.8,103,57.9z",height:100,width:130},u={height:100,width:160,html:''},l={html:'',width:50,height:50},d={html:'\n \n \n \n \n \n \n \n \n \n \n '},f={amex:{path:"M48 480C21.49 480 0 458.5 0 432V80C0 53.49 21.49 32 48 32H528C554.5 32 576 53.49 576 80V82.43H500.5L483.5 130L466.6 82.43H369.4V145.6L341.3 82.43H262.7L181 267.1H246.8V430.9H450.5L482.4 395.8L514.3 430.9H576V432C576 458.5 554.5 480 528 480H48zM482.6 364L440.4 410.3H390.5L458 338.6L390.5 266.1H441.9L483.4 312.8L525.4 266.1H576L508 338.2L576 410.3H524.6L482.6 364zM576 296.9V380.2L536.7 338.3L576 296.9zM307.6 377.1H390.6V410.3H268.6V267.1H390.6V300.2H307.6V322.6H388.5V354.9H307.6V377.2V377.1zM537.3 145.7L500.4 246.3H466L429.2 146V246.3H390.5V103H451.7L483.6 192.3L515.8 103H576V246.3H537.3V145.7zM334.5 217.6H268.6L256.7 246.3H213.7L276.1 103H327.3L390.6 246.3H346.5L334.5 217.6zM301.5 138.5L282 185.4H320.9L301.5 138.5z",width:576,height:512},visa:{height:512,width:576,path:"M470.1 231.3s7.6 37.2 9.3 45H446c3.3-8.9 16-43.5 16-43.5-.2.3 3.3-9.1 5.3-14.9l2.8 13.4zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM152.5 331.2L215.7 176h-42.5l-39.3 106-4.3-21.5-14-71.4c-2.3-9.9-9.4-12.7-18.2-13.1H32.7l-.7 3.1c15.8 4 29.9 9.8 42.2 17.1l35.8 135h42.5zm94.4.2L272.1 176h-40.2l-25.1 155.4h40.1zm139.9-50.8c.2-17.7-10.6-31.2-33.7-42.3-14.1-7.1-22.7-11.9-22.7-19.2.2-6.6 7.3-13.4 23.1-13.4 13.1-.3 22.7 2.8 29.9 5.9l3.6 1.7 5.5-33.6c-7.9-3.1-20.5-6.6-36-6.6-39.7 0-67.6 21.2-67.8 51.4-.3 22.3 20 34.7 35.2 42.2 15.5 7.6 20.8 12.6 20.8 19.3-.2 10.4-12.6 15.2-24.1 15.2-16 0-24.6-2.5-37.7-8.3l-5.3-2.5-5.6 34.9c9.4 4.3 26.8 8.1 44.8 8.3 42.2.1 69.7-20.8 70-53zM528 331.4L495.6 176h-31.1c-9.6 0-16.9 2.8-21 12.9l-59.7 142.5H426s6.9-19.2 8.4-23.3H486c1.2 5.5 4.8 23.3 4.8 23.3H528z"},discover:{height:512,width:576,path:"M520.4 196.1c0-7.9-5.5-12.1-15.6-12.1h-4.9v24.9h4.7c10.3 0 15.8-4.4 15.8-12.8zM528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-44.1 138.9c22.6 0 52.9-4.1 52.9 24.4 0 12.6-6.6 20.7-18.7 23.2l25.8 34.4h-19.6l-22.2-32.8h-2.2v32.8h-16zm-55.9.1h45.3v14H444v18.2h28.3V217H444v22.2h29.3V253H428zm-68.7 0l21.9 55.2 22.2-55.2h17.5l-35.5 84.2h-8.6l-35-84.2zm-55.9-3c24.7 0 44.6 20 44.6 44.6 0 24.7-20 44.6-44.6 44.6-24.7 0-44.6-20-44.6-44.6 0-24.7 20-44.6 44.6-44.6zm-49.3 6.1v19c-20.1-20.1-46.8-4.7-46.8 19 0 25 27.5 38.5 46.8 19.2v19c-29.7 14.3-63.3-5.7-63.3-38.2 0-31.2 33.1-53 63.3-38zm-97.2 66.3c11.4 0 22.4-15.3-3.3-24.4-15-5.5-20.2-11.4-20.2-22.7 0-23.2 30.6-31.4 49.7-14.3l-8.4 10.8c-10.4-11.6-24.9-6.2-24.9 2.5 0 4.4 2.7 6.9 12.3 10.3 18.2 6.6 23.6 12.5 23.6 25.6 0 29.5-38.8 37.4-56.6 11.3l10.3-9.9c3.7 7.1 9.9 10.8 17.5 10.8zM55.4 253H32v-82h23.4c26.1 0 44.1 17 44.1 41.1 0 18.5-13.2 40.9-44.1 40.9zm67.5 0h-16v-82h16zM544 433c0 8.2-6.8 15-15 15H128c189.6-35.6 382.7-139.2 416-160zM74.1 191.6c-5.2-4.9-11.6-6.6-21.9-6.6H48v54.2h4.2c10.3 0 17-2 21.9-6.4 5.7-5.2 8.9-12.8 8.9-20.7s-3.2-15.5-8.9-20.5z"},diners:{height:512,width:576,path:"M239.7 79.9c-96.9 0-175.8 78.6-175.8 175.8 0 96.9 78.9 175.8 175.8 175.8 97.2 0 175.8-78.9 175.8-175.8 0-97.2-78.6-175.8-175.8-175.8zm-39.9 279.6c-41.7-15.9-71.4-56.4-71.4-103.8s29.7-87.9 71.4-104.1v207.9zm79.8.3V151.6c41.7 16.2 71.4 56.7 71.4 104.1s-29.7 87.9-71.4 104.1zM528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM329.7 448h-90.3c-106.2 0-193.8-85.5-193.8-190.2C45.6 143.2 133.2 64 239.4 64h90.3c105 0 200.7 79.2 200.7 193.8 0 104.7-95.7 190.2-200.7 190.2z"},jcb:{height:512,width:576,path:"M431.5 244.3V212c41.2 0 38.5.2 38.5.2 7.3 1.3 13.3 7.3 13.3 16 0 8.8-6 14.5-13.3 15.8-1.2.4-3.3.3-38.5.3zm42.8 20.2c-2.8-.7-3.3-.5-42.8-.5v35c39.6 0 40 .2 42.8-.5 7.5-1.5 13.5-8 13.5-17 0-8.7-6-15.5-13.5-17zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM182 192.3h-57c0 67.1 10.7 109.7-35.8 109.7-19.5 0-38.8-5.7-57.2-14.8v28c30 8.3 68 8.3 68 8.3 97.9 0 82-47.7 82-131.2zm178.5 4.5c-63.4-16-165-14.9-165 59.3 0 77.1 108.2 73.6 165 59.2V287C312.9 311.7 253 309 253 256s59.8-55.6 107.5-31.2v-28zM544 286.5c0-18.5-16.5-30.5-38-32v-.8c19.5-2.7 30.3-15.5 30.3-30.2 0-19-15.7-30-37-31 0 0 6.3-.3-120.3-.3v127.5h122.7c24.3.1 42.3-12.9 42.3-33.2z"},mastercard:{height:512,width:576,path:"M482.9 410.3c0 6.8-4.6 11.7-11.2 11.7-6.8 0-11.2-5.2-11.2-11.7 0-6.5 4.4-11.7 11.2-11.7 6.6 0 11.2 5.2 11.2 11.7zm-310.8-11.7c-7.1 0-11.2 5.2-11.2 11.7 0 6.5 4.1 11.7 11.2 11.7 6.5 0 10.9-4.9 10.9-11.7-.1-6.5-4.4-11.7-10.9-11.7zm117.5-.3c-5.4 0-8.7 3.5-9.5 8.7h19.1c-.9-5.7-4.4-8.7-9.6-8.7zm107.8.3c-6.8 0-10.9 5.2-10.9 11.7 0 6.5 4.1 11.7 10.9 11.7 6.8 0 11.2-4.9 11.2-11.7 0-6.5-4.4-11.7-11.2-11.7zm105.9 26.1c0 .3.3.5.3 1.1 0 .3-.3.5-.3 1.1-.3.3-.3.5-.5.8-.3.3-.5.5-1.1.5-.3.3-.5.3-1.1.3-.3 0-.5 0-1.1-.3-.3 0-.5-.3-.8-.5-.3-.3-.5-.5-.5-.8-.3-.5-.3-.8-.3-1.1 0-.5 0-.8.3-1.1 0-.5.3-.8.5-1.1.3-.3.5-.3.8-.5.5-.3.8-.3 1.1-.3.5 0 .8 0 1.1.3.5.3.8.3 1.1.5s.2.6.5 1.1zm-2.2 1.4c.5 0 .5-.3.8-.3.3-.3.3-.5.3-.8 0-.3 0-.5-.3-.8-.3 0-.5-.3-1.1-.3h-1.6v3.5h.8V426h.3l1.1 1.4h.8l-1.1-1.3zM576 81v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V81c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM64 220.6c0 76.5 62.1 138.5 138.5 138.5 27.2 0 53.9-8.2 76.5-23.1-72.9-59.3-72.4-171.2 0-230.5-22.6-15-49.3-23.1-76.5-23.1-76.4-.1-138.5 62-138.5 138.2zm224 108.8c70.5-55 70.2-162.2 0-217.5-70.2 55.3-70.5 162.6 0 217.5zm-142.3 76.3c0-8.7-5.7-14.4-14.7-14.7-4.6 0-9.5 1.4-12.8 6.5-2.4-4.1-6.5-6.5-12.2-6.5-3.8 0-7.6 1.4-10.6 5.4V392h-8.2v36.7h8.2c0-18.9-2.5-30.2 9-30.2 10.2 0 8.2 10.2 8.2 30.2h7.9c0-18.3-2.5-30.2 9-30.2 10.2 0 8.2 10 8.2 30.2h8.2v-23zm44.9-13.7h-7.9v4.4c-2.7-3.3-6.5-5.4-11.7-5.4-10.3 0-18.2 8.2-18.2 19.3 0 11.2 7.9 19.3 18.2 19.3 5.2 0 9-1.9 11.7-5.4v4.6h7.9V392zm40.5 25.6c0-15-22.9-8.2-22.9-15.2 0-5.7 11.9-4.8 18.5-1.1l3.3-6.5c-9.4-6.1-30.2-6-30.2 8.2 0 14.3 22.9 8.3 22.9 15 0 6.3-13.5 5.8-20.7.8l-3.5 6.3c11.2 7.6 32.6 6 32.6-7.5zm35.4 9.3l-2.2-6.8c-3.8 2.1-12.2 4.4-12.2-4.1v-16.6h13.1V392h-13.1v-11.2h-8.2V392h-7.6v7.3h7.6V416c0 17.6 17.3 14.4 22.6 10.9zm13.3-13.4h27.5c0-16.2-7.4-22.6-17.4-22.6-10.6 0-18.2 7.9-18.2 19.3 0 20.5 22.6 23.9 33.8 14.2l-3.8-6c-7.8 6.4-19.6 5.8-21.9-4.9zm59.1-21.5c-4.6-2-11.6-1.8-15.2 4.4V392h-8.2v36.7h8.2V408c0-11.6 9.5-10.1 12.8-8.4l2.4-7.6zm10.6 18.3c0-11.4 11.6-15.1 20.7-8.4l3.8-6.5c-11.6-9.1-32.7-4.1-32.7 15 0 19.8 22.4 23.8 32.7 15l-3.8-6.5c-9.2 6.5-20.7 2.6-20.7-8.6zm66.7-18.3H408v4.4c-8.3-11-29.9-4.8-29.9 13.9 0 19.2 22.4 24.7 29.9 13.9v4.6h8.2V392zm33.7 0c-2.4-1.2-11-2.9-15.2 4.4V392h-7.9v36.7h7.9V408c0-11 9-10.3 12.8-8.4l2.4-7.6zm40.3-14.9h-7.9v19.3c-8.2-10.9-29.9-5.1-29.9 13.9 0 19.4 22.5 24.6 29.9 13.9v4.6h7.9v-51.7zm7.6-75.1v4.6h.8V302h1.9v-.8h-4.6v.8h1.9zm6.6 123.8c0-.5 0-1.1-.3-1.6-.3-.3-.5-.8-.8-1.1-.3-.3-.8-.5-1.1-.8-.5 0-1.1-.3-1.6-.3-.3 0-.8.3-1.4.3-.5.3-.8.5-1.1.8-.5.3-.8.8-.8 1.1-.3.5-.3 1.1-.3 1.6 0 .3 0 .8.3 1.4 0 .3.3.8.8 1.1.3.3.5.5 1.1.8.5.3 1.1.3 1.4.3.5 0 1.1 0 1.6-.3.3-.3.8-.5 1.1-.8.3-.3.5-.8.8-1.1.3-.6.3-1.1.3-1.4zm3.2-124.7h-1.4l-1.6 3.5-1.6-3.5h-1.4v5.4h.8v-4.1l1.6 3.5h1.1l1.4-3.5v4.1h1.1v-5.4zm4.4-80.5c0-76.2-62.1-138.3-138.5-138.3-27.2 0-53.9 8.2-76.5 23.1 72.1 59.3 73.2 171.5 0 230.5 22.6 15 49.5 23.1 76.5 23.1 76.4.1 138.5-61.9 138.5-138.4z"}},h={"fal-cloud-bolt-sun":{html:'\n \n \n \n \n \n \n ',width:576,height:512},"fa-ellipsis":{path:"M16 12.25c-2.071 0-3.75 1.679-3.75 3.75s1.679 3.75 3.75 3.75c2.071 0 3.75-1.679 3.75-3.75v0c-0.003-2.070-1.68-3.747-3.75-3.75h-0zM16 18.25c-1.243 0-2.25-1.007-2.25-2.25s1.007-2.25 2.25-2.25c1.243 0 2.25 1.007 2.25 2.25v0c-0.002 1.242-1.008 2.248-2.25 2.25h-0zM5 12.25c-2.071 0-3.75 1.679-3.75 3.75s1.679 3.75 3.75 3.75c2.071 0 3.75-1.679 3.75-3.75v0c-0.003-2.070-1.68-3.747-3.75-3.75h-0zM5 18.25c-1.243 0-2.25-1.007-2.25-2.25s1.007-2.25 2.25-2.25c1.243 0 2.25 1.007 2.25 2.25v0c-0.002 1.242-1.008 2.248-2.25 2.25h-0zM27 12.25c-2.071 0-3.75 1.679-3.75 3.75s1.679 3.75 3.75 3.75c2.071 0 3.75-1.679 3.75-3.75v0c-0.002-2.070-1.68-3.748-3.75-3.75h-0zM27 18.25c-1.243 0-2.25-1.007-2.25-2.25s1.007-2.25 2.25-2.25c1.243 0 2.25 1.007 2.25 2.25v0c-0.002 1.242-1.008 2.248-2.25 2.25h-0z",width:32,height:32},"fal-circle-info":{height:24,width:24,path:"M11 7v2h2V7zm3 10v-2h-1v-4h-3v2h1v2h-1v2zm8-5c0 5.5-4.5 10-10 10S2 17.5 2 12S6.5 2 12 2s10 4.5 10 10m-2 0c0-4.42-3.58-8-8-8s-8 3.58-8 8s3.58 8 8 8s8-3.58 8-8"}},p={"fa-palette":{width:512,height:512,path:"M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3H344c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"},"fa-location-dot":{width:384,height:512,path:"M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"},"fa-sun":{width:512,height:512,path:"M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"},"fa-sunrise":{path:"M551.1 463.1L491.5 464l29.38-44.75c7.375-11.12 8.75-25.25 3.625-37.75c-5.25-12.38-16.12-21.5-29.25-24.25l-70.75-14.5L410 272c-2.75-13.25-11.75-24.25-24.25-29.38c-12.5-5.25-26.62-3.75-37.63 3.625L287.8 286L227.6 246.1c-22.5-14.88-56.5-.875-61.88 25.62l-14.5 70.88L80.63 357c-13.38 2.75-24.12 11.75-29.38 24.25c-5 12.5-3.75 26.5 3.75 37.75L84.75 464l-60.75-.0065C10.8 463.1 0 474.8 0 487.1S10.8 512 24 512H551.1C565.2 512 576 501.2 576 487.1S565.2 463.1 551.1 463.1zM234.6 464c4.625-15.62 16-29 32.13-35.75c28.5-11.75 61.5 1.875 73.25 30.38c.75 1.75 1.125 3.625 1.625 5.375H234.6zM434 464h-43.25c-1.25-8-3.125-16-6.375-23.75c-21.88-53-82.88-78.25-135.9-56.38C213.8 398.3 191.1 429.4 185.8 464h-43.5l-40.88-62.13l90.88-18.62l18.5-90.88l77.38 51.25l77.25-51.13l18.75 90.88l90.75 18.75L434 464zM224.1 120.1L264 81.94V200C264 213.3 274.8 224 288 224s24-10.75 24-24V81.94l39.03 39.03C355.7 125.7 361.9 128 368 128s12.28-2.344 16.97-7.031c9.375-9.375 9.375-24.56 0-33.94l-80-80c-9.375-9.375-24.56-9.375-33.94 0l-80 80c-9.375 9.375-9.375 24.56 0 33.94S215.6 130.3 224.1 120.1z",width:576,height:512},"fa-crosshairs":{width:512,height:512,path:"M256 0c17.7 0 32 14.3 32 32V42.4c93.7 13.9 167.7 88 181.6 181.6H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H469.6c-13.9 93.7-88 167.7-181.6 181.6V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V469.6C130.3 455.7 56.3 381.7 42.4 288H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H42.4C56.3 130.3 130.3 56.3 224 42.4V32c0-17.7 14.3-32 32-32zM107.4 288c12.5 58.3 58.4 104.1 116.6 116.6V384c0-17.7 14.3-32 32-32s32 14.3 32 32v20.6c58.3-12.5 104.1-58.4 116.6-116.6H384c-17.7 0-32-14.3-32-32s14.3-32 32-32h20.6C392.1 165.7 346.3 119.9 288 107.4V128c0 17.7-14.3 32-32 32s-32-14.3-32-32V107.4C165.7 119.9 119.9 165.7 107.4 224H128c17.7 0 32 14.3 32 32s-14.3 32-32 32H107.4zM256 224a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"},"fa-arrows-rotate":{width:512,height:512,path:"M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H352c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V432c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H160c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"},"fa-hand":{height:512,width:512,path:"M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V336c0 1.5 0 3.1 .1 4.6L67.6 283c-16-15.2-41.3-14.6-56.6 1.4s-14.6 41.3 1.4 56.6L124.8 448c43.1 41.1 100.4 64 160 64H304c97.2 0 176-78.8 176-176V128c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V32z"},"fa-circle-info":{height:512,width:512,path:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"},"fa-gear":{height:512,width:512,path:"M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"},"fas-ellipsis":{height:512,width:448,path:"M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"}},m={width:512,height:512,path:"M519.74,48.88S295.06,.1,295.06,.1c-1.37-.72-256.41,42.34-257.96,42.27-10.92,1.53-11.51,18.19-11.36,18.93,0,0,0,44.72,0,44.72,0,3.74,2.86,6.59,6.02,6.01,7.03-.15,31.47-7.79,37.99-5.03,0,0,162.56,40.69,162.56,40.69,3.56,.89,6.12,4.55,6.12,8.78,0,0,0,270.6,0,270.6,0,4.79-2.62,9.06-6.54,10.64-3.82,1.86-55.81,15.98-58.01,17.15h0s-.27,.02,0-.01c-3.22-.78,9.44-2.56,9.29-9.98,0,0,0-269.35,0-269.35,0-3.27-1.95-6.11-4.7-6.84,0,0-170.04-45.33-170.04-45.33-3.8-1.01-7.42,2.33-7.42,6.84s0,253.73,0,253.73c0,3.04,1.69,5.74,4.19,6.68l24.33,9.14c-5.7,1.41-3.3,12.23-3.78,16.37,0,2.63,1.45,4.97,3.59,5.78,0,0,266.48,101.8,266.48,101.8,3.37,1.29,6.83-1.64,6.83-5.78V133.66c0-8.72,5.15-16.28,12.42-18.23,0,0,204.89-54.63,204.89-54.63,5.51-1.47,5.35-10.71-.21-11.92Z"},b={width:512,height:540,path:"M519.74,48.88S295.06,.1,295.06,.1c-1.37-.72-256.41,42.34-257.96,42.27-10.92,1.53-11.51,18.19-11.36,18.93,0,0,0,44.72,0,44.72,0,3.74,2.86,6.59,6.02,6.01,7.03-.15,31.47-7.79,37.99-5.03,0,0,162.56,40.69,162.56,40.69,3.56,.89,6.12,4.55,6.12,8.78,0,0,0,270.6,0,270.6,0,4.79-2.62,9.06-6.54,10.64-3.82,1.86-55.81,15.98-58.01,17.15h0s-.27,.02,0-.01c-3.22-.78,9.44-2.56,9.29-9.98,0,0,0-269.35,0-269.35,0-3.27-1.95-6.11-4.7-6.84,0,0-170.04-45.33-170.04-45.33-3.8-1.01-7.42,2.33-7.42,6.84s0,253.73,0,253.73c0,3.04,1.69,5.74,4.19,6.68l24.33,9.14c-5.7,1.41-3.3,12.23-3.78,16.37,0,2.63,1.45,4.97,3.59,5.78,0,0,266.48,101.8,266.48,101.8,3.37,1.29,6.83-1.64,6.83-5.78V133.66c0-8.72,5.15-16.28,12.42-18.23,0,0,204.89-54.63,204.89-54.63,5.51-1.47,5.35-10.71-.21-11.92Z"},g={html:'\n \n \n \n \n \n '},y={html:'\n \n \n \n \n \n '},_={height:256,width:256,html:'\n\n'},v={"fa-mailbox":{path:"M184 192h-80C90.75 192 80 202.7 80 216c0 13.25 10.75 24 24 24h80c13.25 0 24-10.75 24-24C208 202.7 197.3 192 184 192zM432 64h-288C64.5 64 0 128.5 0 208v207.1c0 17.62 14.38 31.1 32 31.1h512c17.62 0 32-14.37 32-31.1V208C576 128.5 511.5 64 432 64zM240 400h-192v-192c0-53 43-96 96-96s96 43 96 96V400zM528 400H288V208C288 171 273.6 137.5 250.6 112H432c53 0 96 43 96 96V400zM464 192h-104c-13.2 0-24 10.8-24 24c0 13.2 10.8 24 24 24H416v32C416 280.8 423.2 288 432 288l32-.0001c8.836 0 16-7.164 16-15.1v-64C480 199.2 472.8 192 464 192z",width:576,height:512},"fa-circle-phone-flip":{path:"M371.9 140l-50.38-11.62c-7.344-1.703-14.88 2.109-17.93 9.062L280.3 191.7c-2.719 6.391-.8828 13.83 4.492 18.22l26.91 22.05c-16.99 34.61-45.14 62.75-79.77 79.75L209.9 284.9C205.6 279.5 198.1 277.6 191.7 280.4L137.5 303.6c-6.953 3-10.74 10.58-9.055 17.88l11.62 50.39c1.633 7.125 7.9 12.11 15.24 12.11c126.1 0 228.7-102.6 228.7-228.8C384 147.9 379 141.7 371.9 140zM256 0c-141.4 0-256 114.6-256 256c0 141.4 114.6 256 256 256s256-114.6 256-256C512 114.6 397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464z",width:512,height:512},"fa-cube":{path:"M234.5 5.7c13.9-5 29.1-5 43.1 0l192 68.6C495 83.4 512 107.5 512 134.6V377.4c0 27-17 51.2-42.5 60.3l-192 68.6c-13.9 5-29.1 5-43.1 0l-192-68.6C17 428.6 0 404.5 0 377.4V134.6c0-27 17-51.2 42.5-60.3l192-68.6zM256 66L82.3 128 256 190l173.7-62L256 66zm32 368.6l160-57.1v-188L288 246.6v188z",height:512,width:512},"fa-temperature-empty":{path:"M112 112c0-26.5 21.5-48 48-48s48 21.5 48 48V276.5c0 17.3 7.1 31.9 15.3 42.5C233.8 332.6 240 349.5 240 368c0 44.2-35.8 80-80 80s-80-35.8-80-80c0-18.5 6.2-35.4 16.7-48.9c8.2-10.6 15.3-25.2 15.3-42.5V112zM160 0C98.1 0 48 50.2 48 112V276.5c0 .1-.1 .3-.2 .6c-.2 .6-.8 1.6-1.7 2.8C27.2 304.2 16 334.8 16 368c0 79.5 64.5 144 144 144s144-64.5 144-144c0-33.2-11.2-63.8-30.1-88.1c-.9-1.2-1.5-2.2-1.7-2.8c-.1-.3-.2-.5-.2-.6V112C272 50.2 221.9 0 160 0zm0 416a48 48 0 1 0 0-96 48 48 0 1 0 0 96z",height:512,width:320},"fa-map":{path:"M554 33.15L384 95.1L212 35.25c-6.5-2.125-13.19-3.249-20.06-3.249c-6.625 0-13.56 .9995-19.94 3.124L20.12 87.1C8 92.75 0 104.6 0 117.6v346.4c0 10.89 10.85 19.02 22 14.84L192 415.1l172 60.75c13 4.25 27 4.375 40 .125l151.9-52.88C568 419.2 576 407.4 576 394.4V48.01C576 37.12 565.2 28.96 554 33.15zM224 90.37l128 45.25v286l-128-45.25V90.37zM48 417.1V129.1l128-44.62v286.3L48 417.1zM528 382.9l-128 44.63V141.2l128-47.25V382.9z",width:576,height:512},"fa-temperature-quarter":{path:"M160 64c-26.5 0-48 21.5-48 48V276.5c0 17.3-7.1 31.9-15.3 42.5C86.2 332.6 80 349.5 80 368c0 44.2 35.8 80 80 80s80-35.8 80-80c0-18.5-6.2-35.4-16.7-48.9c-8.2-10.6-15.3-25.2-15.3-42.5V112c0-26.5-21.5-48-48-48zM48 112C48 50.2 98.1 0 160 0s112 50.1 112 112V276.5c0 .1 .1 .3 .2 .6c.2 .6 .8 1.6 1.7 2.8c18.9 24.4 30.1 55 30.1 88.1c0 79.5-64.5 144-144 144S16 447.5 16 368c0-33.2 11.2-63.8 30.1-88.1c.9-1.2 1.5-2.2 1.7-2.8c.1-.3 .2-.5 .2-.6V112zM208 368c0 26.5-21.5 48-48 48s-48-21.5-48-48c0-20.9 13.4-38.7 32-45.3V272c0-8.8 7.2-16 16-16s16 7.2 16 16v50.7c18.6 6.6 32 24.4 32 45.3z",height:512,width:320},"fa-temperature-three-quarters":{path:"M272 112c0-61.88-50.12-112-111.1-112S48 50.13 48 112v166.5c-19.75 24.62-32 55.5-32 89.5c0 79.5 64.5 143.1 144 143.1S304 447.5 304 368c0-33.1-12.25-64.88-32-89.5V112zM160 464c-52.88 0-96-43.13-96-96c0-27 11.75-47.25 21.5-59.5L96 295.4V112c0-35.25 28.75-64 64-64s64 28.75 64 64v183.2l10.5 13.13C244.3 320.8 256 341 256 368C256 420.9 212.9 464 160 464zM176 322.9V160c0-8.75-7.25-16-16-16s-16 7.25-16 16v162.9c-18.62 6.625-32 24.25-32 45.13c0 26.5 21.5 48 48 48s48-21.5 48-48C208 347.1 194.6 329.5 176 322.9z",width:320,height:512},"fa-temperature-half":{path:"M272 112c0-61.88-50.12-112-111.1-112S48 50.13 48 112v166.5c-19.75 24.62-32 55.5-32 89.5c0 79.5 64.5 143.1 144 143.1S304 447.5 304 368c0-33.1-12.25-64.88-32-89.5V112zM160 464c-52.88 0-96-43.13-96-96c0-27 11.75-47.25 21.5-59.5L96 295.4V112c0-35.25 28.75-64 64-64s64 28.75 64 64v183.2l10.5 13.13C244.3 320.8 256 341 256 368C256 420.9 212.9 464 160 464zM176 322.9l.0002-114.9c0-8.75-7.25-16-16-16c-8.75 0-15.1 7.25-15.1 16L144 322.9c-18.62 6.625-32 24.25-32 45.13c0 26.5 21.5 48 48 48s48-21.5 48-48C208 347.1 194.6 329.5 176 322.9z",width:320,height:512},"fa-temperature-full":{path:"M272 112c0-61.88-50.12-112-111.1-112S48 50.13 48 112v166.5c-19.75 24.62-32 55.5-32 89.5c0 79.5 64.5 143.1 144 143.1S304 447.5 304 368c0-33.1-12.25-64.88-32-89.5V112zM160 464c-52.88 0-96-43.13-96-96c0-27 11.75-47.25 21.5-59.5L96 295.4V112c0-35.25 28.75-64 64-64s64 28.75 64 64v183.2l10.5 13.13C244.3 320.8 256 341 256 368C256 420.9 212.9 464 160 464zM176 322.9V112c0-8.75-7.25-16-16-16s-16 7.25-16 16v210.9c-18.62 6.625-32 24.25-32 45.13c0 26.5 21.5 48 48 48s48-21.5 48-48C208 347.1 194.6 329.5 176 322.9z",width:320,height:512},"fa-temperature-high":{path:"M400 0C355.9 0 320 35.88 320 80S355.9 160 400 160S480 124.1 480 80S444.1 0 400 0zM400 112c-17.75 0-32-14.25-32-32s14.25-32 32-32s32 14.25 32 32S417.8 112 400 112zM288 112C288 50.12 237.9 0 176 0S64 50.12 64 112v166.5C44.25 303.1 32 334 32 368C32 447.5 96.5 512 176 512s144-64.5 144-144c0-33.1-12.25-64.88-32-89.5V112zM176 464c-52.88 0-96-43.13-96-96c0-27 11.75-47.25 21.5-59.5L112 295.4V112c0-35.25 28.75-64 64-64s64 28.75 64 64v183.2l10.5 13.13C260.3 320.8 272 341 272 368C272 420.9 228.9 464 176 464zM192 322.9V112C192 103.3 184.8 96 176 96S160 103.2 160 112v210.9C141.4 329.5 128 347.1 128 368C128 394.5 149.5 416 176 416S224 394.5 224 368C224 347.1 210.6 329.5 192 322.9z",width:512,height:512},"fa-memory":{path:"M64 64C28.7 64 0 92.7 0 128v7.4c0 6.8 4.4 12.6 10.1 16.3C23.3 160.3 32 175.1 32 192s-8.7 31.7-21.9 40.3C4.4 236 0 241.8 0 248.6V320H576V248.6c0-6.8-4.4-12.6-10.1-16.3C552.7 223.7 544 208.9 544 192s8.7-31.7 21.9-40.3c5.7-3.7 10.1-9.5 10.1-16.3V128c0-35.3-28.7-64-64-64H64zM576 352H0v64c0 17.7 14.3 32 32 32H80V416c0-8.8 7.2-16 16-16s16 7.2 16 16v32h96V416c0-8.8 7.2-16 16-16s16 7.2 16 16v32h96V416c0-8.8 7.2-16 16-16s16 7.2 16 16v32h96V416c0-8.8 7.2-16 16-16s16 7.2 16 16v32h48c17.7 0 32-14.3 32-32V352zM192 160v64c0 17.7-14.3 32-32 32s-32-14.3-32-32V160c0-17.7 14.3-32 32-32s32 14.3 32 32zm128 0v64c0 17.7-14.3 32-32 32s-32-14.3-32-32V160c0-17.7 14.3-32 32-32s32 14.3 32 32zm128 0v64c0 17.7-14.3 32-32 32s-32-14.3-32-32V160c0-17.7 14.3-32 32-32s32 14.3 32 32z",width:576,height:512},"fa-microchip":{path:"M176 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64c-35.3 0-64 28.7-64 64H24c-13.3 0-24 10.7-24 24s10.7 24 24 24H64v56H24c-13.3 0-24 10.7-24 24s10.7 24 24 24H64v56H24c-13.3 0-24 10.7-24 24s10.7 24 24 24H64c0 35.3 28.7 64 64 64v40c0 13.3 10.7 24 24 24s24-10.7 24-24V448h56v40c0 13.3 10.7 24 24 24s24-10.7 24-24V448h56v40c0 13.3 10.7 24 24 24s24-10.7 24-24V448c35.3 0 64-28.7 64-64h40c13.3 0 24-10.7 24-24s-10.7-24-24-24H448V280h40c13.3 0 24-10.7 24-24s-10.7-24-24-24H448V176h40c13.3 0 24-10.7 24-24s-10.7-24-24-24H448c0-35.3-28.7-64-64-64V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H280V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H176V24zM160 128H352c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H160c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32zm192 32H160V352H352V160z",width:576,height:512},"fa-microchip-ai":{path:"M226.3 183.1c-6.375-14.56-30.28-14.56-36.66 0l-56 128c-4.422 10.12 .1875 21.91 10.31 26.34c10.14 4.406 21.91-.2031 26.34-10.31l5.289-12.09C175.8 315.9 175.9 316 176 316h64c.1348 0 .248-.0762 .3828-.0781l5.289 12.09C248.1 335.5 256.3 340 264 340c2.672 0 5.391-.5313 8-1.672c10.12-4.438 14.73-16.22 10.31-26.34L226.3 183.1zM193.1 276L208 241.9L222.9 276H193.1zM336 172c-11.05 0-20 8.953-20 20v128c0 11.05 8.953 20 20 20s20-8.953 20-20V192C356 180.1 347 172 336 172zM488 280C501.3 280 512 269.3 512 256s-10.75-24-24-24H448v-48h40C501.3 184 512 173.3 512 160s-10.75-24-24-24H448V128c0-35.35-28.65-64-64-64h-8V24C376 10.75 365.3 0 352 0s-24 10.75-24 24V64h-48V24C280 10.75 269.3 0 256 0S232 10.75 232 24V64h-48V24C184 10.75 173.3 0 160 0S136 10.75 136 24V64H128C92.65 64 64 92.65 64 128v8H24C10.75 136 0 146.8 0 160s10.75 24 24 24H64v48H24C10.75 232 0 242.8 0 256s10.75 24 24 24H64v48H24C10.75 328 0 338.8 0 352s10.75 24 24 24H64V384c0 35.35 28.65 64 64 64h8v40C136 501.3 146.8 512 160 512s24-10.75 24-24V448h48v40C232 501.3 242.8 512 256 512s24-10.75 24-24V448h48v40c0 13.25 10.75 24 24 24s24-10.75 24-24V448H384c35.35 0 64-28.65 64-64v-8h40c13.25 0 24-10.75 24-24s-10.75-24-24-24H448v-48H488zM400 384c0 8.822-7.178 16-16 16H128c-8.822 0-16-7.178-16-16V128c0-8.822 7.178-16 16-16h256c8.822 0 16 7.178 16 16V384z",width:512,height:512},"fa-disc-drive":{path:"M256 112C176.5 112 112 176.5 112 256s64.5 144 144 144s144-64.5 144-144S335.5 112 256 112zM256 288C238.4 288 224 273.6 224 256s14.38-32 32-32c17.62 0 32 14.38 32 32S273.6 288 256 288zM488 432H480V96c0-35.35-28.65-64-64-64H96C60.65 32 32 60.65 32 96v336H23.1C10.75 432 0 442.7 0 455.1S10.75 480 23.1 480H488c13.25 0 24-10.75 24-23.1S501.3 432 488 432zM432 432h-352V96c0-8.875 7.125-16 16-16h320c8.875 0 16 7.125 16 16V432z",width:512,height:512},"fal-star":{path:"M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.6 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z",width:576,height:512},"fa-biohazard":{path:"M173.2 0c-1.8 0-3.5 .7-4.8 2C138.5 32.3 120 74 120 120c0 26.2 6 50.9 16.6 73c-22 2.4-43.8 9.1-64.2 20.5C37.9 232.8 13.3 262.4 .4 296c-.7 1.7-.5 3.7 .5 5.2c2.2 3.7 7.4 4.3 10.6 1.3C64.2 254.3 158 245.1 205 324s-8.1 153.1-77.6 173.2c-4.2 1.2-6.3 5.9-4.1 9.6c1 1.6 2.6 2.7 4.5 3c36.5 5.9 75.2 .1 109.7-19.2c20.4-11.4 37.4-26.5 50.5-43.8c13.1 17.3 30.1 32.4 50.5 43.8c34.5 19.3 73.3 25.2 109.7 19.2c1.9-.3 3.5-1.4 4.5-3c2.2-3.7 .1-8.4-4.1-9.6C379.1 477.1 324 403 371 324s140.7-69.8 193.5-21.4c3.2 2.9 8.4 2.3 10.6-1.3c1-1.6 1.1-3.5 .5-5.2c-12.9-33.6-37.5-63.2-72.1-82.5c-20.4-11.4-42.2-18.1-64.2-20.5C450 170.9 456 146.2 456 120c0-46-18.5-87.7-48.4-118c-1.3-1.3-3-2-4.8-2c-5 0-8.4 5.2-6.7 9.9C421.7 80.5 385.6 176 288 176S154.3 80.5 179.9 9.9c1.7-4.7-1.6-9.9-6.7-9.9zM240 272a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM181.7 417.6c6.3-11.8 9.8-25.1 8.6-39.8c-19.5-18-34-41.4-41.2-67.8c-12.5-8.1-26.2-11.8-40-12.4c-9-.4-18.1 .6-27.1 2.7c7.8 57.1 38.7 106.8 82.9 139.4c6.8-6.7 12.6-14.1 16.8-22.1zM288 64c-28.8 0-56.3 5.9-81.2 16.5c2 8.3 5 16.2 9 23.5c6.8 12.4 16.7 23.1 30.1 30.3c13.3-4.1 27.5-6.3 42.2-6.3s28.8 2.2 42.2 6.3c13.4-7.2 23.3-17.9 30.1-30.3c4-7.3 7-15.2 9-23.5C344.3 69.9 316.8 64 288 64zM426.9 310c-7.2 26.4-21.7 49.7-41.2 67.8c-1.2 14.7 2.2 28.1 8.6 39.8c4.3 8 10 15.4 16.8 22.1c44.3-32.6 75.2-82.3 82.9-139.4c-9-2.2-18.1-3.1-27.1-2.7c-13.8 .6-27.5 4.4-40 12.4z",width:576,height:512},"fa-star":{path:"M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z",width:576,height:512},"fa-circle-user":{width:630,height:512,path:"M315,0C173.6,0,59,114.6,59,256s114.6,256,256,256s256-114.6,256-256S456.4,0,315,0z M315,480c-47.2,0-91-14.8-127.2-39.8\n c4.1-49.3,45-88.2,95.2-88.2h64c50.2,0,91.1,38.9,95.2,88.2C406,465.2,362.2,480,315,480z M470.7,416.7\n c-14.1-55.4-64-96.7-123.7-96.7h-64c-59.7,0-109.6,41.3-123.7,96.7C117.3,375.1,91,319,91,256C91,132.5,191.5,32,315,32\n s224,100.5,224,224C539,319,512.7,375.1,470.7,416.7z M315,128c-44.2,0-80,35.8-80,80s35.8,80,80,80s80-35.8,80-80\n C395,163.8,359.2,128,315,128z M315,256c-26.5,0-48-21.5-48-48s21.5-48,48-48s48,21.5,48,48S341.5,256,315,256z"},"fal-circle-user":{width:630,height:512,path:"M315,0C173.6,0,59,114.6,59,256s114.6,256,256,256s256-114.6,256-256S456.4,0,315,0z M315,480c-47.2,0-91-14.8-127.2-39.8\n c4.1-49.3,45-88.2,95.2-88.2h64c50.2,0,91.1,38.9,95.2,88.2C406,465.2,362.2,480,315,480z M470.7,416.7\n c-14.1-55.4-64-96.7-123.7-96.7h-64c-59.7,0-109.6,41.3-123.7,96.7C117.3,375.1,91,319,91,256C91,132.5,191.5,32,315,32\n s224,100.5,224,224C539,319,512.7,375.1,470.7,416.7z M315,128c-44.2,0-80,35.8-80,80s35.8,80,80,80s80-35.8,80-80\n C395,163.8,359.2,128,315,128z M315,256c-26.5,0-48-21.5-48-48s21.5-48,48-48s48,21.5,48,48S341.5,256,315,256z"},"fal-guage":{width:630,height:512,path:"M251,352c0-29.8,20.4-54.9,47.1-62V95.1c0-7.9,8.1-16,16-16c9.7,0,16.9,8.1,16.9,16V290c27.6,7.1,48,32.2,48,62\n c0,35.3-28.7,64-64,64S251,387.3,251,352L251,352z M315,384c17.7,0,32-14.3,32-32s-14.3-32-32-32s-32,14.3-32,32S297.3,384,315,384z\n M179,144c0-13.3,10.7-24,24-24s24,10.7,24,24s-10.7,24-24,24S179,157.3,179,144z M179,256c0,13.3-10.7,24-24,24\n c-13.2,0-24-10.7-24-24c0-13.3,10.8-24,24-24C168.3,232,179,242.7,179,256z M451,256c0-13.3,10.7-24,24-24s24,10.7,24,24\n c0,13.3-10.7,24-24,24S451,269.3,451,256z M451,144c0,13.3-10.7,24-24,24s-24-10.7-24-24s10.7-24,24-24S451,130.7,451,144z M59,256\n C59,114.6,173.6,0,315,0s256,114.6,256,256S456.4,512,315,512S59,397.4,59,256z M315,480c123.7,0,224-100.3,224-224S438.7,32,315,32\n S91,132.3,91,256S191.3,480,315,480z"},"fal-bag-shopping":{path:"M416 160h-72V120C344 53.83 290.2 0 224 0S104 53.83 104 120V160H32C14.33 160 0 174.3 0 192v240C0 476.2 35.82 512 80 512h288c44.18 0 80-35.82 80-80V192C448 174.3 433.7 160 416 160zM152 120C152 80.3 184.3 48 224 48s72 32.3 72 72V160h-144V120zM400 432c0 17.64-14.36 32-32 32h-288c-17.64 0-32-14.36-32-32v-224h56v56C104 277.3 114.8 288 128 288s24-10.75 24-24V208h144v56C296 277.3 306.8 288 320 288s24-10.75 24-24V208h56V432z",width:448,height:512},"fal-bags-shopping":{path:"M512 256H256c-35.35 0-64 28.65-64 64v128c0 35.35 28.65 64 64 64h256c35.35 0 64-28.65 64-64v-128C576 284.7 547.3 256 512 256zM480 351.1c0 52.94-43.06 96-96 96S288 404.9 288 352v-8c0-13.25 10.75-23.1 24-23.1S336 330.8 336 344V352c0 26.47 21.53 48 48 48s48-21.53 48-48v-8c0-13.25 10.75-23.1 24-23.1S480 330.8 480 344V351.1zM48 416V224c0-8.822 7.178-16 16-16h320c8.822 0 16 7.178 16 16H448c0-35.35-28.65-64-64-64l-64 0V96c0-52.94-43.06-96-96-96S128 43.06 128 96v64L64 160C28.65 160 0 188.7 0 224v192c0 35.35 28.65 64 64 64h96v-48H64C55.18 432 48 424.8 48 416zM176 96c0-26.47 21.53-48 48-48S272 69.53 272 96v64h-96V96z",width:576,height:512},"fas-plus":{height:512,width:488,path:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"},"fas-minus":{height:512,width:488,path:"M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"},"fas-cart-shopping-fast":{path:"M239.1 416c-26.51 0-47.1 21.49-47.1 48S213.5 512 239.1 512s47.1-21.49 47.1-48S266.5 416 239.1 416zM527.1 416c-26.51 0-47.1 21.49-47.1 48s21.49 48 47.1 48s48-21.49 48-48S554.5 416 527.1 416zM633.5 44.73C627.4 36.64 618.1 32 607.1 32H185.1L183.6 19.51C181.4 8.19 171.5 0 160 0H87.1C74.75 0 64 10.74 64 23.1C64 37.25 74.75 48 87.1 48h52.14l60.28 316.5C202.6 375.8 212.5 384 224 384H552c13.25 0 24-10.75 24-23.1C576 346.7 565.3 336 552 336H243.9L234.7 288h318.4c14.28 0 26.84-9.474 30.76-23.21l54.86-191.1C641.5 63.05 639.6 52.83 633.5 44.73zM541 240H225.6l-30.47-160h391.7L541 240zM24 144h80C117.3 144 128 133.3 128 120C128 106.7 117.3 96 104 96h-80C10.75 96 0 106.7 0 120C0 133.3 10.75 144 24 144zM24 224h96C133.3 224 144 213.3 144 200c0-13.26-10.74-24-24-24h-96C10.75 176 0 186.7 0 200C0 213.3 10.75 224 24 224zM136 256h-112C10.75 256 0 266.7 0 280C0 293.3 10.75 304 24 304h112C149.3 304 160 293.3 160 280C160 266.7 149.3 256 136 256z",width:640,height:512},"fas-location-pin":{path:"M384 192c0 87.4-117 243-168.3 307.2c-12.3 15.3-35.1 15.3-47.4 0C117 435 0 279.4 0 192C0 86 86 0 192 0S384 86 384 192z",width:384,height:512},"fas-circle-check":{width:512,height:512,path:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"},"fa-plus-minus":{path:"M40 200h128v128c0 13.25 10.75 24.01 24 24.01S216 341.3 216 328v-128h128c13.25 0 24-10.74 24-23.99S357.3 152 344 152h-128v-128c0-13.25-10.75-23.99-24-23.99S168 10.75 168 24v128h-128c-13.25 0-24 10.76-24 24.01S26.75 200 40 200zM352 464H32c-13.25 0-24 10.75-24 24S18.75 512 32 512h320c13.25 0 24-10.76 24-24.01S365.3 464 352 464z",width:384,height:512},"fa-up-right-and-down-left-from-center":{path:"M183 295l-81.38 81.38l-47.03-47.03c-6.127-6.117-14.29-9.367-22.63-9.367c-4.117 0-8.279 .8086-12.25 2.43c-11.97 4.953-19.75 16.63-19.75 29.56v135.1C.0013 501.3 10.75 512 24 512h136c12.94 0 24.63-7.797 29.56-19.75c4.969-11.97 2.219-25.72-6.938-34.87l-47.03-47.03l81.38-81.38c9.375-9.375 9.375-24.56 0-33.94S192.4 285.7 183 295zM487.1 0h-136c-12.94 0-24.63 7.797-29.56 19.75c-4.969 11.97-2.219 25.72 6.938 34.87l47.04 47.03l-81.38 81.38c-9.375 9.375-9.375 24.56 0 33.94s24.56 9.375 33.94 0l81.38-81.38l47.03 47.03c6.127 6.117 14.3 9.35 22.63 9.35c4.117 0 8.275-.7918 12.24-2.413C504.2 184.6 512 172.9 512 159.1V23.1C512 10.75 501.3 0 487.1 0z",width:512,height:512},"fa-down-left-and-up-right-to-center":{path:"M488.1 23.03c-9.375-9.375-24.56-9.375-33.94 0l-81.38 81.38l-47.03-47.03c-6.127-6.117-14.3-9.35-22.63-9.35c-4.117 0-8.275 .7918-12.24 2.413c-11.97 4.953-19.75 16.63-19.75 29.56v135.1c0 13.25 10.74 23.1 24 23.1h136c12.94 0 24.63-7.797 29.56-19.75c4.969-11.97 2.219-25.72-6.938-34.87l-47.04-47.03l81.38-81.38C498.3 47.59 498.3 32.41 488.1 23.03zM215.1 272h-136c-12.94 0-24.63 7.797-29.56 19.75C45.47 303.7 48.22 317.5 57.37 326.6l47.04 47.03l-81.38 81.38c-9.375 9.375-9.375 24.56 0 33.94s24.56 9.375 33.94 0l81.38-81.38l47.03 47.03c6.127 6.117 14.29 9.367 22.63 9.367c4.117 0 8.279-.8086 12.25-2.43c11.97-4.953 19.75-16.63 19.75-29.56V296C239.1 282.7 229.3 272 215.1 272z",width:512,height:512},"fa-oil-can-drip":{path:"M637.9 168c-2.906-5.057-8.255-8.012-13.93-8.012c-1.131 0-2.287 .1203-3.426 .3625l-169.7 37.61l-49.97-30.44C392.8 162.6 383.3 160 373.3 160H288V112h40C341.3 112 352 101.3 352 88C352 74.74 341.3 64 328 64h-144C170.7 64 160 74.74 160 88C160 101.3 170.7 112 184 112H224V160H47.1C21.49 160 0 181.5 0 208v64.3c0 19.06 11.29 36.34 28.75 43.98l67.25 29.46L96 374C96 397.2 117.5 416 143.1 416h256.8c13.89 0 27.08-5.203 36.59-14.75l198.4-214.4C640.5 181.7 641.4 174.1 637.9 168zM96 293.3L48 272.3V208h47.1L96 293.3zM403.2 367.5C402.9 367.7 402.1 368 400.8 368H144v-160h229.3c1.238 0 2.119 .2695 2.561 .5391l66.47 40.49l88.65-19.65L403.2 367.5zM598.8 299.4c-1.541-2.627-4.192-3.941-6.843-3.941c-2.648 0-5.298 1.314-6.839 3.941c-13.26 22.59-41.16 72.81-41.16 95.32C543.1 424.1 565.4 448 591.1 448c26.61 0 47.1-23.91 47.1-53.28C639.1 372.2 612.1 321.1 598.8 299.4z",width:640,height:512},"fa-seal-exclamation":{path:"M493.6 222.1L448 176.5V112C448 85.49 426.5 64 400 64h-64.47l-45.59-45.59C280.6 9.039 268.3 4.354 256 4.354c-12.28 0-24.57 4.686-33.94 14.06L176.5 64H112C85.49 64 64 85.49 64 112v64.47L18.41 222.1c-18.75 18.74-18.75 49.14 0 67.88L64 335.5V400C64 426.5 85.49 448 112 448h64.47l45.59 45.59C231.4 502.1 243.7 507.6 256 507.6c12.29 0 24.57-4.688 33.94-14.06L335.5 448H400c26.51 0 48-21.49 48-48v-64.47l45.59-45.59C512.3 271.2 512.3 240.8 493.6 222.1zM414.1 301.6C405.1 310.6 400 322.8 400 335.5V400h-64.47c-12.73 0-24.94 5.057-33.94 14.06L256 459.6l-45.59-45.59C201.4 405.1 189.2 400 176.5 400H112v-64.47c0-12.73-5.057-24.94-14.06-33.94L52.35 256l45.59-45.59C106.9 201.4 112 189.2 112 176.5V112h64.47c12.73 0 24.94-5.057 33.94-14.06l45.57-45.59c.0039-.002-.0234 0 0 0l45.61 45.59C310.6 106.9 322.8 112 335.5 112H400v64.47c0 12.73 5.059 24.94 14.06 33.94L459.6 256L414.1 301.6zM256 288c13.25 0 24-10.75 24-24v-112C280 138.8 269.3 128 256 128S232 138.8 232 152v112C232 277.3 242.8 288 256 288zM256 321.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 369.9 238.6 384 256 384s31.44-14.08 31.44-31.44C287.4 335.2 273.4 321.1 256 321.1z",width:512,height:512},"fa-exclamation-triangle":{path:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z",width:16,height:16},"fa-trash-can":{path:"M432 80h-82.38l-34-56.75C306.1 8.827 291.4 0 274.6 0H173.4C156.6 0 141 8.827 132.4 23.25L98.38 80H16C7.125 80 0 87.13 0 96v16C0 120.9 7.125 128 16 128H32v320c0 35.35 28.65 64 64 64h256c35.35 0 64-28.65 64-64V128h16C440.9 128 448 120.9 448 112V96C448 87.13 440.9 80 432 80zM171.9 50.88C172.9 49.13 174.9 48 177 48h94c2.125 0 4.125 1.125 5.125 2.875L293.6 80H154.4L171.9 50.88zM352 464H96c-8.837 0-16-7.163-16-16V128h288v320C368 456.8 360.8 464 352 464zM224 416c8.844 0 16-7.156 16-16V192c0-8.844-7.156-16-16-16S208 183.2 208 192v208C208 408.8 215.2 416 224 416zM144 416C152.8 416 160 408.8 160 400V192c0-8.844-7.156-16-16-16S128 183.2 128 192v208C128 408.8 135.2 416 144 416zM304 416c8.844 0 16-7.156 16-16V192c0-8.844-7.156-16-16-16S288 183.2 288 192v208C288 408.8 295.2 416 304 416z",width:448,height:512},"fa-gas-pump":{path:"M493.2 107.2l-75.33-75.19C408.5 22.68 393.4 22.67 384 32c-9.408 9.365-9.426 24.59-.0392 33.98l32.04 31.9V160c0 28.12 20.88 51.25 48 55.25V376c0 13.25-10.75 24-24 24c-13.25 0-24-10.75-24-24v-32c0-48.6-39.4-88-88-88h-7.1l0-192c0-35.35-28.65-64-64-64H96C60.65 0 32 28.65 32 64L32 464H23.1C10.8 464 0 474.8 0 487.1S10.8 512 23.1 512h304C341.2 512 352 501.2 352 488S341.2 464 328 464H320l.0001-160h8c22.09 0 40 17.91 40 40v27.75c0 37.75 27 72 64.5 76c43 4.25 79.5-29.5 79.5-71.75V152.6C512 135.6 505.3 119.3 493.2 107.2zM272 464h-192v-224h192V464zM272 192h-192V64c0-8.837 7.163-16 16-16h160c8.837 0 16 7.163 16 16V192z",width:512,height:490},"fa-battery-half":{path:"M96 320h192V192H96V320zM544 192V160c0-35.35-28.65-64-64-64H64C28.65 96 0 124.7 0 160v192c0 35.35 28.65 64 64 64h416c35.35 0 64-28.65 64-64v-32c17.67 0 32-14.33 32-32V224C576 206.3 561.7 192 544 192zM496 352c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V160c0-8.822 7.178-16 16-16h416c8.822 0 16 7.178 16 16V352z",width:576,height:512},"fal-chart-mixed":{width:630,height:512,path:"M507.8 37.24C513.8 43.78 513.3 53.89 506.8 59.84L330.8 219.8C324.4 225.6 314.7 225.4 308.7 219.3L190.4 100.1L25.41 220.9C18.26 226.1 8.258 224.6 3.061 217.4C-2.137 210.3-.5565 200.3 6.59 195.1L182.6 67.06C188.1 62.43 197.7 63.12 203.3 68.69L320.5 185.9L485.2 36.16C491.8 30.22 501.9 30.7 507.8 37.24H507.8zM112 368V432C112 458.5 90.51 480 64 480C37.49 480 16 458.5 16 432V368C16 341.5 37.49 319.1 64 319.1C90.51 319.1 112 341.5 112 368zM80 432V368C80 359.2 72.84 352 64 352C55.16 352 48 359.2 48 368V432C48 440.8 55.16 448 64 448C72.84 448 80 440.8 80 432zM144 271.1C144 245.5 165.5 223.1 192 223.1C218.5 223.1 240 245.5 240 271.1V432C240 458.5 218.5 480 192 480C165.5 480 144 458.5 144 432V271.1zM192 255.1C183.2 255.1 176 263.2 176 271.1V432C176 440.8 183.2 448 192 448C200.8 448 208 440.8 208 432V271.1C208 263.2 200.8 255.1 192 255.1zM368 336V432C368 458.5 346.5 480 320 480C293.5 480 272 458.5 272 432V336C272 309.5 293.5 287.1 320 287.1C346.5 287.1 368 309.5 368 336zM336 432V336C336 327.2 328.8 319.1 320 319.1C311.2 319.1 304 327.2 304 336V432C304 440.8 311.2 448 320 448C328.8 448 336 440.8 336 432zM400 271.1C400 245.5 421.5 223.1 448 223.1C474.5 223.1 496 245.5 496 271.1V432C496 458.5 474.5 480 448 480C421.5 480 400 458.5 400 432V271.1zM448 255.1C439.2 255.1 432 263.2 432 271.1V432C432 440.8 439.2 448 448 448C456.8 448 464 440.8 464 432V271.1C464 263.2 456.8 255.1 448 255.1z"},"fal-chart-simple-horizontal":{width:630,height:512,path:"M448 272C448 298.5 426.5 320 400 320H48C21.49 320 0 298.5 0 272V240C0 213.5 21.49 192 48 192H400C426.5 192 448 213.5 448 240V272zM400 224H48C39.16 224 32 231.2 32 240V272C32 280.8 39.16 288 48 288H400C408.8 288 416 280.8 416 272V240C416 231.2 408.8 224 400 224zM256 432C256 458.5 234.5 480 208 480H48C21.49 480 0 458.5 0 432V400C0 373.5 21.49 352 48 352H208C234.5 352 256 373.5 256 400V432zM208 384H48C39.16 384 32 391.2 32 400V432C32 440.8 39.16 448 48 448H208C216.8 448 224 440.8 224 432V400C224 391.2 216.8 384 208 384zM48 160C21.49 160 0 138.5 0 112V80C0 53.49 21.49 32 48 32H336C362.5 32 384 53.49 384 80V112C384 138.5 362.5 160 336 160H48zM352 112V80C352 71.16 344.8 64 336 64H48C39.16 64 32 71.16 32 80V112C32 120.8 39.16 128 48 128H336C344.8 128 352 120.8 352 112z"},"fal-people-group":{width:630,height:512,path:"M72 88C72 57.07 97.07 32 128 32C158.9 32 184 57.07 184 88C184 118.9 158.9 144 128 144C97.07 144 72 118.9 72 88zM128 112C141.3 112 152 101.3 152 88C152 74.75 141.3 64 128 64C114.7 64 104 74.75 104 88C104 101.3 114.7 112 128 112zM0 280C0 222.6 46.56 176 104 176H152C165.3 176 178.1 178.5 189.8 183.1C198.1 186.3 202.1 195.6 198.9 203.8C195.7 212.1 186.4 216.1 178.2 212.9C170.1 209.7 161.3 208 152 208H104C101.3 208 98.63 208.1 96 208.4V416H160V384C160 375.2 167.2 368 176 368C184.8 368 192 375.2 192 384V424C192 437.3 181.3 448 168 448H88C74.75 448 64 437.3 64 424V376C26.44 360.4 .0003 323.3 .0003 280L0 280zM64 339.9V220.1C44.7 233 32 255 32 280C32 304.9 44.69 326.1 64 339.9zM512 144C481.1 144 456 118.9 456 88C456 57.07 481.1 32 512 32C542.9 32 568 57.07 568 88C568 118.9 542.9 144 512 144zM536 88C536 74.75 525.3 64 512 64C498.7 64 488 74.75 488 88C488 101.3 498.7 112 512 112C525.3 112 536 101.3 536 88zM576 376V424C576 437.3 565.3 448 552 448H472C458.7 448 448 437.3 448 424V384C448 375.2 455.2 368 464 368C472.8 368 480 375.2 480 384V416H544V208.4C541.4 208.1 538.7 208 536 208H488C478.7 208 469.9 209.7 461.8 212.9C453.6 216.1 444.3 212.1 441.1 203.8C437.9 195.6 441.1 186.3 450.2 183.1C461.9 178.5 474.7 175.1 488 175.1H536C593.4 175.1 640 222.6 640 279.1C640 323.3 613.6 360.4 576 376L576 376zM608 280C608 255 595.3 233 576 220.1V339.9C595.3 326.1 608 304.9 608 280zM384 96C384 131.3 355.3 160 320 160C284.7 160 256 131.3 256 96C256 60.65 284.7 32 320 32C355.3 32 384 60.65 384 96zM320 64C302.3 64 288 78.33 288 96C288 113.7 302.3 128 320 128C337.7 128 352 113.7 352 96C352 78.33 337.7 64 320 64zM336 192C393.4 192 440 238.6 440 296C440 336.1 417.3 370.9 384 388.3V456C384 469.3 373.3 480 360 480H280C266.7 480 256 469.3 256 456V388.3C222.7 370.9 200 336.1 200 296C200 238.6 246.6 192 304 192H336zM232 296C232 317.3 241.3 336.5 256 349.7V242.3C241.3 255.5 232 274.7 232 296zM352 448V225.8C346.9 224.6 341.5 224 336 224H304C298.5 224 293.1 224.6 288 225.8V448H352zM408 296C408 274.7 398.7 255.5 384 242.3V349.7C398.7 336.5 408 317.3 408 296z"},"fal-circle-dollar":{path:"M262 232.8L253.8 230.5C213.9 219.7 215.1 213.6 216.4 206.6c2.234-11.92 24.88-17.83 52.48-13.92c7.188 1.047 16.28 3.344 27.81 7.016c12.66 4.109 26.16-2.922 30.16-15.56c4.031-12.62-2.938-26.12-15.56-30.16c-12.37-3.955-22.26-6.373-31.23-7.939V128c0-13.25-10.75-24-24-24s-24 10.75-24 24v17.22C198.3 150.6 174.6 169.3 169.2 197.7c-10.62 56.73 47.28 72.44 72 79.16l8.594 2.281c43.95 11.61 47.58 16.67 45.78 26.28c-2.25 11.92-24.86 17.86-52.63 13.91C231.8 317.8 217.1 313.2 205.9 309.2L199.5 307c-12.67-4.109-26.17 2.734-30.28 15.34c-4.125 12.59 2.75 26.14 15.34 30.28l6.188 2.047c12.84 4.281 27.23 8.797 41.34 11.24V384c0 13.25 10.75 24 24 24s24-10.75 24-24v-17.19c33.68-5.404 57.38-24.12 62.72-52.53C353.5 256.9 296.3 241.8 262 232.8zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464z",width:512,height:512},"fa-play-pause":{path:"M488 64c-13.25 0-24 10.75-24 24v336c0 13.25 10.75 24 24 24S512 437.3 512 424V88C512 74.75 501.3 64 488 64zM344 64C330.7 64 320 74.75 320 88v336c0 13.25 10.75 24 24 24s24-10.75 24-24V88C368 74.75 357.3 64 344 64zM32.22 448c7.002 0 14.15-2.305 20.29-7.406l192-159.1c15.25-12.87 15.25-36.37 0-49.24L52.51 71.41C46.36 66.31 39.22 64 32.22 64C15.71 64 0 76.81 0 96.03v319.9C0 435.2 15.71 448 32.22 448zM48 130.1L199.1 256L48 381.9V130.1z",width:512,height:512},"fa-expand":{path:"M136 32h-112C10.75 32 0 42.75 0 56v112C0 181.3 10.75 192 24 192C37.26 192 48 181.3 48 168V80h88C149.3 80 160 69.25 160 56S149.3 32 136 32zM424 32h-112C298.7 32 288 42.75 288 56c0 13.26 10.75 24 24 24h88v88C400 181.3 410.7 192 424 192S448 181.3 448 168v-112C448 42.75 437.3 32 424 32zM136 432H48v-88C48 330.7 37.25 320 24 320S0 330.7 0 344v112C0 469.3 10.75 480 24 480h112C149.3 480 160 469.3 160 456C160 442.7 149.3 432 136 432zM424 320c-13.26 0-24 10.75-24 24v88h-88c-13.26 0-24 10.75-24 24S298.7 480 312 480h112c13.25 0 24-10.75 24-24v-112C448 330.7 437.3 320 424 320z",width:448,height:512},"fa-bars":{width:14,height:14,path:"M0 2a1 1 0 011-1h12a1 1 0 011 1 1 1 0 01-1 1h-12a1 1 0 01-1-1zM0 7a1 1 0 011-1h12a1 1 0 011 1 1 1 0 01-1 1h-12a1 1 0 01-1-1zM0 12a1 1 0 011-1h12a1 1 0 011 1 1 1 0 01-1 1h-12a1 1 0 01-1-1z"},"fa-calendar":{width:448,height:512,path:"M400 64h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V160h352v298c0 3.3-2.7 6-6 6z"},"fa-calendar-day":{width:448,height:512,path:"M384 64h-40V24c0-13.25-10.75-24-23.1-24S296 10.75 296 24V64h-144V24C152 10.75 141.3 0 128 0S104 10.75 104 24V64H64C28.65 64 0 92.65 0 128v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V128C448 92.65 419.3 64 384 64zM400 448c0 8.824-7.178 16-16 16H64c-8.822 0-16-7.176-16-16V192h352V448zM112 384h96c8.75 0 16-7.25 16-16v-96C224 263.3 216.8 256 208 256h-96C103.3 256 96 263.3 96 272v96C96 376.8 103.3 384 112 384z"},"fa-calendar-days":{width:448,height:512,path:"M384 64h-40V24c0-13.25-10.75-24-23.1-24S296 10.75 296 24V64h-144V24C152 10.75 141.3 0 128 0S104 10.75 104 24V64H64C28.65 64 0 92.65 0 128v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V128C448 92.65 419.3 64 384 64zM400 192v104h-152V192H400zM200 192v104H48V192H200zM48 448v-104h152v120H64C55.18 464 48 456.8 48 448zM384 464h-136v-120h152V448C400 456.8 392.8 464 384 464z"},"fa-calendar-pen":{width:448,height:512,path:"M296.5 295.5l-48.01-48.01l18.23-18.23c7.029-7.031 18.44-7.031 25.47 0l22.54 22.53c7.029 7.031 7.029 18.44 0 25.47L296.5 295.5zM135.2 415.9l47.61-9.52c2.322-.4687 4.455-1.609 6.131-3.281l90.58-90.57L231.5 264.5l-90.58 90.57c-1.676 1.68-2.818 3.812-3.281 6.133l-9.521 47.61C127.3 413 130.1 416.7 135.2 415.9zM448 128v320c0 35.35-28.65 64-64 64H64c-35.35 0-64-28.65-64-64V128c0-35.35 28.65-64 64-64h40V24C104 10.75 114.8 0 128 0S152 10.75 152 24V64h144V24c0-13.25 10.75-24 24-24S344 10.75 344 24V64H384C419.3 64 448 92.65 448 128zM400 192h-352v256c0 8.824 7.178 16 16 16h320c8.822 0 16-7.176 16-16V192z"},"fa-dollar-sign":{width:288,height:512,path:"M211.9 242.1L95.6 208.9c-15.8-4.5-28.6-17.2-31.1-33.5C60.6 150 80.3 128 105 128h73.8c15.9 0 31.5 5 44.4 14.1 6.4 4.5 15 3.8 20.5-1.7l22.9-22.9c6.8-6.8 6.1-18.2-1.5-24.1C240.4 74.3 210.4 64 178.8 64H176V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48h-2.5C60.3 64 14.9 95.8 3.1 143.6c-13.9 56.2 20.2 111.2 73 126.3l116.3 33.2c15.8 4.5 28.6 17.2 31.1 33.5C227.4 362 207.7 384 183 384h-73.8c-15.9 0-31.5-5-44.4-14.1-6.4-4.5-15-3.8-20.5 1.7l-22.9 22.9c-6.8 6.8-6.1 18.2 1.5 24.1 24.6 19.1 54.6 29.4 86.3 29.4h2.8v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48h2.5c49.2 0 94.6-31.8 106.4-79.6 13.9-56.2-20.2-111.2-73-126.3z"},"fa-award":{width:448,height:512,path:"M446.34 433.21l-62.35-137.6c4.44-11.43 8.32-14.17 22.34-28.19a44.715 44.715 0 0 0 11.57-43.18c-8.29-30.95-8.3-26.65 0-57.62a44.721 44.721 0 0 0-11.57-43.18c-22.68-22.7-20.52-18.94-28.82-49.92a44.68 44.68 0 0 0-31.61-31.61c-30.96-8.29-27.22-6.13-49.9-28.81a44.714 44.714 0 0 0-43.19-11.58c-30.87 8.27-26.69 8.29-57.62 0A44.72 44.72 0 0 0 152 13.1c-22.66 22.66-18.93 20.51-49.9 28.81a44.68 44.68 0 0 0-31.61 31.61c-8.29 30.96-6.13 27.22-28.81 49.9-11.29 11.29-15.71 27.76-11.57 43.18 8.29 30.95 8.3 26.65 0 57.62a44.715 44.715 0 0 0 11.57 43.18c15.1 15.11 18.02 17.06 22.34 28.19L1.66 433.21c-5.96 13.15 4.85 27.44 20.45 27.44.29 0 .59-.01.88-.02l72.86-2.51 50.13 47.65C150.45 510 156.26 512 162 512c8.53 0 16.92-4.39 20.55-12.4L224 408.13l41.45 91.47c3.63 8.01 12.02 12.4 20.55 12.4 5.75 0 11.56-2 16.01-6.23l50.13-47.65 72.86 2.51c.3.01.59.02.88.02 15.6-.01 26.42-14.29 20.46-27.44zM153.73 446.9l-39.4-37.44-49.99 1.72 29.72-65.59c2.59 1.28 5.18 2.57 8.04 3.34 25.14 6.74 26.79 5.7 43.06 21.97 8.63 8.63 20.07 13.1 31.63 13.1 1.95 0 3.87-.55 5.81-.8l-28.87 63.7zm23.55-111.76c-22.02-22.08-33.74-24.8-60.92-32.09-11.34-42.3-17.04-45.88-39.4-68.24 11.51-42.93 7.89-49.38 0-78.79 30.96-30.96 31.22-37.69 39.41-68.24 29.09-7.78 37.07-8.22 68.25-39.4 42.62 11.42 49.19 7.94 78.79 0 21.29 21.29 25.65 27.98 68.24 39.4 11.34 42.3 17.04 45.88 39.4 68.25-11.33 42.3-8.19 48.26 0 78.81-21.29 21.29-27.98 25.66-39.4 68.25-26.27 7.04-38.28 9.44-60.93 32.09-31.14-18.18-67.02-15.45-93.44-.04zm176.51 75.01l-20.12-.69-39.4 37.44-28.87-63.7c1.94.26 3.86.8 5.81.8 11.55 0 23-4.47 31.63-13.1 16.41-16.41 17.81-15.2 43.06-21.97 2.85-.76 5.44-2.06 8.04-3.34l29.72 65.58-29.87-1.02zM320 192c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96 96-42.98 96-96zm-96 48c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"},"fa-dollar-sign-circle":{width:630,height:512,path:"M262 232.8L253.8 230.5C213.9 219.7 215.1 213.6 216.4 206.6c2.234-11.92 24.88-17.83 52.48-13.92c7.188 1.047 16.28 3.344 27.81 7.016c12.66 4.109 26.16-2.922 30.16-15.56c4.031-12.62-2.938-26.12-15.56-30.16c-12.37-3.955-22.26-6.373-31.23-7.939V128c0-13.25-10.75-24-24-24s-24 10.75-24 24v17.22C198.3 150.6 174.6 169.3 169.2 197.7c-10.62 56.73 47.28 72.44 72 79.16l8.594 2.281c43.95 11.61 47.58 16.67 45.78 26.28c-2.25 11.92-24.86 17.86-52.63 13.91C231.8 317.8 217.1 313.2 205.9 309.2L199.5 307c-12.67-4.109-26.17 2.734-30.28 15.34c-4.125 12.59 2.75 26.14 15.34 30.28l6.188 2.047c12.84 4.281 27.23 8.797 41.34 11.24V384c0 13.25 10.75 24 24 24s24-10.75 24-24v-17.19c33.68-5.404 57.38-24.12 62.72-52.53C353.5 256.9 296.3 241.8 262 232.8zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464z"},"fa-check-to-slot":{width:576,height:512,path:"M341.1 137.2L268.6 229.5L231.6 197.8C221.6 189.2 206.4 190.3 197.8 200.4C189.2 210.4 190.3 225.6 200.4 234.2l56 48C260.8 285.1 266.2 287.1 271.1 287.1c.7813 0 1.606-.0187 2.388-.1125c6.531-.625 12.5-3.906 16.53-9.062l88-112c8.188-10.41 6.375-25.5-4.062-33.69C364.4 124.1 349.3 126.8 341.1 137.2zM96 408h384c13.25 0 24-10.75 24-24c0-13.26-10.75-24-24-24V96c0-35.35-28.65-64-64-64H160C124.7 32 96 60.65 96 96v264c-13.25 0-24 10.74-24 24C72 397.3 82.75 408 96 408zM144 96c0-8.836 7.164-16 16-16h256c8.836 0 16 7.164 16 16v264h-288V96zM524.6 288c-13.25 0-24 10.75-24 24s10.75 24 24 24C526.5 336 528 337.5 528 339.4V424c0 4.406-3.594 8-8 8H56c-4.406 0-8-3.594-8-8v-84.58C48 337.5 49.53 336 51.41 336c13.25 0 24-10.75 24-24S64.66 288 51.41 288C23.06 288 0 311.1 0 339.4V424C0 454.9 25.13 480 56 480h464c30.88 0 56-25.12 56-56v-84.58C576 311.1 552.9 288 524.6 288z"},"fa-file-certificate":{width:512,height:512,path:"M247.4 338.3c7.5-7.5 10.37-18.5 7.625-28.75c-5.375-20.62-5.5-17.75 0-38.38c2.748-10.38-.125-21.38-7.625-28.88C232.5 227.1 233.1 229.6 228.5 209C225.9 198.8 217.1 190.8 207.9 188C187.5 182.4 190 183.9 175.1 168.8C167.8 161.3 156.1 158.3 146.9 161c-20.37 5.5-17.49 5.5-37.74 0C99.01 158.3 88.26 161.3 80.89 168.8C65.89 183.9 68.39 182.4 48.14 188C38.02 190.8 30.23 198.8 27.48 209c-5.375 20.75-4 18.12-18.87 33.25c-7.375 7.5-10.33 18.5-7.582 28.88c5.375 20.62 5.375 17.75 0 38.38c-2.75 10.25 .207 21.25 7.582 28.75c14.87 15.12 13.5 12.62 18.87 33.25c2.75 10.38 10.54 18.38 20.67 21.12c14.37 3.875 11.5 3 15.87 5V512l63.99-32l63.99 32v-114.4c4.25-2 1.499-1.125 15.87-5c9.998-2.75 17.1-10.75 20.62-21.12C233.1 350.8 232.5 353.4 247.4 338.3zM128 352c-35.37 0-63.99-28.62-63.99-64S92.64 224 128 224s63.99 28.62 63.99 64S163.4 352 128 352zM493.3 93.38l-74.63-74.64C406.6 6.742 390.3 0 373.4 0L191.1-.0001c-35.35 0-64 28.65-64 64l.0105 68.94c0 0 22.02-10.7 48-.7539L176 64.13c0-8.836 7.164-16 16-16h160L352 128c0 17.67 14.33 32 32 32h79.1v288c0 8.836-7.164 16-16 16H224L223.1 512l224-.0001c35.2 0 64-28.8 64-64V138.6C512 121.7 505.3 105.4 493.3 93.38z"},"fa-seal-question":{width:512,height:512,path:"M493.6 222.1L448 176.5V112C448 85.49 426.5 64 400 64h-64.47l-45.59-45.59C280.6 9.039 268.3 4.354 256 4.354c-12.28 0-24.57 4.686-33.94 14.06L176.5 64H112C85.49 64 64 85.49 64 112v64.47L18.41 222.1c-18.75 18.74-18.75 49.14 0 67.88L64 335.5V400C64 426.5 85.49 448 112 448h64.47l45.59 45.59C231.4 502.1 243.7 507.6 256 507.6c12.29 0 24.57-4.688 33.94-14.06L335.5 448H400c26.51 0 48-21.49 48-48v-64.47l45.59-45.59C512.3 271.2 512.3 240.8 493.6 222.1zM414.1 301.6C405.1 310.6 400 322.8 400 335.5V400h-64.47c-12.73 0-24.94 5.057-33.94 14.06L256 459.6l-45.59-45.59C201.4 405.1 189.2 400 176.5 400H112v-64.47c0-12.73-5.057-24.94-14.06-33.94L52.35 256l45.59-45.59C106.9 201.4 112 189.2 112 176.5V112h64.47c12.73 0 24.94-5.057 33.94-14.06l45.57-45.59c.0039-.002-.0234 0 0 0l45.61 45.59C310.6 106.9 322.8 112 335.5 112H400v64.47c0 12.73 5.059 24.94 14.06 33.94L459.6 256L414.1 301.6zM256 336c-18 0-32 14-32 32s13.1 32 32 32c17.1 0 32-14 32-32S273.1 336 256 336zM289.1 128h-52C199 128 168 159 168 198c0 13 11 24 24 24s24-11 24-24C216 186 225.1 176 237.1 176h52C301.1 176 312 186 312 198c0 8-4 15-11 19L244 251C236 256 232 264 232 272V288c0 13 11 24 24 24S280 301 280 288V286l45.1-28C347 245 360 222 360 198C360 159 329 128 289.1 128z"},"fa-lock":{path:"M11 1a2 2 0 0 0-2 2v4a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h5V3a3 3 0 0 1 6 0v4a.5.5 0 0 1-1 0V3a2 2 0 0 0-2-2z",width:16,height:16},"fa-unlock":{path:"M11 1a2 2 0 0 0-2 2v4a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h5V3a3 3 0 0 1 6 0v4a.5.5 0 0 1-1 0V3a2 2 0 0 0-2-2zM3 8a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H3z",width:16,height:16},"fa-circle-check":{width:512,height:512,path:"M335 175L224 286.1L176.1 239c-9.375-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94l64 64C211.7 341.7 217.8 344 224 344s12.28-2.344 16.97-7.031l128-128c9.375-9.375 9.375-24.56 0-33.94S344.4 165.7 335 175zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464z"},"fa-database":{width:448,height:512,path:"M224 0c-123.7 0-224 35.82-224 80v352c0 44.18 100.3 80 224 80s224-35.82 224-80v-352C448 35.82 347.7 0 224 0zM224 464c-98.68 0-161.4-23.79-176-37.8v-72.81C89.01 372 152.5 384 223.1 384S358.1 372 400 353.4v72.81C385.4 440.2 322.7 464 224 464zM400 298.2C385.4 312.2 322.7 336 224 336S62.61 312.2 48 298.2V225.4C89.01 244 152.5 256 224 256s134.1-12 176-30.62V298.2zM400 170.2C385.4 184.2 322.7 208 223.1 208S62.61 184.2 48 170.2v-84.39C62.61 71.79 125.3 48 224 48s161.4 23.79 176 37.8V170.2z"},"fa-user-plus":{path:"M224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM224 48c44.11 0 80 35.89 80 80c0 44.11-35.89 80-80 80C179.9 208 144 172.1 144 128C144 83.89 179.9 48 224 48zM274.7 304H173.3C77.61 304 0 381.6 0 477.3C0 496.5 15.52 512 34.66 512h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304zM48.71 464C55.38 401.1 108.7 352 173.3 352H274.7c64.61 0 117.1 49.13 124.6 112H48.71zM616 200h-48v-48C568 138.8 557.3 128 544 128s-24 10.75-24 24v48h-48C458.8 200 448 210.8 448 224s10.75 24 24 24h48v48C520 309.3 530.8 320 544 320s24-10.75 24-24v-48h48C629.3 248 640 237.3 640 224S629.3 200 616 200z",width:640,height:512},"fa-badge-check":{width:576,height:512,path:"M543.8 256c0-36.5-18.86-68.38-46.86-86.75c6.875-32.88-2.517-68.63-28.14-94.25c-25.62-25.75-61.61-35.13-94.36-28.25C355.1 18.75 324.1 0 287.8 0S219.5 18.75 200.1 46.75C168.1 39.88 132.5 49.38 106.8 75C81.09 100.6 71.61 136.5 78.48 169.3C50.36 187.8 31.84 219.8 31.84 256s18.64 68.25 46.64 86.75C71.61 375.6 81.21 411.4 106.8 437c25.62 25.75 61.14 35.13 94.14 28.25C219.5 493.4 251.6 512 287.8 512c36.38 0 68.14-18.75 86.64-46.75c33 6.875 68.73-2.625 94.36-28.25c25.75-25.62 35.02-61.5 28.14-94.25C525.1 324.3 543.8 292.3 543.8 256zM435.5 317.3c9 20 30.25 54.88-.75 85.88c-28 28-55.25 14.5-85.75 .625C341.2 424.4 331.6 464 287.7 464c-45.25 0-54.75-42.75-61.25-60.25C205.5 413.4 171.6 434 140.6 403c-32-32-8.375-68.88-.625-85.75C119.4 309.5 79.73 299.9 79.73 256c0-45.25 42.75-54.75 60.25-61.25c-9-20-30.25-54.88 .75-85.88c32-32 68.88-8.375 85.75-.625C234.2 87.63 243.9 48 287.7 48c45.25 0 54.75 42.75 61.25 60.38c19.88-9.125 54.75-30.25 85.75 .75c32 32 8.375 68.88 .75 85.75c20.5 7.75 60.13 17.38 60.13 61.25C495.6 301.4 452.9 310.8 435.5 317.3zM384.1 183c9.375 9.375 9.375 24.56 0 33.94l-112 112C268.3 333.7 262.1 336 256 336s-12.28-2.344-16.97-7.031l-48-48c-9.375-9.375-9.375-24.56 0-33.94s24.56-9.375 33.94 0L256 278.1l95.03-95.03C360.4 173.7 375.6 173.7 384.1 183z"},"fa-user-cowboy":{width:448,height:512,path:"M97.07 183.5C96.82 186.4 96.2 189.1 96.2 192c0 70.75 57.22 128 127.9 128c70.71 0 127.9-57.25 127.9-128c0-2.75-.625-5.375-.75-8.125c69.09-30 93.58-77.88 95.08-80.88c3.498-7.125 1.125-15.88-5.621-20.25c-6.623-4.5-15.62-3.25-20.87 2.75c-1.873 1.875-22.49 20.62-76.09 33.63C333.1 69 312.2 0 278.2 0c-10.37 0-19.68 4.5-27.43 10.5c-15.24 11.88-36.77 11.88-52.02 0C191 4.5 181.8 0 171.4 0C137.4 0 116.6 69.38 105.9 119.5c-55.22-13-75.59-31.88-75.96-31.88C25.61 80 15.87 77.25 8.119 81.63c-7.621 4.25-10.37 14-6.121 21.75C3.498 106.3 28.86 153.5 97.07 183.5zM224.1 208c26.61 .125 53.22-2.75 79.21-8.625C299.5 240 265.7 272 224.1 272s-75.46-32-79.21-72.75C170.9 205.3 197.5 208.1 224.1 208zM314.7 352H133.3C59.7 352 0 411.7 0 485.3C0 500.1 11.94 512 26.66 512H421.3C436.1 512 448 500.1 448 485.3C448 411.7 388.3 352 314.7 352zM50.7 464c9.498-36.76 42.95-64 82.64-64h181.3c39.69 0 73.14 27.24 82.64 64H50.7z"},"fa-magnifying-glass":{width:512,height:512,path:"M504.1 471l-134-134C399.1 301.5 415.1 256.8 415.1 208c0-114.9-93.13-208-208-208S-.0002 93.13-.0002 208S93.12 416 207.1 416c48.79 0 93.55-16.91 129-45.04l134 134C475.7 509.7 481.9 512 488 512s12.28-2.344 16.97-7.031C514.3 495.6 514.3 480.4 504.1 471zM48 208c0-88.22 71.78-160 160-160s160 71.78 160 160s-71.78 160-160 160S48 296.2 48 208z"},"fa-chevron-down":{width:448,height:512,path:"M432.6 209.3l-191.1 183.1C235.1 397.8 229.1 400 224 400s-11.97-2.219-16.59-6.688L15.41 209.3C5.814 200.2 5.502 184.1 14.69 175.4c9.125-9.625 24.38-9.938 33.91-.7187L224 342.8l175.4-168c9.5-9.219 24.78-8.906 33.91 .7187C442.5 184.1 442.2 200.2 432.6 209.3z"},"fa-chevron-up":{width:448,height:512,path:"M15.41 302.7l191.1-183.1C212 114.2 218 111.1 224 111.1s11.97 2.219 16.59 6.688l191.1 183.1c9.594 9.152 9.906 24.34 .7187 33.9c-9.125 9.625-24.38 9.938-33.91 .7187L224 169.2l-175.4 168c-9.5 9.219-24.78 8.906-33.91-.7187C5.502 327 5.814 311.8 15.41 302.7z"},"fa-chevrons-left":{width:448,height:512,path:"M73.22 256l160.1-167.4c9.125-9.594 8.844-24.78-.75-33.94S207.8 45.84 198.7 55.4l-176 184c-8.875 9.313-8.875 23.88 0 33.19l176 184c9.156 9.563 24.34 9.907 33.94 .75C237.5 452.6 240 446.3 240 440c0-5.969-2.219-11.94-6.656-16.59L73.22 256zM425.3 423.4L265.2 256l160.1-167.4c9.125-9.594 8.844-24.78-.75-33.94s-24.78-8.813-33.94 .75l-176 184c-8.875 9.313-8.875 23.88 0 33.19l176 184c9.156 9.563 24.34 9.907 33.94 .75C429.5 452.6 432 446.3 432 440C432 434 429.8 428.1 425.3 423.4z"},"fa-chevrons-right":{width:448,height:512,path:"M233.3 239.4l-176-184C48.19 45.84 33 45.49 23.41 54.65C18.47 59.37 16 65.68 16 71.99c0 5.969 2.219 11.94 6.656 16.59L182.8 256l-160.1 167.4c-9.125 9.594-8.844 24.78 .75 33.94c9.594 9.156 24.78 8.813 33.94-.75l176-184C242.2 263.3 242.2 248.7 233.3 239.4zM425.3 239.4l-176-184C240.2 45.84 225 45.49 215.4 54.65C210.5 59.37 208 65.68 208 71.99c0 5.969 2.219 11.94 6.656 16.59L374.8 256l-160.1 167.4c-9.125 9.594-8.844 24.78 .75 33.94c9.594 9.156 24.78 8.813 33.94-.75l176-184C434.2 263.3 434.2 248.7 425.3 239.4z"},"fa-chevron-left":{width:320,height:512,path:"M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"},"fa-chevron-right":{width:320,height:512,path:"M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"},"fa-arrow-right":{width:448,height:512,path:"M264.6 70.63l176 168c4.75 4.531 7.438 10.81 7.438 17.38s-2.688 12.84-7.438 17.38l-176 168c-9.594 9.125-24.78 8.781-33.94-.8125c-9.156-9.5-8.812-24.75 .8125-33.94l132.7-126.6H24.01c-13.25 0-24.01-10.76-24.01-24.01s10.76-23.99 24.01-23.99h340.1l-132.7-126.6C221.8 96.23 221.5 80.98 230.6 71.45C239.8 61.85 254.1 61.51 264.6 70.63z"},"fa-copy":{width:512,height:512,path:"M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"},"fa-globe":{width:512,height:512,path:"M256 16C123.5 16 16 123.5 16 256s107.5 240 240 240s239.1-107.5 239.1-240S388.5 16 256 16zM422 160H373.3c-6.391-27.41-15.39-52.18-26.48-73.1C378.2 103.8 404.2 129.2 422 160zM336 256c0 16.98-1.295 32.82-3.176 48H179.2C177.3 288.8 176 272.1 176 256s1.295-32.82 3.176-48h153.6C334.7 223.2 336 239 336 256zM256 448c-21.79 0-50.87-36.42-67.28-96h134.6C306.9 411.6 277.8 448 256 448zM188.7 160C205.1 100.4 234.2 64 256 64s50.87 36.42 67.28 96H188.7zM165.2 86.9C154.1 107.8 145.1 132.6 138.7 160H89.98C107.8 129.2 133.8 103.8 165.2 86.9zM70.32 208h60.25C128.9 223.5 128 239.6 128 256S128.9 288.5 130.6 304H70.32C66.34 288.6 64 272.6 64 256S66.34 223.4 70.32 208zM89.98 352H138.7c6.391 27.41 15.39 52.18 26.48 73.1C133.8 408.2 107.8 382.8 89.98 352zM346.8 425.1C357.9 404.2 366.9 379.4 373.3 352h48.74C404.2 382.8 378.2 408.2 346.8 425.1zM441.7 304h-60.25c1.68-15.51 2.57-31.56 2.57-48s-.8907-32.49-2.57-48h60.25C445.7 223.4 448 239.4 448 256S445.7 288.6 441.7 304z"},"fa-xmark":{width:320,height:512,path:"M312.1 375c9.369 9.369 9.369 24.57 0 33.94s-24.57 9.369-33.94 0L160 289.9l-119 119c-9.369 9.369-24.57 9.369-33.94 0s-9.369-24.57 0-33.94L126.1 256L7.027 136.1c-9.369-9.369-9.369-24.57 0-33.94s24.57-9.369 33.94 0L160 222.1l119-119c9.369-9.369 24.57-9.369 33.94 0s9.369 24.57 0 33.94L193.9 256L312.1 375z"},"fa-flag":{width:512,height:512,path:"M476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87c-34.63 0-77.87 8.003-137.2 32.05V24C48 10.75 37.25 0 24 0S0 10.75 0 24v464C0 501.3 10.75 512 24 512s24-10.75 24-24v-104c53.59-23.86 96.02-31.81 132.8-31.81c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0zM464 319.8c-30.31 10.82-58.08 16.1-84.6 16.1c-30.8 0-58.31-7-87.44-14.41c-32.01-8.141-68.29-17.37-111.1-17.37c-42.35 0-85.99 9.09-132.8 27.73V84.14l18.03-7.301c47.39-19.2 86.38-28.54 119.2-28.54c28.24 .0039 49.12 6.711 73.31 14.48c25.38 8.148 54.13 17.39 90.58 17.39c35.43 0 72.24-8.496 114.9-26.61V319.8z"},"fa-envelope":{width:512,height:512,path:"M448 64H64C28.65 64 0 92.65 0 128v256c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V128C512 92.65 483.3 64 448 64zM64 112h384c8.822 0 16 7.178 16 16v22.16l-166.8 138.1c-23.19 19.28-59.34 19.27-82.47 .0156L48 150.2V128C48 119.2 55.18 112 64 112zM448 400H64c-8.822 0-16-7.178-16-16V212.7l136.1 113.4C204.3 342.8 229.8 352 256 352s51.75-9.188 71.97-25.98L464 212.7V384C464 392.8 456.8 400 448 400z"},"fa-check":{width:512,height:512,path:"M480.1 128.1l-272 272C204.3 405.7 198.2 408 192 408s-12.28-2.344-16.97-7.031l-144-144c-9.375-9.375-9.375-24.56 0-33.94s24.56-9.375 33.94 0L192 350.1l255-255c9.375-9.375 24.56-9.375 33.94 0S490.3 119.6 480.1 128.1z"},"fa-arrow-trend-up":{width:576,height:512,path:"M576 120v176C576 309.3 565.3 320 552 320S528 309.3 528 296V177.9l-191 191C332.3 373.7 326.1 376 320 376s-12.28-2.344-16.97-7.031L192 257.9l-151 151C36.28 413.7 30.16 416 24 416C5.205 416 0 398.8 0 392c0-6.141 2.344-12.28 7.031-16.97l168-168C179.7 202.3 185.9 200 192 200s12.28 2.344 16.97 7.031L320 318.1L494.1 144H376C362.8 144 352 133.3 352 120S362.8 96 376 96h176C565.3 96 576 106.8 576 120z"},"fa-arrow-trend-down":{width:576,height:512,path:"M576 216v176c0 13.25-10.75 24-24 24h-176C362.8 416 352 405.3 352 392s10.75-24 24-24h118.1L320 193.9L208.1 304.1C204.3 309.7 198.1 312 192 312S179.7 309.7 175 304.1l-168-168C2.344 132.3 0 126.1 0 120C0 106.3 11.21 96 24 96c6.141 0 12.28 2.344 16.97 7.031L192 254.1l111-111C307.7 138.3 313.9 136 320 136s12.28 2.344 16.97 7.031L528 334.1V216C528 202.8 538.8 192 552 192S576 202.8 576 216z"},"fa-eye":{path:"M572.5 238.1C518.3 115.5 410.9 32 288 32S57.69 115.6 3.469 238.1C1.563 243.4 0 251 0 256c0 4.977 1.562 12.6 3.469 17.03C57.72 396.5 165.1 480 288 480s230.3-83.58 284.5-206.1C574.4 268.6 576 260.1 576 256C576 251 574.4 243.4 572.5 238.1zM288 432c-99.48 0-191.2-67.5-239.6-175.1C97.01 147.4 188.6 80 288 80c99.48 0 191.2 67.5 239.6 175.1C478.1 364.6 387.4 432 288 432zM288 128C217.3 128 160 185.3 160 256s57.33 128 128 128c70.64 0 128-57.32 128-127.9C416 185.4 358.7 128 288 128zM288 336c-44.11 0-80-35.89-80-80c0-.748 .1992-1.441 .2207-2.184C213.3 255.1 218.5 256 224 256c35.35 0 64-28.65 64-64c0-5.48-.875-10.72-2.184-15.78C286.6 176.2 287.3 176 288 176c44.11 0 80 35.89 80 80.05C368 300.1 332.1 336 288 336z",width:576,height:512},"fa-eye-slash":{path:"M630.8 469.1l-103.5-81.11c31.35-31.94 57.79-70.78 77.21-114.1c1.906-4.43 3.469-12.07 3.469-17.03c0-4.977-1.562-12.6-3.469-17.03c-54.25-123.4-161.6-206.1-284.5-206.1c-62.67 0-121.2 21.95-170.8 59.62L38.81 5.116C34.41 1.679 29.19 0 24.03 0C16.91 0 9.839 3.158 5.121 9.189c-8.188 10.44-6.37 25.53 4.068 33.7l591.1 463.1c10.5 8.203 25.57 6.333 33.69-4.073C643.1 492.4 641.2 477.3 630.8 469.1zM394.4 283.8l-81.65-63.1C316.1 211.3 319.1 202.2 319.1 192c0-5.48-.8744-10.73-2.183-15.78C318.6 176.2 319.3 176 320 176c44.11 0 80 35.89 80 80.05C400 265.9 397.7 275.1 394.4 283.8zM433.2 314.2C442.4 296.8 448 277.2 448 256.1C448 185.4 390.7 128 320 128C287.8 128 258.7 140.2 236.3 159.9L188.3 122.3C228 95.03 273.1 80 320 80c99.48 0 191.2 67.5 239.6 175.1c-18.06 40.38-42.41 74.43-70.61 101.9L433.2 314.2zM320 384c13.42 0 26.16-2.643 38.31-6.477L302.8 334C279.1 328.8 259.5 312.9 248.8 291.7L192.8 247.8C192.6 250.6 192 253.2 192 256C192 326.7 249.3 384 320 384zM320 432c-99.48 0-191.2-67.5-239.6-175.1c10.83-24.22 24.09-46.03 38.81-65.86L81.28 160.4c-17.77 23.74-33.27 50.04-45.81 78.59C33.56 243.4 31.1 251 31.1 256c0 4.977 1.562 12.6 3.469 17.03c54.25 123.4 161.6 206.1 284.5 206.1c45.46 0 88.77-11.49 128.1-32.14l-42.87-33.59C378 425.4 349.5 432 320 432z",width:640,height:512},"fa-engine":{path:"M192 232C178.7 232 168 242.7 168 256c0 13.25 10.75 24 24 24S216 269.3 216 256C216 242.7 205.3 232 192 232zM592 192h-32C533.5 192 512 213.5 512 240V256h-16V207.1c0-4.855-2.207-9.459-6.001-12.49L418.7 138.5C410.2 131.7 415.7 128 404.8 128H312V112h64c13.25 0 24-10.75 24-24C400 74.74 389.3 64 376 64h-176C186.7 64 176 74.74 176 88c0 13.25 10.75 24 24 24h64V128H128C101.5 128 80 149.5 80 176v56h-32v-80C48 138.7 37.25 128 24 128S0 138.7 0 152v208C0 373.3 10.75 384 24 384s24-10.75 24-24v-80h32v56C80 362.5 101.5 384 128 384h41.38l49.95 49.95C228.3 442.9 240.5 448 253.3 448H448c26.51 0 48-21.49 48-48V384H512v16c0 26.51 21.49 48 48 48h32c26.51 0 48-21.49 48-48v-160C640 213.5 618.5 192 592 192zM448 400l-194.7 .0059L189.3 336H128v-160h260.8L448 223.4V400zM592 400h-32v-64h-64v-32h64v-64h32V400zM288 232C274.7 232 264 242.7 264 256c0 13.25 10.75 24 24 24S312 269.3 312 256C312 242.7 301.3 232 288 232zM360 256c0 13.25 10.75 24 24 24S408 269.3 408 256c0-13.26-10.75-24-24-24S360 242.7 360 256z",width:640,height:512},"fa-clock":{path:"M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z",width:512,height:512},"fa-clock-rotate-left":{path:"M256 32C176.2 32 103.7 75.57 64 142.1V56C64 42.75 53.25 32 40 32S16 42.75 16 56v144C16 213.3 26.75 224 40 224h128C181.3 224 192 213.3 192 200S181.3 176 168 176H99.54C129.2 118.3 189.5 79.96 256 79.96c97.03 0 176 79.01 176 176s-78.97 175.1-176 175.1c-41.09 0-81.09-14.44-112.6-40.72c-10.16-8.5-25.31-7.156-33.81 3.062c-8.5 10.19-7.125 25.31 3.062 33.81C152.8 461.6 203.7 480 256 480c123.5 0 224-100.5 224-224S379.5 32 256 32zM256 128C242.8 128 232 138.8 232 152V272c0 7.75 3.741 15.03 10.04 19.53l56 40C302.3 334.6 307.2 336 311.1 336c7.484 0 14.86-3.5 19.55-10.06c7.703-10.78 5.203-25.75-5.578-33.47L280 259.7L280 152C280 138.8 269.3 128 256 128z",width:512,height:512},"fa-user-clock":{path:"M496 224c-79.63 0-144 64.38-144 144s64.38 144 144 144s144-64.38 144-144S575.6 224 496 224zM544 384h-54.25C484.4 384 480 379.6 480 374.3V304c0-8.836 7.164-16 16-16c8.838 0 16 7.164 16 16v48h32c8.838 0 16 7.164 16 15.1S552.8 384 544 384zM224 256c70.69 0 128-57.31 128-128c0-70.69-57.31-128-128-128S96 57.31 96 128C96 198.7 153.3 256 224 256zM224 48c44.11 0 80 35.89 80 80c0 44.11-35.89 80-80 80S144 172.1 144 128C144 83.89 179.9 48 224 48zM395 512H32c-17.67 0-32-14.33-32-32c0-97.2 78.8-176 176-176h96c19.87 0 38.89 3.441 56.7 9.508c-4.963 15.24-7.787 31.41-8.383 48.17C305.4 355.5 289.1 352 272 352h-96c-65.16 0-119.1 48.95-127 112h299.6C360.9 482.8 376.6 499.1 395 512z",width:640,height:512},"fa-store":{path:"M544.9 105.8l-52.21-82.59C483.8 8.891 467.6 0 450.6 0H125.4c-17.01 0-33.15 8.891-42.08 23.14L31.02 105.8C13.26 133.9 11.12 168.8 25.27 199.1c13.34 28.55 39.57 48.06 70.29 52.19c4.473 .5859 8.98 .873 13.48 .873c1.004 0 1.994-.1973 2.997-.2266c20.32-.5781 40.41-6.822 57.03-18.38c34.63 24.08 84.26 24.05 118.8 0c34.63 24.08 84.23 24.03 118.9-.0156c17.34 12.03 38.07 18.67 59.39 18.67c4.842 0 9.466-.3125 14.18-.9219c30.71-4.078 57.02-23.59 70.37-52.17C564.9 168.8 562.7 133.9 544.9 105.8zM507.2 178.8c-6.483 13.89-18.6 22.97-33.13 24.91C456.3 206 437.1 199.5 424.5 185.7L406.7 166.1l-17.75 19.62c-21.42 23.66-61.8 23.69-83.24 0L287.9 166L270.1 185.7c-21.2 23.52-61.94 23.52-83.23 0L169.1 166L151.3 185.7c-12.37 13.73-32.15 20.16-49.42 18C87.3 201.8 75.24 192.7 68.76 178.8c-7.201-15.44-6.155-33.14 2.812-47.34L125.4 48l326.8 .7969l52.25 82.67C513.4 145.7 514.5 163.4 507.2 178.8zM466.2 284.2c-.7479 0-1.457-.2402-2.203-.252V336H112V283.8C111 283.9 110.1 284.2 109 284.2c-5.897 0-11.83-.3867-17.74-1.16C81.85 281.8 72.76 279.3 64.06 275.1V456c0 30.88 25.12 56 55.99 56h335.9c30.87 0 55.99-25.12 55.99-56V275.1c-8.773 3.348-17.95 5.828-27.5 7.098C478.3 283.8 472.3 284.2 466.2 284.2zM455.1 464H120c-4.405 0-7.998-3.594-7.998-8V384h351.9v72C463.1 460.4 460.4 464 455.1 464z",width:576,height:512},"fa-home":{path:"M576 247.1c0-6.802-2.877-13.56-8.471-18.31l-263.1-224c-4.484-3.781-10.01-5.669-15.53-5.669S276.1 1.891 272.5 5.672L8.471 229.7C2.877 234.4 0 241.2 0 247.1C0 264.1 13.83 271.1 24.02 271.1c5.479 0 10.99-1.867 15.51-5.687l24.47-20.76v226.5C64 494.1 81.94 512 104 512h95.1c22.06 0 39.1-17.94 39.1-40l.0056-120h95.1l-.0032 120C335.1 494.1 353.9 512 375.1 512h95.1c22.06 0 39.1-17.94 39.1-40V245.5L536.5 266.3c4.516 3.813 10.03 5.688 15.52 5.688C562.1 271.1 576 263.1 576 247.1zM463.1 463.1H383.1v-120c0-22.06-17.94-40-39.1-40H232c-22.06 0-39.1 17.94-39.1 40v120H112V207.1c0-.9629-.4375-1.783-.5488-2.717L288 55.45l175.1 149.4V463.1z",width:576,height:512},"fa-user-group":{path:"M224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM224 48c44.11 0 80 35.89 80 80c0 44.11-35.89 80-80 80S144 172.1 144 128C144 83.89 179.9 48 224 48zM274.7 304H173.3c-95.73 0-173.3 77.6-173.3 173.3C0 496.5 15.52 512 34.66 512H413.3C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304zM48.71 464C55.38 401.1 108.7 352 173.3 352H274.7c64.61 0 117.1 49.13 124.6 112H48.71zM479.1 320h-73.85C451.2 357.7 480 414.1 480 477.3C480 490.1 476.2 501.9 470 512h138C625.7 512 640 497.6 640 479.1C640 391.6 568.4 320 479.1 320zM432 256C493.9 256 544 205.9 544 144S493.9 32 432 32c-25.11 0-48.04 8.555-66.72 22.51C376.8 76.63 384 101.4 384 128c0 35.52-11.93 68.14-31.59 94.71C372.7 243.2 400.8 256 432 256z",width:640,height:512},"fa-tags":{path:"M458.4 211.9l-158.2-158.2C287.6 41.11 265.6 32 247.8 32H81.01C53.99 32 32 53.99 32 81.01v166.8c0 17.75 9.11 39.75 21.67 52.32l158.2 158.3C226.3 472.8 245.3 480 264.2 480s37.91-7.204 52.33-21.63l141.8-141.8C487.2 287.7 487.2 240.8 458.4 211.9zM424.4 282.6l-141.8 141.8c-10.13 10.16-26.66 10.14-36.79 .0156L87.62 266.2c-3.563-3.563-7.61-13.35-7.61-18.38V81.01l1-1h166.8c5.032 0 14.81 4.047 18.38 7.61l158.2 158.2C434.6 255.1 434.6 272.5 424.4 282.6zM168 144c0 13.26-10.75 24-24 24S120 157.3 120 144s10.75-24 24-24S168 130.7 168 144zM536.5 170.7l-135.7-131.9c-9.453-9.219-24.67-9-33.94 .5c-9.234 9.5-9.016 24.69 .5 33.94l135.5 131.7c16.28 16.25 25.23 37.88 25.23 60.88s-8.969 44.63-25.3 60.95l-111.7 112.4c-9.344 9.406-9.312 24.59 .0938 33.94C395.8 477.7 401.9 480 408 480c6.172 0 12.33-2.359 17.02-7.078l111.7-112.3c25.34-25.34 39.31-59.03 39.31-94.86S562.1 196.2 536.5 170.7z",width:576,height:512},"fa-camera-security":{path:"M384 0h-320c-35.35 0-64 28.65-64 64v288c0 35.35 28.65 64 64 64h41.37l-37.62 59.11c-4.703 7.391-5 16.77-.7813 24.44C71.17 507.2 79.25 512 88.02 512h271.1c8.766 0 16.84-4.766 21.05-12.45c4.219-7.672 3.922-17.05-.7813-24.44L342.6 416h41.37c35.35 0 64-28.65 64-64V64C448 28.65 419.3 0 384 0zM131.7 464L162.3 416h123.5l30.55 48H131.7zM400 352c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V64c0-8.822 7.178-16 16-16h320c8.822 0 16 7.178 16 16V352zM224 96c-61.86 0-112 50.14-112 112s50.14 112 112 112s112-50.14 112-112S285.9 96 224 96zM224 272c-35.29 0-64-28.71-64-64s28.71-64 64-64c35.29 0 64 28.71 64 64S259.3 272 224 272z",width:448,height:512},"fa-lightbulb-slash":{path:"M630.8 469.1l-196.2-153.8c6.311-9.273 12.57-17.61 17.82-23.59c27.12-30.94 43.54-71.39 43.54-115.8c0-97.2-78.76-175.1-175.1-175.1C246.1 .2266 188.9 42.1 161.5 101.3L38.81 5.118c-10.47-8.172-25.49-6.365-33.7 4.073c-8.172 10.44-6.349 25.53 4.073 33.7l591.1 463.1C605.6 510.3 610.8 512 615.1 512c7.125 0 14.17-3.159 18.9-9.19C643.1 492.4 641.2 477.3 630.8 469.1zM396.8 285.7l-196.6-154.1C216.1 85.94 259.2 48.19 319.1 48C390.6 48 448 105.4 448 175.1c0 30.97-11.24 60.86-31.64 84.13C410.2 267.1 403.5 275.1 396.8 285.7zM305.9 336h-33.22c-8.037-16.97-17.84-33.3-27.69-47.74L148.1 212.3c6.322 29.98 19.1 57.25 39.48 79.47c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0625 .5156 .0938 .7812l127.3 .0031L305.9 336zM240.1 454.3c0 6.297 1.875 12.43 5.344 17.68l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.66c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7l.1196-38.36H239.1L240.1 454.3z",width:640,height:512},"fa-lightbulb-on":{path:"M107.1 287.3L51.62 319.3c-7.5 4.125-12.25 12.13-12.38 20.88c0 8.625 4.625 16.63 12.13 21c7.625 4.25 16.87 4.125 24.25-.375l55.5-32c11.12-6.75 14.87-21.25 8.375-32.5C133 284.9 118.5 280.9 107.1 287.3zM131.1 55.25l-55.5-32c-7.375-4.5-16.62-4.625-24.25-.375c-7.5 4.375-12.13 12.38-12.13 21C39.37 52.63 44.12 60.63 51.62 64.75L107.1 96.75C114.5 101.3 123.8 101.4 131.4 97.13C138.9 92.75 143.5 84.75 143.5 76.13C143.4 67.38 138.6 59.38 131.1 55.25zM112 192c0-13.25-10.75-24-24-24h-64c-13.25 0-24 10.75-24 24s10.75 24 24 24h64C101.3 216 112 205.3 112 192zM521 100c4.125 0 8.25-1.125 12-3.25l55.38-32c11.25-6.75 14.88-21.25 8.375-32.5c-6.5-11.38-21-15.38-32.38-9L509 55.25c-9.5 5.375-14 16.5-11.25 27C500.6 92.75 510.1 100 521 100zM616 168h-64c-13.25 0-24 10.75-24 24s10.75 24 24 24h64c13.25 0 24-10.75 24-24S629.3 168 616 168zM588.4 319.3l-55.5-32c-7.375-4.5-16.62-4.625-24.25-.375c-7.5 4.375-12.12 12.38-12.12 21c.125 8.75 4.875 16.75 12.38 20.88l55.5 32c11.38 6.375 25.88 2.375 32.38-9C603.3 340.5 599.5 326 588.4 319.3zM320 .0036C218 .3239 144 82.98 144 175.1c0 44.38 16.4 84.82 43.52 115.8c16.53 18.84 42.36 58.26 52.24 91.48c.0313 .25 .0833 .4948 .1146 .7604l160.3 .0007c.0313-.2656 .0521-.4955 .0833-.7611c9.875-33.22 35.71-72.64 52.24-91.48C479.6 260.8 496 220.4 496 175.1C496 78.8 417.2 .0075 320 .0036zM416.4 260.1c-15.66 17.85-35.04 46.3-49.05 75.89h-94.61c-14.01-29.59-33.39-58.04-49.04-75.88C203.2 236.8 192 206.1 192 175.1C192 113.3 240.1 48.25 319.1 48C390.6 48 448 105.4 448 175.1C448 206.1 436.8 236.8 416.4 260.1zM240.1 454.4c0 6.297 1.89 12.43 5.359 17.68l17.09 25.69c5.25 7.875 17.18 14.28 26.65 14.28h61.72c9.438 0 21.38-6.395 26.63-14.27l17.09-25.69C397.6 467.6 400 459.7 400 454.4v-38.36l-159.9 .0048L240.1 454.4zM304 80C259.9 80 224 115.9 224 160c0 8.844 7.156 16.01 16 16.01S256 168.8 256 160c0-26.47 21.53-48 48-48c8.844 0 16-7.145 16-15.99S312.8 80 304 80z",width:640,height:512}};function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t')+''}}]),e}()},49334:function(e,t,r){"use strict";function n(e,t){var r=e.replace(/([A-Z])/g," $1").toLowerCase();null!=t&&t.replace&&(r=r.replace(/_/g,t.replace));var n=null==t?void 0:t.textTransform;return(null!=t&&t.dashed&&(r=r.replaceAll(" ","-")),n&&("lowercase"==n&&(r=e.toLowerCase()),"uppercase"==n&&(r=e.toUpperCase()),"capitalize"==n?r=e.replace(/\b\w/g,function(e){return e.toUpperCase()}):console.error("[ KeyStringConverter ]: textTransform defined incorrectly")),null!=t&&t.dashed||(r=r.replaceAll("-"," ").replaceAll("_"," ")),"id"===r)?"ID":r}r.d(t,{Z:function(){return n}})},47265:function(e,t,r){"use strict";r.d(t,{cz:function(){return h},vc:function(){return d},ZP:function(){return c},hG:function(){return u},I3:function(){return l},XY:function(){return f},wW:function(){return s}});var n=r(93791);function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]?arguments[1]:"US",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n.PhoneNumberUtil.getInstance(),o=e;if(null==o)return"n/a";if(r){var a=o.replace(/\D/g,"");return a.startsWith("1")?"+".concat(a):"+1".concat(a)}try{var s=i.parseAndKeepRawInput(o,t);o=i.format(s,n.PhoneNumberFormat.NATIONAL)}catch(e){}return o};function c(e){for(var t=[{regex:/^3[47]/,name:"amex",format:[4,6,5],maxLength:15},{regex:/^30[0-5]|3[68]/,name:"diners",format:[4,4,4,4],maxLength:16},{regex:/^6(?:011|5)/,name:"discover",format:[4,4,4,4],maxLength:16},{regex:/^4/,name:"visa",format:[4,4,4,4],maxLength:16},{regex:/^(?:2131|1800|35\d{2})/,name:"jcb",format:[4,4,4,4],maxLength:16},{regex:/^5[1-5]/,name:"mastercard",format:[4,4,4,4],maxLength:16},{regex:/^(?:502[0259]|508[59]|6[37])/,name:"eftpos_au",format:[4,4,4,4],maxLength:16},{regex:/^62[0-5]/,name:"unionpay",format:[4,4,4,4],maxLength:16}],r=e.replace(/\D/g,""),n="unknown",i=[16],o=16,a=0,s=t;a1&&void 0!==arguments[1]?arguments[1]:{time:!1,returnType:"string",format:"MM-DD-YYYY",server:!1,isTimestamp:!1};if(!0===t.isTimestamp&&"number"==typeof e){10===e.toString().length&&(e*=1e3);var r=new Date(e);return"".concat(r.toLocaleDateString()," @ ").concat(r.toLocaleTimeString())}if(t.server){var n=new Date(e);return"".concat(n.getFullYear(),"-").concat((n.getMonth()+1).toString().padStart(2,"0"),"-").concat(n.getDate().toString().padStart(2,"0"))}"string"==typeof e&&(e=new Date(e));var i={month:"short",day:"numeric",year:"numeric"},o={month:"short",year:"numeric"},a={hour:"numeric",minute:"numeric",hour12:!0};try{var s=e.toLocaleString("en-US",i);if(null!=t&&t.format&&"MM-YYYY"===t.format&&(s=e.toLocaleString("en-US",o)),t.time){var c=e.toLocaleString("en-US",a);if("object"===t.returnType)return[s,c];return"".concat(s," ").concat(c)}if(s.length<8)return"InvalidCell()";return s}catch(e){return"NaCell()"}}function f(e){if(!e)return"loading";var t=(e/100).toFixed(2);return"$".concat(t)}function h(e){if(!e)return 0;var t,r=0,n=i(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;o.price&&o.price.unit_amount&&o.price.qty&&(r+=o.price.unit_amount*o.price.qty)}}catch(e){n.e(e)}finally{n.f()}return f(r)}},21375:function(e,t,r){"use strict";var n=r(67294),i=function(){var e=(0,n.useState)(0),t=e[0],r=e[1];return(0,n.useEffect)(function(){var e=function(){r(window.scrollY)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}},[]),[t,function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;if(e){if(t="string"==typeof e?document.getElementById(e):e.current){var i=t.getBoundingClientRect().top+window.scrollY-r;window.scrollTo({top:i,behavior:"smooth"})}}else if(n)switch(n){case"top":window.scrollTo({top:0,behavior:"smooth"});break;case"bottom":window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"});break;case"left":window.scrollBy({left:-window.innerWidth,behavior:"smooth"});break;case"right":window.scrollBy({left:window.innerWidth,behavior:"smooth"})}}]};t.Z=i},42700:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294);function i(){var e=(0,n.useState)({width:0,height:0}),t=e[0],r=e[1];return(0,n.useEffect)(function(){var e=function(){r({width:window.innerWidth,height:window.innerHeight})};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]),t}},83454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(77663)},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(45485)}])},91479:function(){},42474:function(e,t,r){var n="/",i=r(48764).Buffer,o=r(83454);!function(){var t={7160:function(e,t,r){var n=t;n.bignum=r(711),n.define=r(495).define,n.base=r(853),n.constants=r(7335),n.decoders=r(6701),n.encoders=r(3418)},495:function(e,t,r){var n=r(7160),i=r(3782);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=r(6144).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},6483:function(e,t,r){var n=r(3782),i=r(853).Reporter,o=r(4300).Buffer;function a(e,t){if(i.call(this,t),!o.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,i),t.C=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.R=s,s.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},853:function(e,t,r){var n=t;n.Reporter=r(1293).b,n.DecoderBuffer=r(6483).C,n.EncoderBuffer=r(6483).R,n.Node=r(9374)},9374:function(e,t,r){var n=r(853).Reporter,i=r(853).EncoderBuffer,o=r(853).DecoderBuffer,a=r(3523),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),u=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function l(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=l;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){var e=this._baseState,t={};d.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},l.prototype._wrap=function(){var e=this._baseState;c.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},l.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0),t[e[r]]=r}),t}))},u.forEach(function(e){l.prototype[e]=function(){throw Error(e+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(e){l.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}}),l.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},l.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},l.prototype._decode=function(e,t){var r,n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var i=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var c=null;if(null!==n.explicit?c=n.explicit:null!==n.implicit?c=n.implicit:null!==n.tag&&(c=n.tag),null!==c||n.any){if(a=this._peekTag(e,c,n.any),e.isError(a))return a}else{var u=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(u)}}if(n.obj&&a&&(r=e.enterObject()),a){if(null!==n.explicit){var l=this._decodeTag(e,n.explicit);if(e.isError(l))return l;e=l}var d=e.offset;if(null===n.use&&null===n.choice){if(n.any)var u=e.save();var f=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(f))return f;n.any?i=e.raw(u):e=f}if(t&&t.track&&null!==n.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(r){r._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var h=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(h,t)}}return n.obj&&a&&(i=e.leaveObject(r)),null!==n.key&&(null!==i||!0===a)?e.leaveKey(s,n.key,i):null!==s&&e.exitKey(s),i},l.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;if("seq"===e||"set"===e)return null;if("seqof"===e||"setof"===e)return this._decodeList(t,e,n.args[0],r);if(/str$/.test(e))return this._decodeStr(t,e,r);if("objid"===e&&n.args)return this._decodeObjid(t,n.args[0],n.args[1],r);if("objid"===e)return this._decodeObjid(t,null,null,r);if("gentime"===e||"utctime"===e)return this._decodeTime(t,e,r);if("null_"===e)return this._decodeNull(t,r);if("bool"===e)return this._decodeBool(t,r);else if("objDesc"===e)return this._decodeStr(t,e,r);else if("int"===e||"enum"===e)return this._decodeInt(t,n.args&&n.args[0],r);return null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},l.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return(Object.keys(r.choice).some(function(o){var a=e.save(),s=r.choice[o];try{var c=s._decode(e,t);if(e.isError(c))return!1;n={type:o,value:c},i=!0}catch(t){return e.restore(a),!1}return!0},this),i)?n:e.error("Choice not matched")},l.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},l.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},l.prototype._encodeValue=function(e,t,r){var i,o=this._baseState;if(null===o.parent)return o.children[0]._encode(e,t||new n);var i=null;if(this.reporter=t,o.optional&&void 0===e){if(null===o.default)return;e=o.default}var a=null,s=!1;if(o.any)i=this._createEncoderBuffer(e);else if(o.choice)i=this._encodeChoice(e,t);else if(o.contains)a=this._getUse(o.contains,r)._encode(e,t),s=!0;else if(o.children)a=o.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===o.tag||"setof"===o.tag){if(!(o.args&&1===o.args.length))return t.error("Too many args for : "+o.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},c))}else null!==o.use?i=this._getUse(o.use,r)._encode(e,t):(a=this._encodePrimitive(o.tag,e),s=!0);if(!o.any&&null===o.choice){var u=null!==o.implicit?o.implicit:o.tag,l=null===o.implicit?"universal":"context";null===u?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(i=this._encodeComposite(u,s,l,a))}return null!==o.explicit&&(i=this._encodeComposite(o.explicit,!1,"context",i)),i},l.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);else if("objDesc"===e)return this._encodeStr(t,e);else throw Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},1293:function(e,t,r){var n=r(3782);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.b=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},9791:function(e,t,r){var n=r(7335);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},7335:function(e,t,r){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0),t[e[r]]=r}),t},n.der=r(9791)},2259:function(e,t,r){var n=r(3782),i=r(7160),o=i.base,a=i.bignum,s=i.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){o.Node.call(this,"der",e)}function l(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=(32&r)==0;if((31&r)==31){var o=r;for(r=0;(128&o)==128;){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;var a=s.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function d(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if((128&n)==0)return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=s.tagClassByName[r||"universal"]<<6)}e.exports=c,c.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(u,a.Node),u.prototype._encodeComposite=function(e,t,r,n){var o=d(e,t,r,this.reporter);if(n.length<128){var a=new i(2);return a[0]=o,a[1]=n.length,this._createEncoderBuffer([a,n])}for(var s=1,c=n.length;c>=256;c>>=8)s++;var a=new i(2+s);a[0]=o,a[1]=128|s;for(var c=1+s,u=n.length;u>0;c--,u>>=8)a[c]=255&u;return this._createEncoderBuffer([a,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var o=0,n=0;n=128;a>>=7)o++}for(var s=new i(o),c=s.length-1,n=e.length-1;n>=0;n--){var a=e[n];for(s[c--]=127&a;(a>>=7)>0;)s[c--]=128|127&a}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[l(n.getFullYear()),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[l(n.getFullYear()%100),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var n=1,a=e;a>=256;a>>=8)n++;for(var o=Array(n),a=o.length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n=49&&a<=54?n|=a-49+10:a>=17&&a<=22?n|=a-17+10:n|=15&a}return n}function s(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?i+=s-49+10:s>=17?i+=s-17+10:i+=s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,n,i=0;i=t;i-=6)n=a(e,i,i+6),this.words[r]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=a(e,t,i+6),this.words[r]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,c=Math.min(o,o-a)+r,u=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c,u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=l[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==c),this.toArrayLike(c,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i,o,a=this.byteLength(),s=r||Math.max(1,a);n(a<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var c="le"===t,u=new e(s),l=this.clone();if(c){for(o=0;!l.isZero();o++)i=l.andln(255),l.iushrn(8),u[o]=i;for(;o=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&n;for(;0!==o&&a>26,this.words[a]=67108863&n;if(0===o&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,b=0|a[2],g=8191&b,y=b>>>13,_=0|a[3],v=8191&_,E=_>>>13,T=0|a[4],A=8191&T,S=T>>>13,x=0|a[5],C=8191&x,w=x>>>13,N=0|a[6],M=8191&N,k=N>>>13,O=0|a[7],R=8191&O,I=O>>>13,P=0|a[8],D=8191&P,$=P>>>13,L=0|a[9],F=8191&L,j=L>>>13,U=0|s[0],B=8191&U,H=U>>>13,z=0|s[1],V=8191&z,G=z>>>13,Y=0|s[2],q=8191&Y,W=Y>>>13,Z=0|s[3],K=8191&Z,X=Z>>>13,Q=0|s[4],J=8191&Q,ee=Q>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],ec=8191&es,eu=es>>>13,el=0|s[8],ed=8191&el,ef=el>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(u+(n=Math.imul(d,B))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,B)|0))<<13)|0;u=((o=Math.imul(f,H))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,B),i=(i=Math.imul(p,H))+Math.imul(m,B)|0,o=Math.imul(m,H);var eg=(u+(n=n+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,V)|0))<<13)|0;u=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,B),i=(i=Math.imul(g,H))+Math.imul(y,B)|0,o=Math.imul(y,H),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0;var ey=(u+(n=n+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,q)|0))<<13)|0;u=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(v,B),i=(i=Math.imul(v,H))+Math.imul(E,B)|0,o=Math.imul(E,H),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,W)|0;var e_=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(f,K)|0))<<13)|0;u=((o=o+Math.imul(f,X)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(A,B),i=(i=Math.imul(A,H))+Math.imul(S,B)|0,o=Math.imul(S,H),n=n+Math.imul(v,V)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(E,V)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,W)|0)+Math.imul(y,q)|0,o=o+Math.imul(y,W)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,X)|0;var ev=(u+(n=n+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(C,B),i=(i=Math.imul(C,H))+Math.imul(w,B)|0,o=Math.imul(w,H),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,W)|0,n=n+Math.imul(g,K)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,ee)|0;var eE=(u+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(f,er)|0))<<13)|0;u=((o=o+Math.imul(f,en)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(M,B),i=(i=Math.imul(M,H))+Math.imul(k,B)|0,o=Math.imul(k,H),n=n+Math.imul(C,V)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(w,V)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(S,q)|0,o=o+Math.imul(S,W)|0,n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0;var eT=(u+(n=n+Math.imul(d,eo)|0)|0)+((8191&(i=(i=i+Math.imul(d,ea)|0)+Math.imul(f,eo)|0))<<13)|0;u=((o=o+Math.imul(f,ea)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(R,B),i=(i=Math.imul(R,H))+Math.imul(I,B)|0,o=Math.imul(I,H),n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,W)|0,n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,o=o+Math.imul(y,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0;var eA=(u+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,eu)|0)+Math.imul(f,ec)|0))<<13)|0;u=((o=o+Math.imul(f,eu)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(D,B),i=(i=Math.imul(D,H))+Math.imul($,B)|0,o=Math.imul($,H),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(v,er)|0,i=(i=i+Math.imul(v,en)|0)+Math.imul(E,er)|0,o=o+Math.imul(E,en)|0,n=n+Math.imul(g,eo)|0,i=(i=i+Math.imul(g,ea)|0)+Math.imul(y,eo)|0,o=o+Math.imul(y,ea)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,eu)|0)+Math.imul(m,ec)|0,o=o+Math.imul(m,eu)|0;var eS=(u+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(f,ed)|0))<<13)|0;u=((o=o+Math.imul(f,ef)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(F,B),i=(i=Math.imul(F,H))+Math.imul(j,B)|0,o=Math.imul(j,H),n=n+Math.imul(D,V)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul($,V)|0,o=o+Math.imul($,G)|0,n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(S,er)|0,o=o+Math.imul(S,en)|0,n=n+Math.imul(v,eo)|0,i=(i=i+Math.imul(v,ea)|0)+Math.imul(E,eo)|0,o=o+Math.imul(E,ea)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,eu)|0)+Math.imul(y,ec)|0,o=o+Math.imul(y,eu)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ed)|0,o=o+Math.imul(m,ef)|0;var ex=(u+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(f,ep)|0))<<13)|0;u=((o=o+Math.imul(f,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(F,V),i=(i=Math.imul(F,G))+Math.imul(j,V)|0,o=Math.imul(j,G),n=n+Math.imul(D,q)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul($,q)|0,o=o+Math.imul($,W)|0,n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(C,er)|0,i=(i=i+Math.imul(C,en)|0)+Math.imul(w,er)|0,o=o+Math.imul(w,en)|0,n=n+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,ea)|0,n=n+Math.imul(v,ec)|0,i=(i=i+Math.imul(v,eu)|0)+Math.imul(E,ec)|0,o=o+Math.imul(E,eu)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ed)|0,o=o+Math.imul(y,ef)|0;var eC=(u+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;u=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(F,q),i=(i=Math.imul(F,W))+Math.imul(j,q)|0,o=Math.imul(j,W),n=n+Math.imul(D,K)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul($,K)|0,o=o+Math.imul($,X)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,er)|0,i=(i=i+Math.imul(M,en)|0)+Math.imul(k,er)|0,o=o+Math.imul(k,en)|0,n=n+Math.imul(C,eo)|0,i=(i=i+Math.imul(C,ea)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,ea)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,eu)|0)+Math.imul(S,ec)|0,o=o+Math.imul(S,eu)|0,n=n+Math.imul(v,ed)|0,i=(i=i+Math.imul(v,ef)|0)+Math.imul(E,ed)|0,o=o+Math.imul(E,ef)|0;var ew=(u+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;u=((o=o+Math.imul(y,em)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(F,K),i=(i=Math.imul(F,X))+Math.imul(j,K)|0,o=Math.imul(j,X),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul($,J)|0,o=o+Math.imul($,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,o=o+Math.imul(I,en)|0,n=n+Math.imul(M,eo)|0,i=(i=i+Math.imul(M,ea)|0)+Math.imul(k,eo)|0,o=o+Math.imul(k,ea)|0,n=n+Math.imul(C,ec)|0,i=(i=i+Math.imul(C,eu)|0)+Math.imul(w,ec)|0,o=o+Math.imul(w,eu)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(S,ed)|0,o=o+Math.imul(S,ef)|0;var eN=(u+(n=n+Math.imul(v,ep)|0)|0)+((8191&(i=(i=i+Math.imul(v,em)|0)+Math.imul(E,ep)|0))<<13)|0;u=((o=o+Math.imul(E,em)|0)+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,n=Math.imul(F,J),i=(i=Math.imul(F,ee))+Math.imul(j,J)|0,o=Math.imul(j,ee),n=n+Math.imul(D,er)|0,i=(i=i+Math.imul(D,en)|0)+Math.imul($,er)|0,o=o+Math.imul($,en)|0,n=n+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(I,eo)|0,o=o+Math.imul(I,ea)|0,n=n+Math.imul(M,ec)|0,i=(i=i+Math.imul(M,eu)|0)+Math.imul(k,ec)|0,o=o+Math.imul(k,eu)|0,n=n+Math.imul(C,ed)|0,i=(i=i+Math.imul(C,ef)|0)+Math.imul(w,ed)|0,o=o+Math.imul(w,ef)|0;var eM=(u+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(S,ep)|0))<<13)|0;u=((o=o+Math.imul(S,em)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(F,er),i=(i=Math.imul(F,en))+Math.imul(j,er)|0,o=Math.imul(j,en),n=n+Math.imul(D,eo)|0,i=(i=i+Math.imul(D,ea)|0)+Math.imul($,eo)|0,o=o+Math.imul($,ea)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,eu)|0)+Math.imul(I,ec)|0,o=o+Math.imul(I,eu)|0,n=n+Math.imul(M,ed)|0,i=(i=i+Math.imul(M,ef)|0)+Math.imul(k,ed)|0,o=o+Math.imul(k,ef)|0;var ek=(u+(n=n+Math.imul(C,ep)|0)|0)+((8191&(i=(i=i+Math.imul(C,em)|0)+Math.imul(w,ep)|0))<<13)|0;u=((o=o+Math.imul(w,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(F,eo),i=(i=Math.imul(F,ea))+Math.imul(j,eo)|0,o=Math.imul(j,ea),n=n+Math.imul(D,ec)|0,i=(i=i+Math.imul(D,eu)|0)+Math.imul($,ec)|0,o=o+Math.imul($,eu)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ed)|0,o=o+Math.imul(I,ef)|0;var eO=(u+(n=n+Math.imul(M,ep)|0)|0)+((8191&(i=(i=i+Math.imul(M,em)|0)+Math.imul(k,ep)|0))<<13)|0;u=((o=o+Math.imul(k,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(F,ec),i=(i=Math.imul(F,eu))+Math.imul(j,ec)|0,o=Math.imul(j,eu),n=n+Math.imul(D,ed)|0,i=(i=i+Math.imul(D,ef)|0)+Math.imul($,ed)|0,o=o+Math.imul($,ef)|0;var eR=(u+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;u=((o=o+Math.imul(I,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(F,ed),i=(i=Math.imul(F,ef))+Math.imul(j,ed)|0,o=Math.imul(j,ef);var eI=(u+(n=n+Math.imul(D,ep)|0)|0)+((8191&(i=(i=i+Math.imul(D,em)|0)+Math.imul($,ep)|0))<<13)|0;u=((o=o+Math.imul($,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863;var eP=(u+(n=Math.imul(F,ep))|0)+((8191&(i=(i=Math.imul(F,em))+Math.imul(j,ep)|0))<<13)|0;return u=((o=Math.imul(j,em))+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=e_,c[4]=ev,c[5]=eE,c[6]=eT,c[7]=eA,c[8]=eS,c[9]=ex,c[10]=eC,c[11]=ew,c[12]=eN,c[13]=eM,c[14]=ek,c[15]=eO,c[16]=eR,c[17]=eI,c[18]=eP,0!==u&&(c[19]=u,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function b(e,t,r){return(new g).mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?m(this,e,t):b(this,e,t)},g.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=(i/67108864|0)+(o>>>26),this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=f(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-o|d>>>o,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var c=i.length-a.length;if("mod"!==t){(r=new o(null)).length=c+1,r.words=Array(r.length);for(var u=0;u=0;d--){var f=(0|i.words[a.length+d])*67108864+(0|i.words[a.length+d-1]);for(f=Math.min(f/s|0,67108863),i._ishlnsubmul(a,f,d);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(a,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=f)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;(t.words[0]&h)==0&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;(i.words[0]&f)==0&&d<26;++d,f<<=1);if(d>0)for(i.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function T(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(v,_),v.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(y[e])return y[e];if("k256"===e)t=new v;else if("p224"===e)t=new E;else if("p192"===e)t=new T;else if("p25519"===e)t=new A;else throw Error("Unknown prime "+e);return y[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,b=0;0!==m.cmp(s);b++)m=m.redSqr();n(b=0;i--){for(var l=t.words[i],d=u-1;d>=0;d--){var f=l>>d&1;if(a!==n[0]&&(a=this.sqr(a)),0===f&&0===s){c=0;continue}s<<=1,s|=f,(++c===r||0===i&&0===d)&&(a=this.mul(a,n[s]),c=0,s=0)}u=26}return a},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},1670:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{l=r(4300).Buffer}catch(e){}function a(e,t,r){for(var i=0,o=Math.min(e.length,r),a=0,s=t;s=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:u,a|=c}return n(!(240&a),"Invalid character in "+e),i}function s(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a"}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,n,i=0;i=t;i-=6)n=a(e,i,i+6),this.words[r]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=a(e,t,i+6),this.words[r]|=n<>>26-o&4194303),this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,c=Math.min(o,o-a)+r,u=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u:o.prototype.inspect=u;var l,d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?d[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(l).toString(e);r=(p=p.idivn(l)).isZero()?m+r:d[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},l&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(l,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var p=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function m(e){for(var t=Array(e.bitLength()),r=0;r>>i&1}return t}function b(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=p(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&n;for(;0!==o&&a>26,this.words[a]=67108863&n;if(0===o&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,b=0|a[2],g=8191&b,y=b>>>13,_=0|a[3],v=8191&_,E=_>>>13,T=0|a[4],A=8191&T,S=T>>>13,x=0|a[5],C=8191&x,w=x>>>13,N=0|a[6],M=8191&N,k=N>>>13,O=0|a[7],R=8191&O,I=O>>>13,P=0|a[8],D=8191&P,$=P>>>13,L=0|a[9],F=8191&L,j=L>>>13,U=0|s[0],B=8191&U,H=U>>>13,z=0|s[1],V=8191&z,G=z>>>13,Y=0|s[2],q=8191&Y,W=Y>>>13,Z=0|s[3],K=8191&Z,X=Z>>>13,Q=0|s[4],J=8191&Q,ee=Q>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],ec=8191&es,eu=es>>>13,el=0|s[8],ed=8191&el,ef=el>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(u+(n=Math.imul(d,B))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,B)|0))<<13)|0;u=((o=Math.imul(f,H))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,B),i=(i=Math.imul(p,H))+Math.imul(m,B)|0,o=Math.imul(m,H);var eg=(u+(n=n+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,V)|0))<<13)|0;u=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,B),i=(i=Math.imul(g,H))+Math.imul(y,B)|0,o=Math.imul(y,H),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0;var ey=(u+(n=n+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,q)|0))<<13)|0;u=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(v,B),i=(i=Math.imul(v,H))+Math.imul(E,B)|0,o=Math.imul(E,H),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,W)|0;var e_=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(f,K)|0))<<13)|0;u=((o=o+Math.imul(f,X)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(A,B),i=(i=Math.imul(A,H))+Math.imul(S,B)|0,o=Math.imul(S,H),n=n+Math.imul(v,V)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(E,V)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,W)|0)+Math.imul(y,q)|0,o=o+Math.imul(y,W)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,X)|0;var ev=(u+(n=n+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(C,B),i=(i=Math.imul(C,H))+Math.imul(w,B)|0,o=Math.imul(w,H),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,W)|0,n=n+Math.imul(g,K)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,ee)|0;var eE=(u+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(f,er)|0))<<13)|0;u=((o=o+Math.imul(f,en)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(M,B),i=(i=Math.imul(M,H))+Math.imul(k,B)|0,o=Math.imul(k,H),n=n+Math.imul(C,V)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(w,V)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(S,q)|0,o=o+Math.imul(S,W)|0,n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0;var eT=(u+(n=n+Math.imul(d,eo)|0)|0)+((8191&(i=(i=i+Math.imul(d,ea)|0)+Math.imul(f,eo)|0))<<13)|0;u=((o=o+Math.imul(f,ea)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(R,B),i=(i=Math.imul(R,H))+Math.imul(I,B)|0,o=Math.imul(I,H),n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,W)|0,n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,o=o+Math.imul(y,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0;var eA=(u+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,eu)|0)+Math.imul(f,ec)|0))<<13)|0;u=((o=o+Math.imul(f,eu)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(D,B),i=(i=Math.imul(D,H))+Math.imul($,B)|0,o=Math.imul($,H),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(v,er)|0,i=(i=i+Math.imul(v,en)|0)+Math.imul(E,er)|0,o=o+Math.imul(E,en)|0,n=n+Math.imul(g,eo)|0,i=(i=i+Math.imul(g,ea)|0)+Math.imul(y,eo)|0,o=o+Math.imul(y,ea)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,eu)|0)+Math.imul(m,ec)|0,o=o+Math.imul(m,eu)|0;var eS=(u+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(f,ed)|0))<<13)|0;u=((o=o+Math.imul(f,ef)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(F,B),i=(i=Math.imul(F,H))+Math.imul(j,B)|0,o=Math.imul(j,H),n=n+Math.imul(D,V)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul($,V)|0,o=o+Math.imul($,G)|0,n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(S,er)|0,o=o+Math.imul(S,en)|0,n=n+Math.imul(v,eo)|0,i=(i=i+Math.imul(v,ea)|0)+Math.imul(E,eo)|0,o=o+Math.imul(E,ea)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,eu)|0)+Math.imul(y,ec)|0,o=o+Math.imul(y,eu)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ed)|0,o=o+Math.imul(m,ef)|0;var ex=(u+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(f,ep)|0))<<13)|0;u=((o=o+Math.imul(f,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(F,V),i=(i=Math.imul(F,G))+Math.imul(j,V)|0,o=Math.imul(j,G),n=n+Math.imul(D,q)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul($,q)|0,o=o+Math.imul($,W)|0,n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(C,er)|0,i=(i=i+Math.imul(C,en)|0)+Math.imul(w,er)|0,o=o+Math.imul(w,en)|0,n=n+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,ea)|0,n=n+Math.imul(v,ec)|0,i=(i=i+Math.imul(v,eu)|0)+Math.imul(E,ec)|0,o=o+Math.imul(E,eu)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ed)|0,o=o+Math.imul(y,ef)|0;var eC=(u+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;u=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(F,q),i=(i=Math.imul(F,W))+Math.imul(j,q)|0,o=Math.imul(j,W),n=n+Math.imul(D,K)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul($,K)|0,o=o+Math.imul($,X)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,er)|0,i=(i=i+Math.imul(M,en)|0)+Math.imul(k,er)|0,o=o+Math.imul(k,en)|0,n=n+Math.imul(C,eo)|0,i=(i=i+Math.imul(C,ea)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,ea)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,eu)|0)+Math.imul(S,ec)|0,o=o+Math.imul(S,eu)|0,n=n+Math.imul(v,ed)|0,i=(i=i+Math.imul(v,ef)|0)+Math.imul(E,ed)|0,o=o+Math.imul(E,ef)|0;var ew=(u+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;u=((o=o+Math.imul(y,em)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(F,K),i=(i=Math.imul(F,X))+Math.imul(j,K)|0,o=Math.imul(j,X),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul($,J)|0,o=o+Math.imul($,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,o=o+Math.imul(I,en)|0,n=n+Math.imul(M,eo)|0,i=(i=i+Math.imul(M,ea)|0)+Math.imul(k,eo)|0,o=o+Math.imul(k,ea)|0,n=n+Math.imul(C,ec)|0,i=(i=i+Math.imul(C,eu)|0)+Math.imul(w,ec)|0,o=o+Math.imul(w,eu)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(S,ed)|0,o=o+Math.imul(S,ef)|0;var eN=(u+(n=n+Math.imul(v,ep)|0)|0)+((8191&(i=(i=i+Math.imul(v,em)|0)+Math.imul(E,ep)|0))<<13)|0;u=((o=o+Math.imul(E,em)|0)+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,n=Math.imul(F,J),i=(i=Math.imul(F,ee))+Math.imul(j,J)|0,o=Math.imul(j,ee),n=n+Math.imul(D,er)|0,i=(i=i+Math.imul(D,en)|0)+Math.imul($,er)|0,o=o+Math.imul($,en)|0,n=n+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(I,eo)|0,o=o+Math.imul(I,ea)|0,n=n+Math.imul(M,ec)|0,i=(i=i+Math.imul(M,eu)|0)+Math.imul(k,ec)|0,o=o+Math.imul(k,eu)|0,n=n+Math.imul(C,ed)|0,i=(i=i+Math.imul(C,ef)|0)+Math.imul(w,ed)|0,o=o+Math.imul(w,ef)|0;var eM=(u+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(S,ep)|0))<<13)|0;u=((o=o+Math.imul(S,em)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(F,er),i=(i=Math.imul(F,en))+Math.imul(j,er)|0,o=Math.imul(j,en),n=n+Math.imul(D,eo)|0,i=(i=i+Math.imul(D,ea)|0)+Math.imul($,eo)|0,o=o+Math.imul($,ea)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,eu)|0)+Math.imul(I,ec)|0,o=o+Math.imul(I,eu)|0,n=n+Math.imul(M,ed)|0,i=(i=i+Math.imul(M,ef)|0)+Math.imul(k,ed)|0,o=o+Math.imul(k,ef)|0;var ek=(u+(n=n+Math.imul(C,ep)|0)|0)+((8191&(i=(i=i+Math.imul(C,em)|0)+Math.imul(w,ep)|0))<<13)|0;u=((o=o+Math.imul(w,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(F,eo),i=(i=Math.imul(F,ea))+Math.imul(j,eo)|0,o=Math.imul(j,ea),n=n+Math.imul(D,ec)|0,i=(i=i+Math.imul(D,eu)|0)+Math.imul($,ec)|0,o=o+Math.imul($,eu)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ed)|0,o=o+Math.imul(I,ef)|0;var eO=(u+(n=n+Math.imul(M,ep)|0)|0)+((8191&(i=(i=i+Math.imul(M,em)|0)+Math.imul(k,ep)|0))<<13)|0;u=((o=o+Math.imul(k,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(F,ec),i=(i=Math.imul(F,eu))+Math.imul(j,ec)|0,o=Math.imul(j,eu),n=n+Math.imul(D,ed)|0,i=(i=i+Math.imul(D,ef)|0)+Math.imul($,ed)|0,o=o+Math.imul($,ef)|0;var eR=(u+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;u=((o=o+Math.imul(I,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(F,ed),i=(i=Math.imul(F,ef))+Math.imul(j,ed)|0,o=Math.imul(j,ef);var eI=(u+(n=n+Math.imul(D,ep)|0)|0)+((8191&(i=(i=i+Math.imul(D,em)|0)+Math.imul($,ep)|0))<<13)|0;u=((o=o+Math.imul($,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863;var eP=(u+(n=Math.imul(F,ep))|0)+((8191&(i=(i=Math.imul(F,em))+Math.imul(j,ep)|0))<<13)|0;return u=((o=Math.imul(j,em))+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=e_,c[4]=ev,c[5]=eE,c[6]=eT,c[7]=eA,c[8]=eS,c[9]=ex,c[10]=eC,c[11]=ew,c[12]=eN,c[13]=eM,c[14]=ek,c[15]=eO,c[16]=eR,c[17]=eI,c[18]=eP,0!==u&&(c[19]=u,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function _(e,t,r){return y(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(g=b),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?b(this,e,t):r<1024?y(this,e,t):_(this,e,t)},v.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,r+=(o/67108864|0)+(a>>>26),this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=m(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-o|d>>>o,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var c=i.length-a.length;if("mod"!==t){(r=new o(null)).length=c+1,r.words=Array(r.length);for(var u=0;u=0;d--){var f=(0|i.words[a.length+d])*67108864+(0|i.words[a.length+d-1]);for(f=Math.min(f/s|0,67108863),i._ishlnsubmul(a,f,d);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(a,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=f)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=67108864%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;(t.words[0]&h)==0&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;(i.words[0]&f)==0&&d<26;++d,f<<=1);if(d>0)for(i.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new w(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var E={k256:null,p224:null,p192:null,p25519:null};function T(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){T.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){T.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){T.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){T.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function w(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function N(e){w.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}T.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},T.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},T.prototype.split=function(e,t){e.iushrn(this.n,0,t)},T.prototype.imulK=function(e){return e.imul(this.k)},i(A,T),A.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},A.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(E[e])return E[e];if("k256"===e)t=new A;else if("p224"===e)t=new S;else if("p192"===e)t=new x;else if("p25519"===e)t=new C;else throw Error("Unknown prime "+e);return E[e]=t,t},w.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},w.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},w.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},w.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},w.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},w.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},w.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},w.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},w.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},w.prototype.isqr=function(e){return this.imul(e,e.clone())},w.prototype.sqr=function(e){return this.mul(e,e)},w.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,b=0;0!==m.cmp(s);b++)m=m.redSqr();n(b=0;i--){for(var l=t.words[i],d=u-1;d>=0;d--){var f=l>>d&1;if(a!==n[0]&&(a=this.sqr(a)),0===f&&0===s){c=0;continue}s<<=1,s|=f,(++c===r||0===i&&0===d)&&(a=this.mul(a,n[s]),c=0,s=0)}u=26}return a},w.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},w.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new N(e)},i(N,w),N.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},N.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},N.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},N.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},3500:function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r>>24]^l[p>>>16&255]^d[m>>>8&255]^f[255&b]^t[g++],a=u[p>>>24]^l[m>>>16&255]^d[b>>>8&255]^f[255&h]^t[g++],s=u[m>>>24]^l[b>>>16&255]^d[h>>>8&255]^f[255&p]^t[g++],c=u[b>>>24]^l[h>>>16&255]^d[p>>>8&255]^f[255&m]^t[g++],h=o,p=a,m=s,b=c;return o=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&b])^t[g++],a=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[b>>>8&255]<<8|n[255&h])^t[g++],[o>>>=0,a>>>=0,s=((n[m>>>24]<<24|n[b>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[g++])>>>0,c=((n[b>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[g++])>>>0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[a]=u,n[u]=a;var l=e[a],d=e[l],f=e[d],h=257*e[u]^16843008*u;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*f^65537*d^257*l^16843008*a,o[0][u]=h<<24|h>>>8,o[1][u]=h<<16|h>>>16,o[2][u]=h<<8|h>>>24,o[3][u]=h,0===a?a=s=1:(a=l^e[e[e[f^l]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function u(e){this._key=i(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=(r+1)*4,i=[],o=0;o>>24,a=(c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a])^s[o/t|0]<<24):t>6&&o%t==4&&(a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a]),i[o]=i[o-t]^a}for(var u=[],l=0;l>>24]]^c.INV_SUB_MIX[1][c.SBOX[f>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[f>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&f]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=u},6624:function(e,t,r){var n=r(1387),i=r(6911).Buffer,o=r(1043),a=r(3782),s=r(7225),c=r(4734),u=r(598);function l(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i16)throw Error("unable to decrypt data");for(var r=-1;++r16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=p,t.createDecipheriv=h},2:function(e,t,r){var n=r(6370),i=r(6624),o=r(6911).Buffer,a=r(126),s=r(1043),c=r(1387),u=r(8368);function l(e,t,r){s.call(this),this._cache=new f,this._cipher=new c.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(3782)(l,s),l.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var d=o.alloc(16,16);function f(){this.cache=o.allocUnsafe(0)}function h(e,t,r){var s=n[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new l(s.module,t,r)}function p(e,t){var r=n[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var i=u(t,!1,r.key,r.iv);return h(e,i.key,i.iv)}l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=o.concat([this.cache,e])},f.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,t&&(r[0]=-520093696^r[0])}this.state=a(n)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=s},598:function(e){function t(e){for(var t,r=e.length;r--;)if(255===(t=e.readUInt8(r)))e.writeUInt8(0,r);else{t++,e.writeUInt8(t,r);break}}e.exports=t},9825:function(e,t,r){var n=r(4734);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;return e._prev=t,n(e._cipher.decryptBlock(t),r)}},321:function(e,t,r){var n=r(6911).Buffer,i=r(4734);function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}t.encrypt=function(e,t,r){for(var i,a=n.allocUnsafe(0);t.length;)if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),e._cache.length<=t.length)i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i);else{a=n.concat([a,o(e,t,r)]);break}return a}},3147:function(e,t,r){var n=r(6911).Buffer;function i(e,t,r){for(var n,i,a,s=-1,c=8,u=0;++s>s%8,e._prev=o(e._prev,r?i:a);return u}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(o(t));return r}e.exports=s,s.getr=c},9276:function(e,t,r){e.exports=r(2908)},4078:function(e,t,r){var n=r(6911).Buffer,i=r(9739),o=r(3726),a=r(3782),s=r(9807),c=r(4013),u=r(2908);function l(e){o.Writable.call(this);var t=u[e];if(!t)throw Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){o.Writable.call(this);var t=u[e];if(!t)throw Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new l(e)}function h(e){return new d(e)}Object.keys(u).forEach(function(e){u[e].id=n.from(u[e].id,"hex"),u[e.toLowerCase()]=u[e]}),a(l,o.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},l.prototype.sign=function(e,t){this.end();var r=s(this._hash.digest(),e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(d,o.Writable),d.prototype._write=function(e,t,r){this._hash.update(e),r()},d.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},d.prototype.verify=function(e,t,r){return"string"==typeof t&&(t=n.from(t,r)),this.end(),c(t,this._hash.digest(),e,this._signType,this._tag)},e.exports={Sign:f,Verify:h,createSign:f,createVerify:h}},9807:function(e,t,r){var n=r(6911).Buffer,i=r(4873),o=r(7166),a=r(949).ec,s=r(1670),c=r(9902),u=r(9267);function l(e,t,r,i,a){var s=c(t);if(s.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");return d(e,s)}if("dsa"===s.type){if("dsa"!==i)throw Error("wrong private key type");return f(e,s,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");e=n.concat([a,e]);for(var u=s.modulus.byteLength(),l=[0,1];e.length+l.length+10&&r.ishrn(n),r}function b(e,t){e=(e=m(e,t)).mod(t);var r=n.from(e.toArray());if(r.length=e.cmpn(0)||e.cmp(t)>=t)throw Error("invalid sig")}e.exports=c},4734:function(e){e.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new i(r),o=0;or?t=("rmd160"===e?new c:u(e)).update(t).digest():t.lengths?t=e(t):t.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return(e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t)?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},c.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},c.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,a=h}o.rip(s,a,n,i)},c.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];o.expand(a,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var d=o.substitute(u,l),f=o.permute(d),h=a;a=(s^f)>>>0,s=h}o.rip(a,s,n,i)}},6159:function(e,t,r){"use strict";var n=r(3523),i=r(3782),o=r(9876),a=r(1016);function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);"encrypt"===e?this.ciphers=[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:this.ciphers=[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function c(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(c,o),e.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},c.prototype._pad=a.prototype._pad,c.prototype._unpad=a.prototype._unpad},5334:function(e,t){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(var a=6;a>=0;a-=2){for(var s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(var s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(var a=4;a<8;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var a=1;a<=3;a++){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var o=0,a=0,s=r.length>>>1,c=0;c>>r[c]&1;for(var c=s;c>>r[c]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(var o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,i=0;i<4;i++){var o=e>>>18-6*i&63,a=n[64*i+o];r<<=4,r|=a}for(var i=0;i<4;i++){var o=t>>>18-6*i&63,a=n[256+64*i+o];r<<=4,r|=a}return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r>>i[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(u))for(;r.mod(l).cmp(d);)r.iadd(h)}else for(;r.mod(o).cmp(f);)r.iadd(h);if(b(p=r.shrn(1))&&b(r)&&g(p)&&g(r)&&a.test(p)&&a.test(r))return r}}},949:function(e,t,r){"use strict";var n=t;n.version=r(2531).i8,n.utils=r(4401),n.rand=r(3500),n.curve=r(9359),n.curves=r(6226),n.ec=r(4088),n.eddsa=r(8511)},2727:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.getNAF,a=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw Error("Not implemented")},c.prototype.validate=function(){throw Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<=c;t--)u=(u<<1)+n[t];a.push(u)}for(var l=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=i;f>0;f--){for(var c=0;c=0;u--){for(var t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,c=c.dblp(t),u<0)break;var l=a[u];s(0!==l),c="affine"===e.type?l>0?c.mixedAdd(i[l-1>>1]):c.mixedAdd(i[-l-1>>1].neg()):l>0?c.add(i[l-1>>1]):c.add(i[-l-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,c=this._wnafT2,u=this._wnafT3,l=0,d=0;d=1;d-=2){var p=d-1,m=d;if(1!==s[p]||1!==s[m]){u[p]=o(r[p],s[p],this._bitLength),u[m]=o(r[m],s[m],this._bitLength),l=Math.max(u[p].length,l),l=Math.max(u[m].length,l);continue}var b=[t[p],null,null,t[m]];0===t[p].y.cmp(t[m].y)?(b[1]=t[p].add(t[m]),b[2]=t[p].toJ().mixedAdd(t[m].neg())):0===t[p].y.cmp(t[m].y.redNeg())?(b[1]=t[p].toJ().mixedAdd(t[m]),b[2]=t[p].add(t[m].neg())):(b[1]=t[p].toJ().mixedAdd(t[m]),b[2]=t[p].toJ().mixedAdd(t[m].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=a(r[p],r[m]);l=Math.max(y[0].length,l),u[p]=Array(l),u[m]=Array(l);for(var _=0;_=0;d--){for(var S=0;d>=0;){for(var x=!0,_=0;_=0&&S++,T=T.dblp(S),d<0)break;for(var _=0;_0?f=c[_][C-1>>1]:C<0&&(f=c[_][-C-1>>1].neg()),T="affine"===f.type?T.mixedAdd(f):T.add(f))}}for(var d=0;d=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),c=i.redMul(a),u=o.redMul(s),l=i.redMul(s),d=a.redMul(o);return this.curve.point(c,u,d,l)},u.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=this.curve._mulA(i),s=a.redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),t=s.redMul(a.redSub(o)),r=s.redSqr().redSub(s).redSub(s);else{var c=this.z.redSqr(),u=s.redSub(c).redISub(c);e=n.redSub(i).redISub(o).redMul(u),t=s.redMul(a.redSub(o)),r=s.redMul(u)}}else{var a=i.redAdd(o),c=this.curve._mulC(this.z).redSqr(),u=a.redSub(c).redSub(c);e=this.curve._mulC(n.redISub(a)).redMul(u),t=this.curve._mulC(a).redMul(i.redISub(o)),r=a.redMul(u)}return this.curve.point(e,t,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),u=o.redMul(a),l=s.redMul(c),d=o.redMul(c),f=a.redMul(s);return this.curve.point(u,l,f,d)},u.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),u=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=n.redMul(c).redMul(l);return this.curve.twisted?(t=n.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=c.redMul(u)):(t=n.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(c).redMul(u)),this.curve.point(d,t,r)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},u.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},9359:function(e,t,r){"use strict";var n=t;n.base=r(2727),n.short=r(4720),n.mont=r(6653),n.edwards=r(2705)},6653:function(e,t,r){"use strict";var n=r(711),i=r(3782),o=r(2727),a=r(4401);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(c,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=this,o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},c.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},4720:function(e,t,r){"use strict";var n=r(4401),i=r(711),o=r(3782),a=r(2727),s=n.assert;function c(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function u(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(c,a),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var t,r,n,o=this._getEndoRoots(this.p);t=(t=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?r=a[0]:(r=a[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,c,u,l,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,h=this.n.clone(),p=new i(1),m=new i(0),b=new i(0),g=new i(1),y=0;0!==f.cmpn(0);){var _=h.div(f);u=h.sub(_.mul(f)),l=b.sub(_.mul(p));var v=g.sub(_.mul(m));if(!n&&0>u.cmp(d))t=c.neg(),r=p,n=u.neg(),o=l;else if(n&&2==++y)break;c=u,h=f,f=u,b=p,p=l,g=m,m=v}a=u.neg(),s=l;var E=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(E)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(u).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return(e=new i(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},u.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,a.BasePoint),c.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),d=n.redMul(u),f=c.redSqr().redIAdd(l).redISub(d).redISub(d),h=c.redMul(d.redISub(f)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),l=r.redMul(c),d=s.redSqr().redIAdd(u).redISub(l).redISub(l),f=s.redMul(l.redISub(d)).redISub(i.redMul(u)),h=this.z.redMul(a);return this.curve.jpoint(d,f,h)},l.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},6226:function(e,t,r){"use strict";var n,i=t,o=r(7028),a=r(9359),s=r(4401).assert;function c(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(9702)}catch(e){n=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},4088:function(e,t,r){"use strict";var n=r(711),i=r(4910),o=r(4401),a=r(6226),s=r(3500),c=o.assert,u=r(4724),l=r(7526);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(c(a.hasOwnProperty(e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new u(this,e)},d.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},d.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),u=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new n(1)),f=0;;f++){var h=o.k?o.k(f):new n(u.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(d)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),b=m.umod(this.n);if(0!==b.cmpn(0)){var g=h.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(b)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new l({r:b,s:g,recoveryParam:y})}}}}}},d.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new l(t,"hex")).r,a=t.s;if(0>o.cmpn(1)||o.cmp(this.n)>=0||0>a.cmpn(1)||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),c=s.mul(e).umod(this.n),u=s.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var d=this.g.mulAdd(c,r.getPublic(),u);return!d.isInfinity()&&0===d.getX().umod(this.n).cmp(o)}var d=this.g.jmulAdd(c,r.getPublic(),u);return!d.isInfinity()&&d.eqXToP(o)},d.prototype.recoverPubKey=function(e,t,r,i){c((3&r)===r,"The recovery param is more than two bits"),t=new l(t,i);var o=this.n,a=new n(e),s=t.r,u=t.s,d=1&r,f=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),m=u.mul(h).umod(o);return this.g.mulAdd(p,s,m)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new l(t,n)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw Error("Unable to find valid recovery factor")}},4724:function(e,t,r){"use strict";var n=r(711),i=r(4401).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&i(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return""}},7526:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function u(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=c(e,r);if(!1===o||o+r.place!==e.length||2!==e[r.place++])return!1;var a=c(e,r);if(!1===a)return!1;var u=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var l=c(e,r);if(!1===l||e.length!==l+r.place)return!1;var d=e.slice(r.place,l+r.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(u),this.s=new n(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var o=n.concat(r),a=[48];return l(a,o.length),a=a.concat(o),i.encode(a,e)}},8511:function(e,t,r){"use strict";var n=r(7028),i=r(6226),o=r(4401),a=o.assert,s=o.parseBytes,c=r(9917),u=r(9314);function l(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);var e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=l,l.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),c=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},l.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n}function c(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,a,s=e.andln(3)+n&3,c=t.andln(3)+i&3;if(3===s&&(s=-1),3===c&&(c=-1),(1&s)==0)o=0;else{var u=e.andln(7)+n&7;o=(3===u||5===u)&&2===c?-s:s}if(r[0].push(o),(1&c)==0)a=0;else{var u=t.andln(7)+i&7;a=(3===u||5===u)&&2===s?-c:c}r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r}function u(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}}function l(e){return"string"==typeof e?n.toArray(e,"hex"):e}function d(e){return new i(e,"hex","le")}n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=s,n.getJSF=c,n.cachedProperty=u,n.parseBytes=l,n.intFromLE=d},8368:function(e,t,r){var n=r(6911).Buffer,i=r(3533);function o(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),c=n.alloc(o||0),u=n.alloc(0);a>0||o>0;){var l=new i;l.update(u),l.update(e),t&&l.update(t),u=l.digest();var d=0;if(a>0){var f=s.length-a;d=Math.min(a,u.length),u.copy(s,f,0,d),a-=d}if(d0){var h=c.length-o,p=Math.min(o,u.length-d);u.copy(c,h,d,d+p),o-=p}}return u.fill(0),{key:s,iv:c}}e.exports=o},9029:function(e,t,r){"use strict";var n=r(6911).Buffer,i=r(3726).Transform;function o(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw TypeError(t+" must be a string or a buffer")}function a(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(3782)(a,i),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(o(e,"Data"),this._finalized)throw Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a0;++s)this._length[s]+=c,(c=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*c);return this},a.prototype._update=function(){throw Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw Error("_digest is not implemented")},e.exports=a},7028:function(e,t,r){var n=t;n.utils=r(263),n.common=r(1330),n.sha=r(301),n.ripemd=r(3079),n.hmac=r(3092),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},1330:function(e,t,r){"use strict";var n=r(263),i=r(3523);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(o=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;othis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t>>3}function d(e){return n(e,17)^n(e,19)^e>>>10}t.ft_1=i,t.ch32=o,t.maj32=a,t.p32=s,t.s0_256=c,t.s1_256=u,t.g0_256=l,t.g1_256=d},263:function(e,t,r){"use strict";var n=r(3523),i=r(3782);function o(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0)&&!(t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function a(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192:(o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128):r[n++]=a>>12|224,r[n++]=a>>6&63|128),r[n++]=63&a|128)}}else for(i=0;i>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function u(e,t){for(var r="",n=0;n>>0;return s}function h(e,t){for(var r=Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r}function p(e,t){return e>>>t|e<<32-t}function m(e,t){return e<>>32-t}function b(e,t){return e+t>>>0}function g(e,t,r){return e+t+r>>>0}function y(e,t,r,n){return e+t+r+n>>>0}function _(e,t,r,n,i){return e+t+r+n+i>>>0}function v(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o}function E(e,t,r,n){return(t+n>>>0>>0}function T(e,t,r,n){return t+n>>>0}function A(e,t,r,n,i,o,a,s){var c,u=t;return e+r+i+a+(c=0+((u=u+n>>>0)>>0)>>0)>>0}function S(e,t,r,n,i,o,a,s){return t+n+o+s>>>0}function x(e,t,r,n,i,o,a,s,c,u){var l,d=t;return e+r+i+a+c+(l=0+((d=d+n>>>0)>>0)>>0)>>0)>>0}function C(e,t,r,n,i,o,a,s,c,u){return t+n+o+s+u>>>0}function w(e,t,r){return(t<<32-r|e>>>r)>>>0}function N(e,t,r){return(e<<32-r|t>>>r)>>>0}function M(e,t,r){return e>>>r}function k(e,t,r){return(e<<32-r|t>>>r)>>>0}t.inherits=i,t.toArray=a,t.toHex=s,t.htonl=c,t.toHex32=u,t.zero2=l,t.zero8=d,t.join32=f,t.split32=h,t.rotr32=p,t.rotl32=m,t.sum32=b,t.sum32_3=g,t.sum32_4=y,t.sum32_5=_,t.sum64=v,t.sum64_hi=E,t.sum64_lo=T,t.sum64_4_hi=A,t.sum64_4_lo=S,t.sum64_5_hi=x,t.sum64_5_lo=C,t.rotr64_hi=w,t.rotr64_lo=N,t.shr64_hi=M,t.shr64_lo=k},4910:function(e,t,r){"use strict";var n=r(7028),i=r(6545),o=r(3523);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length>>32-t}function u(e,t,r,n,i,o,a){return c(e+(t&r|~t&n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return c(e+(t&n|r&~n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return c(e+(t^r^n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return c(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=u(r,n,i,o,e[0],3614090360,7),o=u(o,r,n,i,e[1],3905402710,12),i=u(i,o,r,n,e[2],606105819,17),n=u(n,i,o,r,e[3],3250441966,22),r=u(r,n,i,o,e[4],4118548399,7),o=u(o,r,n,i,e[5],1200080426,12),i=u(i,o,r,n,e[6],2821735955,17),n=u(n,i,o,r,e[7],4249261313,22),r=u(r,n,i,o,e[8],1770035416,7),o=u(o,r,n,i,e[9],2336552879,12),i=u(i,o,r,n,e[10],4294925233,17),n=u(n,i,o,r,e[11],2304563134,22),r=u(r,n,i,o,e[12],1804603682,7),o=u(o,r,n,i,e[13],4254626195,12),i=u(i,o,r,n,e[14],2792965006,17),n=u(n,i,o,r,e[15],1236535329,22),r=l(r,n,i,o,e[1],4129170786,5),o=l(o,r,n,i,e[6],3225465664,9),i=l(i,o,r,n,e[11],643717713,14),n=l(n,i,o,r,e[0],3921069994,20),r=l(r,n,i,o,e[5],3593408605,5),o=l(o,r,n,i,e[10],38016083,9),i=l(i,o,r,n,e[15],3634488961,14),n=l(n,i,o,r,e[4],3889429448,20),r=l(r,n,i,o,e[9],568446438,5),o=l(o,r,n,i,e[14],3275163606,9),i=l(i,o,r,n,e[3],4107603335,14),n=l(n,i,o,r,e[8],1163531501,20),r=l(r,n,i,o,e[13],2850285829,5),o=l(o,r,n,i,e[2],4243563512,9),i=l(i,o,r,n,e[7],1735328473,14),n=l(n,i,o,r,e[12],2368359562,20),r=d(r,n,i,o,e[5],4294588738,4),o=d(o,r,n,i,e[8],2272392833,11),i=d(i,o,r,n,e[11],1839030562,16),n=d(n,i,o,r,e[14],4259657740,23),r=d(r,n,i,o,e[1],2763975236,4),o=d(o,r,n,i,e[4],1272893353,11),i=d(i,o,r,n,e[7],4139469664,16),n=d(n,i,o,r,e[10],3200236656,23),r=d(r,n,i,o,e[13],681279174,4),o=d(o,r,n,i,e[0],3936430074,11),i=d(i,o,r,n,e[3],3572445317,16),n=d(n,i,o,r,e[6],76029189,23),r=d(r,n,i,o,e[9],3654602809,4),o=d(o,r,n,i,e[12],3873151461,11),i=d(i,o,r,n,e[15],530742520,16),n=d(n,i,o,r,e[2],3299628645,23),r=f(r,n,i,o,e[0],4096336452,6),o=f(o,r,n,i,e[7],1126891415,10),i=f(i,o,r,n,e[14],2878612391,15),n=f(n,i,o,r,e[5],4237533241,21),r=f(r,n,i,o,e[12],1700485571,6),o=f(o,r,n,i,e[3],2399980690,10),i=f(i,o,r,n,e[10],4293915773,15),n=f(n,i,o,r,e[1],2240044497,21),r=f(r,n,i,o,e[8],1873313359,6),o=f(o,r,n,i,e[15],4264355552,10),i=f(i,o,r,n,e[6],2734768916,15),n=f(n,i,o,r,e[13],1309151649,21),r=f(r,n,i,o,e[4],4149444226,6),o=f(o,r,n,i,e[11],3174756917,10),i=f(i,o,r,n,e[2],718787259,15),n=f(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},1354:function(e,t,r){var n=r(711),i=r(3500);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var r=new n(this.rand.generate(t));while(r.cmp(e)>=0);return r},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),l=s.toRed(o),d=!0;t>0;t--){var f=this._randrange(new n(2),s);r&&r(f);var h=f.toRed(o).redPow(u);if(0!==h.cmp(a)&&0!==h.cmp(l)){for(var p=1;p0;t--){var l=this._randrange(new n(2),a),d=e.gcd(l);if(0!==d.cmpn(1))return d;var f=l.toRed(i).redPow(c);if(0!==f.cmp(o)&&0!==f.cmp(u)){for(var h=1;h>8,a=255&i;o?r.push(o,a):r.push(a)}return r}function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;rt||r!=r)throw TypeError("Bad key length")}},2127:function(e,t,r){var n={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},i=r(4873),o=r(6911).Buffer,a=r(5349),s=r(7007),c=r(5407);function u(e,t,r,u,l){a(r,u),e=c(e,s,"Password"),t=c(t,s,"Salt"),l=l||"sha1";var d=o.allocUnsafe(u),f=o.allocUnsafe(t.length+4);t.copy(f,0,0,t.length);for(var h=0,p=n[l],m=Math.ceil(u/p),b=1;b<=m;b++){f.writeUInt32BE(b,t.length);for(var g=i(l,e).update(f).digest(),y=g,_=1;_=t.length){o++;break}var a=t.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,a.length<8&&o++,o)throw Error("decryption error");return t.slice(i)}function h(e,t){e=l.from(e),t=l.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var i=-1;++ih||new a(t).cmp(c.modulus)>=0)throw Error("decryption error");o=r?u(new a(t),c):s(t,c);var p=l.alloc(h-o.length);if(o=l.concat([p,o],h),4===i)return d(c,o);if(1===i)return f(c,o,r);if(3===i)return o;throw Error("unknown padding")}},3995:function(e,t,r){var n=r(9902),i=r(7223),o=r(9739),a=r(5520),s=r(6386),c=r(711),u=r(1607),l=r(7166),d=r(6911).Buffer;function f(e,t){var r=e.modulus.byteLength(),n=t.length,u=o("sha1").update(d.alloc(0)).digest(),l=u.length,f=2*l;if(n>r-f-2)throw Error("message too long");var h=d.alloc(r-n-f-2),p=r-l-1,m=i(l),b=s(d.concat([u,h,d.alloc(1,1),t],p),a(m,p)),g=s(m,a(b,l));return new c(d.concat([d.alloc(1),g,b],r))}function h(e,t,r){var n,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw Error("message too long");return n=r?d.alloc(o-i-3,255):p(o-i-3),new c(d.concat([d.from([0,r?1:2]),n,d.alloc(1),t],o))}function p(e){for(var t,r=d.allocUnsafe(e),n=0,o=i(2*e),a=0;n=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return r?l(o,a):u(o,a)}},1607:function(e,t,r){var n=r(711),i=r(6911).Buffer;function o(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}e.exports=o},6386:function(e){e.exports=function(e,t){for(var r=e.length,n=-1;++na)throw RangeError("requested too many random bytes");var r=c.allocUnsafe(e);if(e>0){if(e>i)for(var n=0;nl||e<0)throw TypeError("offset must be a uint32");if(e>c||e>t)throw RangeError("offset out of range")}function f(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>l||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>c)throw RangeError("buffer too small")}function h(e,t,n,i){if(!s.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-t;else if("function"!=typeof i)throw TypeError('"cb" argument must be a function');return d(t,e.length),f(n,t,e.length),p(e,t,n,i)}function p(e,t,r,n){var i=new Uint8Array(e.buffer,t,r);if(u.getRandomValues(i),n){o.nextTick(function(){n(null,e)});return}return e}function m(e,t,n){if(void 0===t&&(t=0),!s.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return d(t,e.length),void 0===n&&(n=e.length-t),f(n,t,e.length),p(e,t,n)}u&&u.getRandomValues?(t.randomFill=h,t.randomFillSync=m):(t.randomFill=i,t.randomFillSync=i)},4646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,c;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))c=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";c=`The "${e}" ${r} ${s} ${n(t,"type")}`}return c+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},2403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var i=r(1709),a=r(7337);r(3782)(l,i);for(var s=n(a.prototype),c=0;c0){if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=p(t)),n)s.endEmitted?x(e,new S):O(e,s,t,!0);else if(s.ended)x(e,new T);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):j(e,s)):O(e,s,t,!1)}}else n||(s.reading=!1,j(e,s));return!s.ended&&(s.length=I?e=I:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function D(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=P(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function $(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function L(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,o.nextTick(F,e))}function F(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Y(e)}function j(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function z(e){a("readable nexttick read 0"),e.read(0)}function V(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(G,e,t))}function G(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Y(e),t.flowing&&!t.reading&&e.read(0)}function Y(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function q(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function W(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,o.nextTick(Z,t,e))}function Z(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function K(e,t){for(var r=0,n=e.length;r=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?W(this):L(this),null;if(0===(e=D(e,r))&&r.ended)return 0===r.length&&W(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e0?q(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&W(this)),null!==t&&this.emit("data",t),t},M.prototype._read=function(e){x(this,new A("_read()"))},M.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var i=t&&!1===t.end||e===o.stdout||e===o.stderr?g:c;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function c(){a("onend"),e.end()}n.endEmitted?o.nextTick(i):r.once("end",i),e.on("unpipe",s);var u=B(r);e.on("drain",u);var d=!1;function f(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",b),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",g),r.removeListener("data",h),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==K(n.pipes,e))&&!d&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),g(),e.removeListener("error",p),0===l(e,"error")&&x(e,t)}function m(){e.removeListener("finish",b),g()}function b(){a("onfinish"),e.removeListener("close",m),g()}function g(){a("unpipe"),r.unpipe(e)}return r.on("data",h),w(e,"error",p),e.once("close",m),e.once("finish",b),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},M.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?L(this):n.reading||o.nextTick(z,this)),r},M.prototype.addListener=M.prototype.on,M.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&o.nextTick(H,this),r},M.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&o.nextTick(H,this),t},M.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,V(this,e)),e.paused=!1,this},M.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},M.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new S(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),N.prototype._write=function(e,t,r){r(new y("_write()"))},N.prototype._writev=null,N.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||V(this,n,r),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),N.prototype.destroy=p.destroy,N.prototype._undestroy=p.undestroy,N.prototype._destroy=function(e,t){t(e)}},6871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i,a=r(9698),s=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[c]=null,t(p(r,!1)))}}function b(e){o.nextTick(m,e)}function g(e,t){return function(r,n){e.then(function(){if(t[l]){r(p(void 0,!0));return}t[f](r,n)},n)}}var y=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((n(i={get stream(){return this[h]},next:function(){var e,t=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){o.nextTick(function(){t[u]?r(t[u]):e(p(void 0,!0))})});var n=this[d];if(n)e=new Promise(g(n,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(p(i,!1));e=new Promise(this[f])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),n(i,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),i),y),v=function(e){var t,r=Object.create(_,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,l,{value:e._readableState.endEmitted,writable:!0}),n(t,f,{value:function(e,t){var n=r[h].read();n?(r[d]=null,r[s]=null,r[c]=null,e(p(n,!1))):(r[s]=e,r[c]=t)},writable:!0}),t));return r[d]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];null!==t&&(r[d]=null,r[s]=null,r[c]=null,t(e)),r[u]=e;return}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[c]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",b.bind(null,r)),r};e.exports=v},4379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:d,value:function(e,t){return l(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},7025:function(e){"use strict";function t(e,t){var i=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(a,this,e)):o.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?i._writableState?i._writableState.errorEmitted?o.nextTick(n,i):(i._writableState.errorEmitted=!0,o.nextTick(r,i,e)):o.nextTick(r,i,e):t?(o.nextTick(n,i),t(e)):o.nextTick(n,i)})),this}function r(e,t){a(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:i,errorOrDestroy:s}},9698:function(e,t,r){"use strict";var n=r(4646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i0,function(t){e||(e=t),t&&o.forEach(d),a||(o.forEach(d),i(e))})});return r.reduce(f)}e.exports=p},6776:function(e,t,r){"use strict";var n=r(4646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},4678:function(e,t,r){e.exports=r(2781)},3726:function(e,t,r){var n=r(2781);"disable"===o.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=r(1709)).Stream=n||t,t.Readable=t,t.Writable=r(7337),t.Duplex=r(2403),t.Transform=r(1170),t.PassThrough=r(7889),t.finished=r(9698),t.pipeline=r(8442))},3225:function(e,t,r){"use strict";var n=r(4300).Buffer,i=r(3782),o=r(9029),a=Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function m(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function _(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e,t,r=a,n=0;n<16;++n)r[n]=this._block.readInt32LE(4*n);for(var i=0|this._a,o=0|this._b,h=0|this._c,v=0|this._d,E=0|this._e,T=0|this._a,A=0|this._b,S=0|this._c,x=0|this._d,C=0|this._e,w=0;w<80;w+=1)w<16?(e=m(i,o,h,v,E,r[s[w]],d[0],u[w]),t=_(T,A,S,x,C,r[c[w]],f[0],l[w])):w<32?(e=b(i,o,h,v,E,r[s[w]],d[1],u[w]),t=y(T,A,S,x,C,r[c[w]],f[1],l[w])):w<48?(e=g(i,o,h,v,E,r[s[w]],d[2],u[w]),t=g(T,A,S,x,C,r[c[w]],f[2],l[w])):w<64?(e=y(i,o,h,v,E,r[s[w]],d[3],u[w]),t=b(T,A,S,x,C,r[c[w]],f[3],l[w])):(e=_(i,o,h,v,E,r[s[w]],d[4],u[w]),t=m(T,A,S,x,C,r[c[w]],f[4],l[w])),i=E,E=v,v=p(h,10),h=o,o=e,T=C,C=x,x=p(S,10),S=A,A=t;var N=this._b+h+x|0;this._b=this._c+v+C|0,this._c=this._d+E+T|0,this._d=this._e+i+A|0,this._e=this._a+o+S|0,this._a=N},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},5055:function(e,t,r){var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},6911:function(e,t,r){/*! safe-buffer. MIT License. Feross Aboukhadijeh */var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},2858:function(e,t,r){var n=r(6911).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=i},4371:function(e,t,r){var n=e.exports=function(e){var t=n[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(4018),n.sha1=r(4179),n.sha224=r(532),n.sha256=r(1843),n.sha384=r(7455),n.sha512=r(9934)},4018:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var f=0;f<80;++f){var h=~~(f/20),p=u(r)+d(h,n,i,o)+s+t[f]+a[h]|0;s=o,o=i,i=l(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},4179:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<1|e>>>31}function l(e){return e<<5|e>>>27}function d(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=u(t[c-3]^t[c-8]^t[c-14]^t[c-16]);for(var h=0;h<80;++h){var p=~~(h/20),m=l(r)+f(p,n,i,o)+s+t[h]+a[p]|0;s=o,o=i,i=d(n),n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},532:function(e,t,r){var n=r(3782),i=r(1843),o=r(2858),a=r(6911).Buffer,s=Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},1843:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,c=0|this._f,m=0|this._g,b=0|this._h,g=0;g<16;++g)t[g]=e.readInt32BE(4*g);for(;g<64;++g)t[g]=p(t[g-2])+t[g-7]+h(t[g-15])+t[g-16]|0;for(var y=0;y<64;++y){var _=b+f(s)+u(s,c,m)+a[y]+t[y]|0,v=d(r)+l(r,n,i)|0;b=m,m=c,c=s,s=o+_|0,o=i,i=n,n=r,r=_+v|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=c+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},7455:function(e,t,r){var n=r(3782),i=r(9934),o=r(2858),a=r(6911).Buffer,s=Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},9934:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,y=0|this._gh,_=0|this._hh,v=0|this._al,E=0|this._bl,T=0|this._cl,A=0|this._dl,S=0|this._el,x=0|this._fl,C=0|this._gl,w=0|this._hl,N=0;N<32;N+=2)t[N]=e.readInt32BE(4*N),t[N+1]=e.readInt32BE(4*N+4);for(;N<160;N+=2){var M=t[N-30],k=t[N-30+1],O=h(M,k),R=p(k,M),I=m(M=t[N-4],k=t[N-4+1]),P=b(k,M),D=t[N-14],$=t[N-14+1],L=t[N-32],F=t[N-32+1],j=R+$|0,U=O+D+g(j,R)|0;U=(U=U+I+g(j=j+P|0,P)|0)+L+g(j=j+F|0,F)|0,t[N]=U,t[N+1]=j}for(var B=0;B<160;B+=2){U=t[B],j=t[B+1];var H=l(r,n,i),z=l(v,E,T),V=d(r,v),G=d(v,r),Y=f(s,S),q=f(S,s),W=a[B],Z=a[B+1],K=u(s,c,y),X=u(S,x,C),Q=w+q|0,J=_+Y+g(Q,w)|0;J=(J=(J=J+K+g(Q=Q+X|0,X)|0)+W+g(Q=Q+Z|0,Z)|0)+U+g(Q=Q+j|0,j)|0;var ee=G+z|0,et=V+H+g(ee,G)|0;_=y,w=C,y=c,C=x,c=s,x=S,s=o+J+g(S=A+Q|0,A)|0,o=i,A=T,i=n,T=E,n=r,E=v,r=J+et+g(v=Q+ee|0,Q)|0}this._al=this._al+v|0,this._bl=this._bl+E|0,this._cl=this._cl+T|0,this._dl=this._dl+A|0,this._el=this._el+S|0,this._fl=this._fl+x|0,this._gl=this._gl+C|0,this._hl=this._hl+w|0,this._ah=this._ah+r+g(this._al,v)|0,this._bh=this._bh+n+g(this._bl,E)|0,this._ch=this._ch+i+g(this._cl,T)|0,this._dh=this._dh+o+g(this._dl,A)|0,this._eh=this._eh+s+g(this._el,S)|0,this._fh=this._fh+c+g(this._fl,x)|0,this._gh=this._gh+y+g(this._gl,C)|0,this._hh=this._hh+_+g(this._hl,w)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},3704:function(e,t,r){"use strict";var n=r(5055).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=b,this.end=g,t=3;break;default:this.write=y,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function c(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function f(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function b(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r1)for(var r=1;rString(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,c;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))c=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";c=`The "${e}" ${r} ${s} ${n(t,"type")}`}return c+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(709),a=r(337);r(782)(l,o);for(var s=n(a.prototype),c=0;c0){if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=p(t)),n)s.endEmitted?x(e,new S):O(e,s,t,!0);else if(s.ended)x(e,new T);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):j(e,s)):O(e,s,t,!1)}}else n||(s.reading=!1,j(e,s));return!s.ended&&(s.length=I?e=I:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function D(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=P(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function $(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function L(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(F,e))}function F(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Y(e)}function j(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function z(e){a("readable nexttick read 0"),e.read(0)}function V(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(G,e,t))}function G(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Y(e),t.flowing&&!t.reading&&e.read(0)}function Y(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function q(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function W(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(Z,t,e))}function Z(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function K(e,t){for(var r=0,n=e.length;r=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?W(this):L(this),null;if(0===(e=D(e,r))&&r.ended)return 0===r.length&&W(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e0?q(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&W(this)),null!==t&&this.emit("data",t),t},M.prototype._read=function(e){x(this,new A("_read()"))},M.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?g:c;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function c(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var u=B(r);e.on("drain",u);var d=!1;function f(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",b),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",g),r.removeListener("data",h),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==K(n.pipes,e))&&!d&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),g(),e.removeListener("error",p),0===l(e,"error")&&x(e,t)}function m(){e.removeListener("finish",b),g()}function b(){a("onfinish"),e.removeListener("close",m),g()}function g(){a("unpipe"),r.unpipe(e)}return r.on("data",h),w(e,"error",p),e.once("close",m),e.once("finish",b),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},M.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?L(this):n.reading||i.nextTick(z,this)),r},M.prototype.addListener=M.prototype.on,M.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(H,this),r},M.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(H,this),t},M.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,V(this,e)),e.paused=!1,this},M.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},M.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new S(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),N.prototype._write=function(e,t,r){r(new y("_write()"))},N.prototype._writev=null,N.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||V(this,n,r),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),N.prototype.destroy=p.destroy,N.prototype._undestroy=p.undestroy,N.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[c]=null,t(p(r,!1)))}}function b(e){i.nextTick(m,e)}function g(e,t){return function(r,n){e.then(function(){if(t[l]){r(p(void 0,!0));return}t[f](r,n)},n)}}var y=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((n(o={get stream(){return this[h]},next:function(){var e,t=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[u]?r(t[u]):e(p(void 0,!0))})});var n=this[d];if(n)e=new Promise(g(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[f])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),o),y),v=function(e){var t,r=Object.create(_,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,l,{value:e._readableState.endEmitted,writable:!0}),n(t,f,{value:function(e,t){var n=r[h].read();n?(r[d]=null,r[s]=null,r[c]=null,e(p(n,!1))):(r[s]=e,r[c]=t)},writable:!0}),t));return r[d]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];null!==t&&(r[d]=null,r[s]=null,r[c]=null,t(e)),r[u]=e;return}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[c]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",b.bind(null,r)),r};e.exports=v},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:d,value:function(e,t){return l(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){var o=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(a,this,e)):i.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted?i.nextTick(n,o):(o._writableState.errorEmitted=!0,i.nextTick(r,o,e)):i.nextTick(r,o,e):t?(i.nextTick(n,o),t(e)):i.nextTick(n,o)})),this}function r(e,t){a(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:o,errorOrDestroy:s}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i0,function(t){e||(e=t),t&&o.forEach(d),a||(o.forEach(d),i(e))})});return r.reduce(f)}e.exports=p},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=b,this.end=g,t=3;break;default:this.write=y,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function c(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function f(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function b(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r-1?i(r):r}},139:function(e,t,r){"use strict";var n=r(174),i=r(925),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),c=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(n,a,arguments);return c&&u&&c(t,"length").configurable&&u(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var d=function(){return s(n,o,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/g,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=w(e),n=r.length>0?r[0]:"",o=N("%"+n+"%",t),s=o.name,u=o.value,l=!1,d=o.alias;d&&(n=d[0],E(r,v([0,1],d)));for(var f=1,h=!0;f=r.length){var y=c(u,p);u=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:u[p]}else h=_(u,p),u=u[p];h&&!l&&(m[s]=u)}}return u}},925:function(e,t,r){"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},l=c?function(){try{return arguments.callee,u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,d=r(115)(),f=r(504)(),h=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),p={},m="undefined"!=typeof Uint8Array&&h?h(Uint8Array):n,b={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d&&h?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d&&h?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d&&h?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d&&h?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&h?h(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":m,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(h)try{null.error}catch(e){var g=h(h(e));b["%Error.prototype%"]=g}var y=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&h&&(r=h(i.prototype))}return b[t]=r,r},_={"%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"]},v=r(174),E=r(101),T=v.call(Function.call,Array.prototype.concat),A=v.call(Function.apply,Array.prototype.splice),S=v.call(Function.call,String.prototype.replace),x=v.call(Function.call,String.prototype.slice),C=v.call(Function.call,RegExp.prototype.exec),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,M=function(e){var t=x(e,0,1),r=x(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,w,function(e,t,r,i){n[n.length]=r?S(i,N,"$1"):t||e}),n},k=function(e,t){var r,n=e;if(E(_,n)&&(n="%"+(r=_[n])[0]+"%"),E(b,n)){var o=b[n];if(o===p&&(o=y(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=M(e),n=r.length>0?r[0]:"",o=k("%"+n+"%",t),s=o.name,u=o.value,l=!1,d=o.alias;d&&(n=d[0],A(r,T([0,1],d)));for(var f=1,h=!0;f=r.length){var y=c(u,p);u=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:u[p]}else h=E(u,p),u=u[p];h&&!l&&(b[s]=u)}}return u}},504:function(e){"use strict";var t={foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},101:function(e,t,r){"use strict";var n=r(174);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),c=n(942)()&&"symbol"==typeof Symbol.toStringTag,u=o(),l=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1)}},369:function(e){e.exports=function(e){return e instanceof i}},584:function(e,t,r){"use strict";var n=r(157),i=r(391),o=r(490),a=r(994);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(c)var p=s(BigInt.prototype.valueOf);if(u)var m=s(Symbol.prototype.valueOf);function b(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function y(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||B(e)}function _(e){return"Uint8Array"===o(e)}function v(e){return"Uint8ClampedArray"===o(e)}function E(e){return"Uint16Array"===o(e)}function T(e){return"Uint32Array"===o(e)}function A(e){return"Int8Array"===o(e)}function S(e){return"Int16Array"===o(e)}function x(e){return"Int32Array"===o(e)}function C(e){return"Float32Array"===o(e)}function w(e){return"Float64Array"===o(e)}function N(e){return"BigInt64Array"===o(e)}function M(e){return"BigUint64Array"===o(e)}function k(e){return"[object Map]"===l(e)}function O(e){return"undefined"!=typeof Map&&(k.working?k(e):e instanceof Map)}function R(e){return"[object Set]"===l(e)}function I(e){return"undefined"!=typeof Set&&(R.working?R(e):e instanceof Set)}function P(e){return"[object WeakMap]"===l(e)}function D(e){return"undefined"!=typeof WeakMap&&(P.working?P(e):e instanceof WeakMap)}function $(e){return"[object WeakSet]"===l(e)}function L(e){return $(e)}function F(e){return"[object ArrayBuffer]"===l(e)}function j(e){return"undefined"!=typeof ArrayBuffer&&(F.working?F(e):e instanceof ArrayBuffer)}function U(e){return"[object DataView]"===l(e)}function B(e){return"undefined"!=typeof DataView&&(U.working?U(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=g,t.isArrayBufferView=y,t.isUint8Array=_,t.isUint8ClampedArray=v,t.isUint16Array=E,t.isUint32Array=T,t.isInt8Array=A,t.isInt16Array=S,t.isInt32Array=x,t.isFloat32Array=C,t.isFloat64Array=w,t.isBigInt64Array=N,t.isBigUint64Array=M,k.working="undefined"!=typeof Map&&k(new Map),t.isMap=O,R.working="undefined"!=typeof Set&&R(new Set),t.isSet=I,P.working="undefined"!=typeof WeakMap&&P(new WeakMap),t.isWeakMap=D,$.working="undefined"!=typeof WeakSet&&$(new WeakSet),t.isWeakSet=L,F.working="undefined"!=typeof ArrayBuffer&&F(new ArrayBuffer),t.isArrayBuffer=j,U.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&U(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=B;var H="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function z(e){return"[object SharedArrayBuffer]"===l(e)}function V(e){return void 0!==H&&(void 0===z.working&&(z.working=z(new H)),z.working?z(e):e instanceof H)}function G(e){return"[object AsyncFunction]"===l(e)}function Y(e){return"[object Map Iterator]"===l(e)}function q(e){return"[object Set Iterator]"===l(e)}function W(e){return"[object Generator]"===l(e)}function Z(e){return"[object WebAssembly.Module]"===l(e)}function K(e){return b(e,d)}function X(e){return b(e,f)}function Q(e){return b(e,h)}function J(e){return c&&b(e,p)}function ee(e){return u&&b(e,m)}function et(e){return K(e)||X(e)||Q(e)||J(e)||ee(e)}function er(e){return"undefined"!=typeof Uint8Array&&(j(e)||V(e))}t.isSharedArrayBuffer=V,t.isAsyncFunction=G,t.isMapIterator=Y,t.isSetIterator=q,t.isGeneratorObject=W,t.isWebAssemblyCompiledModule=Z,t.isNumberObject=K,t.isStringObject=X,t.isBooleanObject=Q,t.isBigIntObject=J,t.isSymbolObject=ee,t.isBoxedPrimitive=et,t.isAnyArrayBuffer=er,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),v(r)?n.showHidden=r:r&&t._extend(n,r),C(n.showHidden)&&(n.showHidden=!1),C(n.depth)&&(n.depth=2),C(n.colors)&&(n.colors=!1),C(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,e,n.depth)}function l(e,t){var r=u.styles[t];return r?"\x1b["+u.colors[r][0]+"m"+e+"\x1b["+u.colors[r][1]+"m":e}function d(e,t){return e}function f(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return S(o)||(o=h(e,o,n)),o}var a=p(e,r);if(a)return a;var s=Object.keys(r),c=f(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),k(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(O(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(M(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return m(r)}var l="",d=!1,v=["{","}"];return(_(r)&&(d=!0,v=["[","]"]),O(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(l=" "+RegExp.prototype.toString.call(r)),M(r)&&(l=" "+Date.prototype.toUTCString.call(r)),k(r)&&(l=" "+m(r)),0!==s.length||d&&0!=r.length)?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),i=d?b(e,r,n,c,s):s.map(function(t){return g(e,r,n,c,t,d)}),e.seen.pop(),y(i,l,v)):v[0]+l+v[1]}function p(e,t){if(C(t))return e.stylize("undefined","undefined");if(S(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return A(t)?e.stylize(""+t,"number"):v(t)?e.stylize(""+t,"boolean"):E(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function b(e,t,r,n,i){for(var o=[],a=0,s=t.length;ae.seen.indexOf(c.value)?(s=E(r)?h(e,c.value,null):h(e,c.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),C(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function y(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function _(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function E(e){return null===e}function T(e){return null==e}function A(e){return"number"==typeof e}function S(e){return"string"==typeof e}function x(e){return"symbol"==typeof e}function C(e){return void 0===e}function w(e){return N(e)&&"[object RegExp]"===I(e)}function N(e){return"object"==typeof e&&null!==e}function M(e){return N(e)&&"[object Date]"===I(e)}function k(e){return N(e)&&("[object Error]"===I(e)||e instanceof Error)}function O(e){return"function"==typeof e}function R(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function I(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var r=o.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){}}return a[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=_,t.isBoolean=v,t.isNull=E,t.isNullOrUndefined=T,t.isNumber=A,t.isString=S,t.isSymbol=x,t.isUndefined=C,t.isRegExp=w,t.types.isRegExp=w,t.isObject=N,t.isDate=M,t.types.isDate=M,t.isError=k,t.types.isNativeError=k,t.isFunction=O,t.isPrimitive=R,t.isBuffer=r(369);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",$(),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!N(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var F="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function U(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&n<=56319){this.charLength+=this.surrogateSize,t="";continue}if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived);var i=(t+=e.toString(this.encoding,0,i)).length-1,n=t.charCodeAt(i);if(n>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},a.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},a.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},57848:function(e,t,r){var n=r(18139);function i(e,t){var r,i,o,a=null;if(!e||"string"!=typeof e)return a;for(var s=n(e),c="function"==typeof t,u=0,l=s.length;u - * @license MIT - */e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},70529:function(e){/*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh - * @license MIT - */e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},52587:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0||(i[r]=e[r]);return i}function i(e,t){if(null==e)return{};var r,i,o=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,{Z:function(){return i}})},63553:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(86831),i=r(10748);function o(e,t){if(t&&("object"===(0,n.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},16835:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}function i(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}r.d(t,{Z:function(){return s}});var o=r(2937);function a(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return n(e)||i(e,t)||(0,o.Z)(e,t)||a()}},27812:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(52587);function i(e){if(Array.isArray(e))return(0,n.Z)(e)}function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var a=r(2937);function s(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){return i(e)||o(e)||(0,a.Z)(e)||s()}},96714:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(86831);function i(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==(0,n.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=i(e,"string");return"symbol"===(0,n.Z)(t)?t:String(t)}},86831:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{Z:function(){return n}})},2937:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(52587);function i(e,t){if(e){if("string"==typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,n.Z)(e,t)}}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(6840),t(58194)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/_app-b108ecbcb49fa88b.js b/_next/static/chunks/pages/_app-b108ecbcb49fa88b.js new file mode 100644 index 000000000..b149c67bf --- /dev/null +++ b/_next/static/chunks/pages/_app-b108ecbcb49fa88b.js @@ -0,0 +1,24 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{79742:function(e,t){"use strict";t.byteLength=u,t.toByteArray=d,t.fromByteArray=p;for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function u(e){var t=c(e),r=t[0],n=t[1];return(r+n)*3/4-n}function l(e,t,r){return(t+r)*3/4-r}function d(e){var t,r,o=c(e),a=o[0],s=o[1],u=new i(l(e,a,s)),d=0,f=s>0?a-4:a;for(r=0;r>16&255,u[d++]=t>>8&255,u[d++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[d++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[d++]=t>>8&255,u[d++]=255&t),u}function f(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,r){for(var n=[],i=t;ic?c:s+a));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(e,t,r){"use strict";/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */let n=r(79742),i=r(80645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50;let a=2147483647;function s(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function c(e){if(e>a)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return p(e,t);if(ArrayBuffer.isView(e))return b(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ea(e,ArrayBuffer)||e&&ea(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(ea(e,SharedArrayBuffer)||e&&ea(e.buffer,SharedArrayBuffer)))return g(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return u.from(n,t,r);let i=y(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function f(e,t,r){return(d(e),e<=0)?c(e):void 0!==t?"string"==typeof r?c(e).fill(t,r):c(e).fill(t):c(e)}function h(e){return d(e),c(e<0?0:0|_(e))}function p(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!u.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|E(e,t),n=c(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function m(e){let t=e.length<0?0:0|_(e.length),r=c(t);for(let n=0;n=a)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),u.alloc(+e)}function E(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ea(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return et(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ei(e).length;default:if(i)return n?-1:et(e).length;t=(""+t).toLowerCase(),i=!0}}function T(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,r);case"utf8":case"utf-8":return R(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return $(this,t,r);case"base64":return O(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r);default:if(n)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function A(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function S(e,t,r,n,i){if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),es(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:x(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):x(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function x(e,t,r,n,i){let o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;os&&(r=s-c),o=r;o>=0;o--){let r=!0;for(let n=0;no&&(n=o):n=o;let a=t.length;for(n>a/2&&(n=a/2),i=0;i239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(c=(31&t)<<6|63&r)>127&&(o=c);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(c=(15&t)<<12|(63&r)<<6|63&n)>2047&&(c<55296||c>57343)&&(o=c);break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&c<1114112&&(o=c)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return P(n)}t.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=s(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return f(e,t,r)},u.allocUnsafe=function(e){return h(e)},u.allocUnsafeSlow=function(e){return h(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(ea(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),ea(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(u.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},u.byteLength=E,u.prototype._isBuffer=!0,u.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,i){if(ea(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,a=r-t,s=Math.min(o,a),c=this.slice(n,i),l=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return C(this,e,t,r);case"ascii":case"latin1":case"binary":return N(this,e,t,r);case"base64":return M(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(o)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let I=4096;function P(e){let t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let n=t;nr)throw RangeError("Trying to access beyond buffer length")}function U(e,t,r,n,i,o){if(!u.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function B(e,t,r,n,i){K(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function H(e,t,r,n,i){K(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function z(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function V(e,t,r,n,o){return t=+t,r>>>=0,o||z(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function G(e,t,r,n,o){return t=+t,r>>>=0,o||z(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=eu(function(e){X(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&Q(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&Q(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return(e>>>=0,t||j(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=eu(function(e){X(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&Q(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&Q(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<>>=0,t||j(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;U(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;U(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=eu(function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=eu(function(e,t=0){return H(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);U(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);U(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=eu(function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=eu(function(e,t=0){return H(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(e,t,r){return V(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return V(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return G(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return G(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Z(e,t,r){X(t,"offset"),(void 0===e[t]||void 0===e[t+r])&&Q(t,e.length-(r+1))}function K(e,t,r,n,i,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new Y.ERR_OUT_OF_RANGE("value",n,e)}Z(n,i,o)}function X(e,t){if("number"!=typeof e)throw new Y.ERR_INVALID_ARG_TYPE(t,"number",e)}function Q(e,t,r){if(Math.floor(e)!==e)throw X(e,r),new Y.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new Y.ERR_BUFFER_OUT_OF_BOUNDS;throw new Y.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}q("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),q("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),q("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=W(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=W(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let J=/[^+/0-9A-Za-z-_]/g;function ee(e){if((e=(e=e.split("=")[0]).trim().replace(J,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function et(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let a=0;a55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function er(e){let t=[];for(let r=0;r>8,i.push(r%256),i.push(n);return i}function ei(e){return n.toByteArray(ee(e))}function eo(e,t,r,n){let i;for(i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function ea(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function es(e){return e!=e}let ec=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function eu(e){return"undefined"==typeof BigInt?el:e}function el(){throw Error("BigInt not supported")}},17187:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function i(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=y,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function c(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){if(c(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=u(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,a,s,l=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,i(l)}return e}function d(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=d.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?g(i):m(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=Array(t),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else for(var u=c.length,l=m(c,u),r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():b(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return h(this,e,!0)},a.prototype.rawListeners=function(e){return h(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(i)return i(e,r).value}return e[r]};e.exports=function e(){var t,r,n,i,u,l,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f=n}},"es6","es3"),$jscomp.findInternal=function(e,t,r){e instanceof String&&(e=String(e));for(var n=e.length,i=0;i=i}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(e){return e||function(e){var t=$jscomp.checkStringArgs(this,null,"repeat");if(0>e||1342177279>>=1)&&(t+=t);return r}},"es6","es3"),$jscomp.initSymbol=function(){},$jscomp.polyfill("Symbol",function(e){if(e)return e;var t=function(e,t){this.$jscomp$symbol$id_=e,$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:t})};t.prototype.toString=function(){return this.$jscomp$symbol$id_};var r=0,n=function(e){if(this instanceof n)throw TypeError("Symbol is not a constructor");return new t("jscomp_symbol_"+(e||"")+"_"+r++,e)};return n},"es6","es3"),$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),r=0;r(t=t||0)&&(t=Math.max(t+n,0));t>>0),goog.uidCounter_=0,goog.cloneObject=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if("function"==typeof e.clone)return e.clone();for(var r in t="array"==t?[]:{},e)t[r]=goog.cloneObject(e[r]);return t}return e},goog.bindNative_=function(e,t,r){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,r){if(!e)throw Error();if(2").replace(/'/g,"'").replace(/"/g,'"').replace(/&/g,"&")),t&&(e=e.replace(/\{\$([^}]+)}/g,function(e,r){return null!=t&&r in t?t[r]:e})),e},goog.getMsgWithFallback=function(e,t){return e},goog.exportSymbol=function(e,t,r){goog.exportPath_(e,t,!0,r)},goog.exportProperty=function(e,t,r){e[t]=r},goog.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.superClass_=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.base=function(e,r,n){for(var i=Array(arguments.length-2),o=2;o{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')}),a("es7",function(){return b("2 ** 2 == 4")}),a("es8",function(){return b("async () => 1, true")}),a("es9",function(){return b("({...rest} = {}), true")}),a("es_next",function(){return!1}),{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(e,t){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;if(!this.requiresTranspilation_){var r=this.createRequiresTranspilation_();this.requiresTranspilation_=r.map,this.transpilationTarget_=this.transpilationTarget_||r.target}if(e in this.requiresTranspilation_)return!!this.requiresTranspilation_[e]||!(!goog.inHtmlDocument_()||"es6"!=t||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+e)},goog.Transpiler.prototype.transpile=function(e,t){return goog.transpile_(e,t,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(e){return e.replace(/<\/(SCRIPT)/ig,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(e,t){function r(){n&&(goog.global.setTimeout(n,0),n=null)}var n=t;if(e.length){t=[];for(var i=0;i';o+="",o=(goog.Dependency.defer_?o+("document.getElementById('script-"+i)+"').onload = function() {\n goog.Dependency.callback_('"+i+"', this);\n};\n":o+("goog.Dependency.callback_('"+i)+"', document.getElementById('script-"+i+"'));")+"",t.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(o):o)}else{var a=t.createElement("script");a.defer=goog.Dependency.defer_,a.async=!1,r&&(a.nonce=r),goog.DebugLoader_.IS_OLD_IE_?(e.pause(),a.onreadystatechange=function(){("loaded"==a.readyState||"complete"==a.readyState)&&(e.loaded(),e.resume())}):a.onload=function(){a.onload=null,e.loaded()},a.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path,t.head.appendChild(a)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),"deps.js"==this.relativePath?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."),e.loaded()):e.pause()},goog.Es6ModuleDependency=function(e,t,r,n,i){goog.Dependency.call(this,e,t,r,n,i)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(e){function t(e,t){var r="",i=goog.getScriptNonce();i&&(r=' nonce="'+i+'"'),e=t?'":'",n.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(e):e)}function r(e,t){var r=n.createElement("script");r.defer=!0,r.async=!1,r.type="module",r.setAttribute("crossorigin",!0);var i=goog.getScriptNonce();i&&(r.nonce=i),t?r.text=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScript(t):t:r.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(e):e,n.head.appendChild(r)}if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?e.loaded():e.pause();else if(goog.inHtmlDocument_()){var n=goog.global.document,i=this;if(goog.isDocumentLoading_()){var o=t;goog.Dependency.defer_=!0}else o=r;var a=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(a),e.setModuleState(goog.ModuleType.ES6)});o(void 0,'goog.Dependency.callback_("'+a+'")'),o(this.path,void 0);var s=goog.Dependency.registerCallback_(function(t){goog.Dependency.unregisterCallback_(s),e.registerEs6ModuleExports(i.path,t,goog.moduleLoaderState_.moduleName)});o(void 0,'import * as m from "'+this.path+'"; goog.Dependency.callback_("'+s+'", m)');var c=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(c),e.clearModuleState(),e.loaded()});o(void 0,'goog.Dependency.callback_("'+c+'")')}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),e.pause()},goog.TransformedDependency=function(e,t,r,n,i){goog.Dependency.call(this,e,t,r,n,i),this.contents_=null,this.lazyFetch_=!goog.inHtmlDocument_()||!("noModule"in goog.global.document.createElement("script"))},goog.inherits(goog.TransformedDependency,goog.Dependency),goog.TransformedDependency.prototype.load=function(e){function t(){i.contents_=goog.loadFileSync_(i.path),i.contents_&&(i.contents_=i.transform(i.contents_),i.contents_&&(i.contents_+="\n//# sourceURL="+i.path))}function r(){if(i.lazyFetch_&&t(),i.contents_){o&&e.setModuleState(goog.ModuleType.ES6);try{var r=i.contents_;if(i.contents_=null,goog.globalEval(r),o)var n=goog.moduleLoaderState_.moduleName}finally{o&&e.clearModuleState()}o&&goog.global.$jscomp.require.ensure([i.getPathName()],function(){e.registerEs6ModuleExports(i.path,goog.global.$jscomp.require(i.getPathName()),n)}),e.loaded()}}function n(){var e=goog.global.document,t=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(t),r()}),n=goog.getScriptNonce();n=""+goog.protectScriptTag_('goog.Dependency.callback_("'+t+'");')+"",e.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(n):n)}var i=this;if(goog.global.CLOSURE_IMPORT_SCRIPT)t(),this.contents_&&goog.global.CLOSURE_IMPORT_SCRIPT("",this.contents_)?(this.contents_=null,e.loaded()):e.pause();else{var o=this.loadFlags.module==goog.ModuleType.ES6;this.lazyFetch_||t();var a=1r?Math.max(0,e.length+r):r,"string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,r);for(;r(r=null==r?e.length-1:r)&&(r=Math.max(0,e.length+r)),"string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.lastIndexOf(t,r);for(;0<=r;r--)if(r in e&&e[r]===t)return r;return -1};goog.array.lastIndexOf=module$contents$goog$array_lastIndexOf;var module$contents$goog$array_forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(e,t,r){goog.asserts.assert(null!=e.length),Array.prototype.forEach.call(e,t,r)}:function(e,t,r){for(var n=e.length,i="string"==typeof e?e.split(""):e,o=0;o(t=module$contents$goog$array_findIndex(e,t,r))?null:"string"==typeof e?e.charAt(t):e[t]}function module$contents$goog$array_findIndex(e,t,r){for(var n=e.length,i="string"==typeof e?e.split(""):e,o=0;o(t=module$contents$goog$array_findIndexRight(e,t,r))?null:"string"==typeof e?e.charAt(t):e[t]}function module$contents$goog$array_findIndexRight(e,t,r){var n=e.length,i="string"==typeof e?e.split(""):e;for(--n;0<=n;n--)if(n in i&&t.call(r,i[n],n,e))return n;return -1}function module$contents$goog$array_contains(e,t){return 0<=module$contents$goog$array_indexOf(e,t)}function module$contents$goog$array_isEmpty(e){return 0==e.length}function module$contents$goog$array_clear(e){if(!Array.isArray(e))for(var t=e.length-1;0<=t;t--)delete e[t];e.length=0}function module$contents$goog$array_insert(e,t){module$contents$goog$array_contains(e,t)||e.push(t)}function module$contents$goog$array_insertAt(e,t,r){module$contents$goog$array_splice(e,r,0,t)}function module$contents$goog$array_insertArrayAt(e,t,r){goog.partial(module$contents$goog$array_splice,e,r,0).apply(null,t)}function module$contents$goog$array_insertBefore(e,t,r){var n;2==arguments.length||0>(n=module$contents$goog$array_indexOf(e,r))?e.push(t):module$contents$goog$array_insertAt(e,t,n)}function module$contents$goog$array_remove(e,t){var r;return(r=0<=(t=module$contents$goog$array_indexOf(e,t)))&&module$contents$goog$array_removeAt(e,t),r}function module$contents$goog$array_removeLast(e,t){return 0<=(t=module$contents$goog$array_lastIndexOf(e,t))&&(module$contents$goog$array_removeAt(e,t),!0)}function module$contents$goog$array_removeAt(e,t){return goog.asserts.assert(null!=e.length),1==Array.prototype.splice.call(e,t,1).length}function module$contents$goog$array_removeIf(e,t,r){return 0<=(t=module$contents$goog$array_findIndex(e,t,r))&&(module$contents$goog$array_removeAt(e,t),!0)}function module$contents$goog$array_removeAllIf(e,t,r){var n=0;return module$contents$goog$array_forEachRight(e,function(i,o){t.call(r,i,o,e)&&module$contents$goog$array_removeAt(e,o)&&n++}),n}function module$contents$goog$array_concat(e){return Array.prototype.concat.apply([],arguments)}function module$contents$goog$array_join(e){return Array.prototype.concat.apply([],arguments)}function module$contents$goog$array_toArray(e){var t=e.length;if(0=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,r)}function module$contents$goog$array_removeDuplicates(e,t,r){t=t||e;var n=function(e){return goog.isObject(e)?"o"+goog.getUid(e):(typeof e).charAt(0)+e};r=r||n,n={};for(var i=0,o=0;o>>1),u=r?t.call(i,e[c],c,e):t(n,e[c]);0t?1:e(r=module$contents$goog$array_binarySearch(e,t,r))&&(module$contents$goog$array_insertAt(e,t,-(r+1)),!0)}function module$contents$goog$array_binaryRemove(e,t,r){return 0<=(t=module$contents$goog$array_binarySearch(e,t,r))&&module$contents$goog$array_removeAt(e,t)}function module$contents$goog$array_bucket(e,t,r){for(var n={},i=0;ir*(o-i))return[];if(0o;e+=r)n.push(e);return n}function module$contents$goog$array_repeat(e,t){for(var r=[],n=0;nt&&Array.prototype.push.apply(e,e.splice(0,-t))),e}function module$contents$goog$array_moveItem(e,t,r){goog.asserts.assert(0<=t&&t"}},goog.dom.asserts.getWindow_=function(e){try{var t=e&&e.ownerDocument,r=t&&(t.defaultView||t.parentWindow);if((r=r||goog.global).Element&&r.Location)return r}catch(e){}return null},goog.dom.HtmlElement=function(){},goog.functions={},goog.functions.constant=function(e){return function(){return e}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(e,t){return e},goog.functions.error=function(e){return function(){throw Error(e)}},goog.functions.fail=function(e){return function(){throw e}},goog.functions.lock=function(e,t){return t=t||0,function(){return e.apply(this,Array.prototype.slice.call(arguments,0,t))}},goog.functions.nth=function(e){return function(){return arguments[e]}},goog.functions.partialRight=function(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=this;t===goog.global&&(t=void 0);var n=Array.prototype.slice.call(arguments);return n.push.apply(n,r),e.apply(t,n)}},goog.functions.withReturnValue=function(e,t){return goog.functions.sequence(e,goog.functions.constant(t))},goog.functions.equalTo=function(e,t){return function(r){return t?e==r:e===r}},goog.functions.compose=function(e,t){var r=arguments,n=r.length;return function(){var e;n&&(e=r[n-1].apply(this,arguments));for(var t=n-2;0<=t;t--)e=r[t].call(this,e);return e}},goog.functions.sequence=function(e){var t=arguments,r=t.length;return function(){for(var e,n=0;ne?goog.i18n.bidi.Dir.RTL:t?null:goog.i18n.bidi.Dir.NEUTRAL:null==e?null:e?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.ltrChars_="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸ̀-֐ऀ-῿‎Ⰰ-\ud801\ud804-\ud839\ud83c-\udbff豈-﬜︀-﹯﻽-￿",goog.i18n.bidi.rtlChars_="֑-ۯۺ-ࣿ‏\ud802-\ud803\ud83a-\ud83bיִ-﷿ﹰ-ﻼ",goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g,goog.i18n.bidi.stripHtmlIfNeeded_=function(e,t){return t?e.replace(goog.i18n.bidi.htmlSkipReg_,""):e},goog.i18n.bidi.rtlCharReg_=RegExp("["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.ltrCharReg_=RegExp("["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.hasAnyRtl=function(e,t){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(e,t){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.ltrRe_=RegExp("^["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlRe_=RegExp("^["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.isRtlChar=function(e){return goog.i18n.bidi.rtlRe_.test(e)},goog.i18n.bidi.isLtrChar=function(e){return goog.i18n.bidi.ltrRe_.test(e)},goog.i18n.bidi.isNeutralChar=function(e){return!goog.i18n.bidi.isLtrChar(e)&&!goog.i18n.bidi.isRtlChar(e)},goog.i18n.bidi.ltrDirCheckRe_=RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlDirCheckRe_=RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.startsWithRtl=function(e,t){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(e,t){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(e,t){return e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t),goog.i18n.bidi.isRequiredLtrRe_.test(e)||!goog.i18n.bidi.hasAnyLtr(e)&&!goog.i18n.bidi.hasAnyRtl(e)},goog.i18n.bidi.ltrExitDirCheckRe_=RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$"),goog.i18n.bidi.rtlExitDirCheckRe_=RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$"),goog.i18n.bidi.endsWithLtr=function(e,t){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(e,t){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl,goog.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,goog.i18n.bidi.isRtlLanguage=function(e){return goog.i18n.bidi.rtlLocalesRe_.test(e)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(e,t){return t=(void 0===t?goog.i18n.bidi.hasAnyRtl(e):t)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,e.replace(goog.i18n.bidi.bracketGuardTextRe_,t+"$&"+t)},goog.i18n.bidi.enforceRtlInHtml=function(e){return"<"==e.charAt(0)?e.replace(/<\w+/,"$& dir=rtl"):"\n"+e+""},goog.i18n.bidi.enforceRtlInText=function(e){return goog.i18n.bidi.Format.RLE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.enforceLtrInHtml=function(e){return"<"==e.charAt(0)?e.replace(/<\w+/,"$& dir=ltr"):"\n"+e+""},goog.i18n.bidi.enforceLtrInText=function(e){return goog.i18n.bidi.Format.LRE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,goog.i18n.bidi.leftRe_=/left/gi,goog.i18n.bidi.rightRe_=/right/gi,goog.i18n.bidi.tempRe_=/%%%%/g,goog.i18n.bidi.mirrorCSS=function(e){return e.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)},goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g,goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g,goog.i18n.bidi.normalizeHebrewQuote=function(e){return e.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1״").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1׳")},goog.i18n.bidi.wordSeparatorRe_=/\s+/,goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/,goog.i18n.bidi.rtlDetectionThreshold_=.4,goog.i18n.bidi.estimateDirection=function(e,t){var r=0,n=0,i=!1;for(e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t).split(goog.i18n.bidi.wordSeparatorRe_),t=0;tgoog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(e,t){return goog.i18n.bidi.estimateDirection(e,t)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(e,t){e&&(t=goog.i18n.bidi.toDir(t))&&(e.style.textAlign=t==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,e.dir=t==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(e,t){switch(goog.i18n.bidi.estimateDirection(t)){case goog.i18n.bidi.Dir.LTR:"ltr"!==e.dir&&(e.dir="ltr");break;case goog.i18n.bidi.Dir.RTL:"rtl"!==e.dir&&(e.dir="rtl");break;default:e.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(e,t){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=t===goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_?e:""},goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0,goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()},goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(e,t){var r=goog.html.TrustedResourceUrl.unwrap(this),n=(r=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(r))[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(r[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",r[2]||"",e)+goog.html.TrustedResourceUrl.stringifyParams_("#",n,t))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(e){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(e){return e instanceof goog.html.TrustedResourceUrl&&e.constructor===goog.html.TrustedResourceUrl?e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.format=function(e,t){var r=goog.string.Const.unwrap(e);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(r))throw Error("Invalid TrustedResourceUrl format: "+r);return e=r.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(e,n){if(!Object.prototype.hasOwnProperty.call(t,n))throw Error('Found marker, "'+n+'", in format string, "'+r+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[n])instanceof goog.string.Const?goog.string.Const.unwrap(e):encodeURIComponent(String(e))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g,goog.html.TrustedResourceUrl.BASE_URL_=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,goog.html.TrustedResourceUrl.URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,goog.html.TrustedResourceUrl.formatWithParams=function(e,t,r,n){return goog.html.TrustedResourceUrl.format(e,t).cloneWithParams(r,n)},goog.html.TrustedResourceUrl.fromConstant=function(e){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.TrustedResourceUrl.fromConstants=function(e){for(var t="",r=0;re.length?"&":"")+encodeURIComponent(n)+"="+encodeURIComponent(String(a)))}}return t},goog.string.internal={},goog.string.internal.startsWith=function(e,t){return 0==e.lastIndexOf(t,0)},goog.string.internal.endsWith=function(e,t){var r=e.length-t.length;return 0<=r&&e.indexOf(t,r)==r},goog.string.internal.caseInsensitiveStartsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.substr(0,t.length))},goog.string.internal.caseInsensitiveEndsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.substr(e.length-t.length,t.length))},goog.string.internal.caseInsensitiveEquals=function(e,t){return e.toLowerCase()==t.toLowerCase()},goog.string.internal.isEmptyOrWhitespace=function(e){return/^[\s\xa0]*$/.test(e)},goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},goog.string.internal.caseInsensitiveCompare=function(e,t){return(e=String(e).toLowerCase())<(t=String(t).toLowerCase())?-1:e==t?0:1},goog.string.internal.newLineToBr=function(e,t){return e.replace(/(\r\n|\r|\n)/g,t?"
":"
")},goog.string.internal.htmlEscape=function(e,t){if(t)e=e.replace(goog.string.internal.AMP_RE_,"&").replace(goog.string.internal.LT_RE_,"<").replace(goog.string.internal.GT_RE_,">").replace(goog.string.internal.QUOT_RE_,""").replace(goog.string.internal.SINGLE_QUOTE_RE_,"'").replace(goog.string.internal.NULL_RE_,"�");else{if(!goog.string.internal.ALL_RE_.test(e))return e;-1!=e.indexOf("&")&&(e=e.replace(goog.string.internal.AMP_RE_,"&")),-1!=e.indexOf("<")&&(e=e.replace(goog.string.internal.LT_RE_,"<")),-1!=e.indexOf(">")&&(e=e.replace(goog.string.internal.GT_RE_,">")),-1!=e.indexOf('"')&&(e=e.replace(goog.string.internal.QUOT_RE_,""")),-1!=e.indexOf("'")&&(e=e.replace(goog.string.internal.SINGLE_QUOTE_RE_,"'")),-1!=e.indexOf("\0")&&(e=e.replace(goog.string.internal.NULL_RE_,"�"))}return e},goog.string.internal.AMP_RE_=/&/g,goog.string.internal.LT_RE_=//g,goog.string.internal.QUOT_RE_=/"/g,goog.string.internal.SINGLE_QUOTE_RE_=/'/g,goog.string.internal.NULL_RE_=/\x00/g,goog.string.internal.ALL_RE_=/[\x00&<>"']/,goog.string.internal.whitespaceEscape=function(e,t){return goog.string.internal.newLineToBr(e.replace(/ /g,"  "),t)},goog.string.internal.contains=function(e,t){return -1!=e.indexOf(t)},goog.string.internal.caseInsensitiveContains=function(e,t){return goog.string.internal.contains(e.toLowerCase(),t.toLowerCase())},goog.string.internal.compareVersions=function(e,t){var r=0;e=goog.string.internal.trim(String(e)).split("."),t=goog.string.internal.trim(String(t)).split(".");for(var n=Math.max(e.length,t.length),i=0;0==r&&it?1:0},goog.html.SafeUrl=function(e,t){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=t===goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_?e:""},goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez",goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0,goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"}),goog.html.SafeUrl.unwrap=function(e){return e instanceof goog.html.SafeUrl&&e.constructor===goog.html.SafeUrl?e.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(e){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(e)},goog.html.SafeUrl.fromBlob=function(e){return e=goog.html.SafeUrl.isSafeMimeType(e.type)?goog.fs.url.createObjectUrl(e):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.revokeObjectUrl=function(e){(e=e.getTypedStringValue())!==goog.html.SafeUrl.INNOCUOUS_STRING&&goog.fs.url.revokeObjectUrl(e)},goog.html.SafeUrl.fromMediaSource=function(e){return goog.asserts.assert("MediaSource"in goog.global,"No support for MediaSource"),e=e instanceof MediaSource?goog.fs.url.createObjectUrl(e):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.DATA_URL_PATTERN_=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.tryFromDataUrl=function(e){var t=(e=(e=String(e)).replace(/(%0A|%0D)/g,"")).match(goog.html.DATA_URL_PATTERN_);return t&&goog.html.SafeUrl.isSafeMimeType(t[1])?goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e):null},goog.html.SafeUrl.fromDataUrl=function(e){return goog.html.SafeUrl.tryFromDataUrl(e)||goog.html.SafeUrl.INNOCUOUS_URL},goog.html.SafeUrl.fromTelUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"tel:")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(e){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(e))||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"fb-messenger://share")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromWhatsAppUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"whatsapp://send")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromSmsUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(e){var t=e.indexOf("#");if(0+~[\]()=^$|]+$/.test(r))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+e);if(!module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_(r))throw Error("() and [] in selector must be balanced, got: "+e);return t instanceof goog.html.SafeStyle||(t=goog.html.SafeStyle.create(t)),e=e+"{"+goog.html.SafeStyle.unwrap(t).replace(/",null)},goog.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/,goog.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_=goog.object.createSet(goog.dom.TagName.APPLET,goog.dom.TagName.BASE,goog.dom.TagName.EMBED,goog.dom.TagName.IFRAME,goog.dom.TagName.LINK,goog.dom.TagName.MATH,goog.dom.TagName.META,goog.dom.TagName.OBJECT,goog.dom.TagName.SCRIPT,goog.dom.TagName.STYLE,goog.dom.TagName.SVG,goog.dom.TagName.TEMPLATE),goog.html.SafeHtml.create=function(e,t,r){return goog.html.SafeHtml.verifyTagName(String(e)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(e),t,r)},goog.html.SafeHtml.verifyTagName=function(e){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(e))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Invalid tag name <"+e+">.":"");if(e.toUpperCase() in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Tag name <"+e+"> is not allowed for SafeHtml.":"")},goog.html.SafeHtml.createIframe=function(e,t,r,n){e&&goog.html.TrustedResourceUrl.unwrap(e);var i={};return i.src=e||null,i.srcdoc=t&&goog.html.SafeHtml.unwrap(t),e=goog.html.SafeHtml.combineAttributes(i,{sandbox:""},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,n)},goog.html.SafeHtml.createSandboxIframe=function(e,t,r,n){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"The browser does not support sandboxed iframes.":"");var i={};return i.src=e?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)):null,i.srcdoc=t||null,i.sandbox="",e=goog.html.SafeHtml.combineAttributes(i,{},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,n)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(e,t){return goog.html.TrustedResourceUrl.unwrap(e),e=goog.html.SafeHtml.combineAttributes({src:e},{},t),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",e)},goog.html.SafeHtml.createScript=function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=r.toLowerCase();if("language"==n||"src"==n||"text"==n||"type"==n)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot set "'+n+'" attribute':"")}for(n=0,r="",e=module$contents$goog$array_concat(e);n does not allow content."),i+=">"):(n=goog.html.SafeHtml.concat(r),i+=">"+goog.html.SafeHtml.unwrap(n)+"",n=n.getDirection()),(e=t&&t.dir)&&(n=/^(ltr|rtl|auto)$/i.test(e)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(i,n)},goog.html.SafeHtml.stringifyAttributes=function(e,t){var r="";if(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(n))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Invalid attribute name "'+n+'".':"");var i=t[n];null!=i&&(r+=" "+goog.html.SafeHtml.getAttrNameAndValue_(e,n,i))}}return r},goog.html.SafeHtml.combineAttributes=function(e,t,r){var n,i={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(goog.asserts.assert(n.toLowerCase()==n,"Must be lower case"),i[n]=e[n]);for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(goog.asserts.assert(n.toLowerCase()==n,"Must be lower case"),i[n]=t[n]);if(r){for(n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var o=n.toLowerCase();if(o in e)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot override "'+o+'" attribute, got "'+n+'" with value "'+r[n]+'"':"");o in t&&delete i[o],i[n]=r[n]}}return i},goog.html.SafeHtml.DOCTYPE_HTML=function(){return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL)}(),goog.html.SafeHtml.EMPTY=new goog.html.SafeHtml(goog.global.trustedTypes&&goog.global.trustedTypes.emptyHTML||"",goog.i18n.bidi.Dir.NEUTRAL,goog.html.SafeHtml.CONSTRUCTOR_TOKEN_PRIVATE_),goog.html.SafeHtml.BR=function(){return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("
",goog.i18n.bidi.Dir.NEUTRAL)}(),goog.html.uncheckedconversions={},goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract=function(e,t,r){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(t,r||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(e,t,r){e.insertAdjacentHTML(t,goog.html.SafeHtml.unwrapTrustedHTML(r))},goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.dom.safe.isInnerHtmlCleanupRecursive_=goog.functions.cacheReturnValue(function(){if(goog.DEBUG&&"undefined"==typeof document)return!1;var e=document.createElement("div"),t=document.createElement("div");return t.appendChild(document.createElement("div")),e.appendChild(t),(!goog.DEBUG||!!e.firstChild)&&(t=e.firstChild.firstChild,e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),!t.parentElement)}),goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(e,t){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;e.lastChild;)e.removeChild(e.lastChild);e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setInnerHtml=function(e,t){if(goog.asserts.ENABLE_ASSERTS&&e.tagName){var r=e.tagName.toUpperCase();if(goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[r])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+e.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(e,t)},goog.dom.safe.setInnerHtmlFromConstant=function(e,t){goog.dom.safe.setInnerHtml(e,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Constant HTML to be immediatelly used."),goog.string.Const.unwrap(t)))},goog.dom.safe.setOuterHtml=function(e,t){e.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setFormElementAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLFormElement(e).action=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setButtonFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLButtonElement(e).formAction=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setInputFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLInputElement(e).formAction=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setStyle=function(e,t){e.style.cssText=goog.html.SafeStyle.unwrap(t)},goog.dom.safe.documentWrite=function(e,t){e.write(goog.html.SafeHtml.unwrapTrustedHTML(t))},goog.dom.safe.setAnchorHref=function(e,t){goog.dom.asserts.assertIsHTMLAnchorElement(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setImageSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLImageElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:image\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setAudioSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLAudioElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:audio\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setVideoSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLVideoElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:video\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setEmbedSrc=function(e,t){goog.dom.asserts.assertIsHTMLEmbedElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setFrameSrc=function(e,t){goog.dom.asserts.assertIsHTMLFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrap(t)},goog.dom.safe.setIframeSrc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrap(t)},goog.dom.safe.setIframeSrcdoc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setLinkHrefAndRel=function(e,t,r){goog.dom.asserts.assertIsHTMLLinkElement(e),e.rel=r,goog.string.internal.caseInsensitiveContains(r,"stylesheet")?(goog.asserts.assert(t instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),e.href=goog.html.TrustedResourceUrl.unwrap(t)):e.href=t instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrap(t):t instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrap(t):goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitizeAssertUnchanged(t))},goog.dom.safe.setObjectData=function(e,t){goog.dom.asserts.assertIsHTMLObjectElement(e),e.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setScriptSrc=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t),goog.dom.safe.setNonceForScriptElement_(e)},goog.dom.safe.setScriptContent=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.textContent=module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript(t),goog.dom.safe.setNonceForScriptElement_(e)},goog.dom.safe.setNonceForScriptElement_=function(e){var t=goog.getScriptNonce(e.ownerDocument&&e.ownerDocument.defaultView);t&&e.setAttribute("nonce",t)},goog.dom.safe.setLocationHref=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.assignLocation=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.assign(goog.html.SafeUrl.unwrap(t))},goog.dom.safe.replaceLocation=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.replace(goog.html.SafeUrl.unwrap(t))},goog.dom.safe.openInWindow=function(e,t,r,n,i){return e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),t=t||goog.global,r=r instanceof goog.string.Const?goog.string.Const.unwrap(r):r||"",t.open(goog.html.SafeUrl.unwrap(e),r,n,i)},goog.dom.safe.parseFromStringHtml=function(e,t){return goog.dom.safe.parseFromString(e,t,"text/html")},goog.dom.safe.parseFromString=function(e,t,r){return e.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(t),r)},goog.dom.safe.createImageFromBlob=function(e){if(!/^image\/.*/g.test(e.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var t=goog.global.URL.createObjectURL(e);return(e=new goog.global.Image).onload=function(){goog.global.URL.revokeObjectURL(t)},goog.dom.safe.setImageSrc(e,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),t)),e},goog.string.DETECT_DOUBLE_ESCAPING=!1,goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1,goog.string.Unicode={NBSP:"\xa0"},goog.string.startsWith=goog.string.internal.startsWith,goog.string.endsWith=goog.string.internal.endsWith,goog.string.caseInsensitiveStartsWith=goog.string.internal.caseInsensitiveStartsWith,goog.string.caseInsensitiveEndsWith=goog.string.internal.caseInsensitiveEndsWith,goog.string.caseInsensitiveEquals=goog.string.internal.caseInsensitiveEquals,goog.string.subs=function(e,t){for(var r=e.split("%s"),n="",i=Array.prototype.slice.call(arguments,1);i.length&&1=e||"\x80"<=e&&"�">=e},goog.string.stripNewlines=function(e){return e.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(e){return e.replace(/(\r\n|\r|\n)/g,"\n")},goog.string.normalizeWhitespace=function(e){return e.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(e){return e.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(e){return e.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(e){return e.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(e){return e.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(e,t,r){if(e==t)return 0;if(!e)return -1;if(!t)return 1;for(var n=e.toLowerCase().match(r),i=t.toLowerCase().match(r),o=Math.min(n.length,i.length),a=0;a",""":'"'},n=t?t.createElement("div"):goog.global.document.createElement("div");return e.replace(goog.string.HTML_ENTITY_PATTERN_,function(e,t){var i=r[e];return i||("#"==t.charAt(0)&&(isNaN(t=Number("0"+t.substr(1)))||(i=String.fromCharCode(t))),i||(goog.dom.safe.setInnerHtml(n,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),e+" ")),i=n.firstChild.nodeValue.slice(0,-1)),r[e]=i)})},goog.string.unescapePureXmlEntities_=function(e){return e.replace(/&([^;]+);/g,function(e,t){switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return"#"!=t.charAt(0)||isNaN(t=Number("0"+t.substr(1)))?e:String.fromCharCode(t)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(e,t){return goog.string.newLineToBr(e.replace(/ /g,"  "),t)},goog.string.preserveSpaces=function(e){return e.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(e,t){for(var r=t.length,n=0;nt&&(e=e.substring(0,t-3)+"..."),r&&(e=goog.string.htmlEscape(e)),e},goog.string.truncateMiddle=function(e,t,r,n){if(r&&(e=goog.string.unescapeEntities(e)),n&&e.length>t){n>t&&(n=t);var i=e.length-n;e=e.substring(0,t-n)+"..."+e.substring(i)}else e.length>t&&(n=Math.floor(t/2),i=e.length-n,e=e.substring(0,n+t%2)+"..."+e.substring(i));return r&&(e=goog.string.htmlEscape(e)),e},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(e){e=String(e);for(var t=['"'],r=0;ri?n:goog.string.escapeChar(n))}return t.push('"'),t.join("")},goog.string.escapeString=function(e){for(var t=[],r=0;rt)var r=e;else 256>t?(r="\\x",(16>t||256t&&(r+="0")),r+=t.toString(16).toUpperCase();return goog.string.jsEscapeCache_[e]=r},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(e,t){return e&&t?e.split(t).length-1:0},goog.string.removeAt=function(e,t,r){var n=e;return 0<=t&&t>>0;return t},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(e){var t=Number(e);return 0==t&&goog.string.isEmptyOrWhitespace(e)?NaN:t},goog.string.isLowerCamelCase=function(e){return/^[a-z]+([A-Z][a-z]*)*$/.test(e)},goog.string.isUpperCamelCase=function(e){return/^([A-Z][a-z]*)+$/.test(e)},goog.string.toCamelCase=function(e){return String(e).replace(/\-([a-z])/g,function(e,t){return t.toUpperCase()})},goog.string.toSelectorCase=function(e){return String(e).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(e,t){return t="string"==typeof t?goog.string.regExpEscape(t):"\\s",e.replace(RegExp("(^"+(t?"|["+t+"]+":"")+")([a-z])","g"),function(e,t,r){return t+r.toUpperCase()})},goog.string.capitalize=function(e){return String(e.charAt(0)).toUpperCase()+String(e.substr(1)).toLowerCase()},goog.string.parseInt=function(e){return isFinite(e)&&(e=String(e)),"string"==typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN},goog.string.splitLimit=function(e,t,r){e=e.split(t);for(var n=[];0r&&(r=i)}return -1==r?e:e.slice(r+1)},goog.string.editDistance=function(e,t){var r=[],n=[];if(e==t)return 0;if(!e.length||!t.length)return Math.max(e.length,t.length);for(var i=0;i=t.length?0:this.getNumberType(e)==i18n.phonenumbers.PhoneNumberType.MOBILE&&""!=(e=i18n.phonenumbers.PhoneNumberUtil.getCountryMobileToken(e.getCountryCodeOrDefault()))?t[2].length+e.length:t[1].length},i18n.phonenumbers.PhoneNumberUtil.getCountryMobileToken=function(e){return i18n.phonenumbers.PhoneNumberUtil.MOBILE_TOKEN_MAPPINGS_[e]||""},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedRegions=function(){return Object.keys(i18n.phonenumbers.metadata.countryToMetadata).filter(function(e){return isNaN(e)})},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedGlobalNetworkCallingCodes=function(){return Object.keys(i18n.phonenumbers.metadata.countryToMetadata).filter(function(e){return!isNaN(e)}).map(function(e){return parseInt(e,10)})},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedCallingCodes=function(){var e=Object.keys(i18n.phonenumbers.metadata.countryCodeToRegionCodeMap);return[].concat($jscomp.arrayFromIterable(this.getSupportedGlobalNetworkCallingCodes()),$jscomp.arrayFromIterable(e.map(function(e){return parseInt(e,10)})))},i18n.phonenumbers.PhoneNumberUtil.descHasPossibleNumberData_=function(e){return null!=e&&(1!=e.possibleLengthCount()||-1!=e.possibleLengthArray()[0])},i18n.phonenumbers.PhoneNumberUtil.descHasData_=function(e){return null!=e&&(e.hasExampleNumber()||i18n.phonenumbers.PhoneNumberUtil.descHasPossibleNumberData_(e)||e.hasNationalNumberPattern())},i18n.phonenumbers.PhoneNumberUtil.getSupportedTypesForMetadata_=function(e){var t=[];return goog.object.forEach(i18n.phonenumbers.PhoneNumberType,function(r){if(r!=i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE&&r!=i18n.phonenumbers.PhoneNumberType.UNKNOWN){var n=i18n.phonenumbers.PhoneNumberUtil.getNumberDescByType_(e,r);i18n.phonenumbers.PhoneNumberUtil.descHasData_(n)&&t.push(r)}}),t},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedTypesForRegion=function(e){return this.isValidRegionCode_(e)?i18n.phonenumbers.PhoneNumberUtil.getSupportedTypesForMetadata_(this.getMetadataForRegion(e)):[]},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedTypesForNonGeoEntity=function(e){return null==(e=this.getMetadataForNonGeographicalRegion(e))?[]:i18n.phonenumbers.PhoneNumberUtil.getSupportedTypesForMetadata_(e)},i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_=function(e,t,r){for(var n,i,o=new goog.string.StringBuffer,a=e.length,s=0;s=i||(n=n.substring(0,i),0!=(n=i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly(n)).length&&((t=r.clone()).clearNationalPrefixFormattingRule(),t=this.formatByPattern(e,i18n.phonenumbers.PhoneNumberFormat.NATIONAL,[t])))}}return e=e.getRawInputOrDefault(),null!=t&&0e?i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_SHORT:i[i.length-1]i18n.phonenumbers.PhoneNumberUtil.MAX_INPUT_STRING_LENGTH_)throw Error(i18n.phonenumbers.Error.TOO_LONG);var i=new goog.string.StringBuffer;if(this.buildNationalNumberForParsing_(e,i),!i18n.phonenumbers.PhoneNumberUtil.isViablePhoneNumber(i.toString()))throw Error(i18n.phonenumbers.Error.NOT_A_NUMBER);if(n&&!this.checkRegionForParsing_(i.toString(),t))throw Error(i18n.phonenumbers.Error.INVALID_COUNTRY_CODE);n=new i18n.phonenumbers.PhoneNumber,r&&n.setRawInput(e),0<(e=this.maybeStripExtension(i)).length&&n.setExtension(e);var o=this.getMetadataForRegion(t);e=new goog.string.StringBuffer;var a=0,s=i.toString();try{a=this.maybeExtractCountryCode(s,o,e,r,n)}catch(t){if(t.message==i18n.phonenumbers.Error.INVALID_COUNTRY_CODE&&i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN.test(s)){if(s=s.replace(i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN,""),0==(a=this.maybeExtractCountryCode(s,o,e,r,n)))throw t}else throw t}if(0!=a?(i=this.getRegionCodeForCountryCode(a))!=t&&(o=this.getMetadataForRegionOrCallingCode_(a,i)):(i18n.phonenumbers.PhoneNumberUtil.normalizeSB_(i),e.append(i.toString()),null!=t?(a=o.getCountryCodeOrDefault(),n.setCountryCode(a)):r&&n.clearCountryCodeSource()),e.getLength()i18n.phonenumbers.PhoneNumberUtil.MAX_LENGTH_FOR_NSN_)throw Error(i18n.phonenumbers.Error.TOO_LONG);return i18n.phonenumbers.PhoneNumberUtil.setItalianLeadingZerosForPhoneNumber_(r,n),n.setNationalNumber(parseInt(r,10)),n},i18n.phonenumbers.PhoneNumberUtil.prototype.extractPhoneContext_=function(e){var t=e.indexOf(i18n.phonenumbers.PhoneNumberUtil.RFC3966_PHONE_CONTEXT_);if(-1===t)return null;if((t+=i18n.phonenumbers.PhoneNumberUtil.RFC3966_PHONE_CONTEXT_.length)>=e.length)return"";var r=e.indexOf(";",t);return -1!==r?e.substring(t,r):e.substring(t)},i18n.phonenumbers.PhoneNumberUtil.prototype.isPhoneContextValid_=function(e){if(null==e)return!0;if(0===e.length)return!1;var t=i18n.phonenumbers.PhoneNumberUtil.RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.exec(e);return e=i18n.phonenumbers.PhoneNumberUtil.RFC3966_DOMAINNAME_PATTERN_.exec(e),null!==t||null!==e},i18n.phonenumbers.PhoneNumberUtil.prototype.buildNationalNumberForParsing_=function(e,t){var r=i18n.phonenumbers.PhoneNumberUtil.prototype.extractPhoneContext_(e);if(!i18n.phonenumbers.PhoneNumberUtil.prototype.isPhoneContextValid_(r))throw Error(i18n.phonenumbers.Error.NOT_A_NUMBER);if(null!=r){r.charAt(0)===i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN&&t.append(r),r=0<=(r=e.indexOf(i18n.phonenumbers.PhoneNumberUtil.RFC3966_PREFIX_))?r+i18n.phonenumbers.PhoneNumberUtil.RFC3966_PREFIX_.length:0;var n=e.indexOf(i18n.phonenumbers.PhoneNumberUtil.RFC3966_PHONE_CONTEXT_);t.append(e.substring(r,n))}else t.append(i18n.phonenumbers.PhoneNumberUtil.extractPossibleNumber(null!=e?e:""));0<(r=(e=t.toString()).indexOf(i18n.phonenumbers.PhoneNumberUtil.RFC3966_ISDN_SUBADDRESS_))&&(t.clear(),t.append(e.substring(0,r)))},i18n.phonenumbers.PhoneNumberUtil.copyCoreFieldsOnly_=function(e){var t=new i18n.phonenumbers.PhoneNumber;return t.setCountryCode(e.getCountryCodeOrDefault()),t.setNationalNumber(e.getNationalNumberOrDefault()),0=i18n.phonenumbers.AsYouTypeFormatter.MIN_LEADING_DIGITS_LENGTH_?(this.getAvailableFormats_(e),0<(e=this.attemptToFormatAccruedDigits_()).length?e:this.maybeCreateNewTemplate_()?this.inputAccruedNationalNumber_():this.accruedInput_.toString()):this.appendNationalNumber_(e)},i18n.phonenumbers.AsYouTypeFormatter.prototype.inputAccruedNationalNumber_=function(){var e=this.nationalNumber_.toString(),t=e.length;if(0 */t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<>1,l=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,u=8*o-i-1,l=(1<>1,f=23===i?5960464477539062e-23:0,h=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+d>=1?t+=f/c:t+=f*Math.pow(2,1-d),t*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*m}},18139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,u="\n",l="/",d="*",f="",h="comment",p="declaration";function m(e){return e?e.replace(c,f):f}e.exports=function(e,c){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];c=c||{};var b=1,g=1;function y(e){var t=e.match(r);t&&(b+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function _(){var e={line:b,column:g};return function(t){return t.position=new v(e),S(),t}}function v(e){this.start=e,this.end={line:b,column:g},this.source=c.source}v.prototype.content=e;var E=[];function T(t){var r=Error(c.source+":"+b+":"+g+": "+t);if(r.reason=t,r.filename=c.source,r.line=b,r.column=g,r.source=e,c.silent)E.push(r);else throw r}function A(t){var r=t.exec(e);if(r){var n=r[0];return y(n),e=e.slice(n.length),r}}function S(){A(n)}function x(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=_();if(l==e.charAt(0)&&d==e.charAt(1)){for(var r=2;f!=e.charAt(r)&&(d!=e.charAt(r)||l!=e.charAt(r+1));)++r;if(r+=2,f===e.charAt(r-1))return T("End of comment missing");var n=e.slice(2,r-2);return g+=2,y(n),e=e.slice(r),g+=2,t({type:h,comment:n})}}function C(){var e=_(),r=A(i);if(r){if(w(),!A(o))return T("property missing ':'");var n=A(a),c=e({type:p,property:m(r[0].replace(t,f)),value:n?m(n[0].replace(t,f)):f});return A(s),c}}function N(){var e,t=[];for(x(t);e=C();)!1!==e&&(t.push(e),x(t));return t}return S(),N()}},96486:function(e,t,r){var n;e=r.nmd(e),(function(){var i,o="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",u="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,p=2,m=4,b=1,g=2,y=1,_=2,v=4,E=8,T=16,A=32,S=64,x=128,w=256,C=512,N=30,M="...",k=800,O=16,R=1,I=2,P=3,D=1/0,$=9007199254740991,L=17976931348623157e292,F=0/0,j=4294967295,U=4294967294,B=2147483647,H=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],z="[object Arguments]",V="[object Array]",G="[object AsyncFunction]",Y="[object Boolean]",q="[object Date]",W="[object DOMException]",Z="[object Error]",K="[object Function]",X="[object GeneratorFunction]",Q="[object Map]",J="[object Number]",ee="[object Null]",et="[object Object]",er="[object Promise]",en="[object Proxy]",ei="[object RegExp]",eo="[object Set]",ea="[object String]",es="[object Symbol]",ec="[object Undefined]",eu="[object WeakMap]",el="[object WeakSet]",ed="[object ArrayBuffer]",ef="[object DataView]",eh="[object Float32Array]",ep="[object Float64Array]",em="[object Int8Array]",eb="[object Int16Array]",eg="[object Int32Array]",ey="[object Uint8Array]",e_="[object Uint8ClampedArray]",ev="[object Uint16Array]",eE="[object Uint32Array]",eT=/\b__p \+= '';/g,eA=/\b(__p \+=) '' \+/g,eS=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ex=/&(?:amp|lt|gt|quot|#39);/g,ew=/[&<>"']/g,eC=RegExp(ex.source),eN=RegExp(ew.source),eM=/<%-([\s\S]+?)%>/g,ek=/<%([\s\S]+?)%>/g,eO=/<%=([\s\S]+?)%>/g,eR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eI=/^\w*$/,eP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eD=/[\\^$.*+?()[\]{}|]/g,e$=RegExp(eD.source),eL=/^\s+/,eF=/\s/,ej=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eU=/\{\n\/\* \[wrapped with (.+)\] \*/,eB=/,? & /,eH=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ez=/[()=,{}\[\]\/\s]/,eV=/\\(\\)?/g,eG=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,eY=/\w*$/,eq=/^[-+]0x[0-9a-f]+$/i,eW=/^0b[01]+$/i,eZ=/^\[object .+?Constructor\]$/,eK=/^0o[0-7]+$/i,eX=/^(?:0|[1-9]\d*)$/,eQ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,eJ=/($^)/,e1=/['\n\r\u2028\u2029\\]/g,e0="\ud800-\udfff",e2="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",e3="\\u2700-\\u27bf",e4="a-z\\xdf-\\xf6\\xf8-\\xff",e6="A-Z\\xc0-\\xd6\\xd8-\\xde",e5="\\ufe0e\\ufe0f",e8="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",e9="['’]",e7="["+e0+"]",te="["+e8+"]",tt="["+e2+"]",tr="\\d+",tn="["+e3+"]",ti="["+e4+"]",to="[^"+e0+e8+tr+e3+e4+e6+"]",ta="\ud83c[\udffb-\udfff]",ts="[^"+e0+"]",tc="(?:\ud83c[\udde6-\uddff]){2}",tu="[\ud800-\udbff][\udc00-\udfff]",tl="["+e6+"]",td="\\u200d",tf="(?:"+ti+"|"+to+")",th="(?:"+tl+"|"+to+")",tp="(?:"+e9+"(?:d|ll|m|re|s|t|ve))?",tm="(?:"+e9+"(?:D|LL|M|RE|S|T|VE))?",tb="(?:"+tt+"|"+ta+")?",tg="["+e5+"]?",ty="(?:"+td+"(?:"+[ts,tc,tu].join("|")+")"+tg+tb+")*",t_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tv="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tE=tg+tb+ty,tT="(?:"+[tn,tc,tu].join("|")+")"+tE,tA="(?:"+[ts+tt+"?",tt,tc,tu,e7].join("|")+")",tS=RegExp(e9,"g"),tx=RegExp(tt,"g"),tw=RegExp(ta+"(?="+ta+")|"+tA+tE,"g"),tC=RegExp([tl+"?"+ti+"+"+tp+"(?="+[te,tl,"$"].join("|")+")",th+"+"+tm+"(?="+[te,tl+tf,"$"].join("|")+")",tl+"?"+tf+"+"+tp,tl+"+"+tm,tv,t_,tr,tT].join("|"),"g"),tN=RegExp("["+td+e0+e2+e5+"]"),tM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tk=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tO=-1,tR={};tR[eh]=tR[ep]=tR[em]=tR[eb]=tR[eg]=tR[ey]=tR[e_]=tR[ev]=tR[eE]=!0,tR[z]=tR[V]=tR[ed]=tR[Y]=tR[ef]=tR[q]=tR[Z]=tR[K]=tR[Q]=tR[J]=tR[et]=tR[ei]=tR[eo]=tR[ea]=tR[eu]=!1;var tI={};tI[z]=tI[V]=tI[ed]=tI[ef]=tI[Y]=tI[q]=tI[eh]=tI[ep]=tI[em]=tI[eb]=tI[eg]=tI[Q]=tI[J]=tI[et]=tI[ei]=tI[eo]=tI[ea]=tI[es]=tI[ey]=tI[e_]=tI[ev]=tI[eE]=!0,tI[Z]=tI[K]=tI[eu]=!1;var tP={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},tD={"&":"&","<":"<",">":">",'"':""","'":"'"},t$={"&":"&","<":"<",">":">",""":'"',"'":"'"},tL={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tF=parseFloat,tj=parseInt,tU="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,tB="object"==typeof self&&self&&self.Object===Object&&self,tH=tU||tB||Function("return this")(),tz=t&&!t.nodeType&&t,tV=tz&&e&&!e.nodeType&&e,tG=tV&&tV.exports===tz,tY=tG&&tU.process,tq=function(){try{var e=tV&&tV.require&&tV.require("util").types;if(e)return e;return tY&&tY.binding&&tY.binding("util")}catch(e){}}(),tW=tq&&tq.isArrayBuffer,tZ=tq&&tq.isDate,tK=tq&&tq.isMap,tX=tq&&tq.isRegExp,tQ=tq&&tq.isSet,tJ=tq&&tq.isTypedArray;function t1(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function t0(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function t8(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function rS(e,t){for(var r=e.length;r--&&rc(t,e[r],0)>-1;);return r}function rx(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var rw=rh(tP),rC=rh(tD);function rN(e){return"\\"+tL[e]}function rM(e,t){return null==e?i:e[t]}function rk(e){return tN.test(e)}function rO(e){return tM.test(e)}function rR(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function rI(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function rP(e,t){return function(r){return e(t(r))}}function rD(e,t){for(var r=-1,n=e.length,i=0,o=[];++r-1}function nd(e,t){var r=this.__data__,n=nI(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function nf(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function nU(e,t,r,n,o,a){var s,c=t&h,u=t&p,l=t&m;if(r&&(s=o?r(e,n,o,a):r(e)),i!==s)return s;if(!cQ(e))return e;var d=c$(e);if(d){if(s=o6(e),!c)return oc(e,s)}else{var f=o0(e),b=f==K||f==X;if(cB(e))return i9(e,c);if(f==et||f==z||b&&!o){if(s=u||b?{}:o5(e),!c)return u?od(e,n$(s,e)):ol(e,nD(s,e))}else{if(!tI[f])return o?e:{};s=o8(e,f,c)}}a||(a=new nE);var g=a.get(e);if(g)return g;a.set(e,s),ut(e)?e.forEach(function(n){s.add(nU(n,t,r,n,e,a))}):c1(e)&&e.forEach(function(n,i){s.set(i,nU(n,t,r,i,e,a))});var y=l?u?oV:oz:u?uB:uU,_=d?i:y(e);return t2(_||e,function(n,i){_&&(n=e[i=n]),nR(s,i,nU(n,t,r,i,e,a))}),s}function nB(e){var t=uU(e);return function(r){return nH(r,e,t)}}function nH(e,t,r){var n=r.length;if(null==e)return!n;for(e=e2(e);n--;){var o=r[n],a=t[o],s=e[o];if(i===s&&!(o in e)||!a(s))return!1}return!0}function nz(e,t,r){if("function"!=typeof e)throw new e6(c);return a_(function(){e.apply(i,r)},t)}function nV(e,t,r,n){var i=-1,o=t5,s=!0,c=e.length,u=[],l=t.length;if(!c)return u;r&&(t=t9(t,rv(r))),n?(o=t8,s=!1):t.length>=a&&(o=rT,s=!1,t=new ny(t));e:for(;++io?0:o+r),(n=i===n||n>o?o:uf(n))<0&&(n+=o),n=r>n?0:uh(n);r0&&r(s)?t>1?nX(s,t-1,r,n,i):t7(i,s):n||(i[i.length]=s)}return i}var nQ=om(),nJ=om(!0);function n1(e,t){return e&&nQ(e,t,uU)}function n0(e,t){return e&&nJ(e,t,uU)}function n2(e,t){return t6(t,function(t){return cZ(e[t])})}function n3(e,t){t=i4(t,e);for(var r=0,n=t.length;null!=e&&rt}function n8(e,t){return null!=e&&tt.call(e,t)}function n9(e,t){return null!=e&&t in e2(e)}function n7(e,t,r){return e>=tL(t,r)&&e=120&&f.length>=120)?new ny(c&&f):i}f=e[0];var h=-1,p=u[0];e:for(;++h-1;)s!==e&&tm.call(s,c,1),tm.call(e,c,1);return e}function iO(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;ae(i)?tm.call(e,i,1):iK(e,i)}}return e}function iR(e,t){return e+tw(tz()*(t-e+1))}function iI(e,t,n,i){for(var o=-1,a=t$(tA((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}function iP(e,t){var r="";if(!e||t<1||t>$)return r;do t%2&&(r+=e),(t=tw(t/2))&&(e+=e);while(t);return r}function iD(e,t){return av(ap(e,t,lF),e+"")}function i$(e){return nN(u6(e))}function iL(e,t){var r=u6(e);return aA(r,nj(t,0,r.length))}function iF(e,t,r,n){if(!cQ(e))return e;t=i4(t,e);for(var o=-1,a=t.length,s=a-1,c=e;null!=c&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!un(a)&&(r?a<=t:a=a){var l=t?null:oI(e);if(l)return r$(l);s=!1,i=rT,u=new ny}else u=t?[]:c;e:for(;++n=n?e:iH(e,t,r)}var i8=tv||function(e){return tH.clearTimeout(e)};function i9(e,t){if(t)return e.slice();var r=e.length,n=td?td(r):new e.constructor(r);return e.copy(n),n}function i7(e){var t=new e.constructor(e.byteLength);return new tl(t).set(new tl(e)),t}function oe(e,t){var r=t?i7(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function ot(e){var t=new e.constructor(e.source,eY.exec(e));return t.lastIndex=e.lastIndex,t}function or(e){return r1?e2(r1.call(e)):{}}function on(e,t){var r=t?i7(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function oi(e,t){if(e!==t){var r=i!==e,n=null===e,o=e==e,a=un(e),s=i!==t,c=null===t,u=t==t,l=un(t);if(!c&&!l&&!a&&e>t||a&&s&&u&&!c&&!l||n&&s&&u||!r&&u||!o)return 1;if(!n&&!a&&!l&&e=s)return c;return c*("desc"==r[n]?-1:1)}}return e.index-t.index}function oa(e,t,n,i){for(var o=-1,a=e.length,s=n.length,c=-1,u=t.length,l=t$(a-s,0),d=r(u+l),f=!i;++c1?r[o-1]:i,s=o>2?r[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&at(r[0],r[1],s)&&(a=o<3?i:a,o=1),t=e2(t);++n-1?o[a?t[s]:s]:i}}function oT(e){return oH(function(t){var r=t.length,n=r,o=r6.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new e6(c);if(o&&!s&&"wrapper"==oY(a))var s=new r6([],!0)}for(n=s?n:r;++n1&&y.reverse(),f&&lc))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var f=-1,h=!0,p=r&g?new ny:i;for(a.set(e,t),a.set(t,e);++f1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ej,"{\n/* [wrapped with "+t+"] */\n")}function o7(e){return c$(e)||cD(e)||!!(tb&&e&&e[tb])}function ae(e,t){var r=typeof e;return!!(t=null==t?$:t)&&("number"==r||"symbol"!=r&&eX.test(e))&&e>-1&&e%1==0&&e0){if(++t>=k)return arguments[0]}else t=0;return e.apply(i,arguments)}}function aA(e,t){var r=-1,n=e.length,o=n-1;for(t=i===t?n:t;++r1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,sv(e,r)});function sM(e){var t=r2(e);return t.__chain__=!0,t}function sk(e,t){return t(e),e}function sO(e,t){return t(e)}var sR=oH(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return nF(t,e)};return!(t>1)&&!this.__actions__.length&&n instanceof r5&&ae(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:sO,args:[o],thisArg:i}),new r6(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});function sI(){return sM(this)}function sP(){return new r6(this.value(),this.__chain__)}function sD(){i===this.__values__&&(this.__values__=ul(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function s$(){return this}function sL(e){for(var t,r=this;r instanceof r4;){var n=aN(r);n.__index__=0,n.__values__=i,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t}function sF(){var e=this.__wrapped__;if(e instanceof r5){var t=e;return this.__actions__.length&&(t=new r5(this)),(t=t.reverse()).__actions__.push({func:sO,args:[a9],thisArg:i}),new r6(t,this.__chain__)}return this.thru(a9)}function sj(){return iJ(this.__wrapped__,this.__actions__)}var sU=of(function(e,t,r){tt.call(e,r)?++e[r]:nL(e,r,1)});function sB(e,t,r){var n=c$(e)?t4:nq;return r&&at(e,t,r)&&(t=i),n(e,oW(t,3))}function sH(e,t){return(c$(e)?t6:nK)(e,oW(t,3))}var sz=oE(aU),sV=oE(aB);function sG(e,t){return nX(s1(e,t),1)}function sY(e,t){return nX(s1(e,t),D)}function sq(e,t,r){return r=i===r?1:uf(r),nX(s1(e,t),r)}function sW(e,t){return(c$(e)?t2:nG)(e,oW(t,3))}function sZ(e,t){return(c$(e)?t3:nY)(e,oW(t,3))}var sK=of(function(e,t,r){tt.call(e,r)?e[r].push(t):nL(e,r,[t])});function sX(e,t,r,n){e=cF(e)?e:u6(e),r=r&&!n?uf(r):0;var i=e.length;return r<0&&(r=t$(i+r,0)),ur(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&rc(e,t,r)>-1}var sQ=iD(function(e,t,n){var i=-1,o="function"==typeof t,a=cF(e)?r(e.length):[];return nG(e,function(e){a[++i]=o?t1(t,e,n):ir(e,t,n)}),a}),sJ=of(function(e,t,r){nL(e,r,t)});function s1(e,t){return(c$(e)?t9:iv)(e,oW(t,3))}function s0(e,t,r,n){return null==e?[]:(c$(t)||(t=null==t?[]:[t]),c$(r=n?i:r)||(r=null==r?[]:[r]),iw(e,t,r))}var s2=of(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function s3(e,t,r){var n=c$(e)?re:rp,i=arguments.length<3;return n(e,oW(t,4),r,i,nG)}function s4(e,t,r){var n=c$(e)?rt:rp,i=arguments.length<3;return n(e,oW(t,4),r,i,nY)}function s6(e,t){return(c$(e)?t6:nK)(e,cm(oW(t,3)))}function s5(e){return(c$(e)?nN:i$)(e)}function s8(e,t,r){return t=(r?at(e,t,r):i===t)?1:uf(t),(c$(e)?nM:iL)(e,t)}function s9(e){return(c$(e)?nk:iB)(e)}function s7(e){if(null==e)return 0;if(cF(e))return ur(e)?rU(e):e.length;var t=o0(e);return t==Q||t==eo?e.size:ig(e).length}function ce(e,t,r){var n=c$(e)?rr:iz;return r&&at(e,t,r)&&(t=i),n(e,oW(t,3))}var ct=iD(function(e,t){if(null==e)return[];var r=t.length;return r>1&&at(e,t[0],t[1])?t=[]:r>2&&at(t[0],t[1],t[2])&&(t=[t[0]]),iw(e,nX(t,1),[])}),cr=tE||function(){return tH.Date.now()};function cn(e,t){if("function"!=typeof t)throw new e6(c);return e=uf(e),function(){if(--e<1)return t.apply(this,arguments)}}function ci(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,oD(e,x,i,i,i,i,t)}function co(e,t){var r;if("function"!=typeof t)throw new e6(c);return e=uf(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var ca=iD(function(e,t,r){var n=y;if(r.length){var i=rD(r,oq(ca));n|=A}return oD(e,n,t,r,i)}),cs=iD(function(e,t,r){var n=y|_;if(r.length){var i=rD(r,oq(cs));n|=A}return oD(t,n,e,r,i)});function cc(e,t,r){t=r?i:t;var n=oD(e,E,i,i,i,i,i,t);return n.placeholder=cc.placeholder,n}function cu(e,t,r){t=r?i:t;var n=oD(e,T,i,i,i,i,i,t);return n.placeholder=cu.placeholder,n}function cl(e,t,r){var n,o,a,s,u,l,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new e6(c);function m(t){var r=n,a=o;return n=o=i,d=t,s=e.apply(a,r)}function b(e){return d=e,u=a_(_,t),f?m(e):s}function g(e){var r=e-l,n=e-d,i=t-r;return h?tL(i,a-n):i}function y(e){var r=e-l,n=e-d;return i===l||r>=t||r<0||h&&n>=a}function _(){var e=cr();if(y(e))return v(e);u=a_(_,g(e))}function v(e){return(u=i,p&&n)?m(e):(n=o=i,s)}function E(){i!==u&&i8(u),d=0,n=l=o=u=i}function T(){return i===u?s:v(cr())}function A(){var e=cr(),r=y(e);if(n=arguments,o=this,l=e,r){if(i===u)return b(l);if(h)return i8(u),u=a_(_,t),m(l)}return i===u&&(u=a_(_,t)),s}return t=up(t)||0,cQ(r)&&(f=!!r.leading,a=(h="maxWait"in r)?t$(up(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),A.cancel=E,A.flush=T,A}var cd=iD(function(e,t){return nz(e,1,t)}),cf=iD(function(e,t,r){return nz(e,up(t)||0,r)});function ch(e){return oD(e,C)}function cp(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new e6(c);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(cp.Cache||nf),r}function cm(e){if("function"!=typeof e)throw new e6(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function cb(e){return co(2,e)}cp.Cache=nf;var cg=i6(function(e,t){var r=(t=1==t.length&&c$(t[0])?t9(t[0],rv(oW())):t9(nX(t,1),rv(oW()))).length;return iD(function(n){for(var i=-1,o=tL(n.length,r);++i=t}),cD=ii(function(){return arguments}())?ii:function(e){return cJ(e)&&tt.call(e,"callee")&&!tp.call(e,"callee")},c$=r.isArray,cL=tW?rv(tW):io;function cF(e){return null!=e&&cX(e.length)&&!cZ(e)}function cj(e){return cJ(e)&&cF(e)}function cU(e){return!0===e||!1===e||cJ(e)&&n6(e)==Y}var cB=tN||l2,cH=tZ?rv(tZ):ia;function cz(e){return cJ(e)&&1===e.nodeType&&!c9(e)}function cV(e){if(null==e)return!0;if(cF(e)&&(c$(e)||"string"==typeof e||"function"==typeof e.splice||cB(e)||ui(e)||cD(e)))return!e.length;var t=o0(e);if(t==Q||t==eo)return!e.size;if(as(e))return!ig(e).length;for(var r in e)if(tt.call(e,r))return!1;return!0}function cG(e,t){return is(e,t)}function cY(e,t,r){var n=(r="function"==typeof r?r:i)?r(e,t):i;return i===n?is(e,t,i,r):!!n}function cq(e){if(!cJ(e))return!1;var t=n6(e);return t==Z||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!c9(e)}function cW(e){return"number"==typeof e&&tM(e)}function cZ(e){if(!cQ(e))return!1;var t=n6(e);return t==K||t==X||t==G||t==en}function cK(e){return"number"==typeof e&&e==uf(e)}function cX(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=$}function cQ(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function cJ(e){return null!=e&&"object"==typeof e}var c1=tK?rv(tK):iu;function c0(e,t){return e===t||il(e,t,oK(t))}function c2(e,t,r){return r="function"==typeof r?r:i,il(e,t,oK(t),r)}function c3(e){return c8(e)&&e!=+e}function c4(e){if(aa(e))throw new eF(s);return id(e)}function c6(e){return null===e}function c5(e){return null==e}function c8(e){return"number"==typeof e||cJ(e)&&n6(e)==J}function c9(e){if(!cJ(e)||n6(e)!=et)return!1;var t=tf(e);if(null===t)return!0;var r=tt.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&te.call(r)==to}var c7=tX?rv(tX):ih;function ue(e){return cK(e)&&e>=-$&&e<=$}var ut=tQ?rv(tQ):ip;function ur(e){return"string"==typeof e||!c$(e)&&cJ(e)&&n6(e)==ea}function un(e){return"symbol"==typeof e||cJ(e)&&n6(e)==es}var ui=tJ?rv(tJ):im;function uo(e){return i===e}function ua(e){return cJ(e)&&o0(e)==eu}function us(e){return cJ(e)&&n6(e)==el}var uc=ok(i_),uu=ok(function(e,t){return e<=t});function ul(e){if(!e)return[];if(cF(e))return ur(e)?rB(e):oc(e);if(tg&&e[tg])return rR(e[tg]());var t=o0(e);return(t==Q?rI:t==eo?r$:u6)(e)}function ud(e){return e?(e=up(e))===D||e===-D?(e<0?-1:1)*L:e==e?e:0:0===e?e:0}function uf(e){var t=ud(e),r=t%1;return t==t?r?t-r:t:0}function uh(e){return e?nj(uf(e),0,j):0}function up(e){if("number"==typeof e)return e;if(un(e))return F;if(cQ(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=cQ(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r_(e);var r=eW.test(e);return r||eK.test(e)?tj(e.slice(2),r?2:8):eq.test(e)?F:+e}function um(e){return ou(e,uB(e))}function ub(e){return e?nj(uf(e),-$,$):0===e?e:0}function ug(e){return null==e?"":iW(e)}var uy=oh(function(e,t){if(as(t)||cF(t)){ou(t,uU(t),e);return}for(var r in t)tt.call(t,r)&&nR(e,r,t[r])}),u_=oh(function(e,t){ou(t,uB(t),e)}),uv=oh(function(e,t,r,n){ou(t,uB(t),e,n)}),uE=oh(function(e,t,r,n){ou(t,uU(t),e,n)}),uT=oH(nF);function uA(e,t){var r=r3(e);return null==t?r:nD(r,t)}var uS=iD(function(e,t){e=e2(e);var r=-1,n=t.length,o=n>2?t[2]:i;for(o&&at(t[0],t[1],o)&&(n=1);++r1),t}),ou(e,oV(e),r),n&&(r=nU(r,h|p|m,oF));for(var i=t.length;i--;)iK(r,t[i]);return r});function uq(e,t){return uZ(e,cm(oW(t)))}var uW=oH(function(e,t){return null==e?{}:iC(e,t)});function uZ(e,t){if(null==e)return{};var r=t9(oV(e),function(e){return[e]});return t=oW(t),iN(e,r,function(e,r){return t(e,r[0])})}function uK(e,t,r){t=i4(t,e);var n=-1,o=t.length;for(o||(o=1,e=i);++nt){var n=e;e=t,t=n}if(r||e%1||t%1){var o=tz();return tL(e+o*(t-e+tF("1e-"+((o+"").length-1))),t)}return iR(e,t)}var le=oy(function(e,t,r){return t=t.toLowerCase(),e+(r?lt(t):t)});function lt(e){return lN(ug(e).toLowerCase())}function lr(e){return(e=ug(e))&&e.replace(eQ,rw).replace(tx,"")}function ln(e,t,r){e=ug(e),t=iW(t);var n=e.length,o=r=i===r?n:nj(uf(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t}function li(e){return(e=ug(e))&&eN.test(e)?e.replace(ew,rC):e}function lo(e){return(e=ug(e))&&e$.test(e)?e.replace(eD,"\\$&"):e}var la=oy(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),ls=oy(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),lc=og("toLowerCase");function lu(e,t,r){e=ug(e);var n=(t=uf(t))?rU(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return oC(tw(i),r)+e+oC(tA(i),r)}function ll(e,t,r){e=ug(e);var n=(t=uf(t))?rU(e):0;return t&&n>>0)?(e=ug(e))&&("string"==typeof t||null!=t&&!c7(t))&&!(t=iW(t))&&rk(e)?i5(rB(e),0,r):e.split(t,r):[]}var lg=oy(function(e,t,r){return e+(r?" ":"")+lN(t)});function ly(e,t,r){return e=ug(e),r=null==r?0:nj(uf(r),0,e.length),t=iW(t),e.slice(r,r+t.length)==t}function l_(e,t,r){var n=r2.templateSettings;r&&at(e,t,r)&&(t=i),e=ug(e),t=uv({},t,n,o$);var o,a,s=uv({},t.imports,n.imports,o$),c=uU(s),l=rE(s,c),d=0,f=t.interpolate||eJ,h="__p += '",p=e3((t.escape||eJ).source+"|"+f.source+"|"+(f===eO?eG:eJ).source+"|"+(t.evaluate||eJ).source+"|$","g"),m="//# sourceURL="+(tt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tO+"]")+"\n";e.replace(p,function(t,r,n,i,s,c){return n||(n=i),h+=e.slice(d,c).replace(e1,rN),r&&(o=!0,h+="' +\n__e("+r+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),d=c+t.length,t}),h+="';\n";var b=tt.call(t,"variable")&&t.variable;if(b){if(ez.test(b))throw new eF(u)}else h="with (obj) {\n"+h+"\n}\n";h=(a?h.replace(eT,""):h).replace(eA,"$1").replace(eS,"$1;"),h="function("+(b||"obj")+") {\n"+(b?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=lk(function(){return eH(c,m+"return "+h).apply(i,l)});if(g.source=h,cq(g))throw g;return g}function lv(e){return ug(e).toLowerCase()}function lE(e){return ug(e).toUpperCase()}function lT(e,t,r){if((e=ug(e))&&(r||i===t))return r_(e);if(!e||!(t=iW(t)))return e;var n=rB(e),o=rB(t),a=rA(n,o),s=rS(n,o)+1;return i5(n,a,s).join("")}function lA(e,t,r){if((e=ug(e))&&(r||i===t))return e.slice(0,rH(e)+1);if(!e||!(t=iW(t)))return e;var n=rB(e),o=rS(n,rB(t))+1;return i5(n,0,o).join("")}function lS(e,t,r){if((e=ug(e))&&(r||i===t))return e.replace(eL,"");if(!e||!(t=iW(t)))return e;var n=rB(e),o=rA(n,rB(t));return i5(n,o).join("")}function lx(e,t){var r=N,n=M;if(cQ(t)){var o="separator"in t?t.separator:o;r="length"in t?uf(t.length):r,n="omission"in t?iW(t.omission):n}var a=(e=ug(e)).length;if(rk(e)){var s=rB(e);a=s.length}if(r>=a)return e;var c=r-rU(n);if(c<1)return n;var u=s?i5(s,0,c).join(""):e.slice(0,c);if(i===o)return u+n;if(s&&(c+=u.length-c),c7(o)){if(e.slice(c).search(o)){var l,d=u;for(o.global||(o=e3(o.source,ug(eY.exec(o))+"g")),o.lastIndex=0;l=o.exec(d);)var f=l.index;u=u.slice(0,i===f?c:f)}}else if(e.indexOf(iW(o),c)!=c){var h=u.lastIndexOf(o);h>-1&&(u=u.slice(0,h))}return u+n}function lw(e){return(e=ug(e))&&eC.test(e)?e.replace(ex,rz):e}var lC=oy(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),lN=og("toUpperCase");function lM(e,t,r){return(e=ug(e),t=r?i:t,i===t)?rO(e)?rY(e):ro(e):e.match(t)||[]}var lk=iD(function(e,t){try{return t1(e,i,t)}catch(e){return cq(e)?e:new eF(e)}}),lO=oH(function(e,t){return t2(t,function(t){nL(e,t=ax(t),ca(e[t],e))}),e});function lR(e){var t=null==e?0:e.length,r=oW();return e=t?t9(e,function(e){if("function"!=typeof e[1])throw new e6(c);return[r(e[0]),e[1]]}):[],iD(function(r){for(var n=-1;++n$)return[];var r=j,n=tL(e,j);t=oW(t),e-=j;for(var i=rg(n,t);++r0||t<0)?new r5(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),i!==t&&(r=(t=uf(t))<0?r.dropRight(-t):r.take(t-e)),r)},r5.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},r5.prototype.toArray=function(){return this.take(j)},n1(r5.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=r2[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);o&&(r2.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,c=t instanceof r5,u=s[0],l=c||c$(t),d=function(e){var t=o.apply(r2,t7([e],s));return n&&f?t[0]:t};l&&r&&"function"==typeof u&&1!=u.length&&(c=l=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,m=c&&!h;if(!a&&l){t=m?t:new r5(this);var b=e.apply(t,s);return b.__actions__.push({func:sO,args:[d],thisArg:i}),new r6(b,f)}return p&&m?e.apply(this,s):(b=this.thru(d),p?n?b.value()[0]:b.value():b)})}),t2(["pop","push","shift","sort","splice","unshift"],function(e){var t=e5[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);r2.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(c$(i)?i:[],e)}return this[r](function(r){return t.apply(c$(r)?r:[],e)})}}),n1(r5.prototype,function(e,t){var r=r2[t];if(r){var n=r.name+"";tt.call(rG,n)||(rG[n]=[]),rG[n].push({name:t,func:r})}}),rG[oA(i,_).name]=[{name:"wrapper",func:i}],r5.prototype.clone=r8,r5.prototype.reverse=r9,r5.prototype.value=r7,r2.prototype.at=sR,r2.prototype.chain=sI,r2.prototype.commit=sP,r2.prototype.next=sD,r2.prototype.plant=sL,r2.prototype.reverse=sF,r2.prototype.toJSON=r2.prototype.valueOf=r2.prototype.value=sj,r2.prototype.first=r2.prototype.head,tg&&(r2.prototype[tg]=s$),r2}();tH._=rq,i!==(n=(function(){return rq}).call(t,r,t,e))&&(e.exports=n)}).call(this)},69654:function(e,t){"use strict";var r=["input.jsx-3978586702,textarea.jsx-3978586702{width:100%;height:inherit;font-size:inherit;font-style:inherit;font-family:inherit;-webkit-letter-spacing:1.5px;-moz-letter-spacing:1.5px;-ms-letter-spacing:1.5px;letter-spacing:1.5px;outline:none;color:inherit;border:none;cursor:inherit;background-color:transparent;-webkit-text-fill-color:inherit;}","input.jsx-3978586702::-webkit-outer-spin-button,input.jsx-3978586702::-webkit-inner-spin-button,textarea.jsx-3978586702::-webkit-outer-spin-button,textarea.jsx-3978586702::-webkit-inner-spin-button{-webkit-appearance:none;}","input[type=button].jsx-3978586702,textarea[type=button].jsx-3978586702{cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}","input.jsx-3978586702:-webkit-autofill,input.jsx-3978586702:-webkit-autofill.jsx-3978586702:hover,input.jsx-3978586702:-webkit-autofill.jsx-3978586702:focus,input.jsx-3978586702:-webkit-autofill.jsx-3978586702:active,input.jsx-3978586702:-internal-autofill-selected,textarea.jsx-3978586702:-webkit-autofill,textarea.jsx-3978586702:-webkit-autofill.jsx-3978586702:hover,textarea.jsx-3978586702:-webkit-autofill.jsx-3978586702:focus,textarea.jsx-3978586702:-webkit-autofill.jsx-3978586702:active,textarea.jsx-3978586702:-internal-autofill-selected{color:inherit !important;background-color:transparent !important;-webkit-text-fill-color:inherit;-webkit-box-shadow:0 0 0px 1000px transparent inset !important;-webkit-transition:background-color 5000s ease-in-out 0s !important;transition:background-color 5000s ease-in-out 0s !important;}","input.nav-item.jsx-3978586702,textarea.nav-item.jsx-3978586702{padding:0;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}","input.input__has-icons.jsx-3978586702,textarea.input__has-icons.jsx-3978586702{text-indent:8px;}","input.center.jsx-3978586702,textarea.center.jsx-3978586702{text-align:center;text-indent:0;min-height:var(--s-element);height:100%;min-width:var(--s-element);width:0;}","input.center.jsx-3978586702:focus,input.center.jsx-3978586702:hover,textarea.center.jsx-3978586702:focus,textarea.center.jsx-3978586702:hover{background-color:transparent;}","input.invalid.jsx-3978586702,textarea.invalid.jsx-3978586702{background-color:transparent;z-index:2;-webkit-text-decoration:underline dashed;text-decoration:underline dashed;border-width:0px 0px 2px 0px;border-bottom-color:var(--red-70);}",'input.signature.jsx-3978586702,textarea.signature.jsx-3978586702{padding-left:var(--s-3);font-size:var(--s-2);font-family:"Ephesis",cursive;}',"input.signature.jsx-3978586702::-webkit-input-placeholder,textarea.signature.jsx-3978586702::-webkit-input-placeholder{color:var(--gray-70);padding:0;font-size:var(--s-2);}","input.signature.jsx-3978586702::-moz-placeholder,textarea.signature.jsx-3978586702::-moz-placeholder{color:var(--gray-70);padding:0;font-size:var(--s-2);}","input.signature.jsx-3978586702:-ms-input-placeholder,textarea.signature.jsx-3978586702:-ms-input-placeholder{color:var(--gray-70);padding:0;font-size:var(--s-2);}","input.signature.jsx-3978586702::placeholder,textarea.signature.jsx-3978586702::placeholder{color:var(--gray-70);padding:0;font-size:var(--s-2);}","input.signature.jsx-3978586702::-webkit-input-placeholder.jsx-3978586702:hover,textarea.signature.jsx-3978586702::-webkit-input-placeholder.jsx-3978586702:hover{color:var(--gray-10);}","input.signature.jsx-3978586702::-moz-placeholder.jsx-3978586702:hover,textarea.signature.jsx-3978586702::-moz-placeholder.jsx-3978586702:hover{color:var(--gray-10);}","input.signature.jsx-3978586702:-ms-input-placeholder.jsx-3978586702:hover,textarea.signature.jsx-3978586702:-ms-input-placeholder.jsx-3978586702:hover{color:var(--gray-10);}","input.signature.jsx-3978586702::placeholder.jsx-3978586702:hover,textarea.signature.jsx-3978586702::placeholder.jsx-3978586702:hover{color:var(--gray-10);}","input.signature.jsx-3978586702::-webkit-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before,textarea.signature.jsx-3978586702::-webkit-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before{color:var(--gray-40);}","input.signature.jsx-3978586702::-moz-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before,textarea.signature.jsx-3978586702::-moz-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before{color:var(--gray-40);}","input.signature.jsx-3978586702:-ms-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before,textarea.signature.jsx-3978586702:-ms-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before{color:var(--gray-40);}","input.signature.jsx-3978586702::placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before,textarea.signature.jsx-3978586702::placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::before{color:var(--gray-40);}","input.signature.jsx-3978586702::-webkit-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after,textarea.signature.jsx-3978586702::-webkit-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after{border-top-color:var(--gray-40);}","input.signature.jsx-3978586702::-moz-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after,textarea.signature.jsx-3978586702::-moz-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after{border-top-color:var(--gray-40);}","input.signature.jsx-3978586702:-ms-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after,textarea.signature.jsx-3978586702:-ms-input-placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after{border-top-color:var(--gray-40);}","input.signature.jsx-3978586702::placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after,textarea.signature.jsx-3978586702::placeholder.jsx-3978586702:focus-within.jsx-3978586702:not(input.signature.jsx-3978586702:hover,textarea.signature.jsx-3978586702:hover)::after{border-top-color:var(--gray-40);}","*.jsx-3978586702::-webkit-input-placeholder{font-style:italic;padding:0;font-size:16px;-webkit-animation:fadeIn-jsx-3978586702 0.6s ease-in-out;animation:fadeIn-jsx-3978586702 0.6s ease-in-out;}","*.jsx-3978586702::-moz-placeholder{font-style:italic;padding:0;font-size:16px;-webkit-animation:fadeIn-jsx-3978586702 0.6s ease-in-out;animation:fadeIn-jsx-3978586702 0.6s ease-in-out;}","*.jsx-3978586702:-ms-input-placeholder{font-style:italic;padding:0;font-size:16px;-webkit-animation:fadeIn-jsx-3978586702 0.6s ease-in-out;animation:fadeIn-jsx-3978586702 0.6s ease-in-out;}","*.jsx-3978586702::placeholder{font-style:italic;padding:0;font-size:16px;-webkit-animation:fadeIn-jsx-3978586702 0.6s ease-in-out;animation:fadeIn-jsx-3978586702 0.6s ease-in-out;}","@-webkit-keyframes fadeIn-jsx-3978586702{0%{opacity:0;}100%{opacity:0;}}","@keyframes fadeIn-jsx-3978586702{0%{opacity:0;}100%{opacity:0;}}",".input__message.jsx-3978586702{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;color:var(--orange-50);height:var(--s-element);line-height:1;display:none;text-indent:var(--s-4);}",".input__message.input__message-show.jsx-3978586702{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}"];r.__hash="3978586702",t.Z=r},55340:function(e){e.exports={deploy:"mb1",merchants:{mb1:{mid:"mb1",name:"deepturn",url:"https://deepturn.com",stripeId:"acct_1G38IXIodeKZRLDV"},ah1:{mid:"ah1",name:"aire-hotel",url:"https://airehotel.com",stripeId:""},nirv1:{mid:"nirv1",name:"nirvana-energy",url:"https://nirvanaenergy.net",stripeId:"acct_1OWy0fE8XAGZDdpK"}}}},36593:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_FAST_REFRESH:function(){return u},ACTION_NAVIGATE:function(){return o},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return i},ACTION_RESTORE:function(){return a},ACTION_SERVER_ACTION:function(){return l},ACTION_SERVER_PATCH:function(){return s},PrefetchCacheEntryStatus:function(){return n},PrefetchKind:function(){return r},isThenable:function(){return d}});var r,n,i="refresh",o="navigate",a="restore",s="server-patch",c="prefetch",u="fast-refresh",l="server-action";function d(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}!function(e){e.AUTO="auto",e.FULL="full",e.TEMPORARY="temporary"}(r||(r={})),function(e){e.fresh="fresh",e.reusable="reusable",e.expired="expired",e.stale="stale"}(n||(n={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},83617:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(61063),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78065:function(e,t,r){"use strict";var n=r(20968),i=r(43171),o=r(47069),a=["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"];function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t0;t&&r&&t(r)})},e),elements:i},c.push(r),s.set(r,t),t}function l(e,t,r){var n=u(r),i=n.id,o=n.observer,a=n.elements;return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),s.delete(i);var t=c.findIndex(function(e){return e.root===i.root&&e.margin===i.margin});t>-1&&c.splice(t,1)}}}function d(e){var t=e.rootRef,r=e.rootMargin,s=e.disabled||!a,c=n((0,i.useState)(!1),2),u=c[0],d=c[1],f=(0,i.useRef)(null),h=(0,i.useCallback)(function(e){f.current=e},[]);return(0,i.useEffect)(function(){if(a){if(!s&&!u){var e=f.current;if(e&&e.tagName)return l(e,function(e){return e&&d(e)},{root:null==t?void 0:t.current,rootMargin:r})}}else if(!u){var n=(0,o.requestIdleCallback)(function(){return d(!0)});return function(){return(0,o.cancelIdleCallback)(n)}}},[s,r,t,u,f.current]),[h,u,(0,i.useCallback)(function(){d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31240:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});var n=r(38754)._(r(67294)).default.createContext({})},68911:function(e,t){"use strict";function r(e){var t=void 0===e?{}:e,r=t.ampFirst,n=void 0!==r&&r,i=t.hybrid,o=void 0!==i&&i,a=t.hasQuery,s=void 0!==a&&a;return n||o&&s}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},49903:function(e,t,r){"use strict";var n=r(20968);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t0){a=!0;var s=i.key.slice(i.key.indexOf("$")+1);e.has(s)?o=!1:e.add(s)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(var c=0,u=b.length;c>>0},p={};function m(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return p[n]||(p[n]="jsx-"+h(e+"-"+r)),p[n]}function b(e,t){var r=/__jsx-style-dynamic-selector/g,n=e+t;return p[n]||(p[n]=t.replace(r,e)),p[n]}function g(e,t){return void 0===t&&(t={}),e.map(function(e){var r=e[0],n=e[1];return a.default.createElement("style",{id:"__"+r,key:"__"+r,nonce:t.nonce?t.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})}var y=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,o=void 0!==i&&i;this._sheet=n||new d({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),n&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var o=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=o,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(_(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){return g(this.cssRules(),e)},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=m(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return b(i,e)}):[b(i,t)]}}return{styleId:m(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}();function _(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}var v=o.createContext(null);function E(){return new y}function T(e){var t=e.registry,r=e.children,n=o.useContext(v),i=o.useState(function(){return n||t||E()})[0];return a.default.createElement(v.Provider,{value:i},r)}function A(){return o.useContext(v)}v.displayName="StyleSheetContext";var S=a.default.useInsertionEffect||a.default.useLayoutEffect,x=E();function w(e){var t=x||A();return t&&S(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}w.dynamic=function(e){return e.map(function(e){return m(e[0],e[1])}).join(" ")},n=T,n=E,t.style=w},21378:function(e,t,r){e.exports=r(21082).style},11907:function(e,t,r){"use strict";r.d(t,{C9:function(){return s},Kt:function(){return c},aF:function(){return o},dN:function(){return a}});var n=r(10394),i=r(67294),o=function(){var e=(0,n.ko)("IMemberService"),t=(0,i.useState)(e.getCurrentUser()),r=t[0],o=t[1];return(0,i.useEffect)(function(){var t=[];return t.push(e.userChanged.subscribe(function(e){o(e)})),function(){t.forEach(function(e){return e.unsubscribe()})}},[e.userChanged]),r},a=function(){var e,t=o();return(null==t||null===(e=t.metadata)||void 0===e||null===(e=e.user)||void 0===e?void 0:e.clearance)||0},s=function(e){var t={user:{type:"guest"},others:{creation:0}};switch(e){case 1:t.user={type:"member"};break;case 9:t={user:{type:"manager"},others:{creation:9}};break;case 10:t={user:{type:"admin-1"},others:{creation:9}};break;case 11:t={user:{type:"admin-2"},others:{creation:10}};break;case 12:t={user:{type:"admin-3"},others:{creation:12}}}return t},c=function(){return s(a())}},99980:function(e,t,r){"use strict";var n=r(50029),i=r(64687),o=r.n(i),a=r(67294),s=function(){var e=(0,a.useState)({}),t=e[0],r=e[1];return(0,a.useEffect)(function(){(function(){var e=(0,n.Z)(o().mark(function e(){var t,i,a,s,c;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=(t=window.navigator).userAgent,a=t.userAgentData,s=function(){var e=(0,n.Z)(o().mark(function e(){var t,r;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://api.ipify.org?format=json");case 3:return t=e.sent,e.next=6,t.json();case 6:return r=e.sent,e.abrupt("return",r.ip);case 10:return e.prev=10,e.t0=e.catch(0),console.error("Error fetching IP:",e.t0),e.abrupt("return",null);case 14:case"end":return e.stop()}},e,null,[[0,10]])}));return function(){return e.apply(this,arguments)}}(),e.next=7,s();case 7:c=e.sent,r({user_agent:i,user_agent_data:a,wan:c});case 9:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}})()()},[]),t};t.Z=s},23992:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n,i=r(59499),o=r(55340),a=r.n(o);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t20&&(e=$(n,"error",c));break;case"email":o&&!o.includes("@")?e=$(n,"error","".concat(i,', missing "@"')):o&&!o.includes(".")&&(e=$(n,"error","".concat(i,', missing "."')));break;case"password":var u=null===(r=P.find(function(e){return"confirm_password"==e.name}))||void 0===r?void 0:r.value;a<3?e=$(n,"error",s):a>20&&(e=$(n,"error",c)),o!=u&&(e=$(n,"error","Passwords don't match"),e=$("confirm_password","error","Passwords don't match"))}else e=$(n,"error","".concat(i,", can't be empty"))}),e},F=function(e){var t=e.target;$(t.name,"value",t.value)},j=function(){var e=(0,o.Z)(l().mark(function e(){var t,r,n,i,o,a,c,u,d,f,h,p,m;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(M(!0),t=L()){e.next=16;break}return d={name:"".concat(null===(r=(0,_.PI)(P,"first_name"))||void 0===r?void 0:r.value," ").concat(null===(n=(0,_.PI)(P,"last_name"))||void 0===n?void 0:n.value),email:null===(i=(0,_.PI)(P,"email"))||void 0===i?void 0:i.value,phone:null===(o=(0,_.PI)(P,"phone"))||void 0===o?void 0:o.value,address:null===(a=(0,_.PI)(P,"address"))||void 0===a?void 0:a.value,metadata:{user:{email:null===(c=(0,_.PI)(P,"email"))||void 0===c?void 0:c.value,device:S(S({},R),{},{created:"".concat(Date.now())}),password:null===(u=(0,_.PI)(P,"password"))||void 0===u?void 0:u.value},merchant:E.Z.merchant}},e.prev=4,e.next=7,O.signUp(d);case 7:(null==(h=e.sent)?void 0:h.email)!==void 0?(f=h,s&&s(h)):(null==h?void 0:h.status)==="existing"&&s?s(f=S(S({},h),{},{email:null===(p=(0,_.PI)(P,"email"))||void 0===p?void 0:p.value})):console.error("[ SIGN UP RESPONSE UNHANDLED ]",h),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),null!==e.t0&&void 0!==e.t0&&null!==(m=e.t0.detail)&&void 0!==m&&m.fields?(console.log("[ e.detail.fields ]",e.t0.detail.fields),e.t0.detail.fields.forEach(function(e){$(e.name,"error",e.message)})):console.error("[ SIGN UP RESPONSE ERRORS ]",e.t0);case 14:e.next=17;break;case 16:console.error("[ SIGN UP ERRORS LOCAL ]",t);case 17:M(!1);case 18:case"end":return e.stop()}},e,null,[[4,11]])}));return function(){return e.apply(this,arguments)}}();return(0,d.useEffect)(function(){r&&D([].concat((0,n.Z)(P),w))},[]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(c(),{id:h.__hash,children:h}),!k&&(0,T.jsx)(g.Z,{title:u,fields:P,onSubmit:j,loading:N,onChange:F,submitText:i||"sign up"}),(0,T.jsx)("div",{className:"jsx-".concat(h.__hash)+" authentication__authentication-status",children:null==N?void 0:N.message})]})}},44983:function(e,t,r){"use strict";r.d(t,{R:function(){return a}});var n=r(67294),i=r(42711),o=function(){var e=function(){var e,t=i.Z.getCookie("cart");return"string"==typeof t&&(t=null===(e=JSON.parse(t))||void 0===e?void 0:e.items),t||[]},t=(0,n.useState)(e()),r=t[0],o=t[1],a=function(e){0===e.length?i.Z.deleteCookie("cart"):i.Z.setCookie("cart",JSON.stringify({items:e}),{}),o(e)},s=function(t){var r=e(),n=r.findIndex(function(e){return e.price.id===t.price.id});if(n>-1){var i=r[n];0===t.price.qty?r.splice(n,1):i.price.qty=Number(t.price.qty)}else 0!==t.price.qty&&r.push(t);a(r)};return(0,n.useEffect)(function(){var t=function(){o(e())},r=function(e){"cart"===e.detail.cookieName&&t()};return window.addEventListener("cookieChange",r),function(){return window.removeEventListener("cookieChange",r)}},[]),{cart:r,addCartItem:s}};t.Z=o;var a=function(){var e=o().cart,t=(0,n.useState)(0),r=t[0],i=t[1];return(0,n.useEffect)(function(){e&&i(e.reduce(function(e,t){var r;return e+((null==t||null===(r=t.price)||void 0===r?void 0:r.qty)||0)},0))},[e]),r}},80789:function(e,t,r){"use strict";r.d(t,{RF:function(){return d},db:function(){return l}});var n,i=r(27812),o=r(49334),a=r(67294),s=r(11907),c=(null===(n=r(23992).Z.merchant)||void 0===n?void 0:n.name)||"deepturn",u=[{href:"/payment",hide:!0},{href:"/verify",hide:!0},{href:"/transaction",hide:!0},{label:(0,o.Z)(c),icon:"".concat(c,"-logo"),href:"/"},{label:"products",href:"/product",icon:"fa-tags",active:!0},{label:"Social",icon:"fa-biohazard",href:"/social",clearance:10,items:[{label:"instagram",href:"/social?platform=instagram",icon:"fa-instagram",active:!0}]},{label:"Home",icon:"fa-home",href:"/home",clearance:6,items:[{label:"surveillance",href:"home?vid=surveillance",icon:"fa-camera-security",active:!0},{label:"lights",href:"home?vid=light",icon:"fa-lightbulb-on",active:!0}]},{label:"profile",icon:"fal-circle-user",clearance:1,items:[{href:"/admin?vid=management",label:"admin",clearance:10},{href:"/profile",label:"profile",clearance:1},{href:"/authentication/signout",label:"logout",clearance:1}]},{label:"login",modal:"login",icon:"fa-circle-user",clearance:0},{label:"about",href:"/about",icon:"fal-circle-info",active:!0},{label:"",href:"/cart",icon:"fal-bag-shopping"},{label:"",href:"/checkout",hide:!0}],l=function(){var e,t=(0,s.aF)(),r=(null==t||null===(e=t.metadata)||void 0===e||null===(e=e.user)||void 0===e?void 0:e.clearance)||0;return(0,a.useMemo)(function(){return(function(e){return e.filter(function(e){if("login"===e.label&&0===e.clearance&&t)return!1;var n=void 0===e.clearance||e.clearance<=r;return n&&e.items&&(e.items=e.items.filter(function(e){return void 0===e.clearance||e.clearance<=r})),n})})(u).sort(function(e,t){var r=["login","profile"],n=e.label&&r.includes(e.label)?r.indexOf(e.label):"/cart"===e.href?r.length:-1,i=t.label&&r.includes(t.label)?r.indexOf(t.label):"/cart"===t.href?r.length:-1;return -1!==n&&-1!==i?n-i:-1!==n?1:-1!==i?-1:0}).reverse()},[t,r])},d=function(e){var t=[];return u.forEach(function(r){null!=r&&r.label&&r.items&&!e.includes(null==r?void 0:r.label)?t.push.apply(t,(0,i.Z)(r.items)):(void 0===r.label&&t.push(r),r.label&&!e.includes(r.label)&&t.push(r))}),t}},45485:function(e,t,r){"use strict";let n,i,o;r.r(t),r.d(t,{default:function(){return n1}});var a={};r.r(a),r.d(a,{hasBrowserEnv:function(){return tB},hasStandardBrowserEnv:function(){return tH},hasStandardBrowserWebWorkerEnv:function(){return tz}});var s=r(59499),c=r(21378),u=r.n(c),l=r(67294),d=r(9008),f=r.n(d),h=["main.jsx-3185233888{overflow-y:visible;position:relative;margin-left:auto;margin-right:auto;}","@media (min-width:1260px){main.jsx-3185233888{margin:0 auto;max-width:1260px;inline-size:var(--s-4-width);}}","@media (max-width:900px){main.jsx-3185233888{height:inherit;min-height:auto;}}"];h.__hash="3185233888";var p=h,m=r(11163),b=r(23992),g=r(39925);function y(){var e=(0,l.useState)(!1),t=e[0],r=e[1];function n(){return window.matchMedia("(prefers-color-scheme: dark)").matches}return(0,l.useEffect)(function(){window&&r(n)},[r]),t}var _=r(85893),v=function(){var e=(0,m.useRouter)(),t=(0,g.R)(String(b.Z.merchant.name).replaceAll("-"," ")),r=(0,g.Z)(e.pathname.replace("/","")),n=(0,l.useState)(t),i=n[0],o=n[1];return(0,l.useEffect)(function(){o("".concat(t).concat(null!=r&&r.length?" | "+r:""))},[r]),(0,_.jsxs)(f(),{children:[(0,_.jsx)("title",{children:i}),y()?(0,_.jsx)("link",{rel:"shortcut icon",href:"/merchant/".concat(b.Z.merchant.mid,"/favicon-lite.ico")}):(0,_.jsx)("link",{rel:"shortcut icon",href:"/merchant/".concat(b.Z.merchant.mid,"/favicon-dark.ico")})]})},E=function(e){var t=(0,l.useRef)(),r=b.Z.merchant.mid,n=function(){if(r&&null!=t&&t.current){var e=document.querySelector('link[href*="'.concat(r,'.css"]'));if(!e){var n=document.createElement("link");n.rel="stylesheet",n.href="/styles/merchants/".concat(r,".css"),document.head.appendChild(n)}}};return(0,l.useEffect)(function(){return n(),window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)}},[]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(v,{}),(0,_.jsx)(u(),{id:p.__hash,children:p}),(0,_.jsx)("main",{ref:t,className:"jsx-".concat(p.__hash),children:e.children})]})},T=r(92777),A=r(82262),S=r(45959),x=r(63553),w=r(37247),C=r(10394),N=r(50029),M=r(10748);function k(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,w.Z)(e)););return e}function O(){return(O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=k(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}var R=r(64687),I=r.n(R),P=r(42711),D=function(e,t){return(D=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function $(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function L(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function F(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function j(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?G:(this.currentObservers=null,o.push(e),new V(function(){t.currentObservers=null,z(o,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new eb;return e.source=this,e},t.create=function(e,t){return new eT(e,t)},t}(eb),eT=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return $(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:G},t}(eE);function eA(e){var t=eS();return function(){var r,n=(0,w.Z)(e);return r=t?Reflect.construct(n,arguments,(0,w.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function eS(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var ex=function(e){(0,S.Z)(r,e);var t=eA(r);function r(){var e;(0,T.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o{let t=eC.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),ek=e=>(e=e.toLowerCase(),t=>eM(t)===e),eO=e=>t=>typeof t===e,{isArray:eR}=Array,eI=eO("undefined");function eP(e){return null!==e&&!eI(e)&&null!==e.constructor&&!eI(e.constructor)&&eF(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let eD=ek("ArrayBuffer");function e$(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&eD(e.buffer)}let eL=eO("string"),eF=eO("function"),ej=eO("number"),eU=e=>null!==e&&"object"==typeof e,eB=e=>!0===e||!1===e,eH=e=>{if("object"!==eM(e))return!1;let t=eN(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ez=ek("Date"),eV=ek("File"),eG=ek("Blob"),eY=ek("FileList"),eq=e=>eU(e)&&eF(e.pipe),eW=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||eF(e.append)&&("formdata"===(t=eM(e))||"object"===t&&eF(e.toString)&&"[object FormData]"===e.toString()))},eZ=ek("URLSearchParams"),eK=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function eX(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e){if("object"!=typeof e&&(e=[e]),eR(e))for(n=0,i=e.length;n0;)if(t===(r=n[i]).toLowerCase())return r;return null}let eJ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,e1=e=>!eI(e)&&e!==eJ;function e0(){let{caseless:e}=e1(this)&&this||{},t={},r=(r,n)=>{let i=e&&eQ(t,n)||n;eH(t[i])&&eH(r)?t[i]=e0(t[i],r):eH(r)?t[i]=e0({},r):eR(r)?t[i]=r.slice():t[i]=r};for(let e=0,t=arguments.length;e(eX(t,(t,n)=>{r&&eF(t)?e[n]=ew(t,r):e[n]=t},{allOwnKeys:n}),e),e3=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),e4=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},e6=(e,t,r,n)=>{let i,o,a;let s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==r&&eN(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},e5=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},e8=e=>{if(!e)return null;if(eR(e))return e;let t=e.length;if(!ej(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},e9=(i="undefined"!=typeof Uint8Array&&eN(Uint8Array),e=>i&&e instanceof i),e7=(e,t)=>{let r;let n=(e&&e[Symbol.iterator]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},te=(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},tt=ek("HTMLFormElement"),tr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),tn=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ti=ek("RegExp"),to=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};eX(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)},ta=e=>{to(e,(t,r)=>{if(eF(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(eF(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},ts=(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(eR(e)?e:String(e).split(t)),r},tc=()=>{},tu=(e,t)=>Number.isFinite(e=+e)?e:t,tl="abcdefghijklmnopqrstuvwxyz",td="0123456789",tf={DIGIT:td,ALPHA:tl,ALPHA_DIGIT:tl+tl.toUpperCase()+td},th=(e=16,t=tf.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function tp(e){return!!(e&&eF(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}let tm=e=>{let t=Array(10),r=(e,n)=>{if(eU(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;let i=eR(e)?[]:{};return eX(e,(e,t)=>{let o=r(e,n+1);eI(o)||(i[t]=o)}),t[n]=void 0,i}}return e};return r(e,0)},tb=ek("AsyncFunction"),tg=e=>e&&(eU(e)||eF(e))&&eF(e.then)&&eF(e.catch);var ty={isArray:eR,isArrayBuffer:eD,isBuffer:eP,isFormData:eW,isArrayBufferView:e$,isString:eL,isNumber:ej,isBoolean:eB,isObject:eU,isPlainObject:eH,isUndefined:eI,isDate:ez,isFile:eV,isBlob:eG,isRegExp:ti,isFunction:eF,isStream:eq,isURLSearchParams:eZ,isTypedArray:e9,isFileList:eY,forEach:eX,merge:e0,extend:e2,trim:eK,stripBOM:e3,inherits:e4,toFlatObject:e6,kindOf:eM,kindOfTest:ek,endsWith:e5,toArray:e8,forEachEntry:e7,matchAll:te,isHTMLForm:tt,hasOwnProperty:tn,hasOwnProp:tn,reduceDescriptors:to,freezeMethods:ta,toObjectSet:ts,toCamelCase:tr,noop:tc,toFiniteNumber:tu,findKey:eQ,global:eJ,isContextDefined:e1,ALPHABET:tf,generateString:th,isSpecCompliantForm:tp,toJSONObject:tm,isAsyncFn:tb,isThenable:tg};function t_(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}ty.inherits(t_,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ty.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let tv=t_.prototype,tE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{tE[e]={value:e}}),Object.defineProperties(t_,tE),Object.defineProperty(tv,"isAxiosError",{value:!0}),t_.from=(e,t,r,n,i,o)=>{let a=Object.create(tv);return ty.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),t_.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var tT=t_,tA=null,tS=r(48764).Buffer;function tx(e){return ty.isPlainObject(e)||ty.isArray(e)}function tw(e){return ty.endsWith(e,"[]")?e.slice(0,-2):e}function tC(e,t,r){return e?e.concat(t).map(function(e,t){return e=tw(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}function tN(e){return ty.isArray(e)&&!e.some(tx)}let tM=ty.toFlatObject(ty,{},null,function(e){return/^is[A-Z]/.test(e)});var tk=function(e,t,r){if(!ty.isObject(e))throw TypeError("target must be an object");t=t||new(tA||FormData);let n=(r=ty.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ty.isUndefined(t[e])})).metaTokens,i=r.visitor||u,o=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&ty.isSpecCompliantForm(t);if(!ty.isFunction(i))throw TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ty.isDate(e))return e.toISOString();if(!s&&ty.isBlob(e))throw new tT("Blob is not supported. Use a Buffer instead.");return ty.isArrayBuffer(e)||ty.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):tS.from(e):e}function u(e,r,i){let s=e;if(e&&!i&&"object"==typeof e){if(ty.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(ty.isArray(e)&&tN(e)||(ty.isFileList(e)||ty.endsWith(r,"[]"))&&(s=ty.toArray(e)))return r=tw(r),s.forEach(function(e,n){ty.isUndefined(e)||null===e||t.append(!0===a?tC([r],n,o):null===a?r:r+"[]",c(e))}),!1}return!!tx(e)||(t.append(tC(i,r,o),c(e)),!1)}let l=[],d=Object.assign(tM,{defaultVisitor:u,convertValue:c,isVisitable:tx});function f(e,r){if(!ty.isUndefined(e)){if(-1!==l.indexOf(e))throw Error("Circular reference detected in "+r.join("."));l.push(e),ty.forEach(e,function(e,n){!0===(!(ty.isUndefined(e)||null===e)&&i.call(t,e,ty.isString(n)?n.trim():n,r,d))&&f(e,r?r.concat(n):[n])}),l.pop()}}if(!ty.isObject(e))throw TypeError("data must be an object");return f(e),t};function tO(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function tR(e,t){this._pairs=[],e&&tk(e,this,t)}let tI=tR.prototype;tI.append=function(e,t){this._pairs.push([e,t])},tI.toString=function(e){let t=e?function(t){return e.call(this,t,tO)}:tO;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var tP=tR;function tD(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function t$(e,t,r){let n;if(!t)return e;let i=r&&r.encode||tD,o=r&&r.serialize;if(n=o?o(t,r):ty.isURLSearchParams(t)?t.toString():new tP(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}class tL{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ty.forEach(this.handlers,function(t){null!==t&&e(t)})}}var tF=tL,tj={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tU={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:tP,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};let tB="undefined"!=typeof window&&"undefined"!=typeof document,tH=(o="undefined"!=typeof navigator&&navigator.product,tB&&0>["ReactNative","NativeScript","NS"].indexOf(o)),tz="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var tV={...a,...tU};function tG(e,t){return tk(e,new tV.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return tV.isNode&&ty.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}function tY(e){return ty.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function tq(e){let t,r;let n={},i=Object.keys(e),o=i.length;for(t=0;t=e.length;return(o=!o&&ty.isArray(n)?n.length:o,s)?ty.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r:(n[o]&&ty.isObject(n[o])||(n[o]=[]),t(e,r,n[o],i)&&ty.isArray(n[o])&&(n[o]=tq(n[o]))),!a}if(ty.isFormData(e)&&ty.isFunction(e.entries)){let r={};return ty.forEachEntry(e,(e,n)=>{t(tY(e),n,r,0)}),r}return null};function tZ(e,t,r){if(ty.isString(e))try{return(t||JSON.parse)(e),ty.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}let tK={transitional:tj,adapter:["xhr","http"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=ty.isObject(e);if(o&&ty.isHTMLForm(e)&&(e=new FormData(e)),ty.isFormData(e))return i?JSON.stringify(tW(e)):e;if(ty.isArrayBuffer(e)||ty.isBuffer(e)||ty.isStream(e)||ty.isFile(e)||ty.isBlob(e))return e;if(ty.isArrayBufferView(e))return e.buffer;if(ty.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return tG(e,this.formSerializer).toString();if((r=ty.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return tk(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),tZ(e)):e}],transformResponse:[function(e){let t=this.transitional||tK.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&ty.isString(e)&&(r&&!this.responseType||n)){let r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw tT.from(e,tT.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tV.classes.FormData,Blob:tV.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ty.forEach(["delete","get","head","post","put","patch"],e=>{tK.headers[e]={}});var tX=tK;let tQ=ty.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var tJ=e=>{let t,r,n;let i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&tQ[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i};let t1=Symbol("internals");function t0(e){return e&&String(e).trim().toLowerCase()}function t2(e){return!1===e||null==e?e:ty.isArray(e)?e.map(t2):String(e)}function t3(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}let t4=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function t6(e,t,r,n,i){if(ty.isFunction(n))return n.call(this,t,r);if(i&&(t=r),ty.isString(t)){if(ty.isString(n))return -1!==t.indexOf(n);if(ty.isRegExp(n))return n.test(t)}}function t5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function t8(e,t){let r=ty.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}class t9{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=t0(t);if(!i)throw Error("header name must be a non-empty string");let o=ty.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=t2(e))}let o=(e,t)=>ty.forEach(e,(e,r)=>i(e,r,t));return ty.isPlainObject(e)||e instanceof this.constructor?o(e,t):ty.isString(e)&&(e=e.trim())&&!t4(e)?o(tJ(e),t):null!=e&&i(t,e,r),this}get(e,t){if(e=t0(e)){let r=ty.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return t3(e);if(ty.isFunction(t))return t.call(this,e,r);if(ty.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=t0(e)){let r=ty.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||t6(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=t0(e)){let i=ty.findKey(r,e);i&&(!t||t6(r,r[i],i,t))&&(delete r[i],n=!0)}}return ty.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||t6(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return ty.forEach(this,(n,i)=>{let o=ty.findKey(r,i);if(o){t[o]=t2(n),delete t[i];return}let a=e?t5(i):String(i).trim();a!==i&&delete t[i],t[a]=t2(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return ty.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&ty.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[t1]=this[t1]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=t0(e);t[n]||(t8(r,e),t[n]=!0)}return ty.isArray(e)?e.forEach(n):n(e),this}}t9.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ty.reduceDescriptors(t9.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),ty.freezeMethods(t9);var t7=t9;function re(e,t){let r=this||tX,n=t||r,i=t7.from(n.headers),o=n.data;return ty.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function rt(e){return!!(e&&e.__CANCEL__)}function rr(e,t,r){tT.call(this,null==e?"canceled":e,tT.ERR_CANCELED,t,r),this.name="CanceledError"}ty.inherits(rr,tT,{__CANCEL__:!0});var rn=rr;function ri(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new tT("Request failed with status code "+r.status,[tT.ERR_BAD_REQUEST,tT.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}var ro=tV.hasStandardBrowserEnv?{write(e,t,r,n,i,o){let a=[e+"="+encodeURIComponent(t)];ty.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),ty.isString(n)&&a.push("path="+n),ty.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ra(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function rc(e,t){return e&&!ra(t)?rs(e,t):t}var ru=tV.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){let r=ty.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}();function rl(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}var rd=function(e,t){let r;let n=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let c=Date.now(),u=i[a];r||(r=c),n[o]=s,i[o]=c;let l=a,d=0;for(;l!==o;)d+=n[l++],l%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),c-r{let o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,c=n(s),u=o<=a;r=o;let l={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&u?(a-o)/c:void 0,event:i};l[t?"download":"upload"]=!0,e(l)}}let rh={http:tA,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,i,o=e.data,a=t7.from(e.headers).normalize(),{responseType:s,withXSRFToken:c}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}if(ty.isFormData(o)){if(tV.hasStandardBrowserEnv||tV.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if(!1!==(i=a.getContentType())){let[e,...t]=i?i.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}}let l=new XMLHttpRequest;if(e.auth){let t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(t+":"+r))}let d=rc(e.baseURL,e.url);function f(){if(!l)return;let n=t7.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());ri(function(e){t(e),u()},function(e){r(e),u()},{data:s&&"text"!==s&&"json"!==s?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),t$(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=f:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(f)},l.onabort=function(){l&&(r(new tT("Request aborted",tT.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new tT("Network Error",tT.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||tj;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new tT(t,n.clarifyTimeoutError?tT.ETIMEDOUT:tT.ECONNABORTED,e,l)),l=null},tV.hasStandardBrowserEnv&&(c&&ty.isFunction(c)&&(c=c(e)),c||!1!==c&&ru(d))){let t=e.xsrfHeaderName&&e.xsrfCookieName&&ro.read(e.xsrfCookieName);t&&a.set(e.xsrfHeaderName,t)}void 0===o&&a.setContentType(null),"setRequestHeader"in l&&ty.forEach(a.toJSON(),function(e,t){l.setRequestHeader(t,e)}),ty.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),s&&"json"!==s&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",rf(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",rf(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=t=>{l&&(r(!t||t.type?new rn(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));let h=rl(d);if(h&&-1===tV.protocols.indexOf(h)){r(new tT("Unsupported protocol "+h+":",tT.ERR_BAD_REQUEST,e));return}l.send(o||null)})}};ty.forEach(rh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let rp=e=>`- ${e}`,rm=e=>ty.isFunction(e)||null===e||!1===e;var rb=e=>{let t,r;let{length:n}=e=ty.isArray(e)?e:[e],i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new tT("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(rp).join("\n"):" "+rp(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function rg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rn(null,e)}function ry(e){return rg(e),e.headers=t7.from(e.headers),e.data=re.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rb(e.adapter||tX.adapter)(e).then(function(t){return rg(e),t.data=re.call(e,e.transformResponse,t),t.headers=t7.from(t.headers),t},function(t){return!rt(t)&&(rg(e),t&&t.response&&(t.response.data=re.call(e,e.transformResponse,t.response),t.response.headers=t7.from(t.response.headers))),Promise.reject(t)})}let r_=e=>e instanceof t7?{...e}:e;function rv(e,t){t=t||{};let r={};function n(e,t,r){return ty.isPlainObject(e)&&ty.isPlainObject(t)?ty.merge.call({caseless:r},e,t):ty.isPlainObject(t)?ty.merge({},t):ty.isArray(t)?t.slice():t}function i(e,t,r){return ty.isUndefined(t)?ty.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function o(e,t){if(!ty.isUndefined(t))return n(void 0,t)}function a(e,t){return ty.isUndefined(t)?ty.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}let c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(r_(e),r_(t),!0)};return ty.forEach(Object.keys(Object.assign({},e,t)),function(n){let o=c[n]||i,a=o(e[n],t[n],n);ty.isUndefined(a)&&o!==s||(r[n]=a)}),r}let rE="1.6.8",rT={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{rT[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let rA={};rT.transitional=function(e,t,r){function n(e,t){return"[Axios v"+rE+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new tT(n(i," has been removed"+(t?" in "+t:"")),tT.ERR_DEPRECATED);return t&&!rA[i]&&(rA[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};var rS={assertOptions:function(e,t,r){if("object"!=typeof e)throw new tT("options must be an object",tT.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],a=t[o];if(a){let t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new tT("option "+o+" must be "+r,tT.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new tT("Unknown option "+o,tT.ERR_BAD_OPTION)}},validators:rT};let rx=rS.validators;class rw{constructor(e){this.defaults=e,this.interceptors={request:new tF,response:new tF}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=rv(this.defaults,t);void 0!==i&&rS.assertOptions(i,{silentJSONParsing:rx.transitional(rx.boolean),forcedJSONParsing:rx.transitional(rx.boolean),clarifyTimeoutError:rx.transitional(rx.boolean)},!1),null!=o&&(ty.isFunction(o)?t.paramsSerializer={serialize:o}:rS.assertOptions(o,{encode:rx.function,serialize:rx.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&ty.merge(a.common,a[t.method]);a&&ty.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=t7.concat(s,a);let c=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,c.unshift(e.fulfilled,e.rejected))});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[ry.bind(this),void 0];for(e.unshift.apply(e,c),e.push.apply(e,l),n=e.length,r=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new rn(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new rN(function(t){e=t}),cancel:e}}}var rM=rN;function rk(e){return function(t){return e.apply(null,t)}}function rO(e){return ty.isObject(e)&&!0===e.isAxiosError}let rR={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rR).forEach(([e,t])=>{rR[t]=e});var rI=rR;function rP(e){let t=new rC(e),r=ew(rC.prototype.request,t);return ty.extend(r,rC.prototype,t,{allOwnKeys:!0}),ty.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return rP(rv(e,t))},r}let rD=rP(tX);rD.Axios=rC,rD.CanceledError=rn,rD.CancelToken=rM,rD.isCancel=rt,rD.VERSION=rE,rD.toFormData=tk,rD.AxiosError=tT,rD.Cancel=rD.CanceledError,rD.all=function(e){return Promise.all(e)},rD.spread=rk,rD.isAxiosError=rO,rD.mergeConfig=rv,rD.AxiosHeaders=t7,rD.formToJSON=e=>tW(ty.isHTMLForm(e)?new FormData(e):e),rD.getAdapter=rb,rD.HttpStatusCode=rI,rD.default=rD;var r$=rD,rL=function(){function e(t){(0,T.Z)(this,e),this.apiEndpoint=t}return(0,A.Z)(e,[{key:"get",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"json";return new Promise(function(n,i){r$.get(t.getFullUrl(e),{headers:t.getDefaultHeaders(),responseType:r}).then(function(e){n(e.data)}).catch(function(e){i(t.createApiErrorForAxios(e))})})}},{key:"post",value:function(e,t,r){var n=this;return new Promise(function(i,o){var a=n.getDefaultHeaders();null!=r&&Object.assign(a,r),r$.post(n.getFullUrl(e),t,{headers:a}).then(function(e){i(e.data)}).catch(function(e){o(n.createApiErrorForAxios(e))})})}},{key:"put",value:function(e,t){var r=this;return new Promise(function(n,i){r$.put(r.getFullUrl(e),t,{headers:r.getDefaultHeaders()}).then(function(e){n(e.data)}).catch(function(e){i(r.createApiErrorForAxios(e))})})}},{key:"delete",value:function(e){var t=this;return new Promise(function(r,n){r$.delete(t.getFullUrl(e),{headers:t.getDefaultHeaders()}).then(function(e){r(e.data)}).catch(function(e){n(t.createApiErrorForAxios(e))})})}},{key:"getDefaultHeaders",value:function(){var e={};return this.appendHeaders(e),e}},{key:"appendHeaders",value:function(e){e["Cache-Control"]="no-cache",e.Pragma="no-cache",e.Expires="0"}},{key:"getFullUrl",value:function(e){if(!this.apiEndpoint)throw Error("apiEndpoint missing");if(!e)throw Error("URI required");var t="/"===this.apiEndpoint[this.apiEndpoint.length-1],r="/"===e[0];return(t||r||(e="/"+e),e.includes("/https://"))?e.replace("/",""):this.apiEndpoint+e}},{key:"createApiErrorForAxios",value:function(e){if(!e.isAxiosError)return new rF("unhandled error (ws.bc.1)",500);if(e.response){var t,r,n,i=e.response,o=i.data;return o&&o.status&&o.status.toString().startsWith("4")&&o.title?new rF(o.title,i.status,null===(r=i.data)||void 0===r?void 0:r.code,i.data):e.message?new rF(e.message,i.status,null===(n=i.data)||void 0===n?void 0:n.code,i.data):new rF("Unhandled Error",i.status,null===(t=i.data)||void 0===t?void 0:t.code,i.data)}return new rF(e.request?"no response was received":"Unhandled Error")}}]),e}(),rF=(0,A.Z)(function e(t,r,n,i){(0,T.Z)(this,e),this.message=null!=t?t:"Unhandled Error",this.status=r,this.detail=i,this.error=!0}),rj=r(42474),rU=r.n(rj),rB=r(48764).Buffer;function rH(e,t){if(t){var r=rU().createHash("sha256");r.update(t);var n=r.digest(),i=rU().randomBytes(16),o=rU().createCipheriv("aes-256-cbc",n,i),a=o.update(e);return a=rB.concat([a,o.final()]),i.toString("hex")+":"+a.toString("hex")}}function rz(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rV(e){for(var t=1;t0&&(alert(1),this._timeout=setTimeout(function(){t._getCurrentUser(!0)},a+1e3)),alert(2)}return this._userContext}},{key:"_getCurrentGuest",value:function(e){var t=this;if(!e&&null!=this._guestContext)return this._guestContext;var r=this.getguestTokenFromStorage();if(!r){this.updateguestContext(void 0,void 0);return}var n=this.parseToken(r),i=null==n?void 0:n.user;if(null==i){this.updateguestContext(void 0,void 0);return}if(this.updateguestContext(rq({},i),r),null!=this._timeout&&clearTimeout(this._timeout),null!=n&&n.exp){var o=new Date().getTime(),a=1e3*parseInt(n.exp)-o;a>0&&(alert(1),this._timeout=setTimeout(function(){t._getCurrentGuest(!0)},a+1e3)),alert(2)}return this._guestContext}},{key:"saveTransactionToken",value:function(e){var t;this.isBrowser&&(null===(t=localStorage)||void 0===t||t.setItem(rX,e))}},{key:"saveMemberToken",value:function(e){if(this.isBrowser){var t,r=this.getguestTokenFromStorage();r&&this.deleteguestToken(),null===(t=localStorage)||void 0===t||t.setItem(rK,e)}}},{key:"saveguestToken",value:function(e){if(this.isBrowser){var t,r=this.getMemberTokenFromStorage();r&&this.deleteMemberToken(),null===(t=localStorage)||void 0===t||t.setItem(rQ,e)}}},{key:"isBrowser",get:function(){return!0}},{key:"signOut",value:function(){var e=(0,N.Z)(I().mark(function e(){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.getCurrentUserToken){e.next=2;break}return e.abrupt("return","No User");case 2:return this.updateUserContext(void 0,void 0),this.deleteMemberToken(),this.deleteLegacyCookie(),e.abrupt("return","Success");case 6:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"signOutguest",value:function(){var e=(0,N.Z)(I().mark(function e(){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.getCurrentGuestToken){e.next=2;break}return e.abrupt("return","No User");case 2:return this.updateguestContext(void 0,void 0),this.deleteguestToken(),this.deleteLegacyguestCookie(),e.abrupt("return","Success");case 6:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"deleteLegacyCookie",value:function(){var e={},t=b.Z.legacyJwtCookie;e.path="/",t.domain&&(e.domain=t.domain),P.Z.deleteCookie(t.authToken)}},{key:"deleteLegacyguestCookie",value:function(){var e={},t=b.Z.legacyJwtCookie;e.path="/",t.domain&&(e.domain=t.domain),P.Z.setCookie(t.guestToken,"",e)}},{key:"parseToken",value:function(e){var t=e.split(".");if(3!==t.length)return null;var r=t[1].replace(/-/g,"+").replace(/_/g,"/");try{var n=window.atob(r);return JSON.parse(n)}catch(e){return console.error("Error decoding JWT payload",e,"[MemberService.ts]"),alert("Error decoding JWT payload: "+JSON.stringify(e)),null}}},{key:"deleteguestToken",value:function(){if(this.isBrowser){var e;null===(e=localStorage)||void 0===e||e.removeItem(rQ)}}},{key:"deleteMemberToken",value:function(){if(this.isBrowser){var e;null===(e=localStorage)||void 0===e||e.removeItem(rK)}}},{key:"getguestTokenFromStorage",value:function(){if(!this.isBrowser)return null;var e,t=null===(e=localStorage)||void 0===e?void 0:e.getItem(rQ);return null==t?null:null==this.parseToken(t)?(this.deleteguestToken(),null):t}},{key:"getMemberTokenFromStorage",value:function(){if(!this.isBrowser)return null;var e,t=null===(e=localStorage)||void 0===e?void 0:e.getItem(rK);return null==t?null:null==this.parseToken(t)?(this.deleteMemberToken(),null):t}},{key:"getCurrentUserToken",value:function(){return this._userToken}},{key:"getCurrentGuestToken",value:function(){return this._guestToken}},{key:"appendHeaders",value:function(e){O((0,w.Z)(r.prototype),"appendHeaders",this).call(this,e);var t=this.getCurrentUserToken();t&&(e.Authorization="Bearer ".concat(t))}}]),r}(rL);function r3(e){var t=r4();return function(){var r,n=(0,w.Z)(e);return r=t?Reflect.construct(n,arguments,(0,w.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function r4(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var r6=function(e){(0,S.Z)(r,e);var t=r3(r);function r(){var e;return(0,T.Z)(this,r),(e=t.call(this,b.Z.serviceEndpoints.social)).MemberService=(0,C.ko)("IMemberService"),e}return(0,A.Z)(r,[{key:"getProducts",value:function(){var e=(0,N.Z)(I().mark(function e(t){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post("/api/products",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"getProduct",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r,n;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.id,!(n=t.pri)){e.next=3;break}return e.abrupt("return",this.get("/api/product?id=".concat(r,"&pri=").concat(n)));case 3:return e.abrupt("return",this.get("/api/product?id=".concat(r)));case 4:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}]),r}(rL),r5=r(4730),r8=["group_id"];function r9(e){var t=r7();return function(){var r,n=(0,w.Z)(e);return r=t?Reflect.construct(n,arguments,(0,w.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function r7(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var ne=function(e){(0,S.Z)(r,e);var t=r9(r);function r(){var e;return(0,T.Z)(this,r),(e=t.call(this,b.Z.serviceEndpoints.home)).MemberService=(0,C.ko)("IMemberService"),e}return(0,A.Z)(r,[{key:"light",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r,n;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,n=t.name,e.abrupt("return",this.post("/hue/light",{id:r,name:n}));case 2:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"hue_list",value:function(){var e=(0,N.Z)(I().mark(function e(){var t,r=arguments;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:"light",e.next=3,this.get("/api/home/hue/list?type=".concat(t));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"lightsOn",value:function(){var e=(0,N.Z)(I().mark(function e(){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/api/home/hue/all-on");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"lightsOff",value:function(){var e=(0,N.Z)(I().mark(function e(){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/api/home/hue/all-off");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"stream",value:function(){var e=(0,N.Z)(I().mark(function e(t){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.get("/cam-".concat(t)));case 1:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"hue_brightness",value:function(){var e=(0,N.Z)(I().mark(function e(t,r,n){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.post("/api/home/hue/light-bri?id=".concat(t,"&bri=").concat(r,"&type=").concat(n)));case 1:case"end":return e.stop()}},e,this)}));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"listGroups",value:function(){var e=(0,N.Z)(I().mark(function e(){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get("/api/home/hue/groups");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"hue_rename",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r={id:t.id,name:t.name,new_name:t.new_name},e.next=4,this.post("/api/home/hue/light/rename",r);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"createGroup",value:function(){var e=(0,N.Z)(I().mark(function e(t){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.post("/api/home/hue/groups",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"modifyGroup",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r,n;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.group_id,n=(0,r5.Z)(t,r8),e.next=3,this.put("/api/home/hue/groups/".concat(r),n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"deleteGroup",value:function(){var e=(0,N.Z)(I().mark(function e(t){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.delete("/api/home/hue/groups/".concat(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"hue_toggle",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r,n=arguments;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:"light",e.abrupt("return",this.get("/api/home/hue/toggle?id=".concat(t).concat(r&&"&type=".concat(r)||"")));case 2:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"lightColor",value:function(){var e=(0,N.Z)(I().mark(function e(t,r,n){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.get("/api/home/hue/light-hex-color?id=".concat(t,"&hex=").concat(r.replaceAll("#",""),"&type=").concat(n)));case 1:case"end":return e.stop()}},e,this)}));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"getVehicles",value:function(){var e=(0,N.Z)(I().mark(function e(t){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.post("/auto/vehicles",t));case 1:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"startVehicle",value:function(){var e=(0,N.Z)(I().mark(function e(t){return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.post("/auto/vehicle/start",t));case 1:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"appendHeaders",value:function(e){O((0,w.Z)(r.prototype),"appendHeaders",this).call(this,e);var t=this.MemberService.getCurrentUserToken();t&&(e.Authorization="Bearer ".concat(t))}}]),r}(rL);function nt(e){var t=nr();return function(){var r,n=(0,w.Z)(e);return r=t?Reflect.construct(n,arguments,(0,w.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function nr(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var nn="00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF".trim(),ni=function(e){(0,S.Z)(r,e);var t=nt(r);function r(){return(0,T.Z)(this,r),t.call(this,b.Z.serviceEndpoints.membership)}return(0,A.Z)(r,[{key:"getAccount",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.get("/api/account?id=".concat(t));case 3:return r=e.sent,e.abrupt("return",r);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}},e,this,[[0,7]])}));return function(t){return e.apply(this,arguments)}}()},{key:"listAccounts",value:function(){var e=(0,N.Z)(I().mark(function e(){var t;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.get("/api/accounts/");case 3:return t=e.sent,e.abrupt("return",t);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}},e,this,[[0,7]])}));return function(){return e.apply(this,arguments)}}()},{key:"getCustomer",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=13;break}return e.prev=1,e.next=4,this.get("/usage/admin/customer?id=".concat(t));case 4:return r=e.sent,e.abrupt("return",r);case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",e.t0);case 11:e.next=14;break;case 13:throw new rF("No Token Provided",400,"MS.SI.02");case 14:case"end":return e.stop()}},e,this,[[1,8]])}));return function(t){return e.apply(this,arguments)}}()},{key:"getSystemInfo",value:function(){var e=(0,N.Z)(I().mark(function e(){var t;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.get("/api/system/");case 3:return t=e.sent,e.abrupt("return",t);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}},e,this,[[0,7]])}));return function(){return e.apply(this,arguments)}}()},{key:"deleteCustomer",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=13;break}return e.prev=1,e.next=4,this.get("/usage/admin/customer/delete?id=".concat(t));case 4:return r=e.sent,e.abrupt("return",r);case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",e.t0);case 11:e.next=14;break;case 13:throw new rF("No Token Provided",400,"MS.SI.02");case 14:case"end":return e.stop()}},e,this,[[1,8]])}));return function(t){return e.apply(this,arguments)}}()},{key:"listCustomers",value:function(){var e=(0,N.Z)(I().mark(function e(){var t;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.get("/usage/admin/customer/list");case 3:return t=e.sent,e.abrupt("return",t);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}},e,this,[[0,7]])}));return function(){return e.apply(this,arguments)}}()},{key:"updateCustomer",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return r=rH(JSON.stringify(t),nn),e.next=4,this.put("/usage/admin/customer",{data:r});case 4:return e.abrupt("return",e.sent);case 5:if(t){e.next=7;break}throw new rF("NO MEMBER DATA PROVIDED",400,"MS.SI.02");case 7:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"createCustomer",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return r=rH(JSON.stringify(t),nn),e.next=4,this.post("/usage/admin/customer/create",{data:r});case 4:return e.abrupt("return",e.sent);case 5:if(t){e.next=7;break}throw new rF("NO MEMBER DATA PROVIDED",400,"MS.SI.02");case 7:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}]),r}(rL);function no(e){var t=na();return function(){var r,n=(0,w.Z)(e);return r=t?Reflect.construct(n,arguments,(0,w.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function na(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var ns=function(e){(0,S.Z)(r,e);var t=no(r);function r(){var e;return(0,T.Z)(this,r),(e=t.call(this,b.Z.serviceEndpoints.social)).MemberService=(0,C.ko)("IMemberService"),e}return(0,A.Z)(r,[{key:"uploadDocument",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r,n,i,o,a,s=arguments;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:"pci_document",i=null===(r=this.MemberService.getCurrentUser())||void 0===r?void 0:r.id,e.prev=2,o=encodeURIComponent(n),e.next=6,this.post("api/document/upload?purpose=".concat(o,"&customerId=").concat(i),t);case 6:return a=e.sent,e.abrupt("return",a);case 10:throw e.prev=10,e.t0=e.catch(2),console.error("Error uploading document: ",e.t0),new rF("Error uploading document",400,"MS.UD.01");case 14:case"end":return e.stop()}},e,this,[[2,10]])}));return function(t){return e.apply(this,arguments)}}()},{key:"retrieveDocument",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.get("api/document/files/".concat(t));case 3:return r=e.sent,e.abrupt("return",r);case 7:throw e.prev=7,e.t0=e.catch(0),console.error("Error retrieving document: ",e.t0),new rF("Error retrieving document",400,"MS.RD.01");case 11:case"end":return e.stop()}},e,this,[[0,7]])}));return function(t){return e.apply(this,arguments)}}()},{key:"listDocuments",value:function(){var e=(0,N.Z)(I().mark(function e(){var t,r,n,i,o=arguments;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},e.prev=1,r=new URLSearchParams(t).toString(),n="api/document/files".concat(r?"?".concat(r):""),e.next=6,this.get(n);case 6:return i=e.sent,e.abrupt("return",i);case 10:throw e.prev=10,e.t0=e.catch(1),console.error("Error listing documents: ",e.t0),new rF("Error listing documents",400,"MS.LD.01");case 14:case"end":return e.stop()}},e,this,[[1,10]])}));return function(){return e.apply(this,arguments)}}()},{key:"downloadDocument",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.get("api/download-stripe-file/".concat(t),"blob");case 3:return r=e.sent,e.abrupt("return",r);case 7:throw e.prev=7,e.t0=e.catch(0),console.error("Error downloading document: ",e.t0),new rF("Error downloading document",400,"MS.DD.01");case 11:case"end":return e.stop()}},e,this,[[0,7]])}));return function(t){return e.apply(this,arguments)}}()}]),r}(rL);function nc(e){var t=nu();return function(){var r,n=(0,w.Z)(e);return r=t?Reflect.construct(n,arguments,(0,w.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function nu(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var nl=function(e){(0,S.Z)(r,e);var t=nc(r);function r(){return(0,T.Z)(this,r),t.call(this,b.Z.serviceEndpoints.social)}return(0,A.Z)(r,[{key:"instagramAuthenticate",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r,n,i,o,a,s;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.username,n=t.password,i=t.email,!(!r||!n||!i)){e.next=3;break}return e.abrupt("return");case 3:return o="00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF".trim(),a=rH(JSON.stringify({email:i,username:r,password:n,created:new Date().getTime()}),o),e.next=8,this.post("/usage/social/instagram/authenticate",{data:a});case 8:return console.log("[ SOCIAL (IG AUTH) ]",s=e.sent),e.abrupt("return",s);case 11:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}]),r}(rL);function nd(e){var t=nf();return function(){var r,n=(0,w.Z)(e);return r=t?Reflect.construct(n,arguments,(0,w.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function nf(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var nh=function(e){(0,S.Z)(r,e);var t=nd(r);function r(){return(0,T.Z)(this,r),t.call(this,b.Z.serviceEndpoints.membership)}return(0,A.Z)(r,[{key:"getPaymentIntentSecret",value:function(e){throw Error("Method not implemented.")}},{key:"prospectRequest",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=7;break}return e.next=3,this.post("usage/prospect/create/",t);case 3:return r=e.sent,e.abrupt("return",r);case 7:throw new rF("No Customer ID Provided",400,"MS.SI.02");case 8:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"getPaymentIntent",value:function(){var e=(0,N.Z)(I().mark(function e(t){var r;return I().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=7;break}return e.next=3,this.get("usage/customer/method/confirm?setup_intent_client_secret=".concat(t));case 3:return r=e.sent,e.abrupt("return",r);case 7:throw new rF("No ID Provided",400,"MS.SI.02");case 8:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}]),r}(rL);function np(e){var t=nm();return function(){var r,n=(0,w.Z)(e);return r=t?Reflect.construct(n,arguments,(0,w.Z)(this).constructor):n.apply(this,arguments),(0,x.Z)(this,r)}}function nm(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var nb=function(e){(0,S.Z)(r,e);var t=np(r);function r(e){var n,i;return(0,T.Z)(this,r),i=t.call(this,e),null===(n=b.Z.devSettings)||void 0===n||n.mockApis,C.fk.registerService("IMemberService",r2),C.fk.registerService("IProductService",r6),C.fk.registerService("IGuestService",nh),C.fk.registerService("IHomeService",ne),C.fk.registerService("IAdminService",ni),C.fk.registerService("IDocumentService",ns),C.fk.registerService("ISocialService",nl),i}return(0,A.Z)(r,[{key:"render",value:function(){return(0,_.jsx)(_.Fragment,{})}}]),r}(l.Component),ng=r(80360),ny=r(16835),n_=[".d-flex.jsx-3803800924,.navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--cart.jsx-3803800924,.navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924,.navbar__container.jsx-3803800924 .navbar__trigger.jsx-3803800924,.navbar__container.jsx-3803800924{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".navbar__container.jsx-3803800924{z-index:1000;min-height:var(--s-element);background-color:var(--black);width:100%;}","@-webkit-keyframes animateBg-jsx-3803800924{0%{background-position:100% 0%;}100%{background-position:0% 0%;}}","@keyframes animateBg-jsx-3803800924{0%{background-position:100% 0%;}100%{background-position:0% 0%;}}",".navbar__container.jsx-3803800924 .navbar.jsx-3803800924{padding:0 0 var(--s-9);width:100%;}","@media (min-width:1100px){.navbar__container.jsx-3803800924 .navbar.jsx-3803800924{min-height:var(--s-element);padding:0;margin:0 auto;inline-size:1260px;}}","@media (max-width:1100px){.navbar__container.jsx-3803800924{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}}","@-webkit-keyframes fade-jsx-3803800924{0%{-webkit-filter:brightness(2);filter:brightness(2);--ui-icon-color:var(--body);background-color:var(--gray-80-o);}100%{-webkit-filter:brightness(1);filter:brightness(1);background-color:var(--primary-o);--ui-icon-color:var(--white);}}","@keyframes fade-jsx-3803800924{0%{-webkit-filter:brightness(2);filter:brightness(2);--ui-icon-color:var(--body);background-color:var(--gray-80-o);}100%{-webkit-filter:brightness(1);filter:brightness(1);background-color:var(--primary-o);--ui-icon-color:var(--white);}}",".navbar__container.jsx-3803800924 .navbar__trigger.jsx-3803800924{cursor:pointer;--ui-icon-size:var(--s-7);-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-radius:var(--border-radius);display:none;background-color:var(--gray-90);--ui-icon-color:var(--primary-50);aspect-ratio:1;min-height:var(--s-element);}",".navbar__container.jsx-3803800924 .navbar__trigger--o.jsx-3803800924{--ui-icon-color:var(--dark-o);background-color:var(--dark-o);border:solid 1px var(--gray-70-o);-webkit-filter:blur(1px);filter:blur(1px);}",".navbar__container.jsx-3803800924 .navbar__trigger.jsx-3803800924:hover{-webkit-animation:fade-jsx-3803800924 1s forwards;animation:fade-jsx-3803800924 1s forwards;}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item.jsx-3803800924{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--gray-60);--ui-icon-color:$defaultColor;height:var(--s-element);padding:0 var(--s-9);}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--brand.jsx-3803800924{padding:0;}","@media (min-width:1260px){.navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--brand.jsx-3803800924{padding-left:var(--s-9);}}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--about.jsx-3803800924{margin-left:auto;}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--profile.jsx-3803800924,.navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--login.jsx-3803800924{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;justify-self:flex-end;}","@media (max-width:1100px){.navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--profile.jsx-3803800924,.navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--login.jsx-3803800924{position:inherit;}}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item.no-cart.jsx-3803800924{padding-right:0;}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item--cart.jsx-3803800924{cursor:pointer;height:var(--s-element);width:var(--s-element);padding:0 var(--s-9) 0 0;--ui-icon-width:100%;--ui-icon-height:var(--s-5);--ui-icon-color:var(--gray-50);}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item.jsx-3803800924:hover{color:var(--primary-o);--ui-icon-color:$hoverColor;}",".navbar__container.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924 .nav__nav-item__active.jsx-3803800924{--ui-icon-color:$focusColor;color:var(--primary-50);}",".navbar__container--hide.jsx-3803800924{width:auto;background-color:transparent;}",".navbar__container--hide.jsx-3803800924 .navbar__trigger.jsx-3803800924{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}",".navbar__container--hide.jsx-3803800924 .nav-bar__nav-items.jsx-3803800924{display:none;}",".navbar__container--hide.jsx-3803800924 .nav-bar__nav-items--hide.jsx-3803800924{border:solid 1px #F30;}"];n_.__hash="3803800924";var nv=n_,nE=r(6253),nT=r(80789),nA=r(11907),nS=function(){var e=(0,nA.aF)(),t=(0,l.useState)(),r=t[0],n=t[1],i=(0,m.useRouter)(),o=(0,nT.db)(),a=(0,nA.dN)(),s=function(){var e;return(null===(e=String(i.pathname))||void 0===e?void 0:e.length)&&i.pathname.split("/")[1]||!1}(),c=[e,r,n,o,a],u=function(e){null!=e&&e.href&&i.push(e.href,void 0,{shallow:!1})},d=(0,l.useCallback)(function(){if(e&&!r&&n(e),o){var t=o.find(function(e){if((null==e?void 0:e.href)===i.pathname)return!0;if(e.clearance&&e.clearance>=a||!e.clearance);else if(null!=e&&e.items)return e.items.some(function(e){return(null==e?void 0:e.href.split("?")[0])===i.pathname});return!1});if(t){var s,c="string"==typeof(null==t?void 0:t.href),u=(null==t?void 0:t.href)&&!i.asPath.includes(null==t?void 0:t.href)||"current-route",l=!!("boolean"==typeof c&&"boolean"==typeof u);"/verify"==i.pathname&&(null==i||null===(s=i.query)||void 0===s?void 0:s.vid)=="email"&&e&&i.push("/profile"),l&&i.push(String(t.href),void 0,{shallow:!0})}else if("/authentication/signout"!==i.asPath){var d=i.asPath;d.includes("/404?")?i.push("/"):i.push("/404?loc=".concat(d))}}},[].concat(c)),f=i.pathname;return(0,l.useEffect)(function(){d()},[d]),{selectedUser:r,pathname:f,explicitRouter:u,routeTitle:s}},nx=r(10577),nw=r(53618),nC=r(44983),nN=r(36946),nM=r(82889),nk=r(27812),nO=[".d-flex.jsx-1501197092,.navbar__mobile--actions.jsx-1501197092{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".navbar__mobile.jsx-1501197092{display:none;margin:0;width:100%;--ui-icon-color:var(--gray-40);position:relative;}","@media (max-width:1260px){.navbar__mobile.jsx-1501197092{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;}}",".navbar__mobile--actions.jsx-1501197092{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}",".navbar__mobile--content.jsx-1501197092{border-radius:var(--border-radius);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;gap:var(--s-9);height:-webkit-max-content;height:-moz-max-content;height:max-content;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}"];nO.__hash="1501197092";var nR=nO,nI=function(e){var t=e.routes,r=e.handleClick,n=e.onBack;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(u(),{id:nR.__hash,children:nR}),(0,_.jsxs)("div",{className:"jsx-".concat(nR.__hash)+" navbar__mobile",children:[n&&(0,_.jsx)("div",{className:"jsx-".concat(nR.__hash)+" navbar__mobile--actions",children:(0,_.jsx)("div",{className:"jsx-".concat(nR.__hash),children:(0,_.jsx)(nx.Z,{variant:"inherit",traits:{beforeIcon:"fa-chevron-left"},onClick:n,children:"back"})})}),(0,_.jsx)("div",{className:"jsx-".concat(nR.__hash)+" navbar__mobile--content",children:(0,nk.Z)(t).map(function(e,t){return null!=e&&e.hide?null:(0,_.jsx)("span",{className:"jsx-".concat(nR.__hash),children:(0,_.jsxs)(nx.Z,{onClick:function(){return r(e)},traits:{beforeIcon:null==e?void 0:e.icon},children:[e.label,(null==e?void 0:e.href)=="/cart"?"cart":""]})},t)})})]})]})},nP=r(42700),nD=function(e,t,r){var n=(0,l.useState)(!1),i=n[0],o=n[1],a=(0,nP.Z)();return(0,l.useEffect)(function(){(function(){e.current&&t.current&&(e.current.offsetWidth,t.current.offsetWidth,o(a.width90?" navbar__trigger--o":""),children:(0,_.jsx)(nE.a,{icon:f?"fa-xmark":"fa-bars",onClick:O})}),(0,_.jsx)("div",{ref:A,className:"jsx-".concat(nv.__hash)+" nav-bar__nav-items",children:m&&m.map(function(e,t){return(0,_.jsx)("div",{onDoubleClick:function(){return(null==e?void 0:e.href)&&k({href:e.href})},className:"jsx-".concat(nv.__hash)+" "+"nav__nav-item nav__nav-item--".concat(e.label?C(e)?"brand":e.label.toLowerCase():String(e.href).split("/")[1]).concat(v===e.label?" nav__nav-item__active":"").concat("profile"===e.label&&0===I&&" no-cart"||""),children:"/cart"!==e.href?null!=e&&e.items?(0,_.jsx)(nM.Z,{openDirection:(null==e?void 0:e.label)==="profile"&&"left"||void 0,overlay:{zIndex:997},traits:null!=e&&e.icon?{afterIcon:{icon:e.icon}}:void 0,openState:v&&v===e.label?"open":"closed",variant:"flat",value:"profile"===e.label?R:e.label,options:null==e?void 0:e.items,onSelect:k,onToggle:function(){return e.label&&M(e.label)}}):(0,_.jsx)(nx.Z,{traits:null!=e&&e.icon?C(e)?{beforeIcon:{icon:e.icon}}:{afterIcon:{icon:e.icon}}:void 0,variant:"flat",onClick:function(){return k(e)},children:e.label}):(0,_.jsx)(nE.a,{badge:I,onClick:function(){return k(e)},icon:null==e?void 0:e.icon})},t)})})]})})]})},nj=[".d-flex.jsx-1307626242,.header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242 .header-title.jsx-1307626242 .brand-logo.jsx-1307626242,.header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242 .header-title.jsx-1307626242{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".header__container.jsx-1307626242{z-index:999;width:100vw;position:relative;color:var(--gray-40-o);background-color:var(--gray-100);box-shadow:var(--box-shadow);color:var(--gray-30);left:0;right:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;background-color:var(--primary-o);top:0;}",".header__container.aire-hotel--index.jsx-1307626242{display:none;}",".header__container.deepturn--index.jsx-1307626242{opacity:0;-webkit-transition:all 0.2s;transition:all 0.2s;}",".header__container.deepturn--index.jsx-1307626242:hover{opacity:1;}","@media (max-width:1099px){.header__container.jsx-1307626242{-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;background-color:transparent;height:-webkit-max-content;height:-moz-max-content;height:max-content;width:var(--s-9-width);padding:var(--s-9);border-bottom:unset;box-shadow:unset;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}}",".header.jsx-1307626242{left:0;z-index:1;height:-webkit-max-content;height:-moz-max-content;height:max-content;background-color:inherit;color:inherit;}","@media (max-width:1099px){.header.jsx-1307626242{width:100%;padding:0;margin:0;}}","@-webkit-keyframes slideDown-jsx-1307626242{0%{-webkit-transform:translateY(-200px);-ms-transform:translateY(-200px);transform:translateY(-200px);cursor:pointer;}5%{height:-webkit-max-content;height:-moz-max-content;height:max-content;cursor:unset;}100%{height:-webkit-max-content;height:-moz-max-content;height:max-content;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}}","@keyframes slideDown-jsx-1307626242{0%{-webkit-transform:translateY(-200px);-ms-transform:translateY(-200px);transform:translateY(-200px);cursor:pointer;}5%{height:-webkit-max-content;height:-moz-max-content;height:max-content;cursor:unset;}100%{height:-webkit-max-content;height:-moz-max-content;height:max-content;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}}",".header.jsx-1307626242 .header-content.jsx-1307626242{margin:auto;height:5px;-webkit-transform:translateY(-200px);-ms-transform:translateY(-200px);transform:translateY(-200px);cursor:pointer;}",".header.jsx-1307626242 .header-content__show.jsx-1307626242{-webkit-animation:slideDown-jsx-1307626242 1s forwards;animation:slideDown-jsx-1307626242 1s forwards;}","@media (max-width:1099px){.header.jsx-1307626242 .header-content.jsx-1307626242{-webkit-animation:slideDown-jsx-1307626242 1s forwards;animation:slideDown-jsx-1307626242 1s forwards;}}","@media (min-width:1260px){.header.jsx-1307626242 .header-content.jsx-1307626242{max-width:calc(1260px - var(--s-9) * 2);inline-size:var(--s-9-width);}}","@media (max-width:1260px){.header.jsx-1307626242 .header-content.jsx-1307626242{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}",".header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242,.header.jsx-1307626242 .header-content.jsx-1307626242 .header-right.jsx-1307626242{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;height:-webkit-max-content;height:-moz-max-content;height:max-content;}",".header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242{-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;color:inherit;}","@media (max-height:500px){.header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242{-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--s-9);}}",".header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242 .header-title.jsx-1307626242{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;color:var(--gray-40-o);--ui-icon-color:var(--gray-40-o);--ui-icon-height:auto;--ui-icon-width:100%;font-weight:700;text-transform:capitalize;line-height:1;height:-webkit-max-content;height:-moz-max-content;height:max-content;}","@media (max-width:1099px){.header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242 .header-title.jsx-1307626242{white-space:nowrap;font-style:italic;overflow:hidden;min-height:-webkit-max-content;min-height:-moz-max-content;min-height:max-content;text-transform:uppercase;}.header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242 .header-title.jsx-1307626242:hover{color:var(--primary-50);--ui-icon-color:var(--primary-50);}}",".header.jsx-1307626242 .header-content.jsx-1307626242 .header-left.jsx-1307626242 .header-title.jsx-1307626242 .brand-logo.jsx-1307626242{height:inherit;}",".header.jsx-1307626242 .header-content.jsx-1307626242 .header-right.jsx-1307626242{-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;height:inherit;gap:10px;margin-top:auto;}",".header.jsx-1307626242 .subheader.jsx-1307626242{box-sizing:content-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border-top:var(--header-primary-border);width:100%;}","@media (max-width:1100px){.header.jsx-1307626242 .subheader.jsx-1307626242{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:auto;padding:20px 0;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}}",".header.jsx-1307626242 .subheader.jsx-1307626242 .subheader-content.jsx-1307626242{height:100%;width:calc(100% - 40px);background-color:var(--header-primary-bg);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:20px;max-width:1260px;}"];nj.__hash="1307626242";var nU=nj,nB=r(96486),nH=r(85102),nz=(0,l.createContext)([null,function(){}]),nV=b.Z.merchant.name,nG=function(e){var t=e.children,r=(0,m.useRouter)().pathname,n=(0,l.useState)(null),i=n[0],o=n[1],a=r.replaceAll("/",""),s=(null==a?void 0:a.length)&&a.replaceAll("/","")||"index";return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(u(),{id:nU.__hash,children:nU}),(0,_.jsxs)(nz.Provider,{value:[i,o],children:[(0,_.jsxs)("div",{id:"header-container",className:"jsx-".concat(nU.__hash)+" "+"header__container ".concat(nV,"--").concat(s),children:[(0,_.jsx)(nF,{}),(0,_.jsx)(nY,{})]}),t]})]})},nY=function(){var e,t=b.Z.merchant.name,r=(0,l.useContext)(nz),n=r[0],i=r[1],o=(0,l.useState)(null),a=o[0],s=o[1],c=(0,l.useState)(null),d=c[0],f=c[1],h=(0,m.useRouter)(),p=nS(),g=(p.selectedUser,p.pathname,p.explicitRouter,p.routeTitle),y=(0,l.useState)(!1),v=y[0],E=y[1],T=null===(e=(0,nP.Z)())||void 0===e?void 0:e.width,A=(0,l.useCallback)((0,nB.debounce)(function(){E(!v)},1e3),[E]),S=(0,l.useRef)(),x=function(){var e=null!==n?n:{title:(0,nL.Z)("".concat(t),{dashed:!1})};s(g&&{title:g}||e),f(h.asPath)},w=function(){if(null!=S&&S.current&&t&&!(T>1100)){var e=S.current.offsetWidth,r=(null==a?void 0:a.title)&&(null==a?void 0:a.title.length)+2||!1;if(r){var n=e/r,i=.2,o=Number((n*Number(1-i)).toFixed(2));o>50&&(o=50);var s="".concat(o,"px"),c=Number((n*i).toFixed(2)),u="".concat(c,"px"),l=null==S?void 0:S.current;l.style.fontSize=s,l.style.letterSpacing=u,l.style.gap="".concat(.88*c,"px");var d=l.children[0];d&&(d.style.minWidth=s)}}};return(0,l.useEffect)(function(){w()},[T]),(0,l.useEffect)(function(){x(),h.asPath!==d&&(i(null),f(h.asPath))},[]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(u(),{id:nU.__hash,children:nU}),(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)("div",{onClick:A,onMouseLeave:function(){return E(!1)},className:"jsx-".concat(nU.__hash)+" "+"header ".concat(t),children:[(0,_.jsxs)("div",{className:"jsx-".concat(nU.__hash)+" "+"header-content ".concat(v?" header-content__show":""),children:[(0,_.jsx)("div",{className:"jsx-".concat(nU.__hash)+" header-left",children:(0,_.jsx)(nH.Z,{title:null==a?void 0:a.title,subTitle:null==a?void 0:a.title})}),(null==a?void 0:a.right)&&(0,_.jsx)("div",{className:"jsx-".concat(nU.__hash)+" header-right",children:null==a?void 0:a.right})]}),(null==a?void 0:a.subheader)&&(0,_.jsx)("div",{className:"jsx-".concat(nU.__hash)+" subheader",children:(0,_.jsx)("div",{className:"jsx-".concat(nU.__hash)+" subheader-content",children:null==a?void 0:a.subheader})})]})})]})},nq=r(27834),nW=[".d-flex.jsx-4028658063,.modal__body.jsx-4028658063 .modal-overlay__confirm--header.jsx-4028658063,.modal__body.jsx-4028658063 .modal-overlay__confirm.jsx-4028658063 .header.jsx-4028658063,.modal__body.jsx-4028658063 .modal-overlay__confirm.jsx-4028658063,.modal__body.jsx-4028658063,.modal__header.jsx-4028658063,.modal__content.jsx-4028658063,.modal__overlay.jsx-4028658063{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".p-fix.jsx-4028658063,.modal__overlay.jsx-4028658063{position:fixed;width:100vw;height:100vh;top:0;left:0;}",".modal__overlay.jsx-4028658063{cursor:pointer;overflow:hidden;z-index:998;background:var(--gray-70-o);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);}",'.modal__overlay__dragging.jsx-4028658063{cursor:url("/icons/fa-hand-back-fist.svg"),auto;}',".modal.jsx-4028658063{position:fixed;z-index:1000;font-family:Game;top:200px;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow-x:hidden;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background-color:var(--gray-100);border:solid 1px var(--gray-80-o);outline:solid 1px var(--gray-70-o);box-shadow:2px 4px 15px 5px var(--dark);border-radius:var(--s-7);gap:var(--s-1);min-width:450px;max-width:var(--s-6-width);}","@media (max-height:900px){.modal.jsx-4028658063{top:var(--s-9);bottom:var(--s-9);}}","@media (max-width:900px){.modal.jsx-4028658063{min-width:unset;max-width:var(--s-9-width);width:var(--s-9-width);margin:0 auto;padding-bottom:var(--s-9);top:var(--s-9);bottom:var(--s-9);height:-webkit-max-content;height:-moz-max-content;height:max-content;}}",".modal__popup.jsx-4028658063{width:var(--s-4-width);}","@-webkit-keyframes popup-jsx-4028658063{0%{min-width:0px;}100%{min-width:450px;}}","@keyframes popup-jsx-4028658063{0%{min-width:0px;}100%{min-width:450px;}}",".modal__fullscreen.jsx-4028658063{top:0;border:none;border-radius:unset;height:-webkit-max-content;height:-moz-max-content;height:max-content;width:100%;padding:0;}",'.modal__dragging.jsx-4028658063{cursor:url("/icons/fa-hand-back-fist.svg"),auto;-webkit-filter:blur(3px);filter:blur(3px);}',".modal__content.jsx-4028658063{overflow:hidden;padding:var(--s-10) 0 var(--s-4);height:100%;margin:auto 0;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);color:var(--gray-30);height:-webkit-max-content;height:-moz-max-content;height:max-content;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-transition:all 1s;transition:all 1s;position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-5);}",".modal__content__popup.jsx-4028658063{margin:0;}","@media (max-width:1100px){.modal__content__popup.jsx-4028658063{height:100%;}}",".modal__content.jsx-4028658063:hover{-webkit-transition:all 1s;transition:all 1s;}",".modal__content.jsx-4028658063::-webkit-scrollbar-thumb{background-color:var(--blue-60);border-radius:5px;}",".modal__content.jsx-4028658063::-webkit-scrollbar{width:10px;aspect-ratio:1/1;background-color:rgba(0,0,0,0.2);}","@media (max-width:900px){.modal__content.jsx-4028658063{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;min-width:unset;}}",".modal__content__fullscreen.jsx-4028658063{width:100%;padding:0;margin:0;}",".modal__content__fullscreen.jsx-4028658063:hover{background-color:rgba(255,255,255,0);}",".modal__header.jsx-4028658063{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);padding:var(--s-8) var(--s-9) 0 var(--s-4);gap:var(--s-4);position:relative;cursor:default;}","@media (max-width:1100px){.modal__header.jsx-4028658063{position:relative;}}",".modal__header.jsx-4028658063:hover,.modal__header.jsx-4028658063:focus,.modal__header.jsx-4028658063:focus-within,.modal__header.jsx-4028658063:visited,.modal__header.jsx-4028658063:active{cursor:pointer;--ui-icon-color:var(--primary-50);}",".modal__header.jsx-4028658063 .modal-overlay__title.jsx-4028658063{font-size:var(--s-1);text-transform:capitalize;font-family:Play;-webkit-letter-spacing:var(--s-12);-moz-letter-spacing:var(--s-12);-ms-letter-spacing:var(--s-12);letter-spacing:var(--s-12);color:var(--primary-50);}","@media (max-width:900px){.modal__header.jsx-4028658063 .modal-overlay__title.jsx-4028658063{font-size:var(--s-4);}}",".modal__header__fullscreen.jsx-4028658063{position:absolute;top:0;left:0;right:0;z-index:2;margin:0;min-height:var(--s-element);border-radius:unset;border:unset;top:var(--s-9);}",".modal__header__fullscreen.jsx-4028658063:hover{background-color:var(--gray-100);}",".modal__body.jsx-4028658063{position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:var(--s-4);font-family:FreightSans;font-weight:500;height:auto;color:var(--gray-50);padding:var(--s-4);overflow-y:auto;overflow-x:hidden;max-height:80vh;}","@media (max-width:900px){.modal__body.jsx-4028658063{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:-webkit-max-content;height:-moz-max-content;height:max-content;padding:var(--s-9);}}",".modal__body__fullscreen.jsx-4028658063{z-index:1;margin-bottom:0;padding:0;width:100%;}",".modal__body__popup.jsx-4028658063{border-radius:var(--border-radius);height:-webkit-max-content;height:-moz-max-content;height:max-content;overflow-y:auto;overflow-x:hidden;}",".modal__body.jsx-4028658063 .modal-overlay__confirm.jsx-4028658063{font-family:Play;gap:var(--s-6);border-radius:var(--border-radius);overflow:hidden;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;}",".modal__body.jsx-4028658063 .modal-overlay__confirm--header.jsx-4028658063,.modal__body.jsx-4028658063 .modal-overlay__confirm.jsx-4028658063 .header.jsx-4028658063{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;margin:auto 0 var(--s-4);width:100%;color:var(--gray-60);font-size:var(--s-7);}",".modal__body.jsx-4028658063 .modal-overlay__confirm--header.jsx-4028658063 .header--title.jsx-4028658063,.modal__body.jsx-4028658063 .modal-overlay__confirm.jsx-4028658063 .header.jsx-4028658063 .header--title.jsx-4028658063{font-size:var(--s-6);color:var(--gray-50);font-weight:bold;}",".modal__body.jsx-4028658063 .modal-overlay__confirm-col.jsx-4028658063{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".modal__body.jsx-4028658063 .modal-overlay__confirm-btn.jsx-4028658063{width:100%;}"];nW.__hash="4028658063";var nZ=nW,nK=function(){var e=(0,l.useRef)(null),t=(0,l.useContext)(nN.tC),r=t.isModalOpen,n=t.closeModal,i=t.modalContent;if(t.replaceModal,!r||!i)return null;var o=i.confirm,a=i.title,s=i.children,c=i.footer,d=i.variant,f=i.dismissable,h=void 0===f||f,p=function(e){null==e||e.onClick(),n()},m=function(e){return e||d?e&&d?"".concat(e," ").concat(e,"__").concat(d):e:""};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(u(),{id:nZ.__hash,children:nZ}),(0,_.jsx)("div",{onClick:n,className:"jsx-".concat(nZ.__hash)+" "+(m("modal__overlay")||"")}),(!!s||!!o)&&(0,_.jsxs)("div",{ref:e,className:"jsx-".concat(nZ.__hash)+" "+(m("modal")||""),children:[(0,_.jsxs)("div",{className:"jsx-".concat(nZ.__hash)+" "+(m("modal__header")||""),children:[(0,_.jsx)("div",{className:"jsx-".concat(nZ.__hash)+" modal-overlay__title",children:a}),h&&(0,_.jsx)("div",{onClick:n,className:"jsx-".concat(nZ.__hash)+" close-btn",children:(0,_.jsx)(nE.a,{icon:"fa-xmark"})})]}),(0,_.jsxs)("div",{className:"jsx-".concat(nZ.__hash)+" "+(m("modal__body")||""),children:[s,o&&(0,_.jsxs)("div",{className:"jsx-".concat(nZ.__hash)+" modal-overlay__confirm--header header",children:[(null==o?void 0:o.title)&&(0,_.jsx)("div",{className:"jsx-".concat(nZ.__hash)+" header--title",children:o.title}),(null==o?void 0:o.body)&&(0,_.jsx)("div",{className:"jsx-".concat(nZ.__hash)+" header--body",children:o.body})]}),o&&(0,_.jsx)("div",{className:"jsx-".concat(nZ.__hash)+" "+"modal-overlay__confirm ".concat(o.statements.length>2?"modal-overlay__confirm-col":""),children:o.statements.map(function(e,t){return(0,_.jsx)(nx.Z,{onClick:function(){return p(e)},variant:"yes"===e.label?"primary":null==e?void 0:e.variant,children:e.label},t)})})]}),c&&(0,_.jsx)("div",{className:"jsx-".concat(nZ.__hash)+" modal__footer",children:c})]})]})},nX=r(31831);function nQ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nJ(e){for(var t=1;t9,i=function(e){e&&n?w.push("/admin"):w.push("/profile"),k()};return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o(),{id:u.__hash,children:u}),(0,E.jsxs)("div",{className:"jsx-".concat(u.__hash)+" authentication__welcome-modal",children:[(0,E.jsxs)("h3",{className:"jsx-".concat(u.__hash),children:["Welcome, ",t.name]}),n&&(0,E.jsx)(p.Z,{onClick:i,children:"admin"}),(0,E.jsx)(p.Z,{onClick:i,children:"account"}),(0,E.jsx)(p.Z,{onClick:r,children:"Close"})]})]})};M({title:"User Details",children:(0,E.jsx)(t,{user:e,onClose:k})})}};return(0,a.useEffect)(function(){C&&C.verify&&"verify"!==m&&T("verify"),void 0!=r&&T("sign-in")},[D,$]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o(),{id:u.__hash,children:u}),(0,E.jsxs)("div",{className:"jsx-".concat(u.__hash)+" "+"authentication ".concat("sign-in"==m?" authentication__sign-in":""),children:[(0,E.jsxs)("div",{className:"jsx-".concat(u.__hash)+" authentication__view-header",children:[(0,E.jsx)("div",{className:"jsx-".concat(u.__hash)+" authentication__logo",children:(0,E.jsx)(l.a,{icon:"".concat(g.Z.merchant.name,"-logo")})}),(0,E.jsx)("div",{className:"jsx-".concat(u.__hash)+" authentication__view-name",children:(0,f.Z)(m)})]}),m.includes("@")&&(0,E.jsxs)("div",{className:"jsx-".concat(u.__hash)+" authentication__email-verify",children:["An email has been sent to",(0,E.jsx)(b(),{onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)},style:S?{color:"var(--primary"}:void 0,href:"mailto://".concat(m),children:" "+m+", "})," click the link in the email to continue."]}),"sign-in"==m&&(0,E.jsx)(s.Z,{email:r,onSuccess:$}),"sign-up"==m&&(0,E.jsx)(d.Z,{onSuccess:D}),(0,E.jsxs)("div",{className:"jsx-".concat(u.__hash)+" authentication__view-action",children:[(0,E.jsx)("div",{className:"jsx-".concat(u.__hash)+" authentication__view-label--strike"}),(0,E.jsxs)("div",{className:"jsx-".concat(u.__hash)+" authentication__view-label",children:["sign-in"==m&&"no account?","sign-up"==m&&"already have an account?"]}),(0,E.jsxs)(p.Z,{onClick:P,variant:"link",children:["sign-in"==m&&"Sign Up","sign-up"==m&&"Login"]})]})]})]})}},10394:function(e,t,r){"use strict";r.d(t,{ko:function(){return s},fk:function(){return a}});var n=r(92777),i=r(82262),o=r(59499),a=new(function(){function e(t){(0,n.Z)(this,e),(0,o.Z)(this,"serviceTypes",{}),(0,o.Z)(this,"serviceInstances",{}),this.config=t}return(0,i.Z)(e,[{key:"registerService",value:function(e,t){this.serviceTypes[e]=t}},{key:"registerInstance",value:function(e,t){this.serviceInstances[e]=t}},{key:"getService",value:function(e){if(null!=this.serviceInstances[e])return this.serviceInstances[e];var t=this.serviceTypes[e];if(null==t)throw Error("Type Not Registered: "+e);var r=new t;return this.serviceInstances[e]=r,r}}]),e}())({});function s(e){return a.getService(e)}},35486:function(e,t,r){"use strict";r.d(t,{r0:function(){return f},ZP:function(){return h}});var n=r(16835),i=r(21378),o=r.n(i),a=["@-webkit-keyframes fade-out-jsx-2496126089{0%,70%{opacity:1;}100%{opacity:0;}}","@keyframes fade-out-jsx-2496126089{0%,70%{opacity:1;}100%{opacity:0;}}","@-webkit-keyframes grow-right-jsx-2496126089{0%{width:0;}100%{width:100%;}}","@keyframes grow-right-jsx-2496126089{0%{width:0;}100%{width:100%;}}",".adapt-table-cell__center.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".adapt-table-cell__member-initials.jsx-2496126089{background-color:var(--gray-60);text-transform:uppercase;-webkit-letter-spacing:0;-moz-letter-spacing:0;-ms-letter-spacing:0;letter-spacing:0;font-style:italic;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:50%;aspect-ratio:1;padding:var(--s-10);}","@media (max-width:900px){.adapt-table-cell__member-initials.jsx-2496126089{display:none;}}",".adaptable-cell__invalid-cell.jsx-2496126089{height:inherit;line-height:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:inherit;font-weight:200;color:var(--gray-50);padding:4px 6px;border-radius:4px;font-style:italic;}",".adapt-table-cell__id.jsx-2496126089{overflow:hidden;width:inherit;text-overflow:ellipsis;}",".cell-flex.jsx-2496126089,.adaptable-cell__product.jsx-2496126089,.adaptable-cell__member.jsx-2496126089,.adaptable-cell__date.jsx-2496126089,.adaptable-cell__copy-id.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;gap:5px;}",".adaptable-cell__icon-label.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-transform:capitalize;width:-webkit-max-content;width:-moz-max-content;width:max-content;gap:12px;}",".adaptable-cell__icon-label.jsx-2496126089 .icon-label--label.jsx-2496126089{white-space:nowrap;}",".adaptable-cell__date.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;line-height:1;}",".adaptable-cell__date.jsx-2496126089>div.jsx-2496126089{white-space:nowrap;}",".adaptable-cell__member-container.jsx-2496126089{line-height:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;--ui-icon-height:24px;--ui-icon-width:24px;--ui-icon-color:white;gap:12px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}","@media (max-width:450px){.adaptable-cell__member-container.jsx-2496126089{gap:unset;height:-webkit-max-content;height:-moz-max-content;height:max-content;}}",".adaptable-cell__member-container.jsx-2496126089 .adaptable-cell__member.jsx-2496126089{overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}","@media (max-width:900px){.adaptable-cell__member-container.jsx-2496126089 .adaptable-cell__member.jsx-2496126089{-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;}}","@media (max-width:450px){.adaptable-cell__member-container.jsx-2496126089 .adaptable-cell__member.jsx-2496126089{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}}",".adaptable-cell__member-container.jsx-2496126089 .adaptable-cell__member.jsx-2496126089 .adaptable-cell__member-title.jsx-2496126089{white-space:nowrap;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:5px;line-height:1;}",".adaptable-cell__member-container.jsx-2496126089 .adaptable-cell__member.jsx-2496126089 .adaptable-cell__member-title.jsx-2496126089 .adaptable-cell__member-id.jsx-2496126089{color:var(--gray-50);}",".adaptable-cell__product.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".adaptable-cell__product.jsx-2496126089 .adaptable-cell__product-description.jsx-2496126089{line-height:1;white-space:nowrap;}",".adaptable-cell__product.jsx-2496126089 .adaptable-cell__product-icon.jsx-2496126089{--ui-icon-size:16px;}",".adaptable-cell__currency-crypto.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:4px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;--ui-icon-width:16px;--ui-icon-height:16px;line-height:16px;}",".adaptable-cell__currency-crypto.jsx-2496126089 .status.jsx-2496126089{margin-left:auto;}",".wallet-common.jsx-2496126089,.adaptable-cell__etherscan-link.jsx-2496126089,.adaptable-cell__copy.jsx-2496126089,.adaptable-cell__wallet-address.jsx-2496126089{gap:6px;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;--ui-icon-color:var(--gray-40);--ui-icon-width:16px;--ui-icon-height:16px;overflow:visible;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content;}",".d-flex.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".adapt-table-cell__address.jsx-2496126089{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;}",".adapt-table-cell__address--line1.jsx-2496126089,.adapt-table-cell__address--line2.jsx-2496126089,.adapt-table-cell__address--city.jsx-2496126089,.adapt-table-cell__address--state.jsx-2496126089,.adapt-table-cell__address--postal_code.jsx-2496126089,.adapt-table-cell__address--country.jsx-2496126089{font-size:inherit;padding:0 2px;line-height:1.2;color:inherit;overflow:hidden;font-size:inherit;text-overflow:ellipsis;}",".adapt-table-cell__address--line1.jsx-2496126089{font-weight:900;}",'.adapt-table-cell__address--city.jsx-2496126089::after{content:", ";}','.adapt-table-cell__address--state.jsx-2496126089::after{content:", ";}',".adaptable-cell__wallet-address.jsx-2496126089{position:relative;width:inherit;}",".adaptable-cell__wallet-address.jsx-2496126089 .adaptable-cell__wallet-condensed.jsx-2496126089:hover .adaptable-cell__wallet-preview.jsx-2496126089{display:block;}",".adaptable-cell__copy.jsx-2496126089{aspect-ratio:1/1;height:16px;border-radius:3px;padding:6px;position:relative;z-index:1;}",".adaptable-cell__copy.jsx-2496126089:not(.adaptable-cell__copied):hover{--ui-icon-color:white;background-color:var(--gray-50);}",'.adaptable-cell__copy.jsx-2496126089:not(.adaptable-cell__copied):hover::before{-webkit-animation:fade-out-jsx-2496126089 3s forwards;animation:fade-out-jsx-2496126089 3s forwards;font-size:12px;position:absolute;left:auto;right:0;bottom:calc(100% + 4px);top:auto;padding:5px 12px;content:"copy";background-color:var(--gray-30);color:var(--gray-70);border-radius:4px;width:-webkit-max-content;width:-moz-max-content;width:max-content;}',".adaptable-cell__copy.jsx-2496126089:active.jsx-2496126089::before{display:none;}",'.adaptable-cell__copy.adaptable-cell__copied.jsx-2496126089::after{font-size:12px;position:absolute;left:auto;right:0;top:calc(100% + 4px);bottom:auto;padding:5px 12px;content:"copied!";background-color:var(--gray-30);color:var(--gray-70);border-radius:4px;width:-webkit-max-content;width:-moz-max-content;width:max-content;}',".adaptable-cell__etherscan-link.jsx-2496126089{position:relative;aspect-ratio:1/1;border-radius:3px;padding:6px 2px;z-index:1;}",'.adaptable-cell__etherscan-link.jsx-2496126089:hover.jsx-2496126089::after{font-size:12px;position:absolute;left:calc(100% + 10px);top:0;padding:5px 12px;content:"view transaction details";background-color:var(--gray-30);color:var(--gray-70);border-radius:4px;width:-webkit-max-content;width:-moz-max-content;width:max-content;}',"@media (max-width:900px){.adaptable-cell__etherscan-link.jsx-2496126089:hover.jsx-2496126089::after{left:auto;right:0;bottom:100%;top:auto;}}"];a.__hash="2496126089";var s=a,c=r(67294),u=r(6253),l=r(47265),d=r(85893),f=function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o(),{id:s.__hash,children:s}),(0,d.jsx)("span",{className:"jsx-".concat(s.__hash)+" adaptable-cell__invalid-cell",children:"n/a"})]})},h=function(e){var t=e.cell,r=e.data,i=(0,c.useState)(!1),a=i[0],h=i[1],p=(0,c.useState)(),m=p[0],b=p[1],g=(0,c.useState)(!1);g[0],g[1],(0,c.useEffect)(function(){(function(){void 0!=t&&void 0!=r&&(["wallet-address","id","copy-id","currency-crypto","icon-label"].includes(t)&&r?h(!0):"check"==t&&void 0!=r?h(!0):"member"===t&&r.email&&r.name&&r.id?h(!0):"address"===t&&r?(h(!0),"object"==typeof r&&(null==r?void 0:r.line1)&&b({line1:null==r?void 0:r.line1,line2:null==r?void 0:r.line2,city:null==r?void 0:r.city,state:null==r?void 0:r.state,postal_code:null==r?void 0:r.postal_code,country:null==r?void 0:r.country})):"date"===t&&r?(b((0,l.vc)(r,{time:!0,isTimestamp:!0,returnType:"object"})),h(!0)):"product"===t&&(b({description:null==r?void 0:r.description,icon:null==r?void 0:r.description}),h(!0)))})()},[t,r]);var y=function(e){var t,r,n=e.split(" ");return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o(),{id:s.__hash,children:s}),(0,d.jsx)("div",{className:"jsx-".concat(s.__hash)+" adapt-table-cell__member-initials",children:(0,d.jsxs)("div",{className:"jsx-".concat(s.__hash),children:[null===(t=n[0])||void 0===t?void 0:t.charAt(0),null===(r=n[1])||void 0===r?void 0:r.charAt(0)]})})]})};return a?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o(),{id:s.__hash,children:s}),"member"===t&&(0,d.jsxs)("div",{className:"jsx-".concat(s.__hash)+" adaptable-cell__member-container",children:[(0,d.jsx)("div",{className:"jsx-".concat(s.__hash),children:y(r.name)}),(0,d.jsxs)("div",{className:"jsx-".concat(s.__hash)+" adaptable-cell__member",children:[(0,d.jsxs)("div",{className:"jsx-".concat(s.__hash)+" adaptable-cell__member-title",children:[r.name,(0,d.jsxs)("span",{className:"jsx-".concat(s.__hash)+" adaptable-cell__member-id",children:["(",r.id,")"]})]}),r.email]})]}),"date"==t&&m,"id"==t&&(0,d.jsx)("div",{className:"jsx-".concat(s.__hash)+" adapt-table-cell__id",children:r}),"address"==t&&(0,d.jsxs)("div",{className:"jsx-".concat(s.__hash)+" adapt-table-cell__address",children:["string"==typeof m&&m,"object"==typeof m&&Object.entries(m).map(function(e,t){var r=(0,n.Z)(e,2),i=r[0],o=r[1];return(0,d.jsx)("div",{className:"jsx-".concat(s.__hash)+" "+"adapt-table-cell__address--".concat(i),children:o},t)})]}),"check"==t&&(0,d.jsx)("div",{className:"jsx-".concat(s.__hash)+" adapt-table-cell__center",children:(0,d.jsx)(u.a,{color:r?"#090":"#ff990050",icon:r?"fas-circle-check":"fa-xmark"})})]}):(0,d.jsx)(f,{})}},85854:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(21378),i=r.n(n),o=r(67294),a=[".adaptgrid.jsx-1823175346{display:grid;grid-column-gap:0px;grid-row-gap:0px;grid-template-rows:auto;width:100%;}",".adaptgrid.scroll-x.jsx-1823175346{overflow-x:auto;}",".adaptgrid.scroll-x.jsx-1823175346::-webkit-scrollbar{display:none;}",".adaptgrid.scroll-y.jsx-1823175346{overflow-y:auto;}",".adaptgrid.scrollable.jsx-1823175346{overflow:auto;}",".adaptgrid.center.jsx-1823175346{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}","@media (max-width:900px){.adaptgrid.adaptgrid_dynamic-grid.jsx-1823175346{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}",".adaptgrid.jsx-1823175346 .adaptgrid__grid-item.jsx-1823175346{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:100vw;}",".adaptgrid.jsx-1823175346 .adaptgrid__grid-item.adaptgrid_card.jsx-1823175346,.adaptgrid.jsx-1823175346 .adaptgrid__grid-item.adaptgrid_card-border.jsx-1823175346{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--gray-90);border-radius:var(--border-radius);box-shadow:var(--box-shadow-xl);-webkit-transition:all 0.3s ease-out;transition:all 0.3s ease-out;}",".adaptgrid.jsx-1823175346 .adaptgrid__grid-item.adaptgrid_card.jsx-1823175346:hover,.adaptgrid.jsx-1823175346 .adaptgrid__grid-item.adaptgrid_card-border.jsx-1823175346:hover{background-color:var(--gray-80);}",".adaptgrid.jsx-1823175346 .adaptgrid__grid-item.adaptgrid_card-border.jsx-1823175346{outline:solid 1px var(--gray-80);border:solid 1px var(--gray-60);}"];a.__hash="1823175346";var s=a,c=r(42700),u=r(85893);function l(e){var t=e.focus,r=e.xs,n=e.sm,a=e.md,l=e.lg,d=e.xl,f=e.children,h=e.variant,p=e.gap,m=e.gapX,b=e.gapY,g=e.margin,y=e.padding,_=(e.responsive,e.scroll),v=e.reverse,E=e.align,T=e.backgroundColor,A=(0,c.Z)().width,S=(0,o.useRef)(null);function x(e,t){return t.filter(function(e){return void 0!==e.value}).reduce(function(t,r){var n=Math.abs(t.breakpoint-e);return Math.abs(r.breakpoint-e)2?" notification__confirm-col":""),children:p.confirm.statements.map(function(e,t){return(0,h.jsx)("div",{className:"jsx-".concat(u.__hash)+" notification__confirm-btn",children:(0,h.jsx)(f.Z,{onClick:function(){return C(e)},variant:"yes"===e.text?"primary":null==e?void 0:e.variant,children:e.text||e.label})},t)})}),x&&(0,h.jsxs)("div",{className:"jsx-".concat(u.__hash)+" notification__api-errors",children:[(0,h.jsx)("div",{className:"jsx-".concat(u.__hash)+" error-message",children:null==x?void 0:x.message}),(0,h.jsx)("div",{className:"jsx-".concat(u.__hash)+" error-detail",children:(null==x?void 0:x.detail)&&Object.entries(x.detail).map(function(e){var t=(0,n.Z)(e,2),r=t[0],i=t[1];return(0,h.jsx)("div",{className:"jsx-".concat(u.__hash),children:i},r)})})]}),S&&(0,h.jsx)("div",{className:"jsx-".concat(u.__hash)+" notification__list",children:Object.entries(S).map(function(e,t){var r=(0,n.Z)(e,2),i=(r[0],r[1]);return(0,h.jsxs)("a",{href:i.href,onClick:i.onClick,className:"jsx-".concat(u.__hash)+" notification__list-item",children:[(0,h.jsxs)("div",{className:"jsx-".concat(u.__hash)+" notification__list-item__label",children:[(0,h.jsx)(d.Z,{text:i.label||(null==i?void 0:i.name)}),JSON.stringify(null==i?void 0:i.onClick)]}),(0,h.jsx)("div",{className:"jsx-".concat(u.__hash),children:(0,h.jsx)(d.Z,{text:i.message})})]},t)})})]})})]}):(0,h.jsx)(h.Fragment,{})}},80360:function(e,t,r){"use strict";r.d(t,{N3:function(){return f},Ir:function(){return d}});var n=r(21378),i=r.n(n),o=r(67294),a=[".overlay.jsx-2740910235{position:fixed;top:0;left:0;bottom:0;right:0;width:100vw;height:100%;border-radius:16px;z-index:2;cursor:pointer;background-color:transparent;}",".overlay.jsx-2740910235:not(.overlay-transparent){background:rgba(0,0,0,0.2);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);box-shadow:0 4px 30px rgba(0,0,0,0.062745098);}"];a.__hash="2740910235";var s=a,c=r(85893),u="no-scroll",l=(0,o.createContext)([{active:!1},function(){}]),d=function(){return(0,o.useContext)(l)},f=function(e){var t=e.children,r=(0,o.useState)({active:!1});return(0,c.jsxs)(l.Provider,{value:r,children:[(0,c.jsx)(h,{}),t]})},h=function(){var e=(0,o.useContext)(l),t=e[0];e[1];var r=(0,o.useState)(null),n=r[0],a=r[1],d=(0,o.useCallback)(function(){var e=document.getElementById("app-body");null!=t&&t.noScroll&&(null!=e&&e.classList.contains(u)?null==e||e.classList.remove(u):null==e||e.classList.add(u))},[t]);return((0,o.useEffect)(function(){a(t),d()},[t,d]),null!=n&&n.active)?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(i(),{id:s.__hash,children:s}),(0,c.jsx)("div",{id:"app-overlay",style:null!=n&&n.zIndex?{zIndex:"".concat(null==n?void 0:n.zIndex)}:{},onClick:null==t?void 0:t.onClick,className:"jsx-".concat(s.__hash)+" "+"overlay ".concat(null!=t&&t.transparent?" overlay-transparent":"")}),null==t?void 0:t.children]}):(0,c.jsx)(c.Fragment,{})}},10577:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(21378),i=r.n(n),o=r(67294),a=["@-webkit-keyframes abled-jsx-3417743627{0%{cursor:default;position:relative;color:transparent;text-shadow:0 0 2px var(--gray-60);}100%{color:inherit;text-shadow:none;}}","@keyframes abled-jsx-3417743627{0%{cursor:default;position:relative;color:transparent;text-shadow:0 0 2px var(--gray-60);}100%{color:inherit;text-shadow:none;}}","@-webkit-keyframes disable-jsx-3417743627{0%{color:inherit;text-shadow:none;}100%{cursor:default;position:relative;color:transparent;text-shadow:0 0 2px var(--gray-60);}}","@keyframes disable-jsx-3417743627{0%{color:inherit;text-shadow:none;}100%{cursor:default;position:relative;color:transparent;text-shadow:0 0 2px var(--gray-60);}}","button.jsx-3417743627{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:inherit;-webkit-box-align:inherit;-ms-flex-align:inherit;align-items:inherit;-webkit-box-pack:inherit;-webkit-justify-content:inherit;-ms-flex-pack:inherit;justify-content:inherit;color:inherit;background-color:transparent;outline:none;border:none;height:inherit;line-height:inherit;width:inherit;overflow:inherit;gap:inherit;text-transform:inherit;font-size:inherit;-webkit-animation:inherit;animation:inherit;font-weight:inherit;font-family:inherit;text-align:inherit;text-shadow:inherit;padding-block:0;padding-inline:0;cursor:inherit;padding:0;}","button.flat.jsx-3417743627{margin:0;}","button.fit-text.jsx-3417743627{padding:var(--s-9) 0;}","button.lite.jsx-3417743627{-webkit-text-decoration:none;text-decoration:none;}","button.link.jsx-3417743627,button.lowercase.jsx-3417743627{text-transform:none;width:-webkit-max-content;width:-moz-max-content;width:max-content;}","button.link.jsx-3417743627,button.flat.jsx-3417743627{padding:0;}","button.miniactive.jsx-3417743627,button.mini.jsx-3417743627{padding-right:var(--s-7);}","button.jsx-3417743627 .busy-spinner.jsx-3417743627{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:var(--input-border-radius);--ui-icon-color:var(--white);}","button.icon.jsx-3417743627,button.disabled-icon.jsx-3417743627{padding:0 7px;}","@media (max-width:1100px){button.nav-item.jsx-3417743627{text-indent:7px;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}}","button.jsx-3417743627:disabled{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:not-allowed !important;-webkit-animation:disable-jsx-3417743627 1s forwards;animation:disable-jsx-3417743627 1s forwards;}","button.jsx-3417743627:not(disabled){-webkit-animation:abled-jsx-3417743627 1s forwards;animation:abled-jsx-3417743627 1s forwards;}",".ui-button__link.jsx-3417743627{color:inherit;-webkit-text-decoration:none !important;text-decoration:none !important;border:solid 1px #f30 !important;}"];a.__hash="3417743627";var s=a,c=r(6253),u=r(12094),l=r(41664),d=r.n(l),f=r(11163),h=r(85893),p=function(e){var t=e.href,r=e.target,n=e.children,o=e.rel,a=e.formControl,c=void 0===a||a;return t?c?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(i(),{id:s.__hash,children:s}),(0,h.jsx)(u.Z,{variant:"inherit",children:(0,h.jsx)(d(),{className:"ui-button__link-provider",href:t,target:r,rel:o||"noopener noreferrer",children:n})})]}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(i(),{id:s.__hash,children:s}),(0,h.jsx)(d(),{href:t,target:r,rel:o||"noopener noreferrer",style:{width:"100%"},children:n})]}):(0,h.jsx)(h.Fragment,{children:"NO HREF"})},m=function(e){var t=e.context,r=t.traits?t.traits:{};r.disabled=t.disabled;var n=function(e){(null==t?void 0:t.onClick)&&(null==t||t.onClick(e))};null!=t&&t.disabled&&(t.variant="disabled");var a=(null==t?void 0:t.type)&&!["tel","email"].includes(t.type)&&t.type;return(0,o.useEffect)(function(){},[t]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(i(),{id:s.__hash,children:s}),(0,h.jsx)(u.Z,{label:t.label,size:t.size,variant:t.variant,traits:r,children:(0,h.jsxs)("button",{"data-element":"button",type:a||void 0,onClick:n,disabled:(null==t?void 0:t.disabled)||(null==t?void 0:t.variant)=="disabled",className:"jsx-".concat(s.__hash)+" "+((null!=t&&t.variant?null==t?void 0:t.variant:"")||""),children:[(null==t?void 0:t.busy)&&(0,h.jsx)("div",{className:"jsx-".concat(s.__hash)+" busy-spinner",children:(0,h.jsx)(c.a,{icon:"spinner"})}),!(null!=t&&t.busy)&&(null==t?void 0:t.children)]})})]})},b=function(e){var t=e.href,r=e.target,n=e.onClick,o=e.children,a=e.variant,c=e.disabled,u=e.busy,l=e.traits,d=e.label,b=e.type,g=e.size,y=(0,f.useRouter)();return(t&&"/"!==t&&y.asPath==t&&(c=!0),t)?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(i(),{id:s.__hash,children:s}),(0,h.jsx)(p,{href:t,target:r,formControl:!1,children:(0,h.jsx)(m,{context:{type:b,onClick:n,children:o,variant:a,size:g,disabled:c,busy:u,traits:l,label:d}})})]}):(0,h.jsx)(m,{context:{onClick:n,children:o,variant:a,size:g,disabled:c,busy:u,traits:l,label:d}})}},12094:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(16835),i=r(21378),o=r.n(i),a=[".inherit.jsx-3765746149,.form-control.form-control--inherit.jsx-3765746149{--ui-icon-color:inherit;--ui-icon-width:inherit;--ui-icon-height:inherit;-webkit-text-decoration:inherit;text-decoration:inherit;color:inherit;background-color:inherit;height:inherit;min-height:inherit;max-height:inherit;width:inherit;min-width:inherit;max-width:inherit;padding:inherit;margin:inherit;display:inherit;-webkit-box-pack:inherit;-webkit-justify-content:inherit;-ms-flex-pack:inherit;justify-content:inherit;-webkit-align-items:inherit;-webkit-box-align:inherit;-ms-flex-align:inherit;align-items:inherit;-webkit-flex-direction:inherit;-ms-flex-direction:inherit;flex-direction:inherit;gap:inherit;font-size:inherit;font-weight:inherit;font-family:inherit;border:inherit;outline:inherit;border-radius:inherit;box-shadow:inherit;aspect-ratio:inherit;position:inherit;}",".d-flex.jsx-3765746149,.form-control.jsx-3765746149 .form-control__header.jsx-3765746149,.form-control__badge.jsx-3765746149{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".form-control.jsx-3765746149{color:inherit;width:var(--s-border-width);position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;text-transform:capitalize;height:-webkit-max-content;height:-moz-max-content;height:max-content;-webkit-box-pack:space-around;-webkit-justify-content:space-around;-ms-flex-pack:space-around;justify-content:space-around;border:solid 1px transparent;}",".form-control.jsx-3765746149:hover.jsx-3765746149:not(.form-control.jsx-3765746149:focus-within) label.jsx-3765746149{color:var(--gray-50);}",".form-control.jsx-3765746149:focus-within label.jsx-3765746149{color:var(--gray-20) !important;}",".form-control__badge.jsx-3765746149{top:0;right:0;position:absolute;width:var(--s-5);height:var(--s-5);font-size:var(--s-7);color:var(--white);}","@-webkit-keyframes glow-jsx-3765746149{0%,100%{color:var(--primary-10);border:solid 1px var(--primary-o);}33%{border:solid 1px var(--primary-50);color:var(--gray-20);}}","@keyframes glow-jsx-3765746149{0%,100%{color:var(--primary-10);border:solid 1px var(--primary-o);}33%{border:solid 1px var(--primary-50);color:var(--gray-20);}}",".form-control--glow.jsx-3765746149{-webkit-animation:glow-jsx-3765746149 1.5s infinite ease-in;animation:glow-jsx-3765746149 1.5s infinite ease-in;height:calc(var(--s-element) - 2px);overflow:hidden !important;border-radius:var(--border-radius);width:calc(100% - 6px);margin:auto;}",".form-control.jsx-3765746149 .form-control__header.jsx-3765746149{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-height:var(--s-4);}",".form-control.jsx-3765746149 .form-control__header.jsx-3765746149 label.jsx-3765746149{text-indent:var(--s-10);text-transform:uppercase;color:var(--gray-50-o);line-height:2;font-weight:bold;font-size:var(--s-8);-webkit-letter-spacing:3px;-moz-letter-spacing:3px;-ms-letter-spacing:3px;letter-spacing:3px;}","@media (max-width:900px){.form-control.jsx-3765746149 .form-control__header.jsx-3765746149 label.jsx-3765746149{font-size:var(--s-9);}}",".form-control-sm.jsx-3765746149 .form-control__header.jsx-3765746149{min-height:unset;}",".form-control-sm.jsx-3765746149 .form-control__header.jsx-3765746149 label.jsx-3765746149{text-indent:var(--s-9);font-size:var(--s-9);}",".form-control--maxY.jsx-3765746149{height:100%;}",".form-control.form-control--invalid.jsx-3765746149 label.jsx-3765746149{color:var(--orange-50);}",".form-control--signature.jsx-3765746149{gap:var(--s-4);background-color:var(--gray-90);height:-webkit-max-content;height:-moz-max-content;height:max-content;}",".form-control--signature.jsx-3765746149:hover{background-color:var(--gray-90);}",".form-control--link.jsx-3765746149,.form-control--checkbox.jsx-3765746149{width:auto;}",".form-control--dark.jsx-3765746149 .form-control__header.jsx-3765746149 label.jsx-3765746149{color:var(--gray-100);}"];a.__hash="3765746149";var s=a,c=[".d-flex.jsx-2661134240,.form-control__element--signature.jsx-2661134240::before,.form-control__element--signature.jsx-2661134240,.form-control__element.jsx-2661134240{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}","@-webkit-keyframes bump-jsx-2661134240{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);background-color:var(--gray-70);}30%{-webkit-transform:rotate(5deg);-ms-transform:rotate(5deg);transform:rotate(5deg);background-color:var(--red-70);}70%{-webkit-transform:rotate(-2deg);-ms-transform:rotate(-2deg);transform:rotate(-2deg);background-color:var(--gray-70);}100%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);background-color:var(--red-70);}}","@keyframes bump-jsx-2661134240{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);background-color:var(--gray-70);}30%{-webkit-transform:rotate(5deg);-ms-transform:rotate(5deg);transform:rotate(5deg);background-color:var(--red-70);}70%{-webkit-transform:rotate(-2deg);-ms-transform:rotate(-2deg);transform:rotate(-2deg);background-color:var(--gray-70);}100%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);background-color:var(--red-70);}}","@-webkit-keyframes glowTxt-jsx-2661134240{0%{text-shadow:0 0 var(--s-9) var(--primary-50);}100%{text-shadow:0 0 var(--s-8) var(--primary-o);}}","@keyframes glowTxt-jsx-2661134240{0%{text-shadow:0 0 var(--s-9) var(--primary-50);}100%{text-shadow:0 0 var(--s-8) var(--primary-o);}}",".form-control__element.jsx-2661134240:not(.form-control__element--warning,.form-control__element--center,.form-control__element--glow,.form-control__element--checkbox,.form-control__element--primary,.form-control__element--inherit,.form-control__element--dark,.form-control__element--transparent,.form-control__element--lite,.form-control__element--flat,.form-control__element--secondary,.form-control__element--link,.form-control__element--select,.form-control__element--invalid,.form-control__element--input,.form-control__element--textarea,.form-control__element--signature){--ui-icon-color:var(--gray-40);background-color:var(--gray-70-o);}",".form-control__element.jsx-2661134240:focus-within.jsx-2661134240:not(.form-control__element--warning,.form-control__element--center,.form-control__element--glow,.form-control__element--checkbox,.form-control__element--primary,.form-control__element--inherit,.form-control__element--dark,.form-control__element--transparent,.form-control__element--lite,.form-control__element--flat,.form-control__element--secondary,.form-control__element--link,.form-control__element--select,.form-control__element--invalid,.form-control__element--input,.form-control__element--textarea,.form-control__element--signature){color:var(--gray-40);}",".form-control__element.jsx-2661134240:focus-within.jsx-2661134240:not(.form-control__element--warning,.form-control__element--center,.form-control__element--glow,.form-control__element--checkbox,.form-control__element--primary,.form-control__element--inherit,.form-control__element--dark,.form-control__element--transparent,.form-control__element--lite,.form-control__element--flat,.form-control__element--secondary,.form-control__element--link,.form-control__element--select,.form-control__element--invalid,.form-control__element--input,.form-control__element--textarea,.form-control__element--signature) .form-control__icon.jsx-2661134240{--ui-icon-color:var(--gray-40);}",".form-control__element.jsx-2661134240:hover.jsx-2661134240:not(.form-control__element--warning,.form-control__element--center,.form-control__element--glow,.form-control__element--checkbox,.form-control__element--primary,.form-control__element--inherit,.form-control__element--dark,.form-control__element--transparent,.form-control__element--lite,.form-control__element--flat,.form-control__element--secondary,.form-control__element--link,.form-control__element--select,.form-control__element--invalid,.form-control__element--input,.form-control__element--textarea,.form-control__element--signature){-webkit-transition:all 300ms;transition:all 300ms;--ui-icon-color:var(--gray-50);color:var(--gray-50);background-color:var(--gray-80);border:solid 1px var(--gray-60);}",".b-rad.jsx-2661134240,.form-control__element.jsx-2661134240:not(.form-control__element--signature,.form-control__element--checkbox,.form-control__element--round){border-style:solid;border-width:1px;border-color:transparent;outline:solid 1px transparent;border-radius:var(--border-radius);}",".form-control__element.jsx-2661134240{font-size:var(--font-size);--ui-icon-width:var(--font-size);--ui-icon-height:var(--font-size);position:relative;overflow:hidden;cursor:pointer;font-weight:300;line-height:1;height:calc(var(--s-element) - 2px);white-space:nowrap;width:auto;}",".form-control__element-xs.jsx-2661134240,.form-control__element-sm.jsx-2661134240,.form-control__element-md.jsx-2661134240,.form-control__element-lg.jsx-2661134240,.form-control__element-xl.jsx-2661134240,.form-control__element-xxl.jsx-2661134240{height:auto;width:-webkit-max-content !important;width:-moz-max-content !important;width:max-content !important;line-height:1.5;}",".form-control__element-xs.jsx-2661134240{font-size:var(--s-9);}",".form-control__element-sm.jsx-2661134240{font-size:var(--s-7);padding:0;}",".form-control__element--input.jsx-2661134240{color:inherit;}",".form-control__element--input.jsx-2661134240::-webkit-input-placeholder{color:inherit;}",".form-control__element--input.jsx-2661134240::-moz-placeholder{color:inherit;}",".form-control__element--input.jsx-2661134240:-ms-input-placeholder{color:inherit;}",".form-control__element--input.jsx-2661134240::placeholder{color:inherit;}",".form-control__element--input-sm.jsx-2661134240{font-size:var(--s-8);height:var(--s-4);padding:0 var(--s-9);}",".form-control__element-md.jsx-2661134240{font-size:var(--s-6);}",".form-control__element-lg.jsx-2661134240{font-size:var(--s-4);}",".form-control__element-xl.jsx-2661134240{font-size:var(--s-3);}",".form-control__element-xxl.jsx-2661134240{font-size:var(--s-2);}",".form-control__element.jsx-2661134240:not(.form-control__element--before-icon,.form-control__element--after-icon,.form-control__element--glow){padding:0 var(--s-9);}",".form-control__element--before-icon.form-control__element--link.jsx-2661134240{gap:var(--s-9);}",".form-control__element--after-icon--link.form-control__element--link.jsx-2661134240{gap:var(--s-9);}",".form-control__element--after-icon.jsx-2661134240:not(.form-control__element--flat,.form-control__element--center){padding-left:var(--s-9);}",".form-control__element--before-icon.jsx-2661134240:not(.form-control__element--flat,.form-control__element--center){padding-right:var(--s-9);}",".form-control__element--button.jsx-2661134240{color:inherit;border-style:solid;border-width:1px;border-color:unset;-webkit-filter:brightness(0.8);filter:brightness(0.8);}",".form-control__element--button.jsx-2661134240:hover,.form-control__element--button.jsx-2661134240:focus{-webkit-filter:brightness(1);filter:brightness(1);}",".form-control__element--button.form-control__element--flat.jsx-2661134240{width:inherit;gap:var(--s-12);}",".form-control__element--button.form-control__element--flat.jsx-2661134240:first-child{padding:0;}",".form-control__element--checkbox.jsx-2661134240{width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:0;height:var(--s-element);}",".form-control__element--input.jsx-2661134240,.form-control__element--textarea.jsx-2661134240{-webkit-text-fill-color:var(--gray-50);--ui-icon-color:var(--gray-50);background-color:var(--gray-60-o);border:solid 1px var(--gray-50-o) !important;box-shadow:inset 1px 1px 3px 2px var(--gray-80-o);}",'.form-control__element--input.jsx-2661134240:not(.form-control__element--input--signature,.form-control__element--textarea--signature),.form-control__element--textarea.jsx-2661134240:not(.form-control__element--input--signature,.form-control__element--textarea--signature){font-family:"Game",sans-serif;font-style:italic;}',".form-control__element--input.jsx-2661134240:focus-within.jsx-2661134240:not(.form-control__element--nav-item,.form-control__element--signature,.form-control__element--transparent),.form-control__element--textarea.jsx-2661134240:focus-within.jsx-2661134240:not(.form-control__element--nav-item,.form-control__element--signature,.form-control__element--transparent){border:solid 1px var(--gray-10) !important;--ui-icon-color:var(--gray-10);-webkit-text-fill-color:var(--gray-50);color:var(--gray-10);background-color:var(--gray-70);}",".form-control__element--input.jsx-2661134240:not(.form-control__element--input--signature,.form-control__element--input--dark,.form-control__element--input--disabled,.form-control__element--input--transparent,.form-control__element--textarea--signature,.form-control__element--textarea--dark,.form-control__element--textarea--disabled,.form-control__element--textarea--transparent):hover:not(.form-control__element--input:not(.form-control__element--input--signature,.form-control__element--input--dark,.form-control__element--input--disabled,.form-control__element--input--transparent,.form-control__element--textarea--signature,.form-control__element--textarea--dark,.form-control__element--textarea--disabled,.form-control__element--textarea--transparent):focus-within,.form-control__element--textarea:not(.form-control__element--input--signature,.form-control__element--input--dark,.form-control__element--input--disabled,.form-control__element--input--transparent,.form-control__element--textarea--signature,.form-control__element--textarea--dark,.form-control__element--textarea--disabled,.form-control__element--textarea--transparent):focus-within),.form-control__element--textarea.jsx-2661134240:not(.form-control__element--input--signature,.form-control__element--input--dark,.form-control__element--input--disabled,.form-control__element--input--transparent,.form-control__element--textarea--signature,.form-control__element--textarea--dark,.form-control__element--textarea--disabled,.form-control__element--textarea--transparent):hover:not(.form-control__element--input:not(.form-control__element--input--signature,.form-control__element--input--dark,.form-control__element--input--disabled,.form-control__element--input--transparent,.form-control__element--textarea--signature,.form-control__element--textarea--dark,.form-control__element--textarea--disabled,.form-control__element--textarea--transparent):focus-within,.form-control__element--textarea:not(.form-control__element--input--signature,.form-control__element--input--dark,.form-control__element--input--disabled,.form-control__element--input--transparent,.form-control__element--textarea--signature,.form-control__element--textarea--dark,.form-control__element--textarea--disabled,.form-control__element--textarea--transparent):focus-within){-webkit-text-fill-color:var(--gray-70);background-color:var(--gray-60);font-weight:500;color:var(--gray-70);--ui-icon-color:var(--gray-70);}",".form-control__element--input.jsx-2661134240:nth-child(2),.form-control__element--textarea.jsx-2661134240:nth-child(2){padding-left:var(--s-8);}",".form-control__element--textarea.jsx-2661134240{height:-webkit-max-content;height:-moz-max-content;height:max-content;max-width:inherit;padding-top:4px;min-height:var(--s-element);}",".form-control__element-disabled.jsx-2661134240:hover,.form-control__element--disabled.jsx-2661134240:hover{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:not-allowed;}",".form-control__element-sm.jsx-2661134240:not(.form-control__element--before-icon),.form-control__element-sm.jsx-2661134240:not(.form-control__element--before-icon){padding:0 var(--s-9);}",".form-control__element--flat--after-icon.jsx-2661134240{padding:0 var(--s-2);}",".form-control__element--flat--after-icon-sm.jsx-2661134240{padding:0 var(--s-10);}",".form-control__element--input-color.jsx-2661134240{padding:0;height:100%;background-color:transparent;}",".form-control__element--round.jsx-2661134240{border-radius:var(--s-1);}",".form-control__element--primary.jsx-2661134240{background-color:var(--primary-o);border:solid 1px var(--primary-o);color:var(--gray-30);--ui-icon-color:$c;}",".form-control__element--primary.jsx-2661134240:hover{background-color:var(--primary-o);border:solid 1px var(--primary-50);color:var(--primary-50);--ui-icon-color:$hC;}",".form-control__element--primary.jsx-2661134240:focus-within{background-color:var(--primary-50);border:solid 1px transparent;color:var(--white);--ui-icon-color:$fC;}",".form-control__element--secondary.jsx-2661134240{background-color:var(--secondary-o);color:var(--gray-20);}",".form-control__element--secondary.jsx-2661134240:hover{background-color:var(--secondary);color:var(--white);}",".form-control__element--warning.jsx-2661134240{background-color:var(--gray-80);border:solid 1px var(--red-30);color:var(--warning);--ui-icon-color:$c;}",".form-control__element--warning.jsx-2661134240:hover{background-color:var(--red-30);border:solid 1px var(--red-30);color:var(--gray-40);--ui-icon-color:$hC;}",".form-control__element--warning.jsx-2661134240:focus-within{background-color:var(--red-30);border:solid 1px transparent;color:var(--gray-10);--ui-icon-color:$fC;}",".form-control__element--signature.jsx-2661134240{background-color:inherit;border:solid 1px transparent;color:var(--gray-40);--ui-icon-color:$c;}",".form-control__element--signature.jsx-2661134240:hover{background-color:inherit;border:solid 1px transparent;color:var(--gray-50);--ui-icon-color:$hC;}",".form-control__element--signature.jsx-2661134240:focus-within{background-color:inherit;border:solid 1px transparent;color:var(--gray-30);--ui-icon-color:$fC;}",".form-control__element--center.jsx-2661134240{min-width:150px;padding:0;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}",".form-control__element--fit-text.jsx-2661134240{white-space:unset;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;height:auto;}",".form-control__element--signature.jsx-2661134240{position:relative;overflow:visible;}",".form-control__element--signature.jsx-2661134240:hover{border-color:transparent;}",'.form-control__element--signature.jsx-2661134240::before{position:absolute;content:"x";left:0;color:var(--gray-70);font-size:var(--s-5);bottom:calc(var(--s-9) * -1);background-color:inherit;z-index:1;width:var(--s-1);text-align:center;line-height:1;}','.form-control__element--signature.jsx-2661134240::after{position:absolute;content:"";bottom:0;border-top:solid 1px var(--gray-70);width:calc(100% - var(--s-4));}',".form-control__element--signature.jsx-2661134240:hover.jsx-2661134240::before{color:var(--gray-50);}",".form-control__element--signature.jsx-2661134240:hover.jsx-2661134240::after{border-top-color:var(--gray-50);}",".form-control__element--signature.jsx-2661134240:focus-within.jsx-2661134240:not(.form-control__element--signature.jsx-2661134240:hover)::before{color:var(--gray-30);}",".form-control__element--signature.jsx-2661134240:focus-within.jsx-2661134240:not(.form-control__element--signature.jsx-2661134240:hover)::after{border-top-color:var(--gray-30);}",".form-control__element--lite.jsx-2661134240{background-color:var(--gray-40);border:solid 1px var(--gray-10);color:var(--gray-70);--ui-icon-color:$c;}",".form-control__element--lite.jsx-2661134240:hover{background-color:var(--gray-30);border:solid 1px var(--secondary);color:var(--gray-70);--ui-icon-color:$hC;}",".form-control__element--lite.jsx-2661134240:focus-within{background-color:var(--gray-40);border:solid 1px var(--gray-50);color:var(--gray-50);--ui-icon-color:$fC;}",".form-control__element--dark.jsx-2661134240{background-color:var(--black);border:solid 1px var(--primary-50);color:var(--primary-50);--ui-icon-color:$c;}",".form-control__element--dark.jsx-2661134240:hover{background-color:var(--gray-80-o);border:solid 1px var(--primary-50);color:var(--primary-50);--ui-icon-color:$hC;}",".form-control__element--dark.jsx-2661134240:focus-within{background-color:var(--primary-o);border:solid 1px var(--gray-70);color:var(--gray-100);--ui-icon-color:$fC;}",".form-control__element--secondary.jsx-2661134240{background-color:var(--secondary-o);border:solid 1px var(--gray-20);color:var(--gray-20);--ui-icon-color:$c;}",".form-control__element--secondary.jsx-2661134240:hover{background-color:var(--secondary-o);border:solid 1px var(--gray-20);color:var(--gray-20);--ui-icon-color:$hC;}",".form-control__element--secondary.jsx-2661134240:focus-within{background-color:var(--secondary-o);border:solid 1px var(--gray-20);color:var(--gray-20);--ui-icon-color:$fC;}",".form-control__element--link.jsx-2661134240{background-color:transparent;border:solid 1px transparent;color:var(--blue-60);--ui-icon-color:$c;}",".form-control__element--link.jsx-2661134240:hover{background-color:transparent;border:solid 1px transparent;color:var(--blue-10);--ui-icon-color:$hC;}",".form-control__element--link.jsx-2661134240:focus-within{background-color:transparent;border:solid 1px transparent;color:var(--blue-10);--ui-icon-color:$fC;}",".form-control__element--glow.jsx-2661134240{color:inherit;overflow:hidden;position:absolute;left:0;width:100%;outline:none;border:none;height:100%;-webkit-backdrop-filter:blur(var(--s-12));backdrop-filter:blur(var(--s-12));}",".form-control__element--glow.jsx-2661134240:focus,.form-control__element--glow.jsx-2661134240:focus-within{background-color:var(--gray-80);}",".form-control__element--glow.jsx-2661134240:hover.jsx-2661134240:not(:focus,.jsx-2661134240:focus-within){-webkit-animation:none;animation:none;background-color:var(--primary-10);color:var(--gray-10);}",".form-control__element--link.jsx-2661134240{padding:0;width:-webkit-max-content;width:-moz-max-content;width:max-content;gap:var(--s-10);}",".form-control__element--link.jsx-2661134240:hover{-webkit-animation:glowTxt-jsx-2661134240 2s infinite;animation:glowTxt-jsx-2661134240 2s infinite;}",".form-control__element--bump.jsx-2661134240{-webkit-animation:bump-jsx-2661134240 0.3s;animation:bump-jsx-2661134240 0.3s;}",".form-control__element--pill.jsx-2661134240{border:solid 1px var(--gray-70);width:-webkit-max-content;width:-moz-max-content;width:max-content;}",".form-control__element--error.jsx-2661134240{position:relative;color:var(--red-70) !important;--ui-icon-color:var(--red-70) !important;}",".form-control__element--error.jsx-2661134240:not(.form-control__element--error--signature){border:solid 1px var(--red-70) !important;}",".form-control__element--error--signature.jsx-2661134240{border:solid 1px transparent !important;}",".form-control__element--error--signature.jsx-2661134240 .form-control__invalid.jsx-2661134240{color:var(--red-70) !important;}",".form-control__element--error.jsx-2661134240 .form-control__invalid.jsx-2661134240{position:absolute;font-family:Play;font-style:italic;-webkit-animation:bump-jsx-2661134240 0.4s ease-in;animation:bump-jsx-2661134240 0.4s ease-in;right:var(--s-2);font-size:var(--s-3);font-weight:bold;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--secondary-o);opacity:0.5;}",".form-control__element--select--flat.jsx-2661134240{background-color:var(--gray-70-o);color:inherit;--ui-icon-color:var(--gray-70-o);border:solid 1px transparent;}",".form-control__element--select--flat.jsx-2661134240:hover,.form-control__element--select--flat.jsx-2661134240:focus-within{background-color:var(--gray-70);color:var(--gray-30);--ui-icon-color:var(--gray-70);border:solid 1px var(--gray-90);}",".form-control__element--select.jsx-2661134240:not(.form-control__element--flat){color:var(--gray-90);}",".form-control__element--select.jsx-2661134240:not(.form-control__element--flat,.form-control__element--lite){color:var(--gray-60);--ui-icon-color:var(--gray-60);background-color:var(--gray-90);}",".form-control__element--select.jsx-2661134240:not(.form-control__element--flat,.form-control__element--lite):hover{color:var(--gray-40);--ui-icon-color:var(--gray-40);}",".form-control__element--select.jsx-2661134240:not(.form-control__element--flat,.form-control__element--lite):focus-within{color:var(--white);--ui-icon-color:var(--white);background-color:var(--gray-70);}",".form-control__element--transparent.jsx-2661134240{background-color:var(--gray-100-o);background-color:transparent;color:var(--orange-50) !important;--ui-icon-color:var(--primary-50);}",".form-control__element--transparent.jsx-2661134240:hover.jsx-2661134240:not(.form-control__element--transparent.jsx-2661134240:focus-within){-webkit-text-fill-color:var(--gray-50);background-color:var(--gray-80-o);color:var(--gray-50);--ui-icon-color:var(--gray-50);}",".form-control__element--transparent.jsx-2661134240:focus-within{color:var(--gray-50);background-color:var(--gray-90-o);}"];c.__hash="2661134240";var u=c,l=[".d-flex.jsx-2996103592,.form-control-icon.jsx-2996103592{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".dark.jsx-2996103592{border-radius:calc(var(--border-radius) - var(--s-12));width:calc(var(--s-element) - var(--s-10));margin:4px 3px;height:calc(var(--s-element) - var(--s-10));aspect-ratio:unset;background-color:var(--dark-o);}",".dark.jsx-2996103592:hover{background-color:var(--primary-o);}",".form-control-icon.jsx-2996103592{--ui-icon-color:inherit;--ui-icon-size:var(--s-5);padding:0 var(--s-9) 0 var(--s-10);}",".form-control-icon-nav-item.jsx-2996103592{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;position:relative;padding:0;}","@media (max-width:1100px){.form-control-icon-nav-item.jsx-2996103592{position:relative;}}",".form-control-icon-flat.jsx-2996103592{width:var(--s-2);}",".form-control-icon-link.jsx-2996103592{width:var(--s-5);}","@media (max-width:1100px){.form-control-icon-link.jsx-2996103592{position:relative;}}",".form-control-icon-sm.jsx-2996103592{position:relative;--ui-icon-height:var(--s-7);--ui-icon-width:100%;}"];l.__hash="2996103592";var d=l,f=r(67294),h=r(80360),p=r(6253),m=r(59131),b=r(85893);function g(e,t,r,n){if(!e)return null;var i="string"==typeof e?e:e.icon,a="object"==typeof e?e.onClick:void 0,s="object"==typeof e?e.color:void 0,c="form-control-icon";return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o(),{id:d.__hash,children:d}),(0,b.jsx)("div",{className:"jsx-".concat(d.__hash)+" "+"".concat(c," ").concat(c,"__").concat(t," ").concat(n?" ".concat(c,"-").concat(n):""," ").concat(r?" ".concat(c,"-").concat(r):""),children:(0,b.jsx)(p.a,{icon:i,onClick:a,color:s})})]})}var y=function(e){var t=e.label,r=e.children,i=e.variant,a=e.overlay,c=e.size,l=e.setOverlay,d=e.traits,p=e.type,y=e.error,_=(0,f.useRef)(null),v=(0,h.Ir)(),E=(0,n.Z)(v,2),T=E[0],A=E[1];(0,f.useEffect)(function(){if(d){var e=_.current.querySelector(".form-control__element");if(e){Object.keys(d).forEach(function(t){t in e.style&&(e.style[t]=d[t])}),"string"==typeof d.outline&&(e.style.outline=d.outline),null!=d&&d.disabled&&e.classList.add("form-control__element--disabled"),null!=d&&d.responsive&&e.classList.add("form-control__element-responsive"),y&&e.classList.add("form-control__element--error");var t=Object.values(e.children).find(function(e){return e.getAttribute("data-element")&&["button","input","select","textarea"].includes(e.getAttribute("data-element"))});if(t){var r=t.getAttribute("data-element");_.current.classList.add("form-control--".concat(r)),e.classList.add("form-control__element--".concat(r).concat(p&&"color"==p?"-color":""))}}a?A({active:!0,transparent:!0,onClick:l||function(){return A({active:!1})}}):T.active&&A({active:!1})}},[a,d,i,l,A]);var S=function(e){var t=function(){return null!=d&&d.beforeIcon?" ".concat(e,"--before-icon"):null!=d&&d.afterIcon?" ".concat(e,"--after-icon"):""},r=function(){return i&&i.split(" ").reduce(function(t,r){var n="".concat(e,"--").concat(r);return t.includes(n)?t:"".concat(t," ").concat(n).trim()},e)},n=function(){return c?" ".concat(e,"-").concat(c):""},o=function(){return"color"!=p?"":"form-control"==e?" form-control--maxY":" ".concat(e,"-input-color")};return i?"".concat(r()).concat(t()).concat(n()).concat(o()):"".concat(e).concat(t()).concat(n()).concat(o())};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o(),{id:s.__hash,children:s}),(0,b.jsx)(o(),{id:u.__hash,children:u}),(0,b.jsxs)("div",{ref:_,className:"jsx-".concat(s.__hash," jsx-").concat(u.__hash)+" "+(S("form-control")||""),children:[t&&(0,b.jsx)("div",{className:"jsx-".concat(s.__hash," jsx-").concat(u.__hash)+" form-control__header",children:(0,b.jsx)("label",{className:"jsx-".concat(s.__hash," jsx-").concat(u.__hash),children:"string"==typeof t?(0,b.jsx)(m.Z,{text:t}):t})}),(0,b.jsxs)("div",{className:"jsx-".concat(s.__hash," jsx-").concat(u.__hash)+" "+(S("form-control__element")||""),children:[g(null==d?void 0:d.beforeIcon,"before",c,i),f.Children.map(r,function(e){return(0,f.cloneElement)(e)}),(null==d?void 0:d.badge)&&(0,b.jsx)("div",{className:"jsx-".concat(s.__hash," jsx-").concat(u.__hash)+" form-control__badge",children:(0,b.jsx)("div",{className:"jsx-".concat(s.__hash," jsx-").concat(u.__hash)+" form-control__badge-content",children:d.badge})}),g(null==d?void 0:d.afterIcon,"after",c,i),y&&(0,b.jsx)("div",{className:"jsx-".concat(s.__hash," jsx-").concat(u.__hash)+" form-control__invalid",children:(0,b.jsx)(m.Z,{text:y})})]})]})]})}},98067:function(e,t,r){"use strict";r.d(t,{Z:function(){return E}});var n=r(59499),i=r(16835),o=r(21378),a=r.n(o),s=r(69654),c=r(12094),u=r(67294);function l(e,t){return!e||"string"!=typeof e||!t||"email"!==t||/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)}var d=r(47265),f=new Date,h=f.getFullYear()%100,p=f.getMonth()+1,m=function(e,t){var r=e.target,n=r.name,o=r.value,a=r.defaultValue||"",s=o.length"1")o="0".concat(o);else if(o.length>=2){var m=o.slice(0,2),b=o.slice(2,4);Number(m)>12&&(m="12"),!s&&2===b.length&&(Number(b)1||_>1)&&(o=o.substring(0,o.length-1))}else if("phone"===n){var v,E,T=null===(v=o)||void 0===v?void 0:v.replace(/\D+/g,""),A=null===(E=e.nativeEvent)||void 0===E?void 0:E.inputType,S="";if(isNaN(o.substring(o.length-1,o.length))&&(S=0==T.length?1:o.substring(0,o.length-1)),"insertText"==A)switch(T.length){case 1:S="1"==T?"".concat(T," ("):"1 (".concat(T);break;case 5:S="1 ( ".concat(T.substring(1,4)," ) ").concat(T.substring(4));break;case 8:S="1 ( ".concat(T.substring(1,4)," ) ").concat(T.substring(4,7)," - ").concat(T.substring(7));break;case 12:S="1 ( ".concat(T.substring(1,4)," ) ").concat(T.substring(4,7)," - ").concat(T.substring(7,11));break;default:S=o}else"deleteContentBackward"==A&&(S=o.replace(/[^0-9]*$/,""));return[S,void 0]}else if("number"===e.target.type)return[o.replace(/[^0-9]+/g,""),void 0];else if("number"===n&&"phone"!=n){var x=(0,d.ZP)(o),w=(0,i.Z)(x,2),C=w[0],N=w[1];return"unknown"===C?[N,"fa-exclamation-triangle"]:[N,C]}return[o,void 0]},b=r(88566),g=r(96486),y=r(85893);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t100||"textarea"==o,R=null!=d?d:"",I=function(e){if(T&&("Backspace"===e.key||"Delete"===e.key)){var t=e.currentTarget;T({name:t.name,value:t.value})}h&&h(e)};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(a(),{id:s.Z.__hash,children:s.Z}),"address"!=e.name&&(0,y.jsx)(c.Z,v(v({},e),{},{traits:v(v({},e.traits),{},{disabled:e.disabled,afterIcon:"password"===o?{icon:x?"fa-eye":"fa-eye-slash",onClick:function(){return w(!x)}}:null===(r=e.traits)||void 0===r?void 0:r.afterIcon}),children:O?(0,y.jsx)("textarea",{"data-element":e["data-element"]||"textarea",disabled:(null==e?void 0:e.disabled)||void 0,id:null==e?void 0:e.id,name:n,placeholder:e.placeholder,value:R,onChange:C,autoComplete:e.autoComplete,onKeyDown:I,onKeyUp:p,onPaste:e.onPaste,required:!!E,className:"jsx-".concat(s.Z.__hash)+" "+(M||"")}):(0,y.jsx)("input",{onClick:"button"==o&&A&&A||void 0,"data-element":e["data-element"]||"input",disabled:(null==e?void 0:e.disabled)||void 0,id:null==e?void 0:e.id,name:n,type:k,placeholder:e.placeholder,min:e.min,max:e.max,value:R,onChange:"color"!=k?C:N,autoComplete:e.autoComplete,onKeyDown:I,onKeyUp:p,onPaste:e.onPaste,required:!!E,className:"jsx-".concat(s.Z.__hash)+" "+(M||"")})})),"address"==e.name&&(0,y.jsx)(b.Z,{label:e.label,inputClasses:M,traits:v({},e.traits),error:e.error,address:d,variant:e.variant,setAddress:C}),(0,y.jsx)("div",{className:"jsx-".concat(s.Z.__hash)+" "+"input__message ".concat(_?"input__message-show":"").concat(null!=e&&e.variant?" input__message-"+e.variant:""),children:_&&_})]})}},88566:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});var n,i=r(59499),o=r(50029),a=r(21378),s=r.n(a),c=r(64687),u=r.n(c),l=r(67294),d=r(69654),f=[".address-input.jsx-2341783493{position:relative;height:-webkit-max-content;height:-moz-max-content;height:max-content;width:100%;border:inherit;}",".address-input.jsx-2341783493 input.jsx-2341783493{height:-webkit-max-content;height:-moz-max-content;height:max-content;position:absolute;width:100%;padding:0;left:0;text-indent:var(--s-4);}",".address-input.jsx-2341783493 .menu-container.jsx-2341783493{position:absolute;top:100%;left:0;width:100%;z-index:1000;}",".address-input.jsx-2341783493 .pac-container.jsx-2341783493{width:100%;background-color:#fff;border:1px solid #ccc;max-height:200px;overflow-y:auto;box-shadow:0 2px 8px rgba(0,0,0,0.1);}",".address-input.jsx-2341783493 .pac-container.jsx-2341783493 .pac-item.jsx-2341783493{padding:10px;cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".address-input.jsx-2341783493 .pac-container.jsx-2341783493 .pac-item.jsx-2341783493:hover{background-color:#eee;}",".address-input.jsx-2341783493 .pac-container.jsx-2341783493 .pac-item.jsx-2341783493 .pac-icon.jsx-2341783493{margin-right:10px;}",".address-input.jsx-2341783493 .pac-container.jsx-2341783493 .pac-item.jsx-2341783493 .pac-item-query.jsx-2341783493{font-weight:bold;}",".address-input.jsx-2341783493 .pac-container.jsx-2341783493 .pac-item.jsx-2341783493 .pac-item-secondary.jsx-2341783493{font-size:0.9em;color:#666;}"];f.__hash="2341783493";var h=f;function p(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){e.done?r(e.value):i(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var m=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var n,i,o,a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r});let b="__googleMapsScriptId";!function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}(n||(n={}));class g{constructor({apiKey:e,authReferrerPolicy:t,channel:r,client:n,id:i=b,language:o,libraries:a=[],mapIds:s,nonce:c,region:u,retries:l=3,url:d="https://maps.googleapis.com/maps/api/js",version:f}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=r,this.client=n,this.id=i||b,this.language=o,this.libraries=a,this.mapIds=s,this.nonce=c,this.region=u,this.retries=l,this.url=d,this.version=f,g.instance){if(!m(this.options,g.instance.options))throw Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(g.instance.options)}`);return g.instance}g.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?n.FAILURE:this.done?n.SUCCESS:this.loading?n.LOADING:n.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`®ion=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){let e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>{this.loadCallback(r=>{r?t(r.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id)){this.callback();return}let r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(e=>!r[e]&&delete r[e]),(null===(t=null===(e=null==window?void 0:window.google)||void 0===e?void 0:e.maps)||void 0===t?void 0:t.importLibrary)||(e=>{let t,r,n,i="The Google Maps JavaScript API",o="google",a="importLibrary",s="__ib__",c=document,u=window,l=(u=u[o]||(u[o]={})).maps||(u.maps={}),d=new Set,f=new URLSearchParams,h=()=>t||(t=new Promise((a,u)=>p(this,void 0,void 0,function*(){var h;for(n in yield r=c.createElement("script"),r.id=this.id,f.set("libraries",[...d]+""),e)f.set(n.replace(/[A-Z]/g,e=>"_"+e[0].toLowerCase()),e[n]);f.set("callback",o+".maps."+s),r.src=this.url+"?"+f,l[s]=a,r.onerror=()=>t=u(Error(i+" could not load.")),r.nonce=this.nonce||(null===(h=c.querySelector("script[nonce]"))||void 0===h?void 0:h.nonce)||"",c.head.append(r)})));l[a]?console.warn(i+" only loads once. Ignoring:",e):l[a]=(e,...t)=>d.add(e)&&h().then(()=>l[a](e,...t))})(r);let n=this.libraries.map(e=>this.importLibrary(e));n.length||n.push(this.importLibrary("core")),Promise.all(n).then(()=>this.callback(),e=>{let t=new ErrorEvent("error",{error:e});this.loadErrorCallback(t)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){let e=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},e)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}var y=r(12094),_=r(13190),v=r(85893);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t2&&C?C.getPlacePredictions({input:t},function(e){E(e||[])}):E([])},R=(0,l.useCallback)(function(){x(t?"".concat(null!=t&&t.line1?(null==t?void 0:t.line1)+", ":"").concat(null!=t&&t.line2?(null==t?void 0:t.line2)+" ":"").concat(null!=t&&t.city?(null==t?void 0:t.city)+" ":"").concat(null!=t&&t.state?(null==t?void 0:t.state)+", ":"").concat(null!=t&&t.postal_code?(null==t?void 0:t.postal_code)+", ":"").concat(null!=t&&t.country?null==t?void 0:t.country:""):"")},[t]),I=function(e){var t=e.value;new g({apiKey:M,libraries:["places"]}).load().then(function(e){new e.maps.places.PlacesService(document.createElement("div")).getDetails({placeId:t},function(e){if(e&&e.address_components){var t,n,i=e.address_components.reduce(function(e,t){return e[t.types[0]]=t.short_name,e},{});r({target:{name:"address",value:{line1:"".concat(i.street_number||""," ").concat(i.route||""),line2:i.sublocality||"",city:i.locality||"",state:i.administrative_area_level_1||"",postal_code:i.postal_code||"",country:i.country||"",lat:(null===(t=e.geometry)||void 0===t||null===(t=t.location)||void 0===t?void 0:t.lat())||0,lng:(null===(n=e.geometry)||void 0===n||null===(n=n.location)||void 0===n?void 0:n.lng())||0}}}),E([])}})})};return(0,l.useEffect)(function(){k()},[]),(0,l.useEffect)(function(){R()},[t,R]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(s(),{id:d.Z.__hash,children:d.Z}),(0,v.jsx)(s(),{id:h.__hash,children:h}),(0,v.jsx)(y.Z,{error:f,label:c,traits:T(T({},i),{},{variant:"address"}),variant:n,children:(0,v.jsx)("input",{"data-element":"input",id:"autocomplete-address",type:"text",ref:p,placeholder:"Enter address",value:S,name:"address",onChange:O,className:"jsx-".concat(d.Z.__hash," jsx-").concat(h.__hash)+" "+(a||"")})}),b.length>0&&(0,v.jsx)("div",{className:"jsx-".concat(d.Z.__hash," jsx-").concat(h.__hash)+" address-input--suggestions",children:(0,v.jsx)(_.Z,{options:b.map(function(e){return{label:e.structured_formatting.main_text,value:e.place_id,secondary:e.structured_formatting.secondary_text}}),onSelect:I})})]})}},82889:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(21378),i=r.n(n),o=r(67294),a=[".select.jsx-1915958787{cursor:pointer;position:relative;display:block;-webkit-align-items:inherit;-webkit-box-align:inherit;-ms-flex-align:inherit;align-items:inherit;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;outline:none;border:none;width:100%;height:inherit;gap:inherit;text-transform:inherit;font-size:inherit;font-weight:inherit;border-radius:var(--border-radius);}",".select.jsx-1915958787:hover{color:inherit;}",".select-sm.jsx-1915958787{width:-webkit-max-content;width:-moz-max-content;width:max-content;}",".select.nav-item.jsx-1915958787{background-color:transparent;}","@media (max-width:900px){.select.nav-item.jsx-1915958787{width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}}",".select.flat.jsx-1915958787{background-color:transparent;}","@media (max-width:900px){.select.flat.jsx-1915958787{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}}",".select.jsx-1915958787 .select__selected.jsx-1915958787{color:inherit;height:inherit;line-height:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:7px;white-space:nowrap;cursor:pointer;--ui-icon-height:inherit;--ui-icon-width:inherit;text-transform:capitalize;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;}",".select.jsx-1915958787 .select__selected.nav-item.jsx-1915958787{width:100%;}",".select.jsx-1915958787 .select__options.jsx-1915958787{left:0;position:absolute;overflow:hidden;top:calc(100% + 3px);box-shadow:var(--box-shadow);border-radius:var(--border-radius);z-index:3;min-width:100%;width:-webkit-max-content;width:-moz-max-content;width:max-content;}",".select.jsx-1915958787 .select__options.jsx-1915958787 .left.jsx-1915958787{left:auto;right:0;}",".select.jsx-1915958787 .select__options.left.jsx-1915958787{left:auto;right:0;}",".select.jsx-1915958787 .select__options.jsx-1915958787 .right.jsx-1915958787{left:0;right:auto;}",".select.jsx-1915958787 .select__options.right.jsx-1915958787{left:0;right:auto;}",".select.up.jsx-1915958787 .select__options.jsx-1915958787{bottom:100%;}",".select.down.jsx-1915958787 .select__options.jsx-1915958787{top:calc(100% + 5px);}"];a.__hash="1915958787";var s=a,c=r(13190),u=r(98067),l=r(96486),d=r(36946),f=r(85893),h=function(e){var t=e.options,r=e.size,n=e.onSelect,a=e.openDirection,h=void 0===a?"down":a,p=e.onToggle,m=e.title,b=e.variant,g=e.openState,y=e.value,_=e.label,v=e.traits,E=e.search,T=e.setSearch,A=e.overlay,S=(0,o.useState)("closed"),x=S[0],w=S[1],C=(0,o.useState)(""),N=C[0],M=C[1],k=(0,d.dd)(),O=k.isModalOpen,R=k.openModal,I=k.closeModal,P=t,D=!!(null==P?void 0:P.every(function(e){return void 0!==e})),$=(0,o.useState)(null),L=$[0],F=$[1],j="open"===x,U=function(e){F(e),n&&n(e),"disabled"!==b&&w("closed")},B=function(){D&&w("closed"===x?"open":"closed"),A&&("closed"==x?"object"==typeof A&&null!=A&&A.zIndex?R({zIndex:null==A?void 0:A.zIndex}):R(null):I())},H=function(e){return"object"==typeof e&&!o.isValidElement(e)},z=function(e,t){return null!=t&&t.includes("nav-item")?j?"fa-xmark":null==v?void 0:v.afterIcon:j?"fa-xmark":"fa-chevron-".concat(h)};return(0,o.useEffect)(function(){void 0!==g&&w(g)},[g]),(0,o.useEffect)(function(){N!==m&&("string"==typeof m&&M(m),"object"==typeof m&&"text"in m&&void 0!==m.text&&M(m.text))},[m,n]),(0,o.useEffect)(function(){j&&p&&p(j)},[x,O]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i(),{id:s.__hash,children:s}),(0,f.jsxs)("div",{style:null!=v&&v.width?{width:"".concat(v.width,"px")}:{},onClick:B,className:"jsx-".concat(s.__hash)+" "+"select ".concat(h," ").concat(r?" select-".concat(r):""),children:[(0,f.jsx)(u.Z,{"data-element":"select",type:"button",label:_,size:r,variant:D&&"disabled"!==b?b:"select__disabled",value:"string"==typeof y?(0,l.capitalize)(y):N||L||"Select",traits:{beforeIcon:H(m)&&m.preIcon?m.preIcon:void 0,afterIcon:z(v,b)}}),j&&"disabled"!==b&&(0,f.jsx)("div",{className:"jsx-".concat(s.__hash)+" "+"select__options ".concat(h," ").concat(b?" "+b:""),children:(0,f.jsx)(c.Z,{size:r,traits:v,search:E,setSearch:T,options:t,onSelect:U,variant:D?b:"disabled",value:y})})]})]})}},77734:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(21378),i=r.n(n),o=r(67294),a=[".toggle-switch.jsx-371548259{position:relative;display:inline-block;width:40px;height:20px;}",".toggle-switch.jsx-371548259 input.jsx-371548259 [type=checkbox].jsx-371548259{opacity:0;width:0;height:0;}",".slider.jsx-371548259{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:0.4s;transition:0.4s;border-radius:20px;}",'.slider.jsx-371548259:before{position:absolute;content:"";height:16px;width:16px;left:2px;bottom:2px;background-color:var(--white);-webkit-transition:0.4s;transition:0.4s;border-radius:50%;}',"input.jsx-371548259:checked+.slider.jsx-371548259:not(.slider--disabled){background-color:#2196f3;}","input.jsx-371548259:checked+.slider.slider--disabled.jsx-371548259{cursor:not-allowed;background-color:var(--gray-40);-webkit-filter:blur(1px);filter:blur(1px);}","input.jsx-371548259:checked+.slider.slider--disabled.jsx-371548259:before{background-color:var(--gray-50);}","input.jsx-371548259:checked+.slider.jsx-371548259:before{-webkit-transform:translateX(20px);-ms-transform:translateX(20px);transform:translateX(20px);}"];a.__hash="371548259";var s=a,c=r(12094),u=r(85893),l=function(e){var t=e.value,r=e.onChange,n=e.name,a=e.label,l=e.disabled,d=(0,o.useRef)(null),f=function(e){var t={target:{name:n,value:e.target.checked}};!l&&r&&r(t)};return(0,o.useEffect)(function(){d.current&&!0==t?d.current.setAttribute("checked",""):d.current.removeAttribute("checked")},[t,null==d?void 0:d.current]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i(),{id:s.__hash,children:s}),(0,u.jsx)(c.Z,{variant:"checkbox",label:a,children:(0,u.jsxs)("label",{className:"jsx-".concat(s.__hash)+" toggle-switch",children:[(0,u.jsx)("input",{disabled:l,ref:d,name:n,type:"checkbox",onChange:f,className:"jsx-".concat(s.__hash)}),(0,u.jsx)("span",{className:"jsx-".concat(s.__hash)+" "+"slider ".concat(l&&" slider--disabled"||"")})]})})]})}},38903:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(16835),i=r(59499),o=r(21378),a=r.n(o),s=r(67294),c=r(98067),u=[".d-flex.jsx-3498034248,input.jsx-3498034248,.form.jsx-3498034248 .form-field__readonly--value.jsx-3498034248 .object-item.jsx-3498034248,.form.jsx-3498034248 .form-field__readonly--value.jsx-3498034248 .object-list.jsx-3498034248,.form.jsx-3498034248 .form-field__readonly--value.jsx-3498034248,.form.jsx-3498034248 .form-field__readonly--label.jsx-3498034248,.form__title.jsx-3498034248,.form.jsx-3498034248,.d-flex-col.jsx-3498034248,.form.jsx-3498034248 .form-field.jsx-3498034248,.form.jsx-3498034248 .form-field__readonly.jsx-3498034248{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".d-flex-col.jsx-3498034248,.form.jsx-3498034248 .form-field.jsx-3498034248,.form.jsx-3498034248 .form-field__readonly.jsx-3498034248{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);}",".form.jsx-3498034248{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;height:auto;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;}",".form--mini.jsx-3498034248{padding:var(--s-8) var(--s-4);width:var(--s-4-width);gap:var(--s-10);}",".form--mini__submit.jsx-3498034248{border-top:unset !important;}",".form--card.jsx-3498034248{background-color:var(--gray-90);border-radius:var(--border-radius);box-shadow:var(--box-shadow);padding:var(--s-4);width:var(--s-4-width);}",".form__title.jsx-3498034248{text-transform:capitalize;font-size:var(--s-2);height:var(--s-element);line-height:1;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding-bottom:var(--s-9);}",".form.jsx-3498034248 .form-field.jsx-3498034248,.form.jsx-3498034248 .form-field__readonly.jsx-3498034248{width:100%;margin:0 0 var(--s-4);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}",".form.jsx-3498034248 .form-field__readonly.jsx-3498034248{border:solid 1px transparent;overflow:hidden;color:var(--gray-60);--ui-icon-color:var(--gray-60);gap:0;border:solid 1px transparent;}",".form.jsx-3498034248 .form-field__readonly--label.jsx-3498034248{text-indent:var(--s-9);text-transform:uppercase;line-height:2;font-weight:bold;font-size:var(--s-8);-webkit-letter-spacing:3px;-moz-letter-spacing:3px;-ms-letter-spacing:3px;-webkit-letter-spacing:3px;-moz-letter-spacing:3px;-ms-letter-spacing:3px;letter-spacing:3px;}",".form.jsx-3498034248 .form-field__readonly--value.jsx-3498034248{text-indent:var(--s-9);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;min-height:var(--s-element);}",".form.jsx-3498034248 .form-field__readonly--value.jsx-3498034248 .object-list.jsx-3498034248{background-color:var(--gray-100);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;padding:var(--s-9) 0;white-space:wrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--s-8);}",".form.jsx-3498034248 .form-field__readonly--value.jsx-3498034248 .object-item.jsx-3498034248{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;color:var(--green-20);}",".form.jsx-3498034248 .form-field__readonly--value.jsx-3498034248 .object-item--key.jsx-3498034248{color:var(--gray-30);}",".form.jsx-3498034248 .form-field__readonly.jsx-3498034248:hover{border-radius:var(--border-radius);border-color:var(--gray-50);background-color:var(--gray-80);color:var(--gray-20);--ui-icon-color:var(--gray-20);}",".form.jsx-3498034248 .form-field__readonly.jsx-3498034248:hover .form-field__readonly--value.jsx-3498034248{color:var(--gray-80);--ui-icon-color:var(--gray-80);background-color:var(--gray-60);}",".form__submit.jsx-3498034248{border-style:outset;border-color:transparent;width:100%;margin-top:var(--s-4);padding-top:var(--s-4);}",".form__submit--mini.jsx-3498034248{margin-top:0;padding-top:var(--s-9);border-top:unset !important;}","input.jsx-3498034248{width:var(--s-element);height:100%;text-align:center;border:none;outline:none;background-color:transparent;color:inherit;--ui-icon-color:inherit;}","input.jsx-3498034248:focus{color:inherit;}"];u.__hash="3498034248";var l=u,d=r(10577),f=r(82889),h=r(85153),p=r(77734),m=r(12094),b=[".d-flex.jsx-2466560169,.add-field.jsx-2466560169{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".add-field-form.jsx-2466560169{width:100%;}",".add-field.jsx-2466560169{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}"];b.__hash="2466560169";var g=b,y=r(36946),_=r(85893),v=function(e){var t=e.onAddField,r=(0,s.useState)(!0),n=r[0],i=r[1],o=(0,y.dd)(),c=o.openModal;o.closeModal;var u=(0,s.useState)(),l=u[0],f=u[1],h=function(e){f({target:{name:e.target.value?e.target.value.replaceAll(" ","_"):"add-field",value:e.target.value}})};(0,s.useEffect)(function(){},[h]);var p=function(){var e,t,r;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a(),{id:g.__hash,children:g}),(0,_.jsx)("div",{className:"jsx-".concat(g.__hash)+" add-field-form",children:(0,_.jsx)(x,{variant:"mini",onChange:h,onSubmit:m,fields:[{name:(null==l||null===(e=l.target)||void 0===e?void 0:e.name)||"add-field",value:(null==l||null===(t=l.target)||void 0===t?void 0:t.value)||"",label:(null==l||null===(r=l.target)||void 0===r?void 0:r.value)||"new field name"}]})})]})},m=function(e){n&&(c((0,_.jsx)(p,{})),i(!n)),n||t(l)};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a(),{id:g.__hash,children:g}),(0,_.jsx)("div",{className:"jsx-".concat(g.__hash)+" add-field",children:(0,_.jsx)(d.Z,{variant:"link",traits:{afterIcon:"fas-plus"},onClick:m,children:"add field"})})]})},E=r(88566),T=r(98014);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function S(e){for(var t=1;to&&(e[t.name]="*".concat(t.name," is too long")))}}),I(e),0==Object.keys(e).length?o(i):u&&u(e)}},L=function(e,t,r){if(r&&A){var n=function(){var e=Number(t.value);return"minus"==r?t.min&&e<=t.min?e=t.min:e-=1:t.max&&e>=t.max?e=t.max:e+=1,e};return A({target:{name:t.name,value:n()}})}var i=e.target,o=i.name,a=i.value;return a&&"0"==String(a).charAt(0)&&(a=a.slice(1,a.length)),null!=t&&t.min&&Number(a)<=(null==t?void 0:t.min)&&(a=String(t.min)),null!=t&&t.max&&Number(a)>=(null==t?void 0:t.max)&&(a=String(t.max)),D({target:{name:o,value:a}})},F=null===(t=Array(i))||void 0===t?void 0:t.length;return((0,s.useEffect)(function(){P()},[i,w,x]),i)?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a(),{id:l.__hash,children:l}),b&&(0,_.jsx)("div",{className:"jsx-".concat(l.__hash)+" form__title",children:b}),(0,_.jsxs)("div",{className:"jsx-".concat(l.__hash)+" "+"form".concat(r&&" form--".concat(r)||""),children:[F&&i.map(function(e,t){return e.name&&(null==e?void 0:e.readonly)&&(0,_.jsxs)("div",{style:null!=e&&e.width?{width:"calc(".concat(e.width," - 8px)")}:{},className:"jsx-".concat(l.__hash)+" form-field__readonly",children:[(0,_.jsx)("div",{className:"jsx-".concat(l.__hash)+" form-field__readonly--label",children:null==e?void 0:e.label}),(0,_.jsx)("div",{className:"jsx-".concat(l.__hash)+" form-field__readonly--value",children:"object"!=typeof e.value&&"".concat(null==e?void 0:e.value)||e.value&&(0,_.jsx)("div",{className:"jsx-".concat(l.__hash)+" object-list",children:Object.entries(e.value).map(function(e){var t=(0,n.Z)(e,2),r=t[0],i=t[1];return(0,_.jsxs)("span",{className:"jsx-".concat(l.__hash)+" object-item",children:[(0,_.jsxs)("span",{className:"jsx-".concat(l.__hash)+" object-item--key",children:[r,":"]}),(0,_.jsx)("span",{className:"jsx-".concat(l.__hash)+" object-item--value",children:JSON.stringify(i).replaceAll('"',"")})]},r)})})})]},t)}),F&&i.map(function(e,t){return e.name&&!e.readonly&&(0,_.jsxs)("div",{style:"string"==typeof(null==e?void 0:e.width)?{width:"calc(".concat(e.width," - 6px)")}:{},className:"jsx-".concat(l.__hash)+" form-field",children:["address"==e.name&&(0,_.jsx)("div",{className:"jsx-".concat(l.__hash)+" s-w-100",children:(0,_.jsx)(E.Z,{variant:(null==e?void 0:e.error)?"invalid":r||(null==e?void 0:e.variant),label:"address",address:e.value,error:null==e?void 0:e.error,setAddress:function(t){return D(t,e.constraints)}})}),"text"==(0,T.Ql)(null==e?void 0:e.value)&&"address"!==e.name&&(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(c.Z,{autoComplete:e.autoComplete,label:e.label,variant:(null==e?void 0:e.error)?"invalid":r||(null==e?void 0:e.variant),disabled:null==e?void 0:e.disabled,error:e.error,type:e.type,required:e.required,traits:e.traits,name:e.name,placeholder:e.placeholder,value:null==e?void 0:e.value,onChange:function(t){return D(t,e.constraints)}})}),"checkbox"==(0,T.Ql)(null==e?void 0:e.value)&&(0,_.jsx)(p.Z,{label:e.label,name:e.name,disabled:null==e?void 0:e.disabled,onChange:function(t){return D(t,null==e?void 0:e.constraints)},value:!!(null==e?void 0:e.value)}),(null==e?void 0:e.type)=="select"&&(null==e?void 0:e.options)!==void 0&&(0,_.jsx)(f.Z,{variant:null==e?void 0:e.variant,traits:e.traits,options:null==e?void 0:e.options,label:e.name,value:String(null==e?void 0:e.value),onSelect:function(t){return D({target:{name:e.name,value:t}},e.constraints)}}),"pill"==e.type&&(0,_.jsx)(m.Z,{label:null!=e&&e.error?"".concat(e.label," *").concat(e.error,"*"):e.label,variant:e.error&&"invalid"||!!((null==e?void 0:e.min)&&e.value==e.min||e.max&&e.value==e.max)&&"bump pill"||"pill",traits:{beforeIcon:{icon:"fas-minus",onClick:function(){return L(void 0,e,"minus")}},afterIcon:{icon:"fas-plus",onClick:function(){return L(void 0,e,"plus")}}},children:(0,_.jsx)("input",{name:e.name,type:"tel",min:null==e?void 0:e.min,max:null==e?void 0:e.max,value:isNaN(Number(e.value))?"0":String(e.value),placeholder:null==e?void 0:e.placeholder,onChange:function(t){return L(t,e,void 0)},className:"jsx-".concat(l.__hash)})})]},t)}),!F&&(0,_.jsx)(h.Z,{position:"relative"}),C&&(0,_.jsx)(v,{onAddField:C}),(0,_.jsx)("div",{className:"jsx-".concat(l.__hash)+" "+"form__submit ".concat(r&&" form__submit--".concat(r)||""),children:o&&(0,_.jsx)(d.Z,{onClick:$,traits:{afterIcon:y},disabled:w||!M,variant:!w&&M&&"glow",type:"submit",busy:!0==x,children:g||"Submit"})})]})]}):(0,_.jsx)("div",{className:"error",children:"No form fields"})}},98014:function(e,t,r){"use strict";r.d(t,{PI:function(){return n},Ql:function(){return i}});var n=function(e,t){return(e&&Object(e).filter(function(e){return e.name==t}))[0]},i=function(e){var t="text";switch(typeof e){case"number":t="tel";break;case"boolean":t="checkbox"}return t}},6253:function(e,t,r){"use strict";r.d(t,{a:function(){return z}});var n=r(59499),i=r(16835),o=r(50029),a=r(92777),s=r(82262),c=r(45959),u=r(63553),l=r(37247),d=r(21378),f=r.n(d),h=r(64687),p=r.n(h),m='',b='\n\n \n \n \n \n \n \n \n \n \n \n \n \n\n\n',g={path:"M65.2,40.7C29.6,40.7,1,51.4,1,64.8c0,13.3,28.8,24.1,64.2,24.1c35.4,0,64.2-10.8,64.2-24.1 C129.5,51.6,100.6,40.7,65.2,40.7z M65.2,86.8c-34,0-61.5-9.8-61.5-22c0-12.1,27.6-22,61.5-22c34,0,61.5,9.8,61.5,22 C126.8,77,99.2,86.8,65.2,86.8z M90.5,69.7c0,0.1,0,0.2,0,0.2c0,0.1,0.2,0.2,0.3,0.3c0,0,0.1,0.1,0,0.2c-0.4,0.9-0.8,1.4-1.3,2.1 c-0.5,0.7-1,1.2-1.6,1.7c-0.9,0.8-2.3,1.6-3.4,1.1c-0.5-0.3-0.7-0.9-0.7-1.5c0-1.5,0.7-3.1,2-4.7c1.5-1.9,3.3-2.9,4.4-2.3 C91.4,67.3,91.1,68.7,90.5,69.7z M58.7,59.7c-0.1-0.6,0.1-1.3,0.7-1.8c0.3-0.3,0.7-0.3,1-0.1c0.3,0.2,0.1,0.8-0.1,1.3 c-0.3,0.5-0.8,0.9-1.3,0.9C58.8,59.9,58.7,59.9,58.7,59.7z M65.2,44.7c-32.8,0-59.4,9.1-59.4,20.2C5.8,75.9,32.4,85,65.2,85 c32.8,0,59.4-9.1,59.4-20.2C124.6,53.7,98,44.7,65.2,44.7z M34.7,78.1c-3.5,0-6.6-2.1-7-5.9c-0.2-2.1,0.4-3.9,1.6-5.5 c1-1.4,2.8-2.5,4.3-2.8c0.5-0.1,1.1,0,1.4,0.3c0.4,0.5,0.3,1-0.1,1.3c-1.1,0.6-2.5,1.6-3.2,2.9c-0.6,1.1-0.7,2.5,0.2,3.7 c1.4,2.1,5.3,2.2,9-1.2c0.9-0.8,1.7-1.6,2.5-2.6c1.6-1.8,2.1-2.5,4.3-5.5c0,0,0-0.1,0-0.1c0,0,0,0-0.1-0.1c-1.4,0-2.7,0.5-3.9,1.4 c-0.3,0.3-0.8,0.2-1.1-0.1c-0.2-0.4-0.1-0.9,0.3-1.1c1.9-1.4,4.1-1.6,6.2-2c0,0,0.2,0,0.3-0.2c0.9-1.1,1.6-2.2,2.5-3.3 c1-1.2,2.2-2.2,3.1-3.1c1.3-1.1,2.2-1.5,3-2c0.2-0.1,0-0.3-0.1-0.3c-4.8-0.9-9.8-2.1-14.5-0.3c-3.3,1.2-4.7,3.8-4,5.6 c0.5,1.2,2.1,1.4,3.7,0.7c1.3-0.6,2.4-1.6,3.3-2.9c0.5-0.7,1.4-0.2,0.9,1c-1.4,3.3-4.1,5.9-7.3,6c-2.8,0.1-4.5-1.9-4.5-4.4 c0-4.9,5.5-8.2,11.3-8.7c7-0.6,13.6,1.3,20.5,2.1c5.3,0.6,10.4,0.7,15.7-0.6c0.6-0.1,1.1,0.3,1,0.9c-0.1,0.9-0.8,1.8-2.5,2.8 c-2,1.1-4.1,1.4-6.3,1.4c-5.3,0-10.2-2-15.3-3.1c0,0.2,0.1,0.5-0.1,0.6c-2.8,2.1-5.4,4.2-7.1,7.1c-0.1,0.1,0,0.1,0.1,0.1 c1.5-0.1,2.8-0.1,4.2-0.2c0.2,0,0.2-0.1,0.2-0.3c-0.1-1,0.2-2.2,1.1-3c0.9-0.8,2.1-0.9,2.8-0.3c0.9,0.7,0.8,1.9,0.3,2.8 c-0.5,0.9-1.3,1.4-2,1.7c0,0-0.2,0-0.1,0.2c0,0.2,1.1,0.8,1.2,1c0.1,0.1,0,0.4-0.1,0.5c-0.1,0.1-0.3,0.2-0.5,0.2 c-0.2,0-0.3-0.1-0.5-0.2c-0.5-0.3-1.1-0.7-1.4-1.2c-0.1-0.2-0.2-0.2-0.5-0.2c-1.5,0.1-3.8,0.3-5.4,0.5c-0.4,0-0.4,0.1-0.5,0.3 c-2.5,4.1-5.2,8.6-8.2,11.6C40.2,77.2,37.5,78.1,34.7,78.1z M103,57.9c-0.5,0.8-9.9,15.2-10.5,16.6c-0.2,0.5-0.2,0.8,0,1.1 c0.5,0.7,1.6,0.3,2.3-0.2c2-1.4,3.4-3.1,5-4.6c0.1-0.1,0.2-0.1,0.3,0c0.2,0.2,0.6,0.5,0.8,0.7c0.1,0.1,0.1,0.2,0,0.3 c-1.5,1.9-3.2,3.6-4.8,4.9c-2.5,1.9-5,2.4-6.3,1.2c-0.5-0.5-0.7-1.1-0.7-1.7c0-0.3-0.2-0.3-0.3-0.2c-1.5,1.5-4.1,3.1-6.4,1.9 c-2-1-2.4-3.3-2-5.3c0,0,0-0.3-0.3-0.2c-0.4,0.3-0.9,0.6-1.6,0.9c-0.8,0.3-1.2,0.4-2,0.4c-1,0-1.8-0.4-2.4-1.4 c-0.3-0.5-0.5-1.3-0.5-1.9c0-0.1-0.1-0.2-0.2,0c-1.6,2.4-3.1,4.8-4.7,7.3c-0.1,0.1-0.2,0.2-0.3,0.2c-1,0-2.1,0-3.1,0 c-0.2,0-0.3-0.1-0.2-0.3c0.6-1.1,3.6-5.5,5.7-9.3c0.6-1,0.5-1.6,0.1-1.8c-0.4-0.3-1.3,0.1-2.1,0.7c-2,1.5-3.7,3.9-4.6,5 c-0.5,0.6-1,1.6-2.3,3c-2.1,2.3-4.9,3.6-7.5,2.7c-1.5-0.5-2.5-1.7-2.9-3.1c-0.1-0.3-0.2-0.4-0.4-0.2c-0.4,0.5-1.3,1.3-2.1,1.8 c-0.1,0.1-0.3,0.2-0.5,0.1c-0.2-0.1-0.7-0.8-0.8-1.1c-0.1-0.2,0-0.3,0.1-0.4c1.1-0.9,1.6-1.5,2.1-2c0.3-0.4,0.6-0.9,0.9-1.7 c0.6-1.6,2.1-4.6,5-6.2c1.1-0.6,2.2-1,3.5-1.2c0.5-0.1,1,0,1.1,0.4c0.1,0.2,0.2,0.6,0.3,0.8c0.1,0.2,0,0.3-0.2,0.4 c-1.7,0.7-3.4,1.7-4.6,3.3c-1.4,1.8-1.7,4-0.8,5.2c0.7,0.9,1.7,1.1,2.8,0.7c1.6-0.5,2.9-1.9,3.6-3.6c0.7-1.8,0.9-3.8,0.3-5.7 c-0.1-0.3,0-0.6,0.2-0.7c0.4-0.3,1-0.6,1.1-0.7c0.4-0.2,0.8-0.1,1,0.2c0.6,0.8,0.9,2,0.9,3.3c0,0.3,0.1,0.3,0.3,0.1 c1-1.1,2-2.2,3-3.1c1-0.8,2.3-1.4,3.4-1.4c1.5,0,2.3,1.1,2.2,2.9c0,0.2,0.2,0.2,0.3,0.1c0.5-0.7,0.8-1,1.3-1.4 c1.1-0.9,2.1-1.3,3.3-1.2c1.4,0.1,2.5,1.4,2.3,2.8c-0.1,0.9-0.7,1.8-1.5,2.2c-0.7,0.4-1.6,0.3-2.2-0.2c-0.5-0.4-0.6-1.1-0.5-1.7 c0-0.1-0.1-0.3-0.3-0.1c-1.4,1.4-1.5,3.2-0.6,4.1c1,0.9,2.4,0.3,3.5-0.4c2-1.3,3.5-3,5.2-4.4c1.2-0.9,2.5-1.7,4-1.9 c0.8-0.1,1.6-0.1,2.4,0.3c1.1,0.4,1.7,1.3,1.8,2.1c0,0.2,0.2,0.3,0.3,0.1c0.8-1.3,5.4-8.1,5.8-8.8c0.1-0.2,0.2-0.3,0.5-0.3 c1,0,2.3,0,3.2,0C103,57.7,103,57.8,103,57.9z",height:100,width:130},y={height:100,width:160,html:''},_={html:'',width:50,height:50},v={html:'\n \n \n \n \n \n \n \n \n \n \n '},E={amex:{path:"M48 480C21.49 480 0 458.5 0 432V80C0 53.49 21.49 32 48 32H528C554.5 32 576 53.49 576 80V82.43H500.5L483.5 130L466.6 82.43H369.4V145.6L341.3 82.43H262.7L181 267.1H246.8V430.9H450.5L482.4 395.8L514.3 430.9H576V432C576 458.5 554.5 480 528 480H48zM482.6 364L440.4 410.3H390.5L458 338.6L390.5 266.1H441.9L483.4 312.8L525.4 266.1H576L508 338.2L576 410.3H524.6L482.6 364zM576 296.9V380.2L536.7 338.3L576 296.9zM307.6 377.1H390.6V410.3H268.6V267.1H390.6V300.2H307.6V322.6H388.5V354.9H307.6V377.2V377.1zM537.3 145.7L500.4 246.3H466L429.2 146V246.3H390.5V103H451.7L483.6 192.3L515.8 103H576V246.3H537.3V145.7zM334.5 217.6H268.6L256.7 246.3H213.7L276.1 103H327.3L390.6 246.3H346.5L334.5 217.6zM301.5 138.5L282 185.4H320.9L301.5 138.5z",width:576,height:512},visa:{height:512,width:576,path:"M470.1 231.3s7.6 37.2 9.3 45H446c3.3-8.9 16-43.5 16-43.5-.2.3 3.3-9.1 5.3-14.9l2.8 13.4zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM152.5 331.2L215.7 176h-42.5l-39.3 106-4.3-21.5-14-71.4c-2.3-9.9-9.4-12.7-18.2-13.1H32.7l-.7 3.1c15.8 4 29.9 9.8 42.2 17.1l35.8 135h42.5zm94.4.2L272.1 176h-40.2l-25.1 155.4h40.1zm139.9-50.8c.2-17.7-10.6-31.2-33.7-42.3-14.1-7.1-22.7-11.9-22.7-19.2.2-6.6 7.3-13.4 23.1-13.4 13.1-.3 22.7 2.8 29.9 5.9l3.6 1.7 5.5-33.6c-7.9-3.1-20.5-6.6-36-6.6-39.7 0-67.6 21.2-67.8 51.4-.3 22.3 20 34.7 35.2 42.2 15.5 7.6 20.8 12.6 20.8 19.3-.2 10.4-12.6 15.2-24.1 15.2-16 0-24.6-2.5-37.7-8.3l-5.3-2.5-5.6 34.9c9.4 4.3 26.8 8.1 44.8 8.3 42.2.1 69.7-20.8 70-53zM528 331.4L495.6 176h-31.1c-9.6 0-16.9 2.8-21 12.9l-59.7 142.5H426s6.9-19.2 8.4-23.3H486c1.2 5.5 4.8 23.3 4.8 23.3H528z"},discover:{height:512,width:576,path:"M520.4 196.1c0-7.9-5.5-12.1-15.6-12.1h-4.9v24.9h4.7c10.3 0 15.8-4.4 15.8-12.8zM528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-44.1 138.9c22.6 0 52.9-4.1 52.9 24.4 0 12.6-6.6 20.7-18.7 23.2l25.8 34.4h-19.6l-22.2-32.8h-2.2v32.8h-16zm-55.9.1h45.3v14H444v18.2h28.3V217H444v22.2h29.3V253H428zm-68.7 0l21.9 55.2 22.2-55.2h17.5l-35.5 84.2h-8.6l-35-84.2zm-55.9-3c24.7 0 44.6 20 44.6 44.6 0 24.7-20 44.6-44.6 44.6-24.7 0-44.6-20-44.6-44.6 0-24.7 20-44.6 44.6-44.6zm-49.3 6.1v19c-20.1-20.1-46.8-4.7-46.8 19 0 25 27.5 38.5 46.8 19.2v19c-29.7 14.3-63.3-5.7-63.3-38.2 0-31.2 33.1-53 63.3-38zm-97.2 66.3c11.4 0 22.4-15.3-3.3-24.4-15-5.5-20.2-11.4-20.2-22.7 0-23.2 30.6-31.4 49.7-14.3l-8.4 10.8c-10.4-11.6-24.9-6.2-24.9 2.5 0 4.4 2.7 6.9 12.3 10.3 18.2 6.6 23.6 12.5 23.6 25.6 0 29.5-38.8 37.4-56.6 11.3l10.3-9.9c3.7 7.1 9.9 10.8 17.5 10.8zM55.4 253H32v-82h23.4c26.1 0 44.1 17 44.1 41.1 0 18.5-13.2 40.9-44.1 40.9zm67.5 0h-16v-82h16zM544 433c0 8.2-6.8 15-15 15H128c189.6-35.6 382.7-139.2 416-160zM74.1 191.6c-5.2-4.9-11.6-6.6-21.9-6.6H48v54.2h4.2c10.3 0 17-2 21.9-6.4 5.7-5.2 8.9-12.8 8.9-20.7s-3.2-15.5-8.9-20.5z"},diners:{height:512,width:576,path:"M239.7 79.9c-96.9 0-175.8 78.6-175.8 175.8 0 96.9 78.9 175.8 175.8 175.8 97.2 0 175.8-78.9 175.8-175.8 0-97.2-78.6-175.8-175.8-175.8zm-39.9 279.6c-41.7-15.9-71.4-56.4-71.4-103.8s29.7-87.9 71.4-104.1v207.9zm79.8.3V151.6c41.7 16.2 71.4 56.7 71.4 104.1s-29.7 87.9-71.4 104.1zM528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM329.7 448h-90.3c-106.2 0-193.8-85.5-193.8-190.2C45.6 143.2 133.2 64 239.4 64h90.3c105 0 200.7 79.2 200.7 193.8 0 104.7-95.7 190.2-200.7 190.2z"},jcb:{height:512,width:576,path:"M431.5 244.3V212c41.2 0 38.5.2 38.5.2 7.3 1.3 13.3 7.3 13.3 16 0 8.8-6 14.5-13.3 15.8-1.2.4-3.3.3-38.5.3zm42.8 20.2c-2.8-.7-3.3-.5-42.8-.5v35c39.6 0 40 .2 42.8-.5 7.5-1.5 13.5-8 13.5-17 0-8.7-6-15.5-13.5-17zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM182 192.3h-57c0 67.1 10.7 109.7-35.8 109.7-19.5 0-38.8-5.7-57.2-14.8v28c30 8.3 68 8.3 68 8.3 97.9 0 82-47.7 82-131.2zm178.5 4.5c-63.4-16-165-14.9-165 59.3 0 77.1 108.2 73.6 165 59.2V287C312.9 311.7 253 309 253 256s59.8-55.6 107.5-31.2v-28zM544 286.5c0-18.5-16.5-30.5-38-32v-.8c19.5-2.7 30.3-15.5 30.3-30.2 0-19-15.7-30-37-31 0 0 6.3-.3-120.3-.3v127.5h122.7c24.3.1 42.3-12.9 42.3-33.2z"},mastercard:{height:512,width:576,path:"M482.9 410.3c0 6.8-4.6 11.7-11.2 11.7-6.8 0-11.2-5.2-11.2-11.7 0-6.5 4.4-11.7 11.2-11.7 6.6 0 11.2 5.2 11.2 11.7zm-310.8-11.7c-7.1 0-11.2 5.2-11.2 11.7 0 6.5 4.1 11.7 11.2 11.7 6.5 0 10.9-4.9 10.9-11.7-.1-6.5-4.4-11.7-10.9-11.7zm117.5-.3c-5.4 0-8.7 3.5-9.5 8.7h19.1c-.9-5.7-4.4-8.7-9.6-8.7zm107.8.3c-6.8 0-10.9 5.2-10.9 11.7 0 6.5 4.1 11.7 10.9 11.7 6.8 0 11.2-4.9 11.2-11.7 0-6.5-4.4-11.7-11.2-11.7zm105.9 26.1c0 .3.3.5.3 1.1 0 .3-.3.5-.3 1.1-.3.3-.3.5-.5.8-.3.3-.5.5-1.1.5-.3.3-.5.3-1.1.3-.3 0-.5 0-1.1-.3-.3 0-.5-.3-.8-.5-.3-.3-.5-.5-.5-.8-.3-.5-.3-.8-.3-1.1 0-.5 0-.8.3-1.1 0-.5.3-.8.5-1.1.3-.3.5-.3.8-.5.5-.3.8-.3 1.1-.3.5 0 .8 0 1.1.3.5.3.8.3 1.1.5s.2.6.5 1.1zm-2.2 1.4c.5 0 .5-.3.8-.3.3-.3.3-.5.3-.8 0-.3 0-.5-.3-.8-.3 0-.5-.3-1.1-.3h-1.6v3.5h.8V426h.3l1.1 1.4h.8l-1.1-1.3zM576 81v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V81c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM64 220.6c0 76.5 62.1 138.5 138.5 138.5 27.2 0 53.9-8.2 76.5-23.1-72.9-59.3-72.4-171.2 0-230.5-22.6-15-49.3-23.1-76.5-23.1-76.4-.1-138.5 62-138.5 138.2zm224 108.8c70.5-55 70.2-162.2 0-217.5-70.2 55.3-70.5 162.6 0 217.5zm-142.3 76.3c0-8.7-5.7-14.4-14.7-14.7-4.6 0-9.5 1.4-12.8 6.5-2.4-4.1-6.5-6.5-12.2-6.5-3.8 0-7.6 1.4-10.6 5.4V392h-8.2v36.7h8.2c0-18.9-2.5-30.2 9-30.2 10.2 0 8.2 10.2 8.2 30.2h7.9c0-18.3-2.5-30.2 9-30.2 10.2 0 8.2 10 8.2 30.2h8.2v-23zm44.9-13.7h-7.9v4.4c-2.7-3.3-6.5-5.4-11.7-5.4-10.3 0-18.2 8.2-18.2 19.3 0 11.2 7.9 19.3 18.2 19.3 5.2 0 9-1.9 11.7-5.4v4.6h7.9V392zm40.5 25.6c0-15-22.9-8.2-22.9-15.2 0-5.7 11.9-4.8 18.5-1.1l3.3-6.5c-9.4-6.1-30.2-6-30.2 8.2 0 14.3 22.9 8.3 22.9 15 0 6.3-13.5 5.8-20.7.8l-3.5 6.3c11.2 7.6 32.6 6 32.6-7.5zm35.4 9.3l-2.2-6.8c-3.8 2.1-12.2 4.4-12.2-4.1v-16.6h13.1V392h-13.1v-11.2h-8.2V392h-7.6v7.3h7.6V416c0 17.6 17.3 14.4 22.6 10.9zm13.3-13.4h27.5c0-16.2-7.4-22.6-17.4-22.6-10.6 0-18.2 7.9-18.2 19.3 0 20.5 22.6 23.9 33.8 14.2l-3.8-6c-7.8 6.4-19.6 5.8-21.9-4.9zm59.1-21.5c-4.6-2-11.6-1.8-15.2 4.4V392h-8.2v36.7h8.2V408c0-11.6 9.5-10.1 12.8-8.4l2.4-7.6zm10.6 18.3c0-11.4 11.6-15.1 20.7-8.4l3.8-6.5c-11.6-9.1-32.7-4.1-32.7 15 0 19.8 22.4 23.8 32.7 15l-3.8-6.5c-9.2 6.5-20.7 2.6-20.7-8.6zm66.7-18.3H408v4.4c-8.3-11-29.9-4.8-29.9 13.9 0 19.2 22.4 24.7 29.9 13.9v4.6h8.2V392zm33.7 0c-2.4-1.2-11-2.9-15.2 4.4V392h-7.9v36.7h7.9V408c0-11 9-10.3 12.8-8.4l2.4-7.6zm40.3-14.9h-7.9v19.3c-8.2-10.9-29.9-5.1-29.9 13.9 0 19.4 22.5 24.6 29.9 13.9v4.6h7.9v-51.7zm7.6-75.1v4.6h.8V302h1.9v-.8h-4.6v.8h1.9zm6.6 123.8c0-.5 0-1.1-.3-1.6-.3-.3-.5-.8-.8-1.1-.3-.3-.8-.5-1.1-.8-.5 0-1.1-.3-1.6-.3-.3 0-.8.3-1.4.3-.5.3-.8.5-1.1.8-.5.3-.8.8-.8 1.1-.3.5-.3 1.1-.3 1.6 0 .3 0 .8.3 1.4 0 .3.3.8.8 1.1.3.3.5.5 1.1.8.5.3 1.1.3 1.4.3.5 0 1.1 0 1.6-.3.3-.3.8-.5 1.1-.8.3-.3.5-.8.8-1.1.3-.6.3-1.1.3-1.4zm3.2-124.7h-1.4l-1.6 3.5-1.6-3.5h-1.4v5.4h.8v-4.1l1.6 3.5h1.1l1.4-3.5v4.1h1.1v-5.4zm4.4-80.5c0-76.2-62.1-138.3-138.5-138.3-27.2 0-53.9 8.2-76.5 23.1 72.1 59.3 73.2 171.5 0 230.5 22.6 15 49.5 23.1 76.5 23.1 76.4.1 138.5-61.9 138.5-138.4z"}},T={"fal-cloud-bolt-sun":{html:'\n \n \n \n \n \n \n ',width:576,height:512},"fa-ellipsis":{path:"M16 12.25c-2.071 0-3.75 1.679-3.75 3.75s1.679 3.75 3.75 3.75c2.071 0 3.75-1.679 3.75-3.75v0c-0.003-2.070-1.68-3.747-3.75-3.75h-0zM16 18.25c-1.243 0-2.25-1.007-2.25-2.25s1.007-2.25 2.25-2.25c1.243 0 2.25 1.007 2.25 2.25v0c-0.002 1.242-1.008 2.248-2.25 2.25h-0zM5 12.25c-2.071 0-3.75 1.679-3.75 3.75s1.679 3.75 3.75 3.75c2.071 0 3.75-1.679 3.75-3.75v0c-0.003-2.070-1.68-3.747-3.75-3.75h-0zM5 18.25c-1.243 0-2.25-1.007-2.25-2.25s1.007-2.25 2.25-2.25c1.243 0 2.25 1.007 2.25 2.25v0c-0.002 1.242-1.008 2.248-2.25 2.25h-0zM27 12.25c-2.071 0-3.75 1.679-3.75 3.75s1.679 3.75 3.75 3.75c2.071 0 3.75-1.679 3.75-3.75v0c-0.002-2.070-1.68-3.748-3.75-3.75h-0zM27 18.25c-1.243 0-2.25-1.007-2.25-2.25s1.007-2.25 2.25-2.25c1.243 0 2.25 1.007 2.25 2.25v0c-0.002 1.242-1.008 2.248-2.25 2.25h-0z",width:32,height:32},"fal-circle-info":{height:24,width:24,path:"M11 7v2h2V7zm3 10v-2h-1v-4h-3v2h1v2h-1v2zm8-5c0 5.5-4.5 10-10 10S2 17.5 2 12S6.5 2 12 2s10 4.5 10 10m-2 0c0-4.42-3.58-8-8-8s-8 3.58-8 8s3.58 8 8 8s8-3.58 8-8"}},A={"fa-palette":{width:512,height:512,path:"M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3H344c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"},"fa-location-dot":{width:384,height:512,path:"M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"},"fa-sun":{width:512,height:512,path:"M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"},"fa-sunrise":{path:"M551.1 463.1L491.5 464l29.38-44.75c7.375-11.12 8.75-25.25 3.625-37.75c-5.25-12.38-16.12-21.5-29.25-24.25l-70.75-14.5L410 272c-2.75-13.25-11.75-24.25-24.25-29.38c-12.5-5.25-26.62-3.75-37.63 3.625L287.8 286L227.6 246.1c-22.5-14.88-56.5-.875-61.88 25.62l-14.5 70.88L80.63 357c-13.38 2.75-24.12 11.75-29.38 24.25c-5 12.5-3.75 26.5 3.75 37.75L84.75 464l-60.75-.0065C10.8 463.1 0 474.8 0 487.1S10.8 512 24 512H551.1C565.2 512 576 501.2 576 487.1S565.2 463.1 551.1 463.1zM234.6 464c4.625-15.62 16-29 32.13-35.75c28.5-11.75 61.5 1.875 73.25 30.38c.75 1.75 1.125 3.625 1.625 5.375H234.6zM434 464h-43.25c-1.25-8-3.125-16-6.375-23.75c-21.88-53-82.88-78.25-135.9-56.38C213.8 398.3 191.1 429.4 185.8 464h-43.5l-40.88-62.13l90.88-18.62l18.5-90.88l77.38 51.25l77.25-51.13l18.75 90.88l90.75 18.75L434 464zM224.1 120.1L264 81.94V200C264 213.3 274.8 224 288 224s24-10.75 24-24V81.94l39.03 39.03C355.7 125.7 361.9 128 368 128s12.28-2.344 16.97-7.031c9.375-9.375 9.375-24.56 0-33.94l-80-80c-9.375-9.375-24.56-9.375-33.94 0l-80 80c-9.375 9.375-9.375 24.56 0 33.94S215.6 130.3 224.1 120.1z",width:576,height:512},"fa-crosshairs":{width:512,height:512,path:"M256 0c17.7 0 32 14.3 32 32V42.4c93.7 13.9 167.7 88 181.6 181.6H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H469.6c-13.9 93.7-88 167.7-181.6 181.6V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V469.6C130.3 455.7 56.3 381.7 42.4 288H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H42.4C56.3 130.3 130.3 56.3 224 42.4V32c0-17.7 14.3-32 32-32zM107.4 288c12.5 58.3 58.4 104.1 116.6 116.6V384c0-17.7 14.3-32 32-32s32 14.3 32 32v20.6c58.3-12.5 104.1-58.4 116.6-116.6H384c-17.7 0-32-14.3-32-32s14.3-32 32-32h20.6C392.1 165.7 346.3 119.9 288 107.4V128c0 17.7-14.3 32-32 32s-32-14.3-32-32V107.4C165.7 119.9 119.9 165.7 107.4 224H128c17.7 0 32 14.3 32 32s-14.3 32-32 32H107.4zM256 224a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"},"fa-arrows-rotate":{width:512,height:512,path:"M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H352c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V432c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H160c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"},"fa-hand":{height:512,width:512,path:"M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V336c0 1.5 0 3.1 .1 4.6L67.6 283c-16-15.2-41.3-14.6-56.6 1.4s-14.6 41.3 1.4 56.6L124.8 448c43.1 41.1 100.4 64 160 64H304c97.2 0 176-78.8 176-176V128c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V32z"},"fa-circle-info":{height:512,width:512,path:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"},"fa-gear":{height:512,width:512,path:"M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"},"fas-ellipsis":{height:512,width:448,path:"M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"}},S={width:512,height:512,path:"M519.74,48.88S295.06,.1,295.06,.1c-1.37-.72-256.41,42.34-257.96,42.27-10.92,1.53-11.51,18.19-11.36,18.93,0,0,0,44.72,0,44.72,0,3.74,2.86,6.59,6.02,6.01,7.03-.15,31.47-7.79,37.99-5.03,0,0,162.56,40.69,162.56,40.69,3.56,.89,6.12,4.55,6.12,8.78,0,0,0,270.6,0,270.6,0,4.79-2.62,9.06-6.54,10.64-3.82,1.86-55.81,15.98-58.01,17.15h0s-.27,.02,0-.01c-3.22-.78,9.44-2.56,9.29-9.98,0,0,0-269.35,0-269.35,0-3.27-1.95-6.11-4.7-6.84,0,0-170.04-45.33-170.04-45.33-3.8-1.01-7.42,2.33-7.42,6.84s0,253.73,0,253.73c0,3.04,1.69,5.74,4.19,6.68l24.33,9.14c-5.7,1.41-3.3,12.23-3.78,16.37,0,2.63,1.45,4.97,3.59,5.78,0,0,266.48,101.8,266.48,101.8,3.37,1.29,6.83-1.64,6.83-5.78V133.66c0-8.72,5.15-16.28,12.42-18.23,0,0,204.89-54.63,204.89-54.63,5.51-1.47,5.35-10.71-.21-11.92Z"},x={width:512,height:540,path:"M519.74,48.88S295.06,.1,295.06,.1c-1.37-.72-256.41,42.34-257.96,42.27-10.92,1.53-11.51,18.19-11.36,18.93,0,0,0,44.72,0,44.72,0,3.74,2.86,6.59,6.02,6.01,7.03-.15,31.47-7.79,37.99-5.03,0,0,162.56,40.69,162.56,40.69,3.56,.89,6.12,4.55,6.12,8.78,0,0,0,270.6,0,270.6,0,4.79-2.62,9.06-6.54,10.64-3.82,1.86-55.81,15.98-58.01,17.15h0s-.27,.02,0-.01c-3.22-.78,9.44-2.56,9.29-9.98,0,0,0-269.35,0-269.35,0-3.27-1.95-6.11-4.7-6.84,0,0-170.04-45.33-170.04-45.33-3.8-1.01-7.42,2.33-7.42,6.84s0,253.73,0,253.73c0,3.04,1.69,5.74,4.19,6.68l24.33,9.14c-5.7,1.41-3.3,12.23-3.78,16.37,0,2.63,1.45,4.97,3.59,5.78,0,0,266.48,101.8,266.48,101.8,3.37,1.29,6.83-1.64,6.83-5.78V133.66c0-8.72,5.15-16.28,12.42-18.23,0,0,204.89-54.63,204.89-54.63,5.51-1.47,5.35-10.71-.21-11.92Z"},w={html:'\n \n \n \n \n \n '},C={html:'\n \n \n \n \n \n '},N={height:256,width:256,html:'\n\n'},M={"fa-mailbox":{path:"M184 192h-80C90.75 192 80 202.7 80 216c0 13.25 10.75 24 24 24h80c13.25 0 24-10.75 24-24C208 202.7 197.3 192 184 192zM432 64h-288C64.5 64 0 128.5 0 208v207.1c0 17.62 14.38 31.1 32 31.1h512c17.62 0 32-14.37 32-31.1V208C576 128.5 511.5 64 432 64zM240 400h-192v-192c0-53 43-96 96-96s96 43 96 96V400zM528 400H288V208C288 171 273.6 137.5 250.6 112H432c53 0 96 43 96 96V400zM464 192h-104c-13.2 0-24 10.8-24 24c0 13.2 10.8 24 24 24H416v32C416 280.8 423.2 288 432 288l32-.0001c8.836 0 16-7.164 16-15.1v-64C480 199.2 472.8 192 464 192z",width:576,height:512},"fa-circle-phone-flip":{path:"M371.9 140l-50.38-11.62c-7.344-1.703-14.88 2.109-17.93 9.062L280.3 191.7c-2.719 6.391-.8828 13.83 4.492 18.22l26.91 22.05c-16.99 34.61-45.14 62.75-79.77 79.75L209.9 284.9C205.6 279.5 198.1 277.6 191.7 280.4L137.5 303.6c-6.953 3-10.74 10.58-9.055 17.88l11.62 50.39c1.633 7.125 7.9 12.11 15.24 12.11c126.1 0 228.7-102.6 228.7-228.8C384 147.9 379 141.7 371.9 140zM256 0c-141.4 0-256 114.6-256 256c0 141.4 114.6 256 256 256s256-114.6 256-256C512 114.6 397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464z",width:512,height:512},"fa-cube":{path:"M234.5 5.7c13.9-5 29.1-5 43.1 0l192 68.6C495 83.4 512 107.5 512 134.6V377.4c0 27-17 51.2-42.5 60.3l-192 68.6c-13.9 5-29.1 5-43.1 0l-192-68.6C17 428.6 0 404.5 0 377.4V134.6c0-27 17-51.2 42.5-60.3l192-68.6zM256 66L82.3 128 256 190l173.7-62L256 66zm32 368.6l160-57.1v-188L288 246.6v188z",height:512,width:512},"fa-temperature-empty":{path:"M112 112c0-26.5 21.5-48 48-48s48 21.5 48 48V276.5c0 17.3 7.1 31.9 15.3 42.5C233.8 332.6 240 349.5 240 368c0 44.2-35.8 80-80 80s-80-35.8-80-80c0-18.5 6.2-35.4 16.7-48.9c8.2-10.6 15.3-25.2 15.3-42.5V112zM160 0C98.1 0 48 50.2 48 112V276.5c0 .1-.1 .3-.2 .6c-.2 .6-.8 1.6-1.7 2.8C27.2 304.2 16 334.8 16 368c0 79.5 64.5 144 144 144s144-64.5 144-144c0-33.2-11.2-63.8-30.1-88.1c-.9-1.2-1.5-2.2-1.7-2.8c-.1-.3-.2-.5-.2-.6V112C272 50.2 221.9 0 160 0zm0 416a48 48 0 1 0 0-96 48 48 0 1 0 0 96z",height:512,width:320},"fa-map":{path:"M554 33.15L384 95.1L212 35.25c-6.5-2.125-13.19-3.249-20.06-3.249c-6.625 0-13.56 .9995-19.94 3.124L20.12 87.1C8 92.75 0 104.6 0 117.6v346.4c0 10.89 10.85 19.02 22 14.84L192 415.1l172 60.75c13 4.25 27 4.375 40 .125l151.9-52.88C568 419.2 576 407.4 576 394.4V48.01C576 37.12 565.2 28.96 554 33.15zM224 90.37l128 45.25v286l-128-45.25V90.37zM48 417.1V129.1l128-44.62v286.3L48 417.1zM528 382.9l-128 44.63V141.2l128-47.25V382.9z",width:576,height:512},"fa-temperature-quarter":{path:"M160 64c-26.5 0-48 21.5-48 48V276.5c0 17.3-7.1 31.9-15.3 42.5C86.2 332.6 80 349.5 80 368c0 44.2 35.8 80 80 80s80-35.8 80-80c0-18.5-6.2-35.4-16.7-48.9c-8.2-10.6-15.3-25.2-15.3-42.5V112c0-26.5-21.5-48-48-48zM48 112C48 50.2 98.1 0 160 0s112 50.1 112 112V276.5c0 .1 .1 .3 .2 .6c.2 .6 .8 1.6 1.7 2.8c18.9 24.4 30.1 55 30.1 88.1c0 79.5-64.5 144-144 144S16 447.5 16 368c0-33.2 11.2-63.8 30.1-88.1c.9-1.2 1.5-2.2 1.7-2.8c.1-.3 .2-.5 .2-.6V112zM208 368c0 26.5-21.5 48-48 48s-48-21.5-48-48c0-20.9 13.4-38.7 32-45.3V272c0-8.8 7.2-16 16-16s16 7.2 16 16v50.7c18.6 6.6 32 24.4 32 45.3z",height:512,width:320},"fa-temperature-three-quarters":{path:"M272 112c0-61.88-50.12-112-111.1-112S48 50.13 48 112v166.5c-19.75 24.62-32 55.5-32 89.5c0 79.5 64.5 143.1 144 143.1S304 447.5 304 368c0-33.1-12.25-64.88-32-89.5V112zM160 464c-52.88 0-96-43.13-96-96c0-27 11.75-47.25 21.5-59.5L96 295.4V112c0-35.25 28.75-64 64-64s64 28.75 64 64v183.2l10.5 13.13C244.3 320.8 256 341 256 368C256 420.9 212.9 464 160 464zM176 322.9V160c0-8.75-7.25-16-16-16s-16 7.25-16 16v162.9c-18.62 6.625-32 24.25-32 45.13c0 26.5 21.5 48 48 48s48-21.5 48-48C208 347.1 194.6 329.5 176 322.9z",width:320,height:512},"fa-temperature-half":{path:"M272 112c0-61.88-50.12-112-111.1-112S48 50.13 48 112v166.5c-19.75 24.62-32 55.5-32 89.5c0 79.5 64.5 143.1 144 143.1S304 447.5 304 368c0-33.1-12.25-64.88-32-89.5V112zM160 464c-52.88 0-96-43.13-96-96c0-27 11.75-47.25 21.5-59.5L96 295.4V112c0-35.25 28.75-64 64-64s64 28.75 64 64v183.2l10.5 13.13C244.3 320.8 256 341 256 368C256 420.9 212.9 464 160 464zM176 322.9l.0002-114.9c0-8.75-7.25-16-16-16c-8.75 0-15.1 7.25-15.1 16L144 322.9c-18.62 6.625-32 24.25-32 45.13c0 26.5 21.5 48 48 48s48-21.5 48-48C208 347.1 194.6 329.5 176 322.9z",width:320,height:512},"fa-temperature-full":{path:"M272 112c0-61.88-50.12-112-111.1-112S48 50.13 48 112v166.5c-19.75 24.62-32 55.5-32 89.5c0 79.5 64.5 143.1 144 143.1S304 447.5 304 368c0-33.1-12.25-64.88-32-89.5V112zM160 464c-52.88 0-96-43.13-96-96c0-27 11.75-47.25 21.5-59.5L96 295.4V112c0-35.25 28.75-64 64-64s64 28.75 64 64v183.2l10.5 13.13C244.3 320.8 256 341 256 368C256 420.9 212.9 464 160 464zM176 322.9V112c0-8.75-7.25-16-16-16s-16 7.25-16 16v210.9c-18.62 6.625-32 24.25-32 45.13c0 26.5 21.5 48 48 48s48-21.5 48-48C208 347.1 194.6 329.5 176 322.9z",width:320,height:512},"fa-temperature-high":{path:"M400 0C355.9 0 320 35.88 320 80S355.9 160 400 160S480 124.1 480 80S444.1 0 400 0zM400 112c-17.75 0-32-14.25-32-32s14.25-32 32-32s32 14.25 32 32S417.8 112 400 112zM288 112C288 50.12 237.9 0 176 0S64 50.12 64 112v166.5C44.25 303.1 32 334 32 368C32 447.5 96.5 512 176 512s144-64.5 144-144c0-33.1-12.25-64.88-32-89.5V112zM176 464c-52.88 0-96-43.13-96-96c0-27 11.75-47.25 21.5-59.5L112 295.4V112c0-35.25 28.75-64 64-64s64 28.75 64 64v183.2l10.5 13.13C260.3 320.8 272 341 272 368C272 420.9 228.9 464 176 464zM192 322.9V112C192 103.3 184.8 96 176 96S160 103.2 160 112v210.9C141.4 329.5 128 347.1 128 368C128 394.5 149.5 416 176 416S224 394.5 224 368C224 347.1 210.6 329.5 192 322.9z",width:512,height:512},"fa-memory":{path:"M64 64C28.7 64 0 92.7 0 128v7.4c0 6.8 4.4 12.6 10.1 16.3C23.3 160.3 32 175.1 32 192s-8.7 31.7-21.9 40.3C4.4 236 0 241.8 0 248.6V320H576V248.6c0-6.8-4.4-12.6-10.1-16.3C552.7 223.7 544 208.9 544 192s8.7-31.7 21.9-40.3c5.7-3.7 10.1-9.5 10.1-16.3V128c0-35.3-28.7-64-64-64H64zM576 352H0v64c0 17.7 14.3 32 32 32H80V416c0-8.8 7.2-16 16-16s16 7.2 16 16v32h96V416c0-8.8 7.2-16 16-16s16 7.2 16 16v32h96V416c0-8.8 7.2-16 16-16s16 7.2 16 16v32h96V416c0-8.8 7.2-16 16-16s16 7.2 16 16v32h48c17.7 0 32-14.3 32-32V352zM192 160v64c0 17.7-14.3 32-32 32s-32-14.3-32-32V160c0-17.7 14.3-32 32-32s32 14.3 32 32zm128 0v64c0 17.7-14.3 32-32 32s-32-14.3-32-32V160c0-17.7 14.3-32 32-32s32 14.3 32 32zm128 0v64c0 17.7-14.3 32-32 32s-32-14.3-32-32V160c0-17.7 14.3-32 32-32s32 14.3 32 32z",width:576,height:512},"fa-microchip":{path:"M176 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64c-35.3 0-64 28.7-64 64H24c-13.3 0-24 10.7-24 24s10.7 24 24 24H64v56H24c-13.3 0-24 10.7-24 24s10.7 24 24 24H64v56H24c-13.3 0-24 10.7-24 24s10.7 24 24 24H64c0 35.3 28.7 64 64 64v40c0 13.3 10.7 24 24 24s24-10.7 24-24V448h56v40c0 13.3 10.7 24 24 24s24-10.7 24-24V448h56v40c0 13.3 10.7 24 24 24s24-10.7 24-24V448c35.3 0 64-28.7 64-64h40c13.3 0 24-10.7 24-24s-10.7-24-24-24H448V280h40c13.3 0 24-10.7 24-24s-10.7-24-24-24H448V176h40c13.3 0 24-10.7 24-24s-10.7-24-24-24H448c0-35.3-28.7-64-64-64V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H280V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H176V24zM160 128H352c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H160c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32zm192 32H160V352H352V160z",width:576,height:512},"fa-microchip-ai":{path:"M226.3 183.1c-6.375-14.56-30.28-14.56-36.66 0l-56 128c-4.422 10.12 .1875 21.91 10.31 26.34c10.14 4.406 21.91-.2031 26.34-10.31l5.289-12.09C175.8 315.9 175.9 316 176 316h64c.1348 0 .248-.0762 .3828-.0781l5.289 12.09C248.1 335.5 256.3 340 264 340c2.672 0 5.391-.5313 8-1.672c10.12-4.438 14.73-16.22 10.31-26.34L226.3 183.1zM193.1 276L208 241.9L222.9 276H193.1zM336 172c-11.05 0-20 8.953-20 20v128c0 11.05 8.953 20 20 20s20-8.953 20-20V192C356 180.1 347 172 336 172zM488 280C501.3 280 512 269.3 512 256s-10.75-24-24-24H448v-48h40C501.3 184 512 173.3 512 160s-10.75-24-24-24H448V128c0-35.35-28.65-64-64-64h-8V24C376 10.75 365.3 0 352 0s-24 10.75-24 24V64h-48V24C280 10.75 269.3 0 256 0S232 10.75 232 24V64h-48V24C184 10.75 173.3 0 160 0S136 10.75 136 24V64H128C92.65 64 64 92.65 64 128v8H24C10.75 136 0 146.8 0 160s10.75 24 24 24H64v48H24C10.75 232 0 242.8 0 256s10.75 24 24 24H64v48H24C10.75 328 0 338.8 0 352s10.75 24 24 24H64V384c0 35.35 28.65 64 64 64h8v40C136 501.3 146.8 512 160 512s24-10.75 24-24V448h48v40C232 501.3 242.8 512 256 512s24-10.75 24-24V448h48v40c0 13.25 10.75 24 24 24s24-10.75 24-24V448H384c35.35 0 64-28.65 64-64v-8h40c13.25 0 24-10.75 24-24s-10.75-24-24-24H448v-48H488zM400 384c0 8.822-7.178 16-16 16H128c-8.822 0-16-7.178-16-16V128c0-8.822 7.178-16 16-16h256c8.822 0 16 7.178 16 16V384z",width:512,height:512},"fa-disc-drive":{path:"M256 112C176.5 112 112 176.5 112 256s64.5 144 144 144s144-64.5 144-144S335.5 112 256 112zM256 288C238.4 288 224 273.6 224 256s14.38-32 32-32c17.62 0 32 14.38 32 32S273.6 288 256 288zM488 432H480V96c0-35.35-28.65-64-64-64H96C60.65 32 32 60.65 32 96v336H23.1C10.75 432 0 442.7 0 455.1S10.75 480 23.1 480H488c13.25 0 24-10.75 24-23.1S501.3 432 488 432zM432 432h-352V96c0-8.875 7.125-16 16-16h320c8.875 0 16 7.125 16 16V432z",width:512,height:512},"fal-star":{path:"M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.6 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z",width:576,height:512},"fa-biohazard":{path:"M173.2 0c-1.8 0-3.5 .7-4.8 2C138.5 32.3 120 74 120 120c0 26.2 6 50.9 16.6 73c-22 2.4-43.8 9.1-64.2 20.5C37.9 232.8 13.3 262.4 .4 296c-.7 1.7-.5 3.7 .5 5.2c2.2 3.7 7.4 4.3 10.6 1.3C64.2 254.3 158 245.1 205 324s-8.1 153.1-77.6 173.2c-4.2 1.2-6.3 5.9-4.1 9.6c1 1.6 2.6 2.7 4.5 3c36.5 5.9 75.2 .1 109.7-19.2c20.4-11.4 37.4-26.5 50.5-43.8c13.1 17.3 30.1 32.4 50.5 43.8c34.5 19.3 73.3 25.2 109.7 19.2c1.9-.3 3.5-1.4 4.5-3c2.2-3.7 .1-8.4-4.1-9.6C379.1 477.1 324 403 371 324s140.7-69.8 193.5-21.4c3.2 2.9 8.4 2.3 10.6-1.3c1-1.6 1.1-3.5 .5-5.2c-12.9-33.6-37.5-63.2-72.1-82.5c-20.4-11.4-42.2-18.1-64.2-20.5C450 170.9 456 146.2 456 120c0-46-18.5-87.7-48.4-118c-1.3-1.3-3-2-4.8-2c-5 0-8.4 5.2-6.7 9.9C421.7 80.5 385.6 176 288 176S154.3 80.5 179.9 9.9c1.7-4.7-1.6-9.9-6.7-9.9zM240 272a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM181.7 417.6c6.3-11.8 9.8-25.1 8.6-39.8c-19.5-18-34-41.4-41.2-67.8c-12.5-8.1-26.2-11.8-40-12.4c-9-.4-18.1 .6-27.1 2.7c7.8 57.1 38.7 106.8 82.9 139.4c6.8-6.7 12.6-14.1 16.8-22.1zM288 64c-28.8 0-56.3 5.9-81.2 16.5c2 8.3 5 16.2 9 23.5c6.8 12.4 16.7 23.1 30.1 30.3c13.3-4.1 27.5-6.3 42.2-6.3s28.8 2.2 42.2 6.3c13.4-7.2 23.3-17.9 30.1-30.3c4-7.3 7-15.2 9-23.5C344.3 69.9 316.8 64 288 64zM426.9 310c-7.2 26.4-21.7 49.7-41.2 67.8c-1.2 14.7 2.2 28.1 8.6 39.8c4.3 8 10 15.4 16.8 22.1c44.3-32.6 75.2-82.3 82.9-139.4c-9-2.2-18.1-3.1-27.1-2.7c-13.8 .6-27.5 4.4-40 12.4z",width:576,height:512},"fa-star":{path:"M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z",width:576,height:512},"fa-circle-user":{width:630,height:512,path:"M315,0C173.6,0,59,114.6,59,256s114.6,256,256,256s256-114.6,256-256S456.4,0,315,0z M315,480c-47.2,0-91-14.8-127.2-39.8\n c4.1-49.3,45-88.2,95.2-88.2h64c50.2,0,91.1,38.9,95.2,88.2C406,465.2,362.2,480,315,480z M470.7,416.7\n c-14.1-55.4-64-96.7-123.7-96.7h-64c-59.7,0-109.6,41.3-123.7,96.7C117.3,375.1,91,319,91,256C91,132.5,191.5,32,315,32\n s224,100.5,224,224C539,319,512.7,375.1,470.7,416.7z M315,128c-44.2,0-80,35.8-80,80s35.8,80,80,80s80-35.8,80-80\n C395,163.8,359.2,128,315,128z M315,256c-26.5,0-48-21.5-48-48s21.5-48,48-48s48,21.5,48,48S341.5,256,315,256z"},"fal-circle-user":{width:630,height:512,path:"M315,0C173.6,0,59,114.6,59,256s114.6,256,256,256s256-114.6,256-256S456.4,0,315,0z M315,480c-47.2,0-91-14.8-127.2-39.8\n c4.1-49.3,45-88.2,95.2-88.2h64c50.2,0,91.1,38.9,95.2,88.2C406,465.2,362.2,480,315,480z M470.7,416.7\n c-14.1-55.4-64-96.7-123.7-96.7h-64c-59.7,0-109.6,41.3-123.7,96.7C117.3,375.1,91,319,91,256C91,132.5,191.5,32,315,32\n s224,100.5,224,224C539,319,512.7,375.1,470.7,416.7z M315,128c-44.2,0-80,35.8-80,80s35.8,80,80,80s80-35.8,80-80\n C395,163.8,359.2,128,315,128z M315,256c-26.5,0-48-21.5-48-48s21.5-48,48-48s48,21.5,48,48S341.5,256,315,256z"},"fal-guage":{width:630,height:512,path:"M251,352c0-29.8,20.4-54.9,47.1-62V95.1c0-7.9,8.1-16,16-16c9.7,0,16.9,8.1,16.9,16V290c27.6,7.1,48,32.2,48,62\n c0,35.3-28.7,64-64,64S251,387.3,251,352L251,352z M315,384c17.7,0,32-14.3,32-32s-14.3-32-32-32s-32,14.3-32,32S297.3,384,315,384z\n M179,144c0-13.3,10.7-24,24-24s24,10.7,24,24s-10.7,24-24,24S179,157.3,179,144z M179,256c0,13.3-10.7,24-24,24\n c-13.2,0-24-10.7-24-24c0-13.3,10.8-24,24-24C168.3,232,179,242.7,179,256z M451,256c0-13.3,10.7-24,24-24s24,10.7,24,24\n c0,13.3-10.7,24-24,24S451,269.3,451,256z M451,144c0,13.3-10.7,24-24,24s-24-10.7-24-24s10.7-24,24-24S451,130.7,451,144z M59,256\n C59,114.6,173.6,0,315,0s256,114.6,256,256S456.4,512,315,512S59,397.4,59,256z M315,480c123.7,0,224-100.3,224-224S438.7,32,315,32\n S91,132.3,91,256S191.3,480,315,480z"},"fal-bag-shopping":{path:"M416 160h-72V120C344 53.83 290.2 0 224 0S104 53.83 104 120V160H32C14.33 160 0 174.3 0 192v240C0 476.2 35.82 512 80 512h288c44.18 0 80-35.82 80-80V192C448 174.3 433.7 160 416 160zM152 120C152 80.3 184.3 48 224 48s72 32.3 72 72V160h-144V120zM400 432c0 17.64-14.36 32-32 32h-288c-17.64 0-32-14.36-32-32v-224h56v56C104 277.3 114.8 288 128 288s24-10.75 24-24V208h144v56C296 277.3 306.8 288 320 288s24-10.75 24-24V208h56V432z",width:448,height:512},"fal-bags-shopping":{path:"M512 256H256c-35.35 0-64 28.65-64 64v128c0 35.35 28.65 64 64 64h256c35.35 0 64-28.65 64-64v-128C576 284.7 547.3 256 512 256zM480 351.1c0 52.94-43.06 96-96 96S288 404.9 288 352v-8c0-13.25 10.75-23.1 24-23.1S336 330.8 336 344V352c0 26.47 21.53 48 48 48s48-21.53 48-48v-8c0-13.25 10.75-23.1 24-23.1S480 330.8 480 344V351.1zM48 416V224c0-8.822 7.178-16 16-16h320c8.822 0 16 7.178 16 16H448c0-35.35-28.65-64-64-64l-64 0V96c0-52.94-43.06-96-96-96S128 43.06 128 96v64L64 160C28.65 160 0 188.7 0 224v192c0 35.35 28.65 64 64 64h96v-48H64C55.18 432 48 424.8 48 416zM176 96c0-26.47 21.53-48 48-48S272 69.53 272 96v64h-96V96z",width:576,height:512},"fas-plus":{height:512,width:488,path:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"},"fas-minus":{height:512,width:488,path:"M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"},"fas-cart-shopping-fast":{path:"M239.1 416c-26.51 0-47.1 21.49-47.1 48S213.5 512 239.1 512s47.1-21.49 47.1-48S266.5 416 239.1 416zM527.1 416c-26.51 0-47.1 21.49-47.1 48s21.49 48 47.1 48s48-21.49 48-48S554.5 416 527.1 416zM633.5 44.73C627.4 36.64 618.1 32 607.1 32H185.1L183.6 19.51C181.4 8.19 171.5 0 160 0H87.1C74.75 0 64 10.74 64 23.1C64 37.25 74.75 48 87.1 48h52.14l60.28 316.5C202.6 375.8 212.5 384 224 384H552c13.25 0 24-10.75 24-23.1C576 346.7 565.3 336 552 336H243.9L234.7 288h318.4c14.28 0 26.84-9.474 30.76-23.21l54.86-191.1C641.5 63.05 639.6 52.83 633.5 44.73zM541 240H225.6l-30.47-160h391.7L541 240zM24 144h80C117.3 144 128 133.3 128 120C128 106.7 117.3 96 104 96h-80C10.75 96 0 106.7 0 120C0 133.3 10.75 144 24 144zM24 224h96C133.3 224 144 213.3 144 200c0-13.26-10.74-24-24-24h-96C10.75 176 0 186.7 0 200C0 213.3 10.75 224 24 224zM136 256h-112C10.75 256 0 266.7 0 280C0 293.3 10.75 304 24 304h112C149.3 304 160 293.3 160 280C160 266.7 149.3 256 136 256z",width:640,height:512},"fas-location-pin":{path:"M384 192c0 87.4-117 243-168.3 307.2c-12.3 15.3-35.1 15.3-47.4 0C117 435 0 279.4 0 192C0 86 86 0 192 0S384 86 384 192z",width:384,height:512},"fas-circle-check":{width:512,height:512,path:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"},"fa-plus-minus":{path:"M40 200h128v128c0 13.25 10.75 24.01 24 24.01S216 341.3 216 328v-128h128c13.25 0 24-10.74 24-23.99S357.3 152 344 152h-128v-128c0-13.25-10.75-23.99-24-23.99S168 10.75 168 24v128h-128c-13.25 0-24 10.76-24 24.01S26.75 200 40 200zM352 464H32c-13.25 0-24 10.75-24 24S18.75 512 32 512h320c13.25 0 24-10.76 24-24.01S365.3 464 352 464z",width:384,height:512},"fa-up-right-and-down-left-from-center":{path:"M183 295l-81.38 81.38l-47.03-47.03c-6.127-6.117-14.29-9.367-22.63-9.367c-4.117 0-8.279 .8086-12.25 2.43c-11.97 4.953-19.75 16.63-19.75 29.56v135.1C.0013 501.3 10.75 512 24 512h136c12.94 0 24.63-7.797 29.56-19.75c4.969-11.97 2.219-25.72-6.938-34.87l-47.03-47.03l81.38-81.38c9.375-9.375 9.375-24.56 0-33.94S192.4 285.7 183 295zM487.1 0h-136c-12.94 0-24.63 7.797-29.56 19.75c-4.969 11.97-2.219 25.72 6.938 34.87l47.04 47.03l-81.38 81.38c-9.375 9.375-9.375 24.56 0 33.94s24.56 9.375 33.94 0l81.38-81.38l47.03 47.03c6.127 6.117 14.3 9.35 22.63 9.35c4.117 0 8.275-.7918 12.24-2.413C504.2 184.6 512 172.9 512 159.1V23.1C512 10.75 501.3 0 487.1 0z",width:512,height:512},"fa-down-left-and-up-right-to-center":{path:"M488.1 23.03c-9.375-9.375-24.56-9.375-33.94 0l-81.38 81.38l-47.03-47.03c-6.127-6.117-14.3-9.35-22.63-9.35c-4.117 0-8.275 .7918-12.24 2.413c-11.97 4.953-19.75 16.63-19.75 29.56v135.1c0 13.25 10.74 23.1 24 23.1h136c12.94 0 24.63-7.797 29.56-19.75c4.969-11.97 2.219-25.72-6.938-34.87l-47.04-47.03l81.38-81.38C498.3 47.59 498.3 32.41 488.1 23.03zM215.1 272h-136c-12.94 0-24.63 7.797-29.56 19.75C45.47 303.7 48.22 317.5 57.37 326.6l47.04 47.03l-81.38 81.38c-9.375 9.375-9.375 24.56 0 33.94s24.56 9.375 33.94 0l81.38-81.38l47.03 47.03c6.127 6.117 14.29 9.367 22.63 9.367c4.117 0 8.279-.8086 12.25-2.43c11.97-4.953 19.75-16.63 19.75-29.56V296C239.1 282.7 229.3 272 215.1 272z",width:512,height:512},"fa-oil-can-drip":{path:"M637.9 168c-2.906-5.057-8.255-8.012-13.93-8.012c-1.131 0-2.287 .1203-3.426 .3625l-169.7 37.61l-49.97-30.44C392.8 162.6 383.3 160 373.3 160H288V112h40C341.3 112 352 101.3 352 88C352 74.74 341.3 64 328 64h-144C170.7 64 160 74.74 160 88C160 101.3 170.7 112 184 112H224V160H47.1C21.49 160 0 181.5 0 208v64.3c0 19.06 11.29 36.34 28.75 43.98l67.25 29.46L96 374C96 397.2 117.5 416 143.1 416h256.8c13.89 0 27.08-5.203 36.59-14.75l198.4-214.4C640.5 181.7 641.4 174.1 637.9 168zM96 293.3L48 272.3V208h47.1L96 293.3zM403.2 367.5C402.9 367.7 402.1 368 400.8 368H144v-160h229.3c1.238 0 2.119 .2695 2.561 .5391l66.47 40.49l88.65-19.65L403.2 367.5zM598.8 299.4c-1.541-2.627-4.192-3.941-6.843-3.941c-2.648 0-5.298 1.314-6.839 3.941c-13.26 22.59-41.16 72.81-41.16 95.32C543.1 424.1 565.4 448 591.1 448c26.61 0 47.1-23.91 47.1-53.28C639.1 372.2 612.1 321.1 598.8 299.4z",width:640,height:512},"fa-seal-exclamation":{path:"M493.6 222.1L448 176.5V112C448 85.49 426.5 64 400 64h-64.47l-45.59-45.59C280.6 9.039 268.3 4.354 256 4.354c-12.28 0-24.57 4.686-33.94 14.06L176.5 64H112C85.49 64 64 85.49 64 112v64.47L18.41 222.1c-18.75 18.74-18.75 49.14 0 67.88L64 335.5V400C64 426.5 85.49 448 112 448h64.47l45.59 45.59C231.4 502.1 243.7 507.6 256 507.6c12.29 0 24.57-4.688 33.94-14.06L335.5 448H400c26.51 0 48-21.49 48-48v-64.47l45.59-45.59C512.3 271.2 512.3 240.8 493.6 222.1zM414.1 301.6C405.1 310.6 400 322.8 400 335.5V400h-64.47c-12.73 0-24.94 5.057-33.94 14.06L256 459.6l-45.59-45.59C201.4 405.1 189.2 400 176.5 400H112v-64.47c0-12.73-5.057-24.94-14.06-33.94L52.35 256l45.59-45.59C106.9 201.4 112 189.2 112 176.5V112h64.47c12.73 0 24.94-5.057 33.94-14.06l45.57-45.59c.0039-.002-.0234 0 0 0l45.61 45.59C310.6 106.9 322.8 112 335.5 112H400v64.47c0 12.73 5.059 24.94 14.06 33.94L459.6 256L414.1 301.6zM256 288c13.25 0 24-10.75 24-24v-112C280 138.8 269.3 128 256 128S232 138.8 232 152v112C232 277.3 242.8 288 256 288zM256 321.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 369.9 238.6 384 256 384s31.44-14.08 31.44-31.44C287.4 335.2 273.4 321.1 256 321.1z",width:512,height:512},"fa-exclamation-triangle":{path:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z",width:16,height:16},"fa-trash-can":{path:"M432 80h-82.38l-34-56.75C306.1 8.827 291.4 0 274.6 0H173.4C156.6 0 141 8.827 132.4 23.25L98.38 80H16C7.125 80 0 87.13 0 96v16C0 120.9 7.125 128 16 128H32v320c0 35.35 28.65 64 64 64h256c35.35 0 64-28.65 64-64V128h16C440.9 128 448 120.9 448 112V96C448 87.13 440.9 80 432 80zM171.9 50.88C172.9 49.13 174.9 48 177 48h94c2.125 0 4.125 1.125 5.125 2.875L293.6 80H154.4L171.9 50.88zM352 464H96c-8.837 0-16-7.163-16-16V128h288v320C368 456.8 360.8 464 352 464zM224 416c8.844 0 16-7.156 16-16V192c0-8.844-7.156-16-16-16S208 183.2 208 192v208C208 408.8 215.2 416 224 416zM144 416C152.8 416 160 408.8 160 400V192c0-8.844-7.156-16-16-16S128 183.2 128 192v208C128 408.8 135.2 416 144 416zM304 416c8.844 0 16-7.156 16-16V192c0-8.844-7.156-16-16-16S288 183.2 288 192v208C288 408.8 295.2 416 304 416z",width:448,height:512},"fa-gas-pump":{path:"M493.2 107.2l-75.33-75.19C408.5 22.68 393.4 22.67 384 32c-9.408 9.365-9.426 24.59-.0392 33.98l32.04 31.9V160c0 28.12 20.88 51.25 48 55.25V376c0 13.25-10.75 24-24 24c-13.25 0-24-10.75-24-24v-32c0-48.6-39.4-88-88-88h-7.1l0-192c0-35.35-28.65-64-64-64H96C60.65 0 32 28.65 32 64L32 464H23.1C10.8 464 0 474.8 0 487.1S10.8 512 23.1 512h304C341.2 512 352 501.2 352 488S341.2 464 328 464H320l.0001-160h8c22.09 0 40 17.91 40 40v27.75c0 37.75 27 72 64.5 76c43 4.25 79.5-29.5 79.5-71.75V152.6C512 135.6 505.3 119.3 493.2 107.2zM272 464h-192v-224h192V464zM272 192h-192V64c0-8.837 7.163-16 16-16h160c8.837 0 16 7.163 16 16V192z",width:512,height:490},"fa-battery-half":{path:"M96 320h192V192H96V320zM544 192V160c0-35.35-28.65-64-64-64H64C28.65 96 0 124.7 0 160v192c0 35.35 28.65 64 64 64h416c35.35 0 64-28.65 64-64v-32c17.67 0 32-14.33 32-32V224C576 206.3 561.7 192 544 192zM496 352c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V160c0-8.822 7.178-16 16-16h416c8.822 0 16 7.178 16 16V352z",width:576,height:512},"fal-chart-mixed":{width:630,height:512,path:"M507.8 37.24C513.8 43.78 513.3 53.89 506.8 59.84L330.8 219.8C324.4 225.6 314.7 225.4 308.7 219.3L190.4 100.1L25.41 220.9C18.26 226.1 8.258 224.6 3.061 217.4C-2.137 210.3-.5565 200.3 6.59 195.1L182.6 67.06C188.1 62.43 197.7 63.12 203.3 68.69L320.5 185.9L485.2 36.16C491.8 30.22 501.9 30.7 507.8 37.24H507.8zM112 368V432C112 458.5 90.51 480 64 480C37.49 480 16 458.5 16 432V368C16 341.5 37.49 319.1 64 319.1C90.51 319.1 112 341.5 112 368zM80 432V368C80 359.2 72.84 352 64 352C55.16 352 48 359.2 48 368V432C48 440.8 55.16 448 64 448C72.84 448 80 440.8 80 432zM144 271.1C144 245.5 165.5 223.1 192 223.1C218.5 223.1 240 245.5 240 271.1V432C240 458.5 218.5 480 192 480C165.5 480 144 458.5 144 432V271.1zM192 255.1C183.2 255.1 176 263.2 176 271.1V432C176 440.8 183.2 448 192 448C200.8 448 208 440.8 208 432V271.1C208 263.2 200.8 255.1 192 255.1zM368 336V432C368 458.5 346.5 480 320 480C293.5 480 272 458.5 272 432V336C272 309.5 293.5 287.1 320 287.1C346.5 287.1 368 309.5 368 336zM336 432V336C336 327.2 328.8 319.1 320 319.1C311.2 319.1 304 327.2 304 336V432C304 440.8 311.2 448 320 448C328.8 448 336 440.8 336 432zM400 271.1C400 245.5 421.5 223.1 448 223.1C474.5 223.1 496 245.5 496 271.1V432C496 458.5 474.5 480 448 480C421.5 480 400 458.5 400 432V271.1zM448 255.1C439.2 255.1 432 263.2 432 271.1V432C432 440.8 439.2 448 448 448C456.8 448 464 440.8 464 432V271.1C464 263.2 456.8 255.1 448 255.1z"},"fal-chart-simple-horizontal":{width:630,height:512,path:"M448 272C448 298.5 426.5 320 400 320H48C21.49 320 0 298.5 0 272V240C0 213.5 21.49 192 48 192H400C426.5 192 448 213.5 448 240V272zM400 224H48C39.16 224 32 231.2 32 240V272C32 280.8 39.16 288 48 288H400C408.8 288 416 280.8 416 272V240C416 231.2 408.8 224 400 224zM256 432C256 458.5 234.5 480 208 480H48C21.49 480 0 458.5 0 432V400C0 373.5 21.49 352 48 352H208C234.5 352 256 373.5 256 400V432zM208 384H48C39.16 384 32 391.2 32 400V432C32 440.8 39.16 448 48 448H208C216.8 448 224 440.8 224 432V400C224 391.2 216.8 384 208 384zM48 160C21.49 160 0 138.5 0 112V80C0 53.49 21.49 32 48 32H336C362.5 32 384 53.49 384 80V112C384 138.5 362.5 160 336 160H48zM352 112V80C352 71.16 344.8 64 336 64H48C39.16 64 32 71.16 32 80V112C32 120.8 39.16 128 48 128H336C344.8 128 352 120.8 352 112z"},"fal-people-group":{width:630,height:512,path:"M72 88C72 57.07 97.07 32 128 32C158.9 32 184 57.07 184 88C184 118.9 158.9 144 128 144C97.07 144 72 118.9 72 88zM128 112C141.3 112 152 101.3 152 88C152 74.75 141.3 64 128 64C114.7 64 104 74.75 104 88C104 101.3 114.7 112 128 112zM0 280C0 222.6 46.56 176 104 176H152C165.3 176 178.1 178.5 189.8 183.1C198.1 186.3 202.1 195.6 198.9 203.8C195.7 212.1 186.4 216.1 178.2 212.9C170.1 209.7 161.3 208 152 208H104C101.3 208 98.63 208.1 96 208.4V416H160V384C160 375.2 167.2 368 176 368C184.8 368 192 375.2 192 384V424C192 437.3 181.3 448 168 448H88C74.75 448 64 437.3 64 424V376C26.44 360.4 .0003 323.3 .0003 280L0 280zM64 339.9V220.1C44.7 233 32 255 32 280C32 304.9 44.69 326.1 64 339.9zM512 144C481.1 144 456 118.9 456 88C456 57.07 481.1 32 512 32C542.9 32 568 57.07 568 88C568 118.9 542.9 144 512 144zM536 88C536 74.75 525.3 64 512 64C498.7 64 488 74.75 488 88C488 101.3 498.7 112 512 112C525.3 112 536 101.3 536 88zM576 376V424C576 437.3 565.3 448 552 448H472C458.7 448 448 437.3 448 424V384C448 375.2 455.2 368 464 368C472.8 368 480 375.2 480 384V416H544V208.4C541.4 208.1 538.7 208 536 208H488C478.7 208 469.9 209.7 461.8 212.9C453.6 216.1 444.3 212.1 441.1 203.8C437.9 195.6 441.1 186.3 450.2 183.1C461.9 178.5 474.7 175.1 488 175.1H536C593.4 175.1 640 222.6 640 279.1C640 323.3 613.6 360.4 576 376L576 376zM608 280C608 255 595.3 233 576 220.1V339.9C595.3 326.1 608 304.9 608 280zM384 96C384 131.3 355.3 160 320 160C284.7 160 256 131.3 256 96C256 60.65 284.7 32 320 32C355.3 32 384 60.65 384 96zM320 64C302.3 64 288 78.33 288 96C288 113.7 302.3 128 320 128C337.7 128 352 113.7 352 96C352 78.33 337.7 64 320 64zM336 192C393.4 192 440 238.6 440 296C440 336.1 417.3 370.9 384 388.3V456C384 469.3 373.3 480 360 480H280C266.7 480 256 469.3 256 456V388.3C222.7 370.9 200 336.1 200 296C200 238.6 246.6 192 304 192H336zM232 296C232 317.3 241.3 336.5 256 349.7V242.3C241.3 255.5 232 274.7 232 296zM352 448V225.8C346.9 224.6 341.5 224 336 224H304C298.5 224 293.1 224.6 288 225.8V448H352zM408 296C408 274.7 398.7 255.5 384 242.3V349.7C398.7 336.5 408 317.3 408 296z"},"fal-circle-dollar":{path:"M262 232.8L253.8 230.5C213.9 219.7 215.1 213.6 216.4 206.6c2.234-11.92 24.88-17.83 52.48-13.92c7.188 1.047 16.28 3.344 27.81 7.016c12.66 4.109 26.16-2.922 30.16-15.56c4.031-12.62-2.938-26.12-15.56-30.16c-12.37-3.955-22.26-6.373-31.23-7.939V128c0-13.25-10.75-24-24-24s-24 10.75-24 24v17.22C198.3 150.6 174.6 169.3 169.2 197.7c-10.62 56.73 47.28 72.44 72 79.16l8.594 2.281c43.95 11.61 47.58 16.67 45.78 26.28c-2.25 11.92-24.86 17.86-52.63 13.91C231.8 317.8 217.1 313.2 205.9 309.2L199.5 307c-12.67-4.109-26.17 2.734-30.28 15.34c-4.125 12.59 2.75 26.14 15.34 30.28l6.188 2.047c12.84 4.281 27.23 8.797 41.34 11.24V384c0 13.25 10.75 24 24 24s24-10.75 24-24v-17.19c33.68-5.404 57.38-24.12 62.72-52.53C353.5 256.9 296.3 241.8 262 232.8zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464z",width:512,height:512},"fa-play-pause":{path:"M488 64c-13.25 0-24 10.75-24 24v336c0 13.25 10.75 24 24 24S512 437.3 512 424V88C512 74.75 501.3 64 488 64zM344 64C330.7 64 320 74.75 320 88v336c0 13.25 10.75 24 24 24s24-10.75 24-24V88C368 74.75 357.3 64 344 64zM32.22 448c7.002 0 14.15-2.305 20.29-7.406l192-159.1c15.25-12.87 15.25-36.37 0-49.24L52.51 71.41C46.36 66.31 39.22 64 32.22 64C15.71 64 0 76.81 0 96.03v319.9C0 435.2 15.71 448 32.22 448zM48 130.1L199.1 256L48 381.9V130.1z",width:512,height:512},"fa-expand":{path:"M136 32h-112C10.75 32 0 42.75 0 56v112C0 181.3 10.75 192 24 192C37.26 192 48 181.3 48 168V80h88C149.3 80 160 69.25 160 56S149.3 32 136 32zM424 32h-112C298.7 32 288 42.75 288 56c0 13.26 10.75 24 24 24h88v88C400 181.3 410.7 192 424 192S448 181.3 448 168v-112C448 42.75 437.3 32 424 32zM136 432H48v-88C48 330.7 37.25 320 24 320S0 330.7 0 344v112C0 469.3 10.75 480 24 480h112C149.3 480 160 469.3 160 456C160 442.7 149.3 432 136 432zM424 320c-13.26 0-24 10.75-24 24v88h-88c-13.26 0-24 10.75-24 24S298.7 480 312 480h112c13.25 0 24-10.75 24-24v-112C448 330.7 437.3 320 424 320z",width:448,height:512},"fa-bars":{width:14,height:14,path:"M0 2a1 1 0 011-1h12a1 1 0 011 1 1 1 0 01-1 1h-12a1 1 0 01-1-1zM0 7a1 1 0 011-1h12a1 1 0 011 1 1 1 0 01-1 1h-12a1 1 0 01-1-1zM0 12a1 1 0 011-1h12a1 1 0 011 1 1 1 0 01-1 1h-12a1 1 0 01-1-1z"},"fa-calendar":{width:448,height:512,path:"M400 64h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V160h352v298c0 3.3-2.7 6-6 6z"},"fa-calendar-day":{width:448,height:512,path:"M384 64h-40V24c0-13.25-10.75-24-23.1-24S296 10.75 296 24V64h-144V24C152 10.75 141.3 0 128 0S104 10.75 104 24V64H64C28.65 64 0 92.65 0 128v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V128C448 92.65 419.3 64 384 64zM400 448c0 8.824-7.178 16-16 16H64c-8.822 0-16-7.176-16-16V192h352V448zM112 384h96c8.75 0 16-7.25 16-16v-96C224 263.3 216.8 256 208 256h-96C103.3 256 96 263.3 96 272v96C96 376.8 103.3 384 112 384z"},"fa-calendar-days":{width:448,height:512,path:"M384 64h-40V24c0-13.25-10.75-24-23.1-24S296 10.75 296 24V64h-144V24C152 10.75 141.3 0 128 0S104 10.75 104 24V64H64C28.65 64 0 92.65 0 128v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V128C448 92.65 419.3 64 384 64zM400 192v104h-152V192H400zM200 192v104H48V192H200zM48 448v-104h152v120H64C55.18 464 48 456.8 48 448zM384 464h-136v-120h152V448C400 456.8 392.8 464 384 464z"},"fa-calendar-pen":{width:448,height:512,path:"M296.5 295.5l-48.01-48.01l18.23-18.23c7.029-7.031 18.44-7.031 25.47 0l22.54 22.53c7.029 7.031 7.029 18.44 0 25.47L296.5 295.5zM135.2 415.9l47.61-9.52c2.322-.4687 4.455-1.609 6.131-3.281l90.58-90.57L231.5 264.5l-90.58 90.57c-1.676 1.68-2.818 3.812-3.281 6.133l-9.521 47.61C127.3 413 130.1 416.7 135.2 415.9zM448 128v320c0 35.35-28.65 64-64 64H64c-35.35 0-64-28.65-64-64V128c0-35.35 28.65-64 64-64h40V24C104 10.75 114.8 0 128 0S152 10.75 152 24V64h144V24c0-13.25 10.75-24 24-24S344 10.75 344 24V64H384C419.3 64 448 92.65 448 128zM400 192h-352v256c0 8.824 7.178 16 16 16h320c8.822 0 16-7.176 16-16V192z"},"fa-dollar-sign":{width:288,height:512,path:"M211.9 242.1L95.6 208.9c-15.8-4.5-28.6-17.2-31.1-33.5C60.6 150 80.3 128 105 128h73.8c15.9 0 31.5 5 44.4 14.1 6.4 4.5 15 3.8 20.5-1.7l22.9-22.9c6.8-6.8 6.1-18.2-1.5-24.1C240.4 74.3 210.4 64 178.8 64H176V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48h-2.5C60.3 64 14.9 95.8 3.1 143.6c-13.9 56.2 20.2 111.2 73 126.3l116.3 33.2c15.8 4.5 28.6 17.2 31.1 33.5C227.4 362 207.7 384 183 384h-73.8c-15.9 0-31.5-5-44.4-14.1-6.4-4.5-15-3.8-20.5 1.7l-22.9 22.9c-6.8 6.8-6.1 18.2 1.5 24.1 24.6 19.1 54.6 29.4 86.3 29.4h2.8v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48h2.5c49.2 0 94.6-31.8 106.4-79.6 13.9-56.2-20.2-111.2-73-126.3z"},"fa-award":{width:448,height:512,path:"M446.34 433.21l-62.35-137.6c4.44-11.43 8.32-14.17 22.34-28.19a44.715 44.715 0 0 0 11.57-43.18c-8.29-30.95-8.3-26.65 0-57.62a44.721 44.721 0 0 0-11.57-43.18c-22.68-22.7-20.52-18.94-28.82-49.92a44.68 44.68 0 0 0-31.61-31.61c-30.96-8.29-27.22-6.13-49.9-28.81a44.714 44.714 0 0 0-43.19-11.58c-30.87 8.27-26.69 8.29-57.62 0A44.72 44.72 0 0 0 152 13.1c-22.66 22.66-18.93 20.51-49.9 28.81a44.68 44.68 0 0 0-31.61 31.61c-8.29 30.96-6.13 27.22-28.81 49.9-11.29 11.29-15.71 27.76-11.57 43.18 8.29 30.95 8.3 26.65 0 57.62a44.715 44.715 0 0 0 11.57 43.18c15.1 15.11 18.02 17.06 22.34 28.19L1.66 433.21c-5.96 13.15 4.85 27.44 20.45 27.44.29 0 .59-.01.88-.02l72.86-2.51 50.13 47.65C150.45 510 156.26 512 162 512c8.53 0 16.92-4.39 20.55-12.4L224 408.13l41.45 91.47c3.63 8.01 12.02 12.4 20.55 12.4 5.75 0 11.56-2 16.01-6.23l50.13-47.65 72.86 2.51c.3.01.59.02.88.02 15.6-.01 26.42-14.29 20.46-27.44zM153.73 446.9l-39.4-37.44-49.99 1.72 29.72-65.59c2.59 1.28 5.18 2.57 8.04 3.34 25.14 6.74 26.79 5.7 43.06 21.97 8.63 8.63 20.07 13.1 31.63 13.1 1.95 0 3.87-.55 5.81-.8l-28.87 63.7zm23.55-111.76c-22.02-22.08-33.74-24.8-60.92-32.09-11.34-42.3-17.04-45.88-39.4-68.24 11.51-42.93 7.89-49.38 0-78.79 30.96-30.96 31.22-37.69 39.41-68.24 29.09-7.78 37.07-8.22 68.25-39.4 42.62 11.42 49.19 7.94 78.79 0 21.29 21.29 25.65 27.98 68.24 39.4 11.34 42.3 17.04 45.88 39.4 68.25-11.33 42.3-8.19 48.26 0 78.81-21.29 21.29-27.98 25.66-39.4 68.25-26.27 7.04-38.28 9.44-60.93 32.09-31.14-18.18-67.02-15.45-93.44-.04zm176.51 75.01l-20.12-.69-39.4 37.44-28.87-63.7c1.94.26 3.86.8 5.81.8 11.55 0 23-4.47 31.63-13.1 16.41-16.41 17.81-15.2 43.06-21.97 2.85-.76 5.44-2.06 8.04-3.34l29.72 65.58-29.87-1.02zM320 192c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96 96-42.98 96-96zm-96 48c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"},"fa-dollar-sign-circle":{width:630,height:512,path:"M262 232.8L253.8 230.5C213.9 219.7 215.1 213.6 216.4 206.6c2.234-11.92 24.88-17.83 52.48-13.92c7.188 1.047 16.28 3.344 27.81 7.016c12.66 4.109 26.16-2.922 30.16-15.56c4.031-12.62-2.938-26.12-15.56-30.16c-12.37-3.955-22.26-6.373-31.23-7.939V128c0-13.25-10.75-24-24-24s-24 10.75-24 24v17.22C198.3 150.6 174.6 169.3 169.2 197.7c-10.62 56.73 47.28 72.44 72 79.16l8.594 2.281c43.95 11.61 47.58 16.67 45.78 26.28c-2.25 11.92-24.86 17.86-52.63 13.91C231.8 317.8 217.1 313.2 205.9 309.2L199.5 307c-12.67-4.109-26.17 2.734-30.28 15.34c-4.125 12.59 2.75 26.14 15.34 30.28l6.188 2.047c12.84 4.281 27.23 8.797 41.34 11.24V384c0 13.25 10.75 24 24 24s24-10.75 24-24v-17.19c33.68-5.404 57.38-24.12 62.72-52.53C353.5 256.9 296.3 241.8 262 232.8zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464z"},"fa-check-to-slot":{width:576,height:512,path:"M341.1 137.2L268.6 229.5L231.6 197.8C221.6 189.2 206.4 190.3 197.8 200.4C189.2 210.4 190.3 225.6 200.4 234.2l56 48C260.8 285.1 266.2 287.1 271.1 287.1c.7813 0 1.606-.0187 2.388-.1125c6.531-.625 12.5-3.906 16.53-9.062l88-112c8.188-10.41 6.375-25.5-4.062-33.69C364.4 124.1 349.3 126.8 341.1 137.2zM96 408h384c13.25 0 24-10.75 24-24c0-13.26-10.75-24-24-24V96c0-35.35-28.65-64-64-64H160C124.7 32 96 60.65 96 96v264c-13.25 0-24 10.74-24 24C72 397.3 82.75 408 96 408zM144 96c0-8.836 7.164-16 16-16h256c8.836 0 16 7.164 16 16v264h-288V96zM524.6 288c-13.25 0-24 10.75-24 24s10.75 24 24 24C526.5 336 528 337.5 528 339.4V424c0 4.406-3.594 8-8 8H56c-4.406 0-8-3.594-8-8v-84.58C48 337.5 49.53 336 51.41 336c13.25 0 24-10.75 24-24S64.66 288 51.41 288C23.06 288 0 311.1 0 339.4V424C0 454.9 25.13 480 56 480h464c30.88 0 56-25.12 56-56v-84.58C576 311.1 552.9 288 524.6 288z"},"fa-file-certificate":{width:512,height:512,path:"M247.4 338.3c7.5-7.5 10.37-18.5 7.625-28.75c-5.375-20.62-5.5-17.75 0-38.38c2.748-10.38-.125-21.38-7.625-28.88C232.5 227.1 233.1 229.6 228.5 209C225.9 198.8 217.1 190.8 207.9 188C187.5 182.4 190 183.9 175.1 168.8C167.8 161.3 156.1 158.3 146.9 161c-20.37 5.5-17.49 5.5-37.74 0C99.01 158.3 88.26 161.3 80.89 168.8C65.89 183.9 68.39 182.4 48.14 188C38.02 190.8 30.23 198.8 27.48 209c-5.375 20.75-4 18.12-18.87 33.25c-7.375 7.5-10.33 18.5-7.582 28.88c5.375 20.62 5.375 17.75 0 38.38c-2.75 10.25 .207 21.25 7.582 28.75c14.87 15.12 13.5 12.62 18.87 33.25c2.75 10.38 10.54 18.38 20.67 21.12c14.37 3.875 11.5 3 15.87 5V512l63.99-32l63.99 32v-114.4c4.25-2 1.499-1.125 15.87-5c9.998-2.75 17.1-10.75 20.62-21.12C233.1 350.8 232.5 353.4 247.4 338.3zM128 352c-35.37 0-63.99-28.62-63.99-64S92.64 224 128 224s63.99 28.62 63.99 64S163.4 352 128 352zM493.3 93.38l-74.63-74.64C406.6 6.742 390.3 0 373.4 0L191.1-.0001c-35.35 0-64 28.65-64 64l.0105 68.94c0 0 22.02-10.7 48-.7539L176 64.13c0-8.836 7.164-16 16-16h160L352 128c0 17.67 14.33 32 32 32h79.1v288c0 8.836-7.164 16-16 16H224L223.1 512l224-.0001c35.2 0 64-28.8 64-64V138.6C512 121.7 505.3 105.4 493.3 93.38z"},"fa-seal-question":{width:512,height:512,path:"M493.6 222.1L448 176.5V112C448 85.49 426.5 64 400 64h-64.47l-45.59-45.59C280.6 9.039 268.3 4.354 256 4.354c-12.28 0-24.57 4.686-33.94 14.06L176.5 64H112C85.49 64 64 85.49 64 112v64.47L18.41 222.1c-18.75 18.74-18.75 49.14 0 67.88L64 335.5V400C64 426.5 85.49 448 112 448h64.47l45.59 45.59C231.4 502.1 243.7 507.6 256 507.6c12.29 0 24.57-4.688 33.94-14.06L335.5 448H400c26.51 0 48-21.49 48-48v-64.47l45.59-45.59C512.3 271.2 512.3 240.8 493.6 222.1zM414.1 301.6C405.1 310.6 400 322.8 400 335.5V400h-64.47c-12.73 0-24.94 5.057-33.94 14.06L256 459.6l-45.59-45.59C201.4 405.1 189.2 400 176.5 400H112v-64.47c0-12.73-5.057-24.94-14.06-33.94L52.35 256l45.59-45.59C106.9 201.4 112 189.2 112 176.5V112h64.47c12.73 0 24.94-5.057 33.94-14.06l45.57-45.59c.0039-.002-.0234 0 0 0l45.61 45.59C310.6 106.9 322.8 112 335.5 112H400v64.47c0 12.73 5.059 24.94 14.06 33.94L459.6 256L414.1 301.6zM256 336c-18 0-32 14-32 32s13.1 32 32 32c17.1 0 32-14 32-32S273.1 336 256 336zM289.1 128h-52C199 128 168 159 168 198c0 13 11 24 24 24s24-11 24-24C216 186 225.1 176 237.1 176h52C301.1 176 312 186 312 198c0 8-4 15-11 19L244 251C236 256 232 264 232 272V288c0 13 11 24 24 24S280 301 280 288V286l45.1-28C347 245 360 222 360 198C360 159 329 128 289.1 128z"},"fa-lock":{path:"M11 1a2 2 0 0 0-2 2v4a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h5V3a3 3 0 0 1 6 0v4a.5.5 0 0 1-1 0V3a2 2 0 0 0-2-2z",width:16,height:16},"fa-unlock":{path:"M11 1a2 2 0 0 0-2 2v4a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h5V3a3 3 0 0 1 6 0v4a.5.5 0 0 1-1 0V3a2 2 0 0 0-2-2zM3 8a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H3z",width:16,height:16},"fa-circle-check":{width:512,height:512,path:"M335 175L224 286.1L176.1 239c-9.375-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94l64 64C211.7 341.7 217.8 344 224 344s12.28-2.344 16.97-7.031l128-128c9.375-9.375 9.375-24.56 0-33.94S344.4 165.7 335 175zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464z"},"fa-database":{width:448,height:512,path:"M224 0c-123.7 0-224 35.82-224 80v352c0 44.18 100.3 80 224 80s224-35.82 224-80v-352C448 35.82 347.7 0 224 0zM224 464c-98.68 0-161.4-23.79-176-37.8v-72.81C89.01 372 152.5 384 223.1 384S358.1 372 400 353.4v72.81C385.4 440.2 322.7 464 224 464zM400 298.2C385.4 312.2 322.7 336 224 336S62.61 312.2 48 298.2V225.4C89.01 244 152.5 256 224 256s134.1-12 176-30.62V298.2zM400 170.2C385.4 184.2 322.7 208 223.1 208S62.61 184.2 48 170.2v-84.39C62.61 71.79 125.3 48 224 48s161.4 23.79 176 37.8V170.2z"},"fa-user-plus":{path:"M224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM224 48c44.11 0 80 35.89 80 80c0 44.11-35.89 80-80 80C179.9 208 144 172.1 144 128C144 83.89 179.9 48 224 48zM274.7 304H173.3C77.61 304 0 381.6 0 477.3C0 496.5 15.52 512 34.66 512h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304zM48.71 464C55.38 401.1 108.7 352 173.3 352H274.7c64.61 0 117.1 49.13 124.6 112H48.71zM616 200h-48v-48C568 138.8 557.3 128 544 128s-24 10.75-24 24v48h-48C458.8 200 448 210.8 448 224s10.75 24 24 24h48v48C520 309.3 530.8 320 544 320s24-10.75 24-24v-48h48C629.3 248 640 237.3 640 224S629.3 200 616 200z",width:640,height:512},"fa-badge-check":{width:576,height:512,path:"M543.8 256c0-36.5-18.86-68.38-46.86-86.75c6.875-32.88-2.517-68.63-28.14-94.25c-25.62-25.75-61.61-35.13-94.36-28.25C355.1 18.75 324.1 0 287.8 0S219.5 18.75 200.1 46.75C168.1 39.88 132.5 49.38 106.8 75C81.09 100.6 71.61 136.5 78.48 169.3C50.36 187.8 31.84 219.8 31.84 256s18.64 68.25 46.64 86.75C71.61 375.6 81.21 411.4 106.8 437c25.62 25.75 61.14 35.13 94.14 28.25C219.5 493.4 251.6 512 287.8 512c36.38 0 68.14-18.75 86.64-46.75c33 6.875 68.73-2.625 94.36-28.25c25.75-25.62 35.02-61.5 28.14-94.25C525.1 324.3 543.8 292.3 543.8 256zM435.5 317.3c9 20 30.25 54.88-.75 85.88c-28 28-55.25 14.5-85.75 .625C341.2 424.4 331.6 464 287.7 464c-45.25 0-54.75-42.75-61.25-60.25C205.5 413.4 171.6 434 140.6 403c-32-32-8.375-68.88-.625-85.75C119.4 309.5 79.73 299.9 79.73 256c0-45.25 42.75-54.75 60.25-61.25c-9-20-30.25-54.88 .75-85.88c32-32 68.88-8.375 85.75-.625C234.2 87.63 243.9 48 287.7 48c45.25 0 54.75 42.75 61.25 60.38c19.88-9.125 54.75-30.25 85.75 .75c32 32 8.375 68.88 .75 85.75c20.5 7.75 60.13 17.38 60.13 61.25C495.6 301.4 452.9 310.8 435.5 317.3zM384.1 183c9.375 9.375 9.375 24.56 0 33.94l-112 112C268.3 333.7 262.1 336 256 336s-12.28-2.344-16.97-7.031l-48-48c-9.375-9.375-9.375-24.56 0-33.94s24.56-9.375 33.94 0L256 278.1l95.03-95.03C360.4 173.7 375.6 173.7 384.1 183z"},"fa-user-cowboy":{width:448,height:512,path:"M97.07 183.5C96.82 186.4 96.2 189.1 96.2 192c0 70.75 57.22 128 127.9 128c70.71 0 127.9-57.25 127.9-128c0-2.75-.625-5.375-.75-8.125c69.09-30 93.58-77.88 95.08-80.88c3.498-7.125 1.125-15.88-5.621-20.25c-6.623-4.5-15.62-3.25-20.87 2.75c-1.873 1.875-22.49 20.62-76.09 33.63C333.1 69 312.2 0 278.2 0c-10.37 0-19.68 4.5-27.43 10.5c-15.24 11.88-36.77 11.88-52.02 0C191 4.5 181.8 0 171.4 0C137.4 0 116.6 69.38 105.9 119.5c-55.22-13-75.59-31.88-75.96-31.88C25.61 80 15.87 77.25 8.119 81.63c-7.621 4.25-10.37 14-6.121 21.75C3.498 106.3 28.86 153.5 97.07 183.5zM224.1 208c26.61 .125 53.22-2.75 79.21-8.625C299.5 240 265.7 272 224.1 272s-75.46-32-79.21-72.75C170.9 205.3 197.5 208.1 224.1 208zM314.7 352H133.3C59.7 352 0 411.7 0 485.3C0 500.1 11.94 512 26.66 512H421.3C436.1 512 448 500.1 448 485.3C448 411.7 388.3 352 314.7 352zM50.7 464c9.498-36.76 42.95-64 82.64-64h181.3c39.69 0 73.14 27.24 82.64 64H50.7z"},"fa-magnifying-glass":{width:512,height:512,path:"M504.1 471l-134-134C399.1 301.5 415.1 256.8 415.1 208c0-114.9-93.13-208-208-208S-.0002 93.13-.0002 208S93.12 416 207.1 416c48.79 0 93.55-16.91 129-45.04l134 134C475.7 509.7 481.9 512 488 512s12.28-2.344 16.97-7.031C514.3 495.6 514.3 480.4 504.1 471zM48 208c0-88.22 71.78-160 160-160s160 71.78 160 160s-71.78 160-160 160S48 296.2 48 208z"},"fa-chevron-down":{width:448,height:512,path:"M432.6 209.3l-191.1 183.1C235.1 397.8 229.1 400 224 400s-11.97-2.219-16.59-6.688L15.41 209.3C5.814 200.2 5.502 184.1 14.69 175.4c9.125-9.625 24.38-9.938 33.91-.7187L224 342.8l175.4-168c9.5-9.219 24.78-8.906 33.91 .7187C442.5 184.1 442.2 200.2 432.6 209.3z"},"fa-chevron-up":{width:448,height:512,path:"M15.41 302.7l191.1-183.1C212 114.2 218 111.1 224 111.1s11.97 2.219 16.59 6.688l191.1 183.1c9.594 9.152 9.906 24.34 .7187 33.9c-9.125 9.625-24.38 9.938-33.91 .7187L224 169.2l-175.4 168c-9.5 9.219-24.78 8.906-33.91-.7187C5.502 327 5.814 311.8 15.41 302.7z"},"fa-chevrons-left":{width:448,height:512,path:"M73.22 256l160.1-167.4c9.125-9.594 8.844-24.78-.75-33.94S207.8 45.84 198.7 55.4l-176 184c-8.875 9.313-8.875 23.88 0 33.19l176 184c9.156 9.563 24.34 9.907 33.94 .75C237.5 452.6 240 446.3 240 440c0-5.969-2.219-11.94-6.656-16.59L73.22 256zM425.3 423.4L265.2 256l160.1-167.4c9.125-9.594 8.844-24.78-.75-33.94s-24.78-8.813-33.94 .75l-176 184c-8.875 9.313-8.875 23.88 0 33.19l176 184c9.156 9.563 24.34 9.907 33.94 .75C429.5 452.6 432 446.3 432 440C432 434 429.8 428.1 425.3 423.4z"},"fa-chevrons-right":{width:448,height:512,path:"M233.3 239.4l-176-184C48.19 45.84 33 45.49 23.41 54.65C18.47 59.37 16 65.68 16 71.99c0 5.969 2.219 11.94 6.656 16.59L182.8 256l-160.1 167.4c-9.125 9.594-8.844 24.78 .75 33.94c9.594 9.156 24.78 8.813 33.94-.75l176-184C242.2 263.3 242.2 248.7 233.3 239.4zM425.3 239.4l-176-184C240.2 45.84 225 45.49 215.4 54.65C210.5 59.37 208 65.68 208 71.99c0 5.969 2.219 11.94 6.656 16.59L374.8 256l-160.1 167.4c-9.125 9.594-8.844 24.78 .75 33.94c9.594 9.156 24.78 8.813 33.94-.75l176-184C434.2 263.3 434.2 248.7 425.3 239.4z"},"fa-chevron-left":{width:320,height:512,path:"M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"},"fa-chevron-right":{width:320,height:512,path:"M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"},"fa-arrow-right":{width:448,height:512,path:"M264.6 70.63l176 168c4.75 4.531 7.438 10.81 7.438 17.38s-2.688 12.84-7.438 17.38l-176 168c-9.594 9.125-24.78 8.781-33.94-.8125c-9.156-9.5-8.812-24.75 .8125-33.94l132.7-126.6H24.01c-13.25 0-24.01-10.76-24.01-24.01s10.76-23.99 24.01-23.99h340.1l-132.7-126.6C221.8 96.23 221.5 80.98 230.6 71.45C239.8 61.85 254.1 61.51 264.6 70.63z"},"fa-copy":{width:512,height:512,path:"M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"},"fa-globe":{width:512,height:512,path:"M256 16C123.5 16 16 123.5 16 256s107.5 240 240 240s239.1-107.5 239.1-240S388.5 16 256 16zM422 160H373.3c-6.391-27.41-15.39-52.18-26.48-73.1C378.2 103.8 404.2 129.2 422 160zM336 256c0 16.98-1.295 32.82-3.176 48H179.2C177.3 288.8 176 272.1 176 256s1.295-32.82 3.176-48h153.6C334.7 223.2 336 239 336 256zM256 448c-21.79 0-50.87-36.42-67.28-96h134.6C306.9 411.6 277.8 448 256 448zM188.7 160C205.1 100.4 234.2 64 256 64s50.87 36.42 67.28 96H188.7zM165.2 86.9C154.1 107.8 145.1 132.6 138.7 160H89.98C107.8 129.2 133.8 103.8 165.2 86.9zM70.32 208h60.25C128.9 223.5 128 239.6 128 256S128.9 288.5 130.6 304H70.32C66.34 288.6 64 272.6 64 256S66.34 223.4 70.32 208zM89.98 352H138.7c6.391 27.41 15.39 52.18 26.48 73.1C133.8 408.2 107.8 382.8 89.98 352zM346.8 425.1C357.9 404.2 366.9 379.4 373.3 352h48.74C404.2 382.8 378.2 408.2 346.8 425.1zM441.7 304h-60.25c1.68-15.51 2.57-31.56 2.57-48s-.8907-32.49-2.57-48h60.25C445.7 223.4 448 239.4 448 256S445.7 288.6 441.7 304z"},"fa-xmark":{width:320,height:512,path:"M312.1 375c9.369 9.369 9.369 24.57 0 33.94s-24.57 9.369-33.94 0L160 289.9l-119 119c-9.369 9.369-24.57 9.369-33.94 0s-9.369-24.57 0-33.94L126.1 256L7.027 136.1c-9.369-9.369-9.369-24.57 0-33.94s24.57-9.369 33.94 0L160 222.1l119-119c9.369-9.369 24.57-9.369 33.94 0s9.369 24.57 0 33.94L193.9 256L312.1 375z"},"fa-flag":{width:512,height:512,path:"M476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87c-34.63 0-77.87 8.003-137.2 32.05V24C48 10.75 37.25 0 24 0S0 10.75 0 24v464C0 501.3 10.75 512 24 512s24-10.75 24-24v-104c53.59-23.86 96.02-31.81 132.8-31.81c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0zM464 319.8c-30.31 10.82-58.08 16.1-84.6 16.1c-30.8 0-58.31-7-87.44-14.41c-32.01-8.141-68.29-17.37-111.1-17.37c-42.35 0-85.99 9.09-132.8 27.73V84.14l18.03-7.301c47.39-19.2 86.38-28.54 119.2-28.54c28.24 .0039 49.12 6.711 73.31 14.48c25.38 8.148 54.13 17.39 90.58 17.39c35.43 0 72.24-8.496 114.9-26.61V319.8z"},"fa-envelope":{width:512,height:512,path:"M448 64H64C28.65 64 0 92.65 0 128v256c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V128C512 92.65 483.3 64 448 64zM64 112h384c8.822 0 16 7.178 16 16v22.16l-166.8 138.1c-23.19 19.28-59.34 19.27-82.47 .0156L48 150.2V128C48 119.2 55.18 112 64 112zM448 400H64c-8.822 0-16-7.178-16-16V212.7l136.1 113.4C204.3 342.8 229.8 352 256 352s51.75-9.188 71.97-25.98L464 212.7V384C464 392.8 456.8 400 448 400z"},"fa-check":{width:512,height:512,path:"M480.1 128.1l-272 272C204.3 405.7 198.2 408 192 408s-12.28-2.344-16.97-7.031l-144-144c-9.375-9.375-9.375-24.56 0-33.94s24.56-9.375 33.94 0L192 350.1l255-255c9.375-9.375 24.56-9.375 33.94 0S490.3 119.6 480.1 128.1z"},"fa-arrow-trend-up":{width:576,height:512,path:"M576 120v176C576 309.3 565.3 320 552 320S528 309.3 528 296V177.9l-191 191C332.3 373.7 326.1 376 320 376s-12.28-2.344-16.97-7.031L192 257.9l-151 151C36.28 413.7 30.16 416 24 416C5.205 416 0 398.8 0 392c0-6.141 2.344-12.28 7.031-16.97l168-168C179.7 202.3 185.9 200 192 200s12.28 2.344 16.97 7.031L320 318.1L494.1 144H376C362.8 144 352 133.3 352 120S362.8 96 376 96h176C565.3 96 576 106.8 576 120z"},"fa-arrow-trend-down":{width:576,height:512,path:"M576 216v176c0 13.25-10.75 24-24 24h-176C362.8 416 352 405.3 352 392s10.75-24 24-24h118.1L320 193.9L208.1 304.1C204.3 309.7 198.1 312 192 312S179.7 309.7 175 304.1l-168-168C2.344 132.3 0 126.1 0 120C0 106.3 11.21 96 24 96c6.141 0 12.28 2.344 16.97 7.031L192 254.1l111-111C307.7 138.3 313.9 136 320 136s12.28 2.344 16.97 7.031L528 334.1V216C528 202.8 538.8 192 552 192S576 202.8 576 216z"},"fa-eye":{path:"M572.5 238.1C518.3 115.5 410.9 32 288 32S57.69 115.6 3.469 238.1C1.563 243.4 0 251 0 256c0 4.977 1.562 12.6 3.469 17.03C57.72 396.5 165.1 480 288 480s230.3-83.58 284.5-206.1C574.4 268.6 576 260.1 576 256C576 251 574.4 243.4 572.5 238.1zM288 432c-99.48 0-191.2-67.5-239.6-175.1C97.01 147.4 188.6 80 288 80c99.48 0 191.2 67.5 239.6 175.1C478.1 364.6 387.4 432 288 432zM288 128C217.3 128 160 185.3 160 256s57.33 128 128 128c70.64 0 128-57.32 128-127.9C416 185.4 358.7 128 288 128zM288 336c-44.11 0-80-35.89-80-80c0-.748 .1992-1.441 .2207-2.184C213.3 255.1 218.5 256 224 256c35.35 0 64-28.65 64-64c0-5.48-.875-10.72-2.184-15.78C286.6 176.2 287.3 176 288 176c44.11 0 80 35.89 80 80.05C368 300.1 332.1 336 288 336z",width:576,height:512},"fa-eye-slash":{path:"M630.8 469.1l-103.5-81.11c31.35-31.94 57.79-70.78 77.21-114.1c1.906-4.43 3.469-12.07 3.469-17.03c0-4.977-1.562-12.6-3.469-17.03c-54.25-123.4-161.6-206.1-284.5-206.1c-62.67 0-121.2 21.95-170.8 59.62L38.81 5.116C34.41 1.679 29.19 0 24.03 0C16.91 0 9.839 3.158 5.121 9.189c-8.188 10.44-6.37 25.53 4.068 33.7l591.1 463.1c10.5 8.203 25.57 6.333 33.69-4.073C643.1 492.4 641.2 477.3 630.8 469.1zM394.4 283.8l-81.65-63.1C316.1 211.3 319.1 202.2 319.1 192c0-5.48-.8744-10.73-2.183-15.78C318.6 176.2 319.3 176 320 176c44.11 0 80 35.89 80 80.05C400 265.9 397.7 275.1 394.4 283.8zM433.2 314.2C442.4 296.8 448 277.2 448 256.1C448 185.4 390.7 128 320 128C287.8 128 258.7 140.2 236.3 159.9L188.3 122.3C228 95.03 273.1 80 320 80c99.48 0 191.2 67.5 239.6 175.1c-18.06 40.38-42.41 74.43-70.61 101.9L433.2 314.2zM320 384c13.42 0 26.16-2.643 38.31-6.477L302.8 334C279.1 328.8 259.5 312.9 248.8 291.7L192.8 247.8C192.6 250.6 192 253.2 192 256C192 326.7 249.3 384 320 384zM320 432c-99.48 0-191.2-67.5-239.6-175.1c10.83-24.22 24.09-46.03 38.81-65.86L81.28 160.4c-17.77 23.74-33.27 50.04-45.81 78.59C33.56 243.4 31.1 251 31.1 256c0 4.977 1.562 12.6 3.469 17.03c54.25 123.4 161.6 206.1 284.5 206.1c45.46 0 88.77-11.49 128.1-32.14l-42.87-33.59C378 425.4 349.5 432 320 432z",width:640,height:512},"fa-engine":{path:"M192 232C178.7 232 168 242.7 168 256c0 13.25 10.75 24 24 24S216 269.3 216 256C216 242.7 205.3 232 192 232zM592 192h-32C533.5 192 512 213.5 512 240V256h-16V207.1c0-4.855-2.207-9.459-6.001-12.49L418.7 138.5C410.2 131.7 415.7 128 404.8 128H312V112h64c13.25 0 24-10.75 24-24C400 74.74 389.3 64 376 64h-176C186.7 64 176 74.74 176 88c0 13.25 10.75 24 24 24h64V128H128C101.5 128 80 149.5 80 176v56h-32v-80C48 138.7 37.25 128 24 128S0 138.7 0 152v208C0 373.3 10.75 384 24 384s24-10.75 24-24v-80h32v56C80 362.5 101.5 384 128 384h41.38l49.95 49.95C228.3 442.9 240.5 448 253.3 448H448c26.51 0 48-21.49 48-48V384H512v16c0 26.51 21.49 48 48 48h32c26.51 0 48-21.49 48-48v-160C640 213.5 618.5 192 592 192zM448 400l-194.7 .0059L189.3 336H128v-160h260.8L448 223.4V400zM592 400h-32v-64h-64v-32h64v-64h32V400zM288 232C274.7 232 264 242.7 264 256c0 13.25 10.75 24 24 24S312 269.3 312 256C312 242.7 301.3 232 288 232zM360 256c0 13.25 10.75 24 24 24S408 269.3 408 256c0-13.26-10.75-24-24-24S360 242.7 360 256z",width:640,height:512},"fa-clock":{path:"M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z",width:512,height:512},"fa-clock-rotate-left":{path:"M256 32C176.2 32 103.7 75.57 64 142.1V56C64 42.75 53.25 32 40 32S16 42.75 16 56v144C16 213.3 26.75 224 40 224h128C181.3 224 192 213.3 192 200S181.3 176 168 176H99.54C129.2 118.3 189.5 79.96 256 79.96c97.03 0 176 79.01 176 176s-78.97 175.1-176 175.1c-41.09 0-81.09-14.44-112.6-40.72c-10.16-8.5-25.31-7.156-33.81 3.062c-8.5 10.19-7.125 25.31 3.062 33.81C152.8 461.6 203.7 480 256 480c123.5 0 224-100.5 224-224S379.5 32 256 32zM256 128C242.8 128 232 138.8 232 152V272c0 7.75 3.741 15.03 10.04 19.53l56 40C302.3 334.6 307.2 336 311.1 336c7.484 0 14.86-3.5 19.55-10.06c7.703-10.78 5.203-25.75-5.578-33.47L280 259.7L280 152C280 138.8 269.3 128 256 128z",width:512,height:512},"fa-user-clock":{path:"M496 224c-79.63 0-144 64.38-144 144s64.38 144 144 144s144-64.38 144-144S575.6 224 496 224zM544 384h-54.25C484.4 384 480 379.6 480 374.3V304c0-8.836 7.164-16 16-16c8.838 0 16 7.164 16 16v48h32c8.838 0 16 7.164 16 15.1S552.8 384 544 384zM224 256c70.69 0 128-57.31 128-128c0-70.69-57.31-128-128-128S96 57.31 96 128C96 198.7 153.3 256 224 256zM224 48c44.11 0 80 35.89 80 80c0 44.11-35.89 80-80 80S144 172.1 144 128C144 83.89 179.9 48 224 48zM395 512H32c-17.67 0-32-14.33-32-32c0-97.2 78.8-176 176-176h96c19.87 0 38.89 3.441 56.7 9.508c-4.963 15.24-7.787 31.41-8.383 48.17C305.4 355.5 289.1 352 272 352h-96c-65.16 0-119.1 48.95-127 112h299.6C360.9 482.8 376.6 499.1 395 512z",width:640,height:512},"fa-store":{path:"M544.9 105.8l-52.21-82.59C483.8 8.891 467.6 0 450.6 0H125.4c-17.01 0-33.15 8.891-42.08 23.14L31.02 105.8C13.26 133.9 11.12 168.8 25.27 199.1c13.34 28.55 39.57 48.06 70.29 52.19c4.473 .5859 8.98 .873 13.48 .873c1.004 0 1.994-.1973 2.997-.2266c20.32-.5781 40.41-6.822 57.03-18.38c34.63 24.08 84.26 24.05 118.8 0c34.63 24.08 84.23 24.03 118.9-.0156c17.34 12.03 38.07 18.67 59.39 18.67c4.842 0 9.466-.3125 14.18-.9219c30.71-4.078 57.02-23.59 70.37-52.17C564.9 168.8 562.7 133.9 544.9 105.8zM507.2 178.8c-6.483 13.89-18.6 22.97-33.13 24.91C456.3 206 437.1 199.5 424.5 185.7L406.7 166.1l-17.75 19.62c-21.42 23.66-61.8 23.69-83.24 0L287.9 166L270.1 185.7c-21.2 23.52-61.94 23.52-83.23 0L169.1 166L151.3 185.7c-12.37 13.73-32.15 20.16-49.42 18C87.3 201.8 75.24 192.7 68.76 178.8c-7.201-15.44-6.155-33.14 2.812-47.34L125.4 48l326.8 .7969l52.25 82.67C513.4 145.7 514.5 163.4 507.2 178.8zM466.2 284.2c-.7479 0-1.457-.2402-2.203-.252V336H112V283.8C111 283.9 110.1 284.2 109 284.2c-5.897 0-11.83-.3867-17.74-1.16C81.85 281.8 72.76 279.3 64.06 275.1V456c0 30.88 25.12 56 55.99 56h335.9c30.87 0 55.99-25.12 55.99-56V275.1c-8.773 3.348-17.95 5.828-27.5 7.098C478.3 283.8 472.3 284.2 466.2 284.2zM455.1 464H120c-4.405 0-7.998-3.594-7.998-8V384h351.9v72C463.1 460.4 460.4 464 455.1 464z",width:576,height:512},"fa-home":{path:"M576 247.1c0-6.802-2.877-13.56-8.471-18.31l-263.1-224c-4.484-3.781-10.01-5.669-15.53-5.669S276.1 1.891 272.5 5.672L8.471 229.7C2.877 234.4 0 241.2 0 247.1C0 264.1 13.83 271.1 24.02 271.1c5.479 0 10.99-1.867 15.51-5.687l24.47-20.76v226.5C64 494.1 81.94 512 104 512h95.1c22.06 0 39.1-17.94 39.1-40l.0056-120h95.1l-.0032 120C335.1 494.1 353.9 512 375.1 512h95.1c22.06 0 39.1-17.94 39.1-40V245.5L536.5 266.3c4.516 3.813 10.03 5.688 15.52 5.688C562.1 271.1 576 263.1 576 247.1zM463.1 463.1H383.1v-120c0-22.06-17.94-40-39.1-40H232c-22.06 0-39.1 17.94-39.1 40v120H112V207.1c0-.9629-.4375-1.783-.5488-2.717L288 55.45l175.1 149.4V463.1z",width:576,height:512},"fa-user-group":{path:"M224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM224 48c44.11 0 80 35.89 80 80c0 44.11-35.89 80-80 80S144 172.1 144 128C144 83.89 179.9 48 224 48zM274.7 304H173.3c-95.73 0-173.3 77.6-173.3 173.3C0 496.5 15.52 512 34.66 512H413.3C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304zM48.71 464C55.38 401.1 108.7 352 173.3 352H274.7c64.61 0 117.1 49.13 124.6 112H48.71zM479.1 320h-73.85C451.2 357.7 480 414.1 480 477.3C480 490.1 476.2 501.9 470 512h138C625.7 512 640 497.6 640 479.1C640 391.6 568.4 320 479.1 320zM432 256C493.9 256 544 205.9 544 144S493.9 32 432 32c-25.11 0-48.04 8.555-66.72 22.51C376.8 76.63 384 101.4 384 128c0 35.52-11.93 68.14-31.59 94.71C372.7 243.2 400.8 256 432 256z",width:640,height:512},"fa-tags":{path:"M458.4 211.9l-158.2-158.2C287.6 41.11 265.6 32 247.8 32H81.01C53.99 32 32 53.99 32 81.01v166.8c0 17.75 9.11 39.75 21.67 52.32l158.2 158.3C226.3 472.8 245.3 480 264.2 480s37.91-7.204 52.33-21.63l141.8-141.8C487.2 287.7 487.2 240.8 458.4 211.9zM424.4 282.6l-141.8 141.8c-10.13 10.16-26.66 10.14-36.79 .0156L87.62 266.2c-3.563-3.563-7.61-13.35-7.61-18.38V81.01l1-1h166.8c5.032 0 14.81 4.047 18.38 7.61l158.2 158.2C434.6 255.1 434.6 272.5 424.4 282.6zM168 144c0 13.26-10.75 24-24 24S120 157.3 120 144s10.75-24 24-24S168 130.7 168 144zM536.5 170.7l-135.7-131.9c-9.453-9.219-24.67-9-33.94 .5c-9.234 9.5-9.016 24.69 .5 33.94l135.5 131.7c16.28 16.25 25.23 37.88 25.23 60.88s-8.969 44.63-25.3 60.95l-111.7 112.4c-9.344 9.406-9.312 24.59 .0938 33.94C395.8 477.7 401.9 480 408 480c6.172 0 12.33-2.359 17.02-7.078l111.7-112.3c25.34-25.34 39.31-59.03 39.31-94.86S562.1 196.2 536.5 170.7z",width:576,height:512},"fa-camera-security":{path:"M384 0h-320c-35.35 0-64 28.65-64 64v288c0 35.35 28.65 64 64 64h41.37l-37.62 59.11c-4.703 7.391-5 16.77-.7813 24.44C71.17 507.2 79.25 512 88.02 512h271.1c8.766 0 16.84-4.766 21.05-12.45c4.219-7.672 3.922-17.05-.7813-24.44L342.6 416h41.37c35.35 0 64-28.65 64-64V64C448 28.65 419.3 0 384 0zM131.7 464L162.3 416h123.5l30.55 48H131.7zM400 352c0 8.822-7.178 16-16 16H64c-8.822 0-16-7.178-16-16V64c0-8.822 7.178-16 16-16h320c8.822 0 16 7.178 16 16V352zM224 96c-61.86 0-112 50.14-112 112s50.14 112 112 112s112-50.14 112-112S285.9 96 224 96zM224 272c-35.29 0-64-28.71-64-64s28.71-64 64-64c35.29 0 64 28.71 64 64S259.3 272 224 272z",width:448,height:512},"fa-lightbulb-slash":{path:"M630.8 469.1l-196.2-153.8c6.311-9.273 12.57-17.61 17.82-23.59c27.12-30.94 43.54-71.39 43.54-115.8c0-97.2-78.76-175.1-175.1-175.1C246.1 .2266 188.9 42.1 161.5 101.3L38.81 5.118c-10.47-8.172-25.49-6.365-33.7 4.073c-8.172 10.44-6.349 25.53 4.073 33.7l591.1 463.1C605.6 510.3 610.8 512 615.1 512c7.125 0 14.17-3.159 18.9-9.19C643.1 492.4 641.2 477.3 630.8 469.1zM396.8 285.7l-196.6-154.1C216.1 85.94 259.2 48.19 319.1 48C390.6 48 448 105.4 448 175.1c0 30.97-11.24 60.86-31.64 84.13C410.2 267.1 403.5 275.1 396.8 285.7zM305.9 336h-33.22c-8.037-16.97-17.84-33.3-27.69-47.74L148.1 212.3c6.322 29.98 19.1 57.25 39.48 79.47c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0625 .5156 .0938 .7812l127.3 .0031L305.9 336zM240.1 454.3c0 6.297 1.875 12.43 5.344 17.68l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.66c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7l.1196-38.36H239.1L240.1 454.3z",width:640,height:512},"fa-lightbulb-on":{path:"M107.1 287.3L51.62 319.3c-7.5 4.125-12.25 12.13-12.38 20.88c0 8.625 4.625 16.63 12.13 21c7.625 4.25 16.87 4.125 24.25-.375l55.5-32c11.12-6.75 14.87-21.25 8.375-32.5C133 284.9 118.5 280.9 107.1 287.3zM131.1 55.25l-55.5-32c-7.375-4.5-16.62-4.625-24.25-.375c-7.5 4.375-12.13 12.38-12.13 21C39.37 52.63 44.12 60.63 51.62 64.75L107.1 96.75C114.5 101.3 123.8 101.4 131.4 97.13C138.9 92.75 143.5 84.75 143.5 76.13C143.4 67.38 138.6 59.38 131.1 55.25zM112 192c0-13.25-10.75-24-24-24h-64c-13.25 0-24 10.75-24 24s10.75 24 24 24h64C101.3 216 112 205.3 112 192zM521 100c4.125 0 8.25-1.125 12-3.25l55.38-32c11.25-6.75 14.88-21.25 8.375-32.5c-6.5-11.38-21-15.38-32.38-9L509 55.25c-9.5 5.375-14 16.5-11.25 27C500.6 92.75 510.1 100 521 100zM616 168h-64c-13.25 0-24 10.75-24 24s10.75 24 24 24h64c13.25 0 24-10.75 24-24S629.3 168 616 168zM588.4 319.3l-55.5-32c-7.375-4.5-16.62-4.625-24.25-.375c-7.5 4.375-12.12 12.38-12.12 21c.125 8.75 4.875 16.75 12.38 20.88l55.5 32c11.38 6.375 25.88 2.375 32.38-9C603.3 340.5 599.5 326 588.4 319.3zM320 .0036C218 .3239 144 82.98 144 175.1c0 44.38 16.4 84.82 43.52 115.8c16.53 18.84 42.36 58.26 52.24 91.48c.0313 .25 .0833 .4948 .1146 .7604l160.3 .0007c.0313-.2656 .0521-.4955 .0833-.7611c9.875-33.22 35.71-72.64 52.24-91.48C479.6 260.8 496 220.4 496 175.1C496 78.8 417.2 .0075 320 .0036zM416.4 260.1c-15.66 17.85-35.04 46.3-49.05 75.89h-94.61c-14.01-29.59-33.39-58.04-49.04-75.88C203.2 236.8 192 206.1 192 175.1C192 113.3 240.1 48.25 319.1 48C390.6 48 448 105.4 448 175.1C448 206.1 436.8 236.8 416.4 260.1zM240.1 454.4c0 6.297 1.89 12.43 5.359 17.68l17.09 25.69c5.25 7.875 17.18 14.28 26.65 14.28h61.72c9.438 0 21.38-6.395 26.63-14.27l17.09-25.69C397.6 467.6 400 459.7 400 454.4v-38.36l-159.9 .0048L240.1 454.4zM304 80C259.9 80 224 115.9 224 160c0 8.844 7.156 16.01 16 16.01S256 168.8 256 160c0-26.47 21.53-48 48-48c8.844 0 16-7.145 16-15.99S312.8 80 304 80z",width:640,height:512}};function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function O(e){for(var t=1;t')+''}}]),e}(),D=r(67294),$=[".d-flex.jsx-657283869,.ui-icon__badge.jsx-657283869,.iconGlow.jsx-657283869,div.jsx-657283869{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}","div.jsx-657283869{width:var(--ui-icon-width,var(--ui-icon-size,20px));height:var(--ui-icon-height,var(--ui-icon-size,20px));color:var(--ui-icon-color,#666);position:relative;overflow:visible;}","div.jsx-657283869 svg.jsx-657283869{display:block;width:100%;height:100%;}","@-webkit-keyframes glow-jsx-657283869{0%{-webkit-filter:drop-shadow(0 0 5px var(--primary-10));filter:drop-shadow(0 0 5px var(--primary-10));}100%{-webkit-filter:drop-shadow(0 0 20px var(--primary-10));filter:drop-shadow(0 0 20px var(--primary-10));}}","@keyframes glow-jsx-657283869{0%{-webkit-filter:drop-shadow(0 0 5px var(--primary-10));filter:drop-shadow(0 0 5px var(--primary-10));}100%{-webkit-filter:drop-shadow(0 0 20px var(--primary-10));filter:drop-shadow(0 0 20px var(--primary-10));}}","@-webkit-keyframes spin-jsx-657283869{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}}","@keyframes spin-jsx-657283869{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}}",".spinner.jsx-657283869{-webkit-animation:spin-jsx-657283869 0.7s forwards infinite ease-in-out;animation:spin-jsx-657283869 0.7s forwards infinite ease-in-out;}",".iconGlow.jsx-657283869{-webkit-animation:glow-jsx-657283869 1.5s infinite ease-in-out alternate;animation:glow-jsx-657283869 1.5s infinite ease-in-out alternate;width:inherit;height:inherit;}",".iconGlow.jsx-657283869:hover{-webkit-animation:glow-jsx-657283869 1.5s ease-in-out infinite alternate;animation:glow-jsx-657283869 1.5s ease-in-out infinite alternate;}",".ui-icon__badge.jsx-657283869{position:absolute;top:calc(var(--s-9) * -1);right:var(--s-12);background-color:var(--red-50);color:white;border-radius:50%;font-size:var(--s-8);line-height:1;width:auto;aspect-ratio:1;text-align:center;}"];$.__hash="657283869";var L=$,F=r(85893);function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function U(e){for(var t=1;t").concat(this.getSvgPathElement(e),"")}this.setState({innerHtml:t})}},{key:"clearIcon",value:function(){this.setState({innerHtml:""})}},{key:"getSvgPathElement",value:function(e){var t=Object.entries(e.stroke?{"stroke-linecap":e.stroke.lineCap,"stroke-linejoin":e.stroke.lineJoin,"stroke-width":e.stroke.width,d:e.path}:{d:e.path}).map(function(e){var t=(0,i.Z)(e,2),r=t[0],n=t[1];return"".concat(r,'="').concat(n,'"')}).join(" ");return"")}},{key:"render",value:function(){var e=this.props,t=e.glow,r=e.spin,n=e.badge,i=e.onClick,o=this.state,a=o.innerHtml,s=o.iconStyles,c="ui-icon";t&&(c+="boolean"==typeof t?" iconGlow":" ".concat(t)),r&&(c+=" spinner");var u=U(U({},s),t?{textShadow:"0 0 5px ".concat(s.color||"currentColor")}:{}),l=n&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(f(),{id:L.__hash,children:L}),(0,F.jsx)("div",{className:"jsx-".concat(L.__hash)+" ui-icon__badge",children:n})]});return n?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(f(),{id:L.__hash,children:L}),(0,F.jsxs)("div",{className:"jsx-".concat(L.__hash)+" "+(c||""),children:[(0,F.jsx)("div",{onClick:i,style:u,dangerouslySetInnerHTML:{__html:a},className:"jsx-".concat(L.__hash)}),l]})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(f(),{id:L.__hash,children:L}),(0,F.jsx)("div",{onClick:i,style:u,dangerouslySetInnerHTML:{__html:a},className:"jsx-".concat(L.__hash)+" "+(c||"")})]})}}]),r}(D.Component)},85153:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(21378),i=r.n(n),o=[".d-flex.jsx-2298412402,.ui-loader__text.jsx-2298412402,.ui-loader__icon-content.jsx-2298412402,.ui-loader--content.jsx-2298412402,.ui-loader.jsx-2298412402{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".ui-loader.jsx-2298412402{width:100%;--ui-icon-color:var(--gray-10-o);color:var(--gray-50);height:100%;}",".ui-loader--content.jsx-2298412402{height:100%;width:100%;gap:var(--font-size,var(--s-1));-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}",".ui-loader__icon.jsx-2298412402{-webkit-flex:1;-ms-flex:1;flex:1;margin-top:var(--font-size,var(--s-9));width:-webkit-max-content;width:-moz-max-content;width:max-content;}",".ui-loader__icon-content.jsx-2298412402{overflow:visible;-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;width:100%;height:100%;--ui-icon-width:var(--icon-size,150px);--ui-icon-height:var(--icon-size,150px);}",".ui-loader__text.jsx-2298412402{width:100%;line-height:1;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;white-space:nowrap;font-size:var(--font-size,var(--s-5));--ui-icon-size:var(--font-size,var(--s-5));text-transform:uppercase;--ui-icon-color:var(--primary-50);-webkit-flex:1;-ms-flex:1;flex:1;gap:var(--s-9);}"];o.__hash="2298412402";var a=o,s=r(6253);r(67294);var c=r(23992),u=r(85893),l=function(e){var t=e.text,r=e.dots,n=void 0===r||r,o=e.height,l=e.position,d=e.width,f=e.fontSize,h=t||"string"==typeof t?t:"Loading",p=c.Z.merchant.name,m={width:d,height:o,position:l,fontSize:f};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i(),{id:a.__hash,children:a}),(0,u.jsx)("div",{style:m,className:"jsx-".concat(a.__hash)+" ui-loader",children:(0,u.jsxs)("div",{className:"jsx-".concat(a.__hash)+" ui-loader--content",children:[(0,u.jsx)("div",{className:"jsx-".concat(a.__hash)+" ui-loader__icon",children:(0,u.jsx)("div",{className:"jsx-".concat(a.__hash)+" ui-loader__icon-content",children:(0,u.jsx)(s.a,{icon:"".concat(p,"-logo")})})}),(0,u.jsxs)("div",{className:"jsx-".concat(a.__hash)+" "+"ui-loader__text".concat(!1===n?" ui-loader__text-no-dots":""),children:[h,n&&(0,u.jsx)(s.a,{spin:!0,icon:"spinner"})]})]})})]})}},59131:function(e,t,r){"use strict";r.d(t,{Z:function(){return u3}});var n,i,o,a,s,c,u,l,d,f,h,p,m,b,g,y,_={};r.r(_),r.d(_,{attentionMarkers:function(){return rW},contentInitial:function(){return rH},disable:function(){return rZ},document:function(){return rB},flow:function(){return rV},flowInitial:function(){return rz},insideSpan:function(){return rq},string:function(){return rG},text:function(){return rY}});var v={};r.r(v),r.d(v,{boolean:function(){return n3},booleanish:function(){return n4},commaOrSpaceSeparated:function(){return n7},commaSeparated:function(){return n9},number:function(){return n5},overloadedBoolean:function(){return n6},spaceSeparated:function(){return n8}});var E=r(59499),T=r(4730),A=r(67294),S=r(70529);function x(e){return e&&"object"==typeof e?"position"in e||"type"in e?C(e.position):"start"in e||"end"in e?C(e):"line"in e||"column"in e?w(e):"":""}function w(e){return N(e&&e.line)+":"+N(e&&e.column)}function C(e){return w(e&&e.start)+"-"+w(e&&e.end)}function N(e){return e&&"number"==typeof e?e:1}class M extends Error{constructor(e,t,r){let n=[null,null],i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(r=t,t=void 0),"string"==typeof r){let e=r.indexOf(":");-1===e?n[1]=r:(n[0]=r.slice(0,e),n[1]=r.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=x(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=n[0],this.ruleId=n[1],this.file,this.actual,this.expected,this.url,this.note}}M.prototype.file="",M.prototype.name="",M.prototype.reason="",M.prototype.message="",M.prototype.stack="",M.prototype.fatal=null,M.prototype.column=null,M.prototype.line=null,M.prototype.source=null,M.prototype.ruleId=null,M.prototype.position=null;let k={basename:O,dirname:R,extname:I,join:P,sep:"/"};function O(e,t){let r;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');L(e);let n=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.charCodeAt(o)){if(r){n=o+1;break}}else i<0&&(r=!0,i=o+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.charCodeAt(o)){if(r){n=o+1;break}}else a<0&&(r=!0,a=o+1),s>-1&&(e.charCodeAt(o)===t.charCodeAt(s--)?s<0&&(i=o):(s=-1,i=a));return n===i?i=a:i<0&&(i=e.length),e.slice(n,i)}function R(e){let t;if(L(e),0===e.length)return".";let r=-1,n=e.length;for(;--n;)if(47===e.charCodeAt(n)){if(t){r=n;break}}else t||(t=!0);return r<0?47===e.charCodeAt(0)?"/":".":1===r&&47===e.charCodeAt(0)?"//":e.slice(0,r)}function I(e){let t;L(e);let r=e.length,n=-1,i=0,o=-1,a=0;for(;r--;){let s=e.charCodeAt(r);if(47===s){if(t){i=r+1;break}continue}n<0&&(t=!0,n=r+1),46===s?o<0?o=r:1!==a&&(a=1):o>-1&&(a=-1)}return o<0||n<0||0===a||1===a&&o===n-1&&o===i+1?"":e.slice(o,n)}function P(...e){let t,r=-1;for(;++r0&&47===e.charCodeAt(e.length-1)&&(r+="/"),t?"/"+r:r}function $(e,t){let r,n,i="",o=0,a=-1,s=0,c=-1;for(;++c<=e.length;){if(c2){if((n=i.lastIndexOf("/"))!==i.length-1){n<0?(i="",o=0):o=(i=i.slice(0,n)).length-1-i.lastIndexOf("/"),a=c,s=0;continue}}else if(i.length>0){i="",o=0,a=c,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,c):i=e.slice(a+1,c),o=c-a-1;a=c,s=0}else 46===r&&s>-1?s++:s=-1}return i}function L(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let F=j;function j(){return"/"}function U(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function B(e){if("string"==typeof e)e=new URL(e);else if(!U(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return H(e)}function H(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,r=-1;for(;++rt.length;s&&t.push(i);try{a=e.apply(this,t)}catch(t){let e=t;if(s&&r)throw e;return i(e)}s||(a&&a.then&&"function"==typeof a.then?a.then(o,i):a instanceof Error?i(a):o(a))}function i(e,...n){r||(r=!0,t(e,...n))}function o(e){i(null,e)}}let et=en().freeze(),er={}.hasOwnProperty;function en(){let e;let t=J(),r=[],n={},i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=s,o.attachers=r,o.use=c,o.parse=u,o.stringify=l,o.run=d,o.runSync=f,o.process=h,o.processSync=p,o;function o(){let e=en(),t=-1;for(;++t{if(!e&&t&&r){let n=o.stringify(t,r);null==n||(eh(n)?r.value=n:r.result=n),a(e,r)}else a(e)})}r(null,t)}function p(e){let t;o.freeze(),ea("processSync",o.Parser),es("processSync",o.Compiler);let r=ed(e);return o.process(r,n),el("processSync","process",t),r;function n(e){t=!0,Z(e)}}}function ei(e,t){return"function"==typeof e&&e.prototype&&(eo(e.prototype)||t in e.prototype)}function eo(e){let t;for(t in e)if(er.call(e,t))return!0;return!1}function ea(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `Parser`")}function es(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `Compiler`")}function ec(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function eu(e){if(!Q(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function el(e,t,r){if(!r)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function ed(e){return ef(e)?e:new V(e)}function ef(e){return!!(e&&"object"==typeof e&&"message"in e&&"messages"in e)}function eh(e){return"string"==typeof e||K(e)}let ep={};function em(e,t){let r=t||ep;return eb(e,"boolean"!=typeof r.includeImageAlt||r.includeImageAlt,"boolean"!=typeof r.includeHtml||r.includeHtml)}function eb(e,t,r){if(ey(e)){if("value"in e)return"html"!==e.type||r?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eg(e.children,t,r)}return Array.isArray(e)?eg(e,t,r):""}function eg(e,t,r){let n=[],i=-1;for(;++io?0:o+t:t>o?o:t,r=r>0?r:0,n.length<1e4)(i=Array.from(n)).unshift(t,r),e.splice(...i);else for(r&&e.splice(t,r);a0?(e_(e,e.length,0,t),e):t}let eE={}.hasOwnProperty;function eT(e){let t={},r=-1;for(;++rn))return;let s=i.events.length,c=s;for(;c--;)if("exit"===i.events[c][0]&&"chunkFlow"===i.events[c][1].type){if(e){r=i.events[c][1].end;break}e=!0}for(g(a),o=s;ot;){let t=o[r];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),r=void 0,t=void 0,i.containerState._closeFlow=void 0}}function eL(e,t,r){return eN(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}let eF=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,ej=eZ(/[A-Za-z]/),eU=eZ(/[\dA-Za-z]/),eB=eZ(/[#-'*+\--9=?A-Z^-~]/);function eH(e){return null!==e&&(e<32||127===e)}let ez=eZ(/\d/),eV=eZ(/[\dA-Fa-f]/),eG=eZ(/[!-/:-@[-`{-~]/);function eY(e){return null!==e&&e<-2}function eq(e){return null!==e&&(e<0||32===e)}function eW(e){return -2===e||-1===e||32===e}function eZ(e){return t;function t(t){return null!==t&&e.test(String.fromCharCode(t))}}eZ(eF),eZ(/\s/);let eK={tokenize:eX,partial:!0};function eX(e,t,r){return n;function n(t){return eW(t)?eN(e,i,"linePrefix")(t):i(t)}function i(e){return null===e||eY(e)?t(e):r(e)}}function eQ(e){let t,r,n,i,o,a,s;let c={},u=-1;for(;++u=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}}let e6={tokenize:e5};function e5(e){let t=this,r=e.attempt(eK,n,e.attempt(this.parser.constructs.flowInitial,i,eN(e,e.attempt(this.parser.constructs.flow,i,e.attempt(e1,i)),"linePrefix")));return r;function n(n){if(null===n){e.consume(n);return}return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(n){if(null===n){e.consume(n);return}return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r}}let e8={resolveAll:tt()},e9=te("string"),e7=te("text");function te(e){return{tokenize:t,resolveAll:tt("text"===e?tr:void 0)};function t(t){let r=this,n=this.parser.constructs[e],i=t.attempt(n,o,a);return o;function o(e){return c(e)?i(e):a(e)}function a(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),s}function s(e){return c(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function c(e){if(null===e)return!0;let t=n[e],i=-1;if(t)for(;++i-1){let e=r[0];"string"==typeof e?r[0]=e.slice(i):r.shift()}a>0&&r.push(e[o].slice(0,a))}return r}function ta(e,t){let r,n=-1,i=[];for(;++n=3&&(null===o||eY(o))?(e.exit("thematicBreak"),t(o)):r(o)}function c(t){return t===n?(e.consume(t),i++,c):(e.exit("thematicBreakSequence"),eW(t)?eN(e,s,"whitespace")(t):s(t))}}let tu={name:"list",tokenize:tf,continuation:{tokenize:th},exit:tm},tl={tokenize:tb,partial:!0},td={tokenize:tp,partial:!0};function tf(e,t,r){let n=this,i=n.events[n.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(t){let i=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!n.containerState.marker||t===n.containerState.marker:ez(t)){if(n.containerState.type||(n.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(ts,r,u)(t):u(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(t)}return r(t)}function c(t){return ez(t)&&++a<10?(e.consume(t),c):(!n.interrupt||a<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),u(t)):r(t)}function u(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(eK,n.interrupt?r:l,e.attempt(tl,f,d))}function l(e){return n.containerState.initialBlankLine=!0,o++,f(e)}function d(t){return eW(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):r(t)}function f(r){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}}function th(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(eK,i,o);function i(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,eN(e,t,"listItemIndent",n.containerState.size+1)(r)}function o(r){return n.containerState.furtherBlankLines||!eW(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(td,t,a)(r))}function a(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,eN(e,e.attempt(tu,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}function tp(e,t,r){let n=this;return eN(e,i,"listItemIndent",n.containerState.size+1);function i(e){let i=n.events[n.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(e):r(e)}}function tm(e){e.exit(this.containerState.type)}function tb(e,t,r){let n=this;return eN(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(e){let i=n.events[n.events.length-1];return!eW(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)}}let tg={name:"blockQuote",tokenize:ty,continuation:{tokenize:t_},exit:tv};function ty(e,t,r){let n=this;return i;function i(t){if(62===t){let r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return r(t)}function o(r){return eW(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}}function t_(e,t,r){let n=this;return i;function i(t){return eW(t)?eN(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)}function o(n){return e.attempt(tg,t,r)(n)}}function tv(e){e.exit("blockQuote")}let tE=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;function tT(e){return null!==e&&(e<32||127===e)}function tA(e){return null!==e&&e<-2}function tS(e){return null!==e&&(e<0||32===e)}function tx(e){return t;function t(t){return null!==t&&e.test(String.fromCharCode(t))}}function tw(e,t,r,n,i,o,a,s,c){let u=c||Number.POSITIVE_INFINITY,l=0;return d;function d(t){return 60===t?(e.enter(n),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f):null===t||32===t||41===t||tT(t)?r(t):(e.enter(n),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(t))}function f(r){return 62===r?(e.enter(o),e.consume(r),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(r))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(s),f(t)):null===t||60===t||tA(t)?r(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function m(i){return!l&&(null===i||41===i||tS(i))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(i)):l999||null===u||91===u||93===u&&!a||94===u&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs?r(u):93===u?(e.exit(o),e.enter(i),e.consume(u),e.exit(i),e.exit(n),t):tN(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),d(u))}function d(t){return null===t||91===t||93===t||tN(t)||c++>999?(e.exit("chunkString"),l(t)):(e.consume(t),a||(a=!tM(t)),92===t?f:d)}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,d):d(t)}}tk(/[A-Za-z]/),tk(/[\dA-Za-z]/),tk(/[#-'*+\--9=?A-Z^-~]/),tk(/\d/),tk(/[\dA-Fa-f]/),tk(/[!-/:-@[-`{-~]/),tk(tC),tk(/\s/);let tR=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;function tI(e){return null!==e&&e<-2}function tP(e){return t;function t(t){return null!==t&&e.test(String.fromCharCode(t))}}function tD(e,t,r,n,i,o){let a;return s;function s(t){return 34===t||39===t||40===t?(e.enter(n),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,c):r(t)}function c(r){return r===a?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(o),u(r))}function u(t){return t===a?(e.exit(o),c(a)):null===t?r(t):tI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eN(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===a||null===t||tI(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?d:l)}function d(t){return t===a||92===t?(e.consume(t),l):l(t)}}tP(/[A-Za-z]/),tP(/[\dA-Za-z]/),tP(/[#-'*+\--9=?A-Z^-~]/),tP(/\d/),tP(/[\dA-Fa-f]/),tP(/[!-/:-@[-`{-~]/),tP(tR),tP(/\s/);let t$=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;function tL(e){return null!==e&&e<-2}function tF(e){return -2===e||-1===e||32===e}function tj(e){return t;function t(t){return null!==t&&e.test(String.fromCharCode(t))}}function tU(e,t){let r;return n;function n(i){return tL(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):tF(i)?eN(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}function tB(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}tj(/[A-Za-z]/),tj(/[\dA-Za-z]/),tj(/[#-'*+\--9=?A-Z^-~]/),tj(/\d/),tj(/[\dA-Fa-f]/),tj(/[!-/:-@[-`{-~]/),tj(t$),tj(/\s/);let tH={name:"definition",tokenize:tV},tz={tokenize:tG,partial:!0};function tV(e,t,r){let n;let i=this;return o;function o(t){return e.enter("definition"),a(t)}function a(t){return tO.call(i,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}function s(t){return(n=tB(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),c):r(t)}function c(t){return eq(t)?tU(e,u)(t):u(t)}function u(t){return tw(e,l,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(tz,d,d)(t)}function d(t){return eW(t)?eN(e,f,"whitespace")(t):f(t)}function f(o){return null===o||eY(o)?(e.exit("definition"),i.parser.defined.push(n),t(o)):r(o)}}function tG(e,t,r){return n;function n(t){return eq(t)?tU(e,i)(t):r(t)}function i(t){return tD(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return eW(t)?eN(e,a,"whitespace")(t):a(t)}function a(e){return null===e||eY(e)?t(e):r(e)}}let tY={name:"codeIndented",tokenize:tW},tq={tokenize:tZ,partial:!0};function tW(e,t,r){let n=this;return i;function i(t){return e.enter("codeIndented"),eN(e,o,"linePrefix",5)(t)}function o(e){let t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):r(e)}function a(t){return null===t?c(t):eY(t)?e.attempt(tq,a,c)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||eY(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),s)}function c(r){return e.exit("codeIndented"),t(r)}}function tZ(e,t,r){let n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):eY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eN(e,o,"linePrefix",5)(t)}function o(e){let o=n.events[n.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eY(e)?i(e):r(e)}}let tK={name:"headingAtx",tokenize:tQ,resolve:tX};function tX(e,t){let r,n,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(r={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},n={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},e_(e,o,i-o+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]])),e}function tQ(e,t,r){let n=0;return i;function i(t){return e.enter("atxHeading"),o(t)}function o(t){return e.enter("atxHeadingSequence"),a(t)}function a(t){return 35===t&&n++<6?(e.consume(t),a):null===t||eq(t)?(e.exit("atxHeadingSequence"),s(t)):r(t)}function s(r){return 35===r?(e.enter("atxHeadingSequence"),c(r)):null===r||eY(r)?(e.exit("atxHeading"),t(r)):eW(r)?eN(e,s,"whitespace")(r):(e.enter("atxHeadingText"),u(r))}function c(t){return 35===t?(e.consume(t),c):(e.exit("atxHeadingSequence"),s(t))}function u(t){return null===t||35===t||eq(t)?(e.exit("atxHeadingText"),s(t)):(e.consume(t),u)}}let tJ={name:"setextUnderline",tokenize:t0,resolveTo:t1};function t1(e,t){let r,n,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){r=o;break}"paragraph"===e[o][1].type&&(n=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let a={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function t0(e,t,r){let n;let i=this;return o;function o(t){let o,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){o="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),n=t,a(t)):r(t)}function a(t){return e.enter("setextHeadingLineSequence"),s(t)}function s(t){return t===n?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),eW(t)?eN(e,c,"lineSuffix")(t):c(t))}function c(n){return null===n||eY(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}}let t2=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],t3=["pre","script","style","textarea"],t4={name:"htmlFlow",tokenize:t9,resolveTo:t8,concrete:!0},t6={tokenize:re,partial:!0},t5={tokenize:t7,partial:!0};function t8(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function t9(e,t,r){let n,i,o,a,s;let c=this;return u;function u(e){return l(e)}function l(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),d}function d(a){return 33===a?(e.consume(a),f):47===a?(e.consume(a),i=!0,m):63===a?(e.consume(a),n=3,c.interrupt?t:$):ej(a)?(e.consume(a),o=String.fromCharCode(a),b):r(a)}function f(i){return 45===i?(e.consume(i),n=2,h):91===i?(e.consume(i),n=5,a=0,p):ej(i)?(e.consume(i),n=4,c.interrupt?t:$):r(i)}function h(n){return 45===n?(e.consume(n),c.interrupt?t:$):r(n)}function p(n){let i="CDATA[";return n===i.charCodeAt(a++)?(e.consume(n),a===i.length)?c.interrupt?t:N:p:r(n)}function m(t){return ej(t)?(e.consume(t),o=String.fromCharCode(t),b):r(t)}function b(a){if(null===a||47===a||62===a||eq(a)){let s=47===a,u=o.toLowerCase();return!s&&!i&&t3.includes(u)?(n=1,c.interrupt?t(a):N(a)):t2.includes(o.toLowerCase())?(n=6,s)?(e.consume(a),g):c.interrupt?t(a):N(a):(n=7,c.interrupt&&!c.parser.lazy[c.now().line]?r(a):i?y(a):_(a))}return 45===a||eU(a)?(e.consume(a),o+=String.fromCharCode(a),b):r(a)}function g(n){return 62===n?(e.consume(n),c.interrupt?t:N):r(n)}function y(t){return eW(t)?(e.consume(t),y):w(t)}function _(t){return 47===t?(e.consume(t),w):58===t||95===t||ej(t)?(e.consume(t),v):eW(t)?(e.consume(t),_):w(t)}function v(t){return 45===t||46===t||58===t||95===t||eU(t)?(e.consume(t),v):E(t)}function E(t){return 61===t?(e.consume(t),T):eW(t)?(e.consume(t),E):_(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),s=t,A):eW(t)?(e.consume(t),T):S(t)}function A(t){return t===s?(e.consume(t),s=null,x):null===t||eY(t)?r(t):(e.consume(t),A)}function S(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||eq(t)?E(t):(e.consume(t),S)}function x(e){return 47===e||62===e||eW(e)?_(e):r(e)}function w(t){return 62===t?(e.consume(t),C):r(t)}function C(t){return null===t||eY(t)?N(t):eW(t)?(e.consume(t),C):r(t)}function N(t){return 45===t&&2===n?(e.consume(t),R):60===t&&1===n?(e.consume(t),I):62===t&&4===n?(e.consume(t),L):63===t&&3===n?(e.consume(t),$):93===t&&5===n?(e.consume(t),D):eY(t)&&(6===n||7===n)?(e.exit("htmlFlowData"),e.check(t6,F,M)(t)):null===t||eY(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),N)}function M(t){return e.check(t5,k,F)(t)}function k(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||eY(t)?M(t):(e.enter("htmlFlowData"),N(t))}function R(t){return 45===t?(e.consume(t),$):N(t)}function I(t){return 47===t?(e.consume(t),o="",P):N(t)}function P(t){if(62===t){let r=o.toLowerCase();return t3.includes(r)?(e.consume(t),L):N(t)}return ej(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):N(t)}function D(t){return 93===t?(e.consume(t),$):N(t)}function $(t){return 62===t?(e.consume(t),L):45===t&&2===n?(e.consume(t),$):N(t)}function L(t){return null===t||eY(t)?(e.exit("htmlFlowData"),F(t)):(e.consume(t),L)}function F(r){return e.exit("htmlFlow"),t(r)}}function t7(e,t,r){let n=this;return i;function i(t){return eY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):r(t)}function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}function re(e,t,r){return n;function n(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(eK,t,r)}}let rt={tokenize:ri,partial:!0},rr={name:"codeFenced",tokenize:rn,concrete:!0};function rn(e,t,r){let n;let i=this,o={tokenize:E,partial:!0},a=0,s=0;return c;function c(e){return u(e)}function u(t){let r=i.events[i.events.length-1];return a=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,n=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}function l(t){return t===n?(s++,e.consume(t),l):s<3?r(t):(e.exit("codeFencedFenceSequence"),eW(t)?eN(e,d,"whitespace")(t):d(t))}function d(r){return null===r||eY(r)?(e.exit("codeFencedFence"),i.interrupt?t(r):e.check(rt,m,v)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(r))}function f(t){return null===t||eY(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(t)):eW(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eN(e,h,"whitespace")(t)):96===t&&t===n?r(t):(e.consume(t),f)}function h(t){return null===t||eY(t)?d(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||eY(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(t)):96===t&&t===n?r(t):(e.consume(t),p)}function m(t){return e.attempt(o,v,b)(t)}function b(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return a>0&&eW(t)?eN(e,y,"linePrefix",a+1)(t):y(t)}function y(t){return null===t||eY(t)?e.check(rt,m,v)(t):(e.enter("codeFlowValue"),_(t))}function _(t){return null===t||eY(t)?(e.exit("codeFlowValue"),y(t)):(e.consume(t),_)}function v(r){return e.exit("codeFenced"),t(r)}function E(e,t,r){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c}function c(t){return e.enter("codeFencedFence"),eW(t)?eN(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===n?(e.enter("codeFencedFenceSequence"),l(t)):r(t)}function l(t){return t===n?(o++,e.consume(t),l):o>=s?(e.exit("codeFencedFenceSequence"),eW(t)?eN(e,d,"whitespace")(t):d(t)):r(t)}function d(n){return null===n||eY(n)?(e.exit("codeFencedFence"),t(n)):r(n)}}}function ri(e,t,r){let n=this;return i;function i(t){return null===t?r(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)}function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}let ro=document.createElement("i");function ra(e){let t="&"+e+";";ro.innerHTML=t;let r=ro.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&r!==t&&r}let rs={name:"characterReference",tokenize:rc};function rc(e,t,r){let n,i;let o=this,a=0;return s;function s(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),c}function c(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),n=31,i=eU,l(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,i=eV,l):(e.enter("characterReferenceValue"),n=7,i=ez,l(t))}function l(s){if(59===s&&a){let n=e.exit("characterReferenceValue");return i!==eU||ra(o.sliceSerialize(n))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)}return i(s)&&a++1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;let d=Object.assign({},e[r][1].end),f=Object.assign({},e[l][1].start);rP(d,-s),rP(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[l][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[l][1].start)},n={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[l][1].start=Object.assign({},a.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ev(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ev(c,[["enter",n,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=ev(c,tn(t.parser.constructs.insideSpan.null,e.slice(r+1,l),t)),c=ev(c,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",n,t]]),e[l][1].end.offset-e[l][1].start.offset?(u=2,c=ev(c,[["enter",e[l][1],t],["exit",e[l][1],t]])):u=0,e_(e,r-1,l-r+3,c),l=r+c.length-u-2;break}}for(l=-1;++l13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(65535&r)==65535||(65535&r)==65534||r>1114111?"�":String.fromCharCode(r)}let r0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function r2(e){return e.replace(r0,r3)}function r3(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){let e=r.charCodeAt(1),t=120===e||88===e;return r1(r.slice(t?2:1),t?16:10)}return ra(r)||e}let r4={}.hasOwnProperty,r6=function(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),r5(r)(rJ(rK(r).document().write(rQ()(e,t,!0))))};function r5(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(en),autolinkProtocol:N,autolinkEmail:N,atxHeading:s(J),blockQuote:s(W),characterEscape:N,characterReference:N,codeFenced:s(Z),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Z,c),codeText:s(K,c),codeTextData:N,data:N,codeFlowValue:N,definition:s(X),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Q),hardBreakEscape:s(ee),hardBreakTrailing:s(ee),htmlFlow:s(et,c),htmlFlowData:N,htmlText:s(et,c),htmlTextData:N,image:s(er),label:c,link:s(en),listItem:s(eo),listItemValue:p,listOrdered:s(ei,h),listUnordered:s(ei),paragraph:s(ea),reference:H,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(J),strong:s(es),thematicBreak:s(eu)},exit:{atxHeading:l(),atxHeadingSequence:A,autolink:l(),autolinkEmail:q,autolinkProtocol:Y,blockQuote:l(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:G,codeFenced:l(y),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:b,codeFlowValue:M,codeIndented:l(_),codeText:l(P),codeTextData:M,data:M,definition:l(),definitionDestinationString:T,definitionLabelString:v,definitionTitleString:E,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(R),htmlFlowData:M,htmlText:l(I),htmlTextData:M,image:l($),label:F,labelText:L,lineEnding:k,link:l(D),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:z,resourceDestinationString:j,resourceTitleString:U,resource:B,setextHeading:l(C),setextHeadingLineSequence:w,setextHeadingText:S,strong:l(),thematicBreak:l()}};r9(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(e){let r={type:"root",children:[]},n={stack:[r],tokenStack:[],config:t,enter:u,exit:d,buffer:c,resume:f,setData:o,getData:a},s=[],l=-1;for(;++l0){let e=n.tokenStack[n.tokenStack.length-1];(e[1]||ne).call(n,void 0,e[0])}for(r.position={start:r8(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:r8(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},l=-1;++lr6(t,Object.assign({},this.data("settings"),e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))})}let nr=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;ni(/[A-Za-z]/);let nn=ni(/[\dA-Za-z]/);function ni(e){return t;function t(t){return null!==t&&e.test(String.fromCharCode(t))}}function no(e){let t=[],r=-1,n=0,i=0;for(;++r55295&&o<57344){let t=e.charCodeAt(r+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(n,r),encodeURIComponent(a)),n=r+i+1,a=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function na(e){let t=[],r=-1;for(;++r1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),c.length>0&&c.push({type:"text",value:" "}),c.push(t)}let u=i[i.length-1];if(u&&"element"===u.type&&"p"===u.tagName){let e=u.children[u.children.length-1];e&&"text"===e.type?e.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...c)}else i.push(...c);let l={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(n,l),t.push(l)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}ni(/[#-'*+\--9=?A-Z^-~]/),ni(/\d/),ni(/[\dA-Fa-f]/),ni(/[!-/:-@[-`{-~]/),ni(nr),ni(/\s/);let ns=function(e){if(null==e)return nf;if("string"==typeof e)return nl(e);if("object"==typeof e)return Array.isArray(e)?nc(e):nu(e);if("function"==typeof e)return nd(e);throw Error("Expected function, string, or object as test")};function nc(e){let t=[],r=-1;for(;++r":""))+")"})}return l;function l(){let u,l,d,f=[];if((!t||i(e,s,c[c.length-1]||null))&&(f=ny(r(e,c)))[0]===nm)return f;if(e.children&&f[0]!==nb)for(l=(n?e.children.length:-1)+o,d=c.concat(e);l>-1&&l-1?r.offset:null}}}function nS(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}let nx={}.hasOwnProperty;function nw(e){let t=Object.create(null);if(!e||!e.type)throw Error("mdast-util-definitions expected node");return n_(e,"definition",e=>{let r=nC(e.identifier);r&&!nx.call(t,r)&&(t[r]=e)}),r;function r(e){let r=nC(e);return r&&nx.call(t,r)?t[r]:null}}function nC(e){return String(e||"").toUpperCase()}function nN(e,t){let r;let n=String(t.identifier).toUpperCase(),i=no(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);-1===o?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,r=e.footnoteOrder.length):(e.footnoteCounts[n]++,r=o+1);let a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+i,id:e.clobberPrefix+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(r)}]};e.patch(t,s);let c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)}function nM(e,t){let r=e.footnoteById,n=1;for(;(n in r);)n++;let i=String(n);return r[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},nN(e,{type:"footnoteReference",identifier:i,position:t.position})}function nk(e,t){let r=t.referenceType,n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+n};let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let a=i[i.length-1];return a&&"text"===a.type?a.value+=n:i.push({type:"text",value:n}),i}function nO(e){let t=!1;if("list"===e.type){t=e.spread||!1;let r=e.children,n=-1;for(;!t&&++n1:t}let nI=9,nP=32;function nD(e){let t=String(e),r=/\r?\n|\r/g,n=r.exec(t),i=0,o=[];for(;n;)o.push(n$(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return o.push(n$(t.slice(i),i>0,!1)),o.join("")}function n$(e,t,r){let n=0,i=e.length;if(t){let t=e.codePointAt(n);for(;t===nI||t===nP;)n++,t=e.codePointAt(n)}if(r){let t=e.codePointAt(i-1);for(;t===nI||t===nP;)i--,t=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}let nL={blockquote:function(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)},break:function(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:"\n"}]},code:function(e,t){let r=t.value?t.value+"\n":"",n=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};n&&(i.className=["language-"+n]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},emphasis:function(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},footnoteReference:nN,footnote:nM,heading:function(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},html:function(e,t){if(e.dangerous){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}return null},imageReference:function(e,t){let r=e.definition(t.identifier);if(!r)return nk(e,t);let n={src:no(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(n.title=r.title);let i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){let r={src:no(t.url)};null!==t.alt&&void 0!==t.alt&&(r.alt=t.alt),null!==t.title&&void 0!==t.title&&(r.title=t.title);let n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)},inlineCode:function(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)},linkReference:function(e,t){let r=e.definition(t.identifier);if(!r)return nk(e,t);let n={href:no(r.url||"")};null!==r.title&&void 0!==r.title&&(n.title=r.title);let i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){let r={href:no(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);let n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},listItem:function(e,t,r){let n=e.all(t),i=r?nO(r):nR(t),o={},a=[];if("boolean"==typeof t.checked){let e;let r=n[0];r&&"element"===r.type&&"p"===r.tagName?e=r:(e={type:"element",tagName:"p",properties:{},children:[]},n.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s0){let n={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=nv(t.children[1]),a=nE(t.children[t.children.length-1]);o.line&&a.line&&(n.position={start:o,end:a}),i.push(n)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},tableRow:function(e,t,r){let n=r?r.children:void 0,i=0===(n?n.indexOf(t):1)?"th":"td",o=r&&"table"===r.type?r.align:void 0,a=o?o.length:t.children.length,s=-1,c=[];for(;++s{let t=String(e.identifier).toUpperCase();nj.call(i,t)||(i[t]=e)}),a;function o(e,t){if(e&&"data"in e&&e.data){let r=e.data;r.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=r.hName),"element"===t.type&&r.hProperties&&(t.properties={...t.properties,...r.hProperties}),"children"in t&&t.children&&r.hChildren&&(t.children=r.hChildren)}if(e){let r="type"in e?e:{position:e};nS(r)||(t.position={start:nv(r),end:nE(r)})}return t}function a(e,t,r,n){return Array.isArray(r)&&(n=r,r={}),o(e,{type:"element",tagName:t,properties:r||{},children:n||[]})}function s(e,t){return nz(a,e,t)}function c(e){return nV(a,e)}}function nB(e,t){e.position&&(t.position=nT(e))}function nH(e,t){let r=t;if(e&&e.data){let t=e.data.hName,n=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===r.type?r.tagName=t:r={type:"element",tagName:t,properties:{},children:[]}),"element"===r.type&&i&&(r.properties={...r.properties,...i}),"children"in r&&r.children&&null!=n&&(r.children=n)}return r}function nz(e,t,r){let n=t&&t.type;if(!n)throw Error("Expected node, got `"+t+"`");return nj.call(e.handlers,n)?e.handlers[n](e,t,r):e.passThrough&&e.passThrough.includes(n)?"children"in t?{...t,children:nV(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,r):nG(e,t)}function nV(e,t){let r=[];if("children"in t){let n=t.children,i=-1;for(;++i0&&r.push({type:"text",value:"\n"}),r}function nq(e,t){let r=nU(e,t),n=r.one(e,null),i=na(r);return i&&n.children.push({type:"text",value:"\n"},i),Array.isArray(n)?{type:"root",children:n}:n}var nW=function(e,t){return e&&"run"in e?nZ(e,t):nK(e||t)};function nZ(e,t){return(r,n,i)=>{e.run(nq(r,t),n,e=>{i(e)})}}function nK(e){return t=>nq(t,e)}var nX=r(45697);class nQ{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}function nJ(e,t){let r={},n={},i=-1;for(;++i"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ic=ia({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function iu(e,t){return t in e?e[t]:t}function il(e,t){return iu(e,t.toLowerCase())}let id=ia({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:il,properties:{xmlns:null,xmlnsXLink:null}}),ih=ia({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:n4,ariaAutoComplete:null,ariaBusy:n4,ariaChecked:n4,ariaColCount:n5,ariaColIndex:n5,ariaColSpan:n5,ariaControls:n8,ariaCurrent:null,ariaDescribedBy:n8,ariaDetails:null,ariaDisabled:n4,ariaDropEffect:n8,ariaErrorMessage:null,ariaExpanded:n4,ariaFlowTo:n8,ariaGrabbed:n4,ariaHasPopup:null,ariaHidden:n4,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:n8,ariaLevel:n5,ariaLive:null,ariaModal:n4,ariaMultiLine:n4,ariaMultiSelectable:n4,ariaOrientation:null,ariaOwns:n8,ariaPlaceholder:null,ariaPosInSet:n5,ariaPressed:n4,ariaReadOnly:n4,ariaRelevant:null,ariaRequired:n4,ariaRoleDescription:n8,ariaRowCount:n5,ariaRowIndex:n5,ariaRowSpan:n5,ariaSelected:n4,ariaSetSize:n5,ariaSort:null,ariaValueMax:n5,ariaValueMin:n5,ariaValueNow:n5,ariaValueText:null,role:null}}),ip=ia({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:il,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:n9,acceptCharset:n8,accessKey:n8,action:null,allow:null,allowFullScreen:n3,allowPaymentRequest:n3,allowUserMedia:n3,alt:null,as:null,async:n3,autoCapitalize:null,autoComplete:n8,autoFocus:n3,autoPlay:n3,blocking:n8,capture:null,charSet:null,checked:n3,cite:null,className:n8,cols:n5,colSpan:null,content:null,contentEditable:n4,controls:n3,controlsList:n8,coords:n5|n9,crossOrigin:null,data:null,dateTime:null,decoding:null,default:n3,defer:n3,dir:null,dirName:null,disabled:n3,download:n6,draggable:n4,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:n3,formTarget:null,headers:n8,height:n5,hidden:n3,high:n5,href:null,hrefLang:null,htmlFor:n8,httpEquiv:n8,id:null,imageSizes:null,imageSrcSet:null,inert:n3,inputMode:null,integrity:null,is:null,isMap:n3,itemId:null,itemProp:n8,itemRef:n8,itemScope:n3,itemType:n8,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:n3,low:n5,manifest:null,max:null,maxLength:n5,media:null,method:null,min:null,minLength:n5,multiple:n3,muted:n3,name:null,nonce:null,noModule:n3,noValidate:n3,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:n3,optimum:n5,pattern:null,ping:n8,placeholder:null,playsInline:n3,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:n3,referrerPolicy:null,rel:n8,required:n3,reversed:n3,rows:n5,rowSpan:n5,sandbox:n8,scope:null,scoped:n3,seamless:n3,selected:n3,shadowRootClonable:n3,shadowRootDelegatesFocus:n3,shadowRootMode:null,shape:null,size:n5,sizes:null,slot:null,span:n5,spellCheck:n4,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n5,step:null,style:null,tabIndex:n5,target:null,title:null,translate:null,type:null,typeMustMatch:n3,useMap:null,value:n4,width:n5,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:n8,axis:null,background:null,bgColor:null,border:n5,borderColor:null,bottomMargin:n5,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:n3,declare:n3,event:null,face:null,frame:null,frameBorder:null,hSpace:n5,leftMargin:n5,link:null,longDesc:null,lowSrc:null,marginHeight:n5,marginWidth:n5,noResize:n3,noHref:n3,noShade:n3,noWrap:n3,object:null,profile:null,prompt:null,rev:null,rightMargin:n5,rules:null,scheme:null,scrolling:n4,standby:null,summary:null,text:null,topMargin:n5,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n5,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:n3,disableRemotePlayback:n3,prefix:null,property:null,results:n5,security:null,unselectable:null}}),im=ia({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:iu,properties:{about:n7,accentHeight:n5,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n5,amplitude:n5,arabicForm:null,ascent:n5,attributeName:null,attributeType:null,azimuth:n5,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n5,by:null,calcMode:null,capHeight:n5,className:n8,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n5,diffuseConstant:n5,direction:null,display:null,dur:null,divisor:n5,dominantBaseline:null,download:n3,dx:null,dy:null,edgeMode:null,editable:null,elevation:n5,enableBackground:null,end:null,event:null,exponent:n5,externalResourcesRequired:null,fill:null,fillOpacity:n5,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:n9,g2:n9,glyphName:n9,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n5,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n5,horizOriginX:n5,horizOriginY:n5,id:null,ideographic:n5,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n5,k:n5,k1:n5,k2:n5,k3:n5,k4:n5,kernelMatrix:n7,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n5,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n5,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n5,overlineThickness:n5,paintOrder:null,panose1:null,path:null,pathLength:n5,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:n8,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n5,pointsAtY:n5,pointsAtZ:n5,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:n7,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:n7,rev:n7,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:n7,requiredFeatures:n7,requiredFonts:n7,requiredFormats:n7,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n5,specularExponent:n5,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n5,strikethroughThickness:n5,string:null,stroke:null,strokeDashArray:n7,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n5,strokeOpacity:n5,strokeWidth:null,style:null,surfaceScale:n5,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:n7,tabIndex:n5,tableValues:null,target:null,targetX:n5,targetY:n5,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:n7,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:n5,underlineThickness:n5,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n5,values:null,vAlphabetic:n5,vMathematical:n5,vectorEffect:null,vHanging:n5,vIdeographic:n5,version:null,vertAdvY:n5,vertOriginX:n5,vertOriginY:n5,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n5,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ib=nJ([ic,is,id,ih,ip],"html"),ig=nJ([ic,is,id,ih,im],"svg");function iy(e){if(e.allowedElements&&e.disallowedElements)throw TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{n_(t,"element",(t,r,n)=>{let i;let o=n;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&"number"==typeof r&&(i=!e.allowElement(t,r,o)),i&&"number"==typeof r)return e.unwrapDisallowed&&t.children?o.children.splice(r,1,...t.children):o.children.splice(r,1),r})}}var i_=r(82143);function iv(e){let t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}let iE=/^data[-\w.:]+$/i,iT=/-[a-z]/g,iA=/[A-Z]/g;function iS(e,t){let r=n1(t),n=t,i=n0;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&iE.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(iT,iw);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!iT.test(e)){let r=e.replace(iA,ix);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}i=ir}return new i(n,t)}function ix(e){return"-"+e.toLowerCase()}function iw(e){return e.charAt(1).toUpperCase()}let iC={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};function iN(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function iM(e){return e.join(" ").trim()}function ik(e){let t=[],r=String(e||""),n=r.indexOf(","),i=0,o=!1;for(;!o;){-1===n&&(n=r.length,o=!0);let e=r.slice(i,n).trim();(e||!o)&&t.push(e),i=n+1,n=r.indexOf(",",i)}return t}function iO(e,t){let r=t||{};return(""===e[e.length-1]?[...e,""]:e).join((r.padRight?" ":"")+","+(!1===r.padLeft?"":" ")).trim()}var iR=r(57848);let iI=["http","https","mailto","tel"];function iP(e){let t=(e||"").trim(),r=t.charAt(0);if("#"===r||"/"===r)return t;let n=t.indexOf(":");if(-1===n)return t;let i=-1;for(;++ii||-1!==(i=t.indexOf("#"))&&n>i?t:"javascript:void(0)"}let iD={}.hasOwnProperty,i$=new Set(["table","thead","tbody","tfoot","tr"]);function iL(e,t){let r;let n=[],i=-1;for(;++i0?A.createElement(h,u,d):A.createElement(h,u)}function ij(e){let t=-1;for(;++t for more info)`),delete iq[t]}let t=et().use(nt).use(e.remarkPlugins||[]).use(nW,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(iy,e),r=new V;"string"==typeof e.children?r.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);let n=t.runSync(t.parse(r),r);if("root"!==n.type)throw TypeError("Expected a `root` node");let i=A.createElement(A.Fragment,{},iL({options:e,schema:ib,listDepth:0},n));return e.className&&(i=A.createElement("div",{className:e.className},i)),i}iW.propTypes={children:nX.string,className:nX.string,allowElement:nX.func,allowedElements:nX.arrayOf(nX.string),disallowedElements:nX.arrayOf(nX.string),unwrapDisallowed:nX.bool,remarkPlugins:nX.arrayOf(nX.oneOfType([nX.object,nX.func,nX.arrayOf(nX.oneOfType([nX.bool,nX.string,nX.object,nX.func,nX.arrayOf(nX.any)]))])),rehypePlugins:nX.arrayOf(nX.oneOfType([nX.object,nX.func,nX.arrayOf(nX.oneOfType([nX.bool,nX.string,nX.object,nX.func,nX.arrayOf(nX.any)]))])),sourcePos:nX.bool,rawSourcePos:nX.bool,skipHtml:nX.bool,includeElementIndex:nX.bool,transformLinkUri:nX.oneOfType([nX.func,nX.bool]),linkTarget:nX.oneOfType([nX.func,nX.string]),transformImageUri:nX.func,components:nX.object};let iZ=-1,iK=0,iX=1,iQ=2,iJ=3,i1=4,i0=5,i2=6,i3=7,i4=8,i6="object"==typeof self?self:globalThis,i5=(e,t)=>{let r=(t,r)=>(e.set(r,t),t),n=i=>{if(e.has(i))return e.get(i);let[o,a]=t[i];switch(o){case iK:case iZ:return r(a,i);case iX:{let e=r([],i);for(let t of a)e.push(n(t));return e}case iQ:{let e=r({},i);for(let[t,r]of a)e[n(t)]=n(r);return e}case iJ:return r(new Date(a),i);case i1:{let{source:e,flags:t}=a;return r(new RegExp(e,t),i)}case i0:{let e=r(new Map,i);for(let[t,r]of a)e.set(n(t),n(r));return e}case i2:{let e=r(new Set,i);for(let t of a)e.add(n(t));return e}case i3:{let{name:e,message:t}=a;return r(new i6[e](t),i)}case i4:return r(BigInt(a),i);case"BigInt":return r(Object(BigInt(a)),i)}return r(new i6[o](a),i)};return n},i8=e=>i5(new Map,e)(0),i9="",{toString:i7}={},{keys:oe}=Object,ot=e=>{let t=typeof e;if("object"!==t||!e)return[iK,t];let r=i7.call(e).slice(8,-1);switch(r){case"Array":return[iX,i9];case"Object":return[iQ,i9];case"Date":return[iJ,i9];case"RegExp":return[i1,i9];case"Map":return[i0,i9];case"Set":return[i2,i9]}return r.includes("Array")?[iX,r]:r.includes("Error")?[i3,r]:[iQ,r]},or=([e,t])=>e===iK&&("function"===t||"symbol"===t),on=(e,t,r,n)=>{let i=(e,t)=>{let i=n.push(e)-1;return r.set(t,i),i},o=n=>{if(r.has(n))return r.get(n);let[a,s]=ot(n);switch(a){case iK:{let t=n;switch(s){case"bigint":a=i4,t=n.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([iZ],n)}return i([a,t],n)}case iX:{if(s)return i([s,[...n]],n);let e=[],t=i([a,e],n);for(let t of n)e.push(o(t));return t}case iQ:{if(s)switch(s){case"BigInt":return i([s,n.toString()],n);case"Boolean":case"Number":case"String":return i([s,n.valueOf()],n)}if(t&&"toJSON"in n)return o(n.toJSON());let r=[],c=i([a,r],n);for(let t of oe(n))(e||!or(ot(n[t])))&&r.push([o(t),o(n[t])]);return c}case iJ:return i([a,n.toISOString()],n);case i1:{let{source:e,flags:t}=n;return i([a,{source:e,flags:t}],n)}case i0:{let t=[],r=i([a,t],n);for(let[r,i]of n)(e||!(or(ot(r))||or(ot(i))))&&t.push([o(r),o(i)]);return r}case i2:{let t=[],r=i([a,t],n);for(let r of n)(e||!or(ot(r)))&&t.push(o(r));return r}}let{message:c}=n;return i([a,{name:s,message:c}],n)};return o},oi=(e,{json:t,lossy:r}={})=>{let n=[];return on(!(t||r),!!t,new Map,n)(e),n};var oo="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?i8(oi(e,t)):structuredClone(e):(e,t)=>i8(oi(e,t));let oa=/[#.]/g;function os(e,t){let r,n;let i=e||"",o={},a=0;for(;a-1&&ee)return{line:t+1,column:e-(t>0?r[t-1]:0)+1,offset:e}}}function i(e){let t=e&&e.line,n=e&&e.column;if("number"==typeof t&&"number"==typeof n&&!Number.isNaN(t)&&!Number.isNaN(n)&&t-1 in r){let e=(r[t-2]||0)+n-1||0;if(e>-1&&e=55296&&e<=57343}function oJ(e){return e>=56320&&e<=57343}function o1(e,t){return(e-55296)*1024+9216+t}function o0(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function o2(e){return e>=64976&&e<=65007||oZ.has(e)}!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(i=i||(i={}));let o3=65536;class o4{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=o3,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){let{line:t,col:r,offset:n}=this;return{code:e,startLine:t,endLine:t,startCol:r,endCol:r,startOffset:n,endOffset:n}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(oJ(t))return this.pos++,this._addGap(),o1(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,n.EOF;return this._err(i.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,n.EOF;let r=this.html.charCodeAt(t);return r===n.CARRIAGE_RETURN?n.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,n.EOF;let e=this.html.charCodeAt(this.pos);return e===n.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,n.LINE_FEED):e===n.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,oQ(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===n.LINE_FEED||e===n.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){o0(e)?this._err(i.controlCharacterInInputStream):o2(e)&&this._err(i.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(o=o||(o={}));var o5=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\ud835\udd04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\ud835\udd38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\ud835\udc9cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\ud835\udd05pf;쀀\ud835\udd39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\ud835\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\ud835\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\ud835\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\ud835\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\ud835\udd08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\ud835\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\ud835\udd09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\ud835\udd3dAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\ud835\udd0a;拙pf;쀀\ud835\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\ud835\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\ud835\udd40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\ud835\udd0dpf;쀀\ud835\udd41ǣ߇\0ߌr;쀀\ud835\udca5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\ud835\udd0epf;쀀\ud835\udd42cr;쀀\ud835\udca6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\ud835\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\ud835\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\ud835\udd10nusPlus;戓pf;쀀\ud835\udd44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\ud835\udd11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\ud835\udca9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\ud835\udd12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\ud835\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\ud835\udcaaash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\ud835\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\ud835\udcab;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\ud835\udd14pf;愚cr;쀀\ud835\udcac؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\ud835\udd16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\ud835\udd4aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\ud835\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\ud835\udd17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\ud835\udd4bipleDot;惛Āctዖዛr;쀀\ud835\udcafrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\ud835\udd18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\ud835\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\ud835\udcb0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\ud835\udd19pf;쀀\ud835\udd4dcr;쀀\ud835\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\ud835\udd1apf;쀀\ud835\udd4ecr;쀀\ud835\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\ud835\udd1b;䎞pf;쀀\ud835\udd4fcr;쀀\ud835\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\ud835\udd1cpf;쀀\ud835\udd50cr;쀀\ud835\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\ud835\udcb5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\ud835\udd1erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\ud835\udd52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\ud835\udcb6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\ud835\udd1fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\ud835\udd53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\ud835\udcb7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\ud835\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\ud835\udd54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\ud835\udcb8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\ud835\udd21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\ud835\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\ud835\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\ud835\udd22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\ud835\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\ud835\udd23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\ud835\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\ud835\udcbbࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\ud835\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\ud835\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\ud835\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\ud835\udd59bar;怕ƀclt≯≴≸r;쀀\ud835\udcbdas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\ud835\udd26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\ud835\udd5aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\ud835\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\ud835\udd27ath;䈷pf;쀀\ud835\udd5bǣ⏬\0⏱r;쀀\ud835\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\ud835\udd28reen;䄸cy;䑅cy;䑜pf;쀀\ud835\udd5ccr;쀀\ud835\udcc0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\ud835\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\ud835\udd5dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\ud835\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\ud835\udd2ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\ud835\udd5eĀct⣸⣽r;쀀\ud835\udcc2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\ud835\udd2bȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\ud835\udd5f膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\ud835\udcc3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\ud835\udd2cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\ud835\udd60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\ud835\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\ud835\udd61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\ud835\udcc5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\ud835\udd2epf;쀀\ud835\udd62rime;恗cr;쀀\ud835\udcc6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\ud835\udd2fĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\ud835\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\ud835\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\ud835\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\ud835\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\ud835\udcc8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\ud835\udd31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\ud835\udd65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\ud835\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\ud835\udd32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\ud835\udd66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\ud835\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\ud835\udd33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\ud835\udd67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\ud835\udccbĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\ud835\udd34pf;쀀\ud835\udd68Ā;eᑹ㩦at\xe8ᑹcr;쀀\ud835\udcccૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\ud835\udd35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\ud835\udd69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\ud835\udccdĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\ud835\udd36cy;䑗pf;쀀\ud835\udd6acr;쀀\ud835\udcceĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\ud835\udd37cy;䐶grarr;懝pf;쀀\ud835\udd6bcr;쀀\ud835\udccfĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),o8=new Uint16Array("Ȁaglq \x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));let o9=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),o7=null!==(a=String.fromCodePoint)&&void 0!==a?a:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function ae(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=o9.get(e))&&void 0!==t?t:e}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(s||(s={}));let at=32;function ar(e){return e>=s.ZERO&&e<=s.NINE}function an(e){return e>=s.UPPER_A&&e<=s.UPPER_F||e>=s.LOWER_A&&e<=s.LOWER_F}function ai(e){return e>=s.UPPER_A&&e<=s.UPPER_Z||e>=s.LOWER_A&&e<=s.LOWER_Z||ar(e)}function ao(e){return e===s.EQUALS||ai(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(c||(c={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(u||(u={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(l||(l={}));class aa{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=u.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=l.Strict}startEntity(e){this.decodeMode=e,this.state=u.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case u.EntityStart:if(e.charCodeAt(t)===s.NUM)return this.state=u.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=u.NamedEntity,this.stateNamedEntity(e,t);case u.NumericStart:return this.stateNumericStart(e,t);case u.NumericDecimal:return this.stateNumericDecimal(e,t);case u.NumericHex:return this.stateNumericHex(e,t);case u.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|at)===s.LOWER_X?(this.state=u.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=u.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){let i=r-t;this.result=this.result*Math.pow(n,i)+parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){let r=t;for(;t>14;for(;t>14)){if(o===s.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==l.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&c.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~c.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case u.NamedEntity:return 0!==this.result&&(this.decodeMode!==l.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case u.NumericDecimal:return this.emitNumericEntity(0,2);case u.NumericHex:return this.emitNumericEntity(0,3);case u.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case u.EntityStart:return 0}}}function as(e){let t="",r=new aa(e,e=>t+=o7(e));return function(e,n){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),r.startEntity(n);let a=r.write(e,o+1);if(a<0){i=o+r.end();break}i=o+a,o=0===a?i+1:i}let a=t+e.slice(i);return t="",a}}function ac(e,t,r,n){let i=(t&c.BRANCH_LENGTH)>>7,o=t&c.JUMP_TABLE;if(0===i)return 0!==o&&n===o?r:-1;if(o){let t=n-o;return t<0||t>=i?-1:e[r+t]-1}let a=r,s=a+i-1;for(;a<=s;){let t=a+s>>>1,r=e[t];if(rn))return e[t+i];s=t-1}}return -1}as(o5),as(o8),function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(d=d||(d={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(f=f||(f={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(h=h||(h={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(p=p||(p={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"}(m=m||(m={}));let au=new Map([[p.A,m.A],[p.ADDRESS,m.ADDRESS],[p.ANNOTATION_XML,m.ANNOTATION_XML],[p.APPLET,m.APPLET],[p.AREA,m.AREA],[p.ARTICLE,m.ARTICLE],[p.ASIDE,m.ASIDE],[p.B,m.B],[p.BASE,m.BASE],[p.BASEFONT,m.BASEFONT],[p.BGSOUND,m.BGSOUND],[p.BIG,m.BIG],[p.BLOCKQUOTE,m.BLOCKQUOTE],[p.BODY,m.BODY],[p.BR,m.BR],[p.BUTTON,m.BUTTON],[p.CAPTION,m.CAPTION],[p.CENTER,m.CENTER],[p.CODE,m.CODE],[p.COL,m.COL],[p.COLGROUP,m.COLGROUP],[p.DD,m.DD],[p.DESC,m.DESC],[p.DETAILS,m.DETAILS],[p.DIALOG,m.DIALOG],[p.DIR,m.DIR],[p.DIV,m.DIV],[p.DL,m.DL],[p.DT,m.DT],[p.EM,m.EM],[p.EMBED,m.EMBED],[p.FIELDSET,m.FIELDSET],[p.FIGCAPTION,m.FIGCAPTION],[p.FIGURE,m.FIGURE],[p.FONT,m.FONT],[p.FOOTER,m.FOOTER],[p.FOREIGN_OBJECT,m.FOREIGN_OBJECT],[p.FORM,m.FORM],[p.FRAME,m.FRAME],[p.FRAMESET,m.FRAMESET],[p.H1,m.H1],[p.H2,m.H2],[p.H3,m.H3],[p.H4,m.H4],[p.H5,m.H5],[p.H6,m.H6],[p.HEAD,m.HEAD],[p.HEADER,m.HEADER],[p.HGROUP,m.HGROUP],[p.HR,m.HR],[p.HTML,m.HTML],[p.I,m.I],[p.IMG,m.IMG],[p.IMAGE,m.IMAGE],[p.INPUT,m.INPUT],[p.IFRAME,m.IFRAME],[p.KEYGEN,m.KEYGEN],[p.LABEL,m.LABEL],[p.LI,m.LI],[p.LINK,m.LINK],[p.LISTING,m.LISTING],[p.MAIN,m.MAIN],[p.MALIGNMARK,m.MALIGNMARK],[p.MARQUEE,m.MARQUEE],[p.MATH,m.MATH],[p.MENU,m.MENU],[p.META,m.META],[p.MGLYPH,m.MGLYPH],[p.MI,m.MI],[p.MO,m.MO],[p.MN,m.MN],[p.MS,m.MS],[p.MTEXT,m.MTEXT],[p.NAV,m.NAV],[p.NOBR,m.NOBR],[p.NOFRAMES,m.NOFRAMES],[p.NOEMBED,m.NOEMBED],[p.NOSCRIPT,m.NOSCRIPT],[p.OBJECT,m.OBJECT],[p.OL,m.OL],[p.OPTGROUP,m.OPTGROUP],[p.OPTION,m.OPTION],[p.P,m.P],[p.PARAM,m.PARAM],[p.PLAINTEXT,m.PLAINTEXT],[p.PRE,m.PRE],[p.RB,m.RB],[p.RP,m.RP],[p.RT,m.RT],[p.RTC,m.RTC],[p.RUBY,m.RUBY],[p.S,m.S],[p.SCRIPT,m.SCRIPT],[p.SECTION,m.SECTION],[p.SELECT,m.SELECT],[p.SOURCE,m.SOURCE],[p.SMALL,m.SMALL],[p.SPAN,m.SPAN],[p.STRIKE,m.STRIKE],[p.STRONG,m.STRONG],[p.STYLE,m.STYLE],[p.SUB,m.SUB],[p.SUMMARY,m.SUMMARY],[p.SUP,m.SUP],[p.TABLE,m.TABLE],[p.TBODY,m.TBODY],[p.TEMPLATE,m.TEMPLATE],[p.TEXTAREA,m.TEXTAREA],[p.TFOOT,m.TFOOT],[p.TD,m.TD],[p.TH,m.TH],[p.THEAD,m.THEAD],[p.TITLE,m.TITLE],[p.TR,m.TR],[p.TRACK,m.TRACK],[p.TT,m.TT],[p.U,m.U],[p.UL,m.UL],[p.SVG,m.SVG],[p.VAR,m.VAR],[p.WBR,m.WBR],[p.XMP,m.XMP]]);function al(e){var t;return null!==(t=au.get(e))&&void 0!==t?t:m.UNKNOWN}let ad=m,af={[d.HTML]:new Set([ad.ADDRESS,ad.APPLET,ad.AREA,ad.ARTICLE,ad.ASIDE,ad.BASE,ad.BASEFONT,ad.BGSOUND,ad.BLOCKQUOTE,ad.BODY,ad.BR,ad.BUTTON,ad.CAPTION,ad.CENTER,ad.COL,ad.COLGROUP,ad.DD,ad.DETAILS,ad.DIR,ad.DIV,ad.DL,ad.DT,ad.EMBED,ad.FIELDSET,ad.FIGCAPTION,ad.FIGURE,ad.FOOTER,ad.FORM,ad.FRAME,ad.FRAMESET,ad.H1,ad.H2,ad.H3,ad.H4,ad.H5,ad.H6,ad.HEAD,ad.HEADER,ad.HGROUP,ad.HR,ad.HTML,ad.IFRAME,ad.IMG,ad.INPUT,ad.LI,ad.LINK,ad.LISTING,ad.MAIN,ad.MARQUEE,ad.MENU,ad.META,ad.NAV,ad.NOEMBED,ad.NOFRAMES,ad.NOSCRIPT,ad.OBJECT,ad.OL,ad.P,ad.PARAM,ad.PLAINTEXT,ad.PRE,ad.SCRIPT,ad.SECTION,ad.SELECT,ad.SOURCE,ad.STYLE,ad.SUMMARY,ad.TABLE,ad.TBODY,ad.TD,ad.TEMPLATE,ad.TEXTAREA,ad.TFOOT,ad.TH,ad.THEAD,ad.TITLE,ad.TR,ad.TRACK,ad.UL,ad.WBR,ad.XMP]),[d.MATHML]:new Set([ad.MI,ad.MO,ad.MN,ad.MS,ad.MTEXT,ad.ANNOTATION_XML]),[d.SVG]:new Set([ad.TITLE,ad.FOREIGN_OBJECT,ad.DESC]),[d.XLINK]:new Set,[d.XML]:new Set,[d.XMLNS]:new Set};function ah(e){return e===ad.H1||e===ad.H2||e===ad.H3||e===ad.H4||e===ad.H5||e===ad.H6}p.STYLE,p.SCRIPT,p.XMP,p.IFRAME,p.NOEMBED,p.NOFRAMES,p.PLAINTEXT;let ap=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"}(b||(b={}));let am={DATA:b.DATA,RCDATA:b.RCDATA,RAWTEXT:b.RAWTEXT,SCRIPT_DATA:b.SCRIPT_DATA,PLAINTEXT:b.PLAINTEXT,CDATA_SECTION:b.CDATA_SECTION};function ab(e){return e>=n.DIGIT_0&&e<=n.DIGIT_9}function ag(e){return e>=n.LATIN_CAPITAL_A&&e<=n.LATIN_CAPITAL_Z}function ay(e){return e>=n.LATIN_SMALL_A&&e<=n.LATIN_SMALL_Z}function a_(e){return ay(e)||ag(e)}function av(e){return a_(e)||ab(e)}function aE(e){return e>=n.LATIN_CAPITAL_A&&e<=n.LATIN_CAPITAL_F}function aT(e){return e>=n.LATIN_SMALL_A&&e<=n.LATIN_SMALL_F}function aA(e){return ab(e)||aE(e)||aT(e)}function aS(e){return e+32}function ax(e){return e===n.SPACE||e===n.LINE_FEED||e===n.TABULATION||e===n.FORM_FEED}function aw(e){return e===n.EQUALS_SIGN||av(e)}function aC(e){return ax(e)||e===n.SOLIDUS||e===n.GREATER_THAN_SIGN}class aN{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=b.DATA,this.returnState=b.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new o4(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,r;null===(r=(t=this.handler).onParseError)||void 0===r||r.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==r||r()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(i.endTagWithAttributes),e.selfClosing&&this._err(i.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case o.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case o.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case o.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:o.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type!==e)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=t;return}}this._createCharacterToken(e,t)}_emitCodePoint(e){let t=ax(e)?o.WHITESPACE_CHARACTER:e===n.NULL?o.NULL_CHARACTER:o.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(o.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,r=0,o=!1;for(let i=0,a=o5[0];i>=0&&!((i=ac(o5,a,i+1,e))<0);e=this._consume()){r+=1;let s=(a=o5[i])&c.VALUE_LENGTH;if(s){let a=(s>>14)-1;if(e!==n.SEMICOLON&&this._isCharacterReferenceInAttribute()&&aw(this.preprocessor.peek(1))?(t=[n.AMPERSAND],i+=a):(t=0===a?[o5[i]&~c.VALUE_LENGTH]:1===a?[o5[++i]]:[o5[++i],o5[++i]],r=0,o=e!==n.SEMICOLON),0===a){this._consume();break}}}return this._unconsume(r),o&&!this.preprocessor.endOfChunkHit&&this._err(i.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===b.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case b.DATA:this._stateData(e);break;case b.RCDATA:this._stateRcdata(e);break;case b.RAWTEXT:this._stateRawtext(e);break;case b.SCRIPT_DATA:this._stateScriptData(e);break;case b.PLAINTEXT:this._statePlaintext(e);break;case b.TAG_OPEN:this._stateTagOpen(e);break;case b.END_TAG_OPEN:this._stateEndTagOpen(e);break;case b.TAG_NAME:this._stateTagName(e);break;case b.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case b.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case b.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case b.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case b.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case b.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case b.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case b.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case b.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case b.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case b.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case b.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case b.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case b.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case b.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case b.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case b.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case b.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case b.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case b.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case b.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case b.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case b.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case b.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case b.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case b.BOGUS_COMMENT:this._stateBogusComment(e);break;case b.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case b.COMMENT_START:this._stateCommentStart(e);break;case b.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case b.COMMENT:this._stateComment(e);break;case b.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case b.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case b.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case b.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case b.COMMENT_END:this._stateCommentEnd(e);break;case b.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case b.DOCTYPE:this._stateDoctype(e);break;case b.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case b.DOCTYPE_NAME:this._stateDoctypeName(e);break;case b.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case b.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case b.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case b.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case b.CDATA_SECTION:this._stateCdataSection(e);break;case b.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case b.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case b.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case b.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case b.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case b.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case b.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case b.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case b.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case b.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case n.LESS_THAN_SIGN:this.state=b.TAG_OPEN;break;case n.AMPERSAND:this.returnState=b.DATA,this.state=b.CHARACTER_REFERENCE;break;case n.NULL:this._err(i.unexpectedNullCharacter),this._emitCodePoint(e);break;case n.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case n.AMPERSAND:this.returnState=b.RCDATA,this.state=b.CHARACTER_REFERENCE;break;case n.LESS_THAN_SIGN:this.state=b.RCDATA_LESS_THAN_SIGN;break;case n.NULL:this._err(i.unexpectedNullCharacter),this._emitChars(oK);break;case n.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case n.LESS_THAN_SIGN:this.state=b.RAWTEXT_LESS_THAN_SIGN;break;case n.NULL:this._err(i.unexpectedNullCharacter),this._emitChars(oK);break;case n.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case n.LESS_THAN_SIGN:this.state=b.SCRIPT_DATA_LESS_THAN_SIGN;break;case n.NULL:this._err(i.unexpectedNullCharacter),this._emitChars(oK);break;case n.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case n.NULL:this._err(i.unexpectedNullCharacter),this._emitChars(oK);break;case n.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(a_(e))this._createStartTagToken(),this.state=b.TAG_NAME,this._stateTagName(e);else switch(e){case n.EXCLAMATION_MARK:this.state=b.MARKUP_DECLARATION_OPEN;break;case n.SOLIDUS:this.state=b.END_TAG_OPEN;break;case n.QUESTION_MARK:this._err(i.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=b.BOGUS_COMMENT,this._stateBogusComment(e);break;case n.EOF:this._err(i.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(i.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=b.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(a_(e))this._createEndTagToken(),this.state=b.TAG_NAME,this._stateTagName(e);else switch(e){case n.GREATER_THAN_SIGN:this._err(i.missingEndTagName),this.state=b.DATA;break;case n.EOF:this._err(i.eofBeforeTagName),this._emitChars("");break;case n.NULL:this._err(i.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(oK);break;case n.EOF:this._err(i.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===n.SOLIDUS?this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:a_(e)?(this._emitChars("<"),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){a_(e)?(this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case n.NULL:this._err(i.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(oK);break;case n.EOF:this._err(i.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===n.SOLIDUS?(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(oX.SCRIPT,!1)&&aC(this.preprocessor.peek(oX.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e1114111)this._err(i.characterReferenceOutsideUnicodeRange),this.charRefCode=n.REPLACEMENT_CHARACTER;else if(oQ(this.charRefCode))this._err(i.surrogateCharacterReference),this.charRefCode=n.REPLACEMENT_CHARACTER;else if(o2(this.charRefCode))this._err(i.noncharacterCharacterReference);else if(o0(this.charRefCode)||this.charRefCode===n.CARRIAGE_RETURN){this._err(i.controlCharacterReference);let e=ap.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}let aM=new Set([m.DD,m.DT,m.LI,m.OPTGROUP,m.OPTION,m.P,m.RB,m.RP,m.RT,m.RTC]),ak=new Set([...aM,m.CAPTION,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]),aO=new Map([[m.APPLET,d.HTML],[m.CAPTION,d.HTML],[m.HTML,d.HTML],[m.MARQUEE,d.HTML],[m.OBJECT,d.HTML],[m.TABLE,d.HTML],[m.TD,d.HTML],[m.TEMPLATE,d.HTML],[m.TH,d.HTML],[m.ANNOTATION_XML,d.MATHML],[m.MI,d.MATHML],[m.MN,d.MATHML],[m.MO,d.MATHML],[m.MS,d.MATHML],[m.MTEXT,d.MATHML],[m.DESC,d.SVG],[m.FOREIGN_OBJECT,d.SVG],[m.TITLE,d.SVG]]),aR=[m.H1,m.H2,m.H3,m.H4,m.H5,m.H6],aI=[m.TR,m.TEMPLATE,m.HTML],aP=[m.TBODY,m.TFOOT,m.THEAD,m.TEMPLATE,m.HTML],aD=[m.TABLE,m.TEMPLATE,m.HTML],a$=[m.TD,m.TH];class aL{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,r){this.treeAdapter=t,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=m.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===m.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===d.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&(this.current=t)}insertAfter(e,t,r){let n=this._indexOf(e)+1;this.items.splice(n,0,t),this.tagIDs.splice(n,0,r),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==d.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;r--)if(e.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===t)return r;return -1}clearBackTo(e,t){let r=this._indexOfTagNames(e,t);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(aD,d.HTML)}clearBackToTableBodyContext(){this.clearBackTo(aP,d.HTML)}clearBackToTableRowContext(){this.clearBackTo(aI,d.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===m.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===m.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===d.HTML)break;if(aO.get(r)===n)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(ah(t)&&r===d.HTML)break;if(aO.get(t)===r)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===d.HTML)break;if((r===m.UL||r===m.OL)&&n===d.HTML||aO.get(r)===n)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===d.HTML)break;if(r===m.BUTTON&&n===d.HTML||aO.get(r)===n)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===d.HTML){if(r===e)break;if(r===m.TABLE||r===m.TEMPLATE||r===m.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===d.HTML){if(t===m.TBODY||t===m.THEAD||t===m.TFOOT)break;if(t===m.TABLE||t===m.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===d.HTML){if(r===e)break;if(r!==m.OPTION&&r!==m.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;aM.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ak.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&ak.has(this.currentTagId);)this.pop()}}let aF=3;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(g=g||(g={}));let aj={type:g.Marker};class aU{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let r=[],n=t.length,i=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let e=0;e[e.name,e.value])),i=0;for(let e=0;en.get(e.name)===e.value)&&(i+=1)>=aF&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(aj)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:g.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:g.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(aj);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===g.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===g.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===g.Element&&t.element===e)}}function aB(e){return{nodeName:"#text",value:e,parentNode:null}}let aH={createDocument:()=>({nodeName:"#document",mode:h.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,r)=>({nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){let n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,r,n){let i=e.childNodes.find(e=>"#documentType"===e.nodeName);if(i)i.name=t,i.publicId=r,i.systemId=n;else{let i={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};aH.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let r=e.childNodes[e.childNodes.length-1];if(aH.isTextNode(r)){r.value+=t;return}}aH.appendChild(e,aB(t))},insertTextBefore(e,t,r){let n=e.childNodes[e.childNodes.indexOf(r)-1];n&&aH.isTextNode(n)?n.value+=t:aH.insertBefore(e,aB(t),r)},adoptAttributes(e,t){let r=new Set(e.attrs.map(e=>e.name));for(let n=0;ne.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},az="html",aV="about:legacy-compat",aG="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",aY=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],aq=[...aY,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],aW=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),aZ=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],aK=[...aZ,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function aX(e,t){return t.some(t=>e.startsWith(t))}function aQ(e){return e.name===az&&null===e.publicId&&(null===e.systemId||e.systemId===aV)}function aJ(e){if(e.name!==az)return h.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===aG)return h.QUIRKS;let{publicId:r}=e;if(null!==r){if(r=r.toLowerCase(),aW.has(r))return h.QUIRKS;let e=null===t?aq:aY;if(aX(r,e))return h.QUIRKS;if(aX(r,e=null===t?aZ:aK))return h.LIMITED_QUIRKS}return h.NO_QUIRKS}let a1={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},a0="definitionurl",a2="definitionURL",a3=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),a4=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:d.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:d.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:d.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:d.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:d.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:d.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:d.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:d.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:d.XML}],["xml:space",{prefix:"xml",name:"space",namespace:d.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:d.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:d.XMLNS}]]),a6=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),a5=new Set([m.B,m.BIG,m.BLOCKQUOTE,m.BODY,m.BR,m.CENTER,m.CODE,m.DD,m.DIV,m.DL,m.DT,m.EM,m.EMBED,m.H1,m.H2,m.H3,m.H4,m.H5,m.H6,m.HEAD,m.HR,m.I,m.IMG,m.LI,m.LISTING,m.MENU,m.META,m.NOBR,m.OL,m.P,m.PRE,m.RUBY,m.S,m.SMALL,m.SPAN,m.STRONG,m.STRIKE,m.SUB,m.SUP,m.TABLE,m.TT,m.U,m.UL,m.VAR]);function a8(e){let t=e.tagID;return t===m.FONT&&e.attrs.some(({name:e})=>e===f.COLOR||e===f.SIZE||e===f.FACE)||a5.has(t)}function a9(e){for(let t=0;t0&&this._setContextModes(e,t)}onItemPop(e,t){var r,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(n=(r=this.treeAdapter).onItemPop)||void 0===n||n.call(r,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let r=e===this.document||this.treeAdapter.getNamespaceURI(e)===d.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,d.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=y.TEXT}switchToPlaintextParsing(){this.insertionMode=y.TEXT,this.originalInsertionMode=y.IN_BODY,this.tokenizer.state=am.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===p.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===d.HTML)switch(this.fragmentContextID){case m.TITLE:case m.TEXTAREA:this.tokenizer.state=am.RCDATA;break;case m.STYLE:case m.XMP:case m.IFRAME:case m.NOEMBED:case m.NOFRAMES:case m.NOSCRIPT:this.tokenizer.state=am.RAWTEXT;break;case m.SCRIPT:this.tokenizer.state=am.SCRIPT_DATA;break;case m.PLAINTEXT:this.tokenizer.state=am.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",r=e.publicId||"",n=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,r,n),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let r=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){let r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,t){let r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,t){let r=this.treeAdapter.createElement(e,d.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,d.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(p.HTML,d.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,m.HTML)}_appendCommentNode(e,t){let r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let t,r;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(t,e.chars,r):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let n=this.treeAdapter.getChildNodes(t),i=r?n.lastIndexOf(r):n.length,o=n[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){let{endLine:t,endCol:r,endOffset:n}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:r,endOffset:n})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let r=t.location,n=this.treeAdapter.getTagName(e),i=t.type===o.END_TAG&&n===t.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){let t,r;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,r=this.fragmentContextID):{current:t,currentTagId:r}=this.openElements,(e.tagID!==m.SVG||this.treeAdapter.getTagName(t)!==p.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==d.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===m.MGLYPH||e.tagID===m.MALIGNMARK)&&!this._isIntegrationPoint(r,t,d.HTML)))}_processToken(e){switch(e.type){case o.CHARACTER:this.onCharacter(e);break;case o.NULL_CHARACTER:this.onNullCharacter(e);break;case o.COMMENT:this.onComment(e);break;case o.DOCTYPE:this.onDoctype(e);break;case o.START_TAG:this._processStartTag(e);break;case o.END_TAG:this.onEndTag(e);break;case o.EOF:this.onEof(e);break;case o.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,r){return si(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),r)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===g.Marker||this.openElements.contains(e.element)),r=t<0?e-1:t-1;for(let e=r;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=y.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(m.P),this.openElements.popUntilTagNamePopped(m.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case m.TR:this.insertionMode=y.IN_ROW;return;case m.TBODY:case m.THEAD:case m.TFOOT:this.insertionMode=y.IN_TABLE_BODY;return;case m.CAPTION:this.insertionMode=y.IN_CAPTION;return;case m.COLGROUP:this.insertionMode=y.IN_COLUMN_GROUP;return;case m.TABLE:this.insertionMode=y.IN_TABLE;return;case m.BODY:this.insertionMode=y.IN_BODY;return;case m.FRAMESET:this.insertionMode=y.IN_FRAMESET;return;case m.SELECT:this._resetInsertionModeForSelect(e);return;case m.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case m.HTML:this.insertionMode=this.headElement?y.AFTER_HEAD:y.BEFORE_HEAD;return;case m.TD:case m.TH:if(e>0){this.insertionMode=y.IN_CELL;return}break;case m.HEAD:if(e>0){this.insertionMode=y.IN_HEAD;return}}this.insertionMode=y.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===m.TEMPLATE)break;if(e===m.TABLE){this.insertionMode=y.IN_SELECT_IN_TABLE;return}}this.insertionMode=y.IN_SELECT}_isElementCausesFosterParenting(e){return su.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case m.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===d.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case m.TABLE:{let r=this.treeAdapter.getParentNode(t);if(r)return{parent:r,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return af[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){uu(this,e);return}switch(this.insertionMode){case y.INITIAL:sS(this,e);break;case y.BEFORE_HTML:sC(this,e);break;case y.BEFORE_HEAD:sk(this,e);break;case y.IN_HEAD:sP(this,e);break;case y.IN_HEAD_NO_SCRIPT:sL(this,e);break;case y.AFTER_HEAD:sU(this,e);break;case y.IN_BODY:case y.IN_CAPTION:case y.IN_CELL:case y.IN_TEMPLATE:sz(this,e);break;case y.TEXT:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case y.IN_TABLE:case y.IN_TABLE_BODY:case y.IN_ROW:cN(this,e);break;case y.IN_TABLE_TEXT:cB(this,e);break;case y.IN_COLUMN_GROUP:cW(this,e);break;case y.AFTER_BODY:ue(this,e);break;case y.AFTER_AFTER_BODY:ua(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){uc(this,e);return}switch(this.insertionMode){case y.INITIAL:sS(this,e);break;case y.BEFORE_HTML:sC(this,e);break;case y.BEFORE_HEAD:sk(this,e);break;case y.IN_HEAD:sP(this,e);break;case y.IN_HEAD_NO_SCRIPT:sL(this,e);break;case y.AFTER_HEAD:sU(this,e);break;case y.TEXT:this._insertCharacters(e);break;case y.IN_TABLE:case y.IN_TABLE_BODY:case y.IN_ROW:cN(this,e);break;case y.IN_COLUMN_GROUP:cW(this,e);break;case y.AFTER_BODY:ue(this,e);break;case y.AFTER_AFTER_BODY:ua(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){s_(this,e);return}switch(this.insertionMode){case y.INITIAL:case y.BEFORE_HTML:case y.BEFORE_HEAD:case y.IN_HEAD:case y.IN_HEAD_NO_SCRIPT:case y.AFTER_HEAD:case y.IN_BODY:case y.IN_TABLE:case y.IN_CAPTION:case y.IN_COLUMN_GROUP:case y.IN_TABLE_BODY:case y.IN_ROW:case y.IN_CELL:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:case y.IN_TEMPLATE:case y.IN_FRAMESET:case y.AFTER_FRAMESET:s_(this,e);break;case y.IN_TABLE_TEXT:cH(this,e);break;case y.AFTER_BODY:sv(this,e);break;case y.AFTER_AFTER_BODY:case y.AFTER_AFTER_FRAMESET:sE(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case y.INITIAL:sA(this,e);break;case y.BEFORE_HEAD:case y.IN_HEAD:case y.IN_HEAD_NO_SCRIPT:case y.AFTER_HEAD:this._err(e,i.misplacedDoctype);break;case y.IN_TABLE_TEXT:cH(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,i.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?ud(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case y.INITIAL:sS(this,e);break;case y.BEFORE_HTML:sx(this,e);break;case y.BEFORE_HEAD:sN(this,e);break;case y.IN_HEAD:sO(this,e);break;case y.IN_HEAD_NO_SCRIPT:sD(this,e);break;case y.AFTER_HEAD:sF(this,e);break;case y.IN_BODY:cf(this,e);break;case y.IN_TABLE:cL(this,e);break;case y.IN_TABLE_TEXT:cH(this,e);break;case y.IN_CAPTION:cV(this,e);break;case y.IN_COLUMN_GROUP:cY(this,e);break;case y.IN_TABLE_BODY:cZ(this,e);break;case y.IN_ROW:cX(this,e);break;case y.IN_CELL:cJ(this,e);break;case y.IN_SELECT:c0(this,e);break;case y.IN_SELECT_IN_TABLE:c3(this,e);break;case y.IN_TEMPLATE:c6(this,e);break;case y.AFTER_BODY:c9(this,e);break;case y.IN_FRAMESET:ut(this,e);break;case y.AFTER_FRAMESET:un(this,e);break;case y.AFTER_AFTER_BODY:uo(this,e);break;case y.AFTER_AFTER_FRAMESET:us(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?uf(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case y.INITIAL:sS(this,e);break;case y.BEFORE_HTML:sw(this,e);break;case y.BEFORE_HEAD:sM(this,e);break;case y.IN_HEAD:sR(this,e);break;case y.IN_HEAD_NO_SCRIPT:s$(this,e);break;case y.AFTER_HEAD:sj(this,e);break;case y.IN_BODY:cS(this,e);break;case y.TEXT:cw(this,e);break;case y.IN_TABLE:cF(this,e);break;case y.IN_TABLE_TEXT:cH(this,e);break;case y.IN_CAPTION:cG(this,e);break;case y.IN_COLUMN_GROUP:cq(this,e);break;case y.IN_TABLE_BODY:cK(this,e);break;case y.IN_ROW:cQ(this,e);break;case y.IN_CELL:c1(this,e);break;case y.IN_SELECT:c2(this,e);break;case y.IN_SELECT_IN_TABLE:c4(this,e);break;case y.IN_TEMPLATE:c5(this,e);break;case y.AFTER_BODY:c7(this,e);break;case y.IN_FRAMESET:ur(this,e);break;case y.AFTER_FRAMESET:ui(this,e);break;case y.AFTER_AFTER_BODY:ua(this,e)}}onEof(e){switch(this.insertionMode){case y.INITIAL:sS(this,e);break;case y.BEFORE_HTML:sC(this,e);break;case y.BEFORE_HEAD:sk(this,e);break;case y.IN_HEAD:sP(this,e);break;case y.IN_HEAD_NO_SCRIPT:sL(this,e);break;case y.AFTER_HEAD:sU(this,e);break;case y.IN_BODY:case y.IN_TABLE:case y.IN_CAPTION:case y.IN_COLUMN_GROUP:case y.IN_TABLE_BODY:case y.IN_ROW:case y.IN_CELL:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:cx(this,e);break;case y.TEXT:cC(this,e);break;case y.IN_TABLE_TEXT:cH(this,e);break;case y.IN_TEMPLATE:c8(this,e);break;case y.AFTER_BODY:case y.IN_FRAMESET:case y.AFTER_FRAMESET:case y.AFTER_AFTER_BODY:case y.AFTER_AFTER_FRAMESET:sT(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===n.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case y.IN_HEAD:case y.IN_HEAD_NO_SCRIPT:case y.AFTER_HEAD:case y.TEXT:case y.IN_COLUMN_GROUP:case y.IN_SELECT:case y.IN_SELECT_IN_TABLE:case y.IN_FRAMESET:case y.AFTER_FRAMESET:this._insertCharacters(e);break;case y.IN_BODY:case y.IN_CAPTION:case y.IN_CELL:case y.IN_TEMPLATE:case y.AFTER_BODY:case y.AFTER_AFTER_BODY:case y.AFTER_AFTER_FRAMESET:sH(this,e);break;case y.IN_TABLE:case y.IN_TABLE_BODY:case y.IN_ROW:cN(this,e);break;case y.IN_TABLE_TEXT:cU(this,e)}}}function sf(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):cA(e,t),r}function sh(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){let i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[n])&&(r=i)}return r||(e.openElements.shortenToLength(n<0?0:n),e.activeFormattingElements.removeEntry(t)),r}function sp(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==r;o++,a=i){i=e.openElements.getCommonAncestor(a);let r=e.activeFormattingElements.getElementEntry(a),s=r&&o>=ss;!r||s?(s&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(a)):(a=sm(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(a,n),n=a)}return n}function sm(e,t){let r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function sb(e,t,r){let n=al(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(n))e._fosterParentElement(r);else{let i=e.treeAdapter.getNamespaceURI(t);n===m.TEMPLATE&&i===d.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function sg(e,t,r){let n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,o=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,o,i.tagID)}function sy(e,t){for(let r=0;r=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let r=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(r);if(n&&!n.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){let r=e.openElements.items[1],n=e.treeAdapter.getNodeSourceCodeLocation(r);n&&!n.endTag&&e._setEndLocation(r,t)}}}}function sA(e,t){e._setDocumentType(t);let r=t.forceQuirks?h.QUIRKS:aJ(t);aQ(t)||e._err(t,i.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=y.BEFORE_HTML}function sS(e,t){e._err(t,i.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,h.QUIRKS),e.insertionMode=y.BEFORE_HTML,e._processToken(t)}function sx(e,t){t.tagID===m.HTML?(e._insertElement(t,d.HTML),e.insertionMode=y.BEFORE_HEAD):sC(e,t)}function sw(e,t){let r=t.tagID;(r===m.HTML||r===m.HEAD||r===m.BODY||r===m.BR)&&sC(e,t)}function sC(e,t){e._insertFakeRootElement(),e.insertionMode=y.BEFORE_HEAD,e._processToken(t)}function sN(e,t){switch(t.tagID){case m.HTML:cf(e,t);break;case m.HEAD:e._insertElement(t,d.HTML),e.headElement=e.openElements.current,e.insertionMode=y.IN_HEAD;break;default:sk(e,t)}}function sM(e,t){let r=t.tagID;r===m.HEAD||r===m.BODY||r===m.HTML||r===m.BR?sk(e,t):e._err(t,i.endTagWithoutMatchingOpenElement)}function sk(e,t){e._insertFakeElement(p.HEAD,m.HEAD),e.headElement=e.openElements.current,e.insertionMode=y.IN_HEAD,e._processToken(t)}function sO(e,t){switch(t.tagID){case m.HTML:cf(e,t);break;case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:e._appendElement(t,d.HTML),t.ackSelfClosing=!0;break;case m.TITLE:e._switchToTextParsing(t,am.RCDATA);break;case m.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,am.RAWTEXT):(e._insertElement(t,d.HTML),e.insertionMode=y.IN_HEAD_NO_SCRIPT);break;case m.NOFRAMES:case m.STYLE:e._switchToTextParsing(t,am.RAWTEXT);break;case m.SCRIPT:e._switchToTextParsing(t,am.SCRIPT_DATA);break;case m.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=y.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(y.IN_TEMPLATE);break;case m.HEAD:e._err(t,i.misplacedStartTagForHeadElement);break;default:sP(e,t)}}function sR(e,t){switch(t.tagID){case m.HEAD:e.openElements.pop(),e.insertionMode=y.AFTER_HEAD;break;case m.BODY:case m.BR:case m.HTML:sP(e,t);break;case m.TEMPLATE:sI(e,t);break;default:e._err(t,i.endTagWithoutMatchingOpenElement)}}function sI(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==m.TEMPLATE&&e._err(t,i.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,i.endTagWithoutMatchingOpenElement)}function sP(e,t){e.openElements.pop(),e.insertionMode=y.AFTER_HEAD,e._processToken(t)}function sD(e,t){switch(t.tagID){case m.HTML:cf(e,t);break;case m.BASEFONT:case m.BGSOUND:case m.HEAD:case m.LINK:case m.META:case m.NOFRAMES:case m.STYLE:sO(e,t);break;case m.NOSCRIPT:e._err(t,i.nestedNoscriptInHead);break;default:sL(e,t)}}function s$(e,t){switch(t.tagID){case m.NOSCRIPT:e.openElements.pop(),e.insertionMode=y.IN_HEAD;break;case m.BR:sL(e,t);break;default:e._err(t,i.endTagWithoutMatchingOpenElement)}}function sL(e,t){let r=t.type===o.EOF?i.openElementsLeftAfterEof:i.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=y.IN_HEAD,e._processToken(t)}function sF(e,t){switch(t.tagID){case m.HTML:cf(e,t);break;case m.BODY:e._insertElement(t,d.HTML),e.framesetOk=!1,e.insertionMode=y.IN_BODY;break;case m.FRAMESET:e._insertElement(t,d.HTML),e.insertionMode=y.IN_FRAMESET;break;case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:e._err(t,i.abandonedHeadElementChild),e.openElements.push(e.headElement,m.HEAD),sO(e,t),e.openElements.remove(e.headElement);break;case m.HEAD:e._err(t,i.misplacedStartTagForHeadElement);break;default:sU(e,t)}}function sj(e,t){switch(t.tagID){case m.BODY:case m.HTML:case m.BR:sU(e,t);break;case m.TEMPLATE:sI(e,t);break;default:e._err(t,i.endTagWithoutMatchingOpenElement)}}function sU(e,t){e._insertFakeElement(p.BODY,m.BODY),e.insertionMode=y.IN_BODY,sB(e,t)}function sB(e,t){switch(t.type){case o.CHARACTER:sz(e,t);break;case o.WHITESPACE_CHARACTER:sH(e,t);break;case o.COMMENT:s_(e,t);break;case o.START_TAG:cf(e,t);break;case o.END_TAG:cS(e,t);break;case o.EOF:cx(e,t)}}function sH(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function sz(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function sV(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function sG(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function sY(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,d.HTML),e.insertionMode=y.IN_FRAMESET)}function sq(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,d.HTML)}function sW(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),ah(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,d.HTML)}function sZ(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,d.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function sK(e,t){let r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,d.HTML),r||(e.formElement=e.openElements.current))}function sX(e,t){e.framesetOk=!1;let r=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let n=e.openElements.tagIDs[t];if(r===m.LI&&n===m.LI||(r===m.DD||r===m.DT)&&(n===m.DD||n===m.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==m.ADDRESS&&n!==m.DIV&&n!==m.P&&e._isSpecialElement(e.openElements.items[t],n))break}e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,d.HTML)}function sQ(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,d.HTML),e.tokenizer.state=am.PLAINTEXT}function sJ(e,t){e.openElements.hasInScope(m.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,d.HTML),e.framesetOk=!1}function s1(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(p.A);r&&(sy(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,d.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function s0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,d.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function s2(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(m.NOBR)&&(sy(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,d.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function s3(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,d.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function s4(e,t){e.treeAdapter.getDocumentMode(e.document)!==h.QUIRKS&&e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,d.HTML),e.framesetOk=!1,e.insertionMode=y.IN_TABLE}function s6(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,d.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function s5(e){let t=o6(e,f.TYPE);return null!=t&&t.toLowerCase()===so}function s8(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,d.HTML),s5(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function s9(e,t){e._appendElement(t,d.HTML),t.ackSelfClosing=!0}function s7(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._appendElement(t,d.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ce(e,t){t.tagName=p.IMG,t.tagID=m.IMG,s6(e,t)}function ct(e,t){e._insertElement(t,d.HTML),e.skipNextNewLine=!0,e.tokenizer.state=am.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=y.TEXT}function cr(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,am.RAWTEXT)}function cn(e,t){e.framesetOk=!1,e._switchToTextParsing(t,am.RAWTEXT)}function ci(e,t){e._switchToTextParsing(t,am.RAWTEXT)}function co(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,d.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===y.IN_TABLE||e.insertionMode===y.IN_CAPTION||e.insertionMode===y.IN_TABLE_BODY||e.insertionMode===y.IN_ROW||e.insertionMode===y.IN_CELL?y.IN_SELECT_IN_TABLE:y.IN_SELECT}function ca(e,t){e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,d.HTML)}function cs(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,d.HTML)}function cc(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(m.RTC),e._insertElement(t,d.HTML)}function cu(e,t){e._reconstructActiveFormattingElements(),a9(t),se(t),t.selfClosing?e._appendElement(t,d.MATHML):e._insertElement(t,d.MATHML),t.ackSelfClosing=!0}function cl(e,t){e._reconstructActiveFormattingElements(),a7(t),se(t),t.selfClosing?e._appendElement(t,d.SVG):e._insertElement(t,d.SVG),t.ackSelfClosing=!0}function cd(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,d.HTML)}function cf(e,t){switch(t.tagID){case m.I:case m.S:case m.B:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.SMALL:case m.STRIKE:case m.STRONG:s0(e,t);break;case m.A:s1(e,t);break;case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:sW(e,t);break;case m.P:case m.DL:case m.OL:case m.UL:case m.DIV:case m.DIR:case m.NAV:case m.MAIN:case m.MENU:case m.ASIDE:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.DETAILS:case m.ADDRESS:case m.ARTICLE:case m.SECTION:case m.SUMMARY:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:sq(e,t);break;case m.LI:case m.DD:case m.DT:sX(e,t);break;case m.BR:case m.IMG:case m.WBR:case m.AREA:case m.EMBED:case m.KEYGEN:s6(e,t);break;case m.HR:s7(e,t);break;case m.RB:case m.RTC:cs(e,t);break;case m.RT:case m.RP:cc(e,t);break;case m.PRE:case m.LISTING:sZ(e,t);break;case m.XMP:cr(e,t);break;case m.SVG:cl(e,t);break;case m.HTML:sV(e,t);break;case m.BASE:case m.LINK:case m.META:case m.STYLE:case m.TITLE:case m.SCRIPT:case m.BGSOUND:case m.BASEFONT:case m.TEMPLATE:sO(e,t);break;case m.BODY:sG(e,t);break;case m.FORM:sK(e,t);break;case m.NOBR:s2(e,t);break;case m.MATH:cu(e,t);break;case m.TABLE:s4(e,t);break;case m.INPUT:s8(e,t);break;case m.PARAM:case m.TRACK:case m.SOURCE:s9(e,t);break;case m.IMAGE:ce(e,t);break;case m.BUTTON:sJ(e,t);break;case m.APPLET:case m.OBJECT:case m.MARQUEE:s3(e,t);break;case m.IFRAME:cn(e,t);break;case m.SELECT:co(e,t);break;case m.OPTION:case m.OPTGROUP:ca(e,t);break;case m.NOEMBED:ci(e,t);break;case m.FRAMESET:sY(e,t);break;case m.TEXTAREA:ct(e,t);break;case m.NOSCRIPT:e.options.scriptingEnabled?ci(e,t):cd(e,t);break;case m.PLAINTEXT:sQ(e,t);break;case m.COL:case m.TH:case m.TD:case m.TR:case m.HEAD:case m.FRAME:case m.TBODY:case m.TFOOT:case m.THEAD:case m.CAPTION:case m.COLGROUP:break;default:cd(e,t)}}function ch(e,t){if(e.openElements.hasInScope(m.BODY)&&(e.insertionMode=y.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function cp(e,t){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=y.AFTER_BODY,c7(e,t))}function cm(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function cb(e){let t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(m.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(m.FORM):r&&e.openElements.remove(r))}function cg(e){e.openElements.hasInButtonScope(m.P)||e._insertFakeElement(p.P,m.P),e._closePElement()}function cy(e){e.openElements.hasInListItemScope(m.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(m.LI),e.openElements.popUntilTagNamePopped(m.LI))}function c_(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function cv(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function cE(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function cT(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(p.BR,m.BR),e.openElements.pop(),e.framesetOk=!1}function cA(e,t){let r=t.tagName,n=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],o=e.openElements.tagIDs[t];if(n===o&&(n!==m.UNKNOWN||e.treeAdapter.getTagName(i)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,o))break}}function cS(e,t){switch(t.tagID){case m.A:case m.B:case m.I:case m.S:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.NOBR:case m.SMALL:case m.STRIKE:case m.STRONG:sy(e,t);break;case m.P:cg(e);break;case m.DL:case m.UL:case m.OL:case m.DIR:case m.DIV:case m.NAV:case m.PRE:case m.MAIN:case m.MENU:case m.ASIDE:case m.BUTTON:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.ADDRESS:case m.ARTICLE:case m.DETAILS:case m.SECTION:case m.SUMMARY:case m.LISTING:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:cm(e,t);break;case m.LI:cy(e);break;case m.DD:case m.DT:c_(e,t);break;case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:cv(e);break;case m.BR:cT(e);break;case m.BODY:ch(e,t);break;case m.HTML:cp(e,t);break;case m.FORM:cb(e);break;case m.APPLET:case m.OBJECT:case m.MARQUEE:cE(e,t);break;case m.TEMPLATE:sI(e,t);break;default:cA(e,t)}}function cx(e,t){e.tmplInsertionModeStack.length>0?c8(e,t):sT(e,t)}function cw(e,t){var r;t.tagID===m.SCRIPT&&(null===(r=e.scriptHandler)||void 0===r||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function cC(e,t){e._err(t,i.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function cN(e,t){if(su.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=y.IN_TABLE_TEXT,t.type){case o.CHARACTER:cB(e,t);break;case o.WHITESPACE_CHARACTER:cU(e,t)}else cj(e,t)}function cM(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,d.HTML),e.insertionMode=y.IN_CAPTION}function ck(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,d.HTML),e.insertionMode=y.IN_COLUMN_GROUP}function cO(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(p.COLGROUP,m.COLGROUP),e.insertionMode=y.IN_COLUMN_GROUP,cY(e,t)}function cR(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,d.HTML),e.insertionMode=y.IN_TABLE_BODY}function cI(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(p.TBODY,m.TBODY),e.insertionMode=y.IN_TABLE_BODY,cZ(e,t)}function cP(e,t){e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function cD(e,t){s5(t)?e._appendElement(t,d.HTML):cj(e,t),t.ackSelfClosing=!0}function c$(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,d.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function cL(e,t){switch(t.tagID){case m.TD:case m.TH:case m.TR:cI(e,t);break;case m.STYLE:case m.SCRIPT:case m.TEMPLATE:sO(e,t);break;case m.COL:cO(e,t);break;case m.FORM:c$(e,t);break;case m.TABLE:cP(e,t);break;case m.TBODY:case m.TFOOT:case m.THEAD:cR(e,t);break;case m.INPUT:cD(e,t);break;case m.CAPTION:cM(e,t);break;case m.COLGROUP:ck(e,t);break;default:cj(e,t)}}function cF(e,t){switch(t.tagID){case m.TABLE:e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode());break;case m.TEMPLATE:sI(e,t);break;case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:cj(e,t)}}function cj(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,sB(e,t),e.fosterParentingEnabled=r}function cU(e,t){e.pendingCharacterTokens.push(t)}function cB(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function cH(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r0&&e.openElements.currentTagId===m.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===m.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop();break;case m.OPTION:e.openElements.currentTagId===m.OPTION&&e.openElements.pop();break;case m.SELECT:e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode());break;case m.TEMPLATE:sI(e,t)}}function c3(e,t){let r=t.tagID;r===m.CAPTION||r===m.TABLE||r===m.TBODY||r===m.TFOOT||r===m.THEAD||r===m.TR||r===m.TD||r===m.TH?(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e._processStartTag(t)):c0(e,t)}function c4(e,t){let r=t.tagID;r===m.CAPTION||r===m.TABLE||r===m.TBODY||r===m.TFOOT||r===m.THEAD||r===m.TR||r===m.TD||r===m.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e.onEndTag(t)):c2(e,t)}function c6(e,t){switch(t.tagID){case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:sO(e,t);break;case m.CAPTION:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:e.tmplInsertionModeStack[0]=y.IN_TABLE,e.insertionMode=y.IN_TABLE,cL(e,t);break;case m.COL:e.tmplInsertionModeStack[0]=y.IN_COLUMN_GROUP,e.insertionMode=y.IN_COLUMN_GROUP,cY(e,t);break;case m.TR:e.tmplInsertionModeStack[0]=y.IN_TABLE_BODY,e.insertionMode=y.IN_TABLE_BODY,cZ(e,t);break;case m.TD:case m.TH:e.tmplInsertionModeStack[0]=y.IN_ROW,e.insertionMode=y.IN_ROW,cX(e,t);break;default:e.tmplInsertionModeStack[0]=y.IN_BODY,e.insertionMode=y.IN_BODY,cf(e,t)}}function c5(e,t){t.tagID===m.TEMPLATE&&sI(e,t)}function c8(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):sT(e,t)}function c9(e,t){t.tagID===m.HTML?cf(e,t):ue(e,t)}function c7(e,t){var r;if(t.tagID===m.HTML){if(e.fragmentContext||(e.insertionMode=y.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===m.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];!n||(null===(r=e.treeAdapter.getNodeSourceCodeLocation(n))||void 0===r?void 0:r.endTag)||e._setEndLocation(n,t)}}else ue(e,t)}function ue(e,t){e.insertionMode=y.IN_BODY,sB(e,t)}function ut(e,t){switch(t.tagID){case m.HTML:cf(e,t);break;case m.FRAMESET:e._insertElement(t,d.HTML);break;case m.FRAME:e._appendElement(t,d.HTML),t.ackSelfClosing=!0;break;case m.NOFRAMES:sO(e,t)}}function ur(e,t){t.tagID!==m.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===m.FRAMESET||(e.insertionMode=y.AFTER_FRAMESET))}function un(e,t){switch(t.tagID){case m.HTML:cf(e,t);break;case m.NOFRAMES:sO(e,t)}}function ui(e,t){t.tagID===m.HTML&&(e.insertionMode=y.AFTER_AFTER_FRAMESET)}function uo(e,t){t.tagID===m.HTML?cf(e,t):ua(e,t)}function ua(e,t){e.insertionMode=y.IN_BODY,sB(e,t)}function us(e,t){switch(t.tagID){case m.HTML:cf(e,t);break;case m.NOFRAMES:sO(e,t)}}function uc(e,t){t.chars=oK,e._insertCharacters(t)}function uu(e,t){e._insertCharacters(t),e.framesetOk=!1}function ul(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==d.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function ud(e,t){if(a8(t))ul(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===d.MATHML?a9(t):n===d.SVG&&(st(t),a7(t)),se(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function uf(e,t){if(t.tagID===m.P||t.tagID===m.BR){ul(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){let n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===d.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(n);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(r);break}}}let uh=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function up(e,t){return function(r){let n;let i=0,o="";for(;n=e.exec(r);)i!==n.index&&(o+=r.substring(i,n.index)),o+=t.get(n[0].charCodeAt(0)),i=n.index+1;return o+r.substring(i)}}null!=String.prototype.codePointAt||((e,t)=>(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)),up(/[&<>'"]/g,uh),up(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),up(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),p.AREA,p.BASE,p.BASEFONT,p.BGSOUND,p.BR,p.COL,p.EMBED,p.FRAME,p.HR,p.IMG,p.INPUT,p.KEYGEN,p.LINK,p.META,p.PARAM,p.SOURCE,p.TRACK,p.WBR;let um=ug("end"),ub=ug("start");function ug(e){return t;function t(t){let r=t&&t.position&&t.position[e]||{};if("number"==typeof r.line&&r.line>0&&"number"==typeof r.column&&r.column>0)return{line:r.line,column:r.column,offset:"number"==typeof r.offset&&r.offset>-1?r.offset:void 0}}}let uy=function(e){if(null==e)return uA;if("function"==typeof e)return uT(e);if("object"==typeof e)return Array.isArray(e)?u_(e):uv(e);if("string"==typeof e)return uE(e);throw Error("Expected function, string, or object as test")};function u_(e){let t=[],r=-1;for(;++r":""))+")"})}return l;function l(){let u,l,d,f=uw;if((!t||o(e,i,c[c.length-1]||void 0))&&(f=uO(r(e,c)))[0]===uN)return f;if("children"in e&&e.children){let t=e;if(t.children&&f[0]!==uM)for(l=(n?t.children.length:-1)+a,d=c.concat(t);l>-1&&l0?e+" "+n(t):n(t)},"")}r.d(t,{R:function(){return i},Z:function(){return n}})},42711:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(92777),i=r(82262);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw o}}}}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&(r[i.substring(0,a).trim()]=i.substring(a+1).trim())}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"getCookie",value:function(e){return this.getCookies()[e]}},{key:"setCookie",value:function(e,t,r){var n=[];for(var i in n.push("".concat(e,"=").concat(t)),r)n.push("".concat(i,"=").concat(r[i]));document.cookie=n.join(";");var o=new CustomEvent("cookieChange",{detail:{cookieName:e}});window.dispatchEvent(o)}},{key:"deleteCookie",value:function(e){document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;");var t=new CustomEvent("cookieChange",{detail:{cookieName:e}});window.dispatchEvent(t)}}]),e}()},49334:function(e,t,r){"use strict";function n(e,t){var r=e.replace(/([A-Z])/g," $1").toLowerCase();null!=t&&t.replace&&(r=r.replace(/_/g,t.replace));var n=null==t?void 0:t.textTransform;return(null!=t&&t.dashed&&(r=r.replaceAll(" ","-")),n&&("lowercase"==n&&(r=e.toLowerCase()),"uppercase"==n&&(r=e.toUpperCase()),"capitalize"==n?r=e.replace(/\b\w/g,function(e){return e.toUpperCase()}):console.error("[ KeyStringConverter ]: textTransform defined incorrectly")),null!=t&&t.dashed||(r=r.replaceAll("-"," ").replaceAll("_"," ")),"id"===r)?"ID":r}r.d(t,{Z:function(){return n}})},47265:function(e,t,r){"use strict";r.d(t,{cz:function(){return h},vc:function(){return d},ZP:function(){return c},hG:function(){return u},I3:function(){return l},XY:function(){return f},wW:function(){return s}});var n=r(93791);function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw a}}}}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]?arguments[1]:"US",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n.PhoneNumberUtil.getInstance(),o=e;if(null==o)return"n/a";if(r){var a=o.replace(/\D/g,"");return a.startsWith("1")?"+".concat(a):"+1".concat(a)}try{var s=i.parseAndKeepRawInput(o,t);o=i.format(s,n.PhoneNumberFormat.NATIONAL)}catch(e){}return o};function c(e){for(var t=[{regex:/^3[47]/,name:"amex",format:[4,6,5],maxLength:15},{regex:/^30[0-5]|3[68]/,name:"diners",format:[4,4,4,4],maxLength:16},{regex:/^6(?:011|5)/,name:"discover",format:[4,4,4,4],maxLength:16},{regex:/^4/,name:"visa",format:[4,4,4,4],maxLength:16},{regex:/^(?:2131|1800|35\d{2})/,name:"jcb",format:[4,4,4,4],maxLength:16},{regex:/^5[1-5]/,name:"mastercard",format:[4,4,4,4],maxLength:16},{regex:/^(?:502[0259]|508[59]|6[37])/,name:"eftpos_au",format:[4,4,4,4],maxLength:16},{regex:/^62[0-5]/,name:"unionpay",format:[4,4,4,4],maxLength:16}],r=e.replace(/\D/g,""),n="unknown",i=[16],o=16,a=0,s=t;a1&&void 0!==arguments[1]?arguments[1]:{time:!1,returnType:"string",format:"MM-DD-YYYY",server:!1,isTimestamp:!1};if(!0===t.isTimestamp&&"number"==typeof e){10===e.toString().length&&(e*=1e3);var r=new Date(e);return"".concat(r.toLocaleDateString()," @ ").concat(r.toLocaleTimeString())}if(t.server){var n=new Date(e);return"".concat(n.getFullYear(),"-").concat((n.getMonth()+1).toString().padStart(2,"0"),"-").concat(n.getDate().toString().padStart(2,"0"))}"string"==typeof e&&(e=new Date(e));var i={month:"short",day:"numeric",year:"numeric"},o={month:"short",year:"numeric"},a={hour:"numeric",minute:"numeric",hour12:!0};try{var s=e.toLocaleString("en-US",i);if(null!=t&&t.format&&"MM-YYYY"===t.format&&(s=e.toLocaleString("en-US",o)),t.time){var c=e.toLocaleString("en-US",a);if("object"===t.returnType)return[s,c];return"".concat(s," ").concat(c)}if(s.length<8)return"InvalidCell()";return s}catch(e){return"NaCell()"}}function f(e){if(!e)return"loading";var t=(e/100).toFixed(2);return"$".concat(t)}function h(e){if(!e)return 0;var t,r=0,n=i(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;o.price&&o.price.unit_amount&&o.price.qty&&(r+=o.price.unit_amount*o.price.qty)}}catch(e){n.e(e)}finally{n.f()}return f(r)}},21375:function(e,t,r){"use strict";var n=r(67294),i=function(){var e=(0,n.useState)(0),t=e[0],r=e[1];return(0,n.useEffect)(function(){var e=function(){r(window.scrollY)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}},[]),[t,function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;if(e){if(t="string"==typeof e?document.getElementById(e):e.current){var i=t.getBoundingClientRect().top+window.scrollY-r;window.scrollTo({top:i,behavior:"smooth"})}}else if(n)switch(n){case"top":window.scrollTo({top:0,behavior:"smooth"});break;case"bottom":window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"});break;case"left":window.scrollBy({left:-window.innerWidth,behavior:"smooth"});break;case"right":window.scrollBy({left:window.innerWidth,behavior:"smooth"})}}]};t.Z=i},42700:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294);function i(){var e=(0,n.useState)({width:0,height:0}),t=e[0],r=e[1];return(0,n.useEffect)(function(){var e=function(){r({width:window.innerWidth,height:window.innerHeight})};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]),t}},83454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(77663)},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(45485)}])},91479:function(){},42474:function(e,t,r){var n="/",i=r(48764).Buffer,o=r(83454);!function(){var t={7160:function(e,t,r){var n=t;n.bignum=r(711),n.define=r(495).define,n.base=r(853),n.constants=r(7335),n.decoders=r(6701),n.encoders=r(3418)},495:function(e,t,r){var n=r(7160),i=r(3782);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=r(6144).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},6483:function(e,t,r){var n=r(3782),i=r(853).Reporter,o=r(4300).Buffer;function a(e,t){if(i.call(this,t),!o.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,i),t.C=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.R=s,s.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},853:function(e,t,r){var n=t;n.Reporter=r(1293).b,n.DecoderBuffer=r(6483).C,n.EncoderBuffer=r(6483).R,n.Node=r(9374)},9374:function(e,t,r){var n=r(853).Reporter,i=r(853).EncoderBuffer,o=r(853).DecoderBuffer,a=r(3523),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),u=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function l(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=l;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){var e=this._baseState,t={};d.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},l.prototype._wrap=function(){var e=this._baseState;c.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},l.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0),t[e[r]]=r}),t}))},u.forEach(function(e){l.prototype[e]=function(){throw Error(e+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(e){l.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}}),l.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},l.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},l.prototype._decode=function(e,t){var r,n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var i=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var c=null;if(null!==n.explicit?c=n.explicit:null!==n.implicit?c=n.implicit:null!==n.tag&&(c=n.tag),null!==c||n.any){if(a=this._peekTag(e,c,n.any),e.isError(a))return a}else{var u=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(u)}}if(n.obj&&a&&(r=e.enterObject()),a){if(null!==n.explicit){var l=this._decodeTag(e,n.explicit);if(e.isError(l))return l;e=l}var d=e.offset;if(null===n.use&&null===n.choice){if(n.any)var u=e.save();var f=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(f))return f;n.any?i=e.raw(u):e=f}if(t&&t.track&&null!==n.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(r){r._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var h=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(h,t)}}return n.obj&&a&&(i=e.leaveObject(r)),null!==n.key&&(null!==i||!0===a)?e.leaveKey(s,n.key,i):null!==s&&e.exitKey(s),i},l.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;if("seq"===e||"set"===e)return null;if("seqof"===e||"setof"===e)return this._decodeList(t,e,n.args[0],r);if(/str$/.test(e))return this._decodeStr(t,e,r);if("objid"===e&&n.args)return this._decodeObjid(t,n.args[0],n.args[1],r);if("objid"===e)return this._decodeObjid(t,null,null,r);if("gentime"===e||"utctime"===e)return this._decodeTime(t,e,r);if("null_"===e)return this._decodeNull(t,r);if("bool"===e)return this._decodeBool(t,r);else if("objDesc"===e)return this._decodeStr(t,e,r);else if("int"===e||"enum"===e)return this._decodeInt(t,n.args&&n.args[0],r);return null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},l.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return(Object.keys(r.choice).some(function(o){var a=e.save(),s=r.choice[o];try{var c=s._decode(e,t);if(e.isError(c))return!1;n={type:o,value:c},i=!0}catch(t){return e.restore(a),!1}return!0},this),i)?n:e.error("Choice not matched")},l.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},l.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},l.prototype._encodeValue=function(e,t,r){var i,o=this._baseState;if(null===o.parent)return o.children[0]._encode(e,t||new n);var i=null;if(this.reporter=t,o.optional&&void 0===e){if(null===o.default)return;e=o.default}var a=null,s=!1;if(o.any)i=this._createEncoderBuffer(e);else if(o.choice)i=this._encodeChoice(e,t);else if(o.contains)a=this._getUse(o.contains,r)._encode(e,t),s=!0;else if(o.children)a=o.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===o.tag||"setof"===o.tag){if(!(o.args&&1===o.args.length))return t.error("Too many args for : "+o.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},c))}else null!==o.use?i=this._getUse(o.use,r)._encode(e,t):(a=this._encodePrimitive(o.tag,e),s=!0);if(!o.any&&null===o.choice){var u=null!==o.implicit?o.implicit:o.tag,l=null===o.implicit?"universal":"context";null===u?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(i=this._encodeComposite(u,s,l,a))}return null!==o.explicit&&(i=this._encodeComposite(o.explicit,!1,"context",i)),i},l.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);else if("objDesc"===e)return this._encodeStr(t,e);else throw Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},1293:function(e,t,r){var n=r(3782);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.b=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},9791:function(e,t,r){var n=r(7335);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},7335:function(e,t,r){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0),t[e[r]]=r}),t},n.der=r(9791)},2259:function(e,t,r){var n=r(3782),i=r(7160),o=i.base,a=i.bignum,s=i.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){o.Node.call(this,"der",e)}function l(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=(32&r)==0;if((31&r)==31){var o=r;for(r=0;(128&o)==128;){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;var a=s.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function d(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if((128&n)==0)return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=s.tagClassByName[r||"universal"]<<6)}e.exports=c,c.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(u,a.Node),u.prototype._encodeComposite=function(e,t,r,n){var o=d(e,t,r,this.reporter);if(n.length<128){var a=new i(2);return a[0]=o,a[1]=n.length,this._createEncoderBuffer([a,n])}for(var s=1,c=n.length;c>=256;c>>=8)s++;var a=new i(2+s);a[0]=o,a[1]=128|s;for(var c=1+s,u=n.length;u>0;c--,u>>=8)a[c]=255&u;return this._createEncoderBuffer([a,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var o=0,n=0;n=128;a>>=7)o++}for(var s=new i(o),c=s.length-1,n=e.length-1;n>=0;n--){var a=e[n];for(s[c--]=127&a;(a>>=7)>0;)s[c--]=128|127&a}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[l(n.getFullYear()),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[l(n.getFullYear()%100),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var n=1,a=e;a>=256;a>>=8)n++;for(var o=Array(n),a=o.length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n=49&&a<=54?n|=a-49+10:a>=17&&a<=22?n|=a-17+10:n|=15&a}return n}function s(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?i+=s-49+10:s>=17?i+=s-17+10:i+=s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,n,i=0;i=t;i-=6)n=a(e,i,i+6),this.words[r]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=a(e,t,i+6),this.words[r]|=n<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,c=Math.min(o,o-a)+r,u=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c,u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=l[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==c),this.toArrayLike(c,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i,o,a=this.byteLength(),s=r||Math.max(1,a);n(a<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var c="le"===t,u=new e(s),l=this.clone();if(c){for(o=0;!l.isZero();o++)i=l.andln(255),l.iushrn(8),u[o]=i;for(;o=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&n;for(;0!==o&&a>26,this.words[a]=67108863&n;if(0===o&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,b=0|a[2],g=8191&b,y=b>>>13,_=0|a[3],v=8191&_,E=_>>>13,T=0|a[4],A=8191&T,S=T>>>13,x=0|a[5],w=8191&x,C=x>>>13,N=0|a[6],M=8191&N,k=N>>>13,O=0|a[7],R=8191&O,I=O>>>13,P=0|a[8],D=8191&P,$=P>>>13,L=0|a[9],F=8191&L,j=L>>>13,U=0|s[0],B=8191&U,H=U>>>13,z=0|s[1],V=8191&z,G=z>>>13,Y=0|s[2],q=8191&Y,W=Y>>>13,Z=0|s[3],K=8191&Z,X=Z>>>13,Q=0|s[4],J=8191&Q,ee=Q>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],ec=8191&es,eu=es>>>13,el=0|s[8],ed=8191&el,ef=el>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(u+(n=Math.imul(d,B))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,B)|0))<<13)|0;u=((o=Math.imul(f,H))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,B),i=(i=Math.imul(p,H))+Math.imul(m,B)|0,o=Math.imul(m,H);var eg=(u+(n=n+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,V)|0))<<13)|0;u=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,B),i=(i=Math.imul(g,H))+Math.imul(y,B)|0,o=Math.imul(y,H),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0;var ey=(u+(n=n+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,q)|0))<<13)|0;u=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(v,B),i=(i=Math.imul(v,H))+Math.imul(E,B)|0,o=Math.imul(E,H),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,W)|0;var e_=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(f,K)|0))<<13)|0;u=((o=o+Math.imul(f,X)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(A,B),i=(i=Math.imul(A,H))+Math.imul(S,B)|0,o=Math.imul(S,H),n=n+Math.imul(v,V)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(E,V)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,W)|0)+Math.imul(y,q)|0,o=o+Math.imul(y,W)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,X)|0;var ev=(u+(n=n+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(w,B),i=(i=Math.imul(w,H))+Math.imul(C,B)|0,o=Math.imul(C,H),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,W)|0,n=n+Math.imul(g,K)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,ee)|0;var eE=(u+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(f,er)|0))<<13)|0;u=((o=o+Math.imul(f,en)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(M,B),i=(i=Math.imul(M,H))+Math.imul(k,B)|0,o=Math.imul(k,H),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(S,q)|0,o=o+Math.imul(S,W)|0,n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0;var eT=(u+(n=n+Math.imul(d,eo)|0)|0)+((8191&(i=(i=i+Math.imul(d,ea)|0)+Math.imul(f,eo)|0))<<13)|0;u=((o=o+Math.imul(f,ea)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(R,B),i=(i=Math.imul(R,H))+Math.imul(I,B)|0,o=Math.imul(I,H),n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,o=o+Math.imul(y,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0;var eA=(u+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,eu)|0)+Math.imul(f,ec)|0))<<13)|0;u=((o=o+Math.imul(f,eu)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(D,B),i=(i=Math.imul(D,H))+Math.imul($,B)|0,o=Math.imul($,H),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(v,er)|0,i=(i=i+Math.imul(v,en)|0)+Math.imul(E,er)|0,o=o+Math.imul(E,en)|0,n=n+Math.imul(g,eo)|0,i=(i=i+Math.imul(g,ea)|0)+Math.imul(y,eo)|0,o=o+Math.imul(y,ea)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,eu)|0)+Math.imul(m,ec)|0,o=o+Math.imul(m,eu)|0;var eS=(u+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(f,ed)|0))<<13)|0;u=((o=o+Math.imul(f,ef)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(F,B),i=(i=Math.imul(F,H))+Math.imul(j,B)|0,o=Math.imul(j,H),n=n+Math.imul(D,V)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul($,V)|0,o=o+Math.imul($,G)|0,n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(S,er)|0,o=o+Math.imul(S,en)|0,n=n+Math.imul(v,eo)|0,i=(i=i+Math.imul(v,ea)|0)+Math.imul(E,eo)|0,o=o+Math.imul(E,ea)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,eu)|0)+Math.imul(y,ec)|0,o=o+Math.imul(y,eu)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ed)|0,o=o+Math.imul(m,ef)|0;var ex=(u+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(f,ep)|0))<<13)|0;u=((o=o+Math.imul(f,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(F,V),i=(i=Math.imul(F,G))+Math.imul(j,V)|0,o=Math.imul(j,G),n=n+Math.imul(D,q)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul($,q)|0,o=o+Math.imul($,W)|0,n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(C,er)|0,o=o+Math.imul(C,en)|0,n=n+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,ea)|0,n=n+Math.imul(v,ec)|0,i=(i=i+Math.imul(v,eu)|0)+Math.imul(E,ec)|0,o=o+Math.imul(E,eu)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ed)|0,o=o+Math.imul(y,ef)|0;var ew=(u+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;u=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(F,q),i=(i=Math.imul(F,W))+Math.imul(j,q)|0,o=Math.imul(j,W),n=n+Math.imul(D,K)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul($,K)|0,o=o+Math.imul($,X)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,er)|0,i=(i=i+Math.imul(M,en)|0)+Math.imul(k,er)|0,o=o+Math.imul(k,en)|0,n=n+Math.imul(w,eo)|0,i=(i=i+Math.imul(w,ea)|0)+Math.imul(C,eo)|0,o=o+Math.imul(C,ea)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,eu)|0)+Math.imul(S,ec)|0,o=o+Math.imul(S,eu)|0,n=n+Math.imul(v,ed)|0,i=(i=i+Math.imul(v,ef)|0)+Math.imul(E,ed)|0,o=o+Math.imul(E,ef)|0;var eC=(u+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;u=((o=o+Math.imul(y,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(F,K),i=(i=Math.imul(F,X))+Math.imul(j,K)|0,o=Math.imul(j,X),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul($,J)|0,o=o+Math.imul($,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,o=o+Math.imul(I,en)|0,n=n+Math.imul(M,eo)|0,i=(i=i+Math.imul(M,ea)|0)+Math.imul(k,eo)|0,o=o+Math.imul(k,ea)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,eu)|0)+Math.imul(C,ec)|0,o=o+Math.imul(C,eu)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(S,ed)|0,o=o+Math.imul(S,ef)|0;var eN=(u+(n=n+Math.imul(v,ep)|0)|0)+((8191&(i=(i=i+Math.imul(v,em)|0)+Math.imul(E,ep)|0))<<13)|0;u=((o=o+Math.imul(E,em)|0)+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,n=Math.imul(F,J),i=(i=Math.imul(F,ee))+Math.imul(j,J)|0,o=Math.imul(j,ee),n=n+Math.imul(D,er)|0,i=(i=i+Math.imul(D,en)|0)+Math.imul($,er)|0,o=o+Math.imul($,en)|0,n=n+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(I,eo)|0,o=o+Math.imul(I,ea)|0,n=n+Math.imul(M,ec)|0,i=(i=i+Math.imul(M,eu)|0)+Math.imul(k,ec)|0,o=o+Math.imul(k,eu)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(C,ed)|0,o=o+Math.imul(C,ef)|0;var eM=(u+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(S,ep)|0))<<13)|0;u=((o=o+Math.imul(S,em)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(F,er),i=(i=Math.imul(F,en))+Math.imul(j,er)|0,o=Math.imul(j,en),n=n+Math.imul(D,eo)|0,i=(i=i+Math.imul(D,ea)|0)+Math.imul($,eo)|0,o=o+Math.imul($,ea)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,eu)|0)+Math.imul(I,ec)|0,o=o+Math.imul(I,eu)|0,n=n+Math.imul(M,ed)|0,i=(i=i+Math.imul(M,ef)|0)+Math.imul(k,ed)|0,o=o+Math.imul(k,ef)|0;var ek=(u+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(C,ep)|0))<<13)|0;u=((o=o+Math.imul(C,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(F,eo),i=(i=Math.imul(F,ea))+Math.imul(j,eo)|0,o=Math.imul(j,ea),n=n+Math.imul(D,ec)|0,i=(i=i+Math.imul(D,eu)|0)+Math.imul($,ec)|0,o=o+Math.imul($,eu)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ed)|0,o=o+Math.imul(I,ef)|0;var eO=(u+(n=n+Math.imul(M,ep)|0)|0)+((8191&(i=(i=i+Math.imul(M,em)|0)+Math.imul(k,ep)|0))<<13)|0;u=((o=o+Math.imul(k,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(F,ec),i=(i=Math.imul(F,eu))+Math.imul(j,ec)|0,o=Math.imul(j,eu),n=n+Math.imul(D,ed)|0,i=(i=i+Math.imul(D,ef)|0)+Math.imul($,ed)|0,o=o+Math.imul($,ef)|0;var eR=(u+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;u=((o=o+Math.imul(I,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(F,ed),i=(i=Math.imul(F,ef))+Math.imul(j,ed)|0,o=Math.imul(j,ef);var eI=(u+(n=n+Math.imul(D,ep)|0)|0)+((8191&(i=(i=i+Math.imul(D,em)|0)+Math.imul($,ep)|0))<<13)|0;u=((o=o+Math.imul($,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863;var eP=(u+(n=Math.imul(F,ep))|0)+((8191&(i=(i=Math.imul(F,em))+Math.imul(j,ep)|0))<<13)|0;return u=((o=Math.imul(j,em))+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=e_,c[4]=ev,c[5]=eE,c[6]=eT,c[7]=eA,c[8]=eS,c[9]=ex,c[10]=ew,c[11]=eC,c[12]=eN,c[13]=eM,c[14]=ek,c[15]=eO,c[16]=eR,c[17]=eI,c[18]=eP,0!==u&&(c[19]=u,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function b(e,t,r){return(new g).mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?m(this,e,t):b(this,e,t)},g.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=(i/67108864|0)+(o>>>26),this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=f(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-o|d>>>o,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var c=i.length-a.length;if("mod"!==t){(r=new o(null)).length=c+1,r.words=Array(r.length);for(var u=0;u=0;d--){var f=(0|i.words[a.length+d])*67108864+(0|i.words[a.length+d-1]);for(f=Math.min(f/s|0,67108863),i._ishlnsubmul(a,f,d);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(a,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=f)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;(t.words[0]&h)==0&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;(i.words[0]&f)==0&&d<26;++d,f<<=1);if(d>0)for(i.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function T(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(v,_),v.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(y[e])return y[e];if("k256"===e)t=new v;else if("p224"===e)t=new E;else if("p192"===e)t=new T;else if("p25519"===e)t=new A;else throw Error("Unknown prime "+e);return y[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,b=0;0!==m.cmp(s);b++)m=m.redSqr();n(b=0;i--){for(var l=t.words[i],d=u-1;d>=0;d--){var f=l>>d&1;if(a!==n[0]&&(a=this.sqr(a)),0===f&&0===s){c=0;continue}s<<=1,s|=f,(++c===r||0===i&&0===d)&&(a=this.mul(a,n[s]),c=0,s=0)}u=26}return a},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},1670:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{l=r(4300).Buffer}catch(e){}function a(e,t,r){for(var i=0,o=Math.min(e.length,r),a=0,s=t;s=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:u,a|=c}return n(!(240&a),"Invalid character in "+e),i}function s(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a"}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,n,i=0;i=t;i-=6)n=a(e,i,i+6),this.words[r]|=n<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=a(e,t,i+6),this.words[r]|=n<>>26-o&4194303),this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,c=Math.min(o,o-a)+r,u=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u:o.prototype.inspect=u;var l,d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?d[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(l).toString(e);r=(p=p.idivn(l)).isZero()?m+r:d[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},l&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(l,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var p=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function m(e){for(var t=Array(e.bitLength()),r=0;r>>i&1}return t}function b(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=f;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=p(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&n;for(;0!==o&&a>26,this.words[a]=67108863&n;if(0===o&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,b=0|a[2],g=8191&b,y=b>>>13,_=0|a[3],v=8191&_,E=_>>>13,T=0|a[4],A=8191&T,S=T>>>13,x=0|a[5],w=8191&x,C=x>>>13,N=0|a[6],M=8191&N,k=N>>>13,O=0|a[7],R=8191&O,I=O>>>13,P=0|a[8],D=8191&P,$=P>>>13,L=0|a[9],F=8191&L,j=L>>>13,U=0|s[0],B=8191&U,H=U>>>13,z=0|s[1],V=8191&z,G=z>>>13,Y=0|s[2],q=8191&Y,W=Y>>>13,Z=0|s[3],K=8191&Z,X=Z>>>13,Q=0|s[4],J=8191&Q,ee=Q>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],ec=8191&es,eu=es>>>13,el=0|s[8],ed=8191&el,ef=el>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eb=(u+(n=Math.imul(d,B))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(f,B)|0))<<13)|0;u=((o=Math.imul(f,H))+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(p,B),i=(i=Math.imul(p,H))+Math.imul(m,B)|0,o=Math.imul(m,H);var eg=(u+(n=n+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,V)|0))<<13)|0;u=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,B),i=(i=Math.imul(g,H))+Math.imul(y,B)|0,o=Math.imul(y,H),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,G)|0;var ey=(u+(n=n+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(f,q)|0))<<13)|0;u=((o=o+Math.imul(f,W)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(v,B),i=(i=Math.imul(v,H))+Math.imul(E,B)|0,o=Math.imul(E,H),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,W)|0;var e_=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(f,K)|0))<<13)|0;u=((o=o+Math.imul(f,X)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(A,B),i=(i=Math.imul(A,H))+Math.imul(S,B)|0,o=Math.imul(S,H),n=n+Math.imul(v,V)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(E,V)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(g,q)|0,i=(i=i+Math.imul(g,W)|0)+Math.imul(y,q)|0,o=o+Math.imul(y,W)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,X)|0;var ev=(u+(n=n+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;u=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(w,B),i=(i=Math.imul(w,H))+Math.imul(C,B)|0,o=Math.imul(C,H),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,W)|0,n=n+Math.imul(g,K)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,ee)|0;var eE=(u+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(f,er)|0))<<13)|0;u=((o=o+Math.imul(f,en)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(M,B),i=(i=Math.imul(M,H))+Math.imul(k,B)|0,o=Math.imul(k,H),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(S,q)|0,o=o+Math.imul(S,W)|0,n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0;var eT=(u+(n=n+Math.imul(d,eo)|0)|0)+((8191&(i=(i=i+Math.imul(d,ea)|0)+Math.imul(f,eo)|0))<<13)|0;u=((o=o+Math.imul(f,ea)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(R,B),i=(i=Math.imul(R,H))+Math.imul(I,B)|0,o=Math.imul(I,H),n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,X)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(g,er)|0,i=(i=i+Math.imul(g,en)|0)+Math.imul(y,er)|0,o=o+Math.imul(y,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0;var eA=(u+(n=n+Math.imul(d,ec)|0)|0)+((8191&(i=(i=i+Math.imul(d,eu)|0)+Math.imul(f,ec)|0))<<13)|0;u=((o=o+Math.imul(f,eu)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(D,B),i=(i=Math.imul(D,H))+Math.imul($,B)|0,o=Math.imul($,H),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(v,er)|0,i=(i=i+Math.imul(v,en)|0)+Math.imul(E,er)|0,o=o+Math.imul(E,en)|0,n=n+Math.imul(g,eo)|0,i=(i=i+Math.imul(g,ea)|0)+Math.imul(y,eo)|0,o=o+Math.imul(y,ea)|0,n=n+Math.imul(p,ec)|0,i=(i=i+Math.imul(p,eu)|0)+Math.imul(m,ec)|0,o=o+Math.imul(m,eu)|0;var eS=(u+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,ef)|0)+Math.imul(f,ed)|0))<<13)|0;u=((o=o+Math.imul(f,ef)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(F,B),i=(i=Math.imul(F,H))+Math.imul(j,B)|0,o=Math.imul(j,H),n=n+Math.imul(D,V)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul($,V)|0,o=o+Math.imul($,G)|0,n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(S,er)|0,o=o+Math.imul(S,en)|0,n=n+Math.imul(v,eo)|0,i=(i=i+Math.imul(v,ea)|0)+Math.imul(E,eo)|0,o=o+Math.imul(E,ea)|0,n=n+Math.imul(g,ec)|0,i=(i=i+Math.imul(g,eu)|0)+Math.imul(y,ec)|0,o=o+Math.imul(y,eu)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,ef)|0)+Math.imul(m,ed)|0,o=o+Math.imul(m,ef)|0;var ex=(u+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(f,ep)|0))<<13)|0;u=((o=o+Math.imul(f,em)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(F,V),i=(i=Math.imul(F,G))+Math.imul(j,V)|0,o=Math.imul(j,G),n=n+Math.imul(D,q)|0,i=(i=i+Math.imul(D,W)|0)+Math.imul($,q)|0,o=o+Math.imul($,W)|0,n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(C,er)|0,o=o+Math.imul(C,en)|0,n=n+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,ea)|0,n=n+Math.imul(v,ec)|0,i=(i=i+Math.imul(v,eu)|0)+Math.imul(E,ec)|0,o=o+Math.imul(E,eu)|0,n=n+Math.imul(g,ed)|0,i=(i=i+Math.imul(g,ef)|0)+Math.imul(y,ed)|0,o=o+Math.imul(y,ef)|0;var ew=(u+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;u=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(F,q),i=(i=Math.imul(F,W))+Math.imul(j,q)|0,o=Math.imul(j,W),n=n+Math.imul(D,K)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul($,K)|0,o=o+Math.imul($,X)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(M,er)|0,i=(i=i+Math.imul(M,en)|0)+Math.imul(k,er)|0,o=o+Math.imul(k,en)|0,n=n+Math.imul(w,eo)|0,i=(i=i+Math.imul(w,ea)|0)+Math.imul(C,eo)|0,o=o+Math.imul(C,ea)|0,n=n+Math.imul(A,ec)|0,i=(i=i+Math.imul(A,eu)|0)+Math.imul(S,ec)|0,o=o+Math.imul(S,eu)|0,n=n+Math.imul(v,ed)|0,i=(i=i+Math.imul(v,ef)|0)+Math.imul(E,ed)|0,o=o+Math.imul(E,ef)|0;var eC=(u+(n=n+Math.imul(g,ep)|0)|0)+((8191&(i=(i=i+Math.imul(g,em)|0)+Math.imul(y,ep)|0))<<13)|0;u=((o=o+Math.imul(y,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(F,K),i=(i=Math.imul(F,X))+Math.imul(j,K)|0,o=Math.imul(j,X),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul($,J)|0,o=o+Math.imul($,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(I,er)|0,o=o+Math.imul(I,en)|0,n=n+Math.imul(M,eo)|0,i=(i=i+Math.imul(M,ea)|0)+Math.imul(k,eo)|0,o=o+Math.imul(k,ea)|0,n=n+Math.imul(w,ec)|0,i=(i=i+Math.imul(w,eu)|0)+Math.imul(C,ec)|0,o=o+Math.imul(C,eu)|0,n=n+Math.imul(A,ed)|0,i=(i=i+Math.imul(A,ef)|0)+Math.imul(S,ed)|0,o=o+Math.imul(S,ef)|0;var eN=(u+(n=n+Math.imul(v,ep)|0)|0)+((8191&(i=(i=i+Math.imul(v,em)|0)+Math.imul(E,ep)|0))<<13)|0;u=((o=o+Math.imul(E,em)|0)+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,n=Math.imul(F,J),i=(i=Math.imul(F,ee))+Math.imul(j,J)|0,o=Math.imul(j,ee),n=n+Math.imul(D,er)|0,i=(i=i+Math.imul(D,en)|0)+Math.imul($,er)|0,o=o+Math.imul($,en)|0,n=n+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(I,eo)|0,o=o+Math.imul(I,ea)|0,n=n+Math.imul(M,ec)|0,i=(i=i+Math.imul(M,eu)|0)+Math.imul(k,ec)|0,o=o+Math.imul(k,eu)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,ef)|0)+Math.imul(C,ed)|0,o=o+Math.imul(C,ef)|0;var eM=(u+(n=n+Math.imul(A,ep)|0)|0)+((8191&(i=(i=i+Math.imul(A,em)|0)+Math.imul(S,ep)|0))<<13)|0;u=((o=o+Math.imul(S,em)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(F,er),i=(i=Math.imul(F,en))+Math.imul(j,er)|0,o=Math.imul(j,en),n=n+Math.imul(D,eo)|0,i=(i=i+Math.imul(D,ea)|0)+Math.imul($,eo)|0,o=o+Math.imul($,ea)|0,n=n+Math.imul(R,ec)|0,i=(i=i+Math.imul(R,eu)|0)+Math.imul(I,ec)|0,o=o+Math.imul(I,eu)|0,n=n+Math.imul(M,ed)|0,i=(i=i+Math.imul(M,ef)|0)+Math.imul(k,ed)|0,o=o+Math.imul(k,ef)|0;var ek=(u+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(C,ep)|0))<<13)|0;u=((o=o+Math.imul(C,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(F,eo),i=(i=Math.imul(F,ea))+Math.imul(j,eo)|0,o=Math.imul(j,ea),n=n+Math.imul(D,ec)|0,i=(i=i+Math.imul(D,eu)|0)+Math.imul($,ec)|0,o=o+Math.imul($,eu)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,ef)|0)+Math.imul(I,ed)|0,o=o+Math.imul(I,ef)|0;var eO=(u+(n=n+Math.imul(M,ep)|0)|0)+((8191&(i=(i=i+Math.imul(M,em)|0)+Math.imul(k,ep)|0))<<13)|0;u=((o=o+Math.imul(k,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(F,ec),i=(i=Math.imul(F,eu))+Math.imul(j,ec)|0,o=Math.imul(j,eu),n=n+Math.imul(D,ed)|0,i=(i=i+Math.imul(D,ef)|0)+Math.imul($,ed)|0,o=o+Math.imul($,ef)|0;var eR=(u+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(I,ep)|0))<<13)|0;u=((o=o+Math.imul(I,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(F,ed),i=(i=Math.imul(F,ef))+Math.imul(j,ed)|0,o=Math.imul(j,ef);var eI=(u+(n=n+Math.imul(D,ep)|0)|0)+((8191&(i=(i=i+Math.imul(D,em)|0)+Math.imul($,ep)|0))<<13)|0;u=((o=o+Math.imul($,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863;var eP=(u+(n=Math.imul(F,ep))|0)+((8191&(i=(i=Math.imul(F,em))+Math.imul(j,ep)|0))<<13)|0;return u=((o=Math.imul(j,em))+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,c[0]=eb,c[1]=eg,c[2]=ey,c[3]=e_,c[4]=ev,c[5]=eE,c[6]=eT,c[7]=eA,c[8]=eS,c[9]=ex,c[10]=ew,c[11]=eC,c[12]=eN,c[13]=eM,c[14]=ek,c[15]=eO,c[16]=eR,c[17]=eI,c[18]=eP,0!==u&&(c[19]=u,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function _(e,t,r){return y(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(g=b),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?b(this,e,t):r<1024?y(this,e,t):_(this,e,t)},v.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,r+=(o/67108864|0)+(a>>>26),this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=m(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var i,o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-o|d>>>o,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var c=i.length-a.length;if("mod"!==t){(r=new o(null)).length=c+1,r.words=Array(r.length);for(var u=0;u=0;d--){var f=(0|i.words[a.length+d])*67108864+(0|i.words[a.length+d-1]);for(f=Math.min(f/s|0,67108863),i._ishlnsubmul(a,f,d);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(a,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=f)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=67108864%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;(t.words[0]&h)==0&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),c=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;(r.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(r.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;(i.words[0]&f)==0&&d<26;++d,f<<=1);if(d>0)for(i.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new C(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var E={k256:null,p224:null,p192:null,p25519:null};function T(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){T.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){T.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){T.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){T.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function N(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}T.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},T.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},T.prototype.split=function(e,t){e.iushrn(this.n,0,t)},T.prototype.imulK=function(e){return e.imul(this.k)},i(A,T),A.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},A.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(E[e])return E[e];if("k256"===e)t=new A;else if("p224"===e)t=new S;else if("p192"===e)t=new x;else if("p25519"===e)t=new w;else throw Error("Unknown prime "+e);return E[e]=t,t},C.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},C.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,b=0;0!==m.cmp(s);b++)m=m.redSqr();n(b=0;i--){for(var l=t.words[i],d=u-1;d>=0;d--){var f=l>>d&1;if(a!==n[0]&&(a=this.sqr(a)),0===f&&0===s){c=0;continue}s<<=1,s|=f,(++c===r||0===i&&0===d)&&(a=this.mul(a,n[s]),c=0,s=0)}u=26}return a},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new N(e)},i(N,C),N.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},N.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},N.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},N.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},N.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},3500:function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r>>24]^l[p>>>16&255]^d[m>>>8&255]^f[255&b]^t[g++],a=u[p>>>24]^l[m>>>16&255]^d[b>>>8&255]^f[255&h]^t[g++],s=u[m>>>24]^l[b>>>16&255]^d[h>>>8&255]^f[255&p]^t[g++],c=u[b>>>24]^l[h>>>16&255]^d[p>>>8&255]^f[255&m]^t[g++],h=o,p=a,m=s,b=c;return o=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&b])^t[g++],a=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[b>>>8&255]<<8|n[255&h])^t[g++],[o>>>=0,a>>>=0,s=((n[m>>>24]<<24|n[b>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[g++])>>>0,c=((n[b>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[g++])>>>0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[a]=u,n[u]=a;var l=e[a],d=e[l],f=e[d],h=257*e[u]^16843008*u;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*f^65537*d^257*l^16843008*a,o[0][u]=h<<24|h>>>8,o[1][u]=h<<16|h>>>16,o[2][u]=h<<8|h>>>24,o[3][u]=h,0===a?a=s=1:(a=l^e[e[e[f^l]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function u(e){this._key=i(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=(r+1)*4,i=[],o=0;o>>24,a=(c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a])^s[o/t|0]<<24):t>6&&o%t==4&&(a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a]),i[o]=i[o-t]^a}for(var u=[],l=0;l>>24]]^c.INV_SUB_MIX[1][c.SBOX[f>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[f>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&f]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=u},6624:function(e,t,r){var n=r(1387),i=r(6911).Buffer,o=r(1043),a=r(3782),s=r(7225),c=r(4734),u=r(598);function l(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i16)throw Error("unable to decrypt data");for(var r=-1;++r16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=p,t.createDecipheriv=h},2:function(e,t,r){var n=r(6370),i=r(6624),o=r(6911).Buffer,a=r(126),s=r(1043),c=r(1387),u=r(8368);function l(e,t,r){s.call(this),this._cache=new f,this._cipher=new c.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(3782)(l,s),l.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var d=o.alloc(16,16);function f(){this.cache=o.allocUnsafe(0)}function h(e,t,r){var s=n[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new l(s.module,t,r)}function p(e,t){var r=n[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var i=u(t,!1,r.key,r.iv);return h(e,i.key,i.iv)}l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=o.concat([this.cache,e])},f.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,t&&(r[0]=-520093696^r[0])}this.state=a(n)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=s},598:function(e){function t(e){for(var t,r=e.length;r--;)if(255===(t=e.readUInt8(r)))e.writeUInt8(0,r);else{t++,e.writeUInt8(t,r);break}}e.exports=t},9825:function(e,t,r){var n=r(4734);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;return e._prev=t,n(e._cipher.decryptBlock(t),r)}},321:function(e,t,r){var n=r(6911).Buffer,i=r(4734);function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}t.encrypt=function(e,t,r){for(var i,a=n.allocUnsafe(0);t.length;)if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),e._cache.length<=t.length)i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i);else{a=n.concat([a,o(e,t,r)]);break}return a}},3147:function(e,t,r){var n=r(6911).Buffer;function i(e,t,r){for(var n,i,a,s=-1,c=8,u=0;++s>s%8,e._prev=o(e._prev,r?i:a);return u}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(o(t));return r}e.exports=s,s.getr=c},9276:function(e,t,r){e.exports=r(2908)},4078:function(e,t,r){var n=r(6911).Buffer,i=r(9739),o=r(3726),a=r(3782),s=r(9807),c=r(4013),u=r(2908);function l(e){o.Writable.call(this);var t=u[e];if(!t)throw Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){o.Writable.call(this);var t=u[e];if(!t)throw Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new l(e)}function h(e){return new d(e)}Object.keys(u).forEach(function(e){u[e].id=n.from(u[e].id,"hex"),u[e.toLowerCase()]=u[e]}),a(l,o.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},l.prototype.sign=function(e,t){this.end();var r=s(this._hash.digest(),e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(d,o.Writable),d.prototype._write=function(e,t,r){this._hash.update(e),r()},d.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},d.prototype.verify=function(e,t,r){return"string"==typeof t&&(t=n.from(t,r)),this.end(),c(t,this._hash.digest(),e,this._signType,this._tag)},e.exports={Sign:f,Verify:h,createSign:f,createVerify:h}},9807:function(e,t,r){var n=r(6911).Buffer,i=r(4873),o=r(7166),a=r(949).ec,s=r(1670),c=r(9902),u=r(9267);function l(e,t,r,i,a){var s=c(t);if(s.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");return d(e,s)}if("dsa"===s.type){if("dsa"!==i)throw Error("wrong private key type");return f(e,s,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");e=n.concat([a,e]);for(var u=s.modulus.byteLength(),l=[0,1];e.length+l.length+10&&r.ishrn(n),r}function b(e,t){e=(e=m(e,t)).mod(t);var r=n.from(e.toArray());if(r.length=e.cmpn(0)||e.cmp(t)>=t)throw Error("invalid sig")}e.exports=c},4734:function(e){e.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new i(r),o=0;or?t=("rmd160"===e?new c:u(e)).update(t).digest():t.lengths?t=e(t):t.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return(e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t)?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},c.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},c.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,a=h}o.rip(s,a,n,i)},c.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];o.expand(a,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var d=o.substitute(u,l),f=o.permute(d),h=a;a=(s^f)>>>0,s=h}o.rip(a,s,n,i)}},6159:function(e,t,r){"use strict";var n=r(3523),i=r(3782),o=r(9876),a=r(1016);function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);"encrypt"===e?this.ciphers=[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:this.ciphers=[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function c(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(c,o),e.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},c.prototype._pad=a.prototype._pad,c.prototype._unpad=a.prototype._unpad},5334:function(e,t){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(var a=6;a>=0;a-=2){for(var s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(var s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(var a=4;a<8;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var a=1;a<=3;a++){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var o=0,a=0,s=r.length>>>1,c=0;c>>r[c]&1;for(var c=s;c>>r[c]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(var o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,i=0;i<4;i++){var o=e>>>18-6*i&63,a=n[64*i+o];r<<=4,r|=a}for(var i=0;i<4;i++){var o=t>>>18-6*i&63,a=n[256+64*i+o];r<<=4,r|=a}return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r>>i[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(u))for(;r.mod(l).cmp(d);)r.iadd(h)}else for(;r.mod(o).cmp(f);)r.iadd(h);if(b(p=r.shrn(1))&&b(r)&&g(p)&&g(r)&&a.test(p)&&a.test(r))return r}}},949:function(e,t,r){"use strict";var n=t;n.version=r(2531).i8,n.utils=r(4401),n.rand=r(3500),n.curve=r(9359),n.curves=r(6226),n.ec=r(4088),n.eddsa=r(8511)},2727:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.getNAF,a=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw Error("Not implemented")},c.prototype.validate=function(){throw Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<=c;t--)u=(u<<1)+n[t];a.push(u)}for(var l=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=i;f>0;f--){for(var c=0;c=0;u--){for(var t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,c=c.dblp(t),u<0)break;var l=a[u];s(0!==l),c="affine"===e.type?l>0?c.mixedAdd(i[l-1>>1]):c.mixedAdd(i[-l-1>>1].neg()):l>0?c.add(i[l-1>>1]):c.add(i[-l-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,c=this._wnafT2,u=this._wnafT3,l=0,d=0;d=1;d-=2){var p=d-1,m=d;if(1!==s[p]||1!==s[m]){u[p]=o(r[p],s[p],this._bitLength),u[m]=o(r[m],s[m],this._bitLength),l=Math.max(u[p].length,l),l=Math.max(u[m].length,l);continue}var b=[t[p],null,null,t[m]];0===t[p].y.cmp(t[m].y)?(b[1]=t[p].add(t[m]),b[2]=t[p].toJ().mixedAdd(t[m].neg())):0===t[p].y.cmp(t[m].y.redNeg())?(b[1]=t[p].toJ().mixedAdd(t[m]),b[2]=t[p].add(t[m].neg())):(b[1]=t[p].toJ().mixedAdd(t[m]),b[2]=t[p].toJ().mixedAdd(t[m].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=a(r[p],r[m]);l=Math.max(y[0].length,l),u[p]=Array(l),u[m]=Array(l);for(var _=0;_=0;d--){for(var S=0;d>=0;){for(var x=!0,_=0;_=0&&S++,T=T.dblp(S),d<0)break;for(var _=0;_0?f=c[_][w-1>>1]:w<0&&(f=c[_][-w-1>>1].neg()),T="affine"===f.type?T.mixedAdd(f):T.add(f))}}for(var d=0;d=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),c=i.redMul(a),u=o.redMul(s),l=i.redMul(s),d=a.redMul(o);return this.curve.point(c,u,d,l)},u.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=this.curve._mulA(i),s=a.redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),t=s.redMul(a.redSub(o)),r=s.redSqr().redSub(s).redSub(s);else{var c=this.z.redSqr(),u=s.redSub(c).redISub(c);e=n.redSub(i).redISub(o).redMul(u),t=s.redMul(a.redSub(o)),r=s.redMul(u)}}else{var a=i.redAdd(o),c=this.curve._mulC(this.z).redSqr(),u=a.redSub(c).redSub(c);e=this.curve._mulC(n.redISub(a)).redMul(u),t=this.curve._mulC(a).redMul(i.redISub(o)),r=a.redMul(u)}return this.curve.point(e,t,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),u=o.redMul(a),l=s.redMul(c),d=o.redMul(c),f=a.redMul(s);return this.curve.point(u,l,f,d)},u.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),u=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=n.redMul(c).redMul(l);return this.curve.twisted?(t=n.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=c.redMul(u)):(t=n.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(c).redMul(u)),this.curve.point(d,t,r)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},u.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},9359:function(e,t,r){"use strict";var n=t;n.base=r(2727),n.short=r(4720),n.mont=r(6653),n.edwards=r(2705)},6653:function(e,t,r){"use strict";var n=r(711),i=r(3782),o=r(2727),a=r(4401);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(c,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=this,o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},c.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},4720:function(e,t,r){"use strict";var n=r(4401),i=r(711),o=r(3782),a=r(2727),s=n.assert;function c(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function u(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(c,a),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var t,r,n,o=this._getEndoRoots(this.p);t=(t=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?r=a[0]:(r=a[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,c,u,l,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,h=this.n.clone(),p=new i(1),m=new i(0),b=new i(0),g=new i(1),y=0;0!==f.cmpn(0);){var _=h.div(f);u=h.sub(_.mul(f)),l=b.sub(_.mul(p));var v=g.sub(_.mul(m));if(!n&&0>u.cmp(d))t=c.neg(),r=p,n=u.neg(),o=l;else if(n&&2==++y)break;c=u,h=f,f=u,b=p,p=l,g=m,m=v}a=u.neg(),s=l;var E=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(E)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(u).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return(e=new i(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},u.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,a.BasePoint),c.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),d=n.redMul(u),f=c.redSqr().redIAdd(l).redISub(d).redISub(d),h=c.redMul(d.redISub(f)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),l=r.redMul(c),d=s.redSqr().redIAdd(u).redISub(l).redISub(l),f=s.redMul(l.redISub(d)).redISub(i.redMul(u)),h=this.z.redMul(a);return this.curve.jpoint(d,f,h)},l.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},6226:function(e,t,r){"use strict";var n,i=t,o=r(7028),a=r(9359),s=r(4401).assert;function c(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(9702)}catch(e){n=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},4088:function(e,t,r){"use strict";var n=r(711),i=r(4910),o=r(4401),a=r(6226),s=r(3500),c=o.assert,u=r(4724),l=r(7526);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(c(a.hasOwnProperty(e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new u(this,e)},d.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},d.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),u=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new n(1)),f=0;;f++){var h=o.k?o.k(f):new n(u.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(d)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),b=m.umod(this.n);if(0!==b.cmpn(0)){var g=h.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(b)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new l({r:b,s:g,recoveryParam:y})}}}}}},d.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new l(t,"hex")).r,a=t.s;if(0>o.cmpn(1)||o.cmp(this.n)>=0||0>a.cmpn(1)||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),c=s.mul(e).umod(this.n),u=s.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var d=this.g.mulAdd(c,r.getPublic(),u);return!d.isInfinity()&&0===d.getX().umod(this.n).cmp(o)}var d=this.g.jmulAdd(c,r.getPublic(),u);return!d.isInfinity()&&d.eqXToP(o)},d.prototype.recoverPubKey=function(e,t,r,i){c((3&r)===r,"The recovery param is more than two bits"),t=new l(t,i);var o=this.n,a=new n(e),s=t.r,u=t.s,d=1&r,f=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),m=u.mul(h).umod(o);return this.g.mulAdd(p,s,m)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new l(t,n)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw Error("Unable to find valid recovery factor")}},4724:function(e,t,r){"use strict";var n=r(711),i=r(4401).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&i(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return""}},7526:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function u(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=c(e,r);if(!1===o||o+r.place!==e.length||2!==e[r.place++])return!1;var a=c(e,r);if(!1===a)return!1;var u=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var l=c(e,r);if(!1===l||e.length!==l+r.place)return!1;var d=e.slice(r.place,l+r.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(u),this.s=new n(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var o=n.concat(r),a=[48];return l(a,o.length),a=a.concat(o),i.encode(a,e)}},8511:function(e,t,r){"use strict";var n=r(7028),i=r(6226),o=r(4401),a=o.assert,s=o.parseBytes,c=r(9917),u=r(9314);function l(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);var e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=l,l.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),c=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},l.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n}function c(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,a,s=e.andln(3)+n&3,c=t.andln(3)+i&3;if(3===s&&(s=-1),3===c&&(c=-1),(1&s)==0)o=0;else{var u=e.andln(7)+n&7;o=(3===u||5===u)&&2===c?-s:s}if(r[0].push(o),(1&c)==0)a=0;else{var u=t.andln(7)+i&7;a=(3===u||5===u)&&2===s?-c:c}r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r}function u(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}}function l(e){return"string"==typeof e?n.toArray(e,"hex"):e}function d(e){return new i(e,"hex","le")}n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=s,n.getJSF=c,n.cachedProperty=u,n.parseBytes=l,n.intFromLE=d},8368:function(e,t,r){var n=r(6911).Buffer,i=r(3533);function o(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),c=n.alloc(o||0),u=n.alloc(0);a>0||o>0;){var l=new i;l.update(u),l.update(e),t&&l.update(t),u=l.digest();var d=0;if(a>0){var f=s.length-a;d=Math.min(a,u.length),u.copy(s,f,0,d),a-=d}if(d0){var h=c.length-o,p=Math.min(o,u.length-d);u.copy(c,h,d,d+p),o-=p}}return u.fill(0),{key:s,iv:c}}e.exports=o},9029:function(e,t,r){"use strict";var n=r(6911).Buffer,i=r(3726).Transform;function o(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw TypeError(t+" must be a string or a buffer")}function a(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(3782)(a,i),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(o(e,"Data"),this._finalized)throw Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a0;++s)this._length[s]+=c,(c=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*c);return this},a.prototype._update=function(){throw Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw Error("_digest is not implemented")},e.exports=a},7028:function(e,t,r){var n=t;n.utils=r(263),n.common=r(1330),n.sha=r(301),n.ripemd=r(3079),n.hmac=r(3092),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},1330:function(e,t,r){"use strict";var n=r(263),i=r(3523);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(o=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;othis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t>>3}function d(e){return n(e,17)^n(e,19)^e>>>10}t.ft_1=i,t.ch32=o,t.maj32=a,t.p32=s,t.s0_256=c,t.s1_256=u,t.g0_256=l,t.g1_256=d},263:function(e,t,r){"use strict";var n=r(3523),i=r(3782);function o(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0)&&!(t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function a(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192:(o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128):r[n++]=a>>12|224,r[n++]=a>>6&63|128),r[n++]=63&a|128)}}else for(i=0;i>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function u(e,t){for(var r="",n=0;n>>0;return s}function h(e,t){for(var r=Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r}function p(e,t){return e>>>t|e<<32-t}function m(e,t){return e<>>32-t}function b(e,t){return e+t>>>0}function g(e,t,r){return e+t+r>>>0}function y(e,t,r,n){return e+t+r+n>>>0}function _(e,t,r,n,i){return e+t+r+n+i>>>0}function v(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o}function E(e,t,r,n){return(t+n>>>0>>0}function T(e,t,r,n){return t+n>>>0}function A(e,t,r,n,i,o,a,s){var c,u=t;return e+r+i+a+(c=0+((u=u+n>>>0)>>0)>>0)>>0}function S(e,t,r,n,i,o,a,s){return t+n+o+s>>>0}function x(e,t,r,n,i,o,a,s,c,u){var l,d=t;return e+r+i+a+c+(l=0+((d=d+n>>>0)>>0)>>0)>>0)>>0}function w(e,t,r,n,i,o,a,s,c,u){return t+n+o+s+u>>>0}function C(e,t,r){return(t<<32-r|e>>>r)>>>0}function N(e,t,r){return(e<<32-r|t>>>r)>>>0}function M(e,t,r){return e>>>r}function k(e,t,r){return(e<<32-r|t>>>r)>>>0}t.inherits=i,t.toArray=a,t.toHex=s,t.htonl=c,t.toHex32=u,t.zero2=l,t.zero8=d,t.join32=f,t.split32=h,t.rotr32=p,t.rotl32=m,t.sum32=b,t.sum32_3=g,t.sum32_4=y,t.sum32_5=_,t.sum64=v,t.sum64_hi=E,t.sum64_lo=T,t.sum64_4_hi=A,t.sum64_4_lo=S,t.sum64_5_hi=x,t.sum64_5_lo=w,t.rotr64_hi=C,t.rotr64_lo=N,t.shr64_hi=M,t.shr64_lo=k},4910:function(e,t,r){"use strict";var n=r(7028),i=r(6545),o=r(3523);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length>>32-t}function u(e,t,r,n,i,o,a){return c(e+(t&r|~t&n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return c(e+(t&n|r&~n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return c(e+(t^r^n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return c(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=u(r,n,i,o,e[0],3614090360,7),o=u(o,r,n,i,e[1],3905402710,12),i=u(i,o,r,n,e[2],606105819,17),n=u(n,i,o,r,e[3],3250441966,22),r=u(r,n,i,o,e[4],4118548399,7),o=u(o,r,n,i,e[5],1200080426,12),i=u(i,o,r,n,e[6],2821735955,17),n=u(n,i,o,r,e[7],4249261313,22),r=u(r,n,i,o,e[8],1770035416,7),o=u(o,r,n,i,e[9],2336552879,12),i=u(i,o,r,n,e[10],4294925233,17),n=u(n,i,o,r,e[11],2304563134,22),r=u(r,n,i,o,e[12],1804603682,7),o=u(o,r,n,i,e[13],4254626195,12),i=u(i,o,r,n,e[14],2792965006,17),n=u(n,i,o,r,e[15],1236535329,22),r=l(r,n,i,o,e[1],4129170786,5),o=l(o,r,n,i,e[6],3225465664,9),i=l(i,o,r,n,e[11],643717713,14),n=l(n,i,o,r,e[0],3921069994,20),r=l(r,n,i,o,e[5],3593408605,5),o=l(o,r,n,i,e[10],38016083,9),i=l(i,o,r,n,e[15],3634488961,14),n=l(n,i,o,r,e[4],3889429448,20),r=l(r,n,i,o,e[9],568446438,5),o=l(o,r,n,i,e[14],3275163606,9),i=l(i,o,r,n,e[3],4107603335,14),n=l(n,i,o,r,e[8],1163531501,20),r=l(r,n,i,o,e[13],2850285829,5),o=l(o,r,n,i,e[2],4243563512,9),i=l(i,o,r,n,e[7],1735328473,14),n=l(n,i,o,r,e[12],2368359562,20),r=d(r,n,i,o,e[5],4294588738,4),o=d(o,r,n,i,e[8],2272392833,11),i=d(i,o,r,n,e[11],1839030562,16),n=d(n,i,o,r,e[14],4259657740,23),r=d(r,n,i,o,e[1],2763975236,4),o=d(o,r,n,i,e[4],1272893353,11),i=d(i,o,r,n,e[7],4139469664,16),n=d(n,i,o,r,e[10],3200236656,23),r=d(r,n,i,o,e[13],681279174,4),o=d(o,r,n,i,e[0],3936430074,11),i=d(i,o,r,n,e[3],3572445317,16),n=d(n,i,o,r,e[6],76029189,23),r=d(r,n,i,o,e[9],3654602809,4),o=d(o,r,n,i,e[12],3873151461,11),i=d(i,o,r,n,e[15],530742520,16),n=d(n,i,o,r,e[2],3299628645,23),r=f(r,n,i,o,e[0],4096336452,6),o=f(o,r,n,i,e[7],1126891415,10),i=f(i,o,r,n,e[14],2878612391,15),n=f(n,i,o,r,e[5],4237533241,21),r=f(r,n,i,o,e[12],1700485571,6),o=f(o,r,n,i,e[3],2399980690,10),i=f(i,o,r,n,e[10],4293915773,15),n=f(n,i,o,r,e[1],2240044497,21),r=f(r,n,i,o,e[8],1873313359,6),o=f(o,r,n,i,e[15],4264355552,10),i=f(i,o,r,n,e[6],2734768916,15),n=f(n,i,o,r,e[13],1309151649,21),r=f(r,n,i,o,e[4],4149444226,6),o=f(o,r,n,i,e[11],3174756917,10),i=f(i,o,r,n,e[2],718787259,15),n=f(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},1354:function(e,t,r){var n=r(711),i=r(3500);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var r=new n(this.rand.generate(t));while(r.cmp(e)>=0);return r},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),l=s.toRed(o),d=!0;t>0;t--){var f=this._randrange(new n(2),s);r&&r(f);var h=f.toRed(o).redPow(u);if(0!==h.cmp(a)&&0!==h.cmp(l)){for(var p=1;p0;t--){var l=this._randrange(new n(2),a),d=e.gcd(l);if(0!==d.cmpn(1))return d;var f=l.toRed(i).redPow(c);if(0!==f.cmp(o)&&0!==f.cmp(u)){for(var h=1;h>8,a=255&i;o?r.push(o,a):r.push(a)}return r}function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;rt||r!=r)throw TypeError("Bad key length")}},2127:function(e,t,r){var n={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},i=r(4873),o=r(6911).Buffer,a=r(5349),s=r(7007),c=r(5407);function u(e,t,r,u,l){a(r,u),e=c(e,s,"Password"),t=c(t,s,"Salt"),l=l||"sha1";var d=o.allocUnsafe(u),f=o.allocUnsafe(t.length+4);t.copy(f,0,0,t.length);for(var h=0,p=n[l],m=Math.ceil(u/p),b=1;b<=m;b++){f.writeUInt32BE(b,t.length);for(var g=i(l,e).update(f).digest(),y=g,_=1;_=t.length){o++;break}var a=t.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,a.length<8&&o++,o)throw Error("decryption error");return t.slice(i)}function h(e,t){e=l.from(e),t=l.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var i=-1;++ih||new a(t).cmp(c.modulus)>=0)throw Error("decryption error");o=r?u(new a(t),c):s(t,c);var p=l.alloc(h-o.length);if(o=l.concat([p,o],h),4===i)return d(c,o);if(1===i)return f(c,o,r);if(3===i)return o;throw Error("unknown padding")}},3995:function(e,t,r){var n=r(9902),i=r(7223),o=r(9739),a=r(5520),s=r(6386),c=r(711),u=r(1607),l=r(7166),d=r(6911).Buffer;function f(e,t){var r=e.modulus.byteLength(),n=t.length,u=o("sha1").update(d.alloc(0)).digest(),l=u.length,f=2*l;if(n>r-f-2)throw Error("message too long");var h=d.alloc(r-n-f-2),p=r-l-1,m=i(l),b=s(d.concat([u,h,d.alloc(1,1),t],p),a(m,p)),g=s(m,a(b,l));return new c(d.concat([d.alloc(1),g,b],r))}function h(e,t,r){var n,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw Error("message too long");return n=r?d.alloc(o-i-3,255):p(o-i-3),new c(d.concat([d.from([0,r?1:2]),n,d.alloc(1),t],o))}function p(e){for(var t,r=d.allocUnsafe(e),n=0,o=i(2*e),a=0;n=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return r?l(o,a):u(o,a)}},1607:function(e,t,r){var n=r(711),i=r(6911).Buffer;function o(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}e.exports=o},6386:function(e){e.exports=function(e,t){for(var r=e.length,n=-1;++na)throw RangeError("requested too many random bytes");var r=c.allocUnsafe(e);if(e>0){if(e>i)for(var n=0;nl||e<0)throw TypeError("offset must be a uint32");if(e>c||e>t)throw RangeError("offset out of range")}function f(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>l||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>c)throw RangeError("buffer too small")}function h(e,t,n,i){if(!s.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-t;else if("function"!=typeof i)throw TypeError('"cb" argument must be a function');return d(t,e.length),f(n,t,e.length),p(e,t,n,i)}function p(e,t,r,n){var i=new Uint8Array(e.buffer,t,r);if(u.getRandomValues(i),n){o.nextTick(function(){n(null,e)});return}return e}function m(e,t,n){if(void 0===t&&(t=0),!s.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return d(t,e.length),void 0===n&&(n=e.length-t),f(n,t,e.length),p(e,t,n)}u&&u.getRandomValues?(t.randomFill=h,t.randomFillSync=m):(t.randomFill=i,t.randomFillSync=i)},4646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,c;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))c=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";c=`The "${e}" ${r} ${s} ${n(t,"type")}`}return c+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},2403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var i=r(1709),a=r(7337);r(3782)(l,i);for(var s=n(a.prototype),c=0;c0){if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=p(t)),n)s.endEmitted?x(e,new S):O(e,s,t,!0);else if(s.ended)x(e,new T);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):j(e,s)):O(e,s,t,!1)}}else n||(s.reading=!1,j(e,s));return!s.ended&&(s.length=I?e=I:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function D(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=P(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function $(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function L(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,o.nextTick(F,e))}function F(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Y(e)}function j(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function z(e){a("readable nexttick read 0"),e.read(0)}function V(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(G,e,t))}function G(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Y(e),t.flowing&&!t.reading&&e.read(0)}function Y(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function q(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function W(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,o.nextTick(Z,t,e))}function Z(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function K(e,t){for(var r=0,n=e.length;r=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?W(this):L(this),null;if(0===(e=D(e,r))&&r.ended)return 0===r.length&&W(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e0?q(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&W(this)),null!==t&&this.emit("data",t),t},M.prototype._read=function(e){x(this,new A("_read()"))},M.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var i=t&&!1===t.end||e===o.stdout||e===o.stderr?g:c;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function c(){a("onend"),e.end()}n.endEmitted?o.nextTick(i):r.once("end",i),e.on("unpipe",s);var u=B(r);e.on("drain",u);var d=!1;function f(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",b),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",g),r.removeListener("data",h),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==K(n.pipes,e))&&!d&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),g(),e.removeListener("error",p),0===l(e,"error")&&x(e,t)}function m(){e.removeListener("finish",b),g()}function b(){a("onfinish"),e.removeListener("close",m),g()}function g(){a("unpipe"),r.unpipe(e)}return r.on("data",h),C(e,"error",p),e.once("close",m),e.once("finish",b),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},M.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?L(this):n.reading||o.nextTick(z,this)),r},M.prototype.addListener=M.prototype.on,M.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&o.nextTick(H,this),r},M.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&o.nextTick(H,this),t},M.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,V(this,e)),e.paused=!1,this},M.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},M.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new S(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),N.prototype._write=function(e,t,r){r(new y("_write()"))},N.prototype._writev=null,N.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||V(this,n,r),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),N.prototype.destroy=p.destroy,N.prototype._undestroy=p.undestroy,N.prototype._destroy=function(e,t){t(e)}},6871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i,a=r(9698),s=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[c]=null,t(p(r,!1)))}}function b(e){o.nextTick(m,e)}function g(e,t){return function(r,n){e.then(function(){if(t[l]){r(p(void 0,!0));return}t[f](r,n)},n)}}var y=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((n(i={get stream(){return this[h]},next:function(){var e,t=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){o.nextTick(function(){t[u]?r(t[u]):e(p(void 0,!0))})});var n=this[d];if(n)e=new Promise(g(n,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(p(i,!1));e=new Promise(this[f])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),n(i,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),i),y),v=function(e){var t,r=Object.create(_,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,l,{value:e._readableState.endEmitted,writable:!0}),n(t,f,{value:function(e,t){var n=r[h].read();n?(r[d]=null,r[s]=null,r[c]=null,e(p(n,!1))):(r[s]=e,r[c]=t)},writable:!0}),t));return r[d]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];null!==t&&(r[d]=null,r[s]=null,r[c]=null,t(e)),r[u]=e;return}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[c]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",b.bind(null,r)),r};e.exports=v},4379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:d,value:function(e,t){return l(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},7025:function(e){"use strict";function t(e,t){var i=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(a,this,e)):o.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?i._writableState?i._writableState.errorEmitted?o.nextTick(n,i):(i._writableState.errorEmitted=!0,o.nextTick(r,i,e)):o.nextTick(r,i,e):t?(o.nextTick(n,i),t(e)):o.nextTick(n,i)})),this}function r(e,t){a(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:i,errorOrDestroy:s}},9698:function(e,t,r){"use strict";var n=r(4646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i0,function(t){e||(e=t),t&&o.forEach(d),a||(o.forEach(d),i(e))})});return r.reduce(f)}e.exports=p},6776:function(e,t,r){"use strict";var n=r(4646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},4678:function(e,t,r){e.exports=r(2781)},3726:function(e,t,r){var n=r(2781);"disable"===o.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=r(1709)).Stream=n||t,t.Readable=t,t.Writable=r(7337),t.Duplex=r(2403),t.Transform=r(1170),t.PassThrough=r(7889),t.finished=r(9698),t.pipeline=r(8442))},3225:function(e,t,r){"use strict";var n=r(4300).Buffer,i=r(3782),o=r(9029),a=Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function m(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function _(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e,t,r=a,n=0;n<16;++n)r[n]=this._block.readInt32LE(4*n);for(var i=0|this._a,o=0|this._b,h=0|this._c,v=0|this._d,E=0|this._e,T=0|this._a,A=0|this._b,S=0|this._c,x=0|this._d,w=0|this._e,C=0;C<80;C+=1)C<16?(e=m(i,o,h,v,E,r[s[C]],d[0],u[C]),t=_(T,A,S,x,w,r[c[C]],f[0],l[C])):C<32?(e=b(i,o,h,v,E,r[s[C]],d[1],u[C]),t=y(T,A,S,x,w,r[c[C]],f[1],l[C])):C<48?(e=g(i,o,h,v,E,r[s[C]],d[2],u[C]),t=g(T,A,S,x,w,r[c[C]],f[2],l[C])):C<64?(e=y(i,o,h,v,E,r[s[C]],d[3],u[C]),t=b(T,A,S,x,w,r[c[C]],f[3],l[C])):(e=_(i,o,h,v,E,r[s[C]],d[4],u[C]),t=m(T,A,S,x,w,r[c[C]],f[4],l[C])),i=E,E=v,v=p(h,10),h=o,o=e,T=w,w=x,x=p(S,10),S=A,A=t;var N=this._b+h+x|0;this._b=this._c+v+w|0,this._c=this._d+E+T|0,this._d=this._e+i+A|0,this._e=this._a+o+S|0,this._a=N},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},5055:function(e,t,r){var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},6911:function(e,t,r){/*! safe-buffer. MIT License. Feross Aboukhadijeh */var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},2858:function(e,t,r){var n=r(6911).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=i},4371:function(e,t,r){var n=e.exports=function(e){var t=n[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(4018),n.sha1=r(4179),n.sha224=r(532),n.sha256=r(1843),n.sha384=r(7455),n.sha512=r(9934)},4018:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var f=0;f<80;++f){var h=~~(f/20),p=u(r)+d(h,n,i,o)+s+t[f]+a[h]|0;s=o,o=i,i=l(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},4179:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<1|e>>>31}function l(e){return e<<5|e>>>27}function d(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=u(t[c-3]^t[c-8]^t[c-14]^t[c-16]);for(var h=0;h<80;++h){var p=~~(h/20),m=l(r)+f(p,n,i,o)+s+t[h]+a[p]|0;s=o,o=i,i=d(n),n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},532:function(e,t,r){var n=r(3782),i=r(1843),o=r(2858),a=r(6911).Buffer,s=Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},1843:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,c=0|this._f,m=0|this._g,b=0|this._h,g=0;g<16;++g)t[g]=e.readInt32BE(4*g);for(;g<64;++g)t[g]=p(t[g-2])+t[g-7]+h(t[g-15])+t[g-16]|0;for(var y=0;y<64;++y){var _=b+f(s)+u(s,c,m)+a[y]+t[y]|0,v=d(r)+l(r,n,i)|0;b=m,m=c,c=s,s=o+_|0,o=i,i=n,n=r,r=_+v|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=c+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},7455:function(e,t,r){var n=r(3782),i=r(9934),o=r(2858),a=r(6911).Buffer,s=Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},9934:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,y=0|this._gh,_=0|this._hh,v=0|this._al,E=0|this._bl,T=0|this._cl,A=0|this._dl,S=0|this._el,x=0|this._fl,w=0|this._gl,C=0|this._hl,N=0;N<32;N+=2)t[N]=e.readInt32BE(4*N),t[N+1]=e.readInt32BE(4*N+4);for(;N<160;N+=2){var M=t[N-30],k=t[N-30+1],O=h(M,k),R=p(k,M),I=m(M=t[N-4],k=t[N-4+1]),P=b(k,M),D=t[N-14],$=t[N-14+1],L=t[N-32],F=t[N-32+1],j=R+$|0,U=O+D+g(j,R)|0;U=(U=U+I+g(j=j+P|0,P)|0)+L+g(j=j+F|0,F)|0,t[N]=U,t[N+1]=j}for(var B=0;B<160;B+=2){U=t[B],j=t[B+1];var H=l(r,n,i),z=l(v,E,T),V=d(r,v),G=d(v,r),Y=f(s,S),q=f(S,s),W=a[B],Z=a[B+1],K=u(s,c,y),X=u(S,x,w),Q=C+q|0,J=_+Y+g(Q,C)|0;J=(J=(J=J+K+g(Q=Q+X|0,X)|0)+W+g(Q=Q+Z|0,Z)|0)+U+g(Q=Q+j|0,j)|0;var ee=G+z|0,et=V+H+g(ee,G)|0;_=y,C=w,y=c,w=x,c=s,x=S,s=o+J+g(S=A+Q|0,A)|0,o=i,A=T,i=n,T=E,n=r,E=v,r=J+et+g(v=Q+ee|0,Q)|0}this._al=this._al+v|0,this._bl=this._bl+E|0,this._cl=this._cl+T|0,this._dl=this._dl+A|0,this._el=this._el+S|0,this._fl=this._fl+x|0,this._gl=this._gl+w|0,this._hl=this._hl+C|0,this._ah=this._ah+r+g(this._al,v)|0,this._bh=this._bh+n+g(this._bl,E)|0,this._ch=this._ch+i+g(this._cl,T)|0,this._dh=this._dh+o+g(this._dl,A)|0,this._eh=this._eh+s+g(this._el,S)|0,this._fh=this._fh+c+g(this._fl,x)|0,this._gh=this._gh+y+g(this._gl,w)|0,this._hh=this._hh+_+g(this._hl,C)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},3704:function(e,t,r){"use strict";var n=r(5055).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=b,this.end=g,t=3;break;default:this.write=y,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function c(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function f(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function b(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r1)for(var r=1;rString(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,c;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))c=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";c=`The "${e}" ${r} ${s} ${n(t,"type")}`}return c+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(709),a=r(337);r(782)(l,o);for(var s=n(a.prototype),c=0;c0){if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=p(t)),n)s.endEmitted?x(e,new S):O(e,s,t,!0);else if(s.ended)x(e,new T);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):j(e,s)):O(e,s,t,!1)}}else n||(s.reading=!1,j(e,s));return!s.ended&&(s.length=I?e=I:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function D(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=P(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function $(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function L(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(F,e))}function F(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Y(e)}function j(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function z(e){a("readable nexttick read 0"),e.read(0)}function V(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(G,e,t))}function G(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Y(e),t.flowing&&!t.reading&&e.read(0)}function Y(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function q(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function W(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(Z,t,e))}function Z(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function K(e,t){for(var r=0,n=e.length;r=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?W(this):L(this),null;if(0===(e=D(e,r))&&r.ended)return 0===r.length&&W(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e0?q(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&W(this)),null!==t&&this.emit("data",t),t},M.prototype._read=function(e){x(this,new A("_read()"))},M.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?g:c;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function c(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var u=B(r);e.on("drain",u);var d=!1;function f(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",b),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",g),r.removeListener("data",h),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==K(n.pipes,e))&&!d&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),g(),e.removeListener("error",p),0===l(e,"error")&&x(e,t)}function m(){e.removeListener("finish",b),g()}function b(){a("onfinish"),e.removeListener("close",m),g()}function g(){a("unpipe"),r.unpipe(e)}return r.on("data",h),C(e,"error",p),e.once("close",m),e.once("finish",b),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},M.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?L(this):n.reading||i.nextTick(z,this)),r},M.prototype.addListener=M.prototype.on,M.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(H,this),r},M.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(H,this),t},M.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,V(this,e)),e.paused=!1,this},M.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},M.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new S(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),N.prototype._write=function(e,t,r){r(new y("_write()"))},N.prototype._writev=null,N.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||V(this,n,r),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),N.prototype.destroy=p.destroy,N.prototype._undestroy=p.undestroy,N.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[c]=null,t(p(r,!1)))}}function b(e){i.nextTick(m,e)}function g(e,t){return function(r,n){e.then(function(){if(t[l]){r(p(void 0,!0));return}t[f](r,n)},n)}}var y=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((n(o={get stream(){return this[h]},next:function(){var e,t=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[u]?r(t[u]):e(p(void 0,!0))})});var n=this[d];if(n)e=new Promise(g(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[f])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),o),y),v=function(e){var t,r=Object.create(_,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,l,{value:e._readableState.endEmitted,writable:!0}),n(t,f,{value:function(e,t){var n=r[h].read();n?(r[d]=null,r[s]=null,r[c]=null,e(p(n,!1))):(r[s]=e,r[c]=t)},writable:!0}),t));return r[d]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];null!==t&&(r[d]=null,r[s]=null,r[c]=null,t(e)),r[u]=e;return}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[c]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",b.bind(null,r)),r};e.exports=v},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:d,value:function(e,t){return l(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){var o=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(a,this,e)):i.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted?i.nextTick(n,o):(o._writableState.errorEmitted=!0,i.nextTick(r,o,e)):i.nextTick(r,o,e):t?(i.nextTick(n,o),t(e)):i.nextTick(n,o)})),this}function r(e,t){a(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:o,errorOrDestroy:s}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i0,function(t){e||(e=t),t&&o.forEach(d),a||(o.forEach(d),i(e))})});return r.reduce(f)}e.exports=p},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=b,this.end=g,t=3;break;default:this.write=y,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function c(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function f(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function b(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r-1?i(r):r}},139:function(e,t,r){"use strict";var n=r(174),i=r(925),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),c=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(n,a,arguments);return c&&u&&c(t,"length").configurable&&u(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var d=function(){return s(n,o,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/g,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=C(e),n=r.length>0?r[0]:"",o=N("%"+n+"%",t),s=o.name,u=o.value,l=!1,d=o.alias;d&&(n=d[0],E(r,v([0,1],d)));for(var f=1,h=!0;f=r.length){var y=c(u,p);u=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:u[p]}else h=_(u,p),u=u[p];h&&!l&&(m[s]=u)}}return u}},925:function(e,t,r){"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},l=c?function(){try{return arguments.callee,u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,d=r(115)(),f=r(504)(),h=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),p={},m="undefined"!=typeof Uint8Array&&h?h(Uint8Array):n,b={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d&&h?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d&&h?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d&&h?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d&&h?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&h?h(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":m,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(h)try{null.error}catch(e){var g=h(h(e));b["%Error.prototype%"]=g}var y=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&h&&(r=h(i.prototype))}return b[t]=r,r},_={"%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"]},v=r(174),E=r(101),T=v.call(Function.call,Array.prototype.concat),A=v.call(Function.apply,Array.prototype.splice),S=v.call(Function.call,String.prototype.replace),x=v.call(Function.call,String.prototype.slice),w=v.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,M=function(e){var t=x(e,0,1),r=x(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,C,function(e,t,r,i){n[n.length]=r?S(i,N,"$1"):t||e}),n},k=function(e,t){var r,n=e;if(E(_,n)&&(n="%"+(r=_[n])[0]+"%"),E(b,n)){var o=b[n];if(o===p&&(o=y(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===w(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=M(e),n=r.length>0?r[0]:"",o=k("%"+n+"%",t),s=o.name,u=o.value,l=!1,d=o.alias;d&&(n=d[0],A(r,T([0,1],d)));for(var f=1,h=!0;f=r.length){var y=c(u,p);u=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:u[p]}else h=E(u,p),u=u[p];h&&!l&&(b[s]=u)}}return u}},504:function(e){"use strict";var t={foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},101:function(e,t,r){"use strict";var n=r(174);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),c=n(942)()&&"symbol"==typeof Symbol.toStringTag,u=o(),l=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1)}},369:function(e){e.exports=function(e){return e instanceof i}},584:function(e,t,r){"use strict";var n=r(157),i=r(391),o=r(490),a=r(994);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(c)var p=s(BigInt.prototype.valueOf);if(u)var m=s(Symbol.prototype.valueOf);function b(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function y(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||B(e)}function _(e){return"Uint8Array"===o(e)}function v(e){return"Uint8ClampedArray"===o(e)}function E(e){return"Uint16Array"===o(e)}function T(e){return"Uint32Array"===o(e)}function A(e){return"Int8Array"===o(e)}function S(e){return"Int16Array"===o(e)}function x(e){return"Int32Array"===o(e)}function w(e){return"Float32Array"===o(e)}function C(e){return"Float64Array"===o(e)}function N(e){return"BigInt64Array"===o(e)}function M(e){return"BigUint64Array"===o(e)}function k(e){return"[object Map]"===l(e)}function O(e){return"undefined"!=typeof Map&&(k.working?k(e):e instanceof Map)}function R(e){return"[object Set]"===l(e)}function I(e){return"undefined"!=typeof Set&&(R.working?R(e):e instanceof Set)}function P(e){return"[object WeakMap]"===l(e)}function D(e){return"undefined"!=typeof WeakMap&&(P.working?P(e):e instanceof WeakMap)}function $(e){return"[object WeakSet]"===l(e)}function L(e){return $(e)}function F(e){return"[object ArrayBuffer]"===l(e)}function j(e){return"undefined"!=typeof ArrayBuffer&&(F.working?F(e):e instanceof ArrayBuffer)}function U(e){return"[object DataView]"===l(e)}function B(e){return"undefined"!=typeof DataView&&(U.working?U(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=g,t.isArrayBufferView=y,t.isUint8Array=_,t.isUint8ClampedArray=v,t.isUint16Array=E,t.isUint32Array=T,t.isInt8Array=A,t.isInt16Array=S,t.isInt32Array=x,t.isFloat32Array=w,t.isFloat64Array=C,t.isBigInt64Array=N,t.isBigUint64Array=M,k.working="undefined"!=typeof Map&&k(new Map),t.isMap=O,R.working="undefined"!=typeof Set&&R(new Set),t.isSet=I,P.working="undefined"!=typeof WeakMap&&P(new WeakMap),t.isWeakMap=D,$.working="undefined"!=typeof WeakSet&&$(new WeakSet),t.isWeakSet=L,F.working="undefined"!=typeof ArrayBuffer&&F(new ArrayBuffer),t.isArrayBuffer=j,U.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&U(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=B;var H="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function z(e){return"[object SharedArrayBuffer]"===l(e)}function V(e){return void 0!==H&&(void 0===z.working&&(z.working=z(new H)),z.working?z(e):e instanceof H)}function G(e){return"[object AsyncFunction]"===l(e)}function Y(e){return"[object Map Iterator]"===l(e)}function q(e){return"[object Set Iterator]"===l(e)}function W(e){return"[object Generator]"===l(e)}function Z(e){return"[object WebAssembly.Module]"===l(e)}function K(e){return b(e,d)}function X(e){return b(e,f)}function Q(e){return b(e,h)}function J(e){return c&&b(e,p)}function ee(e){return u&&b(e,m)}function et(e){return K(e)||X(e)||Q(e)||J(e)||ee(e)}function er(e){return"undefined"!=typeof Uint8Array&&(j(e)||V(e))}t.isSharedArrayBuffer=V,t.isAsyncFunction=G,t.isMapIterator=Y,t.isSetIterator=q,t.isGeneratorObject=W,t.isWebAssemblyCompiledModule=Z,t.isNumberObject=K,t.isStringObject=X,t.isBooleanObject=Q,t.isBigIntObject=J,t.isSymbolObject=ee,t.isBoxedPrimitive=et,t.isAnyArrayBuffer=er,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),v(r)?n.showHidden=r:r&&t._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,e,n.depth)}function l(e,t){var r=u.styles[t];return r?"\x1b["+u.colors[r][0]+"m"+e+"\x1b["+u.colors[r][1]+"m":e}function d(e,t){return e}function f(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return S(o)||(o=h(e,o,n)),o}var a=p(e,r);if(a)return a;var s=Object.keys(r),c=f(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),k(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(O(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(C(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(M(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return m(r)}var l="",d=!1,v=["{","}"];return(_(r)&&(d=!0,v=["[","]"]),O(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),C(r)&&(l=" "+RegExp.prototype.toString.call(r)),M(r)&&(l=" "+Date.prototype.toUTCString.call(r)),k(r)&&(l=" "+m(r)),0!==s.length||d&&0!=r.length)?n<0?C(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),i=d?b(e,r,n,c,s):s.map(function(t){return g(e,r,n,c,t,d)}),e.seen.pop(),y(i,l,v)):v[0]+l+v[1]}function p(e,t){if(w(t))return e.stylize("undefined","undefined");if(S(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return A(t)?e.stylize(""+t,"number"):v(t)?e.stylize(""+t,"boolean"):E(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function b(e,t,r,n,i){for(var o=[],a=0,s=t.length;ae.seen.indexOf(c.value)?(s=E(r)?h(e,c.value,null):h(e,c.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function y(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function _(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function E(e){return null===e}function T(e){return null==e}function A(e){return"number"==typeof e}function S(e){return"string"==typeof e}function x(e){return"symbol"==typeof e}function w(e){return void 0===e}function C(e){return N(e)&&"[object RegExp]"===I(e)}function N(e){return"object"==typeof e&&null!==e}function M(e){return N(e)&&"[object Date]"===I(e)}function k(e){return N(e)&&("[object Error]"===I(e)||e instanceof Error)}function O(e){return"function"==typeof e}function R(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function I(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var r=o.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){}}return a[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=_,t.isBoolean=v,t.isNull=E,t.isNullOrUndefined=T,t.isNumber=A,t.isString=S,t.isSymbol=x,t.isUndefined=w,t.isRegExp=C,t.types.isRegExp=C,t.isObject=N,t.isDate=M,t.types.isDate=M,t.isError=k,t.types.isNativeError=k,t.isFunction=O,t.isPrimitive=R,t.isBuffer=r(369);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",$(),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!N(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var F="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function U(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&n<=56319){this.charLength+=this.surrogateSize,t="";continue}if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived);var i=(t+=e.toString(this.encoding,0,i)).length-1,n=t.charCodeAt(i);if(n>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},a.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},a.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},57848:function(e,t,r){var n=r(18139);function i(e,t){var r,i,o,a=null;if(!e||"string"!=typeof e)return a;for(var s=n(e),c="function"==typeof t,u=0,l=s.length;u + * @license MIT + */e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},70529:function(e){/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},52587:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0||(i[r]=e[r]);return i}function i(e,t){if(null==e)return{};var r,i,o=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,{Z:function(){return i}})},63553:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(86831),i=r(10748);function o(e,t){if(t&&("object"===(0,n.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},16835:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}function i(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}r.d(t,{Z:function(){return s}});var o=r(2937);function a(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return n(e)||i(e,t)||(0,o.Z)(e,t)||a()}},27812:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(52587);function i(e){if(Array.isArray(e))return(0,n.Z)(e)}function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var a=r(2937);function s(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){return i(e)||o(e)||(0,a.Z)(e)||s()}},96714:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(86831);function i(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==(0,n.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=i(e,"string");return"symbol"===(0,n.Z)(t)?t:String(t)}},86831:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{Z:function(){return n}})},2937:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(52587);function i(e,t){if(e){if("string"==typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,n.Z)(e,t)}}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(6840),t(58194)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/admin-ca65dc7e884d4a6c.js b/_next/static/chunks/pages/admin-285959392f0a812b.js similarity index 62% rename from _next/static/chunks/pages/admin-ca65dc7e884d4a6c.js rename to _next/static/chunks/pages/admin-285959392f0a812b.js index e3b20a3e6..9525bc060 100644 --- a/_next/static/chunks/pages/admin-ca65dc7e884d4a6c.js +++ b/_next/static/chunks/pages/admin-285959392f0a812b.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6964],{44272:function(n,u,_){"use strict";_.r(u);var t=_(82332);u.default=t.Z},64830:function(n,u,_){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin",function(){return _(44272)}])}},function(n){n.O(0,[5675,4592,1695,2332,2888,9774,179],function(){return n(n.s=64830)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6964],{44272:function(n,u,_){"use strict";_.r(u);var t=_(53451);u.default=t.Z},64830:function(n,u,_){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin",function(){return _(44272)}])}},function(n){n.O(0,[5675,4592,1695,3451,2888,9774,179],function(){return n(n.s=64830)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/admin/[slug]-3bbf0dfc81d309fd.js b/_next/static/chunks/pages/admin/[slug]-5a94cad8b294733a.js similarity index 63% rename from _next/static/chunks/pages/admin/[slug]-3bbf0dfc81d309fd.js rename to _next/static/chunks/pages/admin/[slug]-5a94cad8b294733a.js index bdf9b6a62..c8190a865 100644 --- a/_next/static/chunks/pages/admin/[slug]-3bbf0dfc81d309fd.js +++ b/_next/static/chunks/pages/admin/[slug]-5a94cad8b294733a.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[815],{71370:function(n,u,_){"use strict";_.r(u);var t=_(82332);u.default=t.Z},22276:function(n,u,_){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[slug]",function(){return _(71370)}])}},function(n){n.O(0,[5675,4592,1695,2332,2888,9774,179],function(){return n(n.s=22276)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[815],{71370:function(n,u,_){"use strict";_.r(u);var t=_(53451);u.default=t.Z},22276:function(n,u,_){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[slug]",function(){return _(71370)}])}},function(n){n.O(0,[5675,4592,1695,3451,2888,9774,179],function(){return n(n.s=22276)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/checkout-1868327e32d52780.js b/_next/static/chunks/pages/checkout-1868327e32d52780.js deleted file mode 100644 index f9c08ff39..000000000 --- a/_next/static/chunks/pages/checkout-1868327e32d52780.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2222],{6226:function(e,t,i){"use strict";i.d(t,{J:function(){return c}});var n=i(10394),s=i(67294),c=function(){var e=(0,n.ko)("IMemberService"),t=(0,s.useState)(),i=t[0],c=t[1],a=e.getCurrentGuest();return(0,s.useEffect)(function(){a&&c(a);var t=[];return t.push(e.guestChanged.subscribe(function(e){c(e)})),function(){t.forEach(function(e){return e.unsubscribe()})}},[e.guestChanged,a]),i}},73184:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var n=i(21378),s=i.n(n),c=i(67294),a=[".d-flex.jsx-3985998400,.login.jsx-3985998400{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".login.jsx-3985998400{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;gap:var(--s-4);}"];a.__hash="3985998400";var r=i(60409),o=[];o.__hash="2085888330";var l=i(38903),u=i(10394),x=i(48834),d=i(98014),h=i(85893),f=function(e){var t=e.email,i=(0,u.ko)("IMemberService"),n=(0,c.useState)([{name:"email",value:t}]),a=n[0];n[1];var r=(0,x.Z)();return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(s(),{id:o.__hash,children:o}),(0,h.jsx)(l.Z,{fields:a,onSubmit:function(e){var t,n=null===(t=(0,d.PI)(e,"email"))||void 0===t?void 0:t.value;n&&r&&i.resetPassword({email:n,user_agent:r})},submitText:"send reset password"})]})},v=i(10577),j=i(49334),w=i(39925),_=i(51633),m=function(e){var t=e.email,i=e.view,n=e.title,o=e.onSuccess,l=(0,c.useState)(i||"login"),u=l[0],x=l[1],d={login:(0,h.jsx)(r.Z,{onSuccess:o,email:t}),"reset-password":(0,h.jsx)(f,{email:t})},m="login"===u?"reset-password":"login";return(0,c.useEffect)(function(){},[u,x]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(s(),{id:a.__hash,children:a}),(0,h.jsxs)("div",{className:"jsx-".concat(a.__hash)+" login",children:[(0,h.jsx)(_.Z,{showTitle:!0,title:n,currentView:u,actions:!1,views:d}),(0,h.jsx)("div",{className:"jsx-".concat(a.__hash)+" login__reset",children:(0,h.jsx)(v.Z,{variant:"link",onClick:function(){return x(m)},children:(0,w.R)((0,j.Z)(m))})})]})]})}},92902:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return p}});var n=i(16835),s=i(21378),c=i.n(s),a=i(67294),r=[".d-flex.jsx-2171864376,.checkout-modal.jsx-2171864376,.checkout__body.jsx-2171864376,.checkout__cart-list.jsx-2171864376,.checkout.jsx-2171864376 .checkout__title.jsx-2171864376,.checkout.jsx-2171864376{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;}",".checkout.jsx-2171864376{margin:var(--s-nav-height) auto 0;height:100%;width:100%;gap:var(--s-4);-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}","@media (max-width:1100px){.checkout.jsx-2171864376{width:var(--s-9-width);}}",".checkout.jsx-2171864376 .checkout__title.jsx-2171864376{line-height:2;font-size:var(--s-1);--ui-icon-width:var(--s-2);--ui-icon-height:var(--s-2);gap:var(--s-9);color:var(--gray-50);--ui-icon-color:var(--gray-50);}",".checkout__cart-list.jsx-2171864376{width:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-flex:1;-ms-flex:1;flex:1;}",".checkout__view.jsx-2171864376{-webkit-flex:2;-ms-flex:2;flex:2;width:var(--s-4-width);padding:var(--s-4);background-color:var(--gray-90);border:solid 1px var(--gray-80);border-radius:var(--border-radius);}",".checkout__body.jsx-2171864376{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:var(--s-4);height:100%;width:100%;}","@media (max-width:1100px){.checkout__body.jsx-2171864376{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}",".checkout__body.jsx-2171864376 i.jsx-2171864376{width:100%;line-height:1;color:var(--orange-50);padding:0;margin:0;}",".checkout-modal.jsx-2171864376{height:900px;padding:50px 0;width:100%;}"];r.__hash="2171864376";var o=i(55140),l=i(44983),u=i(11907),x=i(20226),d=i(6226),h=i(73184),f=[".d-flex.jsx-3989903357,.collect.jsx-3989903357{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".collect.jsx-3989903357{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;}",".collect__checkout-button.jsx-3989903357{width:100%;margin:10px 0 auto;padding-bottom:var(--s-7);}"];f.__hash="3989903357";var v=i(97346),j=i(97268),w=i(85153),_=i(85893),m=function(e){var t=e.user,i=e.cart_items,n=(0,a.useState)(),s=n[0],r=n[1];return t&&t.id?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(c(),{id:f.__hash,children:f}),(0,_.jsxs)("div",{className:"jsx-".concat(f.__hash)+" collect",children:[(0,_.jsx)("div",{className:"jsx-".concat(f.__hash)+" collect__checkout-button",children:s&&t&&i&&(0,_.jsx)(v.Z,{customer_id:t.id,cart_items:i,method_id:s.id,collect:!0})}),t&&(0,_.jsx)(j.Z,{open:!1,user:t,selected:s,onSuccess:function(e){console.log("[ FINALLY ]",e)},onSelect:r})]})]}):(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(w.Z,{})})},b=i(88315),k=i(27834),g=i(51633),p=function(){var e=(0,u.aF)(),t=(0,a.useState)(),i=t[0],s=t[1],f=(0,a.useState)(),v=f[0],j=f[1],w=(0,a.useState)(),p=w[0],y=w[1],S=(0,l.Z)().cart,N=(0,d.J)(),Z=function(e){var t=(null==e?void 0:e.id)&&e||N;["guest","created"].includes(null==e?void 0:e.status)?(I(),s("collect"),C(e)):((null==e?void 0:e.status)==="existing"||t)&&(y({email:e.email}),s("existing"))},O=(0,k.lm)(),E=(0,n.Z)(O,2),P=(E[0],E[1]),C=function(e){var t=e.status;t&&P({active:!0,persistence:3e3,list:[{name:"email ".concat(t,", sign in to continue")}]})},F={"sign-up":(0,_.jsx)(x.Z,{title:"Contact info",hasPassword:!1,btnText:"continue",onSuccess:Z}),existing:(0,_.jsx)(h.Z,{onSuccess:Z,title:"Account for ".concat(null==p?void 0:p.email,", exists. please sign in."),email:null==p?void 0:p.email}),collect:(0,_.jsx)(m,{user:p,cart_items:v})},I=function(){p||(e||N?(s("collect"),y(e||N)):s("sign-up"))},D=function(){v||j(S)};return(0,a.useEffect)(function(){I(),D()},[I,D]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(c(),{id:r.__hash,children:r}),(0,_.jsxs)("div",{id:"main-checkout",className:"jsx-".concat(r.__hash)+" checkout",children:[(0,_.jsxs)("div",{className:"jsx-".concat(r.__hash)+" checkout__title",children:["Secure Checkout ",(0,_.jsx)(o.a,{icon:"fa-lock"})]}),(0,_.jsxs)("div",{className:"jsx-".concat(r.__hash)+" checkout__button",children:["Step ","sign-up"===i?"1":"2"," of 2"]}),(0,_.jsxs)("div",{className:"jsx-".concat(r.__hash)+" checkout__body",children:[(0,_.jsx)("div",{className:"jsx-".concat(r.__hash)+" checkout__cart-list",children:(0,_.jsx)(b.Z,{adjustable:!1,variant:"mini"})}),(0,_.jsx)("div",{className:"jsx-".concat(r.__hash)+" checkout__view",children:(0,_.jsx)(g.Z,{views:F,currentView:i})})]})]})]})}},48834:function(e,t,i){"use strict";var n=i(59499),s=i(50029),c=i(64687),a=i.n(c),r=i(67294);function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function l(e){for(var t=1;t*.back-btn.jsx-437419458{display:none;}",".ui-view-layout__actions.jsx-437419458{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;gap:var(--s-9);}",".ui-view-layout__view.jsx-437419458{height:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);}",".ui-view-layout__view.jsx-437419458,.ui-view-layout__actions.jsx-437419458{width:100%;}",".ui-view-layout__header.jsx-437419458{width:var(--s-4-width);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding:0 var(--s-4) var(--s-9);}","@media (max-width:1100px){.ui-view-layout__header.jsx-437419458{width:var(--s-9-width);padding:0 var(--s-9) var(--s-9);}}",".ui-view-layout__header-title.jsx-437419458{font-size:var(--s-1);--ui-icon-color:var(--primary-50);color:var(--primary-50);text-transform:capitalize;}",".current.jsx-437419458{position:absolute;top:calc(var(--s-4) * 0.5);color:var(--gray-30-o);right:var(--s-9);height:var(--s-6);line-height:1;}"];a.__hash="437419458";var r=i(85153),o=i(27812),l=function(e,t){var i=(0,c.useState)([]),n=i[0],s=i[1],a=(0,c.useState)(),r=a[0],l=a[1],u=function(t){var i=String(t);e&&e[i]&&(l(e[i]),s(function(e){return[].concat((0,o.Z)(e),[i])}))};return(0,c.useEffect)(function(){t&&null!=e&&e[t]&&n[n.length-1]!==t&&u(t)},[e,t]),{view:r,setView:u,last:n[n.length-1],goBack:function(){s(function(t){if(t.length>1){var i=t.slice(0,-1);return l(e[i[i.length-1]]),i}return t})}}},u=i(10577),x=i(85893),d=function(e){var t=e.views,i=e.currentView,n=(e.onChange,e.title),o=(e.actions,e.showTitle),d=e.backBtn;(0,c.useEffect)(function(){},[i]);var h=l(t,i),f=h.view,v=(h.setView,h.goBack),j=h.last;return t&&f&&"loading"!=i?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s(),{id:a.__hash,children:a}),(0,x.jsxs)("div",{className:"jsx-".concat(a.__hash)+" ui-view-layout",children:[!!(void 0!==d&&d&&"start"!==j)&&(0,x.jsx)("div",{className:"jsx-".concat(a.__hash)+" back-btn",children:(0,x.jsx)("div",{className:"jsx-".concat(a.__hash),children:(0,x.jsx)(u.Z,{traits:{beforeIcon:"fa-chevron-left"},variant:"flat",onClick:v,children:"Back"})})}),void 0!==o&&o&&"start"!==j&&(0,x.jsx)("div",{className:"jsx-".concat(a.__hash)+" ui-view-layout__header",children:(0,x.jsx)("div",{className:"jsx-".concat(a.__hash)+" ui-view-layout__header-title",children:n})}),(0,x.jsx)("div",{"data-view":i,className:"jsx-".concat(a.__hash)+" ui-view-layout__view",children:f||(0,x.jsx)("div",{className:"jsx-".concat(a.__hash),children:"View not found"})})]})]}):(0,x.jsx)(r.Z,{})}},62013:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout",function(){return i(92902)}])}},function(e){e.O(0,[5675,3796,559,7268,2888,9774,179],function(){return e(e.s=62013)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/checkout-718fb94f4272ac84.js b/_next/static/chunks/pages/checkout-718fb94f4272ac84.js new file mode 100644 index 000000000..208a5f100 --- /dev/null +++ b/_next/static/chunks/pages/checkout-718fb94f4272ac84.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2222],{6226:function(e,t,i){"use strict";i.d(t,{J:function(){return c}});var n=i(10394),s=i(67294),c=function(){var e=(0,n.ko)("IMemberService"),t=(0,s.useState)(),i=t[0],c=t[1],a=e.getCurrentGuest();return(0,s.useEffect)(function(){a&&c(a);var t=[];return t.push(e.guestChanged.subscribe(function(e){c(e)})),function(){t.forEach(function(e){return e.unsubscribe()})}},[e.guestChanged,a]),i}},73184:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var n=i(21378),s=i.n(n),c=i(67294),a=[".d-flex.jsx-3985998400,.login.jsx-3985998400{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".login.jsx-3985998400{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;gap:var(--s-4);}"];a.__hash="3985998400";var r=i(60409),o=[];o.__hash="2085888330";var l=i(38903),u=i(10394),x=i(48834),d=i(98014),h=i(85893),f=function(e){var t=e.email,i=(0,u.ko)("IMemberService"),n=(0,c.useState)([{name:"email",value:t}]),a=n[0];n[1];var r=(0,x.Z)();return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(s(),{id:o.__hash,children:o}),(0,h.jsx)(l.Z,{fields:a,onSubmit:function(e){var t,n=null===(t=(0,d.PI)(e,"email"))||void 0===t?void 0:t.value;n&&r&&i.resetPassword({email:n,user_agent:r})},submitText:"send reset password"})]})},v=i(10577),j=i(49334),w=i(39925),_=i(51633),m=function(e){var t=e.email,i=e.view,n=e.title,o=e.onSuccess,l=(0,c.useState)(i||"login"),u=l[0],x=l[1],d={login:(0,h.jsx)(r.Z,{onSuccess:o,email:t}),"reset-password":(0,h.jsx)(f,{email:t})},m="login"===u?"reset-password":"login";return(0,c.useEffect)(function(){},[u,x]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(s(),{id:a.__hash,children:a}),(0,h.jsxs)("div",{className:"jsx-".concat(a.__hash)+" login",children:[(0,h.jsx)(_.Z,{showTitle:!0,title:n,currentView:u,actions:!1,views:d}),(0,h.jsx)("div",{className:"jsx-".concat(a.__hash)+" login__reset",children:(0,h.jsx)(v.Z,{variant:"link",onClick:function(){return x(m)},children:(0,w.R)((0,j.Z)(m))})})]})]})}},92902:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return p}});var n=i(16835),s=i(21378),c=i.n(s),a=i(67294),r=[".d-flex.jsx-2171864376,.checkout-modal.jsx-2171864376,.checkout__body.jsx-2171864376,.checkout__cart-list.jsx-2171864376,.checkout.jsx-2171864376 .checkout__title.jsx-2171864376,.checkout.jsx-2171864376{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;}",".checkout.jsx-2171864376{margin:var(--s-nav-height) auto 0;height:100%;width:100%;gap:var(--s-4);-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}","@media (max-width:1100px){.checkout.jsx-2171864376{width:var(--s-9-width);}}",".checkout.jsx-2171864376 .checkout__title.jsx-2171864376{line-height:2;font-size:var(--s-1);--ui-icon-width:var(--s-2);--ui-icon-height:var(--s-2);gap:var(--s-9);color:var(--gray-50);--ui-icon-color:var(--gray-50);}",".checkout__cart-list.jsx-2171864376{width:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-flex:1;-ms-flex:1;flex:1;}",".checkout__view.jsx-2171864376{-webkit-flex:2;-ms-flex:2;flex:2;width:var(--s-4-width);padding:var(--s-4);background-color:var(--gray-90);border:solid 1px var(--gray-80);border-radius:var(--border-radius);}",".checkout__body.jsx-2171864376{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:var(--s-4);height:100%;width:100%;}","@media (max-width:1100px){.checkout__body.jsx-2171864376{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}",".checkout__body.jsx-2171864376 i.jsx-2171864376{width:100%;line-height:1;color:var(--orange-50);padding:0;margin:0;}",".checkout-modal.jsx-2171864376{height:900px;padding:50px 0;width:100%;}"];r.__hash="2171864376";var o=i(6253),l=i(44983),u=i(11907),x=i(20226),d=i(6226),h=i(73184),f=[".d-flex.jsx-3989903357,.collect.jsx-3989903357{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".collect.jsx-3989903357{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;}",".collect__checkout-button.jsx-3989903357{width:100%;margin:10px 0 auto;padding-bottom:var(--s-7);}"];f.__hash="3989903357";var v=i(97346),j=i(97268),w=i(85153),_=i(85893),m=function(e){var t=e.user,i=e.cart_items,n=(0,a.useState)(),s=n[0],r=n[1];return t&&t.id?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(c(),{id:f.__hash,children:f}),(0,_.jsxs)("div",{className:"jsx-".concat(f.__hash)+" collect",children:[(0,_.jsx)("div",{className:"jsx-".concat(f.__hash)+" collect__checkout-button",children:s&&t&&i&&(0,_.jsx)(v.Z,{customer_id:t.id,cart_items:i,method_id:s.id,collect:!0})}),t&&(0,_.jsx)(j.Z,{open:!1,user:t,selected:s,onSuccess:function(e){console.log("[ FINALLY ]",e)},onSelect:r})]})]}):(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(w.Z,{})})},b=i(88315),k=i(27834),g=i(51633),p=function(){var e=(0,u.aF)(),t=(0,a.useState)(),i=t[0],s=t[1],f=(0,a.useState)(),v=f[0],j=f[1],w=(0,a.useState)(),p=w[0],y=w[1],S=(0,l.Z)().cart,N=(0,d.J)(),Z=function(e){var t=(null==e?void 0:e.id)&&e||N;["guest","created"].includes(null==e?void 0:e.status)?(I(),s("collect"),C(e)):((null==e?void 0:e.status)==="existing"||t)&&(y({email:e.email}),s("existing"))},O=(0,k.lm)(),E=(0,n.Z)(O,2),P=(E[0],E[1]),C=function(e){var t=e.status;t&&P({active:!0,persistence:3e3,list:[{name:"email ".concat(t,", sign in to continue")}]})},F={"sign-up":(0,_.jsx)(x.Z,{title:"Contact info",hasPassword:!1,btnText:"continue",onSuccess:Z}),existing:(0,_.jsx)(h.Z,{onSuccess:Z,title:"Account for ".concat(null==p?void 0:p.email,", exists. please sign in."),email:null==p?void 0:p.email}),collect:(0,_.jsx)(m,{user:p,cart_items:v})},I=function(){p||(e||N?(s("collect"),y(e||N)):s("sign-up"))},D=function(){v||j(S)};return(0,a.useEffect)(function(){I(),D()},[I,D]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(c(),{id:r.__hash,children:r}),(0,_.jsxs)("div",{id:"main-checkout",className:"jsx-".concat(r.__hash)+" checkout",children:[(0,_.jsxs)("div",{className:"jsx-".concat(r.__hash)+" checkout__title",children:["Secure Checkout ",(0,_.jsx)(o.a,{icon:"fa-lock"})]}),(0,_.jsxs)("div",{className:"jsx-".concat(r.__hash)+" checkout__button",children:["Step ","sign-up"===i?"1":"2"," of 2"]}),(0,_.jsxs)("div",{className:"jsx-".concat(r.__hash)+" checkout__body",children:[(0,_.jsx)("div",{className:"jsx-".concat(r.__hash)+" checkout__cart-list",children:(0,_.jsx)(b.Z,{adjustable:!1,variant:"mini"})}),(0,_.jsx)("div",{className:"jsx-".concat(r.__hash)+" checkout__view",children:(0,_.jsx)(g.Z,{views:F,currentView:i})})]})]})]})}},48834:function(e,t,i){"use strict";var n=i(59499),s=i(50029),c=i(64687),a=i.n(c),r=i(67294);function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function l(e){for(var t=1;t*.back-btn.jsx-437419458{display:none;}",".ui-view-layout__actions.jsx-437419458{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;gap:var(--s-9);}",".ui-view-layout__view.jsx-437419458{height:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);}",".ui-view-layout__view.jsx-437419458,.ui-view-layout__actions.jsx-437419458{width:100%;}",".ui-view-layout__header.jsx-437419458{width:var(--s-4-width);-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding:0 var(--s-4) var(--s-9);}","@media (max-width:1100px){.ui-view-layout__header.jsx-437419458{width:var(--s-9-width);padding:0 var(--s-9) var(--s-9);}}",".ui-view-layout__header-title.jsx-437419458{font-size:var(--s-1);--ui-icon-color:var(--primary-50);color:var(--primary-50);text-transform:capitalize;}",".current.jsx-437419458{position:absolute;top:calc(var(--s-4) * 0.5);color:var(--gray-30-o);right:var(--s-9);height:var(--s-6);line-height:1;}"];a.__hash="437419458";var r=i(85153),o=i(27812),l=function(e,t){var i=(0,c.useState)([]),n=i[0],s=i[1],a=(0,c.useState)(),r=a[0],l=a[1],u=function(t){var i=String(t);e&&e[i]&&(l(e[i]),s(function(e){return[].concat((0,o.Z)(e),[i])}))};return(0,c.useEffect)(function(){t&&null!=e&&e[t]&&n[n.length-1]!==t&&u(t)},[e,t]),{view:r,setView:u,last:n[n.length-1],goBack:function(){s(function(t){if(t.length>1){var i=t.slice(0,-1);return l(e[i[i.length-1]]),i}return t})}}},u=i(10577),x=i(85893),d=function(e){var t=e.views,i=e.currentView,n=(e.onChange,e.title),o=(e.actions,e.showTitle),d=e.backBtn;(0,c.useEffect)(function(){},[i]);var h=l(t,i),f=h.view,v=(h.setView,h.goBack),j=h.last;return t&&f&&"loading"!=i?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s(),{id:a.__hash,children:a}),(0,x.jsxs)("div",{className:"jsx-".concat(a.__hash)+" ui-view-layout",children:[!!(void 0!==d&&d&&"start"!==j)&&(0,x.jsx)("div",{className:"jsx-".concat(a.__hash)+" back-btn",children:(0,x.jsx)("div",{className:"jsx-".concat(a.__hash),children:(0,x.jsx)(u.Z,{traits:{beforeIcon:"fa-chevron-left"},variant:"flat",onClick:v,children:"Back"})})}),void 0!==o&&o&&"start"!==j&&(0,x.jsx)("div",{className:"jsx-".concat(a.__hash)+" ui-view-layout__header",children:(0,x.jsx)("div",{className:"jsx-".concat(a.__hash)+" ui-view-layout__header-title",children:n})}),(0,x.jsx)("div",{"data-view":i,className:"jsx-".concat(a.__hash)+" ui-view-layout__view",children:f||(0,x.jsx)("div",{className:"jsx-".concat(a.__hash),children:"View not found"})})]})]}):(0,x.jsx)(r.Z,{})}},62013:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout",function(){return i(92902)}])}},function(e){e.O(0,[5675,3796,559,7268,2888,9774,179],function(){return e(e.s=62013)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/dashboard-985bb274ab8022c4.js b/_next/static/chunks/pages/dashboard-a4980bcbd3d7d6df.js similarity index 63% rename from _next/static/chunks/pages/dashboard-985bb274ab8022c4.js rename to _next/static/chunks/pages/dashboard-a4980bcbd3d7d6df.js index 1e39fee0e..679510a5f 100644 --- a/_next/static/chunks/pages/dashboard-985bb274ab8022c4.js +++ b/_next/static/chunks/pages/dashboard-a4980bcbd3d7d6df.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8026],{31333:function(a,r,o){"use strict";o.r(r),o.d(r,{default:function(){return u}});var s=o(16835),d=o(21378),e=o.n(d),i=o(67294),t=[".d-flex.jsx-1300309986,.dashboard.jsx-1300309986 .dashboard__dashboard-item.jsx-1300309986{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".dashboard-item-look.jsx-1300309986,.dashboard.jsx-1300309986 .dashboard__dashboard-item.jsx-1300309986{cursor:pointer;color:var(--gray-30);--ui-icon-color:var(--gray-30);background-color:var(--gray-80);border:solid 1px var(--gray-100);border-radius:var(--border-radius);box-shadow:var(--box-shadow);--ui-icon-width:var(--s-element);--ui-icon-height:var(--s-element);font-size:var(--s-4);text-transform:capitalize;}",".dashboard-item-look--hover.jsx-1300309986,.dashboard.jsx-1300309986 .dashboard__dashboard-item.jsx-1300309986:hover{color:var(--gray-20);--ui-icon-color:var(--gray-20);background-color:var(--gray-70);border:solid 1px var(--gray-30);box-shadow:var(--box-shadow);}",".dashboard-item-look--focus.jsx-1300309986,.dashboard.jsx-1300309986 .dashboard__dashboard-item.jsx-1300309986:focus-within,.dashboard.jsx-1300309986 .dashboard__dashboard-item.jsx-1300309986:focus{color:var(--primary-50);--ui-icon-color:var(--primary-50);background-color:var(--gray-60);border:solid 1px var(--gray-40);box-shadow:var(--box-shadow);}",".dashboard.jsx-1300309986{margin:var(--s-element) 0;width:auto;}","@media (max-width:1100px){.dashboard.jsx-1300309986{margin:auto;width:var(--s-4-width);}}",".dashboard.jsx-1300309986 .dashboard__dashboard-item.jsx-1300309986{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;aspect-ratio:7/5;gap:var(--s-4);}"];t.__hash="1300309986";var n=o(55140),c=o(11163),l=o(85854),h=o(80789),b=o(85153),x=o(85893),u=function(a){var r=a.links,o=(0,c.useRouter)(),d=(0,h.RF)(["dashboard","account"]),u=(0,h.db)(),f=function(a){a.href&&o.push(a.href)};return((0,i.useEffect)(function(){},[f]),Array(d)||Array(d))?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(e(),{id:t.__hash,children:t}),(0,x.jsx)("div",{className:"jsx-".concat(t.__hash)+" dashboard",children:u&&(0,x.jsx)(l.Z,{xs:2,md:4,gap:10,children:Object.entries(r||u).map(function(a){var r=(0,s.Z)(a,2),o=r[0],d=r[1];return(0,x.jsxs)("div",{"data-testid":"dashboard-page-internal-link-".concat(d.label," "),onClick:function(){return(null==d?void 0:d.active)&&f(d)},className:"jsx-".concat(t.__hash)+" dashboard__dashboard-item",children:[(0,x.jsx)(n.a,{icon:d.altIcon?d.altIcon:d.icon})," ",null!=d&&d.altLabel?d.altLabel:d.label]},o)})})})]}):(0,x.jsx)(b.Z,{})}},26117:function(a,r,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard",function(){return o(31333)}])}},function(a){a.O(0,[2888,9774,179],function(){return a(a.s=26117)}),_N_E=a.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8026],{31333:function(a,r,o){"use strict";o.r(r),o.d(r,{default:function(){return u}});var s=o(16835),d=o(21378),e=o.n(d),i=o(67294),t=[".d-flex.jsx-1300309986,.dashboard.jsx-1300309986 .dashboard__dashboard-item.jsx-1300309986{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".dashboard-item-look.jsx-1300309986,.dashboard.jsx-1300309986 .dashboard__dashboard-item.jsx-1300309986{cursor:pointer;color:var(--gray-30);--ui-icon-color:var(--gray-30);background-color:var(--gray-80);border:solid 1px var(--gray-100);border-radius:var(--border-radius);box-shadow:var(--box-shadow);--ui-icon-width:var(--s-element);--ui-icon-height:var(--s-element);font-size:var(--s-4);text-transform:capitalize;}",".dashboard-item-look--hover.jsx-1300309986,.dashboard.jsx-1300309986 .dashboard__dashboard-item.jsx-1300309986:hover{color:var(--gray-20);--ui-icon-color:var(--gray-20);background-color:var(--gray-70);border:solid 1px var(--gray-30);box-shadow:var(--box-shadow);}",".dashboard-item-look--focus.jsx-1300309986,.dashboard.jsx-1300309986 .dashboard__dashboard-item.jsx-1300309986:focus-within,.dashboard.jsx-1300309986 .dashboard__dashboard-item.jsx-1300309986:focus{color:var(--primary-50);--ui-icon-color:var(--primary-50);background-color:var(--gray-60);border:solid 1px var(--gray-40);box-shadow:var(--box-shadow);}",".dashboard.jsx-1300309986{margin:var(--s-element) 0;width:auto;}","@media (max-width:1100px){.dashboard.jsx-1300309986{margin:auto;width:var(--s-4-width);}}",".dashboard.jsx-1300309986 .dashboard__dashboard-item.jsx-1300309986{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;aspect-ratio:7/5;gap:var(--s-4);}"];t.__hash="1300309986";var n=o(6253),c=o(11163),l=o(85854),h=o(80789),b=o(85153),x=o(85893),u=function(a){var r=a.links,o=(0,c.useRouter)(),d=(0,h.RF)(["dashboard","account"]),u=(0,h.db)(),f=function(a){a.href&&o.push(a.href)};return((0,i.useEffect)(function(){},[f]),Array(d)||Array(d))?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(e(),{id:t.__hash,children:t}),(0,x.jsx)("div",{className:"jsx-".concat(t.__hash)+" dashboard",children:u&&(0,x.jsx)(l.Z,{xs:2,md:4,gap:10,children:Object.entries(r||u).map(function(a){var r=(0,s.Z)(a,2),o=r[0],d=r[1];return(0,x.jsxs)("div",{"data-testid":"dashboard-page-internal-link-".concat(d.label," "),onClick:function(){return(null==d?void 0:d.active)&&f(d)},className:"jsx-".concat(t.__hash)+" dashboard__dashboard-item",children:[(0,x.jsx)(n.a,{icon:d.altIcon?d.altIcon:d.icon})," ",null!=d&&d.altLabel?d.altLabel:d.label]},o)})})})]}):(0,x.jsx)(b.Z,{})}},26117:function(a,r,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard",function(){return o(31333)}])}},function(a){a.O(0,[2888,9774,179],function(){return a(a.s=26117)}),_N_E=a.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/index-632b680a8502e442.js b/_next/static/chunks/pages/index-632b680a8502e442.js deleted file mode 100644 index f9aba5980..000000000 --- a/_next/static/chunks/pages/index-632b680a8502e442.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{46237:function(n,u,t){"use strict";t.r(u);var _=t(73392);u.default=_.default},73392:function(n,u,t){"use strict";t.r(u);var _=t(83923);u.default=_.Z},48312:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(46237)}])}},function(n){n.O(0,[2634,3737,5675,8884,4592,6005,3923,2888,9774,179],function(){return n(n.s=48312)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/index-ab6b3a0109bdc9e1.js b/_next/static/chunks/pages/index-ab6b3a0109bdc9e1.js new file mode 100644 index 000000000..9474e5200 --- /dev/null +++ b/_next/static/chunks/pages/index-ab6b3a0109bdc9e1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{46237:function(n,u,t){"use strict";t.r(u);var _=t(73392);u.default=_.default},73392:function(n,u,t){"use strict";t.r(u);var _=t(1);u.default=_.Z},48312:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(46237)}])}},function(n){n.O(0,[2634,5675,4592,6005,1,2888,9774,179],function(){return n(n.s=48312)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/index/[cid]-94e544e83e8b6eea.js b/_next/static/chunks/pages/index/[cid]-94e544e83e8b6eea.js new file mode 100644 index 000000000..3dd9804c1 --- /dev/null +++ b/_next/static/chunks/pages/index/[cid]-94e544e83e8b6eea.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7845],{67716:function(n,u,_){"use strict";_.r(u);var i=_(1);u.default=i.Z},65261:function(n,u,_){(window.__NEXT_P=window.__NEXT_P||[]).push(["/index/[cid]",function(){return _(67716)}])}},function(n){n.O(0,[2634,5675,4592,6005,1,2888,9774,179],function(){return n(n.s=65261)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/index/[cid]-ef4d679f498ddd5b.js b/_next/static/chunks/pages/index/[cid]-ef4d679f498ddd5b.js deleted file mode 100644 index d38b9476b..000000000 --- a/_next/static/chunks/pages/index/[cid]-ef4d679f498ddd5b.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7845],{67716:function(n,u,_){"use strict";_.r(u);var i=_(83923);u.default=i.Z},65261:function(n,u,_){(window.__NEXT_P=window.__NEXT_P||[]).push(["/index/[cid]",function(){return _(67716)}])}},function(n){n.O(0,[2634,3737,5675,8884,4592,6005,3923,2888,9774,179],function(){return n(n.s=65261)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/index/index/Index-a829b70a7009d473.js b/_next/static/chunks/pages/index/index/Index-a829b70a7009d473.js deleted file mode 100644 index e780ff8a1..000000000 --- a/_next/static/chunks/pages/index/index/Index-a829b70a7009d473.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5635],{73392:function(n,u,_){"use strict";_.r(u);var e=_(83923);u.default=e.Z},13601:function(n,u,_){(window.__NEXT_P=window.__NEXT_P||[]).push(["/index/Index",function(){return _(73392)}])}},function(n){n.O(0,[2634,3737,5675,8884,4592,6005,3923,2888,9774,179],function(){return n(n.s=13601)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/index/index/Index-bc8426a3ff56d6fd.js b/_next/static/chunks/pages/index/index/Index-bc8426a3ff56d6fd.js new file mode 100644 index 000000000..1b7cd0410 --- /dev/null +++ b/_next/static/chunks/pages/index/index/Index-bc8426a3ff56d6fd.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5635],{73392:function(n,u,_){"use strict";_.r(u);var e=_(1);u.default=e.Z},13601:function(n,u,_){(window.__NEXT_P=window.__NEXT_P||[]).push(["/index/Index",function(){return _(73392)}])}},function(n){n.O(0,[2634,5675,4592,6005,1,2888,9774,179],function(){return n(n.s=13601)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/profile-a2edc15c4fe6c656.js b/_next/static/chunks/pages/profile-a2edc15c4fe6c656.js new file mode 100644 index 000000000..46d07693d --- /dev/null +++ b/_next/static/chunks/pages/profile-a2edc15c4fe6c656.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[277],{42450:function(e,t,a){"use strict";a.d(t,{Z:function(){return v}});var n=a(59499),s=a(50029),r=a(21378),c=a.n(r),i=a(64687),o=a.n(i),l=a(67294),d=[".d-flex.jsx-1944248964,.contact-form.jsx-1944248964{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".contact-form.jsx-1944248964{width:100%;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".contact-form__title.jsx-1944248964{font-size:var(--s-1);color:var(--gray-40);margin:var(--s-4) 0;text-transform:capitalize;}",".contact-form--action.jsx-1944248964{--ui-icon-color:var(--gray-20);}",".contact-form__payment-form.jsx-1944248964{width:100%;}"];d.__hash="1944248964";var u=a(38903),x=a(47265),m=a(11907),f=a(98014),h=a(85893);function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}function _(e){for(var t=1;t=3&&String(r.name).toLowerCase().includes(y.toLowerCase()))||"full name incorrect":"no user");(0,i.useEffect)(function(){Object(u).length||X()},[x]);var B=function(e){var t=e.status,a=e.docs;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c(),{id:D.__hash,children:D}),(0,b.jsxs)("div",{className:"jsx-".concat(D.__hash)+" account-documents__status",children:[t," Documents",(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents__status--docs",children:(null==a?void 0:a.length)&&Object.entries(a).map(function(e){var t=(0,O.Z)(e,2),a=t[0],n=t[1];return(0,b.jsxs)("div",{className:"jsx-".concat(D.__hash)+" account-documents__status--docs--doc",children:[Number(a+1),". ",(0,b.jsx)(v.Z,{variant:"link",children:(0,C.R)(null==n?void 0:n.name)})]},a)})||(0,b.jsxs)("div",{className:"jsx-".concat(D.__hash)+" account-documents__status--docs--none",children:["NO documents are ",t]})})]})]})};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c(),{id:D.__hash,children:D}),(0,b.jsxs)("div",{ref:l,className:"jsx-".concat(D.__hash)+" account-documents",children:[(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents__header",children:(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents__header--title",children:(null==r?void 0:r.name)&&"".concat((0,C.R)(r.name),"'s Documents")})}),(null==u?void 0:u.length)&&(0,b.jsxs)(h.Z,{xs:1,md:2,variant:"card",gapX:10,margin:"var(--s-4) 0",children:[(0,b.jsx)(B,{status:"incomplete",docs:u,className:"jsx-".concat(D.__hash)}),(0,b.jsx)(B,{status:"complete",className:"jsx-".concat(D.__hash)})]})||null,(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents__list",children:(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents--document",children:null!=u&&u.length?u.map(function(e,t){return(0,b.jsx)("div",{className:"jsx-".concat(D.__hash),children:(0,b.jsx)(F.Z,{variant:"document",label:null==e?void 0:e.name,open:!0,children:(0,b.jsxs)("div",{ref:P,className:"jsx-".concat(D.__hash)+" account-documents__pdf",children:[(null==e?void 0:e.description)&&(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents__pdf__description",children:null==e?void 0:e.description}),(0,b.jsx)("ol",{className:"jsx-".concat(D.__hash)+" account-documents--document__terms",children:(null==e?void 0:e.metadata)&&Object.entries(null==e?void 0:e.metadata).filter(function(e){var t=(0,O.Z)(e,2),a=t[0];return t[1],"t-"===a.substring(0,2)}).map(function(e){var t=(0,O.Z)(e,2),a=t[0],n=t[1],s=String("".concat((0,C.Z)(null==a?void 0:a.split("_")[1])));return(0,b.jsxs)("li",{className:"jsx-".concat(D.__hash)+" account-documents--document__terms--term",children:[(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents--document__terms--term__title",children:(0,C.Z)((0,M.Z)(s))}),(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents--document__terms--term__body",children:n&&n||""})]},a)})}),(0,b.jsxs)("div",{className:"jsx-".concat(D.__hash)+" account-documents__actions",children:[(0,b.jsx)(R.Z,{variant:"signature".concat("string"!=typeof V?"":" invalid"),name:"name",value:y,label:'Sign, "'.concat(null==r?void 0:r.name,'". to agree to the terms & conditions'),placeholder:null==r?void 0:r.name,onChange:W,error:"string"==typeof V&&V||void 0}),(0,b.jsx)(v.Z,{variant:String(null==r?void 0:r.name).toLowerCase()==y.toLowerCase()?"primary":"disabled",onClick:function(){return H(e.id)},children:"Agree"})]})]})})},t)}):!j.active&&(0,b.jsx)(A,{})})})]})]})},U=[".d-flex.jsx-3777189004,.user-profile__card.jsx-3777189004,.user-profile__header.jsx-3777189004,.user-profile.jsx-3777189004{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".user-profile.jsx-3777189004{width:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);}",".user-profile__header.jsx-3777189004{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;width:inherit;}",".user-profile__body.jsx-3777189004{width:inherit;}",".user-profile__card.jsx-3777189004{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:var(--s-4);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:var(--s-4);background-color:var(--gray-90);border-radius:var(--border-radius);}",".user-profile.jsx-3777189004 h3.jsx-3777189004{margin-bottom:var(--s-9);}"];U.__hash="3777189004";var Y=a(35486),H=a(42450);function W(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}var X=function(e){var t,a=e.user;(0,S.ko)("IMemberService");var s=(0,i.useState)(!1),r=s[0],o=s[1],l=(t=(0,N.Z)(Z().mark(function e(t){return Z().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:!function(e){for(var t=1;t9&&h(function(e){return B(B({},e),{},{documents:(0,b.jsx)(G,{user:t,previewPdf:!1}),subscriptions:(0,b.jsx)(k,{user:t})})})},[a,t]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c(),{id:o.__hash,children:o}),a&&(0,b.jsx)(u.Z,{viewName:"profile",title:r,showMenu:"profile"===r,setViewCallback:function(e){return x(e)},views:f})]})}},84520:function(e,t,a){"use strict";a.d(t,{Z:function(){return x}});var n=a(16835),s=a(21378),r=a.n(s),c=a(67294),i=[".ui-pill.jsx-1002868648{width:-webkit-max-content;width:-moz-max-content;width:max-content;}",".ui-pill.ui-pill-responsive.jsx-1002868648{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}"];i.__hash="1002868648";var o=a(98067),l=a(80954),d=a.n(l),u=a(85893),x=function(e){var t=e.amount,a=e.setAmount,s=e.variant,l=e.traits,x=(0,c.useState)("0"),m=x[0],f=x[1],h=l;h||"number"!=typeof t||(h={beforeIcon:{icon:t>1?"fas-minus":"fa-trash-can",onClick:function(){return v("minus")},color:1==t?"red":""},afterIcon:{icon:"fas-plus",onClick:function(){return v("plus")}}}),l&&Object.entries(l).forEach(function(e){var t=(0,n.Z)(e,2),a=t[0],s=t[1];h[a]=s});var p=(0,c.useRef)(d()(function(e){isNaN(Number(e))||a(Number(e))},1500)).current,_=(0,c.useCallback)(function(e){f(e.target.value),p(e.target.value)},[p]),v=(0,c.useCallback)(function(e){"number"==typeof t&&a(t+("plus"===e?1:-1))},[t,a]);return(0,c.useEffect)(function(){t&&f(t.toString())},[t]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r(),{id:i.__hash,children:i}),(0,u.jsx)("div",{className:"jsx-".concat(i.__hash)+" "+"ui-pill ".concat(null!=l&&l.responsive?" ui-pill-responsive":""),children:(0,u.jsx)(o.Z,{name:"ui-pill",variant:s,traits:h,value:m,onChange:_})})]})}},99813:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile",function(){return a(18515)}])}},function(e){e.O(0,[7847,5443,3796,5196,1695,7268,2888,9774,179],function(){return e(e.s=99813)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/profile-f54362b59e2845cb.js b/_next/static/chunks/pages/profile-f54362b59e2845cb.js deleted file mode 100644 index d1023fde8..000000000 --- a/_next/static/chunks/pages/profile-f54362b59e2845cb.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[277],{42450:function(e,t,a){"use strict";a.d(t,{Z:function(){return v}});var n=a(59499),s=a(50029),r=a(21378),c=a.n(r),i=a(64687),o=a.n(i),l=a(67294),d=[".d-flex.jsx-1944248964,.contact-form.jsx-1944248964{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".contact-form.jsx-1944248964{width:100%;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}",".contact-form__title.jsx-1944248964{font-size:var(--s-1);color:var(--gray-40);margin:var(--s-4) 0;text-transform:capitalize;}",".contact-form--action.jsx-1944248964{--ui-icon-color:var(--gray-20);}",".contact-form__payment-form.jsx-1944248964{width:100%;}"];d.__hash="1944248964";var u=a(38903),x=a(47265),m=a(11907),f=a(98014),h=a(85893);function p(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}function _(e){for(var t=1;t=3&&String(r.name).toLowerCase().includes(y.toLowerCase()))||"full name incorrect":"no user");(0,i.useEffect)(function(){Object(u).length||X()},[x]);var B=function(e){var t=e.status,a=e.docs;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c(),{id:D.__hash,children:D}),(0,b.jsxs)("div",{className:"jsx-".concat(D.__hash)+" account-documents__status",children:[t," Documents",(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents__status--docs",children:(null==a?void 0:a.length)&&Object.entries(a).map(function(e){var t=(0,O.Z)(e,2),a=t[0],n=t[1];return(0,b.jsxs)("div",{className:"jsx-".concat(D.__hash)+" account-documents__status--docs--doc",children:[Number(a+1),". ",(0,b.jsx)(v.Z,{variant:"link",children:(0,C.R)(null==n?void 0:n.name)})]},a)})||(0,b.jsxs)("div",{className:"jsx-".concat(D.__hash)+" account-documents__status--docs--none",children:["NO documents are ",t]})})]})]})};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c(),{id:D.__hash,children:D}),(0,b.jsxs)("div",{ref:l,className:"jsx-".concat(D.__hash)+" account-documents",children:[(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents__header",children:(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents__header--title",children:(null==r?void 0:r.name)&&"".concat((0,C.R)(r.name),"'s Documents")})}),(null==u?void 0:u.length)&&(0,b.jsxs)(h.Z,{xs:1,md:2,variant:"card",gapX:10,margin:"var(--s-4) 0",children:[(0,b.jsx)(B,{status:"incomplete",docs:u,className:"jsx-".concat(D.__hash)}),(0,b.jsx)(B,{status:"complete",className:"jsx-".concat(D.__hash)})]})||null,(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents__list",children:(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents--document",children:null!=u&&u.length?u.map(function(e,t){return(0,b.jsx)("div",{className:"jsx-".concat(D.__hash),children:(0,b.jsx)(F.Z,{variant:"document",label:null==e?void 0:e.name,open:!0,children:(0,b.jsxs)("div",{ref:P,className:"jsx-".concat(D.__hash)+" account-documents__pdf",children:[(null==e?void 0:e.description)&&(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents__pdf__description",children:null==e?void 0:e.description}),(0,b.jsx)("ol",{className:"jsx-".concat(D.__hash)+" account-documents--document__terms",children:(null==e?void 0:e.metadata)&&Object.entries(null==e?void 0:e.metadata).filter(function(e){var t=(0,O.Z)(e,2),a=t[0];return t[1],"t-"===a.substring(0,2)}).map(function(e){var t=(0,O.Z)(e,2),a=t[0],n=t[1],s=String("".concat((0,C.Z)(null==a?void 0:a.split("_")[1])));return(0,b.jsxs)("li",{className:"jsx-".concat(D.__hash)+" account-documents--document__terms--term",children:[(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents--document__terms--term__title",children:(0,C.Z)((0,M.Z)(s))}),(0,b.jsx)("div",{className:"jsx-".concat(D.__hash)+" account-documents--document__terms--term__body",children:n&&n||""})]},a)})}),(0,b.jsxs)("div",{className:"jsx-".concat(D.__hash)+" account-documents__actions",children:[(0,b.jsx)(R.Z,{variant:"signature".concat("string"!=typeof V?"":" invalid"),name:"name",value:y,label:'Sign, "'.concat(null==r?void 0:r.name,'". to agree to the terms & conditions'),placeholder:null==r?void 0:r.name,onChange:W,error:"string"==typeof V&&V||void 0}),(0,b.jsx)(v.Z,{variant:String(null==r?void 0:r.name).toLowerCase()==y.toLowerCase()?"primary":"disabled",onClick:function(){return H(e.id)},children:"Agree"})]})]})})},t)}):!j.active&&(0,b.jsx)(A,{})})})]})]})},U=[".d-flex.jsx-3777189004,.user-profile__card.jsx-3777189004,.user-profile__header.jsx-3777189004,.user-profile.jsx-3777189004{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".user-profile.jsx-3777189004{width:100%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--s-4);}",".user-profile__header.jsx-3777189004{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;width:inherit;}",".user-profile__body.jsx-3777189004{width:inherit;}",".user-profile__card.jsx-3777189004{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:var(--s-4);-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:var(--s-4);background-color:var(--gray-90);border-radius:var(--border-radius);}",".user-profile.jsx-3777189004 h3.jsx-3777189004{margin-bottom:var(--s-9);}"];U.__hash="3777189004";var Y=a(35486),H=a(42450);function W(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}var X=function(e){var t,a=e.user;(0,S.ko)("IMemberService");var s=(0,i.useState)(!1),r=s[0],o=s[1],l=(t=(0,N.Z)(Z().mark(function e(t){return Z().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:!function(e){for(var t=1;t9&&h(function(e){return B(B({},e),{},{documents:(0,b.jsx)(G,{user:t,previewPdf:!1}),subscriptions:(0,b.jsx)(k,{user:t})})})},[a,t]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c(),{id:o.__hash,children:o}),a&&(0,b.jsx)(u.Z,{viewName:"profile",title:r,showMenu:"profile"===r,setViewCallback:function(e){return x(e)},views:f})]})}},84520:function(e,t,a){"use strict";a.d(t,{Z:function(){return x}});var n=a(16835),s=a(21378),r=a.n(s),c=a(67294),i=[".ui-pill.jsx-1002868648{width:-webkit-max-content;width:-moz-max-content;width:max-content;}",".ui-pill.ui-pill-responsive.jsx-1002868648{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}"];i.__hash="1002868648";var o=a(98067),l=a(80954),d=a.n(l),u=a(85893),x=function(e){var t=e.amount,a=e.setAmount,s=e.variant,l=e.traits,x=(0,c.useState)("0"),m=x[0],f=x[1],h=l;h||"number"!=typeof t||(h={beforeIcon:{icon:t>1?"fas-minus":"fa-trash-can",onClick:function(){return v("minus")},color:1==t?"red":""},afterIcon:{icon:"fas-plus",onClick:function(){return v("plus")}}}),l&&Object.entries(l).forEach(function(e){var t=(0,n.Z)(e,2),a=t[0],s=t[1];h[a]=s});var p=(0,c.useRef)(d()(function(e){isNaN(Number(e))||a(Number(e))},1500)).current,_=(0,c.useCallback)(function(e){f(e.target.value),p(e.target.value)},[p]),v=(0,c.useCallback)(function(e){"number"==typeof t&&a(t+("plus"===e?1:-1))},[t,a]);return(0,c.useEffect)(function(){t&&f(t.toString())},[t]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r(),{id:i.__hash,children:i}),(0,u.jsx)("div",{className:"jsx-".concat(i.__hash)+" "+"ui-pill ".concat(null!=l&&l.responsive?" ui-pill-responsive":""),children:(0,u.jsx)(o.Z,{name:"ui-pill",variant:s,traits:h,value:m,onChange:_})})]})}},99813:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile",function(){return a(18515)}])}},function(e){e.O(0,[7847,5443,3796,5196,1695,7268,2888,9774,179],function(){return e(e.s=99813)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/services/Index-11f921f72e81a895.js b/_next/static/chunks/pages/services/Index-11f921f72e81a895.js new file mode 100644 index 000000000..d73bb83f1 --- /dev/null +++ b/_next/static/chunks/pages/services/Index-11f921f72e81a895.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1946],{89921:function(n,u,_){"use strict";_.r(u);var e=_(1);u.default=e.Z},70335:function(n,u,_){(window.__NEXT_P=window.__NEXT_P||[]).push(["/services/Index",function(){return _(89921)}])}},function(n){n.O(0,[2634,5675,4592,6005,1,2888,9774,179],function(){return n(n.s=70335)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/services/Index-70da262f161b9900.js b/_next/static/chunks/pages/services/Index-70da262f161b9900.js deleted file mode 100644 index bf484a8dc..000000000 --- a/_next/static/chunks/pages/services/Index-70da262f161b9900.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1946],{89921:function(n,u,_){"use strict";_.r(u);var e=_(83923);u.default=e.Z},70335:function(n,u,_){(window.__NEXT_P=window.__NEXT_P||[]).push(["/services/Index",function(){return _(89921)}])}},function(n){n.O(0,[2634,3737,5675,8884,4592,6005,3923,2888,9774,179],function(){return n(n.s=70335)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/services/[cid]-9859ce522c39478e.js b/_next/static/chunks/pages/services/[cid]-9859ce522c39478e.js deleted file mode 100644 index 959f60bd8..000000000 --- a/_next/static/chunks/pages/services/[cid]-9859ce522c39478e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7390],{64021:function(n,u,_){"use strict";_.r(u);var c=_(83923);u.default=c.Z},84638:function(n,u,_){(window.__NEXT_P=window.__NEXT_P||[]).push(["/services/[cid]",function(){return _(64021)}])}},function(n){n.O(0,[2634,3737,5675,8884,4592,6005,3923,2888,9774,179],function(){return n(n.s=84638)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/services/[cid]-fe36a8067e6f56b0.js b/_next/static/chunks/pages/services/[cid]-fe36a8067e6f56b0.js new file mode 100644 index 000000000..51b8ffad2 --- /dev/null +++ b/_next/static/chunks/pages/services/[cid]-fe36a8067e6f56b0.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7390],{64021:function(n,u,_){"use strict";_.r(u);var c=_(1);u.default=c.Z},84638:function(n,u,_){(window.__NEXT_P=window.__NEXT_P||[]).push(["/services/[cid]",function(){return _(64021)}])}},function(n){n.O(0,[2634,5675,4592,6005,1,2888,9774,179],function(){return n(n.s=84638)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/webpack-392f68a94e5472e8.js b/_next/static/chunks/webpack-392f68a94e5472e8.js deleted file mode 100644 index baf3df8c8..000000000 --- a/_next/static/chunks/webpack-392f68a94e5472e8.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},l={};function d(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,loaded:!1,exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,d),r=!1}finally{r&&delete l[e]}return n.loaded=!0,n.exports}d.m=a,e=[],d.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(d.O).every(function(e){return d.O[e](n[f])})?n.splice(f--,1):(c=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(l.O).every(function(e){return l.O[e](n[f])})?n.splice(f--,1):(c=!1,oDeepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.337Z ) \ No newline at end of file +Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.559Z ) \ No newline at end of file diff --git a/admin.html b/admin.html index 9b099f816..1243b9978 100644 --- a/admin.html +++ b/admin.html @@ -1 +1 @@ -Deepturn
not authorized
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.219Z ) \ No newline at end of file +Deepturn
not authorized
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.433Z ) \ No newline at end of file diff --git a/admin/[slug].html b/admin/[slug].html index 7b3479009..e9fd3c4f3 100644 --- a/admin/[slug].html +++ b/admin/[slug].html @@ -1 +1 @@ -Deepturn
not authorized
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.200Z ) \ No newline at end of file +Deepturn
not authorized
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.429Z ) \ No newline at end of file diff --git a/authentication.html b/authentication.html index 4ca9d4db5..1b66caaa7 100644 --- a/authentication.html +++ b/authentication.html @@ -1 +1 @@ -Deepturn
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.212Z ) \ No newline at end of file +Deepturn
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.433Z ) \ No newline at end of file diff --git a/authentication/[function].html b/authentication/[function].html index 36d9bbe40..aa748f9bf 100644 --- a/authentication/[function].html +++ b/authentication/[function].html @@ -1 +1 @@ -Deepturn
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.205Z ) \ No newline at end of file +Deepturn
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.432Z ) \ No newline at end of file diff --git a/cart.html b/cart.html index 7585fa14f..420c86b5f 100644 --- a/cart.html +++ b/cart.html @@ -1 +1 @@ -Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.208Z ) \ No newline at end of file +Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.449Z ) \ No newline at end of file diff --git a/cart/[ref].html b/cart/[ref].html index 6f1970182..b0183a271 100644 --- a/cart/[ref].html +++ b/cart/[ref].html @@ -1 +1 @@ -Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.208Z ) \ No newline at end of file +Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.418Z ) \ No newline at end of file diff --git a/checkout.html b/checkout.html index 15e73dcdb..36d19da25 100644 --- a/checkout.html +++ b/checkout.html @@ -1 +1 @@ -Deepturn
Secure Checkout
Step 2 of 2
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.231Z ) \ No newline at end of file +Deepturn
Secure Checkout
Step 2 of 2
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.440Z ) \ No newline at end of file diff --git a/configure.html b/configure.html index cfececa57..cdc1dd8d9 100644 --- a/configure.html +++ b/configure.html @@ -1 +1 @@ -Deepturn
No ID FOR PRODUCT REQUEST
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.221Z ) \ No newline at end of file +Deepturn
No ID FOR PRODUCT REQUEST
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.426Z ) \ No newline at end of file diff --git a/dashboard.html b/dashboard.html index 4e42ded9a..80c3fb885 100644 --- a/dashboard.html +++ b/dashboard.html @@ -1 +1 @@ -Deepturn
login
about
products
deepturn
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.199Z ) \ No newline at end of file +Deepturn
login
about
products
deepturn
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.467Z ) \ No newline at end of file diff --git a/home.html b/home.html index 0a7e994f5..1921dd615 100644 --- a/home.html +++ b/home.html @@ -1 +1 @@ -Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.205Z ) \ No newline at end of file +Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.421Z ) \ No newline at end of file diff --git a/home/[vid].html b/home/[vid].html index 66b3eb7da..57ed8966e 100644 --- a/home/[vid].html +++ b/home/[vid].html @@ -1 +1 @@ -Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.225Z ) \ No newline at end of file +Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.417Z ) \ No newline at end of file diff --git a/index.html b/index.html index 873462367..0dae9d4c3 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.243Z ) \ No newline at end of file +Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.485Z ) \ No newline at end of file diff --git a/index/[cid].html b/index/[cid].html index 4b29fb9c3..fe536f606 100644 --- a/index/[cid].html +++ b/index/[cid].html @@ -1 +1 @@ -Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.439Z ) \ No newline at end of file +Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.465Z ) \ No newline at end of file diff --git a/index/index/Index.html b/index/index/Index.html index 025421fae..a1f8207c1 100644 --- a/index/index/Index.html +++ b/index/index/Index.html @@ -1 +1 @@ -Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.453Z ) \ No newline at end of file +Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.470Z ) \ No newline at end of file diff --git a/product.html b/product.html index be2925b52..d506032d5 100644 --- a/product.html +++ b/product.html @@ -1 +1 @@ -Deepturn

Products

loading...
loading
loading...
loading
loading...
loading
loading...
loading
loading...
loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.204Z ) \ No newline at end of file +Deepturn

Products

loading...
loading
loading...
loading
loading...
loading
loading...
loading
loading...
loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.418Z ) \ No newline at end of file diff --git a/product/[id].html b/product/[id].html index 64d8bacff..3cf9f0d8e 100644 --- a/product/[id].html +++ b/product/[id].html @@ -1 +1 @@ -Deepturn

Products

loading...
loading
loading...
loading
loading...
loading
loading...
loading
loading...
loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.213Z ) \ No newline at end of file +Deepturn

Products

loading...
loading
loading...
loading
loading...
loading
loading...
loading
loading...
loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.457Z ) \ No newline at end of file diff --git a/profile.html b/profile.html index 69d4bcd7b..4b58663d4 100644 --- a/profile.html +++ b/profile.html @@ -1 +1 @@ -Deepturn
0
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.232Z ) \ No newline at end of file +Deepturn
0
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.489Z ) \ No newline at end of file diff --git a/services/Index.html b/services/Index.html index 09197308e..2474a3963 100644 --- a/services/Index.html +++ b/services/Index.html @@ -1 +1 @@ -Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.457Z ) \ No newline at end of file +Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.518Z ) \ No newline at end of file diff --git a/services/[cid].html b/services/[cid].html index 8586e81e1..cf82d96f9 100644 --- a/services/[cid].html +++ b/services/[cid].html @@ -1 +1 @@ -Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.253Z ) \ No newline at end of file +Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.494Z ) \ No newline at end of file diff --git a/social.html b/social.html index 9f0cbddd7..b817b9fea 100644 --- a/social.html +++ b/social.html @@ -1 +1 @@ -Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.248Z ) \ No newline at end of file +Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.427Z ) \ No newline at end of file diff --git a/social/[platform].html b/social/[platform].html index a1e4e41a2..3fbed65bb 100644 --- a/social/[platform].html +++ b/social/[platform].html @@ -1 +1 @@ -Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.220Z ) \ No newline at end of file +Deepturn
Loading
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.422Z ) \ No newline at end of file diff --git a/transaction.html b/transaction.html index c526d3ba4..1648796a4 100644 --- a/transaction.html +++ b/transaction.html @@ -1 +1 @@ -Deepturn
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.209Z ) \ No newline at end of file +Deepturn
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.423Z ) \ No newline at end of file diff --git a/transaction/[slug].html b/transaction/[slug].html index a08205652..b033f0f72 100644 --- a/transaction/[slug].html +++ b/transaction/[slug].html @@ -1 +1 @@ -Deepturn
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.200Z ) \ No newline at end of file +Deepturn
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.427Z ) \ No newline at end of file diff --git a/verify.html b/verify.html index 58d9d8b97..59f1191f9 100644 --- a/verify.html +++ b/verify.html @@ -1 +1 @@ -Deepturn
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.194Z ) \ No newline at end of file +Deepturn
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.434Z ) \ No newline at end of file diff --git a/verify/[slug].html b/verify/[slug].html index 7074e4916..b630297e1 100644 --- a/verify/[slug].html +++ b/verify/[slug].html @@ -1 +1 @@ -Deepturn
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T04:06:11.204Z ) \ No newline at end of file +Deepturn
☠☠☠☠☠☠☠☠☠☠☠☠☠ Property of MindBurner Corporation © ☠☠☠☠☠☠☠☠☠☠☠☠☠ ☠☠☠☠☠☠☠☠☠☠☠☠☠ Unauthorized use is prohibited ☠☠☠☠☠☠☠☠☠☠☠☠☠BUILD DATE: ( 2024-06-20T22:22:10.413Z ) \ No newline at end of file