diff --git a/404.html b/404.html new file mode 100644 index 0000000..c55583b --- /dev/null +++ b/404.html @@ -0,0 +1,20 @@ + + + + + + + + Log-Lottery + + + + + + + +
+ + + + \ No newline at end of file diff --git a/css/chunk-2370e353.css b/css/chunk-2370e353.css new file mode 100644 index 0000000..565d3d6 --- /dev/null +++ b/css/chunk-2370e353.css @@ -0,0 +1 @@ +:root,[data-theme]{background-color:var(--fallback-b1,oklch(var(--b1)/1));color:var(--fallback-bc,oklch(var(--bc)/1))}@supports not (color: oklch(0 0 0)){:root{color-scheme:light;--fallback-p: #491eff;--fallback-pc: #d4dbff;--fallback-s: #ff41c7;--fallback-sc: #fff9fc;--fallback-a: #00cfbd;--fallback-ac: #00100d;--fallback-n: #2b3440;--fallback-nc: #d7dde4;--fallback-b1: #ffffff;--fallback-b2: #e5e6e6;--fallback-b3: #e5e6e6;--fallback-bc: #1f2937;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--fallback-p: #7582ff;--fallback-pc: #050617;--fallback-s: #ff71cf;--fallback-sc: #190211;--fallback-a: #00c7b5;--fallback-ac: #000e0c;--fallback-n: #2a323c;--fallback-nc: #a6adbb;--fallback-b1: #1d232a;--fallback-b2: #191e24;--fallback-b3: #15191e;--fallback-bc: #a6adbb;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}}}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--in: .7206 .191 231.6;--su: .7441 .213 164.75;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .89824 .06192 275.75;--ac: .15352 .0368 183.61;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .4912 .3096 275.75;--s: .6971 .329 342.55;--sc: .9871 .0106 342.55;--a: .7676 .184 183.61;--n: .321785 .02476 255.701624;--nc: .894994 .011585 252.096176;--b1: 1 0 0;--b2: .961151 0 0;--b3: .924169 .00108 197.137559;--bc: .278078 .029596 256.847952}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--in: .7206 .191 231.6;--su: .7441 .213 164.75;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .13138 .0392 275.75;--sc: .1496 .052 342.55;--ac: .14902 .0334 183.61;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .6569 .196 275.75;--s: .748 .26 342.55;--a: .7451 .167 183.61;--n: .313815 .021108 254.139175;--nc: .746477 .0216 264.435964;--b1: .253267 .015896 252.417568;--b2: .232607 .013807 253.100675;--b3: .211484 .01165 254.087939;--bc: .746477 .0216 264.435964}}[data-theme=light],:root:has(input.theme-controller[value=light]:checked){color-scheme:light;--in: .7206 .191 231.6;--su: .7441 .213 164.75;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .89824 .06192 275.75;--ac: .15352 .0368 183.61;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .4912 .3096 275.75;--s: .6971 .329 342.55;--sc: .9871 .0106 342.55;--a: .7676 .184 183.61;--n: .321785 .02476 255.701624;--nc: .894994 .011585 252.096176;--b1: 1 0 0;--b2: .961151 0 0;--b3: .924169 .00108 197.137559;--bc: .278078 .029596 256.847952}[data-theme=dark],:root:has(input.theme-controller[value=dark]:checked){color-scheme:dark;--in: .7206 .191 231.6;--su: .7441 .213 164.75;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .13138 .0392 275.75;--sc: .1496 .052 342.55;--ac: .14902 .0334 183.61;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .6569 .196 275.75;--s: .748 .26 342.55;--a: .7451 .167 183.61;--n: .313815 .021108 254.139175;--nc: .746477 .0216 264.435964;--b1: .253267 .015896 252.417568;--b2: .232607 .013807 253.100675;--b3: .211484 .01165 254.087939;--bc: .746477 .0216 264.435964}[data-theme=cupcake],:root:has(input.theme-controller[value=cupcake]:checked){color-scheme:light;--in: .7206 .191 231.6;--su: .7441 .213 164.75;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .152344 .017892 200.026556;--sc: .15787 .020249 356.29965;--ac: .158762 .029206 78.618794;--nc: .847148 .013247 313.189598;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--p: .76172 .089459 200.026556;--s: .789351 .101246 356.29965;--a: .793811 .146032 78.618794;--n: .235742 .066235 313.189598;--b1: .977882 .00418 56.375637;--b2: .939822 .007638 61.449292;--b3: .915861 .006811 53.440502;--bc: .235742 .066235 313.189598;--rounded-btn: 1.9rem;--tab-border: 2px;--tab-radius: .7rem}[data-theme=bumblebee],:root:has(input.theme-controller[value=bumblebee]:checked){color-scheme:light;--b2: .93 0 0;--b3: .86 0 0;--in: .7206 .191 231.6;--su: .7441 .213 164.75;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--bc: .2 0 0;--ac: .16254 .0314 56.52;--nc: .8255 .015 281.99;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .8951 .2132 96.61;--pc: .3892 .046 96.61;--s: .8039 .194 70.76;--sc: .3938 .068 70.76;--a: .8127 .157 56.52;--n: .1275 .075 281.99;--b1: 1 0 0}[data-theme=emerald],:root:has(input.theme-controller[value=emerald]:checked){color-scheme:light;--b2: .93 0 0;--b3: .86 0 0;--in: .7206 .191 231.6;--su: .7441 .213 164.75;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .766626 .135433 153.450024;--pc: .333872 .040618 162.240129;--s: .613028 .202368 261.294233;--sc: 1 0 0;--a: .727725 .149783 33.200363;--ac: 0 0 0;--n: .355192 .032071 262.988584;--nc: .984625 .001706 247.838921;--b1: 1 0 0;--bc: .355192 .032071 262.988584;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=corporate],:root:has(input.theme-controller[value=corporate]:checked){color-scheme:light;--b2: .93 0 0;--b3: .86 0 0;--in: .7206 .191 231.6;--su: .7441 .213 164.75;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .12078 .0456 269.1;--sc: .130739 .010951 256.688055;--ac: .153934 .022799 163.57888;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--border-btn: 1px;--tab-border: 1px;--p: .6039 .228 269.1;--s: .653694 .054756 256.688055;--a: .769669 .113994 163.57888;--n: .223899 .031305 278.07229;--nc: .958796 .008588 247.915135;--b1: 1 0 0;--bc: .223899 .031305 278.07229;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--tab-radius: .25rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=synthwave],:root:has(input.theme-controller[value=synthwave]:checked){color-scheme:dark;--b2: .202941 .076211 287.835609;--b3: .187665 .070475 287.835609;--pc: .144421 .031903 342.009383;--sc: .156543 .02362 227.382405;--ac: .17608 .0412 93.72;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .722105 .159514 342.009383;--s: .782714 .118101 227.382405;--a: .8804 .206 93.72;--n: .255554 .103537 286.507967;--nc: .979365 .00819 301.358346;--b1: .218216 .081948 287.835609;--bc: .979365 .00819 301.358346;--in: .765197 .12273 231.831603;--inc: .235017 .096418 290.329844;--su: .860572 .115038 178.624677;--suc: .235017 .096418 290.329844;--wa: .85531 .122117 93.722227;--wac: .235017 .096418 290.329844;--er: .737005 .121339 32.639257;--erc: .235017 .096418 290.329844}[data-theme=retro],:root:has(input.theme-controller[value=retro]:checked){color-scheme:light;--inc: .90923 .043042 262.880917;--suc: .12541 .033982 149.213788;--wac: .133168 .031484 58.31834;--erc: .13144 .0398 27.33;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: .768664 .104092 22.664655;--pc: .265104 .006243 .522862;--s: .807415 .052534 159.094608;--sc: .265104 .006243 .522862;--a: .703919 .125455 52.953428;--ac: .265104 .006243 .522862;--n: .284181 .009519 355.534017;--nc: .925604 .025113 89.217311;--b1: .916374 .034554 90.51575;--b2: .882722 .049418 91.774344;--b3: .84133 .065952 90.856665;--bc: .265104 .006243 .522862;--in: .54615 .215208 262.880917;--su: .627052 .169912 149.213788;--wa: .66584 .157422 58.31834;--er: .6572 .199 27.33;--rounded-box: .4rem;--rounded-btn: .4rem;--rounded-badge: .4rem;--tab-radius: .4rem}[data-theme=cyberpunk],:root:has(input.theme-controller[value=cyberpunk]:checked){color-scheme:light;--b2: .878943 .16647 104.32;--b3: .812786 .15394 104.32;--in: .7206 .191 231.6;--su: .7441 .213 164.75;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--bc: .18902 .0358 104.32;--pc: .14844 .0418 6.35;--sc: .16666 .0368 204.72;--ac: .14372 .04352 310.43;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;--p: .7422 .209 6.35;--s: .8333 .184 204.72;--a: .7186 .2176 310.43;--n: .2304 .065 269.31;--nc: .9451 .179 104.32;--b1: .9451 .179 104.32;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--tab-radius: 0}[data-theme=valentine],:root:has(input.theme-controller[value=valentine]:checked){color-scheme:light;--b2: .880567 .024834 337.06289;--b3: .814288 .022964 337.06289;--pc: .137239 .030755 15.066527;--sc: .143942 .029258 293.189609;--ac: .142537 .014961 197.828857;--inc: .90923 .043042 262.880917;--suc: .12541 .033982 149.213788;--wac: .133168 .031484 58.31834;--erc: .14614 .0414 27.33;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: .686197 .153774 15.066527;--s: .71971 .14629 293.189609;--a: .712685 .074804 197.828857;--n: .546053 .143342 358.004839;--nc: .902701 .037202 336.955191;--b1: .946846 .026703 337.06289;--bc: .373085 .081131 4.606426;--in: .54615 .215208 262.880917;--su: .627052 .169912 149.213788;--wa: .66584 .157422 58.31834;--er: .7307 .207 27.33;--rounded-btn: 1.9rem;--tab-radius: .7rem}[data-theme=halloween],:root:has(input.theme-controller[value=halloween]:checked){color-scheme:dark;--b2: .230416 0 0;--b3: .213072 0 0;--bc: .849552 0 0;--sc: .89196 .0496 305.03;--nc: .848742 .009322 65.681484;--inc: .90923 .043042 262.880917;--suc: .12541 .033982 149.213788;--wac: .133168 .031484 58.31834;--erc: .13144 .0398 27.33;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .7748 .204 60.62;--pc: .196935 .004671 196.779412;--s: .4598 .248 305.03;--a: .648 .223 136.073479;--ac: 0 0 0;--n: .24371 .046608 65.681484;--b1: .247759 0 0;--in: .54615 .215208 262.880917;--su: .627052 .169912 149.213788;--wa: .66584 .157422 58.31834;--er: .6572 .199 27.33}[data-theme=garden],:root:has(input.theme-controller[value=garden]:checked){color-scheme:light;--b2: .864453 .002011 17.197414;--b3: .799386 .00186 17.197414;--in: .7206 .191 231.6;--su: .7441 .213 164.75;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--sc: .89699 .022197 355.095988;--ac: .112547 .010859 154.390187;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .6245 .278 3.83636;--pc: 1 0 0;--s: .484952 .110985 355.095988;--a: .562735 .054297 154.390187;--n: .241559 .049362 89.070594;--nc: .929519 .002163 17.197414;--b1: .929519 .002163 17.197414;--bc: .169617 .001664 17.32068}[data-theme=forest],:root:has(input.theme-controller[value=forest]:checked){color-scheme:dark;--b2: .17522 .007709 17.911578;--b3: .162032 .007129 17.911578;--in: .7206 .191 231.6;--su: .7441 .213 164.75;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--bc: .837682 .001658 17.911578;--sc: .139553 .027077 168.327128;--ac: .141257 .02389 185.713193;--nc: .861397 .007806 171.364646;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .686283 .185567 148.958922;--pc: 0 0 0;--s: .697764 .135385 168.327128;--a: .706285 .119451 185.713193;--n: .306985 .039032 171.364646;--b1: .188409 .00829 17.911578;--rounded-btn: 1.9rem}[data-theme=aqua],:root:has(input.theme-controller[value=aqua]:checked){color-scheme:dark;--b2: .453464 .118611 261.181672;--b3: .419333 .109683 261.181672;--bc: .897519 .025508 261.181672;--sc: .121365 .02175 309.782946;--ac: .186854 .020445 94.555431;--nc: .122124 .023402 243.760661;--inc: .90923 .043042 262.880917;--suc: .12541 .033982 149.213788;--wac: .133168 .031484 58.31834;--erc: .1479 .038 27.33;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .856617 .14498 198.6458;--pc: .401249 .068266 197.603872;--s: .606827 .108752 309.782946;--a: .934269 .102225 94.555431;--n: .610622 .117009 243.760661;--b1: .487596 .127539 261.181672;--in: .54615 .215208 262.880917;--su: .627052 .169912 149.213788;--wa: .66584 .157422 58.31834;--er: .7395 .19 27.33}[data-theme=lofi],:root:has(input.theme-controller[value=lofi]:checked){color-scheme:light;--inc: .15908 .0206 205.9;--suc: .18026 .0306 164.14;--wac: .17674 .027 79.94;--erc: .15732 .03 28.47;--border-btn: 1px;--tab-border: 1px;--p: .159066 0 0;--pc: 1 0 0;--s: .21455 .001566 17.278957;--sc: 1 0 0;--a: .268618 0 0;--ac: 1 0 0;--n: 0 0 0;--nc: 1 0 0;--b1: 1 0 0;--b2: .961151 0 0;--b3: .92268 .001082 17.17934;--bc: 0 0 0;--in: .7954 .103 205.9;--su: .9013 .153 164.14;--wa: .8837 .135 79.94;--er: .7866 .15 28.47;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--tab-radius: .125rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=pastel],:root:has(input.theme-controller[value=pastel]:checked){color-scheme:light;--in: .7206 .191 231.6;--su: .7441 .213 164.75;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--bc: .2 0 0;--pc: .166166 .006979 316.8737;--sc: .176153 .009839 8.688364;--ac: .178419 .012056 170.923263;--nc: .142681 .014702 228.183906;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: .830828 .034896 316.8737;--s: .880763 .049197 8.688364;--a: .892096 .06028 170.923263;--n: .713406 .07351 228.183906;--b1: 1 0 0;--b2: .984625 .001706 247.838921;--b3: .871681 .009339 258.338227;--rounded-btn: 1.9rem;--tab-radius: .7rem}[data-theme=fantasy],:root:has(input.theme-controller[value=fantasy]:checked){color-scheme:light;--b2: .93 0 0;--b3: .86 0 0;--in: .7206 .191 231.6;--su: .7441 .213 164.75;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .8749 .0378 325.02;--sc: .90784 .0324 241.36;--ac: .15196 .0408 56.72;--nc: .855616 .005919 256.847952;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .3745 .189 325.02;--s: .5392 .162 241.36;--a: .7598 .204 56.72;--n: .278078 .029596 256.847952;--b1: 1 0 0;--bc: .278078 .029596 256.847952}[data-theme=wireframe],:root:has(input.theme-controller[value=wireframe]:checked){color-scheme:light;--bc: .2 0 0;--pc: .156521 0 0;--sc: .156521 0 0;--ac: .156521 0 0;--nc: .188014 0 0;--inc: .890403 .062643 264.052021;--suc: .90395 .035372 142.495339;--wac: .141626 .019994 108.702381;--erc: .125591 .051537 29.233885;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:Chalkboard,comic sans ms,"sans-serif";--p: .782604 0 0;--s: .782604 0 0;--a: .782604 0 0;--n: .94007 0 0;--b1: 1 0 0;--b2: .949119 0 0;--b3: .897547 0 0;--in: .452014 .313214 264.052021;--su: .519752 .176858 142.495339;--wa: .708131 .099969 108.702381;--er: .627955 .257683 29.233885;--rounded-box: .2rem;--rounded-btn: .2rem;--rounded-badge: .2rem;--tab-radius: .2rem}[data-theme=black],:root:has(input.theme-controller[value=black]:checked){color-scheme:dark;--pc: .86736 0 0;--sc: .86736 0 0;--ac: .86736 0 0;--nc: .86736 0 0;--inc: .890403 .062643 264.052021;--suc: .90395 .035372 142.495339;--wac: .193597 .042201 109.769232;--erc: .125591 .051537 29.233885;--border-btn: 1px;--tab-border: 1px;--p: .336799 0 0;--s: .336799 0 0;--a: .336799 0 0;--b1: 0 0 0;--b2: .191251 0 0;--b3: .268618 0 0;--bc: .876096 0 0;--n: .336799 0 0;--in: .452014 .313214 264.052021;--su: .519752 .176858 142.495339;--wa: .967983 .211006 109.769232;--er: .627955 .257683 29.233885;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=luxury],:root:has(input.theme-controller[value=luxury]:checked){color-scheme:dark;--pc: .2 0 0;--sc: .855163 .012821 261.069149;--ac: .873349 .010348 338.82597;--inc: .158122 .024356 237.133883;--suc: .156239 .038579 132.154381;--wac: .172255 .027305 102.89115;--erc: .143506 .035271 22.568916;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 1 0 0;--s: .275815 .064106 261.069149;--a: .366744 .051741 338.82597;--n: .2427 .057015 59.825019;--nc: .932033 .089631 90.861683;--b1: .140765 .004386 285.822869;--b2: .202191 .004211 308.22937;--b3: .298961 .003818 308.318612;--bc: .756879 .123666 76.890484;--in: .790612 .121778 237.133883;--su: .781197 .192894 132.154381;--wa: .861274 .136524 102.89115;--er: .717531 .176357 22.568916}[data-theme=dracula],:root:has(input.theme-controller[value=dracula]:checked){color-scheme:dark;--b2: .268053 .020556 277.508664;--b3: .247877 .019009 277.508664;--pc: .150922 .036614 346.812432;--sc: .148405 .029709 301.883095;--ac: .166785 .024826 66.558491;--nc: .878891 .006515 275.524078;--inc: .176526 .018676 212.846491;--suc: .174199 .043903 148.024881;--wac: .191068 .026849 112.757109;--erc: .136441 .041266 24.430965;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .754611 .18307 346.812432;--s: .742023 .148546 301.883095;--a: .833927 .124132 66.558491;--n: .394456 .032576 275.524078;--b1: .288229 .022103 277.508664;--bc: .977477 .007913 106.545019;--in: .88263 .09338 212.846491;--su: .870995 .219516 148.024881;--wa: .955338 .134246 112.757109;--er: .682204 .206328 24.430965}[data-theme=cmyk],:root:has(input.theme-controller[value=cmyk]:checked){color-scheme:light;--b2: .93 0 0;--b3: .86 0 0;--bc: .2 0 0;--pc: .143544 .02666 239.443325;--sc: .128953 .040552 359.339283;--ac: .188458 .037948 105.306968;--nc: .843557 0 0;--inc: .136952 .0189 217.284104;--suc: .893898 .032505 321.406278;--wac: .142473 .031969 52.023412;--erc: .124027 .041677 28.717543;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .717722 .133298 239.443325;--s: .644766 .202758 359.339283;--a: .942289 .189741 105.306968;--n: .217787 0 0;--b1: 1 0 0;--in: .684759 .094499 217.284104;--su: .46949 .162524 321.406278;--wa: .712364 .159843 52.023412;--er: .620133 .208385 28.717543}[data-theme=autumn],:root:has(input.theme-controller[value=autumn]:checked){color-scheme:light;--b2: .891077 0 0;--b3: .824006 0 0;--bc: .191629 0 0;--pc: .881446 .032232 17.530175;--sc: .123353 .033821 23.865865;--ac: .146851 .018999 60.729616;--nc: .908734 .007475 51.902819;--inc: .138449 .019596 207.284192;--suc: .12199 .016032 174.616213;--wac: .140163 .032982 56.844303;--erc: .90614 .0482 24.16;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .407232 .16116 17.530175;--s: .616763 .169105 23.865865;--a: .734253 .094994 60.729616;--n: .543672 .037374 51.902819;--b1: .958147 0 0;--in: .692245 .097979 207.284192;--su: .609951 .080159 174.616213;--wa: .700817 .164909 56.844303;--er: .5307 .241 24.16}[data-theme=business],:root:has(input.theme-controller[value=business]:checked){color-scheme:dark;--b2: .226487 0 0;--b3: .20944 0 0;--bc: .848707 0 0;--pc: .883407 .019811 251.473931;--sc: .128185 .005481 229.389418;--ac: .134542 .033545 35.791525;--nc: .854882 .00265 253.041249;--inc: .125233 .028702 240.033697;--suc: .140454 .018919 156.59611;--wac: .154965 .023141 81.519177;--erc: .903221 .029356 29.674507;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .417036 .099057 251.473931;--s: .640924 .027405 229.389418;--a: .67271 .167726 35.791525;--n: .27441 .01325 253.041249;--b1: .243535 0 0;--in: .626163 .143511 240.033697;--su: .702268 .094594 156.59611;--wa: .774824 .115704 81.519177;--er: .516105 .14678 29.674507;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem}[data-theme=acid],:root:has(input.theme-controller[value=acid]:checked){color-scheme:light;--b2: .916146 0 0;--b3: .847189 0 0;--bc: .197021 0 0;--pc: .1438 .0714 330.759573;--sc: .14674 .0448 48.250878;--ac: .18556 .0528 122.962951;--nc: .84262 .0256 278.68;--inc: .12144 .0454 252.05;--suc: .17144 .0532 158.53;--wac: .18202 .0424 100.5;--erc: .12968 .0586 29.349188;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: .719 .357 330.759573;--s: .7337 .224 48.250878;--a: .9278 .264 122.962951;--n: .2131 .128 278.68;--b1: .985104 0 0;--in: .6072 .227 252.05;--su: .8572 .266 158.53;--wa: .9101 .212 100.5;--er: .6484 .293 29.349188;--rounded-box: 1.25rem;--rounded-btn: 1rem;--rounded-badge: 1rem;--tab-radius: .7rem}[data-theme=lemonade],:root:has(input.theme-controller[value=lemonade]:checked){color-scheme:light;--b2: .918003 .0186 123.72;--b3: .848906 .0172 123.72;--bc: .19742 .004 123.72;--pc: .11784 .0398 134.6;--sc: .1555 .0392 111.09;--ac: .17078 .0402 100.73;--nc: .86196 .015 108.6;--inc: .17238 .0094 224.14;--suc: .17238 .0094 157.85;--wac: .17238 .0094 102.15;--erc: .17238 .0094 25.85;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .5892 .199 134.6;--s: .7775 .196 111.09;--a: .8539 .201 100.73;--n: .3098 .075 108.6;--b1: .9871 .02 123.72;--in: .8619 .047 224.14;--su: .8619 .047 157.85;--wa: .8619 .047 102.15;--er: .8619 .047 25.85}[data-theme=night],:root:has(input.theme-controller[value=night]:checked){color-scheme:dark;--b2: .193144 .037037 265.754874;--b3: .178606 .034249 265.754874;--bc: .841536 .007965 265.754874;--pc: .150703 .027798 232.66148;--sc: .136023 .031661 276.934902;--ac: .144721 .035244 350.048739;--nc: .855899 .00737 260.030984;--suc: .156904 .026506 181.911977;--wac: .166486 .027912 82.95003;--erc: .143572 .034051 13.11834;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .753513 .138989 232.66148;--s: .680113 .158303 276.934902;--a: .723603 .176218 350.048739;--n: .279495 .036848 260.030984;--b1: .207682 .039824 265.754874;--in: .684553 .148062 237.25135;--inc: 0 0 0;--su: .78452 .132529 181.911977;--wa: .832428 .139558 82.95003;--er: .717858 .170255 13.11834}[data-theme=coffee],:root:has(input.theme-controller[value=coffee]:checked){color-scheme:dark;--b2: .201585 .021457 329.708637;--b3: .186412 .019842 329.708637;--pc: .143993 .024765 62.756393;--sc: .86893 .00597 199.19444;--ac: .885243 .014881 224.389184;--nc: .833022 .003149 326.261446;--inc: .15898 .012774 184.558367;--suc: .149445 .014491 131.116276;--wac: .176301 .028162 87.722413;--erc: .154637 .025644 31.871922;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .719967 .123825 62.756393;--s: .34465 .029849 199.19444;--a: .426213 .074405 224.389184;--n: .165109 .015743 326.261446;--b1: .216758 .023072 329.708637;--bc: .723547 .092794 79.129387;--in: .794902 .063869 184.558367;--su: .747224 .072456 131.116276;--wa: .881503 .140812 87.722413;--er: .773187 .12822 31.871922}[data-theme=winter],:root:has(input.theme-controller[value=winter]:checked){color-scheme:light;--pc: .91372 .051 257.57;--sc: .885103 .03222 282.339433;--ac: .11988 .038303 335.171434;--nc: .839233 .012704 257.651965;--inc: .176255 .017178 214.515264;--suc: .160988 .015404 197.823719;--wac: .178345 .009167 71.47031;--erc: .146185 .022037 20.076293;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .5686 .255 257.57;--s: .425516 .161098 282.339433;--a: .599398 .191515 335.171434;--n: .196166 .063518 257.651965;--b1: 1 0 0;--b2: .974663 .011947 259.822565;--b3: .932686 .016223 262.751375;--bc: .418869 .053885 255.824911;--in: .881275 .085888 214.515264;--su: .804941 .077019 197.823719;--wa: .891725 .045833 71.47031;--er: .730926 .110185 20.076293}[data-theme=dim],:root:has(input.theme-controller[value=dim]:checked){color-scheme:dark;--pc: .172267 .028331 139.549991;--sc: .146752 .033181 35.353059;--ac: .148459 .026728 311.37924;--inc: .172157 .028409 206.182959;--suc: .172343 .028437 166.534048;--wac: .172327 .028447 94.818679;--erc: .164838 .019914 33.756357;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .861335 .141656 139.549991;--s: .733759 .165904 35.353059;--a: .742296 .133641 311.37924;--n: .248091 .041409 261.79232;--nc: .829011 .031335 222.959324;--b1: .404748 .036234 264.044279;--b2: .308577 .023243 264.149498;--b3: .271708 .018257 262.190531;--bc: .829011 .031335 222.959324;--in: .860785 .142046 206.182959;--su: .861717 .142187 166.534048;--wa: .861634 .142236 94.818679;--er: .824189 .09957 33.756357}[data-theme=nord],:root:has(input.theme-controller[value=nord]:checked){color-scheme:light;--pc: .118872 .015449 254.027774;--sc: .139303 .011822 248.687186;--ac: .154929 .01245 217.469017;--inc: .138414 .012499 332.664922;--suc: .153654 .01498 131.063061;--wac: .170972 .017847 84.093335;--erc: .12122 .024119 15.341883;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: .594359 .077246 254.027774;--s: .696516 .059108 248.687186;--a: .774643 .062249 217.469017;--n: .45229 .035214 264.1312;--nc: .899258 .016374 262.749256;--b1: .951276 .007445 260.731539;--b2: .932996 .010389 261.788485;--b3: .899258 .016374 262.749256;--bc: .324374 .022945 264.182036;--in: .692072 .062496 332.664922;--su: .76827 .074899 131.063061;--wa: .854862 .089234 84.093335;--er: .6061 .120594 15.341883;--rounded-box: .4rem;--rounded-btn: .2rem;--rounded-badge: .4rem;--tab-radius: .2rem}[data-theme=sunset],:root:has(input.theme-controller[value=sunset]:checked){color-scheme:dark;--pc: .149408 .031656 39.94703;--sc: .145075 .035531 2.72034;--ac: .142589 .033336 299.844533;--inc: .171119 .017054 206.015183;--suc: .171122 .017172 144.77874;--wac: .171139 .016961 74.427797;--erc: .171023 .015778 16.886379;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: .747039 .158278 39.94703;--s: .725375 .177654 2.72034;--a: .712947 .166678 299.844533;--n: .26 .019 237.69;--nc: .7 .019 237.69;--b1: .22 .019 237.69;--b2: .2 .019 237.69;--b3: .18 .019 237.69;--bc: .773835 .043586 245.096534;--in: .855596 .085271 206.015183;--su: .855609 .08586 144.77874;--wa: .855695 .084806 74.427797;--er: .855116 .07889 16.886379;--rounded-box: 1.2rem;--rounded-btn: .8rem;--rounded-badge: .4rem;--tab-radius: .7rem}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.alert{display:grid;width:100%;grid-auto-flow:row;align-content:flex-start;align-items:center;justify-items:center;gap:1rem;text-align:center;border-radius:var(--rounded-box, 1rem);border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));padding:1rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-b2,oklch(var(--b2)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1));background-color:var(--alert-bg)}@media (min-width: 640px){.alert{grid-auto-flow:column;grid-template-columns:auto minmax(auto,1fr);justify-items:start;text-align:start}}.avatar{position:relative;display:inline-flex}.avatar>div{display:block;aspect-ratio:1 / 1;overflow:hidden}.avatar img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}@media (hover:hover){.link-hover:hover{text-decoration-line:underline}.checkbox-secondary:hover{--tw-border-opacity: 1;border-color:var(--fallback-s,oklch(var(--s)/var(--tw-border-opacity)))}.label a:hover{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.menu li>*:not(ul):not(.menu-title):not(details):active,.menu li>*:not(ul):not(.menu-title):not(details).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.table tr.hover:hover,.table tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table-zebra tr.hover:hover,.table-zebra tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}}.btn{display:inline-flex;height:3rem;min-height:3rem;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-radius:var(--rounded-btn, .5rem);border-color:transparent;border-color:oklch(var(--btn-color, var(--b2)) / var(--tw-border-opacity, 1));padding-left:1rem;padding-right:1rem;text-align:center;font-size:.875rem;line-height:1em;gap:.5rem;font-weight:600;text-decoration-line:none;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);border-width:var(--border-btn, 1px);animation:button-pop var(--animation-btn, .25s) ease-out;transition-property:color,background-color,border-color,opacity,box-shadow,transform;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:var(--fallback-bc,oklch(var(--bc)/1));background-color:oklch(var(--btn-color, var(--b2)) / var(--tw-bg-opacity, 1))}.btn-disabled,.btn[disabled],.btn:disabled{pointer-events:none}:where(.btn:is(input[type=checkbox])),:where(.btn:is(input[type=radio])){width:auto;-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn:is(input[type=checkbox]):after,.btn:is(input[type=radio]):after{--tw-content: attr(aria-label);content:var(--tw-content)}.card{position:relative;display:flex;flex-direction:column;border-radius:var(--rounded-box, 1rem)}.card:focus{outline:2px solid transparent;outline-offset:2px}.card-body{display:flex;flex:1 1 auto;flex-direction:column;padding:var(--padding-card, 2rem);gap:.5rem}.card-body :where(p){flex-grow:1}.card figure{display:flex;align-items:center;justify-content:center}.card.image-full{display:grid}.card.image-full:before{position:relative;content:"";z-index:10;border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));opacity:.75}.card.image-full:before,.card.image-full>*{grid-column-start:1;grid-row-start:1}.card.image-full>figure img{height:100%;-o-object-fit:cover;object-fit:cover}.card.image-full>.card-body{position:relative;z-index:20;--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.checkbox{flex-shrink:0;--chkbg: var(--fallback-bc,oklch(var(--bc)/1));--chkfg: var(--fallback-b1,oklch(var(--b1)/1));height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2}.dropdown{position:relative;display:inline-block}.dropdown>*:not(summary):focus{outline:2px solid transparent;outline-offset:2px}.dropdown .dropdown-content{position:absolute}.dropdown:is(:not(details)) .dropdown-content{visibility:hidden;opacity:0;transform-origin:top;--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s}.dropdown-end .dropdown-content{inset-inline-end:0px}.dropdown-left .dropdown-content{bottom:auto;inset-inline-end:100%;top:0;transform-origin:right}.dropdown-right .dropdown-content{bottom:auto;inset-inline-start:100%;top:0;transform-origin:left}.dropdown-bottom .dropdown-content{bottom:auto;top:100%;transform-origin:top}.dropdown-top .dropdown-content{bottom:100%;top:auto;transform-origin:bottom}.dropdown-end.dropdown-right .dropdown-content,.dropdown-end.dropdown-left .dropdown-content{bottom:0;top:auto}.dropdown.dropdown-open .dropdown-content,.dropdown:not(.dropdown-hover):focus .dropdown-content,.dropdown:focus-within .dropdown-content{visibility:visible;opacity:1}@media (hover: hover){.dropdown.dropdown-hover:hover .dropdown-content{visibility:visible;opacity:1}.btm-nav>*.disabled:hover,.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btn:hover{--tw-border-opacity: 1;border-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-border-opacity)));border-color:color-mix(in oklab,oklch(var(--btn-color, var(--b2)) / var(--tw-border-opacity)) 90%,black);--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)));background-color:color-mix(in oklab,oklch(var(--btn-color, var(--b2)) / var(--tw-bg-opacity)) 90%,black)}@supports not (color: oklch(0 0 0)){.btn:hover{background-color:var(--btn-color, var(--fallback-b2));border-color:var(--btn-color, var(--fallback-b2))}}.btn.glass:hover{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn-ghost:hover{border-color:transparent}@supports (color: oklch(0 0 0)){.btn-ghost:hover{background-color:var(--fallback-bc,oklch(var(--bc)/.2))}}.btn-outline:hover{--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-b1,oklch(var(--b1)/var(--tw-text-opacity)))}.btn-outline.btn-primary:hover{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)));background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}.btn-outline.btn-secondary:hover{--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)));background-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black)}.btn-outline.btn-accent:hover{--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)));background-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black)}.btn-outline.btn-success:hover{--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)));background-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black)}.btn-outline.btn-info:hover{--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)));background-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black)}.btn-outline.btn-warning:hover{--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)));background-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black)}.btn-outline.btn-error:hover{--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)));background-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black)}.btn-disabled:hover,.btn[disabled]:hover,.btn:disabled:hover{--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .2;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btn:is(input[type=checkbox]:checked):hover,.btn:is(input[type=radio]:checked):hover{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}.dropdown.dropdown-hover:hover .dropdown-content{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(.active):hover,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(.active):hover{cursor:pointer;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));outline:2px solid transparent;outline-offset:2px}@supports (color: oklch(0 0 0)){:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(.active):hover,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(.active):hover{background-color:var(--fallback-bc,oklch(var(--bc)/.1))}}}.dropdown:is(details) summary::-webkit-details-marker{display:none}.footer{display:grid;width:100%;grid-auto-flow:row;place-items:start;-moz-column-gap:1rem;column-gap:1rem;row-gap:2.5rem;font-size:.875rem;line-height:1.25rem}.footer>*{display:grid;place-items:start;gap:.5rem}.footer-center{place-items:center;text-align:center}.footer-center>*{place-items:center}@media (min-width: 48rem){.footer{grid-auto-flow:column}.footer-center{grid-auto-flow:row dense}}.form-control{display:flex;flex-direction:column}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.input{flex-shrink:1;height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.join{display:inline-flex;align-items:stretch;border-radius:var(--rounded-btn, .5rem)}.join :where(.join-item){border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:not(:first-child):not(:last-child),.join *:not(:first-child):not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0}.join .dropdown .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .dropdown .join-item{border-start-end-radius:inherit;border-end-end-radius:inherit}.join :where(.join-item:first-child:not(:last-child)),.join :where(*:first-child:not(:last-child) .join-item){border-end-start-radius:inherit;border-start-start-radius:inherit}.join .join-item:last-child:not(:first-child),.join *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0}.join :where(.join-item:last-child:not(:first-child)),.join :where(*:last-child:not(:first-child) .join-item){border-start-end-radius:inherit;border-end-end-radius:inherit}@supports not selector(:has(*)){:where(.join *){border-radius:inherit}}@supports selector(:has(*)){:where(.join *:has(.join-item)){border-radius:inherit}}.link{cursor:pointer;text-decoration-line:underline}.link-hover{text-decoration-line:none}.mask{-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}.menu{display:flex;flex-direction:column;flex-wrap:wrap;font-size:.875rem;line-height:1.25rem;padding:.5rem}.menu :where(li ul){position:relative;white-space:nowrap;margin-inline-start:1rem;padding-inline-start:.5rem}.menu :where(li:not(.menu-title)>*:not(ul):not(details):not(.menu-title)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){display:grid;grid-auto-flow:column;align-content:flex-start;align-items:center;gap:.5rem;grid-auto-columns:minmax(auto,max-content) auto max-content;-webkit-user-select:none;-moz-user-select:none;user-select:none}.menu li.disabled{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:var(--fallback-bc,oklch(var(--bc)/.3))}.menu :where(li>.menu-dropdown:not(.menu-dropdown-show)){display:none}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}:where(.menu li) .badge{justify-self:end}.modal{pointer-events:none;position:fixed;top:0;right:0;bottom:0;left:0;margin:0;display:grid;height:100%;max-height:none;width:100%;max-width:none;justify-items:center;padding:0;opacity:0;overscroll-behavior:contain;z-index:999;background-color:transparent;color:inherit;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);transition-property:transform,opacity,visibility;overflow-y:hidden}:where(.modal){align-items:center}.modal-box{max-height:calc(100vh - 5em);grid-column-start:1;grid-row-start:1;width:91.666667%;max-width:32rem;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));padding:1.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;box-shadow:#00000040 0 25px 50px -12px;overflow-y:auto;overscroll-behavior:contain}.modal-open,.modal:target,.modal-toggle:checked+.modal,.modal[open]{pointer-events:auto;visibility:visible;opacity:1}.modal-action{display:flex;margin-top:1.5rem;justify-content:flex-end}:root:has(:is(.modal-open,.modal:target,.modal-toggle:checked+.modal,.modal[open])){overflow:hidden}.navbar{display:flex;align-items:center;padding:var(--navbar-padding, .5rem);min-height:4rem;width:100%}:where(.navbar>*){display:inline-flex;align-items:center}.navbar-start{width:50%;justify-content:flex-start}.navbar-center{flex-shrink:0}.navbar-end{width:50%;justify-content:flex-end}.progress{position:relative;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;overflow:hidden;height:.5rem;border-radius:var(--rounded-box, 1rem);background-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;min-height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16.1px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.table{position:relative;width:100%;border-radius:var(--rounded-box, 1rem);text-align:left;font-size:.875rem;line-height:1.25rem}.table :where(.table-pin-rows thead tr){position:sticky;top:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-rows tfoot tr){position:sticky;bottom:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-cols tr th){position:sticky;left:0;right:0;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.toast{position:fixed;display:flex;min-width:-moz-fit-content;min-width:fit-content;flex-direction:column;white-space:nowrap;gap:.5rem;padding:1rem}.toggle{flex-shrink:0;--tglbg: var(--fallback-b1,oklch(var(--b1)/1));--handleoffset: 1.5rem;--handleoffsetcalculator: calc(var(--handleoffset) * -1);--togglehandleborder: 0 0;height:1.5rem;width:3rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rounded-badge, 1.9rem);border-width:1px;border-color:currentColor;background-color:currentColor;color:var(--fallback-bc,oklch(var(--bc)/.5));transition:background,box-shadow var(--animation-input, .2s) ease-out;box-shadow:var(--handleoffsetcalculator) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset,var(--togglehandleborder)}.alert-info{border-color:var(--fallback-in,oklch(var(--in)/.2));--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-in,oklch(var(--in)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1))}.alert-success{border-color:var(--fallback-su,oklch(var(--su)/.2));--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-su,oklch(var(--su)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1))}.alert-error{border-color:var(--fallback-er,oklch(var(--er)/.2));--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-er,oklch(var(--er)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1))}.avatar-group :where(.avatar){overflow:hidden;border-radius:9999px;border-width:4px;--tw-border-opacity: 1;border-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-border-opacity)))}.btm-nav>*.disabled,.btm-nav>*[disabled]{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:hover,.btn:active:focus{animation:button-pop 0s ease-out;transform:scale(var(--btn-focus-scale, .97))}@supports not (color: oklch(0 0 0)){.btn{background-color:var(--btn-color, var(--fallback-b2));border-color:var(--btn-color, var(--fallback-b2))}.btn-primary{--btn-color: var(--fallback-p)}.btn-secondary{--btn-color: var(--fallback-s)}.btn-accent{--btn-color: var(--fallback-a)}.btn-info{--btn-color: var(--fallback-in)}.btn-error{--btn-color: var(--fallback-er)}}.btn:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px}.btn-primary{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)));outline-color:var(--fallback-p,oklch(var(--p)/1))}@supports (color: oklch(0 0 0)){.btn-primary{--btn-color: var(--p)}.btn-secondary{--btn-color: var(--s)}.btn-accent{--btn-color: var(--a)}.btn-info{--btn-color: var(--in)}.btn-error{--btn-color: var(--er)}}.btn-secondary{--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)));outline-color:var(--fallback-s,oklch(var(--s)/1))}.btn-accent{--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)));outline-color:var(--fallback-a,oklch(var(--a)/1))}.btn-info{--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)));outline-color:var(--fallback-in,oklch(var(--in)/1))}.btn-error{--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)));outline-color:var(--fallback-er,oklch(var(--er)/1))}.btn.glass{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn-ghost.btn-active{border-color:transparent;background-color:var(--fallback-bc,oklch(var(--bc)/.2))}.btn-outline{border-color:currentColor;background-color:transparent;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.btn-outline.btn-active{--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-b1,oklch(var(--b1)/var(--tw-text-opacity)))}.btn-outline.btn-primary{--tw-text-opacity: 1;color:var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity)))}.btn-outline.btn-primary.btn-active{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)));background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}.btn-outline.btn-secondary{--tw-text-opacity: 1;color:var(--fallback-s,oklch(var(--s)/var(--tw-text-opacity)))}.btn-outline.btn-secondary.btn-active{--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)));background-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black)}.btn-outline.btn-accent{--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)))}.btn-outline.btn-accent.btn-active{--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)));background-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black)}.btn-outline.btn-success{--tw-text-opacity: 1;color:var(--fallback-su,oklch(var(--su)/var(--tw-text-opacity)))}.btn-outline.btn-success.btn-active{--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)));background-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black)}.btn-outline.btn-info{--tw-text-opacity: 1;color:var(--fallback-in,oklch(var(--in)/var(--tw-text-opacity)))}.btn-outline.btn-info.btn-active{--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)));background-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black)}.btn-outline.btn-warning{--tw-text-opacity: 1;color:var(--fallback-wa,oklch(var(--wa)/var(--tw-text-opacity)))}.btn-outline.btn-warning.btn-active{--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)));background-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black)}.btn-outline.btn-error{--tw-text-opacity: 1;color:var(--fallback-er,oklch(var(--er)/var(--tw-text-opacity)))}.btn-outline.btn-error.btn-active{--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)));background-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black)}.btn.btn-disabled,.btn[disabled],.btn:disabled{--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .2;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btn:is(input[type=checkbox]:checked),.btn:is(input[type=radio]:checked){--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.btn:is(input[type=checkbox]:checked):focus-visible,.btn:is(input[type=radio]:checked):focus-visible{outline-color:var(--fallback-p,oklch(var(--p)/1))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .98))}40%{transform:scale(1.02)}to{transform:scale(1)}}.card :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:unset}.card :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:inherit}.card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.card.bordered{border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.card.compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-title{display:flex;align-items:center;gap:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.card.image-full :where(figure){overflow:hidden;border-radius:inherit}.checkbox:focus{box-shadow:none}.checkbox:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-image:linear-gradient(-45deg,transparent 65%,var(--chkbg) 65.99%),linear-gradient(45deg,transparent 75%,var(--chkbg) 75.99%),linear-gradient(-45deg,var(--chkbg) 40%,transparent 40.99%),linear-gradient(45deg,var(--chkbg) 30%,var(--chkfg) 30.99%,var(--chkfg) 40%,transparent 40.99%),linear-gradient(-45deg,var(--chkfg) 50%,var(--chkbg) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-image:linear-gradient(90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(-90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(0deg,var(--chkbg) 43%,var(--chkfg) 43%,var(--chkfg) 57%,var(--chkbg) 57%)}.checkbox-secondary{--chkbg: var(--fallback-s,oklch(var(--s)/1));--chkfg: var(--fallback-sc,oklch(var(--sc)/1));--tw-border-opacity: 1;border-color:var(--fallback-s,oklch(var(--s)/var(--tw-border-opacity)))}.checkbox-secondary:focus-visible{outline-color:var(--fallback-s,oklch(var(--s)/1))}.checkbox-secondary:checked,.checkbox-secondary[checked=true],.checkbox-secondary[aria-checked=true]{--tw-border-opacity: 1;border-color:var(--fallback-s,oklch(var(--s)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-s,oklch(var(--s)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)))}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}.dropdown.dropdown-open .dropdown-content,.dropdown:focus .dropdown-content,.dropdown:focus-within .dropdown-content{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.input input:focus{outline:2px solid transparent;outline-offset:2px}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.input:focus,.input:focus-within{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.input-disabled,.input:disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));color:var(--fallback-bc,oklch(var(--bc)/.4))}.input-disabled::-moz-placeholder,.input:disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.input-disabled::placeholder,.input:disabled::placeholder,.input[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.join>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.loading{pointer-events:none;display:inline-block;aspect-ratio:1 / 1;width:1.5rem;background-color:currentColor;-webkit-mask-size:100%;mask-size:100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.loading-ring{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg' stroke='%23fff'%3E%3Cg fill='none' fill-rule='evenodd' stroke-width='2'%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='0s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='0s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='-0.9s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='-0.9s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg' stroke='%23fff'%3E%3Cg fill='none' fill-rule='evenodd' stroke-width='2'%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='0s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='0s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='-0.9s' dur='1.8s' values='1; 20' calcMode='spline' keyTimes='0; 1' keySplines='0.165, 0.84, 0.44, 1' repeatCount='indefinite' /%3E%3Canimate attributeName='stroke-opacity' begin='-0.9s' dur='1.8s' values='1; 0' calcMode='spline' keyTimes='0; 1' keySplines='0.3, 0.61, 0.355, 1' repeatCount='indefinite' /%3E%3C/circle%3E%3C/g%3E%3C/svg%3E")}.loading-md{width:1.5rem}.mask-squircle{-webkit-mask-image:url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M100 0C20 0 0 20 0 100s20 100 100 100 100-20 100-100S180 0 100 0Z'/%3e%3c/svg%3e");mask-image:url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M100 0C20 0 0 20 0 100s20 100 100 100 100-20 100-100S180 0 100 0Z'/%3e%3c/svg%3e")}:where(.menu li:empty){background-color:var(--fallback-bc,oklch(var(--bc)/.1));margin:.5rem 1rem;height:1px}.menu :where(li ul):before{position:absolute;bottom:.75rem;inset-inline-start:0px;top:.75rem;width:1px;background-color:var(--fallback-bc,oklch(var(--bc)/.1));content:""}.menu :where(li:not(.menu-title)>*:not(ul):not(details):not(.menu-title)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--rounded-btn, .5rem);padding:.5rem 1rem;text-align:start;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;text-wrap:balance}:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(summary):not(.active).focus,:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(summary):not(.active):focus,:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):is(summary):not(.active):focus-visible,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(summary):not(.active).focus,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(summary):not(.active):focus,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):is(summary):not(.active):focus-visible{cursor:pointer;background-color:var(--fallback-bc,oklch(var(--bc)/.1));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));outline:2px solid transparent;outline-offset:2px}.menu li>*:not(ul):not(.menu-title):not(details):active,.menu li>*:not(ul):not(.menu-title):not(details).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.menu :where(li>details>summary)::-webkit-details-marker{display:none}.menu :where(li>details>summary):after,.menu :where(li>.menu-dropdown-toggle):after{justify-self:end;display:block;margin-top:-.5rem;height:.5rem;width:.5rem;transform:rotate(45deg);transition-property:transform,margin-top;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);content:"";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}.menu :where(li>details[open]>summary):after,.menu :where(li>.menu-dropdown-toggle.menu-dropdown-show):after{transform:rotate(225deg);margin-top:0}.mockup-phone .camera{position:relative;top:0;left:0;background:#000;height:25px;width:150px;margin:0 auto;border-bottom-left-radius:17px;border-bottom-right-radius:17px;z-index:11}.mockup-phone .camera:before{content:"";position:absolute;top:35%;left:50%;width:50px;height:4px;border-radius:5px;background-color:#0c0b0e;transform:translate(-50%,-50%)}.mockup-phone .camera:after{content:"";position:absolute;top:20%;left:70%;width:8px;height:8px;border-radius:5px;background-color:#0f0b25}.mockup-phone .display{overflow:hidden;border-radius:40px;margin-top:-25px}.mockup-browser .mockup-browser-toolbar .input{position:relative;margin-left:auto;margin-right:auto;display:block;height:1.75rem;width:24rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));padding-left:2rem;direction:ltr}.mockup-browser .mockup-browser-toolbar .input:before{content:"";position:absolute;left:.5rem;top:50%;aspect-ratio:1 / 1;height:.75rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:2px;border-color:currentColor;opacity:.6}.mockup-browser .mockup-browser-toolbar .input:after{content:"";position:absolute;left:1.25rem;top:50%;height:.5rem;--tw-translate-y: 25%;--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:1px;border-color:currentColor;opacity:.6}.modal:not(dialog:not(.modal-open)),.modal::backdrop{background-color:#0000004d;animation:modal-pop .2s ease-out}.modal-open .modal-box,.modal-toggle:checked+.modal .modal-box,.modal:target .modal-box,.modal[open] .modal-box{--tw-translate-y: 0px;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.modal-action>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}@keyframes modal-pop{0%{opacity:0}}.progress::-moz-progress-bar{border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)))}.progress-primary::-moz-progress-bar{border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)))}.progress:indeterminate{--progress-color: var(--fallback-bc,oklch(var(--bc)/1));background-image:repeating-linear-gradient(90deg,var(--progress-color) -1%,var(--progress-color) 10%,transparent 10%,transparent 90%);background-size:200%;background-position-x:15%;animation:progress-loading 5s ease-in-out infinite}.progress-primary:indeterminate{--progress-color: var(--fallback-p,oklch(var(--p)/1))}.progress::-webkit-progress-bar{border-radius:var(--rounded-box, 1rem);background-color:transparent}.progress::-webkit-progress-value{border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)))}.progress-primary::-webkit-progress-value{--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)))}.progress:indeterminate::-moz-progress-bar{background-color:transparent;background-image:repeating-linear-gradient(90deg,var(--progress-color) -1%,var(--progress-color) 10%,transparent 10%,transparent 90%);background-size:200%;background-position-x:15%;animation:progress-loading 5s ease-in-out infinite}@keyframes progress-loading{50%{background-position-x:-115%}}@keyframes radiomark{0%{box-shadow:0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset}50%{box-shadow:0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset}to{box-shadow:0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset}}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select:focus{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select-warning{--tw-border-opacity: 1;border-color:var(--fallback-wa,oklch(var(--wa)/var(--tw-border-opacity)))}.select-warning:focus{--tw-border-opacity: 1;border-color:var(--fallback-wa,oklch(var(--wa)/var(--tw-border-opacity)));outline-color:var(--fallback-wa,oklch(var(--wa)/1))}.select-disabled,.select:disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));--tw-text-opacity: .2}.select-disabled::-moz-placeholder,.select:disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select:disabled::placeholder,.select[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}@keyframes skeleton{0%{background-position:150%}to{background-position:-50%}}:is([dir=rtl] .table){text-align:right}.table :where(th,td){padding:.75rem 1rem;vertical-align:middle}.table tr.active,.table tr.active:nth-child(2n),.table-zebra tbody tr:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table :where(thead,tbody) :where(tr:not(:last-child)),.table :where(thead,tbody) :where(tr:first-child:last-child){border-bottom-width:1px;--tw-border-opacity: 1;border-bottom-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.table :where(thead,tfoot){white-space:nowrap;font-size:.75rem;line-height:1rem;font-weight:700;color:var(--fallback-bc,oklch(var(--bc)/.6))}.toast>*{animation:toast-pop .25s ease-out}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}[dir=rtl] .toggle{--handleoffsetcalculator: calc(var(--handleoffset) * 1)}.toggle:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.toggle:hover{background-color:currentColor}.toggle:checked,.toggle[checked=true],.toggle[aria-checked=true]{background-image:none;--handleoffsetcalculator: var(--handleoffset);--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}[dir=rtl] .toggle:checked,[dir=rtl] .toggle[checked=true],[dir=rtl] .toggle[aria-checked=true]{--handleoffsetcalculator: calc(var(--handleoffset) * -1)}.toggle:indeterminate{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}[dir=rtl] .toggle:indeterminate{box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}.toggle-primary:focus-visible{outline-color:var(--fallback-p,oklch(var(--p)/1))}.toggle-primary:checked,.toggle-primary[checked=true],.toggle-primary[aria-checked=true]{border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));--tw-border-opacity: .1;--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.toggle:disabled{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));background-color:transparent;opacity:.3;--togglehandleborder: 0 0 0 3px var(--fallback-bc,oklch(var(--bc)/1)) inset, var(--handleoffsetcalculator) 0 0 3px var(--fallback-bc,oklch(var(--bc)/1)) inset}.glass,.glass.btn-active{border:none;-webkit-backdrop-filter:blur(var(--glass-blur, 40px));backdrop-filter:blur(var(--glass-blur, 40px));background-color:transparent;background-image:linear-gradient(135deg,rgb(255 255 255 / var(--glass-opacity, 30%)) 0%,rgb(0 0 0 / 0%) 100%),linear-gradient(var(--glass-reflex-degree, 100deg),rgb(255 255 255 / var(--glass-reflex-opacity, 10%)) 25%,rgb(0 0 0 / 0%) 25%);box-shadow:0 0 0 1px rgb(255 255 255 / var(--glass-border-opacity, 10%)) inset,0 0 0 2px #0000000d;text-shadow:0 1px rgb(0 0 0 / var(--glass-text-shadow-opacity, 5%))}@media (hover: hover){.glass.btn-active{border:none;-webkit-backdrop-filter:blur(var(--glass-blur, 40px));backdrop-filter:blur(var(--glass-blur, 40px));background-color:transparent;background-image:linear-gradient(135deg,rgb(255 255 255 / var(--glass-opacity, 30%)) 0%,rgb(0 0 0 / 0%) 100%),linear-gradient(var(--glass-reflex-degree, 100deg),rgb(255 255 255 / var(--glass-reflex-opacity, 10%)) 25%,rgb(0 0 0 / 0%) 25%);box-shadow:0 0 0 1px rgb(255 255 255 / var(--glass-border-opacity, 10%)) inset,0 0 0 2px #0000000d;text-shadow:0 1px rgb(0 0 0 / var(--glass-text-shadow-opacity, 5%))}}.btn-xs{height:1.5rem;min-height:1.5rem;padding-left:.5rem;padding-right:.5rem;font-size:.75rem}.btn-sm{height:2rem;min-height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.875rem}.btn-lg{height:4rem;min-height:4rem;padding-left:1.5rem;padding-right:1.5rem;font-size:1.125rem}.btn-square:where(.btn-xs){height:1.5rem;width:1.5rem;padding:0}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-square:where(.btn-lg){height:4rem;width:4rem;padding:0}.btn-circle:where(.btn-xs){height:1.5rem;width:1.5rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-lg){height:4rem;width:4rem;border-radius:9999px;padding:0}.input-sm,input.input-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.875rem;line-height:2rem}.join.join-vertical{flex-direction:column}.join.join-vertical .join-item:first-child:not(:last-child),.join.join-vertical *:first-child:not(:last-child) .join-item{border-end-start-radius:0;border-end-end-radius:0;border-start-start-radius:inherit;border-start-end-radius:inherit}.join.join-vertical .join-item:last-child:not(:first-child),.join.join-vertical *:last-child:not(:first-child) .join-item{border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:inherit}.join.join-horizontal{flex-direction:row}.join.join-horizontal .join-item:first-child:not(:last-child),.join.join-horizontal *:first-child:not(:last-child) .join-item{border-end-end-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-start-start-radius:inherit}.join.join-horizontal .join-item:last-child:not(:first-child),.join.join-horizontal *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0;border-end-end-radius:inherit;border-start-end-radius:inherit}.menu-horizontal{display:inline-flex;flex-direction:row}.menu-horizontal>li:not(.menu-title)>details>ul{position:absolute}.select-sm{height:2rem;min-height:2rem;padding-left:.75rem;padding-right:2rem;font-size:.875rem;line-height:2rem}[dir=rtl] .select-sm{padding-left:2rem;padding-right:.75rem}:where(.toast){bottom:0;inset-inline-end:0px;inset-inline-start:auto;top:auto;--tw-translate-x: 0px;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-start){inset-inline-end:auto;inset-inline-start:0px;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-center){inset-inline-end:50%;inset-inline-start:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .toast:where(.toast-center)){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-end){inset-inline-end:0px;inset-inline-start:auto;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-bottom){bottom:0;top:auto;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-middle){bottom:auto;top:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-top){bottom:auto;top:0;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.tooltip{position:relative;display:inline-block;--tooltip-offset: calc(100% + 1px + var(--tooltip-tail, 0px))}.tooltip:before{position:absolute;pointer-events:none;z-index:1;content:var(--tw-content);--tw-content: attr(data-tip)}.tooltip:before,.tooltip-top:before{transform:translate(-50%);top:auto;left:50%;right:auto;bottom:var(--tooltip-offset)}.tooltip-bottom:before{transform:translate(-50%);top:var(--tooltip-offset);left:50%;right:auto;bottom:auto}.tooltip-left:before{transform:translateY(-50%);top:50%;left:auto;right:var(--tooltip-offset);bottom:auto}.tooltip-right:before{transform:translateY(-50%);top:50%;left:var(--tooltip-offset);right:auto;bottom:auto}.avatar.online:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)));outline-style:solid;outline-width:2px;outline-color:var(--fallback-b1,oklch(var(--b1)/1));width:15%;height:15%;top:7%;right:7%}.avatar.offline:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)));outline-style:solid;outline-width:2px;outline-color:var(--fallback-b1,oklch(var(--b1)/1));width:15%;height:15%;top:7%;right:7%}.card-compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-compact .card-title{margin-bottom:.25rem}.card-normal .card-body{padding:var(--padding-card, 2rem);font-size:1rem;line-height:1.5rem}.card-normal .card-title{margin-bottom:.75rem}.join.join-vertical>:where(*:not(:first-child)){margin-left:0;margin-right:0;margin-top:-1px}.join.join-horizontal>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.menu-horizontal>li:not(.menu-title)>details>ul{margin-inline-start:0px;margin-top:1rem;padding-top:.5rem;padding-bottom:.5rem;padding-inline-end:.5rem}.menu-horizontal>li>details>ul:before{content:none}:where(.menu-horizontal>li:not(.menu-title)>details>ul){border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.menu-sm :where(li:not(.menu-title)>*:not(ul):not(details):not(.menu-title)),.menu-sm :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--rounded-btn, .5rem);padding:.25rem .75rem;font-size:.875rem;line-height:1.25rem}.menu-sm .menu-title{padding:.5rem .75rem}.modal-top :where(.modal-box){width:100%;max-width:none;--tw-translate-y: -2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-top-left-radius:0;border-top-right-radius:0}.modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem)}.modal-bottom :where(.modal-box){width:100%;max-width:none;--tw-translate-y: 2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-right-radius:0;border-bottom-left-radius:0}.tooltip{position:relative;display:inline-block;text-align:center;--tooltip-tail: .1875rem;--tooltip-color: var(--fallback-n,oklch(var(--n)/1));--tooltip-text-color: var(--fallback-nc,oklch(var(--nc)/1));--tooltip-tail-offset: calc(100% + .0625rem - var(--tooltip-tail))}.tooltip:before,.tooltip:after{opacity:0;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-delay:.1s;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tooltip:after{position:absolute;content:"";border-style:solid;border-width:var(--tooltip-tail, 0);width:0;height:0;display:block}.tooltip:before{max-width:20rem;border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem;background-color:var(--tooltip-color);color:var(--tooltip-text-color);width:-moz-max-content;width:max-content}.tooltip.tooltip-open:before,.tooltip.tooltip-open:after,.tooltip:hover:before,.tooltip:hover:after{opacity:1;transition-delay:75ms}.tooltip:has(:focus-visible):after,.tooltip:has(:focus-visible):before{opacity:1;transition-delay:75ms}.tooltip:not([data-tip]):hover:before,.tooltip:not([data-tip]):hover:after{visibility:hidden;opacity:0}.tooltip:after,.tooltip-top:after{transform:translate(-50%);border-color:var(--tooltip-color) transparent transparent transparent;top:auto;left:50%;right:auto;bottom:var(--tooltip-tail-offset)}.tooltip-bottom:after{transform:translate(-50%);border-color:transparent transparent var(--tooltip-color) transparent;top:var(--tooltip-tail-offset);left:50%;right:auto;bottom:auto}.tooltip-left:after{transform:translateY(-50%);border-color:transparent transparent transparent var(--tooltip-color);top:50%;left:auto;right:calc(var(--tooltip-tail-offset) + .0625rem);bottom:auto}.tooltip-right:after{transform:translateY(-50%);border-color:transparent var(--tooltip-color) transparent transparent;top:50%;left:calc(var(--tooltip-tail-offset) + .0625rem);right:auto;bottom:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-top-5{top:-1.25rem}.bottom-1\/2{bottom:50%}.bottom-12{bottom:3rem}.left-0{left:0}.left-1\/2{left:50%}.right-0{right:0}.right-12{right:3rem}.top-32{top:8rem}.isolate{isolation:isolate}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-0{margin-bottom:0}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-3{margin-bottom:.75rem}.mb-8{margin-bottom:2rem}.ml-3{margin-left:.75rem}.mr-12{margin-right:3rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-5{margin-top:1.25rem}.mt-9{margin-top:2.25rem}.box-content{box-sizing:content-box}.block{display:block}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-auto{height:auto}.h-full{height:100%}.h-screen{height:100vh}.min-h-\[calc\(100\%-280px\)\]{min-height:calc(100% - 280px)}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.min-w-\[600px\]{min-width:600px}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-flow-col{grid-auto-flow:column}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-24{gap:6rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-box{border-radius:var(--rounded-box, 1rem)}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-dotted{border-style:dotted}.border-none{border-style:none}.bg-base-100{--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.bg-base-200{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity))}.bg-blue-300\/80{background-color:#93c5fdcc}.bg-gray-800\/70{background-color:#1f2937b3}.bg-slate-500\/50{background-color:#64748b80}.bg-slate-600\/60{background-color:#47556999}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.stroke-current{stroke:currentColor}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-10{padding:2.5rem}.p-2{padding:.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-2{padding-bottom:.5rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pt-1{padding-top:.25rem}.pt-12{padding-top:3rem}.pt-14{padding-top:3.5rem}.pt-5{padding-top:1.25rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.tracking-wide{letter-spacing:.025em}.text-base-content{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.text-gray-300\/80{color:#d1d5dbcc}.text-inherit{color:inherit}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}body,html{margin:0;padding:0;overflow-y:overlay;overflow-y:hidden;overflow-x:hidden}ul{list-style:none}::-webkit-scrollbar{height:10px;width:10px;background:rgba(12,9,9,.1);float:right}::-webkit-scrollbar:hover{background:rgba(0,0,0,.2)}::-webkit-scrollbar-thumb{background:#909399;border-radius:6px}::-webkit-scrollbar-thumb:hover{-ms-box-shadow:inset 1px 1px 1px rgba(0,0,0,.25);-o-box-shadow:inset 1px 1px 1px rgba(0,0,0,.25);box-shadow:inset 1px 1px 1px #00000040}.hover\:h-14:hover{height:3.5rem}.hover\:w-14:hover{width:3.5rem}.hover\:bg-base-200:hover{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.hover\:bg-slate-500\/80:hover{background-color:#64748bcc}.hover\:bg-slate-600:hover{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.hover\:text-lg:hover{font-size:1.125rem;line-height:1.75rem}.hover\:text-blue-400:hover{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.hover\:text-blue-400\/90:hover{color:#60a5fae6}.hover\:text-gray-100:hover{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}@media not all and (min-width: 1024px){.max-lg\:mx-auto{margin-left:auto;margin-right:auto}.max-lg\:w-0{width:0px}.max-lg\:w-full{width:100%}}@media (min-width: 1024px){.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:pl-12{padding-left:3rem}}@media (prefers-color-scheme: dark){.markdown-body,[data-theme=dark]{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #e6edf3;--color-fg-muted: #848d97;--color-fg-subtle: #6e7681;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, .4);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-success-fg: #3fb950;--color-success-emphasis: #238636;--color-attention-fg: #d29922;--color-attention-emphasis: #9e6a03;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149;--color-danger-emphasis: #da3633;--color-done-fg: #a371f7;--color-done-emphasis: #8957e5}}@media (prefers-color-scheme: light){.markdown-body,[data-theme=light]{color-scheme:light;--color-prettylights-syntax-comment: #57606a;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210, 18%, 87%, 1);--color-neutral-muted: rgba(175, 184, 193, .2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-success-fg: #1a7f37;--color-success-emphasis: #1f883d;--color-attention-fg: #9a6700;--color-attention-emphasis: #9a6700;--color-attention-subtle: #fff8c5;--color-danger-fg: #d1242f;--color-danger-emphasis: #cf222e;--color-done-fg: #8250df;--color-done-emphasis: #8250df}}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;color:var(--color-fg-default);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word}.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.markdown-body h1:hover .anchor .octicon-link:before,.markdown-body h2:hover .anchor .octicon-link:before,.markdown-body h3:hover .anchor .octicon-link:before,.markdown-body h4:hover .anchor .octicon-link:before,.markdown-body h5:hover .anchor .octicon-link:before,.markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,");mask-image:url("data:image/svg+xml,")}.markdown-body details,.markdown-body figcaption,.markdown-body figure{display:block}.markdown-body summary{display:list-item}.markdown-body [hidden]{display:none!important}.markdown-body a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.markdown-body abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.markdown-body b,.markdown-body strong{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dfn{font-style:italic}.markdown-body h1{margin:.67em 0;font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted)}.markdown-body mark{background-color:var(--color-attention-subtle);color:var(--color-fg-default)}.markdown-body small{font-size:90%}.markdown-body sub,.markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.markdown-body sub{bottom:-.25em}.markdown-body sup{top:-.5em}.markdown-body img{border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}.markdown-body code,.markdown-body kbd,.markdown-body pre,.markdown-body samp{font-family:monospace;font-size:1em}.markdown-body figure{margin:1em 40px}.markdown-body hr{box-sizing:content-box;overflow:hidden;background:transparent;border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default);border:0}.markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body [type=button],.markdown-body [type=reset],.markdown-body [type=submit]{-webkit-appearance:button;-moz-appearance:button;appearance:button}.markdown-body [type=checkbox],.markdown-body [type=radio]{box-sizing:border-box;padding:0}.markdown-body [type=number]::-webkit-inner-spin-button,.markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.markdown-body [type=search]::-webkit-search-cancel-button,.markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}.markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;-moz-appearance:button;appearance:button;font:inherit}.markdown-body a:hover{text-decoration:underline}.markdown-body ::-moz-placeholder{color:var(--color-fg-subtle);opacity:1}.markdown-body ::placeholder{color:var(--color-fg-subtle);opacity:1}.markdown-body hr:before{display:table;content:""}.markdown-body hr:after{display:table;clear:both;content:""}.markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:-moz-max-content;width:max-content;max-width:100%;overflow:auto}.markdown-body td,.markdown-body th{padding:0}.markdown-body details summary{cursor:pointer}.markdown-body details:not([open])>*:not(summary){display:none!important}.markdown-body a:focus,.markdown-body [role=button]:focus,.markdown-body input[type=radio]:focus,.markdown-body input[type=checkbox]:focus{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body a:focus:not(:focus-visible),.markdown-body [role=button]:focus:not(:focus-visible),.markdown-body input[type=radio]:focus:not(:focus-visible),.markdown-body input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px transparent}.markdown-body a:focus-visible,.markdown-body [role=button]:focus-visible,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus-visible{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body a:not([class]):focus,.markdown-body a:not([class]):focus-visible,.markdown-body input[type=radio]:focus,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus,.markdown-body input[type=checkbox]:focus-visible{outline-offset:0}.markdown-body kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:var(--base-text-weight-semibold, 600);line-height:1.25}.markdown-body h2{font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.markdown-body h3{font-weight:var(--base-text-weight-semibold, 600);font-size:1.25em}.markdown-body h4{font-weight:var(--base-text-weight-semibold, 600);font-size:1em}.markdown-body h5{font-weight:var(--base-text-weight-semibold, 600);font-size:.875em}.markdown-body h6{font-weight:var(--base-text-weight-semibold, 600);font-size:.85em;color:var(--color-fg-muted)}.markdown-body p{margin-top:0;margin-bottom:10px}.markdown-body blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.markdown-body ul,.markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body tt,.markdown-body code,.markdown-body samp{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.markdown-body .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.markdown-body input::-webkit-outer-spin-button,.markdown-body input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.markdown-body .mr-2{margin-right:var(--base-size-8, 8px)!important}.markdown-body:before{display:table;content:""}.markdown-body:after{display:table;clear:both;content:""}.markdown-body>*:first-child{margin-top:0!important}.markdown-body>*:last-child{margin-bottom:0!important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body .absent{color:var(--color-danger-fg)}.markdown-body .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.markdown-body .anchor:focus{outline:none}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre,.markdown-body details{margin-top:0;margin-bottom:16px}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{padding:0 .2em;font-size:inherit}.markdown-body summary h1,.markdown-body summary h2,.markdown-body summary h3,.markdown-body summary h4,.markdown-body summary h5,.markdown-body summary h6{display:inline-block}.markdown-body summary h1 .anchor,.markdown-body summary h2 .anchor,.markdown-body summary h3 .anchor,.markdown-body summary h4 .anchor,.markdown-body summary h5 .anchor,.markdown-body summary h6 .anchor{margin-left:-40px}.markdown-body summary h1,.markdown-body summary h2{padding-bottom:0;border-bottom:0}.markdown-body ul.no-list,.markdown-body ol.no-list{padding:0;list-style-type:none}.markdown-body ol[type="a s"]{list-style-type:lower-alpha}.markdown-body ol[type="A s"]{list-style-type:upper-alpha}.markdown-body ol[type="i s"]{list-style-type:lower-roman}.markdown-body ol[type="I s"]{list-style-type:upper-roman}.markdown-body ol[type="1"]{list-style-type:decimal}.markdown-body div>ol:not([type]){list-style-type:decimal}.markdown-body ul ul,.markdown-body ul ol,.markdown-body ol ol,.markdown-body ol ul{margin-top:0;margin-bottom:0}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:.25em}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dl dd{padding:0 16px;margin-bottom:16px}.markdown-body table th{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body table th,.markdown-body table td{padding:6px 13px;border:1px solid var(--color-border-default)}.markdown-body table td>:last-child{margin-bottom:0}.markdown-body table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.markdown-body table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.markdown-body table img{background-color:transparent}.markdown-body img[align=right]{padding-left:20px}.markdown-body img[align=left]{padding-right:20px}.markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.markdown-body span.frame{display:block;overflow:hidden}.markdown-body span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.markdown-body span.frame span img{display:block;float:left}.markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.markdown-body span.align-center{display:block;overflow:hidden;clear:both}.markdown-body span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.markdown-body span.align-center span img{margin:0 auto;text-align:center}.markdown-body span.align-right{display:block;overflow:hidden;clear:both}.markdown-body span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.markdown-body span.align-right span img{margin:0;text-align:right}.markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.markdown-body span.float-left span{margin:13px 0 0}.markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.markdown-body span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.markdown-body code,.markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--color-neutral-muted);border-radius:6px}.markdown-body code br,.markdown-body tt br{display:none}.markdown-body del code{text-decoration:inherit}.markdown-body samp{font-size:85%}.markdown-body pre code{font-size:100%}.markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.markdown-body .highlight{margin-bottom:16px}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;color:var(--color-fg-default);background-color:var(--color-canvas-subtle);border-radius:6px}.markdown-body pre code,.markdown-body pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.markdown-body .csv-data td,.markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.markdown-body .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.markdown-body .csv-data tr{border-top:0}.markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold, 600);background:var(--color-canvas-subtle);border-top:0}.markdown-body [data-footnote-ref]:before{content:"["}.markdown-body [data-footnote-ref]:after{content:"]"}.markdown-body .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.markdown-body .footnotes ol{padding-left:16px}.markdown-body .footnotes ol ul{display:inline-block;padding-left:16px;margin-top:16px}.markdown-body .footnotes li{position:relative}.markdown-body .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.markdown-body .footnotes li:target{color:var(--color-fg-default)}.markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace}.markdown-body .pl-c{color:var(--color-prettylights-syntax-comment)}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant)}.markdown-body .pl-e,.markdown-body .pl-en{color:var(--color-prettylights-syntax-entity)}.markdown-body .pl-smi,.markdown-body .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import)}.markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag)}.markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword)}.markdown-body .pl-s,.markdown-body .pl-pds,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sre,.markdown-body .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string)}.markdown-body .pl-v,.markdown-body .pl-smw{color:var(--color-prettylights-syntax-variable)}.markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched)}.markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg)}.markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg)}.markdown-body .pl-sr .pl-cce{font-weight:700;color:var(--color-prettylights-syntax-string-regexp)}.markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list)}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:700;color:var(--color-prettylights-syntax-markup-heading)}.markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic)}.markdown-body .pl-mb{font-weight:700;color:var(--color-prettylights-syntax-markup-bold)}.markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg)}.markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg)}.markdown-body .pl-mdr{font-weight:700;color:var(--color-prettylights-syntax-meta-diff-range)}.markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle)}.markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark)}.markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link)}.markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:1em;font-style:normal!important;font-weight:var(--base-text-weight-normal, 400);line-height:1;vertical-align:-.075em}.markdown-body g-emoji img{width:1em;height:1em}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal, 400)}.markdown-body .task-list-item.enabled label{cursor:pointer}.markdown-body .task-list-item+.task-list-item{margin-top:4px}.markdown-body .task-list-item .handle{display:none}.markdown-body .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.markdown-body .contains-task-list{position:relative}.markdown-body .contains-task-list:hover .task-list-item-convert-container,.markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)}.markdown-body .markdown-alert{padding:var(--base-size-8) var(--base-size-16);margin-bottom:16px;color:inherit;border-left:.25em solid var(--color-border-default)}.markdown-body .markdown-alert>:first-child{margin-top:0}.markdown-body .markdown-alert>:last-child{margin-bottom:0}.markdown-body .markdown-alert .markdown-alert-title{display:flex;font-weight:var(--base-text-weight-medium, 500);align-items:center;line-height:1}.markdown-body .markdown-alert.markdown-alert-note{border-left-color:var(--color-accent-emphasis)}.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--color-accent-fg)}.markdown-body .markdown-alert.markdown-alert-important{border-left-color:var(--color-done-emphasis)}.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--color-done-fg)}.markdown-body .markdown-alert.markdown-alert-warning{border-left-color:var(--color-attention-emphasis)}.markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--color-attention-fg)}.markdown-body .markdown-alert.markdown-alert-tip{border-left-color:var(--color-success-emphasis)}.markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--color-success-fg)}.markdown-body .markdown-alert.markdown-alert-caution{border-left-color:var(--color-danger-emphasis)}.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--color-danger-fg)}.element-card{cursor:default;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.element-card .card-id{position:absolute;top:20px;right:20px}.element-card .card-name{position:absolute;top:40px;left:0;right:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.element-card .card-detail{position:absolute;left:0;right:0;bottom:15px}.lucky-element-card{cursor:default;text-align:center}.lucky-element-card:before{background-color:linear-gradient(-45deg,#e81cff 0%,#40c9ff 100%);border:1px solid linear-gradient(-45deg,#e81cff 0%,#40c9ff 100%)}.lucky-element-card .card-id{position:absolute;top:20px;right:20px}.lucky-element-card .card-name{position:absolute;top:40px;left:0;right:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lucky-element-card .card-detail{position:absolute;left:0;right:0;bottom:15px}.svg-icon[data-v-932c436c]{width:24px;height:24px;fill:currentColor}details summary[data-v-9b250df6]{display:none}.label[data-v-0422b214]{width:120px}.prize-list-enter-active[data-v-0422b214]{animation:slide-right-0422b214 .5s cubic-bezier(.25,.46,.45,.94) both}.prize-list-leave-active[data-v-0422b214]{animation:slide-left-0422b214 .5s cubic-bezier(.25,.46,.45,.94) both}.prize-operate-enter-active[data-v-0422b214]{animation:show-operate-0422b214 .6s;-webkit-animation:show-operate-0422b214 .6s}.current-prize[data-v-0422b214]{position:relative;display:block;overflow:hidden;isolation:isolate;border-radius:20px;padding:3px}.current-prize[data-v-0422b214]:before{content:"";position:absolute;top:0;left:0;width:400%;height:100%;background:linear-gradient(115deg,#4fcf70,#fad648,#a767e5,#12bcfe,#44ce7b);background-size:25% 100%;animation:an-at-keyframe-css-at-rule-that-translates-via-the-transform-property-the-background-by-negative-25-percent-of-its-width-so-that-it-gives-a-nice-border-animation_-We-use-the-translate-property-to-have-a-nice-transition-so-it_s-not-a-jerk-of-a-start-or-stop-0422b214 .75s linear infinite;translate:-5% 0%;transition:translate .25s ease-out;animation-play-state:running;transition-duration:.75s;translate:0% 0%}.current-prize[data-v-0422b214]:after{content:"";position:absolute;top:4px;right:4px;bottom:4px;left:4px;border-top-left-radius:20px;border-bottom-right-radius:20px;z-index:-1}@keyframes an-at-keyframe-css-at-rule-that-translates-via-the-transform-property-the-background-by-negative-25-percent-of-its-width-so-that-it-gives-a-nice-border-animation_-We-use-the-translate-property-to-have-a-nice-transition-so-it_s-not-a-jerk-of-a-start-or-stop-0422b214{to{transform:translate(-25%)}}@keyframes slide-right-0422b214{0%{transform:translate(-200px)}to{transform:translate(0)}}@keyframes slide-left-0422b214{0%{transform:translate(0)}to{transform:translate(-400px)}}@keyframes show-operate-0422b214{0%{opacity:0}99%{opacity:0}to{opacity:1}}#menu[data-v-50d315b0]{position:absolute;z-index:100;width:100%;bottom:50px;text-align:center;margin:0 auto;font-size:32px}.header-title[data-v-50d315b0]{animation:tracking-in-expand-fwd-50d315b0 .8s cubic-bezier(.215,.61,.355,1) both}.start[data-v-50d315b0]{display:flex;justify-content:center}.btn-start[data-v-50d315b0]{cursor:pointer;display:flex;justify-content:center;align-items:center;width:13rem;overflow:hidden;height:3rem;background-size:300% 300%;-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem);border-radius:5rem;transition:.5s;animation:gradient_301-50d315b0 5s ease infinite;border:double 4px transparent;background-image:linear-gradient(#212121,#212121),linear-gradient(137.48deg,#ffdb3b 10%,#FE53BB 45%,#8F51EA 67%,#0044ff 87%);background-origin:border-box;background-clip:content-box,border-box;animation:pulsate-fwd-50d315b0 1.2s ease-in-out infinite both}.btn-cancel[data-v-50d315b0]{cursor:pointer;display:flex;justify-content:center;align-items:center;width:13rem;overflow:hidden;height:3rem;background-size:300% 300%;-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem);border-radius:5rem;transition:.5s;animation:gradient_301-50d315b0 5s ease infinite;border:double 4px transparent;background-image:linear-gradient(#212121,#212121),linear-gradient(137.48deg,#ffdb3b 10%,#FE53BB 45%,#8F51EA 67%,#0044ff 87%);background-origin:border-box;background-clip:content-box,border-box}#container-stars[data-v-50d315b0]{position:absolute;z-index:-1;width:100%;height:100%;overflow:hidden;transition:.5s;-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem);border-radius:5rem}strong[data-v-50d315b0]{z-index:2;font-family:Avalors Personal Use;font-size:12px;letter-spacing:5px;color:#fff;text-shadow:0 0 4px white}#glow[data-v-50d315b0]{position:absolute;display:flex;width:12rem}.circle[data-v-50d315b0]{width:100%;height:30px;filter:blur(2rem);animation:pulse_3011-50d315b0 4s infinite;z-index:-1}.circle[data-v-50d315b0]:nth-of-type(1){background:rgba(254,83,186,.636)}.circle[data-v-50d315b0]:nth-of-type(2){background:rgba(142,81,234,.704)}.btn-start:hover #container-stars[data-v-50d315b0]{z-index:1;background-color:#212121}.btn-start[data-v-50d315b0]:hover{transform:scale(1.1)}.btn-start[data-v-50d315b0]:active{border:double 4px #FE53BB;background-origin:border-box;background-clip:content-box,border-box;animation:none}.btn-start:active .circle[data-v-50d315b0]{background:#FE53BB}#stars[data-v-50d315b0]{position:relative;background:transparent;width:200rem;height:200rem}#stars[data-v-50d315b0]:after{content:"";position:absolute;top:-10rem;left:-100rem;width:100%;height:100%;animation:animStarRotate-50d315b0 90s linear infinite;background-image:radial-gradient(#ffffff 1px,transparent 1%);background-size:50px 50px}#stars[data-v-50d315b0]:before{content:"";position:absolute;top:0;left:-50%;width:170%;height:500%;animation:animStar-50d315b0 60s linear infinite;background-image:radial-gradient(#ffffff 1px,transparent 1%);background-size:50px 50px;opacity:.5}@keyframes animStar-50d315b0{0%{transform:translateY(0)}to{transform:translateY(-135rem)}}@keyframes animStarRotate-50d315b0{0%{transform:rotate(360deg)}to{transform:rotate(0)}}@keyframes gradient_301-50d315b0{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes pulse_3011-50d315b0{0%{transform:scale(.75);box-shadow:0 0 #000000b3}70%{transform:scale(1);box-shadow:0 0 0 10px #0000}to{transform:scale(.75);box-shadow:0 0 #0000}}.btn-end[data-v-50d315b0]{animation:pulsate-fwd-50d315b0 .9s ease-in-out infinite both;cursor:pointer;--glow-color: rgb(217, 176, 255);--glow-spread-color: rgba(191, 123, 255, .781);--enhanced-glow-color: rgb(231, 206, 255);--btn-color: rgb(100, 61, 136);border:.25em solid var(--glow-color);padding:1em 3em;color:var(--glow-color);font-size:15px;font-weight:700;background-color:var(--btn-color);border-radius:1em;outline:none;box-shadow:0 0 1em .25em var(--glow-color),0 0 4em 1em var(--glow-spread-color),inset 0 0 .75em .25em var(--glow-color);text-shadow:0 0 .5em var(--glow-color);position:relative;transition:all .3s;animation:swing-in-top-fwd .5s cubic-bezier(.175,.885,.32,1.275) both}.btn-end[data-v-50d315b0]:after{pointer-events:none;content:"";position:absolute;top:120%;left:0;height:100%;width:100%;background-color:var(--glow-spread-color);filter:blur(2em);opacity:.7;transform:perspective(1.5em) rotateX(35deg) scaleY(.6)}.btn-end[data-v-50d315b0]:hover{color:var(--btn-color);background-color:var(--glow-color);box-shadow:0 0 1em .25em var(--glow-color),0 0 4em 2em var(--glow-spread-color),inset 0 0 .75em .25em var(--glow-color)}.btn-end[data-v-50d315b0]:active{box-shadow:0 0 .6em .25em var(--glow-color),0 0 2.5em 2em var(--glow-spread-color),inset 0 0 .5em .25em var(--glow-color)}@keyframes pulsate-fwd-50d315b0{0%{transform:scale(1)}50%{transform:scale(1.2)}to{transform:scale(1)}}@keyframes tracking-in-expand-fwd-50d315b0{0%{letter-spacing:-.5em;transform:translateZ(-700px);opacity:0}40%{opacity:.6}to{transform:translateZ(0);opacity:1}} diff --git a/css/chunk-2370e353.css.gz b/css/chunk-2370e353.css.gz new file mode 100644 index 0000000..f72363f Binary files /dev/null and b/css/chunk-2370e353.css.gz differ diff --git a/css/chunk-43007bc6.css b/css/chunk-43007bc6.css new file mode 100644 index 0000000..1201c9a --- /dev/null +++ b/css/chunk-43007bc6.css @@ -0,0 +1 @@ +.pattern-list[data-v-be6d21c1]{margin:0;padding:0;display:grid;grid-template-rows:repeat(7,1fr);grid-gap:1px;border:1px solid #000}.pattern-list li[data-v-be6d21c1]{cursor:pointer} diff --git a/css/chunk-b5138a26.css b/css/chunk-b5138a26.css new file mode 100644 index 0000000..746739a --- /dev/null +++ b/css/chunk-b5138a26.css @@ -0,0 +1 @@ +@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.v-toast--fade-out{animation-name:fadeOut}@keyframes fadeInDown{0%{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:none}}.v-toast--fade-in-down{animation-name:fadeInDown}@keyframes fadeInUp{0%{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:none}}.v-toast--fade-in-up{animation-name:fadeInUp}.fade-enter-active,.fade-leave-active{transition:opacity .15s ease-out}.fade-enter,.fade-leave-to{opacity:0}.v-toast{position:fixed;display:flex;top:0;bottom:0;left:0;right:0;padding:2em;overflow:hidden;z-index:1090;pointer-events:none}.v-toast__item{display:inline-flex;align-items:center;animation-duration:.15s;margin:.5em 0;box-shadow:0 1px 4px #0000001f,0 0 6px #0000000a;border-radius:.25em;pointer-events:auto;opacity:.92;color:#fff;min-height:3em;cursor:pointer}.v-toast__item--success{background-color:#47d78a}.v-toast__item--info{background-color:#1c85d5}.v-toast__item--warning{background-color:#febc22}.v-toast__item--error{background-color:#f7471c}.v-toast__item--default{background-color:#343a40}.v-toast__item--warning{color:#000}.v-toast__item.v-toast__item--top,.v-toast__item.v-toast__item--bottom{align-self:center}.v-toast__item.v-toast__item--top-right,.v-toast__item.v-toast__item--bottom-right{align-self:flex-end}.v-toast__item.v-toast__item--top-left,.v-toast__item.v-toast__item--bottom-left{align-self:flex-start}.v-toast__text{margin:0;padding:.5em 1em;word-break:break-word}.v-toast__icon{display:none}.v-toast.v-toast--top{flex-direction:column}.v-toast.v-toast--bottom{flex-direction:column-reverse}.v-toast.v-toast--custom-parent{position:absolute}@media screen and (max-width: 768px){.v-toast{padding:0;position:fixed!important}}.v-toast__item{opacity:1;min-height:4em}.v-toast__item .v-toast__text{padding:1.5em 1em}.v-toast__item .v-toast__icon{display:block;width:27px;min-width:27px;height:27px;margin-left:1em;background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45.999 45.999'%3e %3cpath fill='%23fff' d='M39.264 6.736c-8.982-8.981-23.545-8.982-32.528 0-8.982 8.982-8.981 23.545 0 32.528 8.982 8.98 23.545 8.981 32.528 0 8.981-8.983 8.98-23.545 0-32.528zM25.999 33a3 3 0 11-6 0V21a3 3 0 116 0v12zm-3.053-17.128c-1.728 0-2.88-1.224-2.844-2.735-.036-1.584 1.116-2.771 2.879-2.771 1.764 0 2.88 1.188 2.917 2.771-.001 1.511-1.152 2.735-2.952 2.735z'/%3e %3c/svg%3e") no-repeat}[dir=rtl] .v-toast__item .v-toast__icon{margin-left:unset;margin-right:1em}.v-toast__item.v-toast__item--success .v-toast__icon{background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3e %3cpath fill='%23fff' d='M26 0C11.664 0 0 11.663 0 26s11.664 26 26 26 26-11.663 26-26S40.336 0 26 0zm14.495 17.329l-16 18a1.997 1.997 0 01-2.745.233l-10-8a2 2 0 012.499-3.124l8.517 6.813L37.505 14.67a2.001 2.001 0 012.99 2.659z'/%3e %3c/svg%3e") no-repeat}.v-toast__item.v-toast__item--error .v-toast__icon{background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51.976 51.976'%3e %3cpath fill='%23fff' d='M44.373 7.603c-10.137-10.137-26.632-10.138-36.77 0-10.138 10.138-10.137 26.632 0 36.77s26.632 10.138 36.77 0c10.137-10.138 10.137-26.633 0-36.77zm-8.132 28.638a2 2 0 01-2.828 0l-7.425-7.425-7.778 7.778a2 2 0 11-2.828-2.828l7.778-7.778-7.425-7.425a2 2 0 112.828-2.828l7.425 7.425 7.071-7.071a2 2 0 112.828 2.828l-7.071 7.071 7.425 7.425a2 2 0 010 2.828z'/%3e %3c/svg%3e") no-repeat}.v-toast__item.v-toast__item--warning .v-toast__icon{background:url("data:image/svg+xml,%3csvg viewBox='0 0 52 52' xmlns='http://www.w3.org/2000/svg'%3e %3cpath fill='%23000' d='M49.466 41.26L29.216 6.85c-.69-1.16-1.89-1.85-3.22-1.85-1.32 0-2.53.69-3.21 1.85L2.536 41.26c-.71 1.2-.72 2.64-.03 3.85.68 1.18 1.89 1.89 3.24 1.89h40.51c1.35 0 2.56-.71 3.23-1.89.7-1.21.69-2.65-.02-3.85zm-25.53-21.405h3.381v3.187l-.724 8.92H24.66l-.725-8.92v-3.187zm2.97 17.344a1.712 1.712 0 01-1.267.543c-.491 0-.914-.181-1.268-.543a1.788 1.788 0 01-.531-1.297c0-.502.176-.935.53-1.297a1.712 1.712 0 011.269-.544c.49 0 .914.181 1.268.544s.53.795.53 1.297c0 .503-.176.934-.53 1.297z'/%3e %3c/svg%3e") no-repeat}.small-alpha-slider{height:10px!important}.small-alpha-slider .small-bar{height:10px!important;width:10px!important}.small-alpha-slider .small-bar div{width:12px!important;height:12px!important;border-radius:5px!important;transform:translate(-6px,-2px);margin-top:1px!important}.bee-alpha-slider{position:relative;margin-bottom:15px;width:100%;height:14px;box-shadow:2px 0 8px #00000014;border-radius:15px}.bee-alpha-slider.is-vertical{width:14px;height:100%;display:inline-block;transform:rotate(180deg)}.bee-alpha-slider.transparent{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.bee-alpha-slider__bar{position:relative;width:100%;height:100%;border-radius:15px}.bee-alpha-slider__bar-pointer{position:absolute;width:14px;height:14px}.bee-alpha-slider__bar-handle{width:14px;height:14px;border-radius:6px;transform:translate(-7px,-2px);background-color:#f8f8f8;margin-top:2px;box-shadow:0 1px 4px #0000005e;cursor:pointer}.bee-alpha-slider__bar-handle.vertical{transform:translateY(-7px);margin-top:0}.bee-compact{margin-bottom:15px;width:auto;box-shadow:3px 0 5px #00000014;display:inline-block}.bee-compact__row{position:relative;width:100%;margin:0}.bee-compact__row>*{display:inline-block;vertical-align:middle}.bee-compact__color_cube{width:100%;height:100%}.bee-compact__color_cube.transparent:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:white}.bee-compact__color_cube.transparent:after{content:"";position:absolute;top:100%;left:0;transform:rotate(-45deg);transform-origin:0 0;width:35px;height:1px;background:red}.bee-compact__color_cube.advance{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAdCAYAAAC9pNwMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABqVJREFUeNrEl11yHDUQx1ua2Zlde2M7jqESqnjg45kjcBwOwQG4BY+8cwWK17xBUUARICQhTmI7tte7Ozs7o+bXLTleuACpKNJqJP3789+doKoSPxfVGxFZioS1iK5Yd0nCJko9iLTVVvZSlCOp5FBF7vP5RFTelyDHvmYvMPPtiP19fu+HIHPetrllX2TLMJAOgEehti3ZY/Axap51ZB5ZDEnGMUoCNCmDbRv+2Q4CDJ5Mymj4OmE0CNj6b5WJlkel3xkiGXjOc0imDH/JDid1AXQEfKgccHg3lN+uhh+v2WkkOvCUnT3GjP2WOfrJzjUNPq/ugPUej1TiwME3+DfVUhWkEQF6LZraJxsp6xHLIzW/DNyAW75PGJVrOxbQFSeWzOsdjQ/tZHTxtSgdzAimMfOAdbas7crUvIWAqZg5+gg8FBzYTOygbo1tAb1xTYMs/q1xAFgnvBx5JrKO2X9pzJrJhr+b5BaY8vjG3O+w7HFnypkZ+zP3K8AWL7FHiRsJappe4knA9fo/pj7WrIrdshBs8cukcu0ljhK2lZt1Q8B1msMj5WCQKoibd8q8p1J8i6aWJnrJCcDljDX2Cm8Jn2WJC9PtIHpYeowza125Dc3c6CQ1MbEdooxoPQw54Ak9jigaKcAMk9ddgUi68ZxMmNbNG8hTXXjOZrPf+vg4C+RpRRJqO0ps8FxtzhoJLiSIHCWtLi9u5LiZyqKv0UvlHmaccukoVjJLFu2YUy946FRidS7beCXN9i3gKzd1Yo53ps7ppTnqEYD0mYNldpuxnvIo2nZb/L+ay9tulA/sJpE/Tfchj1H2kW2KpsFYSK4YgI1vZDJe57XmIAu642N5kCxUJfQ8bA48IKpWGNKi/T7rPWRMBMkp5lhz5mUlV0O+fGAGC5XMkTzoG349I/D+Qis0jpeZBt0CXaZGnwtwdcS7A/4ycOIi3bNI0pzfxoVHQYYDIu+A9djJ5bKX+c2BVKnHS5Xcw8QTecWlXxi/khgvYMFzHlp4/g74WREshg3zpuS9mfowShxyrnv6wFS2Dl12QUDwaO54xIWTKZem8up7M0ojn5BzdftEdPMzII9ljE8kVde8Z5y89PSJYcACAJhWTigFOO1rpqRbWs0pKjp4Nkl6OMiGQiFnKsOnLQNqJNe33yV5iFml/4YLfzB+wwpvuNoT+eq0F+JWYtp50MlXLBvUAkLlXXbdloHkUsREDsc6y9LDvs2pTNJD6eM5+x/KAslqWK/pOo/WEIvw3PC3q8rZz3IzWBqqp2CpTvjAACIVyFhLMQmlwXPU9gYrC+lCZs0VtPkc0Jfc+Va+XK/lK3Pr10XhF8ToAjf1VKktAH0hd3srqesSMmCJaiNwJB/IzNviF9Uor8NnndSkyRBfExbPpdHfKRg/yqH8JCPxdvbZVE6+6GTzmCD9Af45RfhzLGZZtEaIVQVdDpLwVByAHeIu8DXWGTySUil8wSNw6fMoliZnfHsqfXiC2M+gjJXX7wuEOvm4gWUBa9h4xrAAtwy6hHyWo1QQGc9gDkD7sAt8VjqETSnUHaArd0Gupc8ZBv4n4ymUfiEPxEu4/A3eyayX+x+ZZjjoIEl6D+2zrJJgyOoKf68RCKJXOpt4B3xZQNclwVeSbXVd2hXzKXlpqsC3c0ttyR3La6rTW2yyP1dpSbdowUtBji1+aAioxTZXD+ORZcrs+A5YF9kWnnfWeJUSZgnswKeZ7FNHkaeXgjTmowVhkhuQ1pQxCE1aik2A16OVVwtvayxmW6fdeDNKKcs79Zhy5eaFwIOXsxu3grolVsUVS0y0pAKN3tpMStdlheJajZ1V5rxWHxoJjR6crr51frlg59K73AFWf7h3gs8BlWtpsHpqwrioa6nJj5lphgim1C3XdPGuuZm2hYIB90QCrKqxDnPkm81hN6pvAyqElRdvN3exjdXeYGQS8oXGmjgoICQjhUh6jdSYmvQdpakSFArIfg6bqiqZW6t3N6HaNbUX7M4Lt4NK8bX3SblJM9Mas+65xuodpVFRj58HfLyAdPZjftCittnLXaHWKQdczNE4trkfK8GFiT3RVqU523gaBbeC04/3zW3pp0yJWFqfofjZejBfw3bGE3WNO8jrmLtDt5ahVyHt+DiUDv/WtFpAQ+4MrDFvC3Bb+uXiI2f1TXGURfesNPc11mjacki1dK/JKTnsUmYGLnnM/2MycWRt7dCtedrSyhqPe39tPBecjV3rrTWDweqzSl2hsfVwM3lX+UL+f0CuTv/Hn38EGAAvCnNy1JKVIQAAAABJRU5ErkJggg==)}.bee-compact__color_cube .alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.bee-compact__color-cube--wrap{position:relative;width:25px;height:25px;cursor:pointer;overflow:hidden}.bee-compact__color-cube--wrap:hover{transform:scale(1.2);z-index:299;transition:transform .2s}.bee-colorPicker__record{display:flex;align-items:center;margin-top:20px}.bee-colorPicker__record .text{width:48px;margin-right:10px;text-align:right;font-size:12px;color:#666}.bee-colorPicker__record .color-list{width:auto;display:flex;position:relative;margin:0}.bee-colorPicker__record .color-list .color-item{position:relative;width:25px;height:25px;cursor:pointer;overflow:hidden;display:inline-block;vertical-align:middle;margin-right:1px;box-shadow:3px 0 5px #00000014}.bee-colorPicker__record .color-list .color-item__round{border-radius:50%}.bee-colorPicker__record .color-list .color-item.transparent{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.bee-colorPicker__record .color-list .color-item:hover{transform:scale(1.2);z-index:299;transition:transform .2s}.bee-colorPicker__record .color-list .color-item__display{width:100%;height:100%}.small-hue-slider{height:10px!important}.small-hue-slider .small-bar{height:10px!important;width:10px!important}.small-hue-slider .small-bar div{width:12px!important;height:12px!important;border-radius:5px!important;transform:translate(-6px,-2px);margin-top:1px!important}.bee-hue-colorPicker{position:relative;margin-bottom:15px;width:100%;height:14px;box-shadow:2px 0 8px #00000014;border-radius:15px}.bee-hue-colorPicker.is-vertical{width:14px;height:100%;display:inline-block;transform:rotate(180deg)}.bee-hue-colorPicker.transparent{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.bee-hue-colorPicker__inner{position:relative;width:100%;height:100%;border-radius:15px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMkAAAAdCAYAAAAAaUg8AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKtJREFUeNrs09EKgjAUgOGzEFfv/7CVBceiLiJiLnf7fSAbDoUj/iWnyKgRcXxf9Wtt7Vvntf8854jLY3uN19qzf67nH/e2nmmdZ8xjg2x+sI533qf9g4wM/3GvLPumOHVMWf/4SiWWsUG6/6bG+/NWDgE0iQREAiIBkYBIQCQgEhAJiAQQCYgERAIiAZGASEAkIBJAJCASEAmIBEQCIgGRgEgAkYBIYNAqwAD5oWo3bpsiKwAAAABJRU5ErkJggg==);background-size:100%}.bee-hue-colorPicker__inner-pointer{position:absolute;width:14px;height:14px}.bee-hue-colorPicker__inner-handle{width:14px;height:14px;border-radius:6px;transform:translate(-7px,-2px);background-color:#f8f8f8;margin-top:2px;box-shadow:0 1px 4px #0000005e;cursor:pointer}.bee-hue-colorPicker__inner-handle.vertical{transform:translate(-1px,-7px);margin-top:0}.small-light-slider{height:10px!important}.small-light-slider .small-bar{height:10px!important;width:10px!important}.small-light-slider .small-bar div{width:12px!important;height:12px!important;border-radius:5px!important;transform:translate(-6px,-2px);margin-top:1px!important}.bee-light-colorPicker{position:relative;margin-bottom:15px;width:100%;height:14px;box-shadow:2px 0 8px #00000014;border-radius:15px}.bee-light-colorPicker.is-vertical{width:14px;height:100%;display:inline-block;transform:rotate(180deg)}.bee-light-colorPicker.transparent{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.bee-light-colorPicker__inner{position:relative;width:100%;height:100%;border-radius:15px}.bee-light-colorPicker__inner-pointer{position:absolute;width:14px;height:14px}.bee-light-colorPicker__inner-handle{width:14px;height:14px;border-radius:6px;transform:translate(-7px,-2px);background-color:#f8f8f8;margin-top:2px;box-shadow:0 1px 4px #0000005e;cursor:pointer}.bee-light-colorPicker__inner-handle.vertical{transform:translateY(-7px);margin-top:0}.bee-saturation{position:relative;margin-bottom:15px;width:100%;height:125px}.bee-saturation__chrome{border-top-left-radius:5px;border-top-right-radius:5px;border-color:transparent}.bee-saturation__hidden{overflow:hidden}.bee-saturation__white,.bee-saturation__black{position:absolute;top:0;left:0;right:0;bottom:0}.bee-saturation__black{background:linear-gradient(0deg,#000,transparent)}.bee-saturation__white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.bee-saturation__cursor{position:absolute}.bee-saturation__cursor div{transform:translate(-5px,-5px);box-shadow:0 1px 4px #0000005e;width:10px;height:10px;border:1px solid white;border-radius:50%;cursor:pointer}.inputs-controls{display:flex;font-size:16px;margin-bottom:5px}.inputs-controls .formatBtn{position:relative;display:inline-flex;justify-content:center;align-items:center;padding:1px;border:0;text-align:center;cursor:pointer;background-color:transparent;font-weight:700;outline:none;margin-right:5px}.inputs-controls .formatBtn:hover{color:#1a3aff}.inputs-controls .format-group{display:flex;flex-grow:1}.inputs-controls .format-group input{padding:5px;margin:0 3px;min-width:0;text-align:center;border-width:0 0 1px 0;-webkit-appearance:none;appearance:none;-moz-appearance:textfield;outline:none;flex:1}.inputs-controls .format-group input::-webkit-outer-spin-button,.inputs-controls .format-group input::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0}.bee-fk-colorPicker{position:relative;box-sizing:border-box;border-radius:3px;box-shadow:0 0 10px #00000026;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;width:249px;padding-bottom:10px}.bee-fk-colorPicker__inner{padding:12px}.bee-fk-colorPicker__header{margin-bottom:12px;z-index:999;text-align:left}.bee-fk-colorPicker__header .back{border:solid black;border-width:0 1px 1px 0;display:inline-block;padding:4px;margin-left:2px;transform:rotate(135deg);-webkit-transform:rotate(135deg)}.bee-fk-colorPicker__display{position:relative;width:100%;margin:0;text-align:left}.bee-fk-colorPicker__display .transparent{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.bee-fk-colorPicker__display .current-color{margin-right:10px;width:50px;height:24px;box-shadow:3px 0 5px #00000014;position:relative;cursor:pointer;overflow:hidden;display:inline-block;vertical-align:middle}.bee-fk-colorPicker__display .current-color .color-cube{width:100%;height:100%}.bee-fk-colorPicker__display .hexColor-prefix{position:relative;padding:0 4px;font-size:14px;display:inline-block;vertical-align:middle}.bee-fk-colorPicker__display input{width:25px;text-align:center;outline:0;border-top:0;border-right:0;border-left:none;display:inline-block;vertical-align:middle;padding-bottom:3px;border-bottom:1px solid #e3e2e8}.bee-fk-colorPicker__display .hexColor-input{width:64px}.bee-fk-colorPicker__display .action{float:right;vertical-align:middle}.bee-fk-colorPicker__display .action .clear-btn{border-color:transparent;color:#409eff;background:transparent;padding-left:0;padding-right:0;display:inline-block;vertical-align:middle;cursor:pointer}.bee-fk-colorPicker__display .action .copy-btn{border-color:transparent;color:#13ce66cc;background:transparent;padding-left:0;padding-right:0;display:inline-block;margin-left:10px;vertical-align:middle;cursor:pointer}.bee-ele-colorPicker{position:relative;box-sizing:border-box;border-radius:3px;box-shadow:0 0 10px #00000026;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;padding:10px;width:300px}.bee-ele-colorPicker .bee-ele-row{display:flex}.bee-ele-colorPicker .bee-ele-row .bee-ele-saturation{width:280px;height:180px}.bee-ele-colorPicker .bee-ele-row .bee-ele-hue{margin-left:10px;height:180px}.bee-chrome-colorPicker{position:relative;box-sizing:border-box;border-radius:3px;box-shadow:0 0 10px #00000026;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;width:250px;padding-bottom:20px}.bee-chrome-colorPicker-body{padding:0 12px;background-color:#fff}.bee-chrome-colorPicker-body .chrome-controls{display:flex}.bee-chrome-colorPicker-body .chrome-controls .chrome-color-wrap{position:relative;width:36px;height:36px;border-radius:50%;overflow:hidden;z-index:1}.bee-chrome-colorPicker-body .chrome-controls .chrome-color-wrap .current-color{width:100%;height:100%}.bee-chrome-colorPicker-body .chrome-controls .chrome-sliders{flex:1;margin-left:10px}.bee-color-wrap{margin-right:10px;width:50px;height:24px;box-shadow:3px 0 5px #00000014;position:relative;cursor:pointer;overflow:hidden;display:inline-block;vertical-align:middle}.bee-color-wrap.transparent{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.bee-color-wrap.round{width:22px;height:22px;border-radius:50%;border:1px solid #d8d8d8}.bee-color-wrap .current-color{width:100%;height:100%}.vc-alpha-slider[data-v-18925ba6]{position:relative;margin-bottom:15px;width:100%;height:14px;box-shadow:2px 0 8px #00000014;border-radius:15px}.vc-alpha-slider.is-vertical[data-v-18925ba6]{width:14px;height:100%;display:inline-block;transform:rotate(180deg)}.vc-alpha-slider.transparent[data-v-18925ba6]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-alpha-slider__bar[data-v-18925ba6]{position:relative;width:100%;height:100%;border-radius:15px}.vc-alpha-slider__bar-pointer[data-v-18925ba6]{position:absolute;width:14px;height:14px}.vc-alpha-slider__bar-handle[data-v-18925ba6]{width:14px;height:14px;border-radius:6px;transform:translate(-7px,-2px);background-color:#f8f8f8;margin-top:2px;box-shadow:0 1px 4px #0000005e;cursor:pointer}.vc-alpha-slider__bar-handle.vertical[data-v-18925ba6]{transform:translateY(-7px);margin-top:0}.vc-alpha-slider.small-slider[data-v-18925ba6]{height:10px!important}.vc-alpha-slider.small-slider .small-bar[data-v-18925ba6]{height:10px!important;width:10px!important}.vc-alpha-slider.small-slider .small-bar div[data-v-18925ba6]{width:12px!important;height:12px!important;border-radius:5px!important;transform:translate(-6px,-2px);margin-top:1px!important}.vc-compact[data-v-b969fd48]{margin-bottom:15px;width:auto;box-shadow:3px 0 5px #00000014;display:inline-block}.vc-compact__row[data-v-b969fd48]{position:relative;width:100%;margin:0;height:27px}.vc-compact__row>*[data-v-b969fd48]{display:inline-block;vertical-align:middle}.vc-compact__color_cube[data-v-b969fd48]{width:100%;height:100%}.vc-compact__color_cube.transparent[data-v-b969fd48]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:white}.vc-compact__color_cube.transparent[data-v-b969fd48]:after{content:"";position:absolute;top:100%;left:0;transform:rotate(-45deg);transform-origin:0 0;width:35px;height:1px;background:red}.vc-compact__color_cube.advance[data-v-b969fd48]{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAdCAYAAAC9pNwMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABqVJREFUeNrEl11yHDUQx1ua2Zlde2M7jqESqnjg45kjcBwOwQG4BY+8cwWK17xBUUARICQhTmI7tte7Ozs7o+bXLTleuACpKNJqJP3789+doKoSPxfVGxFZioS1iK5Yd0nCJko9iLTVVvZSlCOp5FBF7vP5RFTelyDHvmYvMPPtiP19fu+HIHPetrllX2TLMJAOgEehti3ZY/Axap51ZB5ZDEnGMUoCNCmDbRv+2Q4CDJ5Mymj4OmE0CNj6b5WJlkel3xkiGXjOc0imDH/JDid1AXQEfKgccHg3lN+uhh+v2WkkOvCUnT3GjP2WOfrJzjUNPq/ugPUej1TiwME3+DfVUhWkEQF6LZraJxsp6xHLIzW/DNyAW75PGJVrOxbQFSeWzOsdjQ/tZHTxtSgdzAimMfOAdbas7crUvIWAqZg5+gg8FBzYTOygbo1tAb1xTYMs/q1xAFgnvBx5JrKO2X9pzJrJhr+b5BaY8vjG3O+w7HFnypkZ+zP3K8AWL7FHiRsJappe4knA9fo/pj7WrIrdshBs8cukcu0ljhK2lZt1Q8B1msMj5WCQKoibd8q8p1J8i6aWJnrJCcDljDX2Cm8Jn2WJC9PtIHpYeowza125Dc3c6CQ1MbEdooxoPQw54Ak9jigaKcAMk9ddgUi68ZxMmNbNG8hTXXjOZrPf+vg4C+RpRRJqO0ps8FxtzhoJLiSIHCWtLi9u5LiZyqKv0UvlHmaccukoVjJLFu2YUy946FRidS7beCXN9i3gKzd1Yo53ps7ppTnqEYD0mYNldpuxnvIo2nZb/L+ay9tulA/sJpE/Tfchj1H2kW2KpsFYSK4YgI1vZDJe57XmIAu642N5kCxUJfQ8bA48IKpWGNKi/T7rPWRMBMkp5lhz5mUlV0O+fGAGC5XMkTzoG349I/D+Qis0jpeZBt0CXaZGnwtwdcS7A/4ycOIi3bNI0pzfxoVHQYYDIu+A9djJ5bKX+c2BVKnHS5Xcw8QTecWlXxi/khgvYMFzHlp4/g74WREshg3zpuS9mfowShxyrnv6wFS2Dl12QUDwaO54xIWTKZem8up7M0ojn5BzdftEdPMzII9ljE8kVde8Z5y89PSJYcACAJhWTigFOO1rpqRbWs0pKjp4Nkl6OMiGQiFnKsOnLQNqJNe33yV5iFml/4YLfzB+wwpvuNoT+eq0F+JWYtp50MlXLBvUAkLlXXbdloHkUsREDsc6y9LDvs2pTNJD6eM5+x/KAslqWK/pOo/WEIvw3PC3q8rZz3IzWBqqp2CpTvjAACIVyFhLMQmlwXPU9gYrC+lCZs0VtPkc0Jfc+Va+XK/lK3Pr10XhF8ToAjf1VKktAH0hd3srqesSMmCJaiNwJB/IzNviF9Uor8NnndSkyRBfExbPpdHfKRg/yqH8JCPxdvbZVE6+6GTzmCD9Af45RfhzLGZZtEaIVQVdDpLwVByAHeIu8DXWGTySUil8wSNw6fMoliZnfHsqfXiC2M+gjJXX7wuEOvm4gWUBa9h4xrAAtwy6hHyWo1QQGc9gDkD7sAt8VjqETSnUHaArd0Gupc8ZBv4n4ymUfiEPxEu4/A3eyayX+x+ZZjjoIEl6D+2zrJJgyOoKf68RCKJXOpt4B3xZQNclwVeSbXVd2hXzKXlpqsC3c0ttyR3La6rTW2yyP1dpSbdowUtBji1+aAioxTZXD+ORZcrs+A5YF9kWnnfWeJUSZgnswKeZ7FNHkaeXgjTmowVhkhuQ1pQxCE1aik2A16OVVwtvayxmW6fdeDNKKcs79Zhy5eaFwIOXsxu3grolVsUVS0y0pAKN3tpMStdlheJajZ1V5rxWHxoJjR6crr51frlg59K73AFWf7h3gs8BlWtpsHpqwrioa6nJj5lphgim1C3XdPGuuZm2hYIB90QCrKqxDnPkm81hN6pvAyqElRdvN3exjdXeYGQS8oXGmjgoICQjhUh6jdSYmvQdpakSFArIfg6bqiqZW6t3N6HaNbUX7M4Lt4NK8bX3SblJM9Mas+65xuodpVFRj58HfLyAdPZjftCittnLXaHWKQdczNE4trkfK8GFiT3RVqU523gaBbeC04/3zW3pp0yJWFqfofjZejBfw3bGE3WNO8jrmLtDt5ahVyHt+DiUDv/WtFpAQ+4MrDFvC3Bb+uXiI2f1TXGURfesNPc11mjacki1dK/JKTnsUmYGLnnM/2MycWRt7dCtedrSyhqPe39tPBecjV3rrTWDweqzSl2hsfVwM3lX+UL+f0CuTv/Hn38EGAAvCnNy1JKVIQAAAABJRU5ErkJggg==)}.vc-compact__color_cube .alpha[data-v-b969fd48]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-compact__color-cube--wrap[data-v-b969fd48]{position:relative;width:27px;height:27px;cursor:pointer;overflow:hidden}.vc-compact__color-cube--wrap[data-v-b969fd48]:hover{transform:scale(1.2);z-index:299;transition:transform .2s}.vc-saturation[data-v-058e5db2]{position:relative;margin-bottom:15px;width:100%;height:125px}.vc-saturation__chrome[data-v-058e5db2]{border-top-left-radius:5px;border-top-right-radius:5px;border-color:transparent}.vc-saturation__hidden[data-v-058e5db2]{overflow:hidden}.vc-saturation__white[data-v-058e5db2],.vc-saturation__black[data-v-058e5db2]{position:absolute;top:0;left:0;right:0;bottom:0}.vc-saturation__black[data-v-058e5db2]{background:linear-gradient(0deg,#000,transparent)}.vc-saturation__white[data-v-058e5db2]{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.vc-saturation__cursor[data-v-058e5db2]{position:absolute}.vc-saturation__cursor div[data-v-058e5db2]{transform:translate(-5px,-5px);box-shadow:0 1px 4px #0000005e;width:10px;height:10px;border:1px solid white;border-radius:50%;cursor:pointer}.vc-hue-slider[data-v-e1a08576]{position:relative;margin-bottom:15px;width:100%;height:14px;box-shadow:2px 0 8px #00000014;border-radius:15px}.vc-hue-slider.is-vertical[data-v-e1a08576]{width:14px;height:100%;display:inline-block;transform:rotate(180deg)}.vc-hue-slider.transparent[data-v-e1a08576]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-hue-slider__bar[data-v-e1a08576]{position:relative;width:100%;height:100%;border-radius:15px;background:linear-gradient(to right,rgb(255,0,0) 0%,rgb(255,255,0) 16.66%,rgb(0,255,0) 33.33%,rgb(0,255,255) 50%,rgb(0,0,255) 66.66%,rgb(255,0,255) 83.33%,rgb(255,0,0) 100%);background:-ms-linear-gradient(left,rgb(255,0,0) 0%,rgb(255,255,0) 16.66%,rgb(0,255,0) 33.33%,rgb(0,255,255) 50%,rgb(0,0,255) 66.66%,rgb(255,0,255) 83.33%,rgb(255,0,0) 100%)}.vc-hue-slider__bar-pointer[data-v-e1a08576]{position:absolute;width:14px;height:14px}.vc-hue-slider__bar-handle[data-v-e1a08576]{width:14px;height:14px;border-radius:6px;transform:translate(-7px,-2px);background-color:#f8f8f8;margin-top:2px;box-shadow:0 1px 4px #0000005e;cursor:pointer}.vc-hue-slider__bar-handle.vertical[data-v-e1a08576]{transform:translateY(-7px);margin-top:0}.vc-hue-slider.small-slider[data-v-e1a08576]{height:10px!important}.vc-hue-slider.small-slider .small-bar[data-v-e1a08576]{height:10px!important;width:10px!important}.vc-hue-slider.small-slider .small-bar div[data-v-e1a08576]{width:12px!important;height:12px!important;border-radius:5px!important;transform:translate(-6px,-2px);margin-top:1px!important}.vc-lightness-slider[data-v-94a50a9e]{position:relative;margin-bottom:15px;width:100%;height:14px;box-shadow:2px 0 8px #00000014;border-radius:15px}.vc-lightness-slider.is-vertical[data-v-94a50a9e]{width:14px;height:100%;display:inline-block;transform:rotate(180deg)}.vc-lightness-slider.transparent[data-v-94a50a9e]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-lightness-slider__bar[data-v-94a50a9e]{position:relative;width:100%;height:100%;border-radius:15px}.vc-lightness-slider__bar-pointer[data-v-94a50a9e]{position:absolute;width:14px;height:14px}.vc-lightness-slider__bar-handle[data-v-94a50a9e]{width:14px;height:14px;border-radius:6px;transform:translate(-7px,-2px);background-color:#f8f8f8;margin-top:2px;box-shadow:0 1px 4px #0000005e;cursor:pointer}.vc-lightness-slider__bar-handle.vertical[data-v-94a50a9e]{transform:translateY(-7px);margin-top:0}.vc-lightness-slider.small-slider[data-v-94a50a9e]{height:10px!important}.vc-lightness-slider.small-slider .small-bar[data-v-94a50a9e]{height:10px!important;width:10px!important}.vc-lightness-slider.small-slider .small-bar div[data-v-94a50a9e]{width:12px!important;height:12px!important;border-radius:5px!important;transform:translate(-6px,-2px);margin-top:1px!important}.vc-colorPicker__record[data-v-0f657238]{display:flex;align-items:center;margin-top:15px}.vc-colorPicker__record .text[data-v-0f657238]{width:48px;margin-right:10px;text-align:right;font-size:12px;color:#666}.vc-colorPicker__record .color-list[data-v-0f657238]{width:100%;display:flex;position:relative;margin:0;gap:2px}.vc-colorPicker__record .color-list .color-item[data-v-0f657238]{position:relative;flex:1;max-width:26px;height:26px;border-radius:2px;cursor:pointer;overflow:hidden;display:inline-block;vertical-align:middle;box-shadow:3px 0 5px #0000001a}.vc-colorPicker__record .color-list .color-item__round[data-v-0f657238]{border-radius:50%}.vc-colorPicker__record .color-list .color-item.transparent[data-v-0f657238]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-colorPicker__record .color-list .color-item[data-v-0f657238]:hover{transform:scale(1.2);z-index:299;transition:transform .2s}.vc-colorPicker__record .color-list .color-item__display[data-v-0f657238]{width:100%;height:100%}.vc-display[data-v-80d589ba]{height:28px;display:flex;align-items:center;gap:8px}.vc-display .vc-current-color[data-v-80d589ba]{width:50px;height:100%;box-shadow:3px 0 5px #00000014;border-radius:2px;position:relative;cursor:pointer;overflow:hidden;display:inline-block;vertical-align:middle}.vc-display .vc-current-color.vc-transparent[data-v-80d589ba]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-display .vc-current-color .color-cube[data-v-80d589ba]{width:100%;height:100%}.vc-display .vc-color-input[data-v-80d589ba]{height:100%;flex:1;flex-shrink:0;box-sizing:border-box;position:relative}.vc-display .vc-color-input input[data-v-80d589ba]{padding:0;border:0;outline:none;cursor:pointer;font-size:14px;text-align:center;box-sizing:border-box;background-color:#c8c8c840;color:#666;border-radius:2px;height:100%;width:100%}.vc-display .vc-rgb-input[data-v-80d589ba]{flex:1;font-size:12px;color:#666;text-align:center}.vc-display .vc-rgb-input input[data-v-80d589ba]{padding:4px 0;margin-bottom:2px;border:0;outline:none;cursor:pointer;font-size:14px;text-align:center;background-color:#c8c8c840;color:#666;border-radius:2px;width:100%}.vc-display .vc-alpha-input[data-v-80d589ba]{width:56px;height:100%;border:none;display:flex;justify-content:center;align-items:center;border-radius:2px;font-size:14px}.vc-display .vc-alpha-input>input[data-v-80d589ba]{width:100%;height:100%;padding:0;text-align:center;background-color:#c8c8c840;color:#666;font-size:inherit}.vc-display .vc-alpha-input__inner[data-v-80d589ba]{padding:10px 16px;border-radius:4px;color:#000;font-size:14px;line-height:20px;outline:none;border:none;display:block;box-sizing:border-box;cursor:pointer}.vc-display .vc-input-toggle[data-v-80d589ba]{cursor:pointer;font-size:12px;line-height:12px;width:24px;border-radius:4px;padding:2px}.vc-display .vc-input-toggle[data-v-80d589ba]:hover{background-color:#efefef}.vc-display .vc-input-toggle[data-v-80d589ba]:before{height:0;width:0;margin:auto auto 2px;content:"";display:block;border-bottom:4px solid #888;border-left:4px solid transparent;border-right:4px solid transparent}.vc-display .vc-input-toggle[data-v-80d589ba]:after{height:0;width:0;margin:2px auto auto;content:"";display:block;border-top:4px solid #888;border-left:4px solid transparent;border-right:4px solid transparent}.vc-fk-colorPicker[data-v-0d5bef46]{position:relative;box-sizing:border-box;border-radius:3px;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:initial}.vc-fk-colorPicker__inner[data-v-0d5bef46]{position:relative}.vc-fk-colorPicker__header[data-v-0d5bef46]{margin-bottom:12px;z-index:999;text-align:left}.vc-fk-colorPicker__header .back[data-v-0d5bef46]{border:2px solid rgba(150,150,150,.6);border-width:0 1px 1px 0;display:inline-block;padding:4px;margin-left:2px;transform:rotate(135deg)}.vc-fk-colorPicker__display[data-v-0d5bef46]{position:relative;width:100%;margin:0;text-align:left}.vc-fk-colorPicker__display .transparent[data-v-0d5bef46]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-fk-colorPicker__display .current-color[data-v-0d5bef46]{margin-right:10px;width:50px;height:24px;box-shadow:3px 0 5px #00000014;position:relative;cursor:pointer;overflow:hidden;display:inline-block;vertical-align:middle}.vc-fk-colorPicker__display .current-color .color-cube[data-v-0d5bef46]{width:100%;height:100%}.vc-fk-colorPicker__display .hexColor-prefix[data-v-0d5bef46]{position:relative;padding:0 4px;font-size:14px;display:inline-block;vertical-align:middle}.vc-fk-colorPicker__display input[data-v-0d5bef46]{width:25px;text-align:center;outline:0;border-top:0;border-right:0;border-left:none;display:inline-block;vertical-align:middle;padding-bottom:3px;border-bottom:1px solid #e3e2e8}.vc-fk-colorPicker__display .hexColor-input[data-v-0d5bef46]{width:64px}.vc-fk-colorPicker__display .action[data-v-0d5bef46]{float:right;vertical-align:middle}.vc-fk-colorPicker__display .action .clear-btn[data-v-0d5bef46]{border-color:transparent;color:#409eff;background:transparent;padding-left:0;padding-right:0;display:inline-block;vertical-align:middle;cursor:pointer}.vc-fk-colorPicker__display .action .copy-btn[data-v-0d5bef46]{border-color:transparent;color:#13ce66cc;background:transparent;padding-left:0;padding-right:0;display:inline-block;margin-left:10px;vertical-align:middle;cursor:pointer}.vc-chrome-colorPicker[data-v-33636434]{position:relative;box-sizing:border-box;border-radius:3px;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:initial}.vc-chrome-colorPicker-body[data-v-33636434]{position:relative}.vc-chrome-colorPicker-body .chrome-controls[data-v-33636434]{display:flex}.vc-chrome-colorPicker-body .chrome-controls .chrome-color-wrap[data-v-33636434]{position:relative;width:36px;height:36px;border-radius:50%;overflow:hidden;z-index:1}.vc-chrome-colorPicker-body .chrome-controls .chrome-color-wrap.transparent[data-v-33636434]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-chrome-colorPicker-body .chrome-controls .chrome-color-wrap .current-color[data-v-33636434]{width:100%;height:100%}.vc-chrome-colorPicker-body .chrome-controls .chrome-sliders[data-v-33636434]{flex:1;margin-left:10px}.bee-angle{transform:rotate(90deg)}.bee-angle>*{display:inline-block;vertical-align:middle}.bee-angle.zero-right{transform:rotate(180deg)}.bee-angle.zero-bottom{transform:rotate(270deg)}.bee-angle__round{position:relative;width:16px;height:16px;border:1px solid #666;border-radius:50%;cursor:pointer;display:inline-block;vertical-align:middle}.bee-angle__round:before{content:"";position:absolute;top:50%;left:0;transform:translateY(-50%);width:50%;height:1px;background-color:#666}.vc-gradient-picker[data-v-431cadee]{position:relative}.vc-gradient-picker__header[data-v-431cadee]{margin-bottom:12px;z-index:999;text-align:left;display:flex;justify-content:space-between;align-items:center}.vc-gradient-picker__header .back[data-v-431cadee]{border:2px solid rgba(150,150,150,.65);border-width:0 1px 1px 0;display:inline-block;padding:4px;margin-left:2px;transform:rotate(135deg);margin-right:8px}.vc-gradient-picker .vc-gradient__types[data-v-431cadee]{display:flex;width:100%;justify-content:space-between}.vc-gradient-picker .vc-gradient__types .vc-gradient-wrap__types[data-v-431cadee]{display:flex;background-color:#c8c8c840;border-radius:4px;overflow:hidden;align-items:center}.vc-gradient-picker .vc-gradient__types .vc-gradient__type[data-v-431cadee]{padding:4px 8px;color:#666;cursor:pointer;font-size:12px}.vc-gradient-picker .vc-gradient__types .vc-gradient__type.active[data-v-431cadee]{color:#000;background-color:#c8c8c8cc}.vc-gradient-picker__body[data-v-431cadee]{margin-bottom:12px;display:flex;align-items:center}.vc-gradient-picker__body .vc-color-range[data-v-431cadee]{flex:1}.vc-gradient-picker__body .vc-color-range__container[data-v-431cadee]{position:relative;height:16px;border-radius:5px}.vc-gradient-picker__body .vc-color-range__container .vc-background[data-v-431cadee]{height:100%;border-radius:4px;box-shadow:inset 0 0 0 1px #0000000f}.vc-gradient-picker__body .vc-color-range__container .vc-gradient__stop__container[data-v-431cadee]{position:absolute;width:100%;top:0;height:100%;left:0}.vc-gradient-picker__body .vc-color-range__container .vc-gradient__stop__container .vc-gradient__stop[data-v-431cadee]{position:absolute;top:-2px;width:14px;height:16px;overflow:hidden;border:2px solid #fff;border-radius:2px;cursor:pointer;box-shadow:0 0 2px 1px #00000059;box-sizing:content-box;transform:translate(-9px)}.vc-gradient-picker__body .vc-color-range__container .vc-gradient__stop__container .vc-gradient__stop--inner[data-v-431cadee]{display:inline-block;height:100%}.vc-gradient-picker__body .vc-color-range__container .vc-gradient__stop__container .vc-gradient__stop--current[data-v-431cadee]{position:relative;z-index:1;box-shadow:0 0 2px 2px #2253f4,0 0 1px 1px #2253f480}.vc-gradient-picker .vc-degree-input[data-v-431cadee]{position:relative;z-index:2;font-size:12px;border-radius:4px;display:flex}.vc-gradient-picker .vc-degree-input:hover .vc-degree-input__panel[data-v-431cadee]{display:block}.vc-gradient-picker .vc-degree-input__control[data-v-431cadee]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;border-radius:4px;background-color:#c8c8c840;color:#666;padding:0 6px 0 0}.vc-gradient-picker .vc-degree-input__control input[data-v-431cadee]{max-width:28px;text-align:center;border:none;outline:none;background-color:transparent;color:#666;font-size:inherit;overflow:visible}.vc-gradient-picker .vc-degree-input__panel[data-v-431cadee]{display:none;z-index:10;position:absolute;top:20px;left:0}.vc-gradient-picker .vc-degree-input__panel .vc-degree-input__disk[data-v-431cadee]{padding:4px;background-color:#f1f1f1;box-shadow:0 0 2px #00000029,0 1px 8px #0000000f,0 4px 12px #00000014;border-radius:4px;display:flex;justify-content:center;align-items:center;position:relative;transform:translate(0)}.vc-gradient-picker .vc-picker-degree-input[data-v-431cadee]{margin-left:8px}.vc-colorpicker[data-v-0492277d]{position:relative;box-sizing:border-box;border-radius:3px;box-shadow:0 0 10px #00000026;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:276px;z-index:10000}.vc-colorpicker *[data-v-0492277d]{outline:none;line-height:1}.vc-colorpicker--container[data-v-0492277d]{padding:16px}.vc-colorpicker--tabs[data-v-0492277d]{padding:2px;background:#f6f7f9;border-radius:6px;position:relative;margin-bottom:12px}.vc-colorpicker--tabs__inner[data-v-0492277d]{display:flex;justify-content:space-between;padding:0;background:#f6f7f9;border-bottom:none;position:relative;box-sizing:border-box}.vc-colorpicker--tabs__btn[data-v-0492277d]{flex:1;z-index:2;color:#636c78;font-size:14px;border-radius:4px;cursor:pointer}.vc-colorpicker--tabs__btn.vc-btn-active[data-v-0492277d]{color:#33383e;font-weight:600}.vc-colorpicker--tabs__btn button[data-v-0492277d]{width:100%;background-color:initial;padding:6px 0;font-size:14px;line-height:20px;color:#636c78;border:0;border-radius:0;outline:0;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;font-weight:inherit}.vc-colorpicker--tabs__btn button .vc-btn__content[data-v-0492277d]{position:relative;white-space:nowrap}.vc-colorpicker--tabs__bg[data-v-0492277d]{position:absolute;top:0;bottom:0;background:#fff;box-shadow:0 1px 4px #0000001f;border-radius:4px;z-index:1;transition:left .2s ease-in-out}.vc-colorpicker.black[data-v-0492277d]{background-color:#000;color:#fff}.vc-colorpicker.white[data-v-0492277d]{background-color:#fff;color:#333}.vc-color-wrap[data-v-3ba84123]{margin-right:10px;width:50px;height:24px;box-shadow:3px 0 5px #00000014;position:relative;cursor:pointer;overflow:hidden;display:inline-block;vertical-align:middle}.vc-color-wrap.transparent[data-v-3ba84123]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-color-wrap.round[data-v-3ba84123]{width:22px;height:22px;border-radius:50%;border:1px solid #d8d8d8}.vc-color-wrap .current-color[data-v-3ba84123]{width:100%;height:100%} diff --git a/css/chunk-b5138a26.css.gz b/css/chunk-b5138a26.css.gz new file mode 100644 index 0000000..a9d5cbd Binary files /dev/null and b/css/chunk-b5138a26.css.gz differ diff --git a/dog.svg b/dog.svg new file mode 100644 index 0000000..323cce2 --- /dev/null +++ b/dog.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..c55583b --- /dev/null +++ b/index.html @@ -0,0 +1,20 @@ + + + + + + + + Log-Lottery + + + + + + + +
+ + + + \ No newline at end of file diff --git a/js/chunk-05f6b65c.js b/js/chunk-05f6b65c.js new file mode 100644 index 0000000..9dd3aa5 --- /dev/null +++ b/js/chunk-05f6b65c.js @@ -0,0 +1 @@ +const e=e=>new Promise((a=>{const r=new FileReader;r.readAsBinaryString(e),r.onload=e=>{a(e.target.result)}})),a=e=>new Promise((a=>{const r=new FileReader;r.readAsDataURL(e),r.onload=r=>{a({dataUrl:r.target.result,fileName:e.name})}}));export{a,e as r}; diff --git a/js/chunk-2cb6957a.js b/js/chunk-2cb6957a.js new file mode 100644 index 0000000..2b2bfb2 --- /dev/null +++ b/js/chunk-2cb6957a.js @@ -0,0 +1 @@ +import{b as e,c as l,o as a,e as t,f as o,F as s,A as r,m as u,K as n,s as c,r as d,aa as i,w as p,h as v,x as m,y as b,B as f,p as C,E as w,z as x,k as h,j as g,ab as y,ac as k,t as L}from"./chunk-31fdb132.js";import{a as V,u as P,f as _,i as T,d as U}from"./chunk-c66fc503.js";const S={class:"w-full h-auto"},z=["onClick"],R=V(e({__name:"PatternSetting",props:{rowCount:{type:Number,default:17},cardColor:{type:String,default:"#fff"},patternColor:{type:String,default:"#000"},patternList:{type:Array,default:()=>[]}},setup(e){const c=e,d=l((()=>c));return(e,l)=>(a(),t("div",S,[o("ul",{class:"pattern-list",style:n({gridTemplateColumns:"repeat("+d.value.rowCount+",1fr)"})},[(a(!0),t(s,null,r(7*d.value.rowCount,(e=>(a(),t("li",{onClick:u((l=>((e,l)=>{if(d.value.patternList.includes(l)){const e=d.value.patternList.indexOf(l);d.value.patternList.splice(e,1)}else d.value.patternList.push(l)})(0,e)),["stop"]),class:"w-5 h-5",key:e,style:n({backgroundColor:d.value.patternList.includes(e)?d.value.patternColor:d.value.cardColor})},null,12,z)))),128))],4)]))}}),[["__scopeId","data-v-be6d21c1"]]),A={class:"modal-box"},j=o("h3",{class:"text-lg font-bold"},"提示!",-1),D=o("p",{class:"py-4"},"该操作会重置所有数据,是否继续?",-1),I={class:"modal-action"},N={method:"dialog",class:"flex gap-3"},F=o("h2",null,"全局配置",-1),O={class:"mb-8"},q={class:"flex flex-row items-center w-full gap-24 mb-10 form-control"},B={class:""},E=o("div",{class:"label"},[o("span",{class:"label-text"},"标题")],-1),K={class:"flex flex-row items-center w-full gap-24 mb-10 form-control"},M={class:""},G=o("div",{class:"label"},[o("span",{class:"label-text"},"列数")],-1),H={class:"help"},J={key:0,class:"text-sm text-red-400 help-text"},Q={class:"tooltip","data-tip":"该项比较耗费时间和性能"},W=["disabled"],X=o("span",null,"重设布局",-1),Y={class:"loading loading-ring loading-md"},Z={class:"w-full max-w-xs form-control"},$=o("div",{class:"label"},[o("span",{class:"label-text"},"选择主题")],-1),ee=o("option",{disabled:"",selected:""},"选取主题",-1),le=["value"],ae={class:"w-full max-w-xs form-control"},te=o("div",{class:"label"},[o("span",{class:"label-text"},"卡片颜色")],-1),oe={class:"w-full max-w-xs form-control"},se=o("div",{class:"label"},[o("span",{class:"label-text"},"中奖卡片颜色")],-1),re={class:"w-full max-w-xs form-control"},ue=o("div",{class:"label"},[o("span",{class:"label-text"},"文字颜色")],-1),ne={class:"flex flex-row w-full max-w-xs gap-10 mb-10 form-control"},ce=o("div",{class:"label"},[o("span",{class:"label-text"},"卡片宽度")],-1),de={class:"help"},ie={key:0,class:"text-sm text-red-400 help-text"},pe=o("div",{class:"label"},[o("span",{class:"label-text"},"卡片高度")],-1),ve={class:"help"},me={key:0,class:"text-sm text-red-400 help-text"},be={class:"w-full max-w-xs mb-10 form-control"},fe=o("div",{class:"label"},[o("span",{class:"label-text"},"文字大小")],-1),Ce={class:"w-full max-w-xs form-control"},we=o("div",{class:"label"},[o("span",{class:"label-text"},"高亮颜色")],-1),xe={class:"flex flex-row items-center w-full gap-24 mb-0 form-control"},he=o("div",{class:"label"},[o("span",{class:"label-text"},"图案设置")],-1),ge={class:"h-auto"},ye={class:"flex w-full h-24 gap-3 m-0"},ke=["onClick"],Le=[o("span",null,"清空图案设置",-1)],Ve=[o("span",null,"默认图案设置",-1)],Pe={class:"w-full max-w-xs mb-10 form-control"},_e=o("div",{class:"label"},[o("span",{class:"label-text"},"是否常显奖品列表")],-1),Te=["checked"],Ue=e({__name:"FaceConfig",setup(e){const l=P().globalConfig,n=P().personConfig,V=P().prizeConfig,{getTopTitle:S,getTheme:z,getPatterColor:Ue,getPatternList:Se,getCardColor:ze,getLuckyColor:Re,getTextColor:Ae,getCardSize:je,getTextSize:De,getRowCount:Ie,getIsShowPrizeList:Ne}=c(l),{getAlreadyPersonList:Fe,getNotPersonList:Oe}=c(n),qe=d(),Be=d(),Ee=d(0),Ke=d(z.value.name),Me=d(structuredClone(S.value)),Ge=d(structuredClone(ze.value)),He=d(structuredClone(Re.value)),Je=d(structuredClone(Ae.value)),Qe=d(structuredClone(je.value)),We=d(structuredClone(De.value)),Xe=d(structuredClone(Ie.value)),Ye=d(structuredClone(Ne.value)),Ze=d(structuredClone(Ue.value)),$e=d(Object.keys(k)),el=d(k),ll=d({rowCount:Xe}),al=d({rowCount:""}),tl=i.object({rowCount:i.number({required_error:"必填项",invalid_type_error:"必须填入数字"}).min(1,"最小为1").max(100,"最大为100")}),ol={rowCount:ll.value.rowCount},sl=()=>{Ee.value=2,setTimeout((()=>{const e=Fe.value.length,l=Oe.value.length;if(e<=0&&l<=0)return;const a=Fe.value.concat(Oe.value),t=_(a,Xe.value),o=t.slice(0,e),s=t.slice(e,l+e);n.deleteAllPerson(),n.addNotPersonList(s),n.addAlreadyPersonList(o,null),Ee.value=0}),1e3)},rl=()=>{l.setPatternList([])},ul=()=>{l.resetPatternList()},nl=()=>{l.reset(),n.reset(),V.resetDefault(),window.location.reload()};return p((()=>ll.value.rowCount),(()=>{var e;ol.rowCount=ll.value.rowCount,(e=ol,tl.parseAsync(e)).then((e=>{e.rowCount&&(Ee.value=1,l.setRowCount(e.rowCount))})).catch((e=>{al.value.rowCount=e.issues[0].message}))})),p(Me,(e=>{l.setTopTitle(e)})),p(Ke,(e=>{const a=el.value[e];l.setTheme({name:e,detail:a}),L.themeChange(e),a.primary&&(T(a.primary)||U(a.primary))&&l.setCardColor(a.primary)}),{deep:!0}),p(Ge,(e=>{l.setCardColor(e)}),{deep:!0}),p(He,(e=>{l.setLuckyCardColor(e)}),{deep:!0}),p(Ze,(e=>{l.setPatterColor(e)})),p(Je,(e=>{l.setTextColor(e)}),{deep:!0}),p(Qe,(e=>{l.setCardSize(e)}),{deep:!0}),p(Ye,(()=>{l.setIsShowPrizeList(Ye.value)})),v((()=>{})),(e,l)=>(a(),t(s,null,[o("dialog",{id:"my_modal_1",ref_key:"resetDataDialogRef",ref:Be,class:"border-none modal"},[o("div",A,[j,D,o("div",I,[o("form",N,[o("button",{class:"btn",onClick:l[0]||(l[0]=e=>Be.value.close())},"取消"),o("button",{class:"btn",onClick:nl},"确定")])])])],512),o("div",null,[F,o("div",O,[o("button",{class:"btn btn-sm btn-primary",onClick:l[1]||(l[1]=e=>Be.value.showModal())},"重置所有数据")]),o("label",q,[o("div",B,[E,m(o("input",{type:"text","onUpdate:modelValue":l[2]||(l[2]=e=>Me.value=e),placeholder:"输入标题",class:"w-full max-w-xs input input-bordered"},null,512),[[b,Me.value]])])]),o("label",K,[o("div",M,[G,m(o("input",{type:"number","onUpdate:modelValue":l[3]||(l[3]=e=>ll.value.rowCount=e),placeholder:"Type here",class:"w-full max-w-xs input input-bordered"},null,512),[[b,ll.value.rowCount]]),o("div",H,[al.value.rowCount?(a(),t("span",J,f(al.value.rowCount),1)):C("",!0)])]),o("div",null,[o("div",Q,[o("button",{class:"mt-5 btn btn-info btn-sm",disabled:1!=Ee.value,onClick:sl},[X,m(o("span",Y,null,512),[[w,2==Ee.value]])],8,W)])])]),o("label",Z,[$,m(o("select",{"data-choose-theme":"",class:"w-full max-w-xs border-solid select border-1","onUpdate:modelValue":l[4]||(l[4]=e=>Ke.value=e)},[ee,(a(!0),t(s,null,r($e.value,((e,l)=>(a(),t("option",{key:l,value:e},f(e),9,le)))),128))],512),[[x,Ke.value]])]),o("label",ae,[te,h(g(y),{ref_key:"colorPickerRef",ref:qe,modelValue:Ge.value,"onUpdate:modelValue":l[5]||(l[5]=e=>Ge.value=e),"pure-color":Ge.value,"onUpdate:pureColor":l[6]||(l[6]=e=>Ge.value=e)},null,8,["modelValue","pure-color"])]),o("label",oe,[se,h(g(y),{ref_key:"colorPickerRef",ref:qe,modelValue:He.value,"onUpdate:modelValue":l[7]||(l[7]=e=>He.value=e),"pure-color":He.value,"onUpdate:pureColor":l[8]||(l[8]=e=>He.value=e)},null,8,["modelValue","pure-color"])]),o("label",re,[ue,h(g(y),{ref_key:"colorPickerRef",ref:qe,modelValue:Je.value,"onUpdate:modelValue":l[9]||(l[9]=e=>Je.value=e),"pure-color":Je.value,"onUpdate:pureColor":l[10]||(l[10]=e=>Je.value=e)},null,8,["modelValue","pure-color"])]),o("label",ne,[o("div",null,[ce,m(o("input",{type:"number","onUpdate:modelValue":l[11]||(l[11]=e=>Qe.value.width=e),placeholder:"Type here",class:"w-full max-w-xs input input-bordered"},null,512),[[b,Qe.value.width]]),o("div",de,[al.value.rowCount?(a(),t("span",ie,f(al.value.rowCount),1)):C("",!0)])]),o("div",null,[pe,m(o("input",{type:"number","onUpdate:modelValue":l[12]||(l[12]=e=>Qe.value.height=e),placeholder:"Type here",class:"w-full max-w-xs input input-bordered"},null,512),[[b,Qe.value.height]]),o("div",ve,[al.value.rowCount?(a(),t("span",me,f(al.value.rowCount),1)):C("",!0)])])]),o("label",be,[fe,m(o("input",{type:"number","onUpdate:modelValue":l[13]||(l[13]=e=>We.value=e),placeholder:"Type here",class:"w-full max-w-xs input input-bordered"},null,512),[[b,We.value]])]),o("label",Ce,[we,h(g(y),{ref_key:"colorPickerRef",ref:qe,modelValue:Ze.value,"onUpdate:modelValue":l[14]||(l[14]=e=>Ze.value=e),"pure-color":Ze.value,"onUpdate:pureColor":l[15]||(l[15]=e=>Ze.value=e)},null,8,["modelValue","pure-color"])]),o("label",xe,[o("div",null,[he,o("div",ge,[h(R,{rowCount:g(Ie),cardColor:g(ze),patternColor:g(Ue),patternList:g(Se)},null,8,["rowCount","cardColor","patternColor","patternList"])])])]),o("div",ye,[o("button",{class:"mt-5 btn btn-info btn-sm",onClick:u(rl,["stop"])},Le,8,ke),o("div",{class:"tooltip","data-tip":"默认图案设置针对17列时有效,其他列数请自行设置"},[o("button",{class:"mt-5 btn btn-info btn-sm",onClick:ul},Ve)])]),o("label",Pe,[_e,o("input",{type:"checkbox",checked:Ye.value,onChange:l[16]||(l[16]=e=>Ye.value=!Ye.value),class:"mt-2 border-solid checkbox checkbox-secondary border-1"},null,40,Te)])])],64))}});export{Ue as default}; diff --git a/js/chunk-2edb304e.js b/js/chunk-2edb304e.js new file mode 100644 index 0000000..2f0f6ac --- /dev/null +++ b/js/chunk-2edb304e.js @@ -0,0 +1 @@ +import{b as l,s as e,r as a,o as s,e as o,f as t,B as r,j as p,x as n,a8 as i,v as u,p as b}from"./chunk-31fdb132.js";import{u as d}from"./chunk-c66fc503.js";import{_ as c}from"./chunk-d5be5fd4.js";const m={class:"overflow-y-auto"},f=t("h2",null,"已中奖人员管理",-1),y={class:"flex items-center justify-start gap-10"},v=t("span",null,"中奖人数:",-1),g={class:"flex flex-col"},k={class:"form-control"},x={class:"cursor-pointer label"},h=t("span",{class:"label-text"},"详细信息:",-1),j=l({__name:"PersonAlready",setup(l){const j=d().personConfig,{getAlreadyPersonList:C,getAlreadyPersonDetail:A}=e(j),z=a(!1),N=l=>{j.moveAlreadyToNot(l)},P=[{label:"编号",props:"uid",sort:!0},{label:"姓名",props:"name"},{label:"部门",props:"department"},{label:"身份",props:"identity"},{label:"奖品",props:"prizeName",sort:!0},{label:"操作",actions:[{label:"移入未中奖名单",type:"btn-info",onClick:l=>{N(l)}}]}],_=[{label:"编号",props:"uid",sort:!0},{label:"姓名",props:"name"},{label:"部门",props:"department"},{label:"身份",props:"identity"},{label:"奖品",props:"prizeName",sort:!0},{label:"中奖时间",props:"prizeTime"},{label:"操作",actions:[{label:"移入未中奖名单",type:"btn-info",onClick:l=>{N(l)}}]}];return(l,e)=>(s(),o("div",m,[f,t("div",y,[t("div",null,[v,t("span",null,r(p(C).length),1)]),t("div",g,[t("div",k,[t("label",x,[h,n(t("input",{type:"checkbox",class:"border-solid toggle toggle-primary border-1","onUpdate:modelValue":e[0]||(e[0]=l=>z.value=l)},null,512),[[i,z.value]])])])])]),z.value?b("",!0):(s(),u(c,{key:0,tableColumns:P,data:p(C)},null,8,["data"])),z.value?(s(),u(c,{key:1,tableColumns:_,data:p(A)},null,8,["data"])):b("",!0)]))}});export{j as default}; diff --git a/js/chunk-31fdb132.js b/js/chunk-31fdb132.js new file mode 100644 index 0000000..1df1be2 --- /dev/null +++ b/js/chunk-31fdb132.js @@ -0,0 +1,41 @@ +function e(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[e.toLowerCase()]:e=>!!n[e]}const t={},n=[],r=()=>{},i=()=>!1,a=/^on[^a-z]/,s=e=>a.test(e),o=e=>e.startsWith("onUpdate:"),c=Object.assign,l=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,h=(e,t)=>u.call(e,t),f=Array.isArray,d=e=>"[object Map]"===w(e),p=e=>"[object Set]"===w(e),m=e=>"[object Date]"===w(e),g=e=>"function"==typeof e,v=e=>"string"==typeof e,y=e=>"symbol"==typeof e,_=e=>null!==e&&"object"==typeof e,b=e=>(_(e)||g(e))&&g(e.then)&&g(e.catch),x=Object.prototype.toString,w=e=>x.call(e),S=e=>w(e).slice(8,-1),E=e=>"[object Object]"===w(e),T=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,M=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),A=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},C=/-(\w)/g,k=A((e=>e.replace(C,((e,t)=>t?t.toUpperCase():"")))),R=/\B([A-Z])/g,O=A((e=>e.replace(R,"-$1").toLowerCase())),I=A((e=>e.charAt(0).toUpperCase()+e.slice(1))),P=A((e=>e?`on${I(e)}`:"")),L=(e,t)=>!Object.is(e,t),D=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},F=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U=e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t};let B;const z=()=>B||(B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),V=e("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");function H(e){if(f(e)){const t={};for(let n=0;n{if(e){const n=e.split(W);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function q(e){let t="";if(v(e))t=e;else if(f(e))for(let n=0;nK(e,t)))}const Q=e=>v(e)?e:null==e?"":f(e)||_(e)&&(e.toString===x||!g(e.toString))?JSON.stringify(e,ee,2):String(e),ee=(e,t)=>t&&t.__v_isRef?ee(e,t.value):d(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()]}:!_(t)||f(t)||E(t)?t:String(t);let te;class ne{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=te,!e&&te&&(this.index=(te.scopes||(te.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=te;try{return te=this,e()}finally{te=t}}}on(){te=this}off(){te=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},ce=e=>(e.w&fe)>0,le=e=>(e.n&fe)>0,ue=new WeakMap;let he=0,fe=1;const de=30;let pe;const me=Symbol(""),ge=Symbol("");class ve{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,ie(this,n)}run(){if(!this.active)return this.fn();let e=pe,t=_e;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=pe,pe=this,_e=!0,fe=1<<++he,he<=de?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===n||!y(n)&&n>=e)&&o.push(t)}))}else switch(void 0!==n&&o.push(s.get(n)),t){case"add":f(e)?T(n)&&o.push(s.get("length")):(o.push(s.get(me)),d(e)&&o.push(s.get(ge)));break;case"delete":f(e)||(o.push(s.get(me)),d(e)&&o.push(s.get(ge)));break;case"set":d(e)&&o.push(s.get(me))}if(1===o.length)o[0]&&Me(o[0]);else{const e=[];for(const t of o)t&&e.push(...t);Me(oe(e))}}function Me(e,t){const n=f(e)?e:[...e];for(const r of n)r.computed&&Ae(r);for(const r of n)r.computed||Ae(r)}function Ae(e,t){(e!==pe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Ce=e("__proto__,__v_isRef,__isVue"),ke=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(y)),Re=Oe();function Oe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=bt(this);for(let t=0,i=this.length;t{e[t]=function(...e){xe();const n=bt(this)[t].apply(this,e);return we(),n}})),e}function Ie(e){const t=bt(this);return Se(t,0,e),t.hasOwnProperty(e)}class Pe{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const r=this._isReadonly,i=this._shallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t&&n===(r?i?ht:ut:i?lt:ct).get(e))return e;const a=f(e);if(!r){if(a&&h(Re,t))return Reflect.get(Re,t,n);if("hasOwnProperty"===t)return Ie}const s=Reflect.get(e,t,n);return(y(t)?ke.has(t):Ce(t))?s:(r||Se(e,0,t),i?s:Mt(s)?a&&T(t)?s:s.value:_(s)?r?pt(s):ft(s):s)}}class Le extends Pe{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(vt(i)&&Mt(i)&&!Mt(n))return!1;if(!this._shallow&&(yt(n)||vt(n)||(i=bt(i),n=bt(n)),!f(e)&&Mt(i)&&!Mt(n)))return i.value=n,!0;const a=f(e)&&T(t)?Number(t)e,Ve=e=>Reflect.getPrototypeOf(e);function He(e,t,n=!1,r=!1){const i=bt(e=e.__v_raw),a=bt(t);n||(L(t,a)&&Se(i,0,t),Se(i,0,a));const{has:s}=Ve(i),o=r?ze:n?St:wt;return s.call(i,t)?o(e.get(t)):s.call(i,a)?o(e.get(a)):void(e!==i&&e.get(t))}function je(e,t=!1){const n=this.__v_raw,r=bt(n),i=bt(e);return t||(L(e,i)&&Se(r,0,e),Se(r,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function We(e,t=!1){return e=e.__v_raw,!t&&Se(bt(e),0,me),Reflect.get(e,"size",e)}function Ge(e){e=bt(e);const t=bt(this);return Ve(t).has.call(t,e)||(t.add(e),Te(t,"add",e,e)),this}function Xe(e,t){t=bt(t);const n=bt(this),{has:r,get:i}=Ve(n);let a=r.call(n,e);a||(e=bt(e),a=r.call(n,e));const s=i.call(n,e);return n.set(e,t),a?L(t,s)&&Te(n,"set",e,t):Te(n,"add",e,t),this}function qe(e){const t=bt(this),{has:n,get:r}=Ve(t);let i=n.call(t,e);i||(e=bt(e),i=n.call(t,e)),r&&r.call(t,e);const a=t.delete(e);return i&&Te(t,"delete",e,void 0),a}function $e(){const e=bt(this),t=0!==e.size,n=e.clear();return t&&Te(e,"clear",void 0,void 0),n}function Ye(e,t){return function(n,r){const i=this,a=i.__v_raw,s=bt(a),o=t?ze:e?St:wt;return!e&&Se(s,0,me),a.forEach(((e,t)=>n.call(r,o(e),o(t),i)))}}function Ze(e,t,n){return function(...r){const i=this.__v_raw,a=bt(i),s=d(a),o="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,l=i[e](...r),u=n?ze:t?St:wt;return!t&&Se(a,0,c?ge:me),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:o?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Ke(e){return function(...t){return"delete"!==e&&this}}function Je(){const e={get(e){return He(this,e)},get size(){return We(this)},has:je,add:Ge,set:Xe,delete:qe,clear:$e,forEach:Ye(!1,!1)},t={get(e){return He(this,e,!1,!0)},get size(){return We(this)},has:je,add:Ge,set:Xe,delete:qe,clear:$e,forEach:Ye(!1,!0)},n={get(e){return He(this,e,!0)},get size(){return We(this,!0)},has(e){return je.call(this,e,!0)},add:Ke("add"),set:Ke("set"),delete:Ke("delete"),clear:Ke("clear"),forEach:Ye(!0,!1)},r={get(e){return He(this,e,!0,!0)},get size(){return We(this,!0)},has(e){return je.call(this,e,!0)},add:Ke("add"),set:Ke("set"),delete:Ke("delete"),clear:Ke("clear"),forEach:Ye(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=Ze(i,!1,!1),n[i]=Ze(i,!0,!1),t[i]=Ze(i,!1,!0),r[i]=Ze(i,!0,!0)})),[e,n,t,r]}const[Qe,et,tt,nt]=Je();function rt(e,t){const n=t?e?nt:tt:e?et:Qe;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(h(n,r)&&r in t?n:t,r,i)}const it={get:rt(!1,!1)},at={get:rt(!1,!0)},st={get:rt(!0,!1)},ot={get:rt(!0,!0)},ct=new WeakMap,lt=new WeakMap,ut=new WeakMap,ht=new WeakMap;function ft(e){return vt(e)?e:mt(e,!1,Ne,it,ct)}function dt(e){return mt(e,!1,Ue,at,lt)}function pt(e){return mt(e,!0,Fe,st,ut)}function mt(e,t,n,r,i){if(!_(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const s=(o=e).__v_skip||!Object.isExtensible(o)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(S(o));var o;if(0===s)return e;const c=new Proxy(e,2===s?r:n);return i.set(e,c),c}function gt(e){return vt(e)?gt(e.__v_raw):!(!e||!e.__v_isReactive)}function vt(e){return!(!e||!e.__v_isReadonly)}function yt(e){return!(!e||!e.__v_isShallow)}function _t(e){return gt(e)||vt(e)}function bt(e){const t=e&&e.__v_raw;return t?bt(t):e}function xt(e){return N(e,"__v_skip",!0),e}const wt=e=>_(e)?ft(e):e,St=e=>_(e)?pt(e):e;function Et(e){_e&&pe&&Ee((e=bt(e)).dep||(e.dep=oe()))}function Tt(e,t){const n=(e=bt(e)).dep;n&&Me(n)}function Mt(e){return!(!e||!0!==e.__v_isRef)}function At(e){return kt(e,!1)}function Ct(e){return kt(e,!0)}function kt(e,t){return Mt(e)?e:new Rt(e,t)}class Rt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:bt(e),this._value=t?e:wt(e)}get value(){return Et(this),this._value}set value(e){const t=this.__v_isShallow||yt(e)||vt(e);e=t?e:bt(e),L(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:wt(e),Tt(this))}}function Ot(e){return Mt(e)?e.value:e}const It={get:(e,t,n)=>Ot(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Mt(i)&&!Mt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Pt(e){return gt(e)?e:new Proxy(e,It)}class Lt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Et(this)),(()=>Tt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Dt(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=Bt(e,n);return t}class Nt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=bt(this._object),t=this._key,null==(n=ue.get(e))?void 0:n.get(t);var e,t,n}}class Ft{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ut(e,t,n){return Mt(e)?e:g(e)?new Ft(e):_(e)&&arguments.length>1?Bt(e,t,n):At(e)}function Bt(e,t,n){const r=e[t];return Mt(r)?r:new Nt(e,t,n)}class zt{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ve(e,(()=>{this._dirty||(this._dirty=!0,Tt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=bt(this);return Et(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Vt(e,t,n,r){let i;try{i=r?e(...r):e()}catch(a){jt(a,t,n)}return i}function Ht(e,t,n,r){if(g(e)){const i=Vt(e,t,n,r);return i&&b(i)&&i.catch((e=>{jt(e,t,n)})),i}const i=[];for(let a=0;a>>1,i=Xt[r],a=sn(i);asn(e)-sn(t))),Zt=0;Ztnull==e.id?1/0:e.id,on=(e,t)=>{const n=sn(e)-sn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function cn(e){Gt=!1,Wt=!0,Xt.sort(on);try{for(qt=0;qtv(e)?e.trim():e))),n&&(a=r.map(F))}let c,l=i[c=P(n)]||i[c=P(k(n))];!l&&s&&(l=i[c=P(O(n))]),l&&Ht(l,e,6,a);const u=i[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,Ht(u,e,6,a)}}function fn(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const a=e.emits;let s={},o=!1;if(!g(e)){const r=e=>{const n=fn(e,t,!0);n&&(o=!0,c(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return a||o?(f(a)?a.forEach((e=>s[e]=null)):c(s,a),_(e)&&r.set(e,s),s):(_(e)&&r.set(e,null),null)}function dn(e,t){return!(!e||!s(t))&&(t=t.slice(2).replace(/Once$/,""),h(e,t[0].toLowerCase()+t.slice(1))||h(e,O(t))||h(e,t))}let pn=null,mn=null;function gn(e){const t=pn;return pn=e,mn=e&&e.type.__scopeId||null,t}function vn(e){mn=e}function yn(){mn=null}function _n(e,t=pn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Xi(-1);const i=gn(t);let a;try{a=e(...n)}finally{gn(i),r._d&&Xi(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function bn(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:a,propsOptions:[s],slots:c,attrs:l,emit:u,render:h,renderCache:f,data:d,setupState:p,ctx:m,inheritAttrs:g}=e;let v,y;const _=gn(e);try{if(4&n.shapeFlag){const e=i||r;v=ca(h.call(e,e,f,a,p,d,m)),y=l}else{const e=t;0,v=ca(e.length>1?e(a,{attrs:l,slots:c,emit:u}):e(a,null)),y=t.props?l:xn(l)}}catch(x){Vi.length=0,jt(x,e,1),v=na(Bi)}let b=v;if(y&&!1!==g){const e=Object.keys(y),{shapeFlag:t}=b;e.length&&7&t&&(s&&e.some(o)&&(y=wn(y,s)),b=ia(b,y))}return n.dirs&&(b=ia(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),v=b,gn(_),v}const xn=e=>{let t;for(const n in e)("class"===n||"style"===n||s(n))&&((t||(t={}))[n]=e[n]);return t},wn=(e,t)=>{const n={};for(const r in e)o(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Sn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;ie.__isSuspense,Pn={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,a,s,o,c,l){null==e?function(e,t,n,r,i,a,s,o,c){const{p:l,o:{createElement:u}}=c,h=u("div"),f=e.suspense=Dn(e,i,r,t,h,n,a,s,o,c);l(null,f.pendingBranch=e.ssContent,h,null,r,f,a,s),f.deps>0?(Ln(e,"onPending"),Ln(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,a,s),Un(f,e.ssFallback)):f.resolve(!1,!0)}(t,n,r,i,a,s,o,c,l):function(e,t,n,r,i,a,s,o,{p:c,um:l,o:{createElement:u}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const f=t.ssContent,d=t.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:g,isHydrating:v}=h;if(m)h.pendingBranch=f,Ki(f,m)?(c(m,f,h.hiddenContainer,null,i,h,a,s,o),h.deps<=0?h.resolve():g&&(c(p,d,n,r,i,null,a,s,o),Un(h,d))):(h.pendingId++,v?(h.isHydrating=!1,h.activeBranch=m):l(m,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=u("div"),g?(c(null,f,h.hiddenContainer,null,i,h,a,s,o),h.deps<=0?h.resolve():(c(p,d,n,r,i,null,a,s,o),Un(h,d))):p&&Ki(f,p)?(c(p,f,n,r,i,h,a,s,o),h.resolve(!0)):(c(null,f,h.hiddenContainer,null,i,h,a,s,o),h.deps<=0&&h.resolve()));else if(p&&Ki(f,p))c(p,f,n,r,i,h,a,s,o),Un(h,f);else if(Ln(t,"onPending"),h.pendingBranch=f,h.pendingId++,c(null,f,h.hiddenContainer,null,i,h,a,s,o),h.deps<=0)h.resolve();else{const{timeout:e,pendingId:t}=h;e>0?setTimeout((()=>{h.pendingId===t&&h.fallback(d)}),e):0===e&&h.fallback(d)}}(e,t,n,r,i,s,o,c,l)},hydrate:function(e,t,n,r,i,a,s,o,c){const l=t.suspense=Dn(t,r,n,e.parentNode,document.createElement("div"),null,i,a,s,o,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,s);0===l.deps&&l.resolve(!1,!0);return u},create:Dn,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=Nn(r?n.default:n),e.ssFallback=r?Nn(n.fallback):na(Bi)}};function Ln(e,t){const n=e.props&&e.props[t];g(n)&&n()}function Dn(e,t,n,r,i,a,s,o,c,l,u=!1){const{p:h,m:f,um:d,n:p,o:{parentNode:m,remove:g}}=l;let v;const y=function(e){var t;return null!=(null==(t=e.props)?void 0:t.suspensible)&&!1!==e.props.suspensible}(e);y&&(null==t?void 0:t.pendingBranch)&&(v=t.pendingId,t.deps++);const _=e.props?U(e.props.timeout):void 0,b={vnode:e,parent:t,parentComponent:n,isSVG:s,container:r,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:"number"==typeof _?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:i,pendingBranch:a,pendingId:s,effects:o,parentComponent:c,container:l}=b;let u=!1;if(b.isHydrating)b.isHydrating=!1;else if(!e){u=i&&a.transition&&"out-in"===a.transition.mode,u&&(i.transition.afterLeave=()=>{s===b.pendingId&&(f(a,l,e,0),nn(o))});let{anchor:e}=b;i&&(e=p(i),d(i,c,b,!0)),u||f(a,l,e,0)}Un(b,a),b.pendingBranch=null,b.isInFallback=!1;let h=b.parent,m=!1;for(;h;){if(h.pendingBranch){h.effects.push(...o),m=!0;break}h=h.parent}m||u||nn(o),b.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Ln(r,"onResolve")},fallback(e){if(!b.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:i,isSVG:a}=b;Ln(t,"onFallback");const s=p(n),l=()=>{b.isInFallback&&(h(null,e,i,s,r,null,a,o,c),Un(b,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=l),b.isInFallback=!0,d(n,r,null,!0),u||l()},move(e,t,n){b.activeBranch&&f(b.activeBranch,e,t,n),b.container=e},next:()=>b.activeBranch&&p(b.activeBranch),registerDep(e,t){const n=!!b.pendingBranch;n&&b.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{jt(t,e,0)})).then((i=>{if(e.isUnmounted||b.isUnmounted||b.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:a}=e;Ca(e,i,!1),r&&(a.el=r);const o=!r&&e.subTree.el;t(e,a,m(r||e.subTree.el),r?null:p(e.subTree),b,s,c),o&&g(o),En(e,a.el),n&&0==--b.deps&&b.resolve()}))},unmount(e,t){b.isUnmounted=!0,b.activeBranch&&d(b.activeBranch,n,e,t),b.pendingBranch&&d(b.pendingBranch,n,e,t)}};return b}function Nn(e){let t;if(g(e)){const n=Gi&&e._c;n&&(e._d=!1,ji()),e=e(),n&&(e._d=!0,t=Hi,Wi())}if(f(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function Fn(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):nn(e)}function Un(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,En(r,i))}function Bn(e,t){return Hn(e,null,{flush:"post"})}const zn={};function Vn(e,t,n){return Hn(e,t,n)}function Hn(e,n,{immediate:i,deep:a,flush:s,onTrack:o,onTrigger:c}=t){var u;const h=ae()===(null==(u=ga)?void 0:u.scope)?ga:null;let d,p,m=!1,v=!1;if(Mt(e)?(d=()=>e.value,m=yt(e)):gt(e)?(d=()=>e,a=!0):f(e)?(v=!0,m=e.some((e=>gt(e)||yt(e))),d=()=>e.map((e=>Mt(e)?e.value:gt(e)?Gn(e):g(e)?Vt(e,h,2):void 0))):d=g(e)?n?()=>Vt(e,h,2):()=>{if(!h||!h.isUnmounted)return p&&p(),Ht(e,h,3,[_])}:r,n&&a){const e=d;d=()=>Gn(e())}let y,_=e=>{p=S.onStop=()=>{Vt(e,h,4)}};if(Ma){if(_=r,n?i&&Ht(n,h,3,[d(),v?[]:void 0,_]):d(),"sync"!==s)return r;{const e=Na();y=e.__watcherHandles||(e.__watcherHandles=[])}}let b=v?new Array(e.length).fill(zn):zn;const x=()=>{if(S.active)if(n){const e=S.run();(a||m||(v?e.some(((e,t)=>L(e,b[t]))):L(e,b)))&&(p&&p(),Ht(n,h,3,[e,b===zn?void 0:v&&b[0]===zn?[]:b,_]),b=e)}else S.run()};let w;x.allowRecurse=!!n,"sync"===s?w=x:"post"===s?w=()=>Ei(x,h&&h.suspense):(x.pre=!0,h&&(x.id=h.uid),w=()=>en(x));const S=new ve(d,w);n?i?x():b=S.run():"post"===s?Ei(S.run.bind(S),h&&h.suspense):S.run();const E=()=>{S.stop(),h&&h.scope&&l(h.scope.effects,S)};return y&&y.push(E),E}function jn(e,t,n){const r=this.proxy,i=v(e)?e.includes(".")?Wn(r,e):()=>r[e]:e.bind(r,r);let a;g(t)?a=t:(a=t.handler,n=t);const s=ga;xa(this);const o=Hn(i,a.bind(r),n);return s?xa(s):wa(),o}function Wn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Gn(e,t)}));else if(E(e))for(const n in e)Gn(e[n],t);return e}function Xn(e,n){const r=pn;if(null===r)return e;const i=Oa(r)||r.proxy,a=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0})),Er((()=>{e.isUnmounting=!0})),e}const Kn=[Function,Array],Jn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Kn,onEnter:Kn,onAfterEnter:Kn,onEnterCancelled:Kn,onBeforeLeave:Kn,onLeave:Kn,onAfterLeave:Kn,onLeaveCancelled:Kn,onBeforeAppear:Kn,onAppear:Kn,onAfterAppear:Kn,onAppearCancelled:Kn},Qn={name:"BaseTransition",props:Jn,setup(e,{slots:t}){const n=va(),r=Zn();let i;return()=>{const a=t.default&&ar(t.default(),!0);if(!a||!a.length)return;let s=a[0];if(a.length>1)for(const e of a)if(e.type!==Bi){s=e;break}const o=bt(e),{mode:c}=o;if(r.isLeaving)return nr(s);const l=rr(s);if(!l)return nr(s);const u=tr(l,o,r,n);ir(l,u);const h=n.subTree,f=h&&rr(h);let d=!1;const{getTransitionKey:p}=l.type;if(p){const e=p();void 0===i?i=e:e!==i&&(i=e,d=!0)}if(f&&f.type!==Bi&&(!Ki(l,f)||d)){const e=tr(f,o,r,n);if(ir(f,e),"out-in"===c)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,!1!==n.update.active&&n.update()},nr(s);"in-out"===c&&l.type!==Bi&&(e.delayLeave=(e,t,n)=>{er(r,f)[String(f.key)]=f,e[$n]=()=>{t(),e[$n]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return s}}};function er(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function tr(e,t,n,r){const{appear:i,mode:a,persisted:s=!1,onBeforeEnter:o,onEnter:c,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:h,onLeave:d,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:g,onAppear:v,onAfterAppear:y,onAppearCancelled:_}=t,b=String(e.key),x=er(n,e),w=(e,t)=>{e&&Ht(e,r,9,t)},S=(e,t)=>{const n=t[1];w(e,t),f(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},E={mode:a,persisted:s,beforeEnter(t){let r=o;if(!n.isMounted){if(!i)return;r=g||o}t[$n]&&t[$n](!0);const a=x[b];a&&Ki(e,a)&&a.el[$n]&&a.el[$n](),w(r,[t])},enter(e){let t=c,r=l,a=u;if(!n.isMounted){if(!i)return;t=v||c,r=y||l,a=_||u}let s=!1;const o=e[Yn]=t=>{s||(s=!0,w(t?a:r,[e]),E.delayedLeave&&E.delayedLeave(),e[Yn]=void 0)};t?S(t,[e,o]):o()},leave(t,r){const i=String(e.key);if(t[Yn]&&t[Yn](!0),n.isUnmounting)return r();w(h,[t]);let a=!1;const s=t[$n]=n=>{a||(a=!0,r(),w(n?m:p,[t]),t[$n]=void 0,x[i]===e&&delete x[i])};x[i]=e,d?S(d,[t,s]):s()},clone:e=>tr(e,t,n,r)};return E}function nr(e){if(lr(e))return(e=ia(e)).children=null,e}function rr(e){return lr(e)?e.children?e.children[0]:void 0:e}function ir(e,t){6&e.shapeFlag&&e.component?ir(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ar(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let a=0;ac({name:e.name},t,{setup:e}))():e}const or=e=>!!e.type.__asyncLoader +/*! #__NO_SIDE_EFFECTS__ */;function cr(e,t){const{ref:n,props:r,children:i,ce:a}=t.vnode,s=na(e,r,i);return s.ref=n,s.ce=a,delete t.vnode.ce,s}const lr=e=>e.type.__isKeepAlive,ur={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=va(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,a=new Set;let s=null;const o=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:h}}}=r,f=h("div");function d(e){gr(e),u(e,n,o,!0)}function p(e){i.forEach(((t,n)=>{const r=Ia(t.type);!r||e&&e(r)||m(n)}))}function m(e){const t=i.get(e);s&&Ki(t,s)?s&&gr(s):d(t),i.delete(e),a.delete(e)}r.activate=(e,t,n,r,i)=>{const a=e.component;l(e,t,n,0,o),c(a.vnode,e,t,n,a,o,r,e.slotScopeIds,i),Ei((()=>{a.isDeactivated=!1,a.a&&D(a.a);const t=e.props&&e.props.onVnodeMounted;t&&fa(t,a.parent,e)}),o)},r.deactivate=e=>{const t=e.component;l(e,f,null,1,o),Ei((()=>{t.da&&D(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&fa(n,t.parent,e),t.isDeactivated=!0}),o)},Vn((()=>[e.include,e.exclude]),(([e,t])=>{e&&p((t=>hr(e,t))),t&&p((e=>!hr(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&i.set(g,vr(n.subTree))};return xr(v),Sr(v),Er((()=>{i.forEach((e=>{const{subTree:t,suspense:r}=n,i=vr(t);if(e.type!==i.type||e.key!==i.key)d(e);else{gr(i);const e=i.component.da;e&&Ei(e,r)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!(Zi(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return s=null,r;let o=vr(r);const c=o.type,l=Ia(or(o)?o.type.__asyncResolved||{}:c),{include:u,exclude:h,max:f}=e;if(u&&(!l||!hr(u,l))||h&&l&&hr(h,l))return s=o,r;const d=null==o.key?c:o.key,p=i.get(d);return o.el&&(o=ia(o),128&r.shapeFlag&&(r.ssContent=o)),g=d,p?(o.el=p.el,o.component=p.component,o.transition&&ir(o,o.transition),o.shapeFlag|=512,a.delete(d),a.add(d)):(a.add(d),f&&a.size>parseInt(f,10)&&m(a.values().next().value)),o.shapeFlag|=256,s=o,In(r.type)?r:o}}};function hr(e,t){return f(e)?e.some((e=>hr(e,t))):v(e)?e.split(",").includes(t):"[object RegExp]"===w(e)&&e.test(t)}function fr(e,t){pr(e,"a",t)}function dr(e,t){pr(e,"da",t)}function pr(e,t,n=ga){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(yr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)lr(e.parent.vnode)&&mr(r,t,n,e),e=e.parent}}function mr(e,t,n,r){const i=yr(t,e,r,!0);Tr((()=>{l(r[t],i)}),n)}function gr(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function vr(e){return 128&e.shapeFlag?e.ssContent:e}function yr(e,t,n=ga,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;xe(),xa(n);const i=Ht(t,n,e,r);return wa(),we(),i});return r?i.unshift(a):i.push(a),a}}const _r=e=>(t,n=ga)=>(!Ma||"sp"===e)&&yr(e,((...e)=>t(...e)),n),br=_r("bm"),xr=_r("m"),wr=_r("bu"),Sr=_r("u"),Er=_r("bum"),Tr=_r("um"),Mr=_r("sp"),Ar=_r("rtg"),Cr=_r("rtc");function kr(e,t=ga){yr("ec",e,t)}function Rr(e,t,n,r){let i;const a=n&&n[r];if(f(e)||v(e)){i=new Array(e.length);for(let n=0,r=e.length;nt(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,s=n.length;r!Zi(e)||e.type!==Bi&&!(e.type===Fi&&!Ir(e.children))))?e:null}const Pr=e=>e?Sa(e)?Oa(e)||e.proxy:Pr(e.parent):null,Lr=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Pr(e.parent),$root:e=>Pr(e.root),$emit:e=>e.emit,$options:e=>Wr(e),$forceUpdate:e=>e.f||(e.f=()=>en(e.update)),$nextTick:e=>e.n||(e.n=Qt.bind(e.proxy)),$watch:e=>jn.bind(e)}),Dr=(e,n)=>e!==t&&!e.__isScriptSetup&&h(e,n),Nr={get({_:e},n){const{ctx:r,setupState:i,data:a,props:s,accessCache:o,type:c,appContext:l}=e;let u;if("$"!==n[0]){const c=o[n];if(void 0!==c)switch(c){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return s[n]}else{if(Dr(i,n))return o[n]=1,i[n];if(a!==t&&h(a,n))return o[n]=2,a[n];if((u=e.propsOptions[0])&&h(u,n))return o[n]=3,s[n];if(r!==t&&h(r,n))return o[n]=4,r[n];zr&&(o[n]=0)}}const f=Lr[n];let d,p;return f?("$attrs"===n&&Se(e,0,n),f(e)):(d=c.__cssModules)&&(d=d[n])?d:r!==t&&h(r,n)?(o[n]=4,r[n]):(p=l.config.globalProperties,h(p,n)?p[n]:void 0)},set({_:e},n,r){const{data:i,setupState:a,ctx:s}=e;return Dr(a,n)?(a[n]=r,!0):i!==t&&h(i,n)?(i[n]=r,!0):!h(e.props,n)&&(("$"!==n[0]||!(n.slice(1)in e))&&(s[n]=r,!0))},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,propsOptions:s}},o){let c;return!!r[o]||e!==t&&h(e,o)||Dr(n,o)||(c=s[0])&&h(c,o)||h(i,o)||h(Lr,o)||h(a.config.globalProperties,o)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:h(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Fr=c({},Nr,{get(e,t){if(t!==Symbol.unscopables)return Nr.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!V(t)});function Ur(){const e=va();return e.setupContext||(e.setupContext=Ra(e))}function Br(e){return f(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let zr=!0;function Vr(e){const t=Wr(e),n=e.proxy,i=e.ctx;zr=!1,t.beforeCreate&&Hr(t.beforeCreate,e,"bc");const{data:a,computed:s,methods:o,watch:c,provide:l,inject:u,created:h,beforeMount:d,mounted:p,beforeUpdate:m,updated:v,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:w,destroyed:S,unmounted:E,render:T,renderTracked:M,renderTriggered:A,errorCaptured:C,serverPrefetch:k,expose:R,inheritAttrs:O,components:I,directives:P,filters:L}=t;if(u&&function(e,t,n=r){f(e)&&(e=$r(e));for(const r in e){const n=e[r];let i;i=_(n)?"default"in n?ri(n.from||r,n.default,!0):ri(n.from||r):ri(n),Mt(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[r]=i}}(u,i,null),o)for(const r in o){const e=o[r];g(e)&&(i[r]=e.bind(n))}if(a){const t=a.call(n,n);_(t)&&(e.data=ft(t))}if(zr=!0,s)for(const f in s){const e=s[f],t=g(e)?e.bind(n,n):g(e.get)?e.get.bind(n,n):r,a=!g(e)&&g(e.set)?e.set.bind(n):r,o=Pa({get:t,set:a});Object.defineProperty(i,f,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e})}if(c)for(const r in c)jr(c[r],i,n,r);if(l){const e=g(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{ni(t,e[t])}))}function D(e,t){f(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(h&&Hr(h,e,"c"),D(br,d),D(xr,p),D(wr,m),D(Sr,v),D(fr,y),D(dr,b),D(kr,C),D(Cr,M),D(Ar,A),D(Er,w),D(Tr,E),D(Mr,k),f(R))if(R.length){const t=e.exposed||(e.exposed={});R.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});T&&e.render===r&&(e.render=T),null!=O&&(e.inheritAttrs=O),I&&(e.components=I),P&&(e.directives=P)}function Hr(e,t,n){Ht(f(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function jr(e,t,n,r){const i=r.includes(".")?Wn(n,r):()=>n[r];if(v(e)){const n=t[e];g(n)&&Vn(i,n)}else if(g(e))Vn(i,e.bind(n));else if(_(e))if(f(e))e.forEach((e=>jr(e,t,n,r)));else{const r=g(e.handler)?e.handler.bind(n):t[e.handler];g(r)&&Vn(i,r,e)}}function Wr(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,o=a.get(t);let c;return o?c=o:i.length||n||r?(c={},i.length&&i.forEach((e=>Gr(c,e,s,!0))),Gr(c,t,s)):c=t,_(t)&&a.set(t,c),c}function Gr(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&Gr(e,a,n,!0),i&&i.forEach((t=>Gr(e,t,n,!0)));for(const s in t)if(r&&"expose"===s);else{const r=Xr[s]||n&&n[s];e[s]=r?r(e[s],t[s]):t[s]}return e}const Xr={data:qr,props:Kr,emits:Kr,methods:Zr,computed:Zr,beforeCreate:Yr,created:Yr,beforeMount:Yr,mounted:Yr,beforeUpdate:Yr,updated:Yr,beforeDestroy:Yr,beforeUnmount:Yr,destroyed:Yr,unmounted:Yr,activated:Yr,deactivated:Yr,errorCaptured:Yr,serverPrefetch:Yr,components:Zr,directives:Zr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const r in t)n[r]=Yr(e[r],t[r]);return n},provide:qr,inject:function(e,t){return Zr($r(e),$r(t))}};function qr(e,t){return t?e?function(){return c(g(e)?e.call(this,this):e,g(t)?t.call(this,this):t)}:t:e}function $r(e){if(f(e)){const t={};for(let n=0;n(a.has(e)||(e&&g(e.install)?(a.add(e),e.install(o,...t)):g(e)&&(a.add(e),e(o,...t))),o),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),o),component:(e,t)=>t?(i.components[e]=t,o):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,o):i.directives[e],mount(a,c,l){if(!s){const u=na(n,r);return u.appContext=i,c&&t?t(u,a):e(u,a,l),s=!0,o._container=a,a.__vue_app__=o,Oa(u.component)||u.component.proxy}},unmount(){s&&(e(null,o._container),delete o._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,o),runWithContext(e){ti=o;try{return e()}finally{ti=null}}};return o}}let ti=null;function ni(e,t){if(ga){let n=ga.provides;const r=ga.parent&&ga.parent.provides;r===n&&(n=ga.provides=Object.create(r)),n[e]=t}else;}function ri(e,t,n=!1){const r=ga||pn;if(r||ti){const i=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:ti._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&g(t)?t.call(r&&r.proxy):t}}function ii(){return!!(ga||pn||ti)}function ai(e,n,r,i){const[a,s]=e.propsOptions;let o,c=!1;if(n)for(let t in n){if(M(t))continue;const l=n[t];let u;a&&h(a,u=k(t))?s&&s.includes(u)?(o||(o={}))[u]=l:r[u]=l:dn(e.emitsOptions,t)||t in i&&l===i[t]||(i[t]=l,c=!0)}if(s){const n=bt(r),i=o||t;for(let t=0;t{d=!0;const[t,n]=oi(e,r,!0);c(l,t),n&&u.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!o&&!d)return _(e)&&a.set(e,n),n;if(f(o))for(let n=0;n-1,r[1]=n<0||t-1||h(r,"default"))&&u.push(e)}}}const p=[l,u];return _(e)&&a.set(e,p),p}function ci(e){return"$"!==e[0]}function li(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function ui(e,t){return li(e)===li(t)}function hi(e,t){return f(t)?t.findIndex((t=>ui(t,e))):g(t)&&ui(t,e)?0:-1}const fi=e=>"_"===e[0]||"$stable"===e,di=e=>f(e)?e.map(ca):[ca(e)],pi=(e,t,n)=>{if(t._n)return t;const r=_n(((...e)=>di(t(...e))),n);return r._c=!1,r},mi=(e,t,n)=>{const r=e._ctx;for(const i in e){if(fi(i))continue;const n=e[i];if(g(n))t[i]=pi(0,n,r);else if(null!=n){const e=di(n);t[i]=()=>e}}},gi=(e,t)=>{const n=di(t);e.slots.default=()=>n},vi=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=bt(t),N(t,"_",n)):mi(t,e.slots={})}else e.slots={},t&&gi(e,t);N(e.slots,Ji,1)},yi=(e,n,r)=>{const{vnode:i,slots:a}=e;let s=!0,o=t;if(32&i.shapeFlag){const e=n._;e?r&&1===e?s=!1:(c(a,n),r||1!==e||delete a._):(s=!n.$stable,mi(n,a)),o=n}else n&&(gi(e,n),o={default:1});if(s)for(const t in a)fi(t)||null!=o[t]||delete a[t]};function _i(e,n,r,i,a=!1){if(f(e))return void e.forEach(((e,t)=>_i(e,n&&(f(n)?n[t]:n),r,i,a)));if(or(i)&&!a)return;const s=4&i.shapeFlag?Oa(i.component)||i.component.proxy:i.el,o=a?null:s,{i:c,r:u}=e,d=n&&n.r,p=c.refs===t?c.refs={}:c.refs,m=c.setupState;if(null!=d&&d!==u&&(v(d)?(p[d]=null,h(m,d)&&(m[d]=null)):Mt(d)&&(d.value=null)),g(u))Vt(u,c,12,[o,p]);else{const t=v(u),n=Mt(u);if(t||n){const i=()=>{if(e.f){const n=t?h(m,u)?m[u]:p[u]:u.value;a?f(n)&&l(n,s):f(n)?n.includes(s)||n.push(s):t?(p[u]=[s],h(m,u)&&(m[u]=p[u])):(u.value=[s],e.k&&(p[e.k]=u.value))}else t?(p[u]=o,h(m,u)&&(m[u]=o)):n&&(u.value=o,e.k&&(p[e.k]=o))};o?(i.id=-1,Ei(i,r)):i()}}}let bi=!1;const xi=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,wi=e=>8===e.nodeType;function Si(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:c,insert:l,createComment:u}}=e,h=(n,r,s,c,u,_=!1)=>{const b=wi(n)&&"["===n.data,x=()=>m(n,r,s,c,u,b),{type:w,ref:S,shapeFlag:E,patchFlag:T}=r;let M=n.nodeType;r.el=n,-2===T&&(_=!1,r.dynamicChildren=null);let A=null;switch(w){case Ui:3!==M?""===r.children?(l(r.el=i(""),o(n),n),A=n):A=x():(n.data!==r.children&&(bi=!0,n.data=r.children),A=a(n));break;case Bi:y(n)?(A=a(n),v(r.el=n.content.firstChild,n,s)):A=8!==M||b?x():a(n);break;case zi:if(b&&(M=(n=a(n)).nodeType),1===M||3===M){A=n;const e=!r.children.length;for(let t=0;t{o=o||!!t.dynamicChildren;const{type:l,props:u,patchFlag:h,shapeFlag:f,dirs:p,transition:m}=t,g="input"===l&&p||"option"===l;if(g||-1!==h){if(p&&qn(t,null,n,"created"),u)if(g||!o||48&h)for(const t in u)(g&&t.endsWith("value")||s(t)&&!M(t))&&r(e,t,null,u[t],!1,void 0,n);else u.onClick&&r(e,"onClick",null,u.onClick,!1,void 0,n);let l;(l=u&&u.onVnodeBeforeMount)&&fa(l,n,t);let _=!1;if(y(e)){_=ki(i,m)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;_&&m.beforeEnter(r),v(r,e,n),t.el=e=r}if(p&&qn(t,null,n,"beforeMount"),((l=u&&u.onVnodeMounted)||p||_)&&Fn((()=>{l&&fa(l,n,t),_&&m.enter(e),p&&qn(t,null,n,"mounted")}),i),16&f&&(!u||!u.innerHTML&&!u.textContent)){let r=d(e.firstChild,t,e,n,i,a,o);for(;r;){bi=!0;const e=r;r=r.nextSibling,c(e)}}else 8&f&&e.textContent!==t.children&&(bi=!0,e.textContent=t.children)}return e.nextSibling},d=(e,t,r,i,a,s,o)=>{o=o||!!t.dynamicChildren;const c=t.children,l=c.length;for(let u=0;u{const{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);const h=o(e),f=d(a(e),t,h,n,r,i,s);return f&&wi(f)&&"]"===f.data?a(t.anchor=f):(bi=!0,l(t.anchor=u("]"),h,f),f)},m=(e,t,r,i,s,l)=>{if(bi=!0,t.el=null,l){const t=g(e);for(;;){const n=a(e);if(!n||n===t)break;c(n)}}const u=a(e),h=o(e);return c(e),n(null,t,h,u,r,i,xi(h),s),u},g=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=a(e))&&wi(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return a(e);r--}return e},v=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),an(),void(t._vnode=e);bi=!1,h(t.firstChild,e,null,null,null),an(),t._vnode=e},h]}const Ei=Fn;function Ti(e){return Ai(e)}function Mi(e){return Ai(e,Si)}function Ai(e,i){z().__VUE__=!0;const{insert:a,remove:s,patchProp:o,createElement:c,createText:l,createComment:u,setText:f,setElementText:d,parentNode:p,nextSibling:m,setScopeId:g=r,insertStaticContent:v}=e,y=(e,t,n,r=null,i=null,a=null,s=!1,o=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ki(e,t)&&(r=Y(e),W(e,i,a,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:h}=t;switch(l){case Ui:_(e,t,n,r);break;case Bi:b(e,t,n,r);break;case zi:null==e&&x(t,n,r,s);break;case Fi:I(e,t,n,r,i,a,s,o,c);break;default:1&h?w(e,t,n,r,i,a,s,o,c):6&h?P(e,t,n,r,i,a,s,o,c):(64&h||128&h)&&l.process(e,t,n,r,i,a,s,o,c,K)}null!=u&&i&&_i(u,e&&e.ref,a,t||e,!t)},_=(e,t,n,r)=>{if(null==e)a(t.el=l(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{null==e?a(t.el=u(t.children||""),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=v(e.children,t,n,r,e.el,e.anchor)},w=(e,t,n,r,i,a,s,o,c)=>{s=s||"svg"===t.type,null==e?S(t,n,r,i,a,s,o,c):A(e,t,i,a,s,o,c)},S=(e,t,n,r,i,s,l,u)=>{let h,f;const{type:p,props:m,shapeFlag:g,transition:v,dirs:y}=e;if(h=e.el=c(e.type,s,m&&m.is,m),8&g?d(h,e.children):16&g&&T(e.children,h,null,r,i,s&&"foreignObject"!==p,l,u),y&&qn(e,null,r,"created"),E(h,e,e.scopeId,l,r),m){for(const t in m)"value"===t||M(t)||o(h,t,null,m[t],s,e.children,r,i,$);"value"in m&&o(h,"value",null,m.value),(f=m.onVnodeBeforeMount)&&fa(f,r,e)}y&&qn(e,null,r,"beforeMount");const _=ki(i,v);_&&v.beforeEnter(h),a(h,t,n),((f=m&&m.onVnodeMounted)||_||y)&&Ei((()=>{f&&fa(f,r,e),_&&v.enter(h),y&&qn(e,null,r,"mounted")}),i)},E=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let a=0;a{for(let l=c;l{const l=n.el=e.el;let{patchFlag:u,dynamicChildren:h,dirs:f}=n;u|=16&e.patchFlag;const p=e.props||t,m=n.props||t;let g;r&&Ci(r,!1),(g=m.onVnodeBeforeUpdate)&&fa(g,r,n,e),f&&qn(n,e,r,"beforeUpdate"),r&&Ci(r,!0);const v=a&&"foreignObject"!==n.type;if(h?C(e.dynamicChildren,h,l,r,i,v,s):c||B(e,n,l,null,r,i,v,s,!1),u>0){if(16&u)R(l,n,p,m,r,i,a);else if(2&u&&p.class!==m.class&&o(l,"class",null,m.class,a),4&u&&o(l,"style",p.style,m.style,a),8&u){const t=n.dynamicProps;for(let n=0;n{g&&fa(g,r,n,e),f&&qn(n,e,r,"updated")}),i)},C=(e,t,n,r,i,a,s)=>{for(let o=0;o{if(r!==i){if(r!==t)for(const t in r)M(t)||t in i||o(e,t,r[t],null,c,n.children,a,s,$);for(const t in i){if(M(t))continue;const l=i[t],u=r[t];l!==u&&"value"!==t&&o(e,t,u,l,c,n.children,a,s,$)}"value"in i&&o(e,"value",r.value,i.value)}},I=(e,t,n,r,i,s,o,c,u)=>{const h=t.el=e?e.el:l(""),f=t.anchor=e?e.anchor:l("");let{patchFlag:d,dynamicChildren:p,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(a(h,n,r),a(f,n,r),T(t.children,n,f,i,s,o,c,u)):d>0&&64&d&&p&&e.dynamicChildren?(C(e.dynamicChildren,p,n,i,s,o,c),(null!=t.key||i&&t===i.subTree)&&Ri(e,t,!0)):B(e,t,n,f,i,s,o,c,u)},P=(e,t,n,r,i,a,s,o,c)=>{t.slotScopeIds=o,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,s,c):L(t,n,r,i,a,s,c):N(e,t,c)},L=(e,t,n,r,i,a,s)=>{const o=e.component=ma(e,r,i);if(lr(e)&&(o.ctx.renderer=K),Aa(o),o.asyncDep){if(i&&i.registerDep(o,F),!e.el){const e=o.subTree=na(Bi);b(null,e,t,n)}}else F(o,e,t,n,i,a,s)},N=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:a}=e,{props:s,children:o,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!i&&!o||o&&o.$stable)||r!==s&&(r?!s||Sn(r,s,l):!!s);if(1024&c)return!0;if(16&c)return r?Sn(r,s,l):!!s;if(8&c){const e=t.dynamicProps;for(let t=0;tqt&&Xt.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},F=(e,t,n,r,i,a,s)=>{const o=e.effect=new ve((()=>{if(e.isMounted){let t,{next:n,bu:r,u:o,parent:c,vnode:l}=e,u=n;Ci(e,!1),n?(n.el=l.el,U(e,n,s)):n=l,r&&D(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&fa(t,c,n,l),Ci(e,!0);const h=bn(e),f=e.subTree;e.subTree=h,y(f,h,p(f.el),Y(f),e,i,a),n.el=h.el,null===u&&En(e,h.el),o&&Ei(o,i),(t=n.props&&n.props.onVnodeUpdated)&&Ei((()=>fa(t,c,n,l)),i)}else{let s;const{el:o,props:c}=t,{bm:l,m:u,parent:h}=e,f=or(t);if(Ci(e,!1),l&&D(l),!f&&(s=c&&c.onVnodeBeforeMount)&&fa(s,h,t),Ci(e,!0),o&&Q){const n=()=>{e.subTree=bn(e),Q(o,e.subTree,e,i,null)};f?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const s=e.subTree=bn(e);y(null,s,n,r,e,i,a),t.el=s.el}if(u&&Ei(u,i),!f&&(s=c&&c.onVnodeMounted)){const e=t;Ei((()=>fa(s,h,e)),i)}(256&t.shapeFlag||h&&or(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&Ei(e.a,i),e.isMounted=!0,t=n=r=null}}),(()=>en(c)),e.scope),c=e.update=()=>o.run();c.id=e.uid,Ci(e,!0),c()},U=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:i,attrs:a,vnode:{patchFlag:s}}=e,o=bt(i),[c]=e.propsOptions;let l=!1;if(!(r||s>0)||16&s){let r;ai(e,t,i,a)&&(l=!0);for(const a in o)t&&(h(t,a)||(r=O(a))!==a&&h(t,r))||(c?!n||void 0===n[a]&&void 0===n[r]||(i[a]=si(c,o,a,void 0,e,!0)):delete i[a]);if(a!==o)for(const e in a)t&&h(t,e)||(delete a[e],l=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let r=0;r{const l=e&&e.children,u=e?e.shapeFlag:0,h=t.children,{patchFlag:f,shapeFlag:p}=t;if(f>0){if(128&f)return void H(l,h,n,r,i,a,s,o,c);if(256&f)return void V(l,h,n,r,i,a,s,o,c)}8&p?(16&u&&$(l,i,a),h!==l&&d(n,h)):16&u?16&p?H(l,h,n,r,i,a,s,o,c):$(l,i,a,!0):(8&u&&d(n,""),16&p&&T(h,n,r,i,a,s,o,c))},V=(e,t,r,i,a,s,o,c,l)=>{t=t||n;const u=(e=e||n).length,h=t.length,f=Math.min(u,h);let d;for(d=0;dh?$(e,a,s,!0,!1,f):T(t,r,i,a,s,o,c,l,f)},H=(e,t,r,i,a,s,o,c,l)=>{let u=0;const h=t.length;let f=e.length-1,d=h-1;for(;u<=f&&u<=d;){const n=e[u],i=t[u]=l?la(t[u]):ca(t[u]);if(!Ki(n,i))break;y(n,i,r,null,a,s,o,c,l),u++}for(;u<=f&&u<=d;){const n=e[f],i=t[d]=l?la(t[d]):ca(t[d]);if(!Ki(n,i))break;y(n,i,r,null,a,s,o,c,l),f--,d--}if(u>f){if(u<=d){const e=d+1,n=ed)for(;u<=f;)W(e[u],a,s,!0),u++;else{const p=u,m=u,g=new Map;for(u=m;u<=d;u++){const e=t[u]=l?la(t[u]):ca(t[u]);null!=e.key&&g.set(e.key,u)}let v,_=0;const b=d-m+1;let x=!1,w=0;const S=new Array(b);for(u=0;u=b){W(n,a,s,!0);continue}let i;if(null!=n.key)i=g.get(n.key);else for(v=m;v<=d;v++)if(0===S[v-m]&&Ki(n,t[v])){i=v;break}void 0===i?W(n,a,s,!0):(S[i-m]=u+1,i>=w?w=i:x=!0,y(n,t[i],r,null,a,s,o,c,l),_++)}const E=x?function(e){const t=e.slice(),n=[0];let r,i,a,s,o;const c=e.length;for(r=0;r>1,e[n[o]]0&&(t[r]=n[a-1]),n[a]=r)}}a=n.length,s=n[a-1];for(;a-- >0;)n[a]=s,s=t[s];return n}(S):n;for(v=E.length-1,u=b-1;u>=0;u--){const e=m+u,n=t[e],f=e+1{const{el:s,type:o,transition:c,children:l,shapeFlag:u}=e;if(6&u)return void j(e.component.subTree,t,n,r);if(128&u)return void e.suspense.move(t,n,r);if(64&u)return void o.move(e,t,n,K);if(o===Fi){a(s,t,n);for(let e=0;e{let i;for(;e&&e!==t;)i=m(e),a(e,n,r),e=i;a(t,n,r)})(e,t,n);if(2!==r&&1&u&&c)if(0===r)c.beforeEnter(s),a(s,t,n),Ei((()=>c.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=c,o=()=>a(s,t,n),l=()=>{e(s,(()=>{o(),i&&i()}))};r?r(s,o,l):l()}else a(s,t,n)},W=(e,t,n,r=!1,i=!1)=>{const{type:a,props:s,ref:o,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:h,dirs:f}=e;if(null!=o&&_i(o,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const d=1&u&&f,p=!or(e);let m;if(p&&(m=s&&s.onVnodeBeforeUnmount)&&fa(m,t,e),6&u)q(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);d&&qn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,i,K,r):l&&(a!==Fi||h>0&&64&h)?$(l,t,n,!1,!0):(a===Fi&&384&h||!i&&16&u)&&$(c,t,n),r&&G(e)}(p&&(m=s&&s.onVnodeUnmounted)||d)&&Ei((()=>{m&&fa(m,t,e),d&&qn(e,null,t,"unmounted")}),n)},G=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===Fi)return void X(n,r);if(t===zi)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),s(e),e=n;s(t)})(e);const a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,s=()=>t(n,a);r?r(e.el,a,s):s()}else a()},X=(e,t)=>{let n;for(;e!==t;)n=m(e),s(e),e=n;s(t)},q=(e,t,n)=>{const{bum:r,scope:i,update:a,subTree:s,um:o}=e;r&&D(r),i.stop(),a&&(a.active=!1,W(s,e,t,n)),o&&Ei(o,t),Ei((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},$=(e,t,n,r=!1,i=!1,a=0)=>{for(let s=a;s6&e.shapeFlag?Y(e.component.subTree):128&e.shapeFlag?e.suspense.next():m(e.anchor||e.el),Z=(e,t,n)=>{null==e?t._vnode&&W(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),rn(),an(),t._vnode=e},K={p:y,um:W,m:j,r:G,mt:L,mc:T,pc:B,pbc:C,n:Y,o:e};let J,Q;return i&&([J,Q]=i(K)),{render:Z,hydrate:J,createApp:ei(Z,J)}}function Ci({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ki(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ri(e,t,n=!1){const r=e.children,i=t.children;if(f(r)&&f(i))for(let a=0;ae&&(e.disabled||""===e.disabled),Ii=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Pi=(e,t)=>{const n=e&&e.to;if(v(n)){if(t){return t(n)}return null}return n};function Li(e,t,n,{o:{insert:r},m:i},a=2){0===a&&r(e.targetAnchor,t,n);const{el:s,anchor:o,shapeFlag:c,children:l,props:u}=e,h=2===a;if(h&&r(s,t,n),(!h||Oi(u))&&16&c)for(let f=0;f{16&y&&u(_,e,t,i,a,s,o,c)};v?g(n,l):h&&g(h,f)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,d=t.targetAnchor=e.targetAnchor,m=Oi(e.props),g=m?n:u,y=m?r:d;if(s=s||Ii(u),b?(f(e.dynamicChildren,b,g,i,a,s,o),Ri(e,t,!0)):c||h(e,t,g,y,i,a,s,o,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Li(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Pi(t.props,p);e&&Li(t,e,null,l,0)}else m&&Li(t,u,d,l,1)}Ni(t)},remove(e,t,n,r,{um:i,o:{remove:a}},s){const{shapeFlag:o,children:c,anchor:l,targetAnchor:u,target:h,props:f}=e;if(h&&a(u),s&&a(l),16&o){const e=s||!Oi(f);for(let r=0;r0?Hi||n:null,Wi(),Gi>0&&Hi&&Hi.push(e),e}function $i(e,t,n,r,i,a){return qi(ta(e,t,n,r,i,a,!0))}function Yi(e,t,n,r,i){return qi(na(e,t,n,r,i,!0))}function Zi(e){return!!e&&!0===e.__v_isVNode}function Ki(e,t){return e.type===t.type&&e.key===t.key}const Ji="__vInternal",Qi=({key:e})=>null!=e?e:null,ea=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||Mt(e)||g(e)?{i:pn,r:e,k:t,f:!!n}:e:null);function ta(e,t=null,n=null,r=0,i=null,a=(e===Fi?0:1),s=!1,o=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qi(t),ref:t&&ea(t),scopeId:mn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:pn};return o?(ua(c,n),128&a&&e.normalize(c)):n&&(c.shapeFlag|=v(n)?8:16),Gi>0&&!s&&Hi&&(c.patchFlag>0||6&a)&&32!==c.patchFlag&&Hi.push(c),c}const na=function(e,t=null,n=null,r=0,i=null,a=!1){e&&e!==An||(e=Bi);if(Zi(e)){const r=ia(e,t,!0);return n&&ua(r,n),Gi>0&&!a&&Hi&&(6&r.shapeFlag?Hi[Hi.indexOf(e)]=r:Hi.push(r)),r.patchFlag|=-2,r}s=e,g(s)&&"__vccOpts"in s&&(e=e.__vccOpts);var s;if(t){t=ra(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=q(e)),_(n)&&(_t(n)&&!f(n)&&(n=c({},n)),t.style=H(n))}const o=v(e)?1:In(e)?128:(e=>e.__isTeleport)(e)?64:_(e)?4:g(e)?2:0;return ta(e,t,n,r,i,o,a,!0)};function ra(e){return e?_t(e)||Ji in e?c({},e):e:null}function ia(e,t,n=!1){const{props:r,ref:i,patchFlag:a,children:s}=e,o=t?ha(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Qi(o),ref:t&&t.ref?n&&i?f(i)?i.concat(ea(t)):[i,ea(t)]:ea(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fi?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ia(e.ssContent),ssFallback:e.ssFallback&&ia(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function aa(e=" ",t=0){return na(Ui,null,e,t)}function sa(e,t){const n=na(zi,null,e);return n.staticCount=t,n}function oa(e="",t=!1){return t?(ji(),Yi(Bi,null,e)):na(Bi,null,e)}function ca(e){return null==e||"boolean"==typeof e?na(Bi):f(e)?na(Fi,null,e.slice()):"object"==typeof e?la(e):na(Ui,null,String(e))}function la(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ia(e)}function ua(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),ua(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Ji in t?3===r&&pn&&(1===pn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=pn}}else g(t)?(t={default:t,_ctx:pn},n=32):(t=String(t),64&r?(n=16,t=[aa(t)]):n=8);e.children=t,e.shapeFlag|=n}function ha(...e){const t={};for(let n=0;nga||pn;let ya,_a,ba="__VUE_INSTANCE_SETTERS__";(_a=z()[ba])||(_a=z()[ba]=[]),_a.push((e=>ga=e)),ya=e=>{_a.length>1?_a.forEach((t=>t(e))):_a[0](e)};const xa=e=>{ya(e),e.scope.on()},wa=()=>{ga&&ga.scope.off(),ya(null)};function Sa(e){return 4&e.vnode.shapeFlag}let Ea,Ta,Ma=!1;function Aa(e,t=!1){Ma=t;const{props:n,children:r}=e.vnode,i=Sa(e);!function(e,t,n,r=!1){const i={},a={};N(a,Ji,1),e.propsDefaults=Object.create(null),ai(e,t,i,a);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=r?i:dt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}(e,n,i,t),vi(e,r);const a=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=xt(new Proxy(e.ctx,Nr));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?Ra(e):null;xa(e),xe();const i=Vt(r,e,0,[e.props,n]);if(we(),wa(),b(i)){if(i.then(wa,wa),t)return i.then((n=>{Ca(e,n,t)})).catch((t=>{jt(t,e,0)}));e.asyncDep=i}else Ca(e,i,t)}else ka(e,t)}(e,t):void 0;return Ma=!1,a}function Ca(e,t,n){g(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_(t)&&(e.setupState=Pt(t)),ka(e,n)}function ka(e,t,n){const i=e.type;if(!e.render){if(!t&&Ea&&!i.render){const t=i.template||Wr(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:s}=i,o=c(c({isCustomElement:n,delimiters:a},r),s);i.render=Ea(t,o)}}e.render=i.render||r,Ta&&Ta(e)}xa(e),xe();try{Vr(e)}finally{we(),wa()}}function Ra(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(Se(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}function Oa(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Pt(xt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Lr?Lr[n](e):void 0,has:(e,t)=>t in e||t in Lr}))}function Ia(e,t=!0){return g(e)?e.displayName||e.name:e.name||t&&e.__name}const Pa=(e,t)=>function(e,t,n=!1){let i,a;const s=g(e);return s?(i=e,a=r):(i=e.get,a=e.set),new zt(i,a,s||!a,n)}(e,0,Ma);function La(e,t,n){const r=arguments.length;return 2===r?_(t)&&!f(t)?Zi(t)?na(e,null,[t]):na(e,t):na(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Zi(n)&&(n=[n]),na(e,t,n))}const Da=Symbol.for("v-scx"),Na=()=>ri(Da);function Fa(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&Hi&&Hi.push(e),!0}const Ua="3.3.8",Ba={createComponentInstance:ma,setupComponent:Aa,renderComponentRoot:bn,setCurrentRenderingInstance:gn,isVNode:Zi,normalizeVNode:ca},za="undefined"!=typeof document?document:null,Va=za&&za.createElement("template"),Ha={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?za.createElementNS("http://www.w3.org/2000/svg",e):za.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>za.createTextNode(e),createComment:e=>za.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>za.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){const s=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{Va.innerHTML=r?`${e}`:e;const i=Va.content;if(r){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ja="transition",Wa="animation",Ga=Symbol("_vtc"),Xa=(e,{slots:t})=>La(Qn,Ka(e),t);Xa.displayName="Transition";const qa={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},$a=Xa.props=c({},Jn,qa),Ya=(e,t=[])=>{f(e)?e.forEach((e=>e(...t))):e&&e(...t)},Za=e=>!!e&&(f(e)?e.some((e=>e.length>1)):e.length>1);function Ka(e){const t={};for(const c in e)c in qa||(t[c]=e[c]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=s,appearToClass:h=o,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(_(e))return[Ja(e.enter),Ja(e.leave)];{const t=Ja(e);return[t,t]}}(i),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:x,onLeave:w,onLeaveCancelled:S,onBeforeAppear:E=y,onAppear:T=b,onAppearCancelled:M=x}=t,A=(e,t,n)=>{es(e,t?h:o),es(e,t?u:s),n&&n()},C=(e,t)=>{e._isLeaving=!1,es(e,f),es(e,p),es(e,d),t&&t()},k=e=>(t,n)=>{const i=e?T:b,s=()=>A(t,e,n);Ya(i,[t,s]),ts((()=>{es(t,e?l:a),Qa(t,e?h:o),Za(i)||rs(t,r,g,s)}))};return c(t,{onBeforeEnter(e){Ya(y,[e]),Qa(e,a),Qa(e,s)},onBeforeAppear(e){Ya(E,[e]),Qa(e,l),Qa(e,u)},onEnter:k(!1),onAppear:k(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>C(e,t);Qa(e,f),os(),Qa(e,d),ts((()=>{e._isLeaving&&(es(e,f),Qa(e,p),Za(w)||rs(e,r,v,n))})),Ya(w,[e,n])},onEnterCancelled(e){A(e,!1),Ya(x,[e])},onAppearCancelled(e){A(e,!0),Ya(M,[e])},onLeaveCancelled(e){C(e),Ya(S,[e])}})}function Ja(e){return U(e)}function Qa(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[Ga]||(e[Ga]=new Set)).add(t)}function es(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[Ga];n&&(n.delete(t),n.size||(e[Ga]=void 0))}function ts(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let ns=0;function rs(e,t,n,r){const i=e._endId=++ns,a=()=>{i===e._endId&&r()};if(n)return setTimeout(a,n);const{type:s,timeout:o,propCount:c}=is(e,t);if(!s)return r();const l=s+"end";let u=0;const h=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&h()};setTimeout((()=>{u(n[e]||"").split(", "),i=r(`${ja}Delay`),a=r(`${ja}Duration`),s=as(i,a),o=r(`${Wa}Delay`),c=r(`${Wa}Duration`),l=as(o,c);let u=null,h=0,f=0;t===ja?s>0&&(u=ja,h=s,f=a.length):t===Wa?l>0&&(u=Wa,h=l,f=c.length):(h=Math.max(s,l),u=h>0?s>l?ja:Wa:null,f=u?u===ja?a.length:c.length:0);return{type:u,timeout:h,propCount:f,hasTransform:u===ja&&/\b(transform|all)(,|$)/.test(r(`${ja}Property`).toString())}}function as(e,t){for(;e.lengthss(t)+ss(e[n]))))}function ss(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function os(){return document.body.offsetHeight}const cs=Symbol("_vod"),ls={beforeMount(e,{value:t},{transition:n}){e[cs]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):us(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),us(e,!0),r.enter(e)):r.leave(e,(()=>{us(e,!1)})):us(e,t))},beforeUnmount(e,{value:t}){us(e,t)}};function us(e,t){e.style.display=t?e[cs]:"none"}const hs=/\s*!important$/;function fs(e,t,n){if(f(n))n.forEach((n=>fs(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=ps[t];if(n)return n;let r=k(t);if("filter"!==r&&r in e)return ps[t]=r;r=I(r);for(let i=0;i{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Ht(function(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=ws(),n}(r,i);gs(e,n,s,o)}else s&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,s,o),a[t]=void 0)}}const _s=/(?:Once|Passive|Capture)$/;let bs=0;const xs=Promise.resolve(),ws=()=>bs||(xs.then((()=>bs=0)),bs=Date.now());const Ss=/^on[a-z]/; +/*! #__NO_SIDE_EFFECTS__ */ +function Es(e,t){const n=sr(e);class r extends Ms{constructor(e){super(n,e,t)}}return r.def=n,r} +/*! #__NO_SIDE_EFFECTS__ */const Ts="undefined"!=typeof HTMLElement?HTMLElement:class{};class Ms extends Ts{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Qt((()=>{this._connected||(co(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let n=0;n{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:r}=e;let i;if(n&&!f(n))for(const a in n){const e=n[a];(e===Number||e&&e.type===Number)&&(a in this._props&&(this._props[a]=U(this._props[a])),(i||(i=Object.create(null)))[k(a)]=!0)}this._numberProps=i,t&&this._resolveProps(e),this._applyStyles(r),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=f(t)?t:Object.keys(t||{});for(const r of Object.keys(this))"_"!==r[0]&&n.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of n.map(k))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(e){this._setProp(r,e)}})}_setAttr(e){let t=this.getAttribute(e);const n=k(e);this._numberProps&&this._numberProps[n]&&(t=U(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(O(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(O(e),t+""):t||this.removeAttribute(O(e))))}_update(){co(this._createVNode(),this.shadowRoot)}_createVNode(){const e=na(this._def,c({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),O(e)!==e&&t(O(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Ms){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function As(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{As(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Cs(e.el,t);else if(e.type===Fi)e.children.forEach((e=>As(e,t)));else if(e.type===zi){let{el:n,anchor:r}=e;for(;n&&(Cs(n,t),n!==r);)n=n.nextSibling}}function Cs(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const ks=new WeakMap,Rs=new WeakMap,Os=Symbol("_moveCb"),Is=Symbol("_enterCb"),Ps={name:"TransitionGroup",props:c({},$a,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=va(),r=Zn();let i,a;return Sr((()=>{if(!i.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode(),i=e[Ga];i&&i.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const a=1===t.nodeType?t:t.parentNode;a.appendChild(r);const{hasTransform:s}=is(r);return a.removeChild(r),s}(i[0].el,n.vnode.el,t))return;i.forEach(Ds),i.forEach(Ns);const r=i.filter(Fs);os(),r.forEach((e=>{const n=e.el,r=n.style;Qa(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const i=n[Os]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",i),n[Os]=null,es(n,t))};n.addEventListener("transitionend",i)}))})),()=>{const s=bt(e),o=Ka(s);let c=s.tag||Fi;i=a,a=t.default?ar(t.default()):[];for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>D(t,e):t};function Bs(e){e.target.composing=!0}function zs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Vs=Symbol("_assign"),Hs={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Vs]=Us(i);const a=r||i.props&&"number"===i.props.type;gs(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),a&&(r=F(r)),e[Vs](r)})),n&&gs(e,"change",(()=>{e.value=e.value.trim()})),t||(gs(e,"compositionstart",Bs),gs(e,"compositionend",zs),gs(e,"change",zs))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},a){if(e[Vs]=Us(a),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===t)return;if((i||"number"===e.type)&&F(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},js={deep:!0,created(e,t,n){e[Vs]=Us(n),gs(e,"change",(()=>{const t=e._modelValue,n=$s(e),r=e.checked,i=e[Vs];if(f(t)){const e=J(t,n),a=-1!==e;if(r&&!a)i(t.concat(n));else if(!r&&a){const n=[...t];n.splice(e,1),i(n)}}else if(p(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Ys(e,r))}))},mounted:Ws,beforeUpdate(e,t,n){e[Vs]=Us(n),Ws(e,t,n)}};function Ws(e,{value:t,oldValue:n},r){e._modelValue=t,f(t)?e.checked=J(t,r.props.value)>-1:p(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=K(t,Ys(e,!0)))}const Gs={created(e,{value:t},n){e.checked=K(t,n.props.value),e[Vs]=Us(n),gs(e,"change",(()=>{e[Vs]($s(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e[Vs]=Us(r),t!==n&&(e.checked=K(t,r.props.value))}},Xs={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=p(t);gs(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?F($s(e)):$s(e)));e[Vs](e.multiple?i?new Set(t):t:t[0])})),e[Vs]=Us(r)},mounted(e,{value:t}){qs(e,t)},beforeUpdate(e,t,n){e[Vs]=Us(n)},updated(e,{value:t}){qs(e,t)}};function qs(e,t){const n=e.multiple;if(!n||f(t)||p(t)){for(let r=0,i=e.options.length;r-1:i.selected=t.has(a);else if(K($s(i),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function $s(e){return"_value"in e?e._value:e.value}function Ys(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Zs={created(e,t,n){Js(e,t,n,null,"created")},mounted(e,t,n){Js(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Js(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Js(e,t,n,r,"updated")}};function Ks(e,t){switch(e){case"SELECT":return Xs;case"TEXTAREA":return Hs;default:switch(t){case"checkbox":return js;case"radio":return Gs;default:return Hs}}}function Js(e,t,n,r,i){const a=Ks(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}const Qs=["ctrl","shift","alt","meta"],eo={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Qs.some((n=>e[`${n}Key`]&&!t.includes(n)))},to=(e,t)=>(n,...r)=>{for(let e=0;e{"class"===t?function(e,t,n){const r=e[Ga];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,i):"style"===t?function(e,t,n){const r=e.style,i=v(n);if(n&&!i){if(t&&!v(t))for(const e in t)null==n[e]&&fs(r,e,"");for(const e in n)fs(r,e,n[e])}else{const a=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),cs in e&&(r.display=a)}}(e,n,r):s(t)?o(t)||ys(e,t,0,r,c):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Ss.test(t)&&g(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Ss.test(t)&&v(n))return!1;return t in e}(e,t,r,i))?function(e,t,n,r,i,a,s){if("innerHTML"===t||"textContent"===t)return r&&s(r,i,a),void(e[t]=null==n?"":n);const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){e._value=n;const r=null==n?"":n;return("OPTION"===o?e.getAttribute("value"):e.value)!==r&&(e.value=r),void(null==n&&e.removeAttribute(t))}let c=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=Z(n):null==n&&"string"===r?(n="",c=!0):"number"===r&&(n=0,c=!0)}try{e[t]=n}catch(l){}c&&e.removeAttribute(t)}(e,t,r,a,c,l,u):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(ms,t.slice(6,t.length)):e.setAttributeNS(ms,t,n);else{const r=Y(t);null==n||r&&!Z(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,i))}},Ha);let io,ao=!1;function so(){return io||(io=Ti(ro))}function oo(){return io=ao?io:Mi(ro),ao=!0,io}const co=(...e)=>{so().render(...e)},lo=(...e)=>{oo().hydrate(...e)},uo=(...e)=>{const t=so().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=ho(e);if(!r)return;const i=t._component;g(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function ho(e){if(v(e)){return document.querySelector(e)}return e}let fo=!1;const po=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Qn,BaseTransitionPropsValidators:Jn,Comment:Bi,EffectScope:ne,Fragment:Fi,KeepAlive:ur,ReactiveEffect:ve,Static:zi,Suspense:Pn,Teleport:Di,Text:Ui,Transition:Xa,TransitionGroup:Ls,VueElement:Ms,assertNumber:function(e,t){},callWithAsyncErrorHandling:Ht,callWithErrorHandling:Vt,camelize:k,capitalize:I,cloneVNode:ia,compatUtils:null,compile:()=>{},computed:Pa,createApp:uo,createBlock:Yi,createCommentVNode:oa,createElementBlock:$i,createElementVNode:ta,createHydrationRenderer:Mi,createPropsRestProxy:function(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n},createRenderer:Ti,createSSRApp:(...e)=>{const t=oo().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=ho(e);if(t)return n(t,!0,t instanceof SVGElement)},t},createSlots:function(e,t){for(let n=0;n{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e},createStaticVNode:sa,createTextVNode:aa,createVNode:na,customRef:function(e){return new Lt(e)},defineAsyncComponent:function(e){g(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:a,suspensible:s=!0,onError:o}=e;let c,l=null,u=0;const h=()=>{let e;return l||(e=l=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),o)return new Promise(((t,n)=>{o(e,(()=>t((u++,l=null,h()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==l&&l?l:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return sr({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return c},setup(){const e=ga;if(c)return()=>cr(c,e);const t=t=>{l=null,jt(t,e,13,!r)};if(s&&e.suspense||Ma)return h().then((t=>()=>cr(t,e))).catch((e=>(t(e),()=>r?na(r,{error:e}):null)));const o=At(!1),u=At(),f=At(!!i);return i&&setTimeout((()=>{f.value=!1}),i),null!=a&&setTimeout((()=>{if(!o.value&&!u.value){const e=new Error(`Async component timed out after ${a}ms.`);t(e),u.value=e}}),a),h().then((()=>{o.value=!0,e.parent&&lr(e.parent.vnode)&&en(e.parent.update)})).catch((e=>{t(e),u.value=e})),()=>o.value&&c?cr(c,e):u.value&&r?na(r,{error:u.value}):n&&!f.value?na(n):void 0}})},defineComponent:sr,defineCustomElement:Es,defineEmits:function(){return null},defineExpose:function(e){},defineModel:function(){},defineOptions:function(e){},defineProps:function(){return null},defineSSRCustomElement:e=>Es(e,lo),defineSlots:function(){return null},get devtools(){return ln},effect:function(e,t){e.effect instanceof ve&&(e=e.effect.fn);const n=new ve(e);t&&(c(n,t),t.scope&&ie(n,t.scope)),t&&t.lazy||n.run();const r=n.run.bind(n);return r.effect=n,r},effectScope:re,getCurrentInstance:va,getCurrentScope:ae,getTransitionRawChildren:ar,guardReactiveProps:ra,h:La,handleError:jt,hasInjectionContext:ii,hydrate:lo,initCustomFormatter:function(){},initDirectivesForSSR:()=>{fo||(fo=!0,Hs.getSSRProps=({value:e})=>({value:e}),Gs.getSSRProps=({value:e},t)=>{if(t.props&&K(t.props.value,e))return{checked:!0}},js.getSSRProps=({value:e},t)=>{if(f(e)){if(t.props&&J(e,t.props.value)>-1)return{checked:!0}}else if(p(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Zs.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=Ks(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},ls.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},inject:ri,isMemoSame:Fa,isProxy:_t,isReactive:gt,isReadonly:vt,isRef:Mt,isRuntimeOnly:()=>!Ea,isShallow:yt,isVNode:Zi,markRaw:xt,mergeDefaults:function(e,t){const n=Br(e);for(const r in t){if(r.startsWith("__skip"))continue;let e=n[r];e?f(e)||g(e)?e=n[r]={type:e,default:t[r]}:e.default=t[r]:null===e&&(e=n[r]={default:t[r]}),e&&t[`__skip_${r}`]&&(e.skipFactory=!0)}return n},mergeModels:function(e,t){return e&&t?f(e)&&f(t)?e.concat(t):c({},Br(e),Br(t)):e||t},mergeProps:ha,nextTick:Qt,normalizeClass:q,normalizeProps:function(e){if(!e)return null;let{class:t,style:n}=e;return t&&!v(t)&&(e.class=q(t)),n&&(e.style=H(n)),e},normalizeStyle:H,onActivated:fr,onBeforeMount:br,onBeforeUnmount:Er,onBeforeUpdate:wr,onDeactivated:dr,onErrorCaptured:kr,onMounted:xr,onRenderTracked:Cr,onRenderTriggered:Ar,onScopeDispose:se,onServerPrefetch:Mr,onUnmounted:Tr,onUpdated:Sr,openBlock:ji,popScopeId:yn,provide:ni,proxyRefs:Pt,pushScopeId:vn,queuePostFlushCb:nn,reactive:ft,readonly:pt,ref:At,registerRuntimeCompiler:function(e){Ea=e,Ta=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Fr))}},render:co,renderList:Rr,renderSlot:Or,resolveComponent:Mn,resolveDirective:kn,resolveDynamicComponent:Cn,resolveFilter:null,resolveTransitionHooks:tr,setBlockTracking:Xi,setDevtoolsHook:function e(t,n){var r,i;if(ln=t,ln)ln.enabled=!0,un.forEach((({event:e,args:t})=>ln.emit(e,...t))),un=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(i=null==(r=window.navigator)?void 0:r.userAgent)?void 0:i.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{ln||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,un=[])}),3e3)}else un=[]},setTransitionHooks:ir,shallowReactive:dt,shallowReadonly:function(e){return mt(e,!0,Be,ot,ht)},shallowRef:Ct,ssrContextKey:Da,ssrUtils:Ba,stop:function(e){e.effect.stop()},toDisplayString:Q,toHandlerKey:P,toHandlers:function(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:P(r)]=e[r];return n},toRaw:bt,toRef:Ut,toRefs:Dt,toValue:function(e){return g(e)?e():Ot(e)},transformVNodeArgs:function(e){},triggerRef:function(e){Tt(e)},unref:Ot,useAttrs:function(){return Ur().attrs},useCssModule:function(e="$style"){{const n=va();if(!n)return t;const r=n.type.__cssModules;if(!r)return t;const i=r[e];return i||t}},useCssVars:function(e){const t=va();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Cs(e,n)))},r=()=>{const r=e(t.proxy);As(t.subTree,r),n(r)};Bn(r),xr((()=>{const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),Tr((()=>e.disconnect()))}))},useModel:function(e,t,n){const r=va();if(n&&n.local){const n=At(e[t]);return Vn((()=>e[t]),(e=>n.value=e)),Vn(n,(n=>{n!==e[t]&&r.emit(`update:${t}`,n)})),n}return{__v_isRef:!0,get value(){return e[t]},set value(e){r.emit(`update:${t}`,e)}}},useSSRContext:Na,useSlots:function(){return Ur().slots},useTransitionState:Zn,vModelCheckbox:js,vModelDynamic:Zs,vModelRadio:Gs,vModelSelect:Xs,vModelText:Hs,vShow:ls,version:Ua,warn:function(e,...t){},watch:Vn,watchEffect:function(e,t){return Hn(e,null,t)},watchPostEffect:Bn,watchSyncEffect:function(e,t){return Hn(e,null,{flush:"sync"})},withAsyncContext:function(e){const t=va();let n=e();return wa(),b(n)&&(n=n.catch((e=>{throw xa(t),e}))),[n,()=>xa(t)]},withCtx:_n,withDefaults:function(e,t){return null},withDirectives:Xn,withKeys:(e,t)=>n=>{if(!("key"in n))return;const r=O(n.key);return t.some((e=>e===r||no[e]===r))?e(n):void 0},withMemo:function(e,t,n,r){const i=n[r];if(i&&Fa(i,e))return i;const a=t();return a.memo=e.slice(),n[r]=a},withModifiers:to,withScopeId:e=>_n},Symbol.toStringTag,{value:"Module"})),mo="160",go={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},vo=1,yo=2,_o=3,bo=0,xo=1,wo=100,So=204,Eo=205,To=0,Mo=1,Ao=2,Co=0,ko=1,Ro=2,Oo=3,Io=4,Po=5,Lo=6,Do="attached",No="detached",Fo=300,Uo=301,Bo=302,zo=303,Vo=304,Ho=306,jo=1e3,Wo=1001,Go=1002,Xo=1003,qo=1004,$o=1005,Yo=1006,Zo=1007,Ko=1008,Jo=1009,Qo=1012,ec=1013,tc=1014,nc=1015,rc=1016,ic=1017,ac=1018,sc=1020,oc=1023,cc=1026,lc=1027,uc=1029,hc=1031,fc=1033,dc=33776,pc=33777,mc=33778,gc=33779,vc=35840,yc=35841,_c=35842,bc=35843,xc=36196,wc=37492,Sc=37496,Ec=37808,Tc=37809,Mc=37810,Ac=37811,Cc=37812,kc=37813,Rc=37814,Oc=37815,Ic=37816,Pc=37817,Lc=37818,Dc=37819,Nc=37820,Fc=37821,Uc=36492,Bc=36494,zc=36495,Vc=36284,Hc=36285,jc=36286,Wc=2300,Gc=2301,Xc=2302,qc=2400,$c=2401,Yc=2402,Zc=2500,Kc=2501,Jc=3e3,Qc=3001,el="",tl="srgb",nl="srgb-linear",rl="display-p3",il="display-p3-linear",al="linear",sl="srgb",ol="rec709",cl="p3",ll=7680,ul=35044,hl="300 es",fl=1035,dl=2e3,pl=2001;class ml{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){if(void 0===this._listeners)return;const n=this._listeners[e];if(void 0!==n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}dispatchEvent(e){if(void 0===this._listeners)return;const t=this._listeners[e.type];if(void 0!==t){e.target=this;const n=t.slice(0);for(let t=0,r=n.length;t>8&255]+gl[e>>16&255]+gl[e>>24&255]+"-"+gl[255&t]+gl[t>>8&255]+"-"+gl[t>>16&15|64]+gl[t>>24&255]+"-"+gl[63&n|128]+gl[n>>8&255]+"-"+gl[n>>16&255]+gl[n>>24&255]+gl[255&r]+gl[r>>8&255]+gl[r>>16&255]+gl[r>>24&255]).toLowerCase()}function xl(e,t,n){return Math.max(t,Math.min(n,e))}function wl(e,t){return(e%t+t)%t}function Sl(e,t,n){return(1-n)*e+n*t}function El(e){return 0==(e&e-1)&&0!==e}function Tl(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}function Ml(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 new Error("Invalid component type.")}}function Al(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 new Error("Invalid component type.")}}const Cl={DEG2RAD:yl,RAD2DEG:_l,generateUUID:bl,clamp:xl,euclideanModulo:wl,mapLinear:function(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)},inverseLerp:function(e,t,n){return e!==t?(n-e)/(t-e):0},lerp:Sl,damp:function(e,t,n,r){return Sl(e,t,1-Math.exp(-n*r))},pingpong:function(e,t=1){return t-Math.abs(wl(e,2*t)-t)},smoothstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*(3-2*e)},smootherstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-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&&(vl=e);let t=vl+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296},degToRad:function(e){return e*yl},radToDeg:function(e){return e*_l},isPowerOfTwo:El,ceilPowerOfTwo:function(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},floorPowerOfTwo:Tl,setQuaternionFromProperEuler:function(e,t,n,r,i){const a=Math.cos,s=Math.sin,o=a(n/2),c=s(n/2),l=a((t+r)/2),u=s((t+r)/2),h=a((t-r)/2),f=s((t-r)/2),d=a((r-t)/2),p=s((r-t)/2);switch(i){case"XYX":e.set(o*u,c*h,c*f,o*l);break;case"YZY":e.set(c*f,o*u,c*h,o*l);break;case"ZXZ":e.set(c*h,c*f,o*u,o*l);break;case"XZX":e.set(o*u,c*p,c*d,o*l);break;case"YXY":e.set(c*d,o*u,c*p,o*l);break;case"ZYZ":e.set(c*p,c*d,o*u,o*l)}},normalize:Al,denormalize:Ml};class kl{constructor(e=0,t=0){kl.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(xl(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}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,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Rl{constructor(e,t,n,r,i,a,s,o,c){Rl.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==e&&this.set(e,t,n,r,i,a,s,o,c)}set(e,t,n,r,i,a,s,o,c){const l=this.elements;return l[0]=e,l[1]=r,l[2]=s,l[3]=t,l[4]=i,l[5]=o,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,a=n[0],s=n[3],o=n[6],c=n[1],l=n[4],u=n[7],h=n[2],f=n[5],d=n[8],p=r[0],m=r[3],g=r[6],v=r[1],y=r[4],_=r[7],b=r[2],x=r[5],w=r[8];return i[0]=a*p+s*v+o*b,i[3]=a*m+s*y+o*x,i[6]=a*g+s*_+o*w,i[1]=c*p+l*v+u*b,i[4]=c*m+l*y+u*x,i[7]=c*g+l*_+u*w,i[2]=h*p+f*v+d*b,i[5]=h*m+f*y+d*x,i[8]=h*g+f*_+d*w,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],c=e[7],l=e[8];return t*a*l-t*s*c-n*i*l+n*s*o+r*i*c-r*a*o}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],c=e[7],l=e[8],u=l*a-s*c,h=s*o-l*i,f=c*i-a*o,d=t*u+n*h+r*f;if(0===d)return this.set(0,0,0,0,0,0,0,0,0);const p=1/d;return e[0]=u*p,e[1]=(r*c-l*n)*p,e[2]=(s*n-r*a)*p,e[3]=h*p,e[4]=(l*t-r*o)*p,e[5]=(r*i-s*t)*p,e[6]=f*p,e[7]=(n*o-c*t)*p,e[8]=(a*t-n*i)*p,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,s){const o=Math.cos(i),c=Math.sin(i);return this.set(n*o,n*c,-n*(o*a+c*s)+a+e,-r*c,r*o,-r*(-c*a+o*s)+s+t,0,0,1),this}scale(e,t){return this.premultiply(Ol.makeScale(e,t)),this}rotate(e){return this.premultiply(Ol.makeRotation(-e)),this}translate(e,t){return this.premultiply(Ol.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let r=0;r<9;r++)if(t[r]!==n[r])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return(new this.constructor).fromArray(this.elements)}}const Ol=new Rl;function Il(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}const Pl={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:Uint8ClampedArray,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function Ll(e,t){return new Pl[e](t)}function Dl(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function Nl(){const e=Dl("canvas");return e.style.display="block",e}const Fl={};function Ul(e){e in Fl||(Fl[e]=!0)}const Bl=(new Rl).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),zl=(new Rl).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Vl={[nl]:{transfer:al,primaries:ol,toReference:e=>e,fromReference:e=>e},[tl]:{transfer:sl,primaries:ol,toReference:e=>e.convertSRGBToLinear(),fromReference:e=>e.convertLinearToSRGB()},[il]:{transfer:al,primaries:cl,toReference:e=>e.applyMatrix3(zl),fromReference:e=>e.applyMatrix3(Bl)},[rl]:{transfer:sl,primaries:cl,toReference:e=>e.convertSRGBToLinear().applyMatrix3(zl),fromReference:e=>e.applyMatrix3(Bl).convertLinearToSRGB()}},Hl=new Set([nl,il]),jl={enabled:!0,_workingColorSpace:nl,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(e){if(!Hl.has(e))throw new Error(`Unsupported working color space, "${e}".`);this._workingColorSpace=e},convert:function(e,t,n){if(!1===this.enabled||t===n||!t||!n)return e;const r=Vl[t].toReference;return(0,Vl[n].fromReference)(r(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 Vl[e].primaries},getTransfer:function(e){return e===el?al:Vl[e].transfer}};function Wl(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function Gl(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}let Xl;class ql{static getDataURL(e){if(/^data:/i.test(e.src))return e.src;if("undefined"==typeof HTMLCanvasElement)return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===Xl&&(Xl=Dl("canvas")),Xl.width=e.width,Xl.height=e.height;const n=Xl.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=Xl}return t.width>2048||t.height>2048?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){const t=Dl("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==Fo)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case jo:e.x=e.x-Math.floor(e.x);break;case Wo:e.x=e.x<0?0:1;break;case Go: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 jo:e.y=e.y-Math.floor(e.y);break;case Wo:e.y=e.y<0?0:1;break;case Go: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)}get encoding(){return Ul("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===tl?Qc:Jc}set encoding(e){Ul("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===Qc?tl:el}}Jl.DEFAULT_IMAGE=null,Jl.DEFAULT_MAPPING=Fo,Jl.DEFAULT_ANISOTROPY=1;class Ql{constructor(e=0,t=0,n=0,r=1){Ql.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=r}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,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=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){const t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i;const a=.01,s=.1,o=e.elements,c=o[0],l=o[4],u=o[8],h=o[1],f=o[5],d=o[9],p=o[2],m=o[6],g=o[10];if(Math.abs(l-h)o&&e>v?ev?o=0?1:-1,r=1-t*t;if(r>Number.EPSILON){const i=Math.sqrt(r),a=Math.atan2(i,t*n);e=Math.sin(e*a)/i,s=Math.sin(s*a)/i}const i=s*n;if(o=o*e+h*i,c=c*e+f*i,l=l*e+d*i,u=u*e+p*i,e===1-s){const e=1/Math.sqrt(o*o+c*c+l*l+u*u);o*=e,c*=e,l*=e,u*=e}}e[t]=o,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){const s=n[r],o=n[r+1],c=n[r+2],l=n[r+3],u=i[a],h=i[a+1],f=i[a+2],d=i[a+3];return e[t]=s*d+l*u+o*f-c*h,e[t+1]=o*d+l*h+c*u-s*f,e[t+2]=c*d+l*f+s*h-o*u,e[t+3]=l*d-s*u-o*h-c*f,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,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const n=e._x,r=e._y,i=e._z,a=e._order,s=Math.cos,o=Math.sin,c=s(n/2),l=s(r/2),u=s(i/2),h=o(n/2),f=o(r/2),d=o(i/2);switch(a){case"XYZ":this._x=h*l*u+c*f*d,this._y=c*f*u-h*l*d,this._z=c*l*d+h*f*u,this._w=c*l*u-h*f*d;break;case"YXZ":this._x=h*l*u+c*f*d,this._y=c*f*u-h*l*d,this._z=c*l*d-h*f*u,this._w=c*l*u+h*f*d;break;case"ZXY":this._x=h*l*u-c*f*d,this._y=c*f*u+h*l*d,this._z=c*l*d+h*f*u,this._w=c*l*u-h*f*d;break;case"ZYX":this._x=h*l*u-c*f*d,this._y=c*f*u+h*l*d,this._z=c*l*d-h*f*u,this._w=c*l*u+h*f*d;break;case"YZX":this._x=h*l*u+c*f*d,this._y=c*f*u+h*l*d,this._z=c*l*d-h*f*u,this._w=c*l*u-h*f*d;break;case"XZY":this._x=h*l*u-c*f*d,this._y=c*f*u-h*l*d,this._z=c*l*d+h*f*u,this._w=c*l*u+h*f*d}return!0===t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],s=t[5],o=t[9],c=t[2],l=t[6],u=t[10],h=n+s+u;if(h>0){const e=.5/Math.sqrt(h+1);this._w=.25/e,this._x=(l-o)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>s&&n>u){const e=2*Math.sqrt(1+n-s-u);this._w=(l-o)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(s>u){const e=2*Math.sqrt(1+s-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(o+l)/e}else{const e=2*Math.sqrt(1+u-n-s);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(o+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return nMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(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=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(xl(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(0===n)return this;const r=Math.min(1,t/n);return this.slerp(e,r),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){const n=e._x,r=e._y,i=e._z,a=e._w,s=t._x,o=t._y,c=t._z,l=t._w;return this._x=n*l+a*s+r*c-i*o,this._y=r*l+a*o+i*s-n*c,this._z=i*l+a*c+n*o-r*s,this._w=a*l-n*s-r*o-i*c,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,r=this._y,i=this._z,a=this._w;let s=a*e._w+n*e._x+r*e._y+i*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=n,this._y=r,this._z=i,this;const o=1-s*s;if(o<=Number.EPSILON){const e=1-t;return this._w=e*a+t*this._w,this._x=e*n+t*this._x,this._y=e*r+t*this._y,this._z=e*i+t*this._z,this.normalize(),this}const c=Math.sqrt(o),l=Math.atan2(c,s),u=Math.sin((1-t)*l)/c,h=Math.sin(t*l)/c;return this._w=a*u+this._w*h,this._x=n*u+this._x*h,this._y=r*u+this._y*h,this._z=i*u+this._z*h,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=Math.random(),t=Math.sqrt(1-e),n=Math.sqrt(e),r=2*Math.PI*Math.random(),i=2*Math.PI*Math.random();return this.set(t*Math.cos(r),n*Math.sin(i),n*Math.cos(i),t*Math.sin(r))}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 au{constructor(e=0,t=0,n=0){au.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(ou.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(ou.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){const t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,s=e.z,o=e.w,c=2*(a*r-s*n),l=2*(s*t-i*r),u=2*(i*n-a*t);return this.x=t+o*c+a*u-s*l,this.y=n+o*l+s*c-i*u,this.z=r+o*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}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,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,r=e.y,i=e.z,a=t.x,s=t.y,o=t.z;return this.x=r*o-i*s,this.y=i*a-n*o,this.z=n*s-r*a,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return su.copy(this).projectOnVector(e),this.sub(su)}reflect(e){return this.sub(su.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(xl(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}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,n){const r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,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(){const e=2*(Math.random()-.5),t=Math.random()*Math.PI*2,n=Math.sqrt(1-e**2);return this.x=n*Math.cos(t),this.y=n*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const su=new au,ou=new iu;class cu{constructor(e=new au(1/0,1/0,1/0),t=new au(-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,n=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,uu),uu.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(yu),_u.subVectors(this.max,yu),fu.subVectors(e.a,yu),du.subVectors(e.b,yu),pu.subVectors(e.c,yu),mu.subVectors(du,fu),gu.subVectors(pu,du),vu.subVectors(fu,pu);let t=[0,-mu.z,mu.y,0,-gu.z,gu.y,0,-vu.z,vu.y,mu.z,0,-mu.x,gu.z,0,-gu.x,vu.z,0,-vu.x,-mu.y,mu.x,0,-gu.y,gu.x,0,-vu.y,vu.x,0];return!!wu(t,fu,du,pu,_u)&&(t=[1,0,0,0,1,0,0,0,1],!!wu(t,fu,du,pu,_u)&&(bu.crossVectors(mu,gu),t=[bu.x,bu.y,bu.z],wu(t,fu,du,pu,_u)))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,uu).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(uu).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()||(lu[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),lu[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),lu[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),lu[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),lu[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),lu[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),lu[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),lu[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(lu)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const lu=[new au,new au,new au,new au,new au,new au,new au,new au],uu=new au,hu=new cu,fu=new au,du=new au,pu=new au,mu=new au,gu=new au,vu=new au,yu=new au,_u=new au,bu=new au,xu=new au;function wu(e,t,n,r,i){for(let a=0,s=e.length-3;a<=s;a+=3){xu.fromArray(e,a);const s=i.x*Math.abs(xu.x)+i.y*Math.abs(xu.y)+i.z*Math.abs(xu.z),o=t.dot(xu),c=n.dot(xu),l=r.dot(xu);if(Math.max(-Math.max(o,c,l),Math.min(o,c,l))>s)return!1}return!0}const Su=new cu,Eu=new au,Tu=new au;class Mu{constructor(e=new au,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):Su.setFromPoints(e).getCenter(n);let r=0;for(let i=0,a=e.length;ithis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Eu.subVectors(e,this.center);const t=Eu.lengthSq();if(t>this.radius*this.radius){const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.addScaledVector(Eu,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(Tu.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Eu.copy(e.center).add(Tu)),this.expandByPoint(Eu.copy(e.center).sub(Tu))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const Au=new au,Cu=new au,ku=new au,Ru=new au,Ou=new au,Iu=new au,Pu=new au;class Lu{constructor(e=new au,t=new au(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,Au)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=Au.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Au.copy(this.origin).addScaledVector(this.direction,t),Au.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){Cu.copy(e).add(t).multiplyScalar(.5),ku.copy(t).sub(e).normalize(),Ru.copy(this.origin).sub(Cu);const i=.5*e.distanceTo(t),a=-this.direction.dot(ku),s=Ru.dot(this.direction),o=-Ru.dot(ku),c=Ru.lengthSq(),l=Math.abs(1-a*a);let u,h,f,d;if(l>0)if(u=a*o-s,h=a*s-o,d=i*l,u>=0)if(h>=-d)if(h<=d){const e=1/l;u*=e,h*=e,f=u*(u+a*h+2*s)+h*(a*u+h+2*o)+c}else h=i,u=Math.max(0,-(a*h+s)),f=-u*u+h*(h+2*o)+c;else h=-i,u=Math.max(0,-(a*h+s)),f=-u*u+h*(h+2*o)+c;else h<=-d?(u=Math.max(0,-(-a*i+s)),h=u>0?-i:Math.min(Math.max(-i,-o),i),f=-u*u+h*(h+2*o)+c):h<=d?(u=0,h=Math.min(Math.max(-i,-o),i),f=h*(h+2*o)+c):(u=Math.max(0,-(a*i+s)),h=u>0?i:Math.min(Math.max(-i,-o),i),f=-u*u+h*(h+2*o)+c);else h=a>0?-i:i,u=Math.max(0,-(a*h+s)),f=-u*u+h*(h+2*o)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(Cu).addScaledVector(ku,h),f}intersectSphere(e,t){Au.subVectors(e.center,this.origin);const n=Au.dot(this.direction),r=Au.dot(Au)-n*n,i=e.radius*e.radius;if(r>i)return null;const a=Math.sqrt(i-r),s=n-a,o=n+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){const t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);if(0===t)return!0;return e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,s,o;const c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,h=this.origin;return c>=0?(n=(e.min.x-h.x)*c,r=(e.max.x-h.x)*c):(n=(e.max.x-h.x)*c,r=(e.min.x-h.x)*c),l>=0?(i=(e.min.y-h.y)*l,a=(e.max.y-h.y)*l):(i=(e.max.y-h.y)*l,a=(e.min.y-h.y)*l),n>a||i>r?null:((i>n||isNaN(n))&&(n=i),(a=0?(s=(e.min.z-h.z)*u,o=(e.max.z-h.z)*u):(s=(e.max.z-h.z)*u,o=(e.min.z-h.z)*u),n>o||s>r?null:((s>n||n!=n)&&(n=s),(o=0?n:r,t)))}intersectsBox(e){return null!==this.intersectBox(e,Au)}intersectTriangle(e,t,n,r,i){Ou.subVectors(t,e),Iu.subVectors(n,e),Pu.crossVectors(Ou,Iu);let a,s=this.direction.dot(Pu);if(s>0){if(r)return null;a=1}else{if(!(s<0))return null;a=-1,s=-s}Ru.subVectors(this.origin,e);const o=a*this.direction.dot(Iu.crossVectors(Ru,Iu));if(o<0)return null;const c=a*this.direction.dot(Ou.cross(Ru));if(c<0)return null;if(o+c>s)return null;const l=-a*Ru.dot(Pu);return l<0?null:this.at(l/s,i)}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 Du{constructor(e,t,n,r,i,a,s,o,c,l,u,h,f,d,p,m){Du.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,n,r,i,a,s,o,c,l,u,h,f,d,p,m)}set(e,t,n,r,i,a,s,o,c,l,u,h,f,d,p,m){const g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=r,g[1]=i,g[5]=a,g[9]=s,g[13]=o,g[2]=c,g[6]=l,g[10]=u,g[14]=h,g[3]=f,g[7]=d,g[11]=p,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 Du).fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,r=1/Nu.setFromMatrixColumn(e,0).length(),i=1/Nu.setFromMatrixColumn(e,1).length(),a=1/Nu.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,r=e.y,i=e.z,a=Math.cos(n),s=Math.sin(n),o=Math.cos(r),c=Math.sin(r),l=Math.cos(i),u=Math.sin(i);if("XYZ"===e.order){const e=a*l,n=a*u,r=s*l,i=s*u;t[0]=o*l,t[4]=-o*u,t[8]=c,t[1]=n+r*c,t[5]=e-i*c,t[9]=-s*o,t[2]=i-e*c,t[6]=r+n*c,t[10]=a*o}else if("YXZ"===e.order){const e=o*l,n=o*u,r=c*l,i=c*u;t[0]=e+i*s,t[4]=r*s-n,t[8]=a*c,t[1]=a*u,t[5]=a*l,t[9]=-s,t[2]=n*s-r,t[6]=i+e*s,t[10]=a*o}else if("ZXY"===e.order){const e=o*l,n=o*u,r=c*l,i=c*u;t[0]=e-i*s,t[4]=-a*u,t[8]=r+n*s,t[1]=n+r*s,t[5]=a*l,t[9]=i-e*s,t[2]=-a*c,t[6]=s,t[10]=a*o}else if("ZYX"===e.order){const e=a*l,n=a*u,r=s*l,i=s*u;t[0]=o*l,t[4]=r*c-n,t[8]=e*c+i,t[1]=o*u,t[5]=i*c+e,t[9]=n*c-r,t[2]=-c,t[6]=s*o,t[10]=a*o}else if("YZX"===e.order){const e=a*o,n=a*c,r=s*o,i=s*c;t[0]=o*l,t[4]=i-e*u,t[8]=r*u+n,t[1]=u,t[5]=a*l,t[9]=-s*l,t[2]=-c*l,t[6]=n*u+r,t[10]=e-i*u}else if("XZY"===e.order){const e=a*o,n=a*c,r=s*o,i=s*c;t[0]=o*l,t[4]=-u,t[8]=c*l,t[1]=e*u+i,t[5]=a*l,t[9]=n*u-r,t[2]=r*u-n,t[6]=s*l,t[10]=i*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(Uu,e,Bu)}lookAt(e,t,n){const r=this.elements;return Hu.subVectors(e,t),0===Hu.lengthSq()&&(Hu.z=1),Hu.normalize(),zu.crossVectors(n,Hu),0===zu.lengthSq()&&(1===Math.abs(n.z)?Hu.x+=1e-4:Hu.z+=1e-4,Hu.normalize(),zu.crossVectors(n,Hu)),zu.normalize(),Vu.crossVectors(Hu,zu),r[0]=zu.x,r[4]=Vu.x,r[8]=Hu.x,r[1]=zu.y,r[5]=Vu.y,r[9]=Hu.y,r[2]=zu.z,r[6]=Vu.z,r[10]=Hu.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,a=n[0],s=n[4],o=n[8],c=n[12],l=n[1],u=n[5],h=n[9],f=n[13],d=n[2],p=n[6],m=n[10],g=n[14],v=n[3],y=n[7],_=n[11],b=n[15],x=r[0],w=r[4],S=r[8],E=r[12],T=r[1],M=r[5],A=r[9],C=r[13],k=r[2],R=r[6],O=r[10],I=r[14],P=r[3],L=r[7],D=r[11],N=r[15];return i[0]=a*x+s*T+o*k+c*P,i[4]=a*w+s*M+o*R+c*L,i[8]=a*S+s*A+o*O+c*D,i[12]=a*E+s*C+o*I+c*N,i[1]=l*x+u*T+h*k+f*P,i[5]=l*w+u*M+h*R+f*L,i[9]=l*S+u*A+h*O+f*D,i[13]=l*E+u*C+h*I+f*N,i[2]=d*x+p*T+m*k+g*P,i[6]=d*w+p*M+m*R+g*L,i[10]=d*S+p*A+m*O+g*D,i[14]=d*E+p*C+m*I+g*N,i[3]=v*x+y*T+_*k+b*P,i[7]=v*w+y*M+_*R+b*L,i[11]=v*S+y*A+_*O+b*D,i[15]=v*E+y*C+_*I+b*N,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],a=e[1],s=e[5],o=e[9],c=e[13],l=e[2],u=e[6],h=e[10],f=e[14];return e[3]*(+i*o*u-r*c*u-i*s*h+n*c*h+r*s*f-n*o*f)+e[7]*(+t*o*f-t*c*h+i*a*h-r*a*f+r*c*l-i*o*l)+e[11]*(+t*c*u-t*s*f-i*a*u+n*a*f+i*s*l-n*c*l)+e[15]*(-r*s*l-t*o*u+t*s*h+r*a*u-n*a*h+n*o*l)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],c=e[7],l=e[8],u=e[9],h=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15],v=u*m*c-p*h*c+p*o*f-s*m*f-u*o*g+s*h*g,y=d*h*c-l*m*c-d*o*f+a*m*f+l*o*g-a*h*g,_=l*p*c-d*u*c+d*s*f-a*p*f-l*s*g+a*u*g,b=d*u*o-l*p*o-d*s*h+a*p*h+l*s*m-a*u*m,x=t*v+n*y+r*_+i*b;if(0===x)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const w=1/x;return e[0]=v*w,e[1]=(p*h*i-u*m*i-p*r*f+n*m*f+u*r*g-n*h*g)*w,e[2]=(s*m*i-p*o*i+p*r*c-n*m*c-s*r*g+n*o*g)*w,e[3]=(u*o*i-s*h*i-u*r*c+n*h*c+s*r*f-n*o*f)*w,e[4]=y*w,e[5]=(l*m*i-d*h*i+d*r*f-t*m*f-l*r*g+t*h*g)*w,e[6]=(d*o*i-a*m*i-d*r*c+t*m*c+a*r*g-t*o*g)*w,e[7]=(a*h*i-l*o*i+l*r*c-t*h*c-a*r*f+t*o*f)*w,e[8]=_*w,e[9]=(d*u*i-l*p*i-d*n*f+t*p*f+l*n*g-t*u*g)*w,e[10]=(a*p*i-d*s*i+d*n*c-t*p*c-a*n*g+t*s*g)*w,e[11]=(l*s*i-a*u*i-l*n*c+t*u*c+a*n*f-t*s*f)*w,e[12]=b*w,e[13]=(l*p*r-d*u*r+d*n*h-t*p*h-l*n*m+t*u*m)*w,e[14]=(d*s*r-a*p*r-d*n*o+t*p*o+a*n*m-t*s*m)*w,e[15]=(a*u*r-l*s*r+l*n*o-t*u*o-a*n*h+t*s*h)*w,this}scale(e){const t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){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,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),r=Math.sin(t),i=1-n,a=e.x,s=e.y,o=e.z,c=i*a,l=i*s;return this.set(c*a+n,c*s-r*o,c*o+r*s,0,c*s+r*o,l*s+n,l*o-r*a,0,c*o-r*s,l*o+r*a,i*o*o+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,a){return this.set(1,n,i,0,e,1,a,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){const r=this.elements,i=t._x,a=t._y,s=t._z,o=t._w,c=i+i,l=a+a,u=s+s,h=i*c,f=i*l,d=i*u,p=a*l,m=a*u,g=s*u,v=o*c,y=o*l,_=o*u,b=n.x,x=n.y,w=n.z;return r[0]=(1-(p+g))*b,r[1]=(f+_)*b,r[2]=(d-y)*b,r[3]=0,r[4]=(f-_)*x,r[5]=(1-(h+g))*x,r[6]=(m+v)*x,r[7]=0,r[8]=(d+y)*w,r[9]=(m-v)*w,r[10]=(1-(h+p))*w,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){const r=this.elements;let i=Nu.set(r[0],r[1],r[2]).length();const a=Nu.set(r[4],r[5],r[6]).length(),s=Nu.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],Fu.copy(this);const o=1/i,c=1/a,l=1/s;return Fu.elements[0]*=o,Fu.elements[1]*=o,Fu.elements[2]*=o,Fu.elements[4]*=c,Fu.elements[5]*=c,Fu.elements[6]*=c,Fu.elements[8]*=l,Fu.elements[9]*=l,Fu.elements[10]*=l,t.setFromRotationMatrix(Fu),n.x=i,n.y=a,n.z=s,this}makePerspective(e,t,n,r,i,a,s=2e3){const o=this.elements,c=2*i/(t-e),l=2*i/(n-r),u=(t+e)/(t-e),h=(n+r)/(n-r);let f,d;if(s===dl)f=-(a+i)/(a-i),d=-2*a*i/(a-i);else{if(s!==pl)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+s);f=-a/(a-i),d=-a*i/(a-i)}return o[0]=c,o[4]=0,o[8]=u,o[12]=0,o[1]=0,o[5]=l,o[9]=h,o[13]=0,o[2]=0,o[6]=0,o[10]=f,o[14]=d,o[3]=0,o[7]=0,o[11]=-1,o[15]=0,this}makeOrthographic(e,t,n,r,i,a,s=2e3){const o=this.elements,c=1/(t-e),l=1/(n-r),u=1/(a-i),h=(t+e)*c,f=(n+r)*l;let d,p;if(s===dl)d=(a+i)*u,p=-2*u;else{if(s!==pl)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+s);d=i*u,p=-1*u}return o[0]=2*c,o[4]=0,o[8]=0,o[12]=-h,o[1]=0,o[5]=2*l,o[9]=0,o[13]=-f,o[2]=0,o[6]=0,o[10]=p,o[14]=-d,o[3]=0,o[7]=0,o[11]=0,o[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let r=0;r<16;r++)if(t[r]!==n[r])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const Nu=new au,Fu=new Du,Uu=new au(0,0,0),Bu=new au(1,1,1),zu=new au,Vu=new au,Hu=new au,ju=new Du,Wu=new iu;class Gu{constructor(e=0,t=0,n=0,r=Gu.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=r}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,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,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,n=!0){const r=e.elements,i=r[0],a=r[4],s=r[8],o=r[1],c=r[5],l=r[9],u=r[2],h=r[6],f=r[10];switch(t){case"XYZ":this._y=Math.asin(xl(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-l,f),this._z=Math.atan2(-a,i)):(this._x=Math.atan2(h,c),this._z=0);break;case"YXZ":this._x=Math.asin(-xl(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(s,f),this._z=Math.atan2(o,c)):(this._y=Math.atan2(-u,i),this._z=0);break;case"ZXY":this._x=Math.asin(xl(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-u,f),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(o,i));break;case"ZYX":this._y=Math.asin(-xl(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(h,f),this._z=Math.atan2(o,i)):(this._x=0,this._z=Math.atan2(-a,c));break;case"YZX":this._z=Math.asin(xl(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-l,c),this._y=Math.atan2(-u,i)):(this._x=0,this._y=Math.atan2(s,f));break;case"XZY":this._z=Math.asin(-xl(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(h,c),this._y=Math.atan2(s,i)):(this._x=Math.atan2(-l,f),this._y=0)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return ju.makeRotationFromQuaternion(e),this.setFromRotationMatrix(ju,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return Wu.setFromEuler(this),this.setFromQuaternion(Wu,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}}Gu.DEFAULT_ORDER="XYZ";class Xu{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&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.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()}))),r.maxGeometryCount=this._maxGeometryCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(e),null!==this.boundingSphere&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),null!==this.boundingBox&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()})),this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);const t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){const n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),s.length>0&&(n.images=s),o.length>0&&(n.shapes=o),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}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 n=0;n0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){oh.subVectors(r,t),ch.subVectors(n,t),lh.subVectors(e,t);const a=oh.dot(oh),s=oh.dot(ch),o=oh.dot(lh),c=ch.dot(ch),l=ch.dot(lh),u=a*c-s*s;if(0===u)return i.set(0,0,0),null;const h=1/u,f=(c*o-s*l)*h,d=(a*l-s*o)*h;return i.set(1-f-d,d,f)}static containsPoint(e,t,n,r){return null!==this.getBarycoord(e,t,n,r,uh)&&(uh.x>=0&&uh.y>=0&&uh.x+uh.y<=1)}static getUV(e,t,n,r,i,a,s,o){return!1===vh&&(vh=!0),this.getInterpolation(e,t,n,r,i,a,s,o)}static getInterpolation(e,t,n,r,i,a,s,o){return null===this.getBarycoord(e,t,n,r,uh)?(o.x=0,o.y=0,"z"in o&&(o.z=0),"w"in o&&(o.w=0),null):(o.setScalar(0),o.addScaledVector(i,uh.x),o.addScaledVector(a,uh.y),o.addScaledVector(s,uh.z),o)}static isFrontFacing(e,t,n,r){return oh.subVectors(n,t),ch.subVectors(e,t),oh.cross(ch).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),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 oh.subVectors(this.c,this.b),ch.subVectors(this.a,this.b),.5*oh.cross(ch).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return yh.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return yh.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,n,r,i){return!1===vh&&(vh=!0),yh.getInterpolation(e,this.a,this.b,this.c,t,n,r,i)}getInterpolation(e,t,n,r,i){return yh.getInterpolation(e,this.a,this.b,this.c,t,n,r,i)}containsPoint(e){return yh.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return yh.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,r=this.b,i=this.c;let a,s;hh.subVectors(r,n),fh.subVectors(i,n),ph.subVectors(e,n);const o=hh.dot(ph),c=fh.dot(ph);if(o<=0&&c<=0)return t.copy(n);mh.subVectors(e,r);const l=hh.dot(mh),u=fh.dot(mh);if(l>=0&&u<=l)return t.copy(r);const h=o*u-l*c;if(h<=0&&o>=0&&l<=0)return a=o/(o-l),t.copy(n).addScaledVector(hh,a);gh.subVectors(e,i);const f=hh.dot(gh),d=fh.dot(gh);if(d>=0&&f<=d)return t.copy(i);const p=f*c-o*d;if(p<=0&&c>=0&&d<=0)return s=c/(c-d),t.copy(n).addScaledVector(fh,s);const m=l*d-f*u;if(m<=0&&u-l>=0&&f-d>=0)return dh.subVectors(i,r),s=(u-l)/(u-l+(f-d)),t.copy(r).addScaledVector(dh,s);const g=1/(m+p+h);return a=p*g,s=h*g,t.copy(n).addScaledVector(hh,a).addScaledVector(fh,s)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const _h={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},bh={h:0,s:0,l:0},xh={h:0,s:0,l:0};function wh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}class Sh{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(void 0===t&&void 0===n){const t=e;t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=tl){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,jl.toWorkingColorSpace(this,t),this}setRGB(e,t,n,r=jl.workingColorSpace){return this.r=e,this.g=t,this.b=n,jl.toWorkingColorSpace(this,r),this}setHSL(e,t,n,r=jl.workingColorSpace){if(e=wl(e,1),t=xl(t,0,1),n=xl(n,0,1),0===t)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=wh(i,r,e+1/3),this.g=wh(i,r,e),this.b=wh(i,r,e-1/3)}return jl.toWorkingColorSpace(this,r),this}setStyle(e,t=tl){function n(e){void 0!==e&&parseFloat(e)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let e;const i=r[1],a=r[2];switch(i){case"rgb":case"rgba":if(e=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(e[4]),this.setRGB(Math.min(255,parseInt(e[1],10))/255,Math.min(255,parseInt(e[2],10))/255,Math.min(255,parseInt(e[3],10))/255,t);if(e=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(e[4]),this.setRGB(Math.min(100,parseInt(e[1],10))/100,Math.min(100,parseInt(e[2],10))/100,Math.min(100,parseInt(e[3],10))/100,t);break;case"hsl":case"hsla":if(e=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(e[4]),this.setHSL(parseFloat(e[1])/360,parseFloat(e[2])/100,parseFloat(e[3])/100,t)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const e=r[1],n=e.length;if(3===n)return this.setRGB(parseInt(e.charAt(0),16)/15,parseInt(e.charAt(1),16)/15,parseInt(e.charAt(2),16)/15,t);if(6===n)return this.setHex(parseInt(e,16),t)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=tl){const n=_h[e.toLowerCase()];return void 0!==n&&this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Wl(e.r),this.g=Wl(e.g),this.b=Wl(e.b),this}copyLinearToSRGB(e){return this.r=Gl(e.r),this.g=Gl(e.g),this.b=Gl(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=tl){return jl.fromWorkingColorSpace(Eh.copy(this),e),65536*Math.round(xl(255*Eh.r,0,255))+256*Math.round(xl(255*Eh.g,0,255))+Math.round(xl(255*Eh.b,0,255))}getHexString(e=tl){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=jl.workingColorSpace){jl.fromWorkingColorSpace(Eh.copy(this),t);const n=Eh.r,r=Eh.g,i=Eh.b,a=Math.max(n,r,i),s=Math.min(n,r,i);let o,c;const l=(s+a)/2;if(s===a)o=0,c=0;else{const e=a-s;switch(c=l<=.5?e/(a+s):e/(2-a-s),a){case n:o=(r-i)/e+(r0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n)continue;const r=this[t];void 0!==r&&(r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n)}}toJSON(e){const t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});const n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function r(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),void 0!==this.anisotropy&&(n.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(n.blending=this.blending),this.side!==bo&&(n.side=this.side),!0===this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=!0),this.blendSrc!==So&&(n.blendSrc=this.blendSrc),this.blendDst!==Eo&&(n.blendDst=this.blendDst),this.blendEquation!==wo&&(n.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(n.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(n.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(n.blendAlpha=this.blendAlpha),3!==this.depthFunc&&(n.depthFunc=this.depthFunc),!1===this.depthTest&&(n.depthTest=this.depthTest),!1===this.depthWrite&&(n.depthWrite=this.depthWrite),!1===this.colorWrite&&(n.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(n.stencilWriteMask=this.stencilWriteMask),519!==this.stencilFunc&&(n.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(n.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==ll&&(n.stencilFail=this.stencilFail),this.stencilZFail!==ll&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==ll&&(n.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(n.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaHash&&(n.alphaHash=!0),!0===this.alphaToCoverage&&(n.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=!0),!0===this.forceSinglePass&&(n.forceSinglePass=!0),!0===this.wireframe&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=!0),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),t){const t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return(new this.constructor).copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(null!==t){const e=t.length;n=new Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,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 Ah extends Mh{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Sh(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=To,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const Ch=kh();function kh(){const e=new ArrayBuffer(4),t=new Float32Array(e),n=new Uint32Array(e),r=new Uint32Array(512),i=new Uint32Array(512);for(let c=0;c<256;++c){const e=c-127;e<-27?(r[c]=0,r[256|c]=32768,i[c]=24,i[256|c]=24):e<-14?(r[c]=1024>>-e-14,r[256|c]=1024>>-e-14|32768,i[c]=-e-1,i[256|c]=-e-1):e<=15?(r[c]=e+15<<10,r[256|c]=e+15<<10|32768,i[c]=13,i[256|c]=13):e<128?(r[c]=31744,r[256|c]=64512,i[c]=24,i[256|c]=24):(r[c]=31744,r[256|c]=64512,i[c]=13,i[256|c]=13)}const a=new Uint32Array(2048),s=new Uint32Array(64),o=new Uint32Array(64);for(let c=1;c<1024;++c){let e=c<<13,t=0;for(;0==(8388608&e);)e<<=1,t-=8388608;e&=-8388609,t+=947912704,a[c]=e|t}for(let c=1024;c<2048;++c)a[c]=939524096+(c-1024<<13);for(let c=1;c<31;++c)s[c]=c<<23;s[31]=1199570944,s[32]=2147483648;for(let c=33;c<63;++c)s[c]=2147483648+(c-32<<23);s[63]=3347054592;for(let c=1;c<64;++c)32!==c&&(o[c]=1024);return{floatView:t,uint32View:n,baseTable:r,shiftTable:i,mantissaTable:a,exponentTable:s,offsetTable:o}}function Rh(e){Math.abs(e),e=xl(e,-65504,65504),Ch.floatView[0]=e;const t=Ch.uint32View[0],n=t>>23&511;return Ch.baseTable[n]+((8388607&t)>>Ch.shiftTable[n])}function Oh(e){const t=e>>10;return Ch.uint32View[0]=Ch.mantissaTable[Ch.offsetTable[t]+(1023&e)]+Ch.exponentTable[t],Ch.floatView[0]}const Ih={toHalfFloat:Rh,fromHalfFloat:Oh},Ph=new au,Lh=new kl;class Dh{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=n,this.usage=ul,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=nc,this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}get updateRange(){return this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;r0&&(e.userData=this.userData),void 0!==this.parameters){const t=this.parameters;for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};const t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const o in n){const t=n[o];e.data.attributes[o]=t.toJSON(e.data)}const r={};let i=!1;for(const o in this.morphAttributes){const t=this.morphAttributes[o],n=[];for(let r=0,i=t.length;r0&&(r[o]=n,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));const 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;const t={};this.name=e.name;const n=e.index;null!==n&&this.setIndex(n.clone(t));const r=e.attributes;for(const c in r){const e=r[c];this.setAttribute(c,e.clone(t))}const i=e.morphAttributes;for(const c in i){const e=[],n=i[c];for(let r=0,i=n.length;r0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e(e.far-e.near)**2)return}qh.copy(i).invert(),$h.copy(e.ray).applyMatrix4(qh),null!==n.boundingBox&&!1===$h.intersectsBox(n.boundingBox)||this._computeIntersections(e,t,$h)}}_computeIntersections(e,t,n){let r;const i=this.geometry,a=this.material,s=i.index,o=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,h=i.groups,f=i.drawRange;if(null!==s)if(Array.isArray(a))for(let d=0,p=h.length;dn.far?null:{distance:l,point:uf.clone(),object:e}}(e,t,n,r,Kh,Jh,Qh,lf);if(u){i&&(nf.fromBufferAttribute(i,o),rf.fromBufferAttribute(i,c),af.fromBufferAttribute(i,l),u.uv=yh.getInterpolation(lf,Kh,Jh,Qh,nf,rf,af,new kl)),a&&(nf.fromBufferAttribute(a,o),rf.fromBufferAttribute(a,c),af.fromBufferAttribute(a,l),u.uv1=yh.getInterpolation(lf,Kh,Jh,Qh,nf,rf,af,new kl),u.uv2=u.uv1),s&&(sf.fromBufferAttribute(s,o),of.fromBufferAttribute(s,c),cf.fromBufferAttribute(s,l),u.normal=yh.getInterpolation(lf,Kh,Jh,Qh,sf,of,cf,new au),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));const e={a:o,b:c,c:l,normal:new au,materialIndex:0};yh.getNormal(Kh,Jh,Qh,e.normal),u.face=e}return u}class df extends Xh{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};const s=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);const o=[],c=[],l=[],u=[];let h=0,f=0;function d(e,t,n,r,i,a,d,p,m,g,v){const y=a/m,_=d/g,b=a/2,x=d/2,w=p/2,S=m+1,E=g+1;let T=0,M=0;const A=new au;for(let s=0;s0?1:-1,l.push(A.x,A.y,A.z),u.push(o/m),u.push(1-s/g),T+=1}}for(let s=0;s0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const n={};for(const r in this.extensions)!0===this.extensions[r]&&(n[r]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class _f extends sh{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Du,this.projectionMatrix=new Du,this.projectionMatrixInverse=new Du,this.coordinateSystem=dl}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}class bf extends _f{constructor(e=50,t=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=r,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){const t=.5*this.getFilmHeight()/e;this.fov=2*_l*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(.5*yl*this.fov);return.5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*_l*Math.atan(Math.tan(.5*yl*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,n,r,i,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=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*yl*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r;const a=this.view;if(null!==this.view&&this.view.enabled){const e=a.fullWidth,s=a.fullHeight;i+=a.offsetX*r/e,t-=a.offsetY*n/s,r*=a.width/e,n*=a.height/s}const s=this.filmOffset;0!==s&&(i+=e*s/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const xf=-90;class wf extends sh{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const r=new bf(xf,1,e,t);r.layers=this.layers,this.add(r);const i=new bf(xf,1,e,t);i.layers=this.layers,this.add(i);const a=new bf(xf,1,e,t);a.layers=this.layers,this.add(a);const s=new bf(xf,1,e,t);s.layers=this.layers,this.add(s);const o=new bf(xf,1,e,t);o.layers=this.layers,this.add(o);const c=new bf(xf,1,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,r,i,a,s,o]=t;for(const c of t)this.remove(c);if(e===dl)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.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!==pl)throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.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)}for(const c of t)this.add(c),c.updateMatrixWorld()}update(e,t){null===this.parent&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[i,a,s,o,c,l]=this.children,u=e.getRenderTarget(),h=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),d=e.xr.enabled;e.xr.enabled=!1;const p=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,r),e.render(t,i),e.setRenderTarget(n,1,r),e.render(t,a),e.setRenderTarget(n,2,r),e.render(t,s),e.setRenderTarget(n,3,r),e.render(t,o),e.setRenderTarget(n,4,r),e.render(t,c),n.texture.generateMipmaps=p,e.setRenderTarget(n,5,r),e.render(t,l),e.setRenderTarget(u,h,f),e.xr.enabled=d,n.texture.needsPMREMUpdate=!0}}class Sf extends Jl{constructor(e,t,n,r,i,a,s,o,c,l){super(e=void 0!==e?e:[],t=void 0!==t?t:Uo,n,r,i,a,s,o,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class Ef extends tu{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];void 0!==t.encoding&&(Ul("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===Qc?tl:el),this.texture=new Sf(r,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:Yo}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include \n\t\t\t\t\t#include \n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include \n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},r=new df(5,5,5),i=new yf({name:"CubemapFromEquirect",uniforms:pf(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:xo,blending:0});i.uniforms.tEquirect.value=t;const a=new hf(r,i),s=t.minFilter;t.minFilter===Ko&&(t.minFilter=Yo);return new wf(1,10,this).update(e,a),t.minFilter=s,a.geometry.dispose(),a.material.dispose(),this}clear(e,t,n,r){const i=e.getRenderTarget();for(let a=0;a<6;a++)e.setRenderTarget(this,a),e.clear(t,n,r);e.setRenderTarget(i)}}const Tf=new au,Mf=new au,Af=new Rl;class Cf{constructor(e=new au(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,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){const r=Tf.subVectors(n,t).cross(Mf.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const n=e.delta(Tf),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;const i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:t.copy(e.start).addScaledVector(n,i)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||Af.getNormalMatrix(e),r=this.coplanarPoint(Tf).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const kf=new Mu,Rf=new au;class Of{constructor(e=new Cf,t=new Cf,n=new Cf,r=new Cf,i=new Cf,a=new Cf){this.planes=[e,t,n,r,i,a]}set(e,t,n,r,i,a){const s=this.planes;return s[0].copy(e),s[1].copy(t),s[2].copy(n),s[3].copy(r),s[4].copy(i),s[5].copy(a),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=2e3){const n=this.planes,r=e.elements,i=r[0],a=r[1],s=r[2],o=r[3],c=r[4],l=r[5],u=r[6],h=r[7],f=r[8],d=r[9],p=r[10],m=r[11],g=r[12],v=r[13],y=r[14],_=r[15];if(n[0].setComponents(o-i,h-c,m-f,_-g).normalize(),n[1].setComponents(o+i,h+c,m+f,_+g).normalize(),n[2].setComponents(o+a,h+l,m+d,_+v).normalize(),n[3].setComponents(o-a,h-l,m-d,_-v).normalize(),n[4].setComponents(o-s,h-u,m-p,_-y).normalize(),t===dl)n[5].setComponents(o+s,h+u,m+p,_+y).normalize();else{if(t!==pl)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);n[5].setComponents(s,u,p,y).normalize()}return this}intersectsObject(e){if(void 0!==e.boundingSphere)null===e.boundingSphere&&e.computeBoundingSphere(),kf.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),kf.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(kf)}intersectsSprite(e){return kf.center.set(0,0,0),kf.radius=.7071067811865476,kf.applyMatrix4(e.matrixWorld),this.intersectsSphere(kf)}intersectsSphere(e){const t=this.planes,n=e.center,r=-e.radius;for(let i=0;i<6;i++){if(t[i].distanceToPoint(n)0?e.max.x:e.min.x,Rf.y=r.normal.y>0?e.max.y:e.min.y,Rf.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Rf)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function If(){let e=null,t=!1,n=null,r=null;function i(t,a){n(t,a),r=e.requestAnimationFrame(i)}return{start:function(){!0!==t&&null!==n&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Pf(e,t){const n=t.isWebGL2,r=new WeakMap;return{get:function(e){return e.isInterleavedBufferAttribute&&(e=e.data),r.get(e)},remove:function(t){t.isInterleavedBufferAttribute&&(t=t.data);const n=r.get(t);n&&(e.deleteBuffer(n.buffer),r.delete(t))},update:function(t,i){if(t.isGLBufferAttribute){const e=r.get(t);return void((!e||e.version 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.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\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n\tmat3 bm = mat3( batchingMatrix );\n\ttransformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n\ttransformedNormal = bm * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = bm * transformedTangent;\n\t#endif\n#endif\n#ifdef USE_INSTANCING\n\tmat3 im = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n\ttransformedNormal = im * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = im * transformedTangent;\n\t#endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\ttransformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"\nconst mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(\n\tvec3( 0.8224621, 0.177538, 0.0 ),\n\tvec3( 0.0331941, 0.9668058, 0.0 ),\n\tvec3( 0.0170827, 0.0723974, 0.9105199 )\n);\nconst mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.2249401, - 0.2249404, 0.0 ),\n\tvec3( - 0.0420569, 1.0420571, 0.0 ),\n\tvec3( - 0.0196376, - 0.0786361, 1.0982735 )\n);\nvec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );\n}\nvec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n\treturn 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\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn sRGBTransferOETF( value );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform 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\tvec3 diffuseColor;\n\tfloat 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\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.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\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n\tuniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( LEGACY_LIGHTS )\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#else\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 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\tvec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n\treflectedLight.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\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_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\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat 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\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.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\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_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\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tif( material.anisotropy == 0.0 ) {\n\t\tanisotropyV = vec2( 1.0, 0.0 );\n\t} else {\n\t\tanisotropyV /= material.anisotropy;\n\t\tmaterial.anisotropy = saturate( material.anisotropy );\n\t}\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#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\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat 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\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn 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\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn 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\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn 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\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn 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\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid 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\t\tvec3 normal = geometryNormal;\n\t\tvec3 viewDir = geometryViewDir;\n\t\tvec3 position = geometryPosition;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\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\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n\treflectedLight.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\treflectedLight.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\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn 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\tgeometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometryViewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometryPosition, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometryPosition, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if defined( USE_LIGHT_PROBES )\n\t\tirradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = 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\t\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform 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\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 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\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn 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\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n\tmvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#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\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tint size = textureSize( boneTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_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\treturn saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.6605, - 0.1246, - 0.0182 ),\n\tvec3( - 0.5876, 1.1329, - 0.1006 ),\n\tvec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n\tvec3( 0.6274, 0.0691, 0.0164 ),\n\tvec3( 0.3293, 0.9195, 0.0880 ),\n\tvec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n\tvec3 x2 = x * x;\n\tvec3 x4 = x2 * x2;\n\treturn + 15.5 * x4 * x2\n\t\t- 40.14 * x4 * x\n\t\t+ 31.96 * x4\n\t\t- 6.868 * x2 * x\n\t\t+ 0.4298 * x2\n\t\t+ 0.1191 * x\n\t\t- 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n\tconst mat3 AgXInsetMatrix = mat3(\n\t\tvec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n\t\tvec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n\t\tvec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n\t);\n\tconst mat3 AgXOutsetMatrix = mat3(\n\t\tvec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n\t\tvec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n\t\tvec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n\t);\n\tconst float AgxMinEv = - 12.47393;\tconst float AgxMaxEv = 4.026069;\n\tcolor = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n\tcolor *= toneMappingExposure;\n\tcolor = AgXInsetMatrix * color;\n\tcolor = max( color, 1e-10 );\tcolor = log2( color );\n\tcolor = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n\tcolor = clamp( color, 0.0, 1.0 );\n\tcolor = agxDefaultContrastApprox( color );\n\tcolor = AgXOutsetMatrix * color;\n\tcolor = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n\tcolor = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n\treturn color;\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( 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\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_BATCHING\n\t\tworldPosition = batchingMatrix * worldPosition;\n\t#endif\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = 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\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",cube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include \n\t#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\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform 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\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#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\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = 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\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include \n\t#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\tvLineDistance = scale * lineDistance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#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\t#include \n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#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\t#include \n\t#include \n\t#include \n\t#include \n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying 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\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#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\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#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\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#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\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - 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\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying 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\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - 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\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#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\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#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\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying 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\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\tuniform vec2 anisotropyVector;\n\t#ifdef USE_ANISOTROPYMAP\n\t\tuniform sampler2D anisotropyMap;\n\t#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\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include \n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#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\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#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\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#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\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#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\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#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\t#include \n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include \n\t#include \n\t#include \n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include \n\t#include \n\t#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\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n}"},Nf={common:{diffuse:{value:new Sh(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Rl},alphaMap:{value:null},alphaMapTransform:{value:new Rl},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Rl}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Rl}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Rl}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Rl},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Rl},normalScale:{value:new kl(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Rl},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Rl}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Rl}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Rl}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Sh(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 Sh(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Rl},alphaTest:{value:0},uvTransform:{value:new Rl}},sprite:{diffuse:{value:new Sh(16777215)},opacity:{value:1},center:{value:new kl(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Rl},alphaMap:{value:null},alphaMapTransform:{value:new Rl},alphaTest:{value:0}}},Ff={basic:{uniforms:mf([Nf.common,Nf.specularmap,Nf.envmap,Nf.aomap,Nf.lightmap,Nf.fog]),vertexShader:Df.meshbasic_vert,fragmentShader:Df.meshbasic_frag},lambert:{uniforms:mf([Nf.common,Nf.specularmap,Nf.envmap,Nf.aomap,Nf.lightmap,Nf.emissivemap,Nf.bumpmap,Nf.normalmap,Nf.displacementmap,Nf.fog,Nf.lights,{emissive:{value:new Sh(0)}}]),vertexShader:Df.meshlambert_vert,fragmentShader:Df.meshlambert_frag},phong:{uniforms:mf([Nf.common,Nf.specularmap,Nf.envmap,Nf.aomap,Nf.lightmap,Nf.emissivemap,Nf.bumpmap,Nf.normalmap,Nf.displacementmap,Nf.fog,Nf.lights,{emissive:{value:new Sh(0)},specular:{value:new Sh(1118481)},shininess:{value:30}}]),vertexShader:Df.meshphong_vert,fragmentShader:Df.meshphong_frag},standard:{uniforms:mf([Nf.common,Nf.envmap,Nf.aomap,Nf.lightmap,Nf.emissivemap,Nf.bumpmap,Nf.normalmap,Nf.displacementmap,Nf.roughnessmap,Nf.metalnessmap,Nf.fog,Nf.lights,{emissive:{value:new Sh(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Df.meshphysical_vert,fragmentShader:Df.meshphysical_frag},toon:{uniforms:mf([Nf.common,Nf.aomap,Nf.lightmap,Nf.emissivemap,Nf.bumpmap,Nf.normalmap,Nf.displacementmap,Nf.gradientmap,Nf.fog,Nf.lights,{emissive:{value:new Sh(0)}}]),vertexShader:Df.meshtoon_vert,fragmentShader:Df.meshtoon_frag},matcap:{uniforms:mf([Nf.common,Nf.bumpmap,Nf.normalmap,Nf.displacementmap,Nf.fog,{matcap:{value:null}}]),vertexShader:Df.meshmatcap_vert,fragmentShader:Df.meshmatcap_frag},points:{uniforms:mf([Nf.points,Nf.fog]),vertexShader:Df.points_vert,fragmentShader:Df.points_frag},dashed:{uniforms:mf([Nf.common,Nf.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Df.linedashed_vert,fragmentShader:Df.linedashed_frag},depth:{uniforms:mf([Nf.common,Nf.displacementmap]),vertexShader:Df.depth_vert,fragmentShader:Df.depth_frag},normal:{uniforms:mf([Nf.common,Nf.bumpmap,Nf.normalmap,Nf.displacementmap,{opacity:{value:1}}]),vertexShader:Df.meshnormal_vert,fragmentShader:Df.meshnormal_frag},sprite:{uniforms:mf([Nf.sprite,Nf.fog]),vertexShader:Df.sprite_vert,fragmentShader:Df.sprite_frag},background:{uniforms:{uvTransform:{value:new Rl},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Df.background_vert,fragmentShader:Df.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:Df.backgroundCube_vert,fragmentShader:Df.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Df.cube_vert,fragmentShader:Df.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Df.equirect_vert,fragmentShader:Df.equirect_frag},distanceRGBA:{uniforms:mf([Nf.common,Nf.displacementmap,{referencePosition:{value:new au},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Df.distanceRGBA_vert,fragmentShader:Df.distanceRGBA_frag},shadow:{uniforms:mf([Nf.lights,Nf.fog,{color:{value:new Sh(0)},opacity:{value:1}}]),vertexShader:Df.shadow_vert,fragmentShader:Df.shadow_frag}};Ff.physical={uniforms:mf([Ff.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Rl},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Rl},clearcoatNormalScale:{value:new kl(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Rl},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Rl},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Rl},sheen:{value:0},sheenColor:{value:new Sh(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Rl},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Rl},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Rl},transmissionSamplerSize:{value:new kl},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Rl},attenuationDistance:{value:0},attenuationColor:{value:new Sh(0)},specularColor:{value:new Sh(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Rl},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Rl},anisotropyVector:{value:new kl},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Rl}}]),vertexShader:Df.meshphysical_vert,fragmentShader:Df.meshphysical_frag};const Uf={r:0,b:0,g:0};function Bf(e,t,n,r,i,a,s){const o=new Sh(0);let c,l,u=!0===a?0:1,h=null,f=0,d=null;function p(t,n){t.getRGB(Uf,gf(e)),r.buffers.color.setClear(Uf.r,Uf.g,Uf.b,n,s)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),u=t,p(o,u)},getClearAlpha:function(){return u},setClearAlpha:function(e){u=e,p(o,u)},render:function(a,m){let g=!1,v=!0===m.isScene?m.background:null;if(v&&v.isTexture){v=(m.backgroundBlurriness>0?n:t).get(v)}null===v?p(o,u):v&&v.isColor&&(p(v,1),g=!0);const y=e.xr.getEnvironmentBlendMode();"additive"===y?r.buffers.color.setClear(0,0,0,1,s):"alpha-blend"===y&&r.buffers.color.setClear(0,0,0,0,s),(e.autoClear||g)&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),v&&(v.isCubeTexture||v.mapping===Ho)?(void 0===l&&(l=new hf(new df(1,1,1),new yf({name:"BackgroundCubeMaterial",uniforms:pf(Ff.backgroundCube.uniforms),vertexShader:Ff.backgroundCube.vertexShader,fragmentShader:Ff.backgroundCube.fragmentShader,side:xo,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),l.geometry.deleteAttribute("uv"),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(l)),l.material.uniforms.envMap.value=v,l.material.uniforms.flipEnvMap.value=v.isCubeTexture&&!1===v.isRenderTargetTexture?-1:1,l.material.uniforms.backgroundBlurriness.value=m.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=m.backgroundIntensity,l.material.toneMapped=jl.getTransfer(v.colorSpace)!==sl,h===v&&f===v.version&&d===e.toneMapping||(l.material.needsUpdate=!0,h=v,f=v.version,d=e.toneMapping),l.layers.enableAll(),a.unshift(l,l.geometry,l.material,0,0,null)):v&&v.isTexture&&(void 0===c&&(c=new hf(new Lf(2,2),new yf({name:"BackgroundMaterial",uniforms:pf(Ff.background.uniforms),vertexShader:Ff.background.vertexShader,fragmentShader:Ff.background.fragmentShader,side:bo,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(c)),c.material.uniforms.t2D.value=v,c.material.uniforms.backgroundIntensity.value=m.backgroundIntensity,c.material.toneMapped=jl.getTransfer(v.colorSpace)!==sl,!0===v.matrixAutoUpdate&&v.updateMatrix(),c.material.uniforms.uvTransform.value.copy(v.matrix),h===v&&f===v.version&&d===e.toneMapping||(c.material.needsUpdate=!0,h=v,f=v.version,d=e.toneMapping),c.layers.enableAll(),a.unshift(c,c.geometry,c.material,0,0,null))}}}function zf(e,t,n,r){const i=e.getParameter(e.MAX_VERTEX_ATTRIBS),a=r.isWebGL2?null:t.get("OES_vertex_array_object"),s=r.isWebGL2||null!==a,o={},c=d(null);let l=c,u=!1;function h(t){return r.isWebGL2?e.bindVertexArray(t):a.bindVertexArrayOES(t)}function f(t){return r.isWebGL2?e.deleteVertexArray(t):a.deleteVertexArrayOES(t)}function d(e){const t=[],n=[],r=[];for(let a=0;a=0){const t=i[c];let n=a[c];if(void 0===n&&("instanceMatrix"===c&&e.instanceMatrix&&(n=e.instanceMatrix),"instanceColor"===c&&e.instanceColor&&(n=e.instanceColor)),void 0===t)return!0;if(t.attribute!==n)return!0;if(n&&t.data!==n.data)return!0;s++}}return l.attributesNum!==s||l.index!==r}(i,_,f,b),x&&function(e,t,n,r){const i={},a=t.attributes;let s=0;const o=n.getAttributes();for(const c in o){if(o[c].location>=0){let t=a[c];void 0===t&&("instanceMatrix"===c&&e.instanceMatrix&&(t=e.instanceMatrix),"instanceColor"===c&&e.instanceColor&&(t=e.instanceColor));const n={};n.attribute=t,t&&t.data&&(n.data=t.data),i[c]=n,s++}}l.attributes=i,l.attributesNum=s,l.index=r}(i,_,f,b)}else{const e=!0===c.wireframe;l.geometry===_.id&&l.program===f.id&&l.wireframe===e||(l.geometry=_.id,l.program=f.id,l.wireframe=e,x=!0)}null!==b&&n.update(b,e.ELEMENT_ARRAY_BUFFER),(x||u)&&(u=!1,function(i,a,s,o){if(!1===r.isWebGL2&&(i.isInstancedMesh||o.isInstancedBufferGeometry)&&null===t.get("ANGLE_instanced_arrays"))return;p();const c=o.attributes,l=s.getAttributes(),u=a.defaultAttributeValues;for(const t in l){const a=l[t];if(a.location>=0){let s=c[t];if(void 0===s&&("instanceMatrix"===t&&i.instanceMatrix&&(s=i.instanceMatrix),"instanceColor"===t&&i.instanceColor&&(s=i.instanceColor)),void 0!==s){const t=s.normalized,c=s.itemSize,l=n.get(s);if(void 0===l)continue;const u=l.buffer,h=l.type,f=l.bytesPerElement,d=!0===r.isWebGL2&&(h===e.INT||h===e.UNSIGNED_INT||s.gpuType===ec);if(s.isInterleavedBufferAttribute){const n=s.data,r=n.stride,l=s.offset;if(n.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"}const a="undefined"!=typeof WebGL2RenderingContext&&"WebGL2RenderingContext"===e.constructor.name;let s=void 0!==n.precision?n.precision:"highp";const o=i(s);o!==s&&(s=o);const c=a||t.has("WEBGL_draw_buffers"),l=!0===n.logarithmicDepthBuffer,u=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),f=e.getParameter(e.MAX_TEXTURE_SIZE),d=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),p=e.getParameter(e.MAX_VERTEX_ATTRIBS),m=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),g=e.getParameter(e.MAX_VARYING_VECTORS),v=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),y=h>0,_=a||t.has("OES_texture_float");return{isWebGL2:a,drawBuffers:c,getMaxAnisotropy:function(){if(void 0!==r)return r;if(!0===t.has("EXT_texture_filter_anisotropic")){const n=t.get("EXT_texture_filter_anisotropic");r=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r},getMaxPrecision:i,precision:s,logarithmicDepthBuffer:l,maxTextures:u,maxVertexTextures:h,maxTextureSize:f,maxCubemapSize:d,maxAttributes:p,maxVertexUniforms:m,maxVaryings:g,maxFragmentUniforms:v,vertexTextures:y,floatFragmentTextures:_,floatVertexTextures:y&&_,maxSamples:a?e.getParameter(e.MAX_SAMPLES):0}}function jf(e){const t=this;let n=null,r=0,i=!1,a=!1;const s=new Cf,o=new Rl,c={value:null,needsUpdate:!1};function l(e,n,r,i){const a=null!==e?e.length:0;let l=null;if(0!==a){if(l=c.value,!0!==i||null===l){const t=r+4*a,i=n.matrixWorldInverse;o.getNormalMatrix(i),(null===l||l.length0);t.numPlanes=r,t.numIntersection=0}();else{const e=a?0:r,t=4*e;let i=p.clippingState||null;c.value=i,i=l(h,o,t,u);for(let r=0;r!==t;++r)i[r]=n[r];p.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}}}function Wf(e){let t=new WeakMap;function n(e,t){return t===zo?e.mapping=Uo:t===Vo&&(e.mapping=Bo),e}function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const a=i.mapping;if(a===zo||a===Vo){if(t.has(i)){return n(t.get(i).texture,i.mapping)}{const a=i.image;if(a&&a.height>0){const s=new Ef(a.height/2);return s.fromEquirectangularTexture(e,i),t.set(i,s),i.addEventListener("dispose",r),n(s.texture,i.mapping)}return null}}}return i},dispose:function(){t=new WeakMap}}}class Gf extends _f{constructor(e=-1,t=1,n=1,r=-1,i=.1,a=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=i,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,n,r,i,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=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=n-e,a=n+e,s=r+t,o=r-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=e*this.view.offsetX,a=i+e*this.view.width,s-=t*this.view.offsetY,o=s-t*this.view.height}this.projectionMatrix.makeOrthographic(i,a,s,o,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}const Xf=[.125,.215,.35,.446,.526,.582],qf=20,$f=new Gf,Yf=new Sh;let Zf=null,Kf=0,Jf=0;const Qf=(1+Math.sqrt(5))/2,ed=1/Qf,td=[new au(1,1,1),new au(-1,1,1),new au(1,1,-1),new au(-1,1,-1),new au(0,Qf,ed),new au(0,Qf,-ed),new au(ed,0,Qf),new au(-ed,0,Qf),new au(Qf,ed,0),new au(-Qf,ed,0)];class nd{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,n=.1,r=100){Zf=this._renderer.getRenderTarget(),Kf=this._renderer.getActiveCubeFace(),Jf=this._renderer.getActiveMipmapLevel(),this._setSize(256);const i=this._allocateTargets();return i.depthBuffer=!0,this._sceneToCubeUV(e,n,r,i),t>0&&this._blur(i,0,0,t),this._applyPMREM(i),this._cleanup(i),i}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=sd(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=ad(),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=Xf[s-e+4-1]:0===s&&(o=0),r.push(o);const c=1/(a-2),l=-c,u=1+c,h=[l,l,u,l,u,u,l,l,u,u,l,u],f=6,d=6,p=3,m=2,g=1,v=new Float32Array(p*d*f),y=new Float32Array(m*d*f),_=new Float32Array(g*d*f);for(let e=0;e2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];v.set(r,p*d*e),y.set(h,m*d*e);const i=[e,e,e,e,e,e];_.set(i,g*d*e)}const b=new Xh;b.setAttribute("position",new Dh(v,p)),b.setAttribute("uv",new Dh(y,m)),b.setAttribute("faceIndex",new Dh(_,g)),t.push(b),i>4&&i--}return{lodPlanes:t,sizeLods:n,sigmas:r}}(r)),this._blurMaterial=function(e,t,n){const r=new Float32Array(qf),i=new au(0,1,0),a=new yf({name:"SphericalGaussianBlur",defines:{n:qf,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:od(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include \n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1});return a}(r,e,t)}return r}_compileMaterial(e){const t=new hf(this._lodPlanes[0],e);this._renderer.compile(t,$f)}_sceneToCubeUV(e,t,n,r){const i=new bf(90,1,t,n),a=[1,-1,1,1,1,1],s=[1,1,1,-1,-1,-1],o=this._renderer,c=o.autoClear,l=o.toneMapping;o.getClearColor(Yf),o.toneMapping=Co,o.autoClear=!1;const u=new Ah({name:"PMREM.Background",side:xo,depthWrite:!1,depthTest:!1}),h=new hf(new df,u);let f=!1;const d=e.background;d?d.isColor&&(u.color.copy(d),e.background=null,f=!0):(u.color.copy(Yf),f=!0);for(let p=0;p<6;p++){const t=p%3;0===t?(i.up.set(0,a[p],0),i.lookAt(s[p],0,0)):1===t?(i.up.set(0,0,a[p]),i.lookAt(0,s[p],0)):(i.up.set(0,a[p],0),i.lookAt(0,0,s[p]));const n=this._cubeSize;id(r,t*n,p>2?n:0,n,n),o.setRenderTarget(r),f&&o.render(h,i),o.render(e,i)}h.geometry.dispose(),h.material.dispose(),o.toneMapping=l,o.autoClear=c,e.background=d}_textureToCubeUV(e,t){const n=this._renderer,r=e.mapping===Uo||e.mapping===Bo;r?(null===this._cubemapMaterial&&(this._cubemapMaterial=sd()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=ad());const i=r?this._cubemapMaterial:this._equirectMaterial,a=new hf(this._lodPlanes[0],i);i.uniforms.envMap.value=e;const s=this._cubeSize;id(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,$f)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;for(let r=1;rv-4?r-v+4:0),4*(this._cubeSize-y),3*y,2*y),o.setRenderTarget(t),o.render(l,$f)}}function rd(e,t,n){const r=new tu(e,t,n);return r.texture.mapping=Ho,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function id(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function ad(){return new yf({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:od(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include \n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function sd(){return new yf({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:od(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function od(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function cd(e){let t=new WeakMap,n=null;function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const a=i.mapping,s=a===zo||a===Vo,o=a===Uo||a===Bo;if(s||o){if(i.isRenderTargetTexture&&!0===i.needsPMREMUpdate){i.needsPMREMUpdate=!1;let r=t.get(i);return null===n&&(n=new nd(e)),r=s?n.fromEquirectangular(i,r):n.fromCubemap(i,r),t.set(i,r),r.texture}if(t.has(i))return t.get(i).texture;{const a=i.image;if(s&&a&&a.height>0||o&&a&&function(e){let t=0;const n=6;for(let r=0;rt.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);const g=new Float32Array(p*m*4*i),v=new nu(g,p,m,i);v.type=nc,v.needsUpdate=!0;const y=4*d;for(let t=0;t0)return e;const i=t*n;let a=Sd[i];if(void 0===a&&(a=new Float32Array(i),Sd[i]=a),0!==t){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function kd(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n":" "} ${e}: ${n[s]}`)}return r.join("\n")}(e.getShaderSource(t),r)}return i}function Ap(e,t){const n=function(e){const t=jl.getPrimaries(jl.workingColorSpace),n=jl.getPrimaries(e);let r;switch(t===n?r="":t===cl&&n===ol?r="LinearDisplayP3ToLinearSRGB":t===ol&&n===cl&&(r="LinearSRGBToLinearDisplayP3"),e){case nl:case il:return[r,"LinearTransferOETF"];case tl:case rl:return[r,"sRGBTransferOETF"];default:return[r,"LinearTransferOETF"]}}(t);return`vec4 ${e}( vec4 value ) { return ${n[0]}( ${n[1]}( value ) ); }`}function Cp(e,t){let n;switch(t){case ko:n="Linear";break;case Ro:n="Reinhard";break;case Oo:n="OptimizedCineon";break;case Io:n="ACESFilmic";break;case Lo:n="AgX";break;case Po:n="Custom";break;default:n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function kp(e){return""!==e}function Rp(e,t){const n=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,n).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 Op(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}const Ip=/^[ \t]*#include +<([\w\d./]+)>/gm;function Pp(e){return e.replace(Ip,Dp)}const Lp=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function Dp(e,t){let n=Df[t];if(void 0===n){const e=Lp.get(t);if(void 0===e)throw new Error("Can not resolve #include <"+t+">");n=Df[e]}return Pp(n)}const Np=/#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 Fp(e){return e.replace(Np,Up)}function Up(e,t,n,r){let i="";for(let a=parseInt(t);a0&&(v+="\n"),y=[d,"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m].filter(kp).join("\n"),y.length>0&&(y+="\n")):(v=[Bp(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","\tattribute vec2 uv1;","#endif","#ifdef USE_UV2","\tattribute vec2 uv2;","#endif","#ifdef USE_UV3","\tattribute vec2 uv3;","#endif","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(kp).join("\n"),y=[d,Bp(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+l:"",n.envMap?"#define "+u:"",n.envMap?"#define "+h:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==Co?"#define TONE_MAPPING":"",n.toneMapping!==Co?Df.tonemapping_pars_fragment:"",n.toneMapping!==Co?Cp("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Df.colorspace_pars_fragment,Ap("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(kp).join("\n")),s=Pp(s),s=Rp(s,n),s=Op(s,n),o=Pp(o),o=Rp(o,n),o=Op(o,n),s=Fp(s),o=Fp(o),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(_="#version 300 es\n",v=[p,"precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+v,y=["precision mediump sampler2DArray;","#define varying in",n.glslVersion===hl?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===hl?"":"#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"+y);const b=_+v+s,x=_+y+o,w=Sp(i,i.VERTEX_SHADER,b),S=Sp(i,i.FRAGMENT_SHADER,x);function E(t){if(e.debug.checkShaderErrors){const n=i.getProgramInfoLog(g).trim(),r=i.getShaderInfoLog(w).trim(),a=i.getShaderInfoLog(S).trim();let s=!0,o=!0;if(!1===i.getProgramParameter(g,i.LINK_STATUS))if(s=!1,"function"==typeof e.debug.onShaderError)e.debug.onShaderError(i,g,w,S);else{Mp(i,w,"vertex"),Mp(i,S,"fragment")}else""!==n||""!==r&&""!==a||(o=!1);o&&(t.diagnostics={runnable:s,programLog:n,vertexShader:{log:r,prefix:v},fragmentShader:{log:a,prefix:y}})}i.deleteShader(w),i.deleteShader(S),T=new wp(i,g),M=function(e,t){const n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let i=0;i0,X=a.clearcoat>0,q=a.iridescence>0,$=a.sheen>0,Y=a.transmission>0,Z=G&&!!a.anisotropyMap,K=X&&!!a.clearcoatMap,J=X&&!!a.clearcoatNormalMap,Q=X&&!!a.clearcoatRoughnessMap,ee=q&&!!a.iridescenceMap,te=q&&!!a.iridescenceThicknessMap,ne=$&&!!a.sheenColorMap,re=$&&!!a.sheenRoughnessMap,ie=!!a.specularMap,ae=!!a.specularColorMap,se=!!a.specularIntensityMap,oe=Y&&!!a.transmissionMap,ce=Y&&!!a.thicknessMap,le=!!a.gradientMap,ue=!!a.alphaMap,he=a.alphaTest>0,fe=!!a.alphaHash,de=!!a.extensions,pe=!!_.attributes.uv1,me=!!_.attributes.uv2,ge=!!_.attributes.uv3;let ve=Co;return a.toneMapped&&(null!==O&&!0!==O.isXRRenderTarget||(ve=e.toneMapping)),{isWebGL2:u,shaderID:S,shaderType:a.type,shaderName:a.name,vertexShader:M,fragmentShader:A,defines:a.defines,customVertexShaderID:C,customFragmentShaderID:k,isRawShaderMaterial:!0===a.isRawShaderMaterial,glslVersion:a.glslVersion,precision:d,batching:P,instancing:I,instancingColor:I&&null!==v.instanceColor,supportsVertexTextures:f,outputColorSpace:null===O?e.outputColorSpace:!0===O.isXRRenderTarget?O.texture.colorSpace:nl,map:L,matcap:D,envMap:N,envMapMode:N&&x.mapping,envMapCubeUVHeight:w,aoMap:F,lightMap:U,bumpMap:B,normalMap:z,displacementMap:f&&V,emissiveMap:H,normalMapObjectSpace:z&&1===a.normalMapType,normalMapTangentSpace:z&&0===a.normalMapType,metalnessMap:j,roughnessMap:W,anisotropy:G,anisotropyMap:Z,clearcoat:X,clearcoatMap:K,clearcoatNormalMap:J,clearcoatRoughnessMap:Q,iridescence:q,iridescenceMap:ee,iridescenceThicknessMap:te,sheen:$,sheenColorMap:ne,sheenRoughnessMap:re,specularMap:ie,specularColorMap:ae,specularIntensityMap:se,transmission:Y,transmissionMap:oe,thicknessMap:ce,gradientMap:le,opaque:!1===a.transparent&&1===a.blending,alphaMap:ue,alphaTest:he,alphaHash:fe,combine:a.combine,mapUv:L&&m(a.map.channel),aoMapUv:F&&m(a.aoMap.channel),lightMapUv:U&&m(a.lightMap.channel),bumpMapUv:B&&m(a.bumpMap.channel),normalMapUv:z&&m(a.normalMap.channel),displacementMapUv:V&&m(a.displacementMap.channel),emissiveMapUv:H&&m(a.emissiveMap.channel),metalnessMapUv:j&&m(a.metalnessMap.channel),roughnessMapUv:W&&m(a.roughnessMap.channel),anisotropyMapUv:Z&&m(a.anisotropyMap.channel),clearcoatMapUv:K&&m(a.clearcoatMap.channel),clearcoatNormalMapUv:J&&m(a.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Q&&m(a.clearcoatRoughnessMap.channel),iridescenceMapUv:ee&&m(a.iridescenceMap.channel),iridescenceThicknessMapUv:te&&m(a.iridescenceThicknessMap.channel),sheenColorMapUv:ne&&m(a.sheenColorMap.channel),sheenRoughnessMapUv:re&&m(a.sheenRoughnessMap.channel),specularMapUv:ie&&m(a.specularMap.channel),specularColorMapUv:ae&&m(a.specularColorMap.channel),specularIntensityMapUv:se&&m(a.specularIntensityMap.channel),transmissionMapUv:oe&&m(a.transmissionMap.channel),thicknessMapUv:ce&&m(a.thicknessMap.channel),alphaMapUv:ue&&m(a.alphaMap.channel),vertexTangents:!!_.attributes.tangent&&(z||G),vertexColors:a.vertexColors,vertexAlphas:!0===a.vertexColors&&!!_.attributes.color&&4===_.attributes.color.itemSize,vertexUv1s:pe,vertexUv2s:me,vertexUv3s:ge,pointsUvs:!0===v.isPoints&&!!_.attributes.uv&&(L||ue),fog:!!y,useFog:!0===a.fog,fogExp2:y&&y.isFogExp2,flatShading:!0===a.flatShading,sizeAttenuation:!0===a.sizeAttenuation,logarithmicDepthBuffer:h,skinning:!0===v.isSkinnedMesh,morphTargets:void 0!==_.morphAttributes.position,morphNormals:void 0!==_.morphAttributes.normal,morphColors:void 0!==_.morphAttributes.color,morphTargetsCount:T,morphTextureStride:R,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&&l.length>0,shadowMapType:e.shadowMap.type,toneMapping:ve,useLegacyLights:e._useLegacyLights,decodeVideoTexture:L&&!0===a.map.isVideoTexture&&jl.getTransfer(a.map.colorSpace)===sl,premultipliedAlpha:a.premultipliedAlpha,doubleSided:2===a.side,flipSided:a.side===xo,useDepthPacking:a.depthPacking>=0,depthPacking:a.depthPacking||0,index0AttributeName:a.index0AttributeName,extensionDerivatives:de&&!0===a.extensions.derivatives,extensionFragDepth:de&&!0===a.extensions.fragDepth,extensionDrawBuffers:de&&!0===a.extensions.drawBuffers,extensionShaderTextureLOD:de&&!0===a.extensions.shaderTextureLOD,extensionClipCullDistance:de&&a.extensions.clipCullDistance&&r.has("WEBGL_clip_cull_distance"),rendererExtensionFragDepth:u||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||r.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:r.has("KHR_parallel_shader_compile"),customProgramCacheKey:a.customProgramCacheKey()}},getProgramCacheKey:function(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(!function(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}(n,t),function(e,t){o.disableAll(),t.isWebGL2&&o.enable(0);t.supportsVertexTextures&&o.enable(1);t.instancing&&o.enable(2);t.instancingColor&&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);e.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);e.push(o.mask)}(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){const t=p[e.type];let n;if(t){const e=Ff[t];n=vf.clone(e.uniforms)}else n=e.uniforms;return n},acquireProgram:function(t,n){let r;for(let e=0,i=l.length;e0?r.push(u):!0===s.transparent?i.push(u):n.push(u)},unshift:function(e,t,s,o,c,l){const u=a(e,t,s,o,c,l);s.transmission>0?r.unshift(u):!0===s.transparent?i.unshift(u):n.unshift(u)},finish:function(){for(let n=t,r=e.length;n1&&n.sort(e||Xp),r.length>1&&r.sort(t||qp),i.length>1&&i.sort(t||qp)}}}function Yp(){let e=new WeakMap;return{get:function(t,n){const r=e.get(t);let i;return void 0===r?(i=new $p,e.set(t,[i])):n>=r.length?(i=new $p,r.push(i)):i=r[n],i},dispose:function(){e=new WeakMap}}}function Zp(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new au,color:new Sh};break;case"SpotLight":n={position:new au,direction:new au,color:new Sh,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new au,color:new Sh,distance:0,decay:0};break;case"HemisphereLight":n={direction:new au,skyColor:new Sh,groundColor:new Sh};break;case"RectAreaLight":n={color:new Sh,position:new au,halfWidth:new au,halfHeight:new au}}return e[t.id]=n,n}}}let Kp=0;function Jp(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function Qp(e,t){const n=new Zp,r=function(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new kl};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new kl,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let c=0;c<9;c++)i.probe.push(new au);const a=new au,s=new Du,o=new Du;return{setup:function(a,s){let o=0,c=0,l=0;for(let e=0;e<9;e++)i.probe[e].set(0,0,0);let u=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0;a.sort(Jp);const x=!0===s?Math.PI:1;for(let e=0,t=a.length;e0&&(t.isWebGL2?!0===e.has("OES_texture_float_linear")?(i.rectAreaLTC1=Nf.LTC_FLOAT_1,i.rectAreaLTC2=Nf.LTC_FLOAT_2):(i.rectAreaLTC1=Nf.LTC_HALF_1,i.rectAreaLTC2=Nf.LTC_HALF_2):!0===e.has("OES_texture_float_linear")?(i.rectAreaLTC1=Nf.LTC_FLOAT_1,i.rectAreaLTC2=Nf.LTC_FLOAT_2):!0===e.has("OES_texture_half_float_linear")&&(i.rectAreaLTC1=Nf.LTC_HALF_1,i.rectAreaLTC2=Nf.LTC_HALF_2)),i.ambient[0]=o,i.ambient[1]=c,i.ambient[2]=l;const w=i.hash;w.directionalLength===u&&w.pointLength===h&&w.spotLength===f&&w.rectAreaLength===d&&w.hemiLength===p&&w.numDirectionalShadows===m&&w.numPointShadows===g&&w.numSpotShadows===v&&w.numSpotMaps===y&&w.numLightProbes===b||(i.directional.length=u,i.spot.length=f,i.rectArea.length=d,i.point.length=h,i.hemi.length=p,i.directionalShadow.length=m,i.directionalShadowMap.length=m,i.pointShadow.length=g,i.pointShadowMap.length=g,i.spotShadow.length=v,i.spotShadowMap.length=v,i.directionalShadowMatrix.length=m,i.pointShadowMatrix.length=g,i.spotLightMatrix.length=v+y-_,i.spotLightMap.length=y,i.numSpotLightShadowsWithMaps=_,i.numLightProbes=b,w.directionalLength=u,w.pointLength=h,w.spotLength=f,w.rectAreaLength=d,w.hemiLength=p,w.numDirectionalShadows=m,w.numPointShadows=g,w.numSpotShadows=v,w.numSpotMaps=y,w.numLightProbes=b,i.version=Kp++)},setupView:function(e,t){let n=0,r=0,c=0,l=0,u=0;const h=t.matrixWorldInverse;for(let f=0,d=e.length;f=a.length?(s=new em(e,t),a.push(s)):s=a[i],s},dispose:function(){n=new WeakMap}}}class nm extends Mh{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=3200,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 rm extends Mh{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 im(e,t,n){let r=new Of;const i=new kl,a=new kl,s=new Ql,o=new nm({depthPacking:3201}),c=new rm,l={},u=n.maxTextureSize,h={[bo]:xo,[xo]:bo,2:2},f=new yf({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new kl},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include \nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),d=f.clone();d.defines.HORIZONTAL_PASS=1;const p=new Xh;p.setAttribute("position",new Dh(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const m=new hf(p,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=vo;let v=this.type;function y(n,r){const a=t.update(m);f.defines.VSM_SAMPLES!==n.blurSamples&&(f.defines.VSM_SAMPLES=n.blurSamples,d.defines.VSM_SAMPLES=n.blurSamples,f.needsUpdate=!0,d.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new tu(i.x,i.y)),f.uniforms.shadow_pass.value=n.map.texture,f.uniforms.resolution.value=n.mapSize,f.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,a,f,m,null),d.uniforms.shadow_pass.value=n.mapPass.texture,d.uniforms.resolution.value=n.mapSize,d.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,a,d,m,null)}function _(t,n,r,i){let a=null;const s=!0===r.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(void 0!==s)a=s;else if(a=!0===r.isPointLight?c:o,e.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){const e=a.uuid,t=n.uuid;let r=l[e];void 0===r&&(r={},l[e]=r);let i=r[t];void 0===i&&(i=a.clone(),r[t]=i,n.addEventListener("dispose",x)),a=i}if(a.visible=n.visible,a.wireframe=n.wireframe,a.side=i===_o?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:h[n.side],a.alphaMap=n.alphaMap,a.alphaTest=n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,!0===r.isPointLight&&!0===a.isMeshDistanceMaterial){e.properties.get(a).light=r}return a}function b(n,i,a,s,o){if(!1===n.visible)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&o===_o)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);const r=t.update(n),c=n.material;if(Array.isArray(c)){const t=r.groups;for(let l=0,u=t.length;lu||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/h.x),i.x=a.x*h.x,l.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/h.y),i.y=a.y*h.y,l.mapSize.y=a.y)),null===l.map||!0===d||!0===p){const e=this.type!==_o?{minFilter:Xo,magFilter:Xo}:{};null!==l.map&&l.map.dispose(),l.map=new tu(i.x,i.y,e),l.map.texture.name=c.name+".shadowMap",l.camera.updateProjectionMatrix()}e.setRenderTarget(l.map),e.clear();const g=l.getViewportCount();for(let e=0;e=1):-1!==P.indexOf("OpenGL ES")&&(I=parseFloat(/^OpenGL ES (\d)/.exec(P)[1]),O=I>=2);let L=null,D={};const N=e.getParameter(e.SCISSOR_BOX),F=e.getParameter(e.VIEWPORT),U=(new Ql).fromArray(N),B=(new Ql).fromArray(F);function z(t,n,i,a){const s=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let c=0;cr||e.height>r)&&(i=r/Math.max(e.width,e.height)),i<1||!0===t){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){const r=t?Tl:Math.floor,a=r(i*e.width),s=r(i*e.height);void 0===h&&(h=p(a,s));const o=n?p(a,s):h;o.width=a,o.height=s;return o.getContext("2d").drawImage(e,0,0,a,s),o}return e}return e}function g(e){return El(e.width)&&El(e.height)}function v(e,t){return e.generateMipmaps&&t&&e.minFilter!==Xo&&e.minFilter!==Yo}function y(t){e.generateMipmap(t)}function _(n,r,i,a,s=!1){if(!1===o)return r;if(null!==n&&void 0!==e[n])return e[n];let c=r;if(r===e.RED&&(i===e.FLOAT&&(c=e.R32F),i===e.HALF_FLOAT&&(c=e.R16F),i===e.UNSIGNED_BYTE&&(c=e.R8)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(c=e.R8UI),i===e.UNSIGNED_SHORT&&(c=e.R16UI),i===e.UNSIGNED_INT&&(c=e.R32UI),i===e.BYTE&&(c=e.R8I),i===e.SHORT&&(c=e.R16I),i===e.INT&&(c=e.R32I)),r===e.RG&&(i===e.FLOAT&&(c=e.RG32F),i===e.HALF_FLOAT&&(c=e.RG16F),i===e.UNSIGNED_BYTE&&(c=e.RG8)),r===e.RGBA){const t=s?al:jl.getTransfer(a);i===e.FLOAT&&(c=e.RGBA32F),i===e.HALF_FLOAT&&(c=e.RGBA16F),i===e.UNSIGNED_BYTE&&(c=t===sl?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT_4_4_4_4&&(c=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(c=e.RGB5_A1)}return c!==e.R16F&&c!==e.R32F&&c!==e.RG16F&&c!==e.RG32F&&c!==e.RGBA16F&&c!==e.RGBA32F||t.get("EXT_color_buffer_float"),c}function b(e,t,n){return!0===v(e,n)||e.isFramebufferTexture&&e.minFilter!==Xo&&e.minFilter!==Yo?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(t){return t===Xo||t===qo||t===$o?e.NEAREST:e.LINEAR}function w(e){const t=e.target;t.removeEventListener("dispose",w),function(e){const t=r.get(e);if(void 0===t.__webglInit)return;const n=e.source,i=f.get(n);if(i){const r=i[t.__cacheKey];r.usedTimes--,0===r.usedTimes&&E(e),0===Object.keys(i).length&&f.delete(n)}r.remove(e)}(t),t.isVideoTexture&&u.delete(t)}function S(t){const n=t.target;n.removeEventListener("dispose",S),function(t){const n=t.texture,i=r.get(t),a=r.get(n);void 0!==a.__webglTexture&&(e.deleteTexture(a.__webglTexture),s.memory.textures--);t.depthTexture&&t.depthTexture.dispose();if(t.isWebGLCubeRenderTarget)for(let r=0;r<6;r++){if(Array.isArray(i.__webglFramebuffer[r]))for(let t=0;t0&&a.__version!==t.version){const e=t.image;if(null===e);else if(!1!==e.complete)return void I(a,t,i)}n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}const A={[jo]:e.REPEAT,[Wo]:e.CLAMP_TO_EDGE,[Go]:e.MIRRORED_REPEAT},C={[Xo]:e.NEAREST,[qo]:e.NEAREST_MIPMAP_NEAREST,[$o]:e.NEAREST_MIPMAP_LINEAR,[Yo]:e.LINEAR,[Zo]:e.LINEAR_MIPMAP_NEAREST,[Ko]:e.LINEAR_MIPMAP_LINEAR},k={512:e.NEVER,519:e.ALWAYS,513:e.LESS,515:e.LEQUAL,514:e.EQUAL,518:e.GEQUAL,516:e.GREATER,517:e.NOTEQUAL};function R(n,a,s){if(s?(e.texParameteri(n,e.TEXTURE_WRAP_S,A[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,A[a.wrapT]),n!==e.TEXTURE_3D&&n!==e.TEXTURE_2D_ARRAY||e.texParameteri(n,e.TEXTURE_WRAP_R,A[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,C[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,C[a.minFilter])):(e.texParameteri(n,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(n,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),n!==e.TEXTURE_3D&&n!==e.TEXTURE_2D_ARRAY||e.texParameteri(n,e.TEXTURE_WRAP_R,e.CLAMP_TO_EDGE),a.wrapS!==Wo||a.wrapT,e.texParameteri(n,e.TEXTURE_MAG_FILTER,x(a.magFilter)),e.texParameteri(n,e.TEXTURE_MIN_FILTER,x(a.minFilter)),a.minFilter!==Xo&&a.minFilter),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,k[a.compareFunction])),!0===t.has("EXT_texture_filter_anisotropic")){const s=t.get("EXT_texture_filter_anisotropic");if(a.magFilter===Xo)return;if(a.minFilter!==$o&&a.minFilter!==Ko)return;if(a.type===nc&&!1===t.has("OES_texture_float_linear"))return;if(!1===o&&a.type===rc&&!1===t.has("OES_texture_half_float_linear"))return;(a.anisotropy>1||r.get(a).__currentAnisotropy)&&(e.texParameterf(n,s.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy)}}function O(t,n){let r=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",w));const i=n.source;let a=f.get(i);void 0===a&&(a={},f.set(i,a));const o=function(e){const 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()}(n);if(o!==t.__cacheKey){void 0===a[o]&&(a[o]={texture:e.createTexture(),usedTimes:0},s.memory.textures++,r=!0),a[o].usedTimes++;const i=a[t.__cacheKey];void 0!==i&&(a[t.__cacheKey].usedTimes--,0===i.usedTimes&&E(n)),t.__cacheKey=o,t.__webglTexture=a[o].texture}return r}function I(t,s,c){let l=e.TEXTURE_2D;(s.isDataArrayTexture||s.isCompressedArrayTexture)&&(l=e.TEXTURE_2D_ARRAY),s.isData3DTexture&&(l=e.TEXTURE_3D);const u=O(t,s),h=s.source;n.bindTexture(l,t.__webglTexture,e.TEXTURE0+c);const f=r.get(h);if(h.version!==f.__version||!0===u){n.activeTexture(e.TEXTURE0+c);const t=jl.getPrimaries(jl.workingColorSpace),r=s.colorSpace===el?null:jl.getPrimaries(s.colorSpace),d=s.colorSpace===el||t===r?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);const p=function(e){return!o&&(e.wrapS!==Wo||e.wrapT!==Wo||e.minFilter!==Xo&&e.minFilter!==Yo)}(s)&&!1===g(s.image);let x=m(s.image,p,!1,i.maxTextureSize);x=U(s,x);const w=g(x)||o,S=a.convert(s.format,s.colorSpace);let E,T=a.convert(s.type),M=_(s.internalFormat,S,T,s.colorSpace,s.isVideoTexture);R(l,s,w);const A=s.mipmaps,C=o&&!0!==s.isVideoTexture&&M!==xc,k=void 0===f.__version||!0===u,O=b(s,x,w);if(s.isDepthTexture)M=e.DEPTH_COMPONENT,o?M=s.type===nc?e.DEPTH_COMPONENT32F:s.type===tc?e.DEPTH_COMPONENT24:s.type===sc?e.DEPTH24_STENCIL8:e.DEPTH_COMPONENT16:s.type,s.format===cc&&M===e.DEPTH_COMPONENT&&s.type!==Qo&&s.type!==tc&&(s.type=tc,T=a.convert(s.type)),s.format===lc&&M===e.DEPTH_COMPONENT&&(M=e.DEPTH_STENCIL,s.type!==sc&&(s.type=sc,T=a.convert(s.type))),k&&(C?n.texStorage2D(e.TEXTURE_2D,1,M,x.width,x.height):n.texImage2D(e.TEXTURE_2D,0,M,x.width,x.height,0,S,T,null));else if(s.isDataTexture)if(A.length>0&&w){C&&k&&n.texStorage2D(e.TEXTURE_2D,O,M,A[0].width,A[0].height);for(let t=0,r=A.length;t>=1,r>>=1}}else if(A.length>0&&w){C&&k&&n.texStorage2D(e.TEXTURE_2D,O,M,A[0].width,A[0].height);for(let t=0,r=A.length;t>u),r=Math.max(1,i.height>>u);l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,u,d,t,r,i.depth,0,h,f,null):n.texImage2D(l,u,d,t,r,0,h,f,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),F(i)?c.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,o,l,r.get(s).__webglTexture,0,N(i)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,o,l,r.get(s).__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function L(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer&&!n.stencilBuffer){let i=!0===o?e.DEPTH_COMPONENT24:e.DEPTH_COMPONENT16;if(r||F(n)){const t=n.depthTexture;t&&t.isDepthTexture&&(t.type===nc?i=e.DEPTH_COMPONENT32F:t.type===tc&&(i=e.DEPTH_COMPONENT24));const r=N(n);F(n)?c.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,r,i,n.width,n.height):e.renderbufferStorageMultisample(e.RENDERBUFFER,r,i,n.width,n.height)}else e.renderbufferStorage(e.RENDERBUFFER,i,n.width,n.height);e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t)}else if(n.depthBuffer&&n.stencilBuffer){const i=N(n);r&&!1===F(n)?e.renderbufferStorageMultisample(e.RENDERBUFFER,i,e.DEPTH24_STENCIL8,n.width,n.height):F(n)?c.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,i,e.DEPTH24_STENCIL8,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.RENDERBUFFER,t)}else{const t=!0===n.isWebGLMultipleRenderTargets?n.texture:[n.texture];for(let i=0;i0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function U(e,n){const r=e.colorSpace,i=e.format;e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||e.format===fl||r!==nl&&r!==el&&jl.getTransfer(r)===sl&&!1===o&&(!0===t.has("EXT_sRGB")&&i===oc?(e.format=fl,e.minFilter=Yo,e.generateMipmaps=!1):n=ql.sRGBToLinear(n)),n}this.allocateTextureUnit=function(){const e=T;return i.maxTextures,T+=1,e},this.resetTextureUnits=function(){T=0},this.setTexture2D=M,this.setTexture2DArray=function(t,i){const a=r.get(t);t.version>0&&a.__version!==t.version?I(a,t,i):n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i)},this.setTexture3D=function(t,i){const a=r.get(t);t.version>0&&a.__version!==t.version?I(a,t,i):n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)},this.setTextureCube=function(t,s){const c=r.get(t);t.version>0&&c.__version!==t.version?function(t,s,c){if(6!==s.image.length)return;const l=O(t,s),u=s.source;n.bindTexture(e.TEXTURE_CUBE_MAP,t.__webglTexture,e.TEXTURE0+c);const h=r.get(u);if(u.version!==h.__version||!0===l){n.activeTexture(e.TEXTURE0+c);const t=jl.getPrimaries(jl.workingColorSpace),r=s.colorSpace===el?null:jl.getPrimaries(s.colorSpace),f=s.colorSpace===el||t===r?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,f);const d=s.isCompressedTexture||s.image[0].isCompressedTexture,p=s.image[0]&&s.image[0].isDataTexture,x=[];for(let e=0;e<6;e++)x[e]=d||p?p?s.image[e].image:s.image[e]:m(s.image[e],!1,!0,i.maxCubemapSize),x[e]=U(s,x[e]);const w=x[0],S=g(w)||o,E=a.convert(s.format,s.colorSpace),T=a.convert(s.type),M=_(s.internalFormat,E,T,s.colorSpace),A=o&&!0!==s.isVideoTexture,C=void 0===h.__version||!0===l;let k,O=b(s,w,S);if(R(e.TEXTURE_CUBE_MAP,s,S),d){A&&C&&n.texStorage2D(e.TEXTURE_CUBE_MAP,O,M,w.width,w.height);for(let t=0;t<6;t++){k=x[t].mipmaps;for(let r=0;r0&&O++,n.texStorage2D(e.TEXTURE_CUBE_MAP,O,M,x[0].width,x[0].height));for(let t=0;t<6;t++)if(p){A?n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,x[t].width,x[t].height,E,T,x[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,M,x[t].width,x[t].height,0,E,T,x[t].data);for(let r=0;r0){l.__webglFramebuffer[t]=[];for(let n=0;n0){l.__webglFramebuffer=[];for(let t=0;t0&&!1===F(t)){const r=f?c:[c];l.__webglMultisampledFramebuffer=e.createFramebuffer(),l.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,l.__webglMultisampledFramebuffer);for(let n=0;n0)for(let r=0;r0)for(let n=0;n0&&!1===F(t)){const i=t.isWebGLMultipleRenderTargets?t.texture:[t.texture],a=t.width,s=t.height;let o=e.COLOR_BUFFER_BIT;const c=[],u=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,h=r.get(t),f=!0===t.isWebGLMultipleRenderTargets;if(f)for(let t=0;to+l?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&s<=o-l&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==o&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),null!==i&&(o.matrix.fromArray(i.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,i.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(i.linearVelocity)):o.hasLinearVelocity=!1,i.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(i.angularVelocity)):o.hasAngularVelocity=!1));null!==s&&(r=t.getPose(e.targetRaySpace,n),null===r&&null!==i&&(r=i),null!==r&&(s.matrix.fromArray(r.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,r.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(r.linearVelocity)):s.hasLinearVelocity=!1,r.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(r.angularVelocity)):s.hasAngularVelocity=!1,this.dispatchEvent(um)))}return null!==s&&(s.visible=null!==r),null!==o&&(o.visible=null!==i),null!==c&&(c.visible=null!==a),this}_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){const n=new lm;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class fm extends ml{constructor(e,t){super();const n=this;let r=null,i=1,a=null,s="local-floor",o=1,c=null,l=null,u=null,h=null,f=null,d=null;const p=t.getContextAttributes();let m=null,g=null;const v=[],y=[],_=new kl;let b=null;const x=new bf;x.layers.enable(1),x.viewport=new Ql;const w=new bf;w.layers.enable(2),w.viewport=new Ql;const S=[x,w],E=new cm;E.layers.enable(1),E.layers.enable(2);let T=null,M=null;function A(e){const t=y.indexOf(e.inputSource);if(-1===t)return;const n=v[t];void 0!==n&&(n.update(e.inputSource,e.frame,c||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function C(){r.removeEventListener("select",A),r.removeEventListener("selectstart",A),r.removeEventListener("selectend",A),r.removeEventListener("squeeze",A),r.removeEventListener("squeezestart",A),r.removeEventListener("squeezeend",A),r.removeEventListener("end",C),r.removeEventListener("inputsourceschange",k);for(let e=0;e=0&&(y[r]=null,v[r].disconnect(n))}for(let t=0;t=y.length){y.push(n),r=e;break}if(null===y[e]){y[e]=n,r=e;break}}if(-1===r)break}const i=v[r];i&&i.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=v[e];return void 0===t&&(t=new hm,v[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=v[e];return void 0===t&&(t=new hm,v[e]=t),t.getGripSpace()},this.getHand=function(e){let t=v[e];return void 0===t&&(t=new hm,v[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){i=e,n.isPresenting},this.setReferenceSpaceType=function(e){s=e,n.isPresenting},this.getReferenceSpace=function(){return c||a},this.setReferenceSpace=function(e){c=e},this.getBaseLayer=function(){return null!==h?h:f},this.getBinding=function(){return u},this.getFrame=function(){return d},this.getSession=function(){return r},this.setSession=async function(l){if(r=l,null!==r){if(m=e.getRenderTarget(),r.addEventListener("select",A),r.addEventListener("selectstart",A),r.addEventListener("selectend",A),r.addEventListener("squeeze",A),r.addEventListener("squeezestart",A),r.addEventListener("squeezeend",A),r.addEventListener("end",C),r.addEventListener("inputsourceschange",k),!0!==p.xrCompatible&&await t.makeXRCompatible(),b=e.getPixelRatio(),e.getSize(_),void 0===r.renderState.layers||!1===e.capabilities.isWebGL2){const n={antialias:void 0!==r.renderState.layers||p.antialias,alpha:!0,depth:p.depth,stencil:p.stencil,framebufferScaleFactor:i};f=new XRWebGLLayer(r,t,n),r.updateRenderState({baseLayer:f}),e.setPixelRatio(1),e.setSize(f.framebufferWidth,f.framebufferHeight,!1),g=new tu(f.framebufferWidth,f.framebufferHeight,{format:oc,type:Jo,colorSpace:e.outputColorSpace,stencilBuffer:p.stencil})}else{let n=null,a=null,s=null;p.depth&&(s=p.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,n=p.stencil?lc:cc,a=p.stencil?sc:tc);const o={colorFormat:t.RGBA8,depthFormat:s,scaleFactor:i};u=new XRWebGLBinding(r,t),h=u.createProjectionLayer(o),r.updateRenderState({layers:[h]}),e.setPixelRatio(1),e.setSize(h.textureWidth,h.textureHeight,!1),g=new tu(h.textureWidth,h.textureHeight,{format:oc,type:Jo,depthTexture:new vd(h.textureWidth,h.textureHeight,a,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:p.stencil,colorSpace:e.outputColorSpace,samples:p.antialias?4:0});e.properties.get(g).__ignoreDepthValues=h.ignoreDepthValues}g.isXRRenderTarget=!0,this.setFoveation(o),c=null,a=await r.requestReferenceSpace(s),L.setContext(r),L.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(null!==r)return r.environmentBlendMode};const R=new au,O=new au;function I(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===r)return;E.near=w.near=x.near=e.near,E.far=w.far=x.far=e.far,T===E.near&&M===E.far||(r.updateRenderState({depthNear:E.near,depthFar:E.far}),T=E.near,M=E.far);const t=e.parent,n=E.cameras;I(E,t);for(let r=0;r0&&(r.alphaTest.value=i.alphaTest);const a=t.get(i).envMap;if(a&&(r.envMap.value=a,r.flipEnvMap.value=a.isCubeTexture&&!1===a.isRenderTargetTexture?-1:1,r.reflectivity.value=i.reflectivity,r.ior.value=i.ior,r.refractionRatio.value=i.refractionRatio),i.lightMap){r.lightMap.value=i.lightMap;const t=!0===e._useLegacyLights?Math.PI:1;r.lightMapIntensity.value=i.lightMapIntensity*t,n(i.lightMap,r.lightMapTransform)}i.aoMap&&(r.aoMap.value=i.aoMap,r.aoMapIntensity.value=i.aoMapIntensity,n(i.aoMap,r.aoMapTransform))}return{refreshFogUniforms:function(t,n){n.color.getRGB(t.fogColor.value,gf(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)},refreshMaterialUniforms:function(e,i,a,s,o){i.isMeshBasicMaterial||i.isMeshLambertMaterial?r(e,i):i.isMeshToonMaterial?(r(e,i),function(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}(e,i)):i.isMeshPhongMaterial?(r(e,i),function(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}(e,i)):i.isMeshStandardMaterial?(r(e,i),function(e,r){e.metalness.value=r.metalness,r.metalnessMap&&(e.metalnessMap.value=r.metalnessMap,n(r.metalnessMap,e.metalnessMapTransform));e.roughness.value=r.roughness,r.roughnessMap&&(e.roughnessMap.value=r.roughnessMap,n(r.roughnessMap,e.roughnessMapTransform));const i=t.get(r).envMap;i&&(e.envMapIntensity.value=r.envMapIntensity)}(e,i),i.isMeshPhysicalMaterial&&function(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform)));t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===xo&&e.clearcoatNormalScale.value.negate()));t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform)));t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor));t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform)));e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform));t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}(e,i,o)):i.isMeshMatcapMaterial?(r(e,i),function(e,t){t.matcap&&(e.matcap.value=t.matcap)}(e,i)):i.isMeshDepthMaterial?r(e,i):i.isMeshDistanceMaterial?(r(e,i),function(e,n){const r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}(e,i)):i.isMeshNormalMaterial?r(e,i):i.isLineBasicMaterial?(function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}(e,i),i.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}(e,i)):i.isPointsMaterial?function(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=.5*i,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform));t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform));t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,i,a,s):i.isSpriteMaterial?function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform));t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform));t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,i):i.isShadowMaterial?(e.color.value.copy(i.color),e.opacity.value=i.opacity):i.isShaderMaterial&&(i.uniformsNeedUpdate=!1)}}}function pm(e,t,n,r){let i={},a={},s=[];const o=n.isWebGL2?e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS):0;function c(e,t,n,r){const i=e.value,a=t+"_"+n;if(void 0===r[a])return r[a]="number"==typeof i||"boolean"==typeof i?i:i.clone(),!0;{const e=r[a];if("number"==typeof i||"boolean"==typeof i){if(e!==i)return r[a]=i,!0}else if(!1===e.equals(i))return e.copy(i),!0}return!1}function l(e){const 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,t}function u(t){const n=t.target;n.removeEventListener("dispose",u);const r=s.indexOf(n.__bindingPointIndex);s.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}return{bind:function(e,t){const n=t.program;r.uniformBlockBinding(e,n)},update:function(n,h){let f=i[n.id];void 0===f&&(!function(e){const t=e.uniforms;let n=0;const r=16;for(let a=0,s=t.length;a0&&(n+=r-i);e.__size=n,e.__cache={}}(n),f=function(t){const n=function(){for(let e=0;e0),h=!!n.morphAttributes.position,f=!!n.morphAttributes.normal,d=!!n.morphAttributes.color;let p=Co;r.toneMapped&&(null!==w&&!0!==w.isXRRenderTarget||(p=y.toneMapping));const g=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,v=void 0!==g?g.length:0,_=K.get(r),b=m.state.lights;if(!0===B&&(!0===z||e!==E)){const t=e===E&&r.id===S;ce.setState(r,e,t)}let x=!1;r.version===_.__version?_.needsLights&&_.lightsStateVersion!==b.state.version||_.outputColorSpace!==o||i.isBatchedMesh&&!1===_.batching?x=!0:i.isBatchedMesh||!0!==_.batching?i.isInstancedMesh&&!1===_.instancing?x=!0:i.isInstancedMesh||!0!==_.instancing?i.isSkinnedMesh&&!1===_.skinning?x=!0:i.isSkinnedMesh||!0!==_.skinning?i.isInstancedMesh&&!0===_.instancingColor&&null===i.instanceColor||i.isInstancedMesh&&!1===_.instancingColor&&null!==i.instanceColor||_.envMap!==c||!0===r.fog&&_.fog!==a?x=!0:void 0===_.numClippingPlanes||_.numClippingPlanes===ce.numPlanes&&_.numIntersection===ce.numIntersection?(_.vertexAlphas!==l||_.vertexTangents!==u||_.morphTargets!==h||_.morphNormals!==f||_.morphColors!==d||_.toneMapping!==p||!0===$.isWebGL2&&_.morphTargetsCount!==v)&&(x=!0):x=!0:x=!0:x=!0:x=!0:(x=!0,_.__version=r.version);let T=_.currentProgram;!0===x&&(T=Le(r,t,i));let M=!1,A=!1,C=!1;const k=T.getUniforms(),R=_.uniforms;Y.useProgram(T.program)&&(M=!0,A=!0,C=!0);r.id!==S&&(S=r.id,A=!0);if(M||E!==e){k.setValue(ve,"projectionMatrix",e.projectionMatrix),k.setValue(ve,"viewMatrix",e.matrixWorldInverse);const t=k.map.cameraPosition;void 0!==t&&t.setValue(ve,W.setFromMatrixPosition(e.matrixWorld)),$.logarithmicDepthBuffer&&k.setValue(ve,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&k.setValue(ve,"isOrthographic",!0===e.isOrthographicCamera),E!==e&&(E=e,A=!0,C=!0)}if(i.isSkinnedMesh){k.setOptional(ve,i,"bindMatrix"),k.setOptional(ve,i,"bindMatrixInverse");const e=i.skeleton;e&&$.floatVertexTextures&&(null===e.boneTexture&&e.computeBoneTexture(),k.setValue(ve,"boneTexture",e.boneTexture,J))}i.isBatchedMesh&&(k.setOptional(ve,i,"batchingTexture"),k.setValue(ve,"batchingTexture",i._matricesTexture,J));const P=n.morphAttributes;(void 0!==P.position||void 0!==P.normal||void 0!==P.color&&!0===$.isWebGL2)&&he.update(i,n,T);(A||_.receiveShadow!==i.receiveShadow)&&(_.receiveShadow=i.receiveShadow,k.setValue(ve,"receiveShadow",i.receiveShadow));r.isMeshGouraudMaterial&&null!==r.envMap&&(R.envMap.value=c,R.flipEnvMap.value=c.isCubeTexture&&!1===c.isRenderTargetTexture?-1:1);A&&(k.setValue(ve,"toneMappingExposure",y.toneMappingExposure),_.needsLights&&(D=C,(L=R).ambientLightColor.needsUpdate=D,L.lightProbe.needsUpdate=D,L.directionalLights.needsUpdate=D,L.directionalLightShadows.needsUpdate=D,L.pointLights.needsUpdate=D,L.pointLightShadows.needsUpdate=D,L.spotLights.needsUpdate=D,L.spotLightShadows.needsUpdate=D,L.rectAreaLights.needsUpdate=D,L.hemisphereLights.needsUpdate=D),a&&!0===r.fog&&ae.refreshFogUniforms(R,a),ae.refreshMaterialUniforms(R,r,I,O,V),wp.upload(ve,De(_),R,J));var L,D;r.isShaderMaterial&&!0===r.uniformsNeedUpdate&&(wp.upload(ve,De(_),R,J),r.uniformsNeedUpdate=!1);r.isSpriteMaterial&&k.setValue(ve,"center",i.center);if(k.setValue(ve,"modelViewMatrix",i.modelViewMatrix),k.setValue(ve,"normalMatrix",i.normalMatrix),k.setValue(ve,"modelMatrix",i.matrixWorld),r.isShaderMaterial||r.isRawShaderMaterial){const e=r.uniformsGroups;for(let t=0,n=e.length;t{function n(){r.forEach((function(e){K.get(e).currentProgram.isReady()&&r.delete(e)})),0!==r.size?setTimeout(n,10):t(e)}null!==q.get("KHR_parallel_shader_compile")?n():setTimeout(n,10)}))};let Me=null;function Ae(){ke.stop()}function Ce(){ke.start()}const ke=new If;function Re(e,t,n,r){if(!1===e.visible)return;if(e.layers.test(t.layers))if(e.isGroup)n=e.renderOrder;else if(e.isLOD)!0===e.autoUpdate&&e.update(t);else if(e.isLight)m.pushLight(e),e.castShadow&&m.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||U.intersectsSprite(e)){r&&W.setFromMatrixPosition(e.matrixWorld).applyMatrix4(H);const t=re.update(e),i=e.material;i.visible&&p.push(e,t,i,n,W.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||U.intersectsObject(e))){const t=re.update(e),i=e.material;if(r&&(void 0!==e.boundingSphere?(null===e.boundingSphere&&e.computeBoundingSphere(),W.copy(e.boundingSphere.center)):(null===t.boundingSphere&&t.computeBoundingSphere(),W.copy(t.boundingSphere.center)),W.applyMatrix4(e.matrixWorld).applyMatrix4(H)),Array.isArray(i)){const r=t.groups;for(let a=0,s=r.length;a0&&function(e,t,n,r){const i=!0===n.isScene?n.overrideMaterial:null;if(null!==i)return;const a=$.isWebGL2;null===V&&(V=new tu(1,1,{generateMipmaps:!0,type:q.has("EXT_color_buffer_half_float")?rc:Jo,minFilter:Ko,samples:a?4:0}));y.getDrawingBufferSize(j),a?V.setSize(j.x,j.y):V.setSize(Tl(j.x),Tl(j.y));const s=y.getRenderTarget();y.setRenderTarget(V),y.getClearColor(C),k=y.getClearAlpha(),k<1&&y.setClearColor(16777215,.5);y.clear();const o=y.toneMapping;y.toneMapping=Co,Ie(e,n,r),J.updateMultisampleRenderTarget(V),J.updateRenderTargetMipmap(V);let c=!1;for(let l=0,u=t.length;l0&&Ie(i,t,n),a.length>0&&Ie(a,t,n),s.length>0&&Ie(s,t,n),Y.buffers.depth.setTest(!0),Y.buffers.depth.setMask(!0),Y.buffers.color.setMask(!0),Y.setPolygonOffset(!1)}function Ie(e,t,n){const r=!0===t.isScene?t.overrideMaterial:null;for(let i=0,a=e.length;i0?v[v.length-1]:null,g.pop(),p=g.length>0?g[g.length-1]:null},this.getActiveCubeFace=function(){return b},this.getActiveMipmapLevel=function(){return x},this.getRenderTarget=function(){return w},this.setRenderTargetTextures=function(e,t,n){K.get(e.texture).__webglTexture=t,K.get(e.depthTexture).__webglTexture=n;const r=K.get(e);r.__hasExternalTextures=!0,r.__hasExternalTextures&&(r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||!0===q.has("WEBGL_multisampled_render_to_texture")&&(r.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(e,t){const n=K.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e,t=0,n=0){w=e,b=t,x=n;let r=!0,i=null,a=!1,s=!1;if(e){const o=K.get(e);void 0!==o.__useDefaultFramebuffer?(Y.bindFramebuffer(ve.FRAMEBUFFER,null),r=!1):void 0===o.__webglFramebuffer?J.setupRenderTarget(e):o.__hasExternalTextures&&J.rebindTextures(e,K.get(e.texture).__webglTexture,K.get(e.depthTexture).__webglTexture);const c=e.texture;(c.isData3DTexture||c.isDataArrayTexture||c.isCompressedArrayTexture)&&(s=!0);const l=K.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(i=Array.isArray(l[t])?l[t][n]:l[t],a=!0):i=$.isWebGL2&&e.samples>0&&!1===J.useMultisampledRTT(e)?K.get(e).__webglMultisampledFramebuffer:Array.isArray(l)?l[n]:l,T.copy(e.viewport),M.copy(e.scissor),A=e.scissorTest}else T.copy(D).multiplyScalar(I).floor(),M.copy(N).multiplyScalar(I).floor(),A=F;if(Y.bindFramebuffer(ve.FRAMEBUFFER,i)&&$.drawBuffers&&r&&Y.drawBuffers(e,i),Y.viewport(T),Y.scissor(M),Y.setScissorTest(A),a){const r=K.get(e.texture);ve.framebufferTexture2D(ve.FRAMEBUFFER,ve.COLOR_ATTACHMENT0,ve.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(s){const r=K.get(e.texture),i=t||0;ve.framebufferTextureLayer(ve.FRAMEBUFFER,ve.COLOR_ATTACHMENT0,r.__webglTexture,n||0,i)}S=-1},this.readRenderTargetPixels=function(e,t,n,r,i,a,s){if(!e||!e.isWebGLRenderTarget)return;let o=K.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==s&&(o=o[s]),o){Y.bindFramebuffer(ve.FRAMEBUFFER,o);try{const s=e.texture,o=s.format,c=s.type;if(o!==oc&&pe.convert(o)!==ve.getParameter(ve.IMPLEMENTATION_COLOR_READ_FORMAT))return;const l=c===rc&&(q.has("EXT_color_buffer_half_float")||$.isWebGL2&&q.has("EXT_color_buffer_float"));if(!(c===Jo||pe.convert(c)===ve.getParameter(ve.IMPLEMENTATION_COLOR_READ_TYPE)||c===nc&&($.isWebGL2||q.has("OES_texture_float")||q.has("WEBGL_color_buffer_float"))||l))return;t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&ve.readPixels(t,n,r,i,pe.convert(o),pe.convert(c),a)}finally{const e=null!==w?K.get(w).__webglFramebuffer:null;Y.bindFramebuffer(ve.FRAMEBUFFER,e)}}},this.copyFramebufferToTexture=function(e,t,n=0){const r=Math.pow(2,-n),i=Math.floor(t.image.width*r),a=Math.floor(t.image.height*r);J.setTexture2D(t,0),ve.copyTexSubImage2D(ve.TEXTURE_2D,n,0,0,e.x,e.y,i,a),Y.unbindTexture()},this.copyTextureToTexture=function(e,t,n,r=0){const i=t.image.width,a=t.image.height,s=pe.convert(n.format),o=pe.convert(n.type);J.setTexture2D(n,0),ve.pixelStorei(ve.UNPACK_FLIP_Y_WEBGL,n.flipY),ve.pixelStorei(ve.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.premultiplyAlpha),ve.pixelStorei(ve.UNPACK_ALIGNMENT,n.unpackAlignment),t.isDataTexture?ve.texSubImage2D(ve.TEXTURE_2D,r,e.x,e.y,i,a,s,o,t.image.data):t.isCompressedTexture?ve.compressedTexSubImage2D(ve.TEXTURE_2D,r,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,s,t.mipmaps[0].data):ve.texSubImage2D(ve.TEXTURE_2D,r,e.x,e.y,s,o,t.image),0===r&&n.generateMipmaps&&ve.generateMipmap(ve.TEXTURE_2D),Y.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n,r,i=0){if(y.isWebGL1Renderer)return;const a=e.max.x-e.min.x+1,s=e.max.y-e.min.y+1,o=e.max.z-e.min.z+1,c=pe.convert(r.format),l=pe.convert(r.type);let u;if(r.isData3DTexture)J.setTexture3D(r,0),u=ve.TEXTURE_3D;else{if(!r.isDataArrayTexture&&!r.isCompressedArrayTexture)return;J.setTexture2DArray(r,0),u=ve.TEXTURE_2D_ARRAY}ve.pixelStorei(ve.UNPACK_FLIP_Y_WEBGL,r.flipY),ve.pixelStorei(ve.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r.premultiplyAlpha),ve.pixelStorei(ve.UNPACK_ALIGNMENT,r.unpackAlignment);const h=ve.getParameter(ve.UNPACK_ROW_LENGTH),f=ve.getParameter(ve.UNPACK_IMAGE_HEIGHT),d=ve.getParameter(ve.UNPACK_SKIP_PIXELS),p=ve.getParameter(ve.UNPACK_SKIP_ROWS),m=ve.getParameter(ve.UNPACK_SKIP_IMAGES),g=n.isCompressedTexture?n.mipmaps[i]:n.image;ve.pixelStorei(ve.UNPACK_ROW_LENGTH,g.width),ve.pixelStorei(ve.UNPACK_IMAGE_HEIGHT,g.height),ve.pixelStorei(ve.UNPACK_SKIP_PIXELS,e.min.x),ve.pixelStorei(ve.UNPACK_SKIP_ROWS,e.min.y),ve.pixelStorei(ve.UNPACK_SKIP_IMAGES,e.min.z),n.isDataTexture||n.isData3DTexture?ve.texSubImage3D(u,i,t.x,t.y,t.z,a,s,o,c,l,g.data):n.isCompressedArrayTexture?ve.compressedTexSubImage3D(u,i,t.x,t.y,t.z,a,s,o,c,g.data):ve.texSubImage3D(u,i,t.x,t.y,t.z,a,s,o,c,l,g),ve.pixelStorei(ve.UNPACK_ROW_LENGTH,h),ve.pixelStorei(ve.UNPACK_IMAGE_HEIGHT,f),ve.pixelStorei(ve.UNPACK_SKIP_PIXELS,d),ve.pixelStorei(ve.UNPACK_SKIP_ROWS,p),ve.pixelStorei(ve.UNPACK_SKIP_IMAGES,m),0===i&&r.generateMipmaps&&ve.generateMipmap(u),Y.unbindTexture()},this.initTexture=function(e){e.isCubeTexture?J.setTextureCube(e,0):e.isData3DTexture?J.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?J.setTexture2DArray(e,0):J.setTexture2D(e,0),Y.unbindTexture()},this.resetState=function(){b=0,x=0,w=null,Y.reset(),me.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return dl}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===rl?"display-p3":"srgb",t.unpackColorSpace=jl.workingColorSpace===il?"display-p3":"srgb"}get outputEncoding(){return this.outputColorSpace===tl?Qc:Jc}set outputEncoding(e){this.outputColorSpace=e===Qc?tl:nl}get useLegacyLights(){return this._useLegacyLights}set useLegacyLights(e){this._useLegacyLights=e}}class gm extends mm{}gm.prototype.isWebGL1Renderer=!0;class vm{constructor(e,t=25e-5){this.isFogExp2=!0,this.name="",this.color=new Sh(e),this.density=t}clone(){return new vm(this.color,this.density)}toJSON(){return{type:"FogExp2",name:this.name,color:this.color.getHex(),density:this.density}}}class ym{constructor(e,t=1,n=1e3){this.isFog=!0,this.name="",this.color=new Sh(e),this.near=t,this.far=n}clone(){return new ym(this.color,this.near,this.far)}toJSON(){return{type:"Fog",name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}}class _m extends sh{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,"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,null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const 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}}class bm{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.usage=ul,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=bl()}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}get updateRange(){return this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let r=0,i=this.stride;re.far||t.push({distance:o,point:Tm.clone(),uv:yh.getInterpolation(Tm,Om,Im,Pm,Lm,Dm,Nm,new kl),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 Um(e,t,n,r,i,a){Cm.subVectors(e,n).addScalar(.5).multiply(r),void 0!==i?(km.x=a*Cm.x-i*Cm.y,km.y=i*Cm.x+a*Cm.y):km.copy(Cm),e.copy(t),e.x+=km.x,e.y+=km.y,e.applyMatrix4(Rm)}const Bm=new au,zm=new au;class Vm extends sh{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const t=e.levels;for(let n=0,r=t.length;n0){let n,r;for(n=1,r=t.length;n0){Bm.setFromMatrixPosition(this.matrixWorld);const n=e.ray.origin.distanceTo(Bm);this.getObjectForDistance(n).raycast(e,t)}}update(e){const t=this.levels;if(t.length>1){Bm.setFromMatrixPosition(e.matrixWorld),zm.setFromMatrixPosition(this.matrixWorld);const n=Bm.distanceTo(zm)/e.zoom;let r,i;for(t[0].object.visible=!0,r=1,i=t.length;r=e))break;t[r-1].object.visible=!1,t[r].object.visible=!0}for(this._currentLevel=r-1;r=n.length&&n.push({start:-1,count:-1,z:-1});const i=n[this.index];r.push(i),this.index++,i.start=e.start,i.count=e.count,i.z=t}reset(){this.list.length=0,this.index=0}}const mg="batchId",gg=new Du,vg=new Du,yg=new Du,_g=new Du,bg=new Of,xg=new cu,wg=new Mu,Sg=new au,Eg=new pg,Tg=new hf,Mg=[];function Ag(e,t,n=0){const r=t.itemSize;if(e.isInterleavedBufferAttribute||e.array.constructor!==t.array.constructor){const i=e.count;for(let a=0;a65536?new Uint32Array(i):new Uint16Array(i);t.setIndex(new Dh(e,1))}const a=r>65536?new Uint32Array(n):new Uint16Array(n);t.setAttribute(mg,new Dh(a,1)),this._geometryInitialized=!0}}_validateGeometry(e){if(e.getAttribute(mg))throw new Error(`BatchedMesh: Geometry cannot use attribute "${mg}"`);const t=this.geometry;if(Boolean(e.getIndex())!==Boolean(t.getIndex()))throw new Error('BatchedMesh: All geometries must consistently have "index".');for(const n in t.attributes){if(n===mg)continue;if(!e.hasAttribute(n))throw new Error(`BatchedMesh: Added geometry missing "${n}". All geometries must have consistent attributes.`);const r=e.getAttribute(n),i=t.getAttribute(n);if(r.itemSize!==i.itemSize||r.normalized!==i.normalized)throw new 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 cu);const e=this._geometryCount,t=this.boundingBox,n=this._active;t.makeEmpty();for(let r=0;r=this._maxGeometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");const r={vertexStart:-1,vertexCount:-1,indexStart:-1,indexCount:-1};let i=null;const a=this._reservedRanges,s=this._drawRanges,o=this._bounds;0!==this._geometryCount&&(i=a[a.length-1]),r.vertexCount=-1===t?e.getAttribute("position").count:t,r.vertexStart=null===i?0:i.vertexStart+i.vertexCount;const c=e.getIndex(),l=null!==c;if(l&&(r.indexCount=-1===n?c.count:n,r.indexStart=null===i?0:i.indexStart+i.indexCount),-1!==r.indexStart&&r.indexStart+r.indexCount>this._maxIndexCount||r.vertexStart+r.vertexCount>this._maxVertexCount)throw new Error("BatchedMesh: Reserved space request exceeds the maximum buffer size.");const u=this._visibility,h=this._active,f=this._matricesTexture,d=this._matricesTexture.image.data;u.push(!0),h.push(!0);const p=this._geometryCount;this._geometryCount++,yg.toArray(d,16*p),f.needsUpdate=!0,a.push(r),s.push({start:l?r.indexStart:r.vertexStart,count:-1}),o.push({boxInitialized:!1,box:new cu,sphereInitialized:!1,sphere:new Mu});const m=this.geometry.getAttribute(mg);for(let g=0;g=this._geometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");this._validateGeometry(t);const n=this.geometry,r=null!==n.getIndex(),i=n.getIndex(),a=t.getIndex(),s=this._reservedRanges[e];if(r&&a.count>s.indexCount||t.attributes.position.count>s.vertexCount)throw new Error("BatchedMesh: Reserved space not large enough for provided geometry.");const o=s.vertexStart,c=s.vertexCount;for(const f in n.attributes){if(f===mg)continue;const e=t.getAttribute(f),r=n.getAttribute(f);Ag(e,r,o);const i=e.itemSize;for(let t=e.count,n=c;t=t.length||!1===t[e]||(t[e]=!1,this._visibilityChanged=!0),this}getBoundingBoxAt(e,t){if(!1===this._active[e])return this;const n=this._bounds[e],r=n.box,i=this.geometry;if(!1===n.boxInitialized){r.makeEmpty();const t=i.index,a=i.attributes.position,s=this._drawRanges[e];for(let e=s.start,n=s.start+s.count;e=this._geometryCount||!1===n[e]||(t.toArray(i,16*e),r.needsUpdate=!0),this}getMatrixAt(e,t){const n=this._active,r=this._matricesTexture.image.data;return e>=this._geometryCount||!1===n[e]?null:t.fromArray(r,16*e)}setVisibleAt(e,t){const n=this._visibility,r=this._active;return e>=this._geometryCount||!1===r[e]||n[e]===t||(n[e]=t,this._visibilityChanged=!0),this}getVisibleAt(e){const t=this._visibility,n=this._active;return!(e>=this._geometryCount||!1===n[e])&&t[e]}raycast(e,t){const n=this._visibility,r=this._active,i=this._drawRanges,a=this._geometryCount,s=this.matrixWorld,o=this.geometry;Tg.material=this.material,Tg.geometry.index=o.index,Tg.geometry.attributes=o.attributes,null===Tg.geometry.boundingBox&&(Tg.geometry.boundingBox=new cu),null===Tg.geometry.boundingSphere&&(Tg.geometry.boundingSphere=new Mu);for(let c=0;c({...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,n,r,i){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;const a=r.getIndex(),s=null===a?1:a.array.BYTES_PER_ELEMENT,o=this._visibility,c=this._multiDrawStarts,l=this._multiDrawCounts,u=this._drawRanges,h=this.perObjectFrustumCulled;h&&(_g.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse).multiply(this.matrixWorld),bg.setFromProjectionMatrix(_g,e.isWebGPURenderer?pl:dl));let f=0;if(this.sortObjects){vg.copy(this.matrixWorld).invert(),Sg.setFromMatrixPosition(n.matrixWorld).applyMatrix4(vg);for(let n=0,r=o.length;no)continue;h.applyMatrix4(this.matrixWorld);const a=e.ray.origin.distanceTo(h);ae.far||t.push({distance:a,point:u.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else{for(let n=Math.max(0,a.start),r=Math.min(p.count,a.start+a.count)-1;no)continue;h.applyMatrix4(this.matrixWorld);const r=e.ray.origin.distanceTo(h);re.far||t.push({distance:r,point:u.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;ei.far)return;a.push({distance:c,distanceToRay:Math.sqrt(o),point:n,index:t,face:null,object:s})}}class qg extends Jl{constructor(e,t,n,r,i,a,s,o,c,l,u,h){super(null,a,s,o,c,l,r,i,u,h),this.isCompressedTexture=!0,this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class $g{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return null}getPointAt(e,t){const n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let n,r=this.getPoint(0),i=0;t.push(0);for(let a=1;a<=e;a++)n=this.getPoint(a/e),i+=n.distanceTo(r),t.push(i),r=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){const n=this.getLengths();let r=0;const i=n.length;let a;a=t||e*n[i-1];let s,o=0,c=i-1;for(;o<=c;)if(r=Math.floor(o+(c-o)/2),s=n[r]-a,s<0)o=r+1;else{if(!(s>0)){c=r;break}c=r-1}if(r=c,n[r]===a)return r/(i-1);const l=n[r];return(r+(a-l)/(n[r+1]-l))/(i-1)}getTangent(e,t){const n=1e-4;let r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);const a=this.getPoint(r),s=this.getPoint(i),o=t||(a.isVector2?new kl:new au);return o.copy(s).sub(a).normalize(),o}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){const n=new au,r=[],i=[],a=[],s=new au,o=new Du;for(let f=0;f<=e;f++){const t=f/e;r[f]=this.getTangentAt(t,new au)}i[0]=new au,a[0]=new au;let c=Number.MAX_VALUE;const l=Math.abs(r[0].x),u=Math.abs(r[0].y),h=Math.abs(r[0].z);l<=c&&(c=l,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),h<=c&&n.set(0,0,1),s.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],s),a[0].crossVectors(r[0],i[0]);for(let f=1;f<=e;f++){if(i[f]=i[f-1].clone(),a[f]=a[f-1].clone(),s.crossVectors(r[f-1],r[f]),s.length()>Number.EPSILON){s.normalize();const e=Math.acos(xl(r[f-1].dot(r[f]),-1,1));i[f].applyMatrix4(o.makeRotationAxis(s,e))}a[f].crossVectors(r[f],i[f])}if(!0===t){let t=Math.acos(xl(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(s.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(o.makeRotationAxis(r[n],t*n)),a[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:a}}clone(){return(new this.constructor).copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class Yg extends $g{constructor(e=0,t=0,n=1,r=1,i=0,a=2*Math.PI,s=!1,o=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=a,this.aClockwise=s,this.aRotation=o}getPoint(e,t){const n=t||new kl,r=2*Math.PI;let i=this.aEndAngle-this.aStartAngle;const a=Math.abs(i)r;)i-=r;i0?0:(Math.floor(Math.abs(c)/i)+1)*i:0===l&&c===i-1&&(c=i-2,l=1),this.closed||c>0?s=r[(c-1)%i]:(Jg.subVectors(r[0],r[1]).add(r[0]),s=Jg);const u=r[c%i],h=r[(c+1)%i];if(this.closed||c+2r.length-2?r.length-1:a+1],u=r[a>r.length-3?r.length-1:a+2];return n.set(rv(s,o.x,c.x,l.x,u.x),rv(s,o.y,c.y,l.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t=n){const e=r[i]-n,a=this.curves[i],s=a.getLength(),o=0===s?0:1-e/s;return a.getPointAt(o,t)}i++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let n=0,r=this.curves.length;n1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t0){const e=c.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(c);const l=c.getPoint(1);return this.currentPoint.copy(l),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class gv extends Xh{constructor(e=[new kl(0,-.5),new kl(.5,0),new kl(0,.5)],t=12,n=0,r=2*Math.PI){super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:n,phiLength:r},t=Math.floor(t),r=xl(r,0,2*Math.PI);const i=[],a=[],s=[],o=[],c=[],l=1/t,u=new au,h=new kl,f=new au,d=new au,p=new au;let m=0,g=0;for(let v=0;v<=e.length-1;v++)switch(v){case 0:m=e[v+1].x-e[v].x,g=e[v+1].y-e[v].y,f.x=1*g,f.y=-m,f.z=0*g,p.copy(f),f.normalize(),o.push(f.x,f.y,f.z);break;case e.length-1:o.push(p.x,p.y,p.z);break;default:m=e[v+1].x-e[v].x,g=e[v+1].y-e[v].y,f.x=1*g,f.y=-m,f.z=0*g,d.copy(f),f.x+=p.x,f.y+=p.y,f.z+=p.z,f.normalize(),o.push(f.x,f.y,f.z),p.copy(d)}for(let v=0;v<=t;v++){const i=n+v*l*r,f=Math.sin(i),d=Math.cos(i);for(let n=0;n<=e.length-1;n++){u.x=e[n].x*f,u.y=e[n].y,u.z=e[n].x*d,a.push(u.x,u.y,u.z),h.x=v/t,h.y=n/(e.length-1),s.push(h.x,h.y);const r=o[3*n+0]*f,i=o[3*n+1],l=o[3*n+0]*d;c.push(r,i,l)}}for(let v=0;v0&&v(!0),t>0&&v(!1)),this.setIndex(l),this.setAttribute("position",new Uh(u,3)),this.setAttribute("normal",new Uh(h,3)),this.setAttribute("uv",new Uh(f,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new _v(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class bv extends _v{constructor(e=1,t=1,n=32,r=1,i=!1,a=0,s=2*Math.PI){super(0,e,t,n,r,i,a,s),this.type="ConeGeometry",this.parameters={radius:e,height:t,radialSegments:n,heightSegments:r,openEnded:i,thetaStart:a,thetaLength:s}}static fromJSON(e){return new bv(e.radius,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class xv extends Xh{constructor(e=[],t=[],n=1,r=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:e,indices:t,radius:n,detail:r};const i=[],a=[];function s(e,t,n,r){const i=r+1,a=[];for(let s=0;s<=i;s++){a[s]=[];const r=e.clone().lerp(n,s/i),o=t.clone().lerp(n,s/i),c=i-s;for(let e=0;e<=c;e++)a[s][e]=0===e&&s===i?r:r.clone().lerp(o,e/c)}for(let s=0;s.9&&s<.1&&(t<.2&&(a[e+0]+=1),n<.2&&(a[e+2]+=1),r<.2&&(a[e+4]+=1))}}()}(),this.setAttribute("position",new Uh(i,3)),this.setAttribute("normal",new Uh(i.slice(),3)),this.setAttribute("uv",new Uh(a,2)),0===r?this.computeVertexNormals():this.normalizeNormals()}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new xv(e.vertices,e.indices,e.radius,e.details)}}class wv extends xv{constructor(e=1,t=0){const n=(1+Math.sqrt(5))/2,r=1/n;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,-r,-n,0,-r,n,0,r,-n,0,r,n,-r,-n,0,-r,n,0,r,-n,0,r,n,0,-n,0,-r,n,0,-r,-n,0,r,n,0,r],[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 wv(e.radius,e.detail)}}const Sv=new au,Ev=new au,Tv=new au,Mv=new yh;class Av extends Xh{constructor(e=null,t=1){if(super(),this.type="EdgesGeometry",this.parameters={geometry:e,thresholdAngle:t},null!==e){const n=4,r=Math.pow(10,n),i=Math.cos(yl*t),a=e.getIndex(),s=e.getAttribute("position"),o=a?a.count:s.count,c=[0,0,0],l=["a","b","c"],u=new Array(3),h={},f=[];for(let e=0;e80*n){o=l=e[0],c=u=e[1];for(let t=n;tl&&(l=h),f>u&&(u=f);d=Math.max(l-o,u-c),d=0!==d?32767/d:0}return Iv(a,s,n,o,c,d,0),s};function Rv(e,t,n,r,i){let a,s;if(i===function(e,t,n,r){let i=0;for(let a=t,s=n-r;a0)for(a=t;a=t;a-=r)s=Kv(a,e[a],e[a+1],s);return s&&Gv(s,s.next)&&(Jv(s),s=s.next),s}function Ov(e,t){if(!e)return e;t||(t=e);let n,r=e;do{if(n=!1,r.steiner||!Gv(r,r.next)&&0!==Wv(r.prev,r,r.next))r=r.next;else{if(Jv(r),r=t=r.prev,r===r.next)break;n=!0}}while(n||r!==t);return t}function Iv(e,t,n,r,i,a,s){if(!e)return;!s&&a&&function(e,t,n,r){let i=e;do{0===i.z&&(i.z=zv(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){let t,n,r,i,a,s,o,c,l=1;do{for(n=e,e=null,a=null,s=0;n;){for(s++,r=n,o=0,t=0;t0||c>0&&r;)0!==o&&(0===c||!r||n.z<=r.z)?(i=n,n=n.nextZ,o--):(i=r,r=r.nextZ,c--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;n=r}a.nextZ=null,l*=2}while(s>1)}(i)}(e,r,i,a);let o,c,l=e;for(;e.prev!==e.next;)if(o=e.prev,c=e.next,a?Lv(e,r,i,a):Pv(e))t.push(o.i/n|0),t.push(e.i/n|0),t.push(c.i/n|0),Jv(e),e=c.next,l=c.next;else if((e=c)===l){s?1===s?Iv(e=Dv(Ov(e),t,n),t,n,r,i,a,2):2===s&&Nv(e,t,n,r,i,a):Iv(Ov(e),t,n,r,i,a,1);break}}function Pv(e){const t=e.prev,n=e,r=e.next;if(Wv(t,n,r)>=0)return!1;const i=t.x,a=n.x,s=r.x,o=t.y,c=n.y,l=r.y,u=ia?i>s?i:s:a>s?a:s,d=o>c?o>l?o:l:c>l?c:l;let p=r.next;for(;p!==t;){if(p.x>=u&&p.x<=f&&p.y>=h&&p.y<=d&&Hv(i,o,a,c,s,l,p.x,p.y)&&Wv(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function Lv(e,t,n,r){const i=e.prev,a=e,s=e.next;if(Wv(i,a,s)>=0)return!1;const o=i.x,c=a.x,l=s.x,u=i.y,h=a.y,f=s.y,d=oc?o>l?o:l:c>l?c:l,g=u>h?u>f?u:f:h>f?h:f,v=zv(d,p,t,n,r),y=zv(m,g,t,n,r);let _=e.prevZ,b=e.nextZ;for(;_&&_.z>=v&&b&&b.z<=y;){if(_.x>=d&&_.x<=m&&_.y>=p&&_.y<=g&&_!==i&&_!==s&&Hv(o,u,c,h,l,f,_.x,_.y)&&Wv(_.prev,_,_.next)>=0)return!1;if(_=_.prevZ,b.x>=d&&b.x<=m&&b.y>=p&&b.y<=g&&b!==i&&b!==s&&Hv(o,u,c,h,l,f,b.x,b.y)&&Wv(b.prev,b,b.next)>=0)return!1;b=b.nextZ}for(;_&&_.z>=v;){if(_.x>=d&&_.x<=m&&_.y>=p&&_.y<=g&&_!==i&&_!==s&&Hv(o,u,c,h,l,f,_.x,_.y)&&Wv(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;b&&b.z<=y;){if(b.x>=d&&b.x<=m&&b.y>=p&&b.y<=g&&b!==i&&b!==s&&Hv(o,u,c,h,l,f,b.x,b.y)&&Wv(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function Dv(e,t,n){let r=e;do{const i=r.prev,a=r.next.next;!Gv(i,a)&&Xv(i,r,r.next,a)&&Yv(i,a)&&Yv(a,i)&&(t.push(i.i/n|0),t.push(r.i/n|0),t.push(a.i/n|0),Jv(r),Jv(r.next),r=e=a),r=r.next}while(r!==e);return Ov(r)}function Nv(e,t,n,r,i,a){let s=e;do{let e=s.next.next;for(;e!==s.prev;){if(s.i!==e.i&&jv(s,e)){let o=Zv(s,e);return s=Ov(s,s.next),o=Ov(o,o.next),Iv(s,t,n,r,i,a,0),void Iv(o,t,n,r,i,a,0)}e=e.next}s=s.next}while(s!==e)}function Fv(e,t){return e.x-t.x}function Uv(e,t){const n=function(e,t){let n,r=t,i=-1/0;const a=e.x,s=e.y;do{if(s<=r.y&&s>=r.next.y&&r.next.y!==r.y){const e=r.x+(s-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(e<=a&&e>i&&(i=e,n=r.x=r.x&&r.x>=c&&a!==r.x&&Hv(sn.x||r.x===n.x&&Bv(n,r)))&&(n=r,h=u)),r=r.next}while(r!==o);return n}(e,t);if(!n)return t;const r=Zv(n,e);return Ov(r,r.next),Ov(n,n.next)}function Bv(e,t){return Wv(e.prev,e,t.prev)<0&&Wv(t.next,e,e.next)<0}function zv(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Vv(e){let t=e,n=e;do{(t.x=(e-s)*(a-o)&&(e-s)*(r-o)>=(n-s)*(t-o)&&(n-s)*(a-o)>=(i-s)*(r-o)}function jv(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Xv(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Yv(e,t)&&Yv(t,e)&&function(e,t){let n=e,r=!1;const i=(e.x+t.x)/2,a=(e.y+t.y)/2;do{n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(Wv(e.prev,e,t.prev)||Wv(e,t.prev,t))||Gv(e,t)&&Wv(e.prev,e,e.next)>0&&Wv(t.prev,t,t.next)>0)}function Wv(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Gv(e,t){return e.x===t.x&&e.y===t.y}function Xv(e,t,n,r){const i=$v(Wv(e,t,n)),a=$v(Wv(e,t,r)),s=$v(Wv(n,r,e)),o=$v(Wv(n,r,t));return i!==a&&s!==o||(!(0!==i||!qv(e,n,t))||(!(0!==a||!qv(e,r,t))||(!(0!==s||!qv(n,e,r))||!(0!==o||!qv(n,t,r)))))}function qv(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function $v(e){return e>0?1:e<0?-1:0}function Yv(e,t){return Wv(e.prev,e,e.next)<0?Wv(e,t,e.next)>=0&&Wv(e,e.prev,t)>=0:Wv(e,t,e.prev)<0||Wv(e,e.next,t)<0}function Zv(e,t){const n=new Qv(e.i,e.x,e.y),r=new Qv(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function Kv(e,t,n,r){const i=new Qv(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Jv(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 Qv(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}class ey{static area(e){const t=e.length;let n=0;for(let r=t-1,i=0;i2&&e[t-1].equals(e[0])&&e.pop()}function ny(e,t){for(let n=0;nNumber.EPSILON){const h=Math.sqrt(u),f=Math.sqrt(c*c+l*l),d=t.x-o/h,p=t.y+s/h,m=((n.x-l/f-d)*l-(n.y+c/f-p)*c)/(s*l-o*c);r=d+s*m-e.x,i=p+o*m-e.y;const g=r*r+i*i;if(g<=2)return new kl(r,i);a=Math.sqrt(g/2)}else{let e=!1;s>Number.EPSILON?c>Number.EPSILON&&(e=!0):s<-Number.EPSILON?c<-Number.EPSILON&&(e=!0):Math.sign(o)===Math.sign(l)&&(e=!0),e?(r=-o,i=s,a=Math.sqrt(u)):(r=s,i=o,a=Math.sqrt(u/2))}return new kl(r/a,i/a)}const O=[];for(let t=0,n=M.length,r=n-1,i=t+1;t=0;t--){const e=t/d,n=u*Math.cos(e*Math.PI/2),r=h*Math.sin(e*Math.PI/2)+f;for(let t=0,i=M.length;t=0;){const r=n;let i=n-1;i<0&&(i=e.length-1);for(let e=0,n=o+2*d;e0)&&f.push(t,r,s),(g!==n-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 sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class xy extends Mh{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new Sh(16777215),this.specular=new Sh(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Sh(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new kl(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=To,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class wy extends Mh{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Sh(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Sh(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new kl(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 Sy extends Mh{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new kl(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 Ey extends Mh{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new Sh(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Sh(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new kl(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=To,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Ty extends Mh{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Sh(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new kl(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 My extends kg{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 Ay(e,t,n){return!e||!n&&e.constructor===t?e:"number"==typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)}function Cy(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ky(e){const t=e.length,n=new Array(t);for(let r=0;r!==t;++r)n[r]=r;return n.sort((function(t,n){return e[t]-e[n]})),n}function Ry(e,t,n){const r=e.length,i=new e.constructor(r);for(let a=0,s=0;s!==r;++a){const r=n[a]*t;for(let n=0;n!==t;++n)i[s++]=e[r+n]}return i}function Oy(e,t,n,r){let i=1,a=e[0];for(;void 0!==a&&void 0===a[r];)a=e[i++];if(void 0===a)return;let s=a[r];if(void 0!==s)if(Array.isArray(s))do{s=a[r],void 0!==s&&(t.push(a.time),n.push.apply(n,s)),a=e[i++]}while(void 0!==a);else if(void 0!==s.toArray)do{s=a[r],void 0!==s&&(t.push(a.time),s.toArray(n,n.length)),a=e[i++]}while(void 0!==a);else do{s=a[r],void 0!==s&&(t.push(a.time),n.push(s)),a=e[i++]}while(void 0!==a)}const Iy={convertArray:Ay,isTypedArray:Cy,getKeyframeOrder:ky,sortedArray:Ry,flattenJSON:Oy,subclip:function(e,t,n,r,i=30){const a=e.clone();a.name=t;const s=[];for(let c=0;c=r)){o.push(e.times[a]);for(let n=0;na.tracks[c].times[0]&&(o=a.tracks[c].times[0]);for(let c=0;c=t.times[h]){const e=h*c+o,n=e+c-o;f=t.values.slice(e,n)}else{const e=t.createInterpolant(),n=o,r=c-o;e.evaluate(a),f=e.resultBuffer.slice(n,r)}if("quaternion"===r){(new iu).fromArray(f).normalize().conjugate().toArray(f)}const d=i.times.length;for(let e=0;e=i)break e;{const s=t[1];e=i)break t}a=n,n=0}}for(;n>>1;et;)--a;if(++a,0!==i||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);const e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!=0&&(e=!1);const n=this.times,r=this.values,i=n.length;0===i&&(e=!1);let a=null;for(let s=0;s!==i;s++){const t=n[s];if("number"==typeof t&&isNaN(t)){e=!1;break}if(null!==a&&a>t){e=!1;break}a=t}if(void 0!==r&&Cy(r))for(let s=0,o=r.length;s!==o;++s){const t=r[s];if(isNaN(t)){e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===Xc,i=e.length-1;let a=1;for(let s=1;s0){e[a]=e[i];for(let e=i*n,r=a*n,s=0;s!==n;++s)t[r+s]=t[e+s];++a}return a!==e.length?(this.times=e.slice(0,a),this.values=t.slice(0,a*n)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),n=new(0,this.constructor)(this.name,e,t);return n.createInterpolant=this.createInterpolant,n}}Fy.prototype.TimeBufferType=Float32Array,Fy.prototype.ValueBufferType=Float32Array,Fy.prototype.DefaultInterpolation=Gc;class Uy extends Fy{}Uy.prototype.ValueTypeName="bool",Uy.prototype.ValueBufferType=Array,Uy.prototype.DefaultInterpolation=Wc,Uy.prototype.InterpolantFactoryMethodLinear=void 0,Uy.prototype.InterpolantFactoryMethodSmooth=void 0;class By extends Fy{}By.prototype.ValueTypeName="color";class zy extends Fy{}zy.prototype.ValueTypeName="number";class Vy extends Py{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const i=this.resultBuffer,a=this.sampleValues,s=this.valueSize,o=(n-t)/(r-t);let c=e*s;for(let l=c+s;c!==l;c+=4)iu.slerpFlat(i,0,a,c-s,a,c,o);return i}}class Hy extends Fy{InterpolantFactoryMethodLinear(e){return new Vy(this.times,this.values,this.getValueSize(),e)}}Hy.prototype.ValueTypeName="quaternion",Hy.prototype.DefaultInterpolation=Gc,Hy.prototype.InterpolantFactoryMethodSmooth=void 0;class jy extends Fy{}jy.prototype.ValueTypeName="string",jy.prototype.ValueBufferType=Array,jy.prototype.DefaultInterpolation=Wc,jy.prototype.InterpolantFactoryMethodLinear=void 0,jy.prototype.InterpolantFactoryMethodSmooth=void 0;class Wy extends Fy{}Wy.prototype.ValueTypeName="vector";class Gy{constructor(e,t=-1,n,r=2500){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=bl(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,r=1/(e.fps||1);for(let a=0,s=n.length;a!==s;++a)t.push(Xy(n[a]).scale(r));const i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i}static toJSON(e){const t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let i=0,a=n.length;i!==a;++i)t.push(Fy.toJSON(n[i]));return r}static CreateFromMorphTargetSequence(e,t,n,r){const i=t.length,a=[];for(let s=0;s1){const e=n[1];let i=r[e];i||(r[e]=i=[]),i.push(t)}}const a=[];for(const s in r)a.push(this.CreateFromMorphTargetSequence(s,r[s],t,n));return a}static parseAnimation(e,t){if(!e)return null;const n=function(e,t,n,r,i){if(0!==n.length){const a=[],s=[];Oy(n,a,s,r),0!==a.length&&i.push(new e(t,a,s))}},r=[],i=e.name||"default",a=e.fps||30,s=e.blendMode;let o=e.length||-1;const c=e.hierarchy||[];for(let l=0;l{t&&t(i),this.manager.itemEnd(e)}),0),i;if(void 0!==Ky[e])return void Ky[e].push({onLoad:t,onProgress:n,onError:r});Ky[e]=[],Ky[e].push({onLoad:t,onProgress:n,onError:r});const 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(t.status,"undefined"==typeof ReadableStream||void 0===t.body||void 0===t.body.getReader)return t;const n=Ky[e],r=t.body.getReader(),i=t.headers.get("Content-Length")||t.headers.get("X-File-Size"),a=i?parseInt(i):0,s=0!==a;let o=0;const c=new ReadableStream({start(e){!function t(){r.read().then((({done:r,value:i})=>{if(r)e.close();else{o+=i.byteLength;const r=new ProgressEvent("progress",{lengthComputable:s,loaded:o,total:a});for(let e=0,t=n.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();{const t=/charset="?([^;"\s]*)"?/i.exec(s),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then((e=>r.decode(e)))}}})).then((t=>{qy.add(e,t);const n=Ky[e];delete Ky[e];for(let e=0,r=n.length;e{const n=Ky[e];if(void 0===n)throw this.manager.itemError(e),t;delete Ky[e];for(let e=0,r=n.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 e_ extends Zy{constructor(e){super(e)}load(e,t,n,r){void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,a=qy.get(e);if(void 0!==a)return i.manager.itemStart(e),setTimeout((function(){t&&t(a),i.manager.itemEnd(e)}),0),a;const s=Dl("img");function o(){l(),qy.add(e,this),t&&t(this),i.manager.itemEnd(e)}function c(t){l(),r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)}function l(){s.removeEventListener("load",o,!1),s.removeEventListener("error",c,!1)}return s.addEventListener("load",o,!1),s.addEventListener("error",c,!1),"data:"!==e.slice(0,5)&&void 0!==this.crossOrigin&&(s.crossOrigin=this.crossOrigin),i.manager.itemStart(e),s.src=e,s}}class t_ extends sh{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new Sh(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,void 0!==this.groundColor&&(t.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(t.object.distance=this.distance),void 0!==this.angle&&(t.object.angle=this.angle),void 0!==this.decay&&(t.object.decay=this.decay),void 0!==this.penumbra&&(t.object.penumbra=this.penumbra),void 0!==this.shadow&&(t.object.shadow=this.shadow.toJSON()),t}}class n_ extends t_{constructor(e,t,n){super(e,n),this.isHemisphereLight=!0,this.type="HemisphereLight",this.position.copy(sh.DEFAULT_UP),this.updateMatrix(),this.groundColor=new Sh(t)}copy(e,t){return super.copy(e,t),this.groundColor.copy(e.groundColor),this}}const r_=new Du,i_=new au,a_=new au;class s_{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new kl(512,512),this.map=null,this.mapPass=null,this.matrix=new Du,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Of,this._frameExtents=new kl(1,1),this._viewportCount=1,this._viewports=[new Ql(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,n=this.matrix;i_.setFromMatrixPosition(e.matrixWorld),t.position.copy(i_),a_.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(a_),t.updateMatrixWorld(),r_.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(r_),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(r_)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const e={};return 0!==this.bias&&(e.bias=this.bias),0!==this.normalBias&&(e.normalBias=this.normalBias),1!==this.radius&&(e.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class o_ extends s_{constructor(){super(new bf(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,n=2*_l*e.angle*this.focus,r=this.mapSize.width/this.mapSize.height,i=e.distance||t.far;n===t.fov&&r===t.aspect&&i===t.far||(t.fov=n,t.aspect=r,t.far=i,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class c_ extends t_{constructor(e,t,n=0,r=Math.PI/3,i=0,a=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(sh.DEFAULT_UP),this.updateMatrix(),this.target=new sh,this.distance=n,this.angle=r,this.penumbra=i,this.decay=a,this.map=null,this.shadow=new o_}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const l_=new Du,u_=new au,h_=new au;class f_ extends s_{constructor(){super(new bf(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new kl(4,2),this._viewportCount=6,this._viewports=[new Ql(2,1,1,1),new Ql(0,1,1,1),new Ql(3,1,1,1),new Ql(1,1,1,1),new Ql(3,0,1,1),new Ql(1,0,1,1)],this._cubeDirections=[new au(1,0,0),new au(-1,0,0),new au(0,0,1),new au(0,0,-1),new au(0,1,0),new au(0,-1,0)],this._cubeUps=[new au(0,1,0),new au(0,1,0),new au(0,1,0),new au(0,1,0),new au(0,0,1),new au(0,0,-1)]}updateMatrices(e,t=0){const n=this.camera,r=this.matrix,i=e.distance||n.far;i!==n.far&&(n.far=i,n.updateProjectionMatrix()),u_.setFromMatrixPosition(e.matrixWorld),n.position.copy(u_),h_.copy(n.position),h_.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(h_),n.updateMatrixWorld(),r.makeTranslation(-u_.x,-u_.y,-u_.z),l_.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(l_)}}class d_ extends t_{constructor(e,t,n=0,r=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=r,this.shadow=new f_}get power(){return 4*this.intensity*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class p_ extends s_{constructor(){super(new Gf(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class m_ extends t_{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(sh.DEFAULT_UP),this.updateMatrix(),this.target=new sh,this.shadow=new p_}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class g_ extends t_{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class v_ extends t_{constructor(e,t,n=10,r=10){super(e,t),this.isRectAreaLight=!0,this.type="RectAreaLight",this.width=n,this.height=r}get power(){return this.intensity*this.width*this.height*Math.PI}set power(e){this.intensity=e/(this.width*this.height*Math.PI)}copy(e){return super.copy(e),this.width=e.width,this.height=e.height,this}toJSON(e){const t=super.toJSON(e);return t.object.width=this.width,t.object.height=this.height,t}}class y_{constructor(){this.isSphericalHarmonics3=!0,this.coefficients=[];for(let e=0;e<9;e++)this.coefficients.push(new au)}set(e){for(let t=0;t<9;t++)this.coefficients[t].copy(e[t]);return this}zero(){for(let e=0;e<9;e++)this.coefficients[e].set(0,0,0);return this}getAt(e,t){const n=e.x,r=e.y,i=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.282095),t.addScaledVector(a[1],.488603*r),t.addScaledVector(a[2],.488603*i),t.addScaledVector(a[3],.488603*n),t.addScaledVector(a[4],n*r*1.092548),t.addScaledVector(a[5],r*i*1.092548),t.addScaledVector(a[6],.315392*(3*i*i-1)),t.addScaledVector(a[7],n*i*1.092548),t.addScaledVector(a[8],.546274*(n*n-r*r)),t}getIrradianceAt(e,t){const n=e.x,r=e.y,i=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.886227),t.addScaledVector(a[1],1.023328*r),t.addScaledVector(a[2],1.023328*i),t.addScaledVector(a[3],1.023328*n),t.addScaledVector(a[4],.858086*n*r),t.addScaledVector(a[5],.858086*r*i),t.addScaledVector(a[6],.743125*i*i-.247708),t.addScaledVector(a[7],.858086*n*i),t.addScaledVector(a[8],.429043*(n*n-r*r)),t}add(e){for(let t=0;t<9;t++)this.coefficients[t].add(e.coefficients[t]);return this}addScaledSH(e,t){for(let n=0;n<9;n++)this.coefficients[n].addScaledVector(e.coefficients[n],t);return this}scale(e){for(let t=0;t<9;t++)this.coefficients[t].multiplyScalar(e);return this}lerp(e,t){for(let n=0;n<9;n++)this.coefficients[n].lerp(e.coefficients[n],t);return this}equals(e){for(let t=0;t<9;t++)if(!this.coefficients[t].equals(e.coefficients[t]))return!1;return!0}copy(e){return this.set(e.coefficients)}clone(){return(new this.constructor).copy(this)}fromArray(e,t=0){const n=this.coefficients;for(let r=0;r<9;r++)n[r].fromArray(e,t+3*r);return this}toArray(e=[],t=0){const n=this.coefficients;for(let r=0;r<9;r++)n[r].toArray(e,t+3*r);return e}static getBasisAt(e,t){const n=e.x,r=e.y,i=e.z;t[0]=.282095,t[1]=.488603*r,t[2]=.488603*i,t[3]=.488603*n,t[4]=1.092548*n*r,t[5]=1.092548*r*i,t[6]=.315392*(3*i*i-1),t[7]=1.092548*n*i,t[8]=.546274*(n*n-r*r)}}class __ extends t_{constructor(e=new y_,t=1){super(void 0,t),this.isLightProbe=!0,this.sh=e}copy(e){return super.copy(e),this.sh.copy(e.sh),this}fromJSON(e){return this.intensity=e.intensity,this.sh.fromArray(e.sh),this}toJSON(e){const t=super.toJSON(e);return t.object.sh=this.sh.toArray(),t}}class b_ extends Zy{constructor(e){super(e),this.textures={}}load(e,t,n,r){const i=this,a=new Qy(i.manager);a.setPath(i.path),a.setRequestHeader(i.requestHeader),a.setWithCredentials(i.withCredentials),a.load(e,(function(n){try{t(i.parse(JSON.parse(n)))}catch(a){r&&r(a),i.manager.itemError(e)}}),n,r)}parse(e){const t=this.textures;function n(e){return t[e],t[e]}const r=b_.createMaterialFromType(e.type);if(void 0!==e.uuid&&(r.uuid=e.uuid),void 0!==e.name&&(r.name=e.name),void 0!==e.color&&void 0!==r.color&&r.color.setHex(e.color),void 0!==e.roughness&&(r.roughness=e.roughness),void 0!==e.metalness&&(r.metalness=e.metalness),void 0!==e.sheen&&(r.sheen=e.sheen),void 0!==e.sheenColor&&(r.sheenColor=(new Sh).setHex(e.sheenColor)),void 0!==e.sheenRoughness&&(r.sheenRoughness=e.sheenRoughness),void 0!==e.emissive&&void 0!==r.emissive&&r.emissive.setHex(e.emissive),void 0!==e.specular&&void 0!==r.specular&&r.specular.setHex(e.specular),void 0!==e.specularIntensity&&(r.specularIntensity=e.specularIntensity),void 0!==e.specularColor&&void 0!==r.specularColor&&r.specularColor.setHex(e.specularColor),void 0!==e.shininess&&(r.shininess=e.shininess),void 0!==e.clearcoat&&(r.clearcoat=e.clearcoat),void 0!==e.clearcoatRoughness&&(r.clearcoatRoughness=e.clearcoatRoughness),void 0!==e.iridescence&&(r.iridescence=e.iridescence),void 0!==e.iridescenceIOR&&(r.iridescenceIOR=e.iridescenceIOR),void 0!==e.iridescenceThicknessRange&&(r.iridescenceThicknessRange=e.iridescenceThicknessRange),void 0!==e.transmission&&(r.transmission=e.transmission),void 0!==e.thickness&&(r.thickness=e.thickness),void 0!==e.attenuationDistance&&(r.attenuationDistance=e.attenuationDistance),void 0!==e.attenuationColor&&void 0!==r.attenuationColor&&r.attenuationColor.setHex(e.attenuationColor),void 0!==e.anisotropy&&(r.anisotropy=e.anisotropy),void 0!==e.anisotropyRotation&&(r.anisotropyRotation=e.anisotropyRotation),void 0!==e.fog&&(r.fog=e.fog),void 0!==e.flatShading&&(r.flatShading=e.flatShading),void 0!==e.blending&&(r.blending=e.blending),void 0!==e.combine&&(r.combine=e.combine),void 0!==e.side&&(r.side=e.side),void 0!==e.shadowSide&&(r.shadowSide=e.shadowSide),void 0!==e.opacity&&(r.opacity=e.opacity),void 0!==e.transparent&&(r.transparent=e.transparent),void 0!==e.alphaTest&&(r.alphaTest=e.alphaTest),void 0!==e.alphaHash&&(r.alphaHash=e.alphaHash),void 0!==e.depthFunc&&(r.depthFunc=e.depthFunc),void 0!==e.depthTest&&(r.depthTest=e.depthTest),void 0!==e.depthWrite&&(r.depthWrite=e.depthWrite),void 0!==e.colorWrite&&(r.colorWrite=e.colorWrite),void 0!==e.blendSrc&&(r.blendSrc=e.blendSrc),void 0!==e.blendDst&&(r.blendDst=e.blendDst),void 0!==e.blendEquation&&(r.blendEquation=e.blendEquation),void 0!==e.blendSrcAlpha&&(r.blendSrcAlpha=e.blendSrcAlpha),void 0!==e.blendDstAlpha&&(r.blendDstAlpha=e.blendDstAlpha),void 0!==e.blendEquationAlpha&&(r.blendEquationAlpha=e.blendEquationAlpha),void 0!==e.blendColor&&void 0!==r.blendColor&&r.blendColor.setHex(e.blendColor),void 0!==e.blendAlpha&&(r.blendAlpha=e.blendAlpha),void 0!==e.stencilWriteMask&&(r.stencilWriteMask=e.stencilWriteMask),void 0!==e.stencilFunc&&(r.stencilFunc=e.stencilFunc),void 0!==e.stencilRef&&(r.stencilRef=e.stencilRef),void 0!==e.stencilFuncMask&&(r.stencilFuncMask=e.stencilFuncMask),void 0!==e.stencilFail&&(r.stencilFail=e.stencilFail),void 0!==e.stencilZFail&&(r.stencilZFail=e.stencilZFail),void 0!==e.stencilZPass&&(r.stencilZPass=e.stencilZPass),void 0!==e.stencilWrite&&(r.stencilWrite=e.stencilWrite),void 0!==e.wireframe&&(r.wireframe=e.wireframe),void 0!==e.wireframeLinewidth&&(r.wireframeLinewidth=e.wireframeLinewidth),void 0!==e.wireframeLinecap&&(r.wireframeLinecap=e.wireframeLinecap),void 0!==e.wireframeLinejoin&&(r.wireframeLinejoin=e.wireframeLinejoin),void 0!==e.rotation&&(r.rotation=e.rotation),void 0!==e.linewidth&&(r.linewidth=e.linewidth),void 0!==e.dashSize&&(r.dashSize=e.dashSize),void 0!==e.gapSize&&(r.gapSize=e.gapSize),void 0!==e.scale&&(r.scale=e.scale),void 0!==e.polygonOffset&&(r.polygonOffset=e.polygonOffset),void 0!==e.polygonOffsetFactor&&(r.polygonOffsetFactor=e.polygonOffsetFactor),void 0!==e.polygonOffsetUnits&&(r.polygonOffsetUnits=e.polygonOffsetUnits),void 0!==e.dithering&&(r.dithering=e.dithering),void 0!==e.alphaToCoverage&&(r.alphaToCoverage=e.alphaToCoverage),void 0!==e.premultipliedAlpha&&(r.premultipliedAlpha=e.premultipliedAlpha),void 0!==e.forceSinglePass&&(r.forceSinglePass=e.forceSinglePass),void 0!==e.visible&&(r.visible=e.visible),void 0!==e.toneMapped&&(r.toneMapped=e.toneMapped),void 0!==e.userData&&(r.userData=e.userData),void 0!==e.vertexColors&&("number"==typeof e.vertexColors?r.vertexColors=e.vertexColors>0:r.vertexColors=e.vertexColors),void 0!==e.uniforms)for(const i in e.uniforms){const t=e.uniforms[i];switch(r.uniforms[i]={},t.type){case"t":r.uniforms[i].value=n(t.value);break;case"c":r.uniforms[i].value=(new Sh).setHex(t.value);break;case"v2":r.uniforms[i].value=(new kl).fromArray(t.value);break;case"v3":r.uniforms[i].value=(new au).fromArray(t.value);break;case"v4":r.uniforms[i].value=(new Ql).fromArray(t.value);break;case"m3":r.uniforms[i].value=(new Rl).fromArray(t.value);break;case"m4":r.uniforms[i].value=(new Du).fromArray(t.value);break;default:r.uniforms[i].value=t.value}}if(void 0!==e.defines&&(r.defines=e.defines),void 0!==e.vertexShader&&(r.vertexShader=e.vertexShader),void 0!==e.fragmentShader&&(r.fragmentShader=e.fragmentShader),void 0!==e.glslVersion&&(r.glslVersion=e.glslVersion),void 0!==e.extensions)for(const i in e.extensions)r.extensions[i]=e.extensions[i];if(void 0!==e.lights&&(r.lights=e.lights),void 0!==e.clipping&&(r.clipping=e.clipping),void 0!==e.size&&(r.size=e.size),void 0!==e.sizeAttenuation&&(r.sizeAttenuation=e.sizeAttenuation),void 0!==e.map&&(r.map=n(e.map)),void 0!==e.matcap&&(r.matcap=n(e.matcap)),void 0!==e.alphaMap&&(r.alphaMap=n(e.alphaMap)),void 0!==e.bumpMap&&(r.bumpMap=n(e.bumpMap)),void 0!==e.bumpScale&&(r.bumpScale=e.bumpScale),void 0!==e.normalMap&&(r.normalMap=n(e.normalMap)),void 0!==e.normalMapType&&(r.normalMapType=e.normalMapType),void 0!==e.normalScale){let t=e.normalScale;!1===Array.isArray(t)&&(t=[t,t]),r.normalScale=(new kl).fromArray(t)}return void 0!==e.displacementMap&&(r.displacementMap=n(e.displacementMap)),void 0!==e.displacementScale&&(r.displacementScale=e.displacementScale),void 0!==e.displacementBias&&(r.displacementBias=e.displacementBias),void 0!==e.roughnessMap&&(r.roughnessMap=n(e.roughnessMap)),void 0!==e.metalnessMap&&(r.metalnessMap=n(e.metalnessMap)),void 0!==e.emissiveMap&&(r.emissiveMap=n(e.emissiveMap)),void 0!==e.emissiveIntensity&&(r.emissiveIntensity=e.emissiveIntensity),void 0!==e.specularMap&&(r.specularMap=n(e.specularMap)),void 0!==e.specularIntensityMap&&(r.specularIntensityMap=n(e.specularIntensityMap)),void 0!==e.specularColorMap&&(r.specularColorMap=n(e.specularColorMap)),void 0!==e.envMap&&(r.envMap=n(e.envMap)),void 0!==e.envMapIntensity&&(r.envMapIntensity=e.envMapIntensity),void 0!==e.reflectivity&&(r.reflectivity=e.reflectivity),void 0!==e.refractionRatio&&(r.refractionRatio=e.refractionRatio),void 0!==e.lightMap&&(r.lightMap=n(e.lightMap)),void 0!==e.lightMapIntensity&&(r.lightMapIntensity=e.lightMapIntensity),void 0!==e.aoMap&&(r.aoMap=n(e.aoMap)),void 0!==e.aoMapIntensity&&(r.aoMapIntensity=e.aoMapIntensity),void 0!==e.gradientMap&&(r.gradientMap=n(e.gradientMap)),void 0!==e.clearcoatMap&&(r.clearcoatMap=n(e.clearcoatMap)),void 0!==e.clearcoatRoughnessMap&&(r.clearcoatRoughnessMap=n(e.clearcoatRoughnessMap)),void 0!==e.clearcoatNormalMap&&(r.clearcoatNormalMap=n(e.clearcoatNormalMap)),void 0!==e.clearcoatNormalScale&&(r.clearcoatNormalScale=(new kl).fromArray(e.clearcoatNormalScale)),void 0!==e.iridescenceMap&&(r.iridescenceMap=n(e.iridescenceMap)),void 0!==e.iridescenceThicknessMap&&(r.iridescenceThicknessMap=n(e.iridescenceThicknessMap)),void 0!==e.transmissionMap&&(r.transmissionMap=n(e.transmissionMap)),void 0!==e.thicknessMap&&(r.thicknessMap=n(e.thicknessMap)),void 0!==e.anisotropyMap&&(r.anisotropyMap=n(e.anisotropyMap)),void 0!==e.sheenColorMap&&(r.sheenColorMap=n(e.sheenColorMap)),void 0!==e.sheenRoughnessMap&&(r.sheenRoughnessMap=n(e.sheenRoughnessMap)),r}setTextures(e){return this.textures=e,this}static createMaterialFromType(e){return new{ShadowMaterial:vy,SpriteMaterial:Sm,RawShaderMaterial:yy,ShaderMaterial:yf,PointsMaterial:zg,MeshPhysicalMaterial:by,MeshStandardMaterial:_y,MeshPhongMaterial:xy,MeshToonMaterial:wy,MeshNormalMaterial:Sy,MeshLambertMaterial:Ey,MeshDepthMaterial:nm,MeshDistanceMaterial:rm,MeshBasicMaterial:Ah,MeshMatcapMaterial:Ty,LineDashedMaterial:My,LineBasicMaterial:kg,Material:Mh}[e]}}class x_{static decodeText(e){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);let t="";for(let r=0,i=e.length;r0){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(n,r,this._addIndex*t,1,t);for(let o=t,c=t+t;o!==c;++o)if(n[o]!==n[o+t]){s.setValue(n,r);break}}saveOriginalState(){const e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);for(let i=n,a=r;i!==a;++i)t[i]=t[r+i%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=3*this.valueSize;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let n=e;n=.5)for(let a=0;a!==i;++a)e[t+a]=e[n+a]}_slerp(e,t,n,r){iu.slerpFlat(e,t,e,t,e,n,r)}_slerpAdditive(e,t,n,r,i){const a=this._workIndex*i;iu.multiplyQuaternionsFlat(e,a,e,t,e,n),iu.slerpFlat(e,t,e,t,e,a,r)}_lerp(e,t,n,r,i){const a=1-r;for(let s=0;s!==i;++s){const i=t+s;e[i]=e[i]*a+e[n+s]*r}}_lerpAdditive(e,t,n,r,i){for(let a=0;a!==i;++a){const i=t+a;e[i]=e[i]+e[n+a]*r}}}const W_="\\[\\]\\.:\\/",G_=new RegExp("["+W_+"]","g"),X_="[^"+W_+"]",q_="[^"+W_.replace("\\.","")+"]",$_=new RegExp("^"+/((?:WC+[\/:])*)/.source.replace("WC",X_)+/(WCOD+)?/.source.replace("WCOD",q_)+/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",X_)+/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",X_)+"$"),Y_=["material","materials","bones","map"];class Z_{constructor(e,t,n){this.path=t,this.parsedPath=n||Z_.parseTrackName(t),this.node=Z_.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new Z_.Composite(e,t,n):new Z_(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(G_,"")}static parseTrackName(e){const t=$_.exec(e);if(null===t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==r&&-1!==r){const e=n.nodeName.substring(r+1);-1!==Y_.indexOf(e)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(void 0===t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){const n=function(e){for(let r=0;r0){const e=this._interpolants,t=this._propertyBindings;if(this.blendMode===Kc)for(let n=0,r=e.length;n!==r;++n)e[n].evaluate(a),t[n].accumulateAdditive(s);else for(let n=0,i=e.length;n!==i;++n)e[n].evaluate(a),t[n].accumulate(r,s)}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const n=this._weightInterpolant;if(null!==n){const r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const n=this._timeScaleInterpolant;if(null!==n){t*=n.evaluate(e)[0],e>n.parameterPositions[1]&&(this.stopWarping(),0===t?this.paused=!0:this.timeScale=t)}}return this._effectiveTimeScale=t,t}_updateTime(e){const t=this._clip.duration,n=this.loop;let r=this.time+e,i=this._loopCount;const a=2202===n;if(0===e)return-1===i?r:a&&1==(1&i)?t-r:r;if(2200===n){-1===i&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(r>=t)r=t;else{if(!(r<0)){this.time=r;break e}r=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===i&&(e>=0?(i=0,this._setEndings(!0,0===this.repetitions,a)):this._setEndings(0===this.repetitions,!0,a)),r>=t||r<0){const n=Math.floor(r/t);r-=t*n,i+=Math.abs(n);const s=this.repetitions-i;if(s<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=e>0?t:0,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===s){const t=e<0;this._setEndings(t,!t,a)}else this._setEndings(!1,!1,a);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=r;if(a&&1==(1&i))return t-r}return r}_setEndings(e,t,n){const r=this._interpolantSettings;n?(r.endingStart=$c,r.endingEnd=$c):(r.endingStart=e?this.zeroSlopeAtStart?$c:qc:Yc,r.endingEnd=t?this.zeroSlopeAtEnd?$c:qc:Yc)}_scheduleFading(e,t,n){const r=this._mixer,i=r.time;let a=this._weightInterpolant;null===a&&(a=r._lendControlInterpolant(),this._weightInterpolant=a);const s=a.parameterPositions,o=a.sampleValues;return s[0]=i,o[0]=t,s[1]=i+e,o[1]=n,this}}const J_=new Float32Array(1);class Q_{constructor(e){this.value=e}clone(){return new Q_(void 0===this.value.clone?this.value:this.value.clone())}}let eb=0;function tb(e,t){return e.distance-t.distance}function nb(e,t,n,r){if(e.layers.test(t.layers)&&e.raycast(t,n),!0===r){const r=e.children;for(let e=0,i=r.length;e=0;--t)e[t].stop();return this}update(e){e*=this.timeScale;const t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),a=this._accuIndex^=1;for(let c=0;c!==n;++c){t[c]._update(r,e,i,a)}const s=this._bindings,o=this._nActiveBindings;for(let c=0;c!==o;++c)s[c].apply(a);return this}setTime(e){this.time=0;for(let t=0;t=i){const a=i++,l=e[a];t[l.uuid]=c,e[c]=l,t[o]=a,e[a]=s;for(let e=0,t=r;e!==t;++e){const t=n[e],r=t[a],i=t[c];t[c]=r,t[a]=i}}}this.nCachedObjects_=i}uncache(){const e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length;let i=this.nCachedObjects_,a=e.length;for(let s=0,o=arguments.length;s!==o;++s){const o=arguments[s].uuid,c=t[o];if(void 0!==c)if(delete t[o],c0&&(t[s.uuid]=c),e[c]=s,e.pop();for(let e=0,t=r;e!==t;++e){const t=n[e];t[c]=t[i],t.pop()}}}this.nCachedObjects_=i}subscribe_(e,t){const n=this._bindingsIndicesByPath;let r=n[e];const i=this._bindings;if(void 0!==r)return i[r];const a=this._paths,s=this._parsedPaths,o=this._objects,c=o.length,l=this.nCachedObjects_,u=new Array(c);r=i.length,n[e]=r,a.push(e),s.push(t),i.push(u);for(let h=l,f=o.length;h!==f;++h){const n=o[h];u[h]=new Z_(n,e,t)}return u}unsubscribe_(e){const t=this._bindingsIndicesByPath,n=t[e];if(void 0!==n){const r=this._paths,i=this._parsedPaths,a=this._bindings,s=a.length-1,o=a[s];t[e[s]]=n,a[n]=o,a.pop(),i[n]=i[s],i.pop(),r[n]=r[s],r.pop()}}},AnimationUtils:Iy,ArcCurve:Zg,ArrayCamera:cm,ArrowHelper:class extends sh{constructor(e=new au(0,0,1),t=new au(0,0,0),n=1,r=16776960,i=.2*n,a=.2*i){super(),this.type="ArrowHelper",void 0===wb&&(wb=new Xh,wb.setAttribute("position",new Uh([0,0,0,0,1,0],3)),Sb=new _v(0,.5,1,5,1),Sb.translate(0,-.5,0)),this.position.copy(t),this.line=new Dg(wb,new kg({color:r,toneMapped:!1})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new hf(Sb,new Ah({color:r,toneMapped:!1})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(e),this.setLength(n,i,a)}setDirection(e){if(e.y>.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{xb.set(e.z,0,-e.x).normalize();const t=Math.acos(e.y);this.quaternion.setFromAxisAngle(xb,t)}}setLength(e,t=.2*e,n=.2*t){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),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()}},AttachedBindMode:Do,Audio:U_,AudioAnalyser:class{constructor(e,t=2048){this.analyser=e.context.createAnalyser(),this.analyser.fftSize=t,this.data=new Uint8Array(this.analyser.frequencyBinCount),e.getOutput().connect(this.analyser)}getFrequencyData(){return this.analyser.getByteFrequencyData(this.data),this.data}getAverageFrequency(){let e=0;const t=this.getFrequencyData();for(let n=0;nthis.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,rb).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)}},Box3:cu,Box3Helper:class extends Ug{constructor(e,t=16776960){const n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),r=new Xh;r.setIndex(new Dh(n,1)),r.setAttribute("position",new Uh([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3)),super(r,new kg({color:t,toneMapped:!1})),this.box=e,this.type="Box3Helper",this.geometry.computeBoundingSphere()}updateMatrixWorld(e){const t=this.box;t.isEmpty()||(t.getCenter(this.position),t.getSize(this.scale),this.scale.multiplyScalar(.5),super.updateMatrixWorld(e))}dispose(){this.geometry.dispose(),this.material.dispose()}},BoxGeometry:df,BoxHelper:class extends Ug{constructor(e,t=16776960){const n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),r=new Float32Array(24),i=new Xh;i.setIndex(new Dh(n,1)),i.setAttribute("position",new Dh(r,3)),super(i,new kg({color:t,toneMapped:!1})),this.object=e,this.type="BoxHelper",this.matrixAutoUpdate=!1,this.update()}update(e){if(void 0!==this.object&&bb.setFromObject(this.object),bb.isEmpty())return;const t=bb.min,n=bb.max,r=this.geometry.attributes.position,i=r.array;i[0]=n.x,i[1]=n.y,i[2]=n.z,i[3]=t.x,i[4]=n.y,i[5]=n.z,i[6]=t.x,i[7]=t.y,i[8]=n.z,i[9]=n.x,i[10]=t.y,i[11]=n.z,i[12]=n.x,i[13]=n.y,i[14]=t.z,i[15]=t.x,i[16]=n.y,i[17]=t.z,i[18]=t.x,i[19]=t.y,i[20]=t.z,i[21]=n.x,i[22]=t.y,i[23]=t.z,r.needsUpdate=!0,this.geometry.computeBoundingSphere()}setFromObject(e){return this.object=e,this.update(),this}copy(e,t){return super.copy(e,t),this.object=e.object,this}dispose(){this.geometry.dispose(),this.material.dispose()}},BufferAttribute:Dh,BufferGeometry:Xh,BufferGeometryLoader:S_,ByteType:1010,Cache:qy,Camera:_f,CameraHelper:class extends Ug{constructor(e){const t=new Xh,n=new kg({color:16777215,vertexColors:!0,toneMapped:!1}),r=[],i=[],a={};function s(e,t){o(e),o(t)}function o(e){r.push(0,0,0),i.push(0,0,0),void 0===a[e]&&(a[e]=[]),a[e].push(r.length/3-1)}s("n1","n2"),s("n2","n4"),s("n4","n3"),s("n3","n1"),s("f1","f2"),s("f2","f4"),s("f4","f3"),s("f3","f1"),s("n1","f1"),s("n2","f2"),s("n3","f3"),s("n4","f4"),s("p","n1"),s("p","n2"),s("p","n3"),s("p","n4"),s("u1","u2"),s("u2","u3"),s("u3","u1"),s("c","t"),s("p","c"),s("cn1","cn2"),s("cn3","cn4"),s("cf1","cf2"),s("cf3","cf4"),t.setAttribute("position",new Uh(r,3)),t.setAttribute("color",new Uh(i,3)),super(t,n),this.type="CameraHelper",this.camera=e,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=a,this.update();const c=new Sh(16755200),l=new Sh(16711680),u=new Sh(43775),h=new Sh(16777215),f=new Sh(3355443);this.setColors(c,l,u,h,f)}setColors(e,t,n,r,i){const a=this.geometry.getAttribute("color");a.setXYZ(0,e.r,e.g,e.b),a.setXYZ(1,e.r,e.g,e.b),a.setXYZ(2,e.r,e.g,e.b),a.setXYZ(3,e.r,e.g,e.b),a.setXYZ(4,e.r,e.g,e.b),a.setXYZ(5,e.r,e.g,e.b),a.setXYZ(6,e.r,e.g,e.b),a.setXYZ(7,e.r,e.g,e.b),a.setXYZ(8,e.r,e.g,e.b),a.setXYZ(9,e.r,e.g,e.b),a.setXYZ(10,e.r,e.g,e.b),a.setXYZ(11,e.r,e.g,e.b),a.setXYZ(12,e.r,e.g,e.b),a.setXYZ(13,e.r,e.g,e.b),a.setXYZ(14,e.r,e.g,e.b),a.setXYZ(15,e.r,e.g,e.b),a.setXYZ(16,e.r,e.g,e.b),a.setXYZ(17,e.r,e.g,e.b),a.setXYZ(18,e.r,e.g,e.b),a.setXYZ(19,e.r,e.g,e.b),a.setXYZ(20,e.r,e.g,e.b),a.setXYZ(21,e.r,e.g,e.b),a.setXYZ(22,e.r,e.g,e.b),a.setXYZ(23,e.r,e.g,e.b),a.setXYZ(24,t.r,t.g,t.b),a.setXYZ(25,t.r,t.g,t.b),a.setXYZ(26,t.r,t.g,t.b),a.setXYZ(27,t.r,t.g,t.b),a.setXYZ(28,t.r,t.g,t.b),a.setXYZ(29,t.r,t.g,t.b),a.setXYZ(30,t.r,t.g,t.b),a.setXYZ(31,t.r,t.g,t.b),a.setXYZ(32,n.r,n.g,n.b),a.setXYZ(33,n.r,n.g,n.b),a.setXYZ(34,n.r,n.g,n.b),a.setXYZ(35,n.r,n.g,n.b),a.setXYZ(36,n.r,n.g,n.b),a.setXYZ(37,n.r,n.g,n.b),a.setXYZ(38,r.r,r.g,r.b),a.setXYZ(39,r.r,r.g,r.b),a.setXYZ(40,i.r,i.g,i.b),a.setXYZ(41,i.r,i.g,i.b),a.setXYZ(42,i.r,i.g,i.b),a.setXYZ(43,i.r,i.g,i.b),a.setXYZ(44,i.r,i.g,i.b),a.setXYZ(45,i.r,i.g,i.b),a.setXYZ(46,i.r,i.g,i.b),a.setXYZ(47,i.r,i.g,i.b),a.setXYZ(48,i.r,i.g,i.b),a.setXYZ(49,i.r,i.g,i.b),a.needsUpdate=!0}update(){const e=this.geometry,t=this.pointMap;yb.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse),_b("c",t,e,yb,0,0,-1),_b("t",t,e,yb,0,0,1),_b("n1",t,e,yb,-1,-1,-1),_b("n2",t,e,yb,1,-1,-1),_b("n3",t,e,yb,-1,1,-1),_b("n4",t,e,yb,1,1,-1),_b("f1",t,e,yb,-1,-1,1),_b("f2",t,e,yb,1,-1,1),_b("f3",t,e,yb,-1,1,1),_b("f4",t,e,yb,1,1,1),_b("u1",t,e,yb,.7,1.1,-1),_b("u2",t,e,yb,-.7,1.1,-1),_b("u3",t,e,yb,0,2,-1),_b("cf1",t,e,yb,-1,0,1),_b("cf2",t,e,yb,1,0,1),_b("cf3",t,e,yb,0,-1,1),_b("cf4",t,e,yb,0,1,1),_b("cn1",t,e,yb,-1,0,-1),_b("cn2",t,e,yb,1,0,-1),_b("cn3",t,e,yb,0,-1,-1),_b("cn4",t,e,yb,0,1,-1),e.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}},CanvasTexture:class extends Jl{constructor(e,t,n,r,i,a,s,o,c){super(e,t,n,r,i,a,s,o,c),this.isCanvasTexture=!0,this.needsUpdate=!0}},CapsuleGeometry:vv,CatmullRomCurve3:nv,CineonToneMapping:Oo,CircleGeometry:yv,ClampToEdgeWrapping:Wo,Clock:I_,Color:Sh,ColorKeyframeTrack:By,ColorManagement:jl,CompressedArrayTexture:class extends qg{constructor(e,t,n,r,i,a){super(e,t,n,i,a),this.isCompressedArrayTexture=!0,this.image.depth=r,this.wrapR=Wo}},CompressedCubeTexture:class extends qg{constructor(e,t,n){super(void 0,e[0].width,e[0].height,t,n,Uo),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}},CompressedTexture:qg,CompressedTextureLoader:class extends Zy{constructor(e){super(e)}load(e,t,n,r){const i=this,a=[],s=new qg,o=new Qy(this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(i.withCredentials);let c=0;function l(l){o.load(e[l],(function(e){const n=i.parse(e,!0);a[l]={width:n.width,height:n.height,format:n.format,mipmaps:n.mipmaps},c+=1,6===c&&(1===n.mipmapCount&&(s.minFilter=Yo),s.image=a,s.format=n.format,s.needsUpdate=!0,t&&t(s))}),n,r)}if(Array.isArray(e))for(let u=0,h=e.length;u{t&&t(n),i.manager.itemEnd(e)})).catch((e=>{r&&r(e)})):(setTimeout((function(){t&&t(a),i.manager.itemEnd(e)}),0),a);const s={};s.credentials="anonymous"===this.crossOrigin?"same-origin":"include",s.headers=this.requestHeader;const o=fetch(e,s).then((function(e){return e.blob()})).then((function(e){return createImageBitmap(e,Object.assign(i.options,{colorSpaceConversion:"none"}))})).then((function(n){return qy.add(e,n),t&&t(n),i.manager.itemEnd(e),n})).catch((function(t){r&&r(t),qy.remove(e),i.manager.itemError(e),i.manager.itemEnd(e)}));qy.add(e,o),i.manager.itemStart(e)}},ImageLoader:e_,ImageUtils:ql,IncrementStencilOp:7682,IncrementWrapStencilOp:34055,InstancedBufferAttribute:rg,InstancedBufferGeometry:w_,InstancedInterleavedBuffer:class extends bm{constructor(e,t,n=1){super(e,t),this.isInstancedInterleavedBuffer=!0,this.meshPerAttribute=n}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}clone(e){const t=super.clone(e);return t.meshPerAttribute=this.meshPerAttribute,t}toJSON(e){const t=super.toJSON(e);return t.isInstancedInterleavedBuffer=!0,t.meshPerAttribute=this.meshPerAttribute,t}},InstancedMesh:hg,Int16BufferAttribute:class extends Dh{constructor(e,t,n){super(new Int16Array(e),t,n)}},Int32BufferAttribute:class extends Dh{constructor(e,t,n){super(new Int32Array(e),t,n)}},Int8BufferAttribute:class extends Dh{constructor(e,t,n){super(new Int8Array(e),t,n)}},IntType:ec,InterleavedBuffer:bm,InterleavedBufferAttribute:wm,Interpolant:Py,InterpolateDiscrete:Wc,InterpolateLinear:Gc,InterpolateSmooth:Xc,InvertStencilOp:5386,KeepStencilOp:ll,KeyframeTrack:Fy,LOD:Vm,LatheGeometry:gv,Layers:Xu,LessCompare:513,LessDepth:2,LessEqualCompare:515,LessEqualDepth:3,LessEqualStencilFunc:515,LessStencilFunc:513,Light:t_,LightProbe:__,Line:Dg,Line3:class{constructor(e=new au,t=new au){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){ib.subVectors(e,this.start),ab.subVectors(this.end,this.start);const n=ab.dot(ab);let r=ab.dot(ib)/n;return t&&(r=xl(r,0,1)),r}closestPointToPoint(e,t,n){const r=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(r).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)}},LineBasicMaterial:kg,LineCurve:cv,LineCurve3:lv,LineDashedMaterial:My,LineLoop:Bg,LineSegments:Ug,LinearDisplayP3ColorSpace:il,LinearEncoding:Jc,LinearFilter:Yo,LinearInterpolant:Dy,LinearMipMapLinearFilter:1008,LinearMipMapNearestFilter:1007,LinearMipmapLinearFilter:Ko,LinearMipmapNearestFilter:Zo,LinearSRGBColorSpace:nl,LinearToneMapping:ko,LinearTransfer:al,Loader:Zy,LoaderUtils:x_,LoadingManager:$y,LoopOnce:2200,LoopPingPong:2202,LoopRepeat:2201,LuminanceAlphaFormat:1025,LuminanceFormat:1024,MOUSE:go,Material:Mh,MaterialLoader:b_,MathUtils:Cl,Matrix3:Rl,Matrix4:Du,MaxEquation:104,Mesh:hf,MeshBasicMaterial:Ah,MeshDepthMaterial:nm,MeshDistanceMaterial:rm,MeshLambertMaterial:Ey,MeshMatcapMaterial:Ty,MeshNormalMaterial:Sy,MeshPhongMaterial:xy,MeshPhysicalMaterial:by,MeshStandardMaterial:_y,MeshToonMaterial:wy,MinEquation:103,MirroredRepeatWrapping:Go,MixOperation:Mo,MultiplyBlending:4,MultiplyOperation:To,NearestFilter:Xo,NearestMipMapLinearFilter:1005,NearestMipMapNearestFilter:1004,NearestMipmapLinearFilter:$o,NearestMipmapNearestFilter:qo,NeverCompare:512,NeverDepth:0,NeverStencilFunc:512,NoBlending:0,NoColorSpace:el,NoToneMapping:Co,NormalAnimationBlendMode:Zc,NormalBlending:1,NotEqualCompare:517,NotEqualDepth:7,NotEqualStencilFunc:517,NumberKeyframeTrack:zy,Object3D:sh,ObjectLoader:class extends Zy{constructor(e){super(e)}load(e,t,n,r){const i=this,a=""===this.path?x_.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||a;const s=new Qy(this.manager);s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(e,(function(n){let a=null;try{a=JSON.parse(n)}catch(o){return void(void 0!==r&&r(o))}const s=a.metadata;void 0!==s&&void 0!==s.type&&"geometry"!==s.type.toLowerCase()?i.parse(a,t):void 0!==r&&r(new Error("THREE.ObjectLoader: Can't load "+e))}),n,r)}async loadAsync(e,t){const n=""===this.path?x_.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||n;const r=new Qy(this.manager);r.setPath(this.path),r.setRequestHeader(this.requestHeader),r.setWithCredentials(this.withCredentials);const i=await r.loadAsync(e,t),a=JSON.parse(i),s=a.metadata;if(void 0===s||void 0===s.type||"geometry"===s.type.toLowerCase())throw new Error("THREE.ObjectLoader: Can't load "+e);return await this.parseAsync(a)}parse(e,t){const n=this.parseAnimations(e.animations),r=this.parseShapes(e.shapes),i=this.parseGeometries(e.geometries,r),a=this.parseImages(e.images,(function(){void 0!==t&&t(c)})),s=this.parseTextures(e.textures,a),o=this.parseMaterials(e.materials,s),c=this.parseObject(e.object,i,o,s,n),l=this.parseSkeletons(e.skeletons,c);if(this.bindSkeletons(c,l),void 0!==t){let e=!1;for(const t in a)if(a[t].data instanceof HTMLImageElement){e=!0;break}!1===e&&t(c)}return c}async parseAsync(e){const t=this.parseAnimations(e.animations),n=this.parseShapes(e.shapes),r=this.parseGeometries(e.geometries,n),i=await this.parseImagesAsync(e.images),a=this.parseTextures(e.textures,i),s=this.parseMaterials(e.materials,a),o=this.parseObject(e.object,r,s,a,t),c=this.parseSkeletons(e.skeletons,o);return this.bindSkeletons(o,c),o}parseShapes(e){const t={};if(void 0!==e)for(let n=0,r=e.length;n0){const n=new $y(t);i=new e_(n),i.setCrossOrigin(this.crossOrigin);for(let t=0,i=e.length;t0){r=new e_(this.manager),r.setCrossOrigin(this.crossOrigin);for(let t=0,r=e.length;t{const t=new cu;t.min.fromArray(e.boxMin),t.max.fromArray(e.boxMax);const n=new Mu;return n.radius=e.sphereRadius,n.center.fromArray(e.sphereCenter),{boxInitialized:e.boxInitialized,box:t,sphereInitialized:e.sphereInitialized,sphere:n}})),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 Vm;break;case"Line":a=new Dg(c(e.geometry),l(e.material));break;case"LineLoop":a=new Bg(c(e.geometry),l(e.material));break;case"LineSegments":a=new Ug(c(e.geometry),l(e.material));break;case"PointCloud":case"Points":a=new Gg(c(e.geometry),l(e.material));break;case"Sprite":a=new Fm(l(e.material));break;case"Group":a=new lm;break;case"Bone":a=new Jm;break;default:a=new sh}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){const s=e.children;for(let e=0;e1)for(let l=0;lNumber.EPSILON){if(c<0&&(n=t[a],o=-o,s=t[i],c=-c),e.ys.y)continue;if(e.y===n.y){if(e.x===n.x)return!0}else{const t=c*(e.x-n.x)-o*(e.y-n.y);if(0===t)return!0;if(t<0)continue;r=!r}}else{if(e.y!==n.y)continue;if(s.x<=e.x&&e.x<=n.x||n.x<=e.x&&e.x<=s.x)return!0}}return r}const n=ey.isClockWise,r=this.subPaths;if(0===r.length)return[];let i,a,s;const o=[];if(1===r.length)return a=r[0],s=new Cv,s.curves=a.curves,o.push(s),o;let c=!n(r[0].getPoints());c=e?!c:c;const l=[],u=[];let h,f,d=[],p=0;u[p]=void 0,d[p]=[];for(let m=0,g=r.length;m1){let e=!1,n=0;for(let t=0,r=u.length;t0&&!1===e&&(d=l)}for(let m=0,g=u.length;m=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}},WebGL1Renderer:gm,WebGL3DRenderTarget:class extends tu{constructor(e=1,t=1,n=1,r={}){super(e,t,r),this.isWebGL3DRenderTarget=!0,this.depth=n,this.texture=new ru(null,e,t,n),this.texture.isRenderTargetTexture=!0}},WebGLArrayRenderTarget:class extends tu{constructor(e=1,t=1,n=1,r={}){super(e,t,r),this.isWebGLArrayRenderTarget=!0,this.depth=n,this.texture=new nu(null,e,t,n),this.texture.isRenderTargetTexture=!0}},WebGLCoordinateSystem:dl,WebGLCubeRenderTarget:Ef,WebGLMultipleRenderTargets:class extends tu{constructor(e=1,t=1,n=1,r={}){super(e,t,r),this.isWebGLMultipleRenderTargets=!0;const i=this.texture;this.texture=[];for(let a=0;aTb=e,Ab=Symbol();function Cb(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var kb,Rb;function Ob(){const e=re(!0),t=e.run((()=>At({})));let n=[],r=[];const i=xt({install(e){Mb(i),i._a=e,e.provide(Ab,i),e.config.globalProperties.$pinia=i,r.forEach((e=>n.push(e))),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}(Rb=kb||(kb={})).direct="direct",Rb.patchObject="patch object",Rb.patchFunction="patch function";const Ib=()=>{};function Pb(e,t,n,r=Ib){e.push(t);const i=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!n&&ae()&&se(i),i}function Lb(e,...t){e.slice().forEach((e=>{e(...t)}))}const Db=e=>e();function Nb(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];Cb(i)&&Cb(r)&&e.hasOwnProperty(n)&&!Mt(r)&&!gt(r)?e[n]=Nb(i,r):e[n]=r}return e}const Fb=Symbol();const{assign:Ub}=Object;function Bb(e,t,n={},r,i,a){let s;const o=Ub({actions:{}},n),c={deep:!0};let l,u,h,f=[],d=[];const p=r.state.value[e];let m;function g(t){let n;l=u=!1,"function"==typeof t?(t(r.state.value[e]),n={type:kb.patchFunction,storeId:e,events:h}):(Nb(r.state.value[e],t),n={type:kb.patchObject,payload:t,storeId:e,events:h});const i=m=Symbol();Qt().then((()=>{m===i&&(l=!0)})),u=!0,Lb(f,n,r.state.value[e])}a||p||(r.state.value[e]={}),At({});const v=a?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{Ub(e,t)}))}:Ib;function y(t,n){return function(){Mb(r);const i=Array.from(arguments),a=[],s=[];let o;Lb(d,{args:i,name:t,store:_,after:function(e){a.push(e)},onError:function(e){s.push(e)}});try{o=n.apply(this&&this.$id===e?this:_,i)}catch(c){throw Lb(s,c),c}return o instanceof Promise?o.then((e=>(Lb(a,e),e))).catch((e=>(Lb(s,e),Promise.reject(e)))):(Lb(a,o),o)}}const _=ft({_p:r,$id:e,$onAction:Pb.bind(null,d),$patch:g,$reset:v,$subscribe(t,n={}){const i=Pb(f,t,n.detached,(()=>a())),a=s.run((()=>Vn((()=>r.state.value[e]),(r=>{("sync"===n.flush?u:l)&&t({storeId:e,type:kb.direct,events:h},r)}),Ub({},c,n))));return i},$dispose:function(){s.stop(),f=[],d=[],r._s.delete(e)}});r._s.set(e,_);const b=(r._a&&r._a.runWithContext||Db)((()=>r._e.run((()=>(s=re()).run(t)))));for(const S in b){const t=b[S];if(Mt(t)&&(!Mt(w=t)||!w.effect)||gt(t))a||(!p||Cb(x=t)&&x.hasOwnProperty(Fb)||(Mt(t)?t.value=p[S]:Nb(t,p[S])),r.state.value[e][S]=t);else if("function"==typeof t){const e=y(S,t);b[S]=e,o.actions[S]=t}}var x,w;return Ub(_,b),Ub(bt(_),b),Object.defineProperty(_,"$state",{get:()=>r.state.value[e],set:e=>{g((t=>{Ub(t,e)}))}}),r._p.forEach((e=>{Ub(_,s.run((()=>e({store:_,app:r._a,pinia:r,options:o}))))})),p&&a&&n.hydrate&&n.hydrate(_.$state,p),l=!0,u=!0,_}function zb(e,t,n){let r,i;const a="function"==typeof t;function s(e,n){const s=ii();(e=e||(s?ri(Ab,null):null))&&Mb(e),(e=Tb)._s.has(r)||(a?Bb(r,t,i,e):function(e,t,n,r){const{state:i,actions:a,getters:s}=t,o=n.state.value[e];let c;c=Bb(e,(function(){o||(n.state.value[e]=i?i():{});const t=Dt(n.state.value[e]);return Ub(t,a,Object.keys(s||{}).reduce(((t,r)=>(t[r]=xt(Pa((()=>{Mb(n);const t=n._s.get(e);return s[r].call(t,t)}))),t)),{}))}),t,n,0,!0)}(r,i,e));return e._s.get(r)}return"string"==typeof e?(r=e,i=a?n:t):(i=e,r=e.id),s.$id=r,s}function Vb(e){{e=bt(e);const t={};for(const n in e){const r=e[n];(Mt(r)||gt(r))&&(t[n]=Ut(e,n))}return t}}var Hb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function jb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wb(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var Gb={exports:{}};Gb.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",a="minute",s="hour",o="day",c="week",l="month",u="quarter",h="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()1)return e(s[0])}else{var o=t.name;b[o]=t,i=o}return!r&&i&&(_=i),i||!r&&_},E=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new M(n)},T=y;T.l=S,T.i=w,T.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var M=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return T},v.isValid=function(){return!(this.$d.toString()===d)},v.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return E(e)=43)}})).catch((function(){return!1}))}function w(e){return"boolean"==typeof m?l.resolve(m):x(e).then((function(e){return m=e}))}function S(e){var t=g[e.name],n={};n.promise=new l((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function E(e){var t=g[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function T(e,t){var n=g[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function M(e,t){return new l((function(n,r){if(g[e.name]=g[e.name]||N(),e.db){if(!t)return n(e.db);S(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var a=s.open.apply(s,i);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(p)}catch(r){if("ConstraintError"!==r.name)throw r}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(e){e.target.close()},n(t),E(e)}}))}function A(e){return M(e,!1)}function C(e){return M(e,!0)}function k(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.versione.db.version;if(r&&(e.version,e.version=e.db.version),i||n){if(n){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function R(e){return new l((function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:e.type})},r.readAsBinaryString(e)}))}function O(e){return c([b(atob(e.data))],{type:e.type})}function I(e){return e&&e.__local_forage_encoded_blob}function P(e){var t=this,n=t._initReady().then((function(){var e=g[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return h(n,e,e),n}function L(e){S(e);for(var t=g[e.name],n=t.forages,r=0;r0&&(!e.db||"InvalidStateError"===a.name||"NotFoundError"===a.name))return l.resolve().then((function(){if(!e.db||"NotFoundError"===a.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),C(e)})).then((function(){return L(e).then((function(){D(e,t,n,r-1)}))})).catch(n);n(a)}}function N(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function F(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=g[n.name];i||(i=N(),g[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=P);var a=[];function s(){return l.resolve()}for(var o=0;o>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&a;return l}function pe(e){var t,n=new Uint8Array(e),r="";for(t=0;t>2],r+=Y[(3&n[t])<<4|n[t+1]>>4],r+=Y[(15&n[t+1])<<2|n[t+2]>>6],r+=Y[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}function me(e,t){var n="";if(e&&(n=fe.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===fe.call(e.buffer))){var r,i=J;e instanceof ArrayBuffer?(r=e,i+=ee):(r=e.buffer,"[object Int8Array]"===n?i+=ne:"[object Uint8Array]"===n?i+=re:"[object Uint8ClampedArray]"===n?i+=ie:"[object Int16Array]"===n?i+=ae:"[object Uint16Array]"===n?i+=oe:"[object Int32Array]"===n?i+=se:"[object Uint32Array]"===n?i+=ce:"[object Float32Array]"===n?i+=le:"[object Float64Array]"===n?i+=ue:t(new Error("Failed to get type for BinaryArray"))),t(i+pe(r))}else if("[object Blob]"===n){var a=new FileReader;a.onload=function(){var n=Z+e.type+"~"+pe(this.result);t(J+te+n)},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(s){t(null,s)}}function ge(e){if(e.substring(0,Q)!==J)return JSON.parse(e);var t,n=e.substring(he),r=e.substring(Q,he);if(r===te&&K.test(n)){var i=n.match(K);t=i[1],n=n.substring(i[0].length)}var a=de(n);switch(r){case ee:return a;case te:return c([a],{type:t});case ne:return new Int8Array(a);case re:return new Uint8Array(a);case ie:return new Uint8ClampedArray(a);case ae:return new Int16Array(a);case oe:return new Uint16Array(a);case se:return new Int32Array(a);case ce:return new Uint32Array(a);case le:return new Float32Array(a);case ue:return new Float64Array(a);default:throw new Error("Unkown type: "+r)}}var ve={serialize:me,deserialize:ge,stringToBuffer:de,bufferToString:pe};function ye(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function _e(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var i=new l((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(i){return r(i)}n.db.transaction((function(i){ye(i,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=ve,i}function be(e,t,n,r,i,a){e.executeSql(n,r,i,(function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,o){o.rows.length?a(e,s):ye(e,t,(function(){e.executeSql(n,r,i,a)}),a)}),a):a(e,s)}),a)}function xe(e,t){var n=this;e=f(e);var r=new l((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){be(n,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return u(r,t),r}function we(e,t){var n=this,r=new l((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){be(n,i,"SELECT * FROM "+i.storeName,[],(function(n,r){for(var a=r.rows,s=a.length,o=0;o0)return void a(Se.apply(i,[e,o,n,r-1]));s(t)}}))}))})).catch(s)}));return u(a,n),a}function Ee(e,t,n){return Se.apply(this,[e,t,n,1])}function Te(e,t){var n=this;e=f(e);var r=new l((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){be(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return u(r,t),r}function Me(e){var t=this,n=new l((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){be(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return u(n,e),n}function Ae(e){var t=this,n=new l((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){be(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return u(n,e),n}function Ce(e,t){var n=this,r=new l((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){be(n,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return u(r,t),r}function ke(e){var t=this,n=new l((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){be(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],i=0;i '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var i=[],a=0;a0}function Fe(e){var t=this,n={};if(e)for(var r in e)n[r]=e[r];return n.keyPrefix=Le(e,t._defaultConfig),Ne()?(t._dbInfo=n,n.serializer=ve,l.resolve()):l.reject()}function Ue(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return u(n,e),n}function Be(e,t){var n=this;e=f(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return u(r,t),r}function ze(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,a=localStorage.length,s=1,o=0;o=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):l.reject("Invalid arguments"),t),r}var qe={_driver:"localStorageWrapper",_initStorage:Fe,_support:Pe(),iterate:ze,getItem:Be,setItem:Ge,removeItem:We,clear:Ue,length:je,key:Ve,keys:He,dropInstance:Xe},$e=function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},Ye=function(e,t){for(var n=e.length,r=0;r{},ex=Array.isArray,tx=/\/$/,nx=e=>e.replace(tx,"");function rx(e,t,n="/"){let r,i={},a="",s="";const o=t.indexOf("#");let c=t.indexOf("?");return o=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,o>-1?o:t.length),i=e(a)),o>-1&&(r=r||t.slice(0,o),s=t.slice(o,t.length)),r=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];".."!==i&&"."!==i||r.push("");let a,s,o=n.length-1;for(a=0;a1&&o--}return n.slice(0,o).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}(null!=r?r:t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:i,hash:s}}function ix(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function ax(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function sx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ox(e[n],t[n]))return!1;return!0}function ox(e,t){return ex(e)?cx(e,t):ex(t)?cx(t,e):e===t}function cx(e,t){return ex(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var lx,ux,hx,fx;(ux=lx||(lx={})).pop="pop",ux.push="push",(fx=hx||(hx={})).back="back",fx.forward="forward",fx.unknown="";const dx=/^[^#]+#/;function px(e,t){return e.replace(dx,"#")+t}const mx=()=>({left:window.pageXOffset,top:window.pageYOffset});function gx(e){let t;if("el"in e){const n=e.el,r="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function vx(e,t){return(history.state?history.state.position-t:-1)+e}const yx=new Map;let _x=()=>location.protocol+"//"+location.host;function bx(e,t){const{pathname:n,search:r,hash:i}=t,a=e.indexOf("#");if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),ix(n,"")}return ix(n,e)+r+i}function xx(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?mx():null}}function wx(e){const t=function(e){const{history:t,location:n}=window,r={value:bx(e,n)},i={value:t.state};function a(r,a,s){const o=e.indexOf("#"),c=o>-1?(n.host&&document.querySelector("base")?e:e.slice(o))+r:_x()+e+r;try{t[s?"replaceState":"pushState"](a,"",c),i.value=a}catch(l){n[s?"replace":"assign"](c)}}return i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:i,push:function(e,n){const s=Kb({},i.value,t.state,{forward:e,scroll:mx()});a(s.current,s,!0),a(e,Kb({},xx(r.value,e,null),{position:s.position+1},n),!1),r.value=e},replace:function(e,n){a(e,Kb({},t.state,xx(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}}}(e=function(e){if(!e)if(Zb){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),nx(e)}(e)),n=function(e,t,n,r){let i=[],a=[],s=null;const o=({state:a})=>{const o=bx(e,location),c=n.value,l=t.value;let u=0;if(a){if(n.value=o,t.value=a,s&&s===c)return void(s=null);u=l?a.position-l.position:0}else r(o);i.forEach((e=>{e(n.value,c,{delta:u,type:lx.pop,direction:u?u>0?hx.forward:hx.back:hx.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(Kb({},e.state,{scroll:mx()}),"")}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t},destroy:function(){for(const e of a)e();a=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace);const r=Kb({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:px.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Sx(e){return"string"==typeof e||"symbol"==typeof e}const Ex={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Tx=Symbol("");var Mx,Ax;function Cx(e,t){return Kb(new Error,{type:e,[Tx]:!0},t)}function kx(e,t){return e instanceof Error&&Tx in e&&(null==t||!!(e.type&t))}(Ax=Mx||(Mx={}))[Ax.aborted=4]="aborted",Ax[Ax.cancelled=8]="cancelled",Ax[Ax.duplicated=16]="duplicated";const Rx="[^/]+?",Ox={sensitive:!1,strict:!1,start:!0,end:!0},Ix=/[.+*?^${}()[\]/\\]/g;function Px(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function Lx(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const Nx={type:0,value:""},Fx=/[a-zA-Z0-9_]/;function Ux(e,t,n){const r=function(e,t){const n=Kb({},Ox,t),r=[];let i=n.start?"^":"";const a=[];for(const c of e){const e=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let t=0;t1&&("*"===o||"+"===o)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:"*"===o||"+"===o,optional:"*"===o||"?"===o})):t("Invalid state to consume buffer"),l="")}function f(){l+=o}for(;c{a(f)}:Qb}function a(e){if(Sx(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function s(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!Gx(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Hx(e)&&r.set(e.record.name,e)}return t=Wx({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>i(e))),{addRoute:i,resolve:function(e,t){let i,a,s,o={};if("name"in e&&e.name){if(i=r.get(e.name),!i)throw Cx(1,{location:e});s=i.record.name,o=Kb(zx(t.params,i.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&zx(e.params,i.keys.map((e=>e.name)))),a=i.stringify(o)}else if("path"in e)a=e.path,i=n.find((e=>e.re.test(a))),i&&(o=i.parse(a),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!i)throw Cx(1,{location:e,currentLocation:t});s=i.record.name,o=Kb({},t.params,e.params),a=i.stringify(o)}const c=[];let l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:a,params:o,matched:c,meta:jx(c)}},removeRoute:a,getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}function zx(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Vx(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"==typeof n?n[r]:n;return t}function Hx(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function jx(e){return e.reduce(((e,t)=>Kb(e,t.meta)),{})}function Wx(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Gx(e,t){return t.children.some((t=>t===e||Gx(e,t)))}const Xx=/#/g,qx=/&/g,$x=/\//g,Yx=/=/g,Zx=/\?/g,Kx=/\+/g,Jx=/%5B/g,Qx=/%5D/g,ew=/%5E/g,tw=/%60/g,nw=/%7B/g,rw=/%7C/g,iw=/%7D/g,aw=/%20/g;function sw(e){return encodeURI(""+e).replace(rw,"|").replace(Jx,"[").replace(Qx,"]")}function ow(e){return sw(e).replace(Kx,"%2B").replace(aw,"+").replace(Xx,"%23").replace(qx,"%26").replace(tw,"`").replace(nw,"{").replace(iw,"}").replace(ew,"^")}function cw(e){return null==e?"":function(e){return sw(e).replace(Xx,"%23").replace(Zx,"%3F")}(e).replace($x,"%2F")}function lw(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function uw(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let r=0;re&&ow(e))):[r&&ow(r)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function fw(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=ex(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}const dw=Symbol(""),pw=Symbol(""),mw=Symbol(""),gw=Symbol(""),vw=Symbol("");function yw(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function _w(e,t,n,r,i){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise(((s,o)=>{const c=e=>{var c;!1===e?o(Cx(4,{from:n,to:t})):e instanceof Error?o(e):"string"==typeof(c=e)||c&&"object"==typeof c?o(Cx(2,{from:t,to:e})):(a&&r.enterCallbacks[i]===a&&"function"==typeof e&&a.push(e),s())},l=e.call(r&&r.instances[i],t,n,c);let u=Promise.resolve(l);e.length<3&&(u=u.then(c)),u.catch((e=>o(e)))}))}function bw(e,t,n,r){const i=[];for(const s of e)for(const e in s.components){let o=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if("object"==typeof(a=o)||"displayName"in a||"props"in a||"__vccOpts"in a){const a=(o.__vccOpts||o)[t];a&&i.push(_w(a,n,r,s,e))}else{let a=o();i.push((()=>a.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const a=(o=i).__esModule||"Module"===o[Symbol.toStringTag]?i.default:i;var o;s.components[e]=a;const c=(a.__vccOpts||a)[t];return c&&_w(c,n,r,s,e)()}))))}}var a;return i}function xw(e){const t=ri(mw),n=ri(gw),r=Pa((()=>t.resolve(Ot(e.to)))),i=Pa((()=>{const{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;const s=a.findIndex(ax.bind(null,i));if(s>-1)return s;const o=Sw(e[t-2]);return t>1&&Sw(i)===o&&a[a.length-1].path!==o?a.findIndex(ax.bind(null,e[t-2])):s})),a=Pa((()=>i.value>-1&&function(e,t){for(const n in t){const r=t[n],i=e[n];if("string"==typeof r){if(r!==i)return!1}else if(!ex(i)||i.length!==r.length||r.some(((e,t)=>e!==i[t])))return!1}return!0}(n.params,r.value.params))),s=Pa((()=>i.value>-1&&i.value===n.matched.length-1&&sx(n.params,r.value.params)));return{route:r,href:Pa((()=>r.value.href)),isActive:a,isExactActive:s,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[Ot(e.replace)?"replace":"push"](Ot(e.to)).catch(Qb):Promise.resolve()}}}const ww=sr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:xw,setup(e,{slots:t}){const n=ft(xw(e)),{options:r}=ri(mw),i=Pa((()=>({[Ew(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ew(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&t.default(n);return e.custom?r:La("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Sw(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ew=(e,t,n)=>null!=e?e:null!=t?t:n;function Tw(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Mw=sr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ri(vw),i=Pa((()=>e.route||r.value)),a=ri(pw,0),s=Pa((()=>{let e=Ot(a);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),o=Pa((()=>i.value.matched[s.value]));ni(pw,Pa((()=>s.value+1))),ni(dw,o),ni(vw,i);const c=At();return Vn((()=>[c.value,o.value,e.name]),(([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&ax(t,i)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=i.value,a=e.name,s=o.value,l=s&&s.components[a];if(!l)return Tw(n.default,{Component:l,route:r});const u=s.props[a],h=u?!0===u?r.params:"function"==typeof u?u(r):u:null,f=La(l,Kb({},h,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[a]=null)},ref:c}));return Tw(n.default,{Component:f,route:r})||f}}});function Aw(e){const t=Bx(e.routes,e),n=e.parseQuery||uw,r=e.stringifyQuery||hw,i=e.history,a=yw(),s=yw(),o=yw(),c=Ct(Ex);let l=Ex;Zb&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Jb.bind(null,(e=>""+e)),h=Jb.bind(null,cw),f=Jb.bind(null,lw);function d(e,a){if(a=Kb({},a||c.value),"string"==typeof e){const r=rx(n,e,a.path),s=t.resolve({path:r.path},a),o=i.createHref(r.fullPath);return Kb(r,s,{params:f(s.params),hash:lw(r.hash),redirectedFrom:void 0,href:o})}let s;if("path"in e)s=Kb({},e,{path:rx(n,e.path,a.path).path});else{const t=Kb({},e.params);for(const e in t)null==t[e]&&delete t[e];s=Kb({},e,{params:h(t)}),a.params=h(a.params)}const o=t.resolve(s,a),l=e.hash||"";o.params=u(f(o.params));const d=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(r,Kb({},e,{hash:(p=l,sw(p).replace(nw,"{").replace(iw,"}").replace(ew,"^")),path:o.path}));var p;const m=i.createHref(d);return Kb({fullPath:d,hash:l,query:r===hw?fw(e.query):e.query||{}},o,{redirectedFrom:void 0,href:m})}function p(e){return"string"==typeof e?rx(n,e,c.value.path):Kb({},e)}function m(e,t){if(l!==e)return Cx(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"==typeof n?n(e):n;return"string"==typeof r&&(r=r.includes("?")||r.includes("#")?r=p(r):{path:r},r.params={}),Kb({query:e.query,hash:e.hash,params:"path"in r?{}:e.params},r)}}function y(e,t){const n=l=d(e),i=c.value,a=e.state,s=e.force,o=!0===e.replace,u=v(n);if(u)return y(Kb(p(u),{state:"object"==typeof u?Kb({},a,u.state):a,force:s,replace:o}),t||n);const h=n;let f;return h.redirectedFrom=t,!s&&function(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&ax(t.matched[r],n.matched[i])&&sx(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(r,i,n)&&(f=Cx(16,{to:h,from:i}),O(i,i,!0,!1)),(f?Promise.resolve(f):x(h,i)).catch((e=>kx(e)?kx(e,2)?e:R(e):k(e,h,i))).then((e=>{if(e){if(kx(e,2))return y(Kb({replace:o},p(e.to),{state:"object"==typeof e.to?Kb({},a,e.to.state):a,force:s}),t||h)}else e=S(h,i,!0,o,a);return w(h,i,e),e}))}function _(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function b(e){const t=L.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function x(e,t){let n;const[r,i,o]=function(e,t){const n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;sax(e,a)))?r.push(a):n.push(a));const o=e.matched[s];o&&(t.matched.find((e=>ax(e,o)))||i.push(o))}return[n,r,i]}(e,t);n=bw(r.reverse(),"beforeRouteLeave",e,t);for(const a of r)a.leaveGuards.forEach((r=>{n.push(_w(r,e,t))}));const c=_.bind(null,e,t);return n.push(c),N(n).then((()=>{n=[];for(const r of a.list())n.push(_w(r,e,t));return n.push(c),N(n)})).then((()=>{n=bw(i,"beforeRouteUpdate",e,t);for(const r of i)r.updateGuards.forEach((r=>{n.push(_w(r,e,t))}));return n.push(c),N(n)})).then((()=>{n=[];for(const r of o)if(r.beforeEnter)if(ex(r.beforeEnter))for(const i of r.beforeEnter)n.push(_w(i,e,t));else n.push(_w(r.beforeEnter,e,t));return n.push(c),N(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=bw(o,"beforeRouteEnter",e,t),n.push(c),N(n)))).then((()=>{n=[];for(const r of s.list())n.push(_w(r,e,t));return n.push(c),N(n)})).catch((e=>kx(e,8)?e:Promise.reject(e)))}function w(e,t,n){o.list().forEach((r=>b((()=>r(e,t,n)))))}function S(e,t,n,r,a){const s=m(e,t);if(s)return s;const o=t===Ex,l=Zb?history.state:{};n&&(r||o?i.replace(e.fullPath,Kb({scroll:o&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,O(e,t,n,o),R()}let E;function T(){E||(E=i.listen(((e,t,n)=>{if(!D.listening)return;const r=d(e),a=v(r);if(a)return void y(Kb(a,{replace:!0}),r).catch(Qb);l=r;const s=c.value;var o,u;Zb&&(o=vx(s.fullPath,n.delta),u=mx(),yx.set(o,u)),x(r,s).catch((e=>kx(e,12)?e:kx(e,2)?(y(e.to,r).then((e=>{kx(e,20)&&!n.delta&&n.type===lx.pop&&i.go(-1,!1)})).catch(Qb),Promise.reject()):(n.delta&&i.go(-n.delta,!1),k(e,r,s)))).then((e=>{(e=e||S(r,s,!1))&&(n.delta&&!kx(e,8)?i.go(-n.delta,!1):n.type===lx.pop&&kx(e,20)&&i.go(-1,!1)),w(r,s,e)})).catch(Qb)})))}let M,A=yw(),C=yw();function k(e,t,n){R(e);const r=C.list();return r.length&&r.forEach((r=>r(e,t,n))),Promise.reject(e)}function R(e){return M||(M=!e,T(),A.list().forEach((([t,n])=>e?n(e):t())),A.reset()),e}function O(t,n,r,i){const{scrollBehavior:a}=e;if(!Zb||!a)return Promise.resolve();const s=!r&&function(e){const t=yx.get(e);return yx.delete(e),t}(vx(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return Qt().then((()=>a(t,n,s))).then((e=>e&&gx(e))).catch((e=>k(e,t,n)))}const I=e=>i.go(e);let P;const L=new Set,D={currentRoute:c,listening:!0,addRoute:function(e,n){let r,i;return Sx(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:d,options:e,push:g,replace:function(e){return g(Kb(p(e),{replace:!0}))},go:I,back:()=>I(-1),forward:()=>I(1),beforeEach:a.add,beforeResolve:s.add,afterEach:o.add,onError:C.add,isReady:function(){return M&&c.value!==Ex?Promise.resolve():new Promise(((e,t)=>{A.add([e,t])}))},install(e){e.component("RouterLink",ww),e.component("RouterView",Mw),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Ot(c)}),Zb&&!P&&c.value===Ex&&(P=!0,g(i.location).catch((e=>{})));const t={};for(const r in Ex)Object.defineProperty(t,r,{get:()=>c.value[r],enumerable:!0});e.provide(mw,this),e.provide(gw,dt(t)),e.provide(vw,c);const n=e.unmount;L.add(e),e.unmount=function(){L.delete(e),L.size<1&&(l=Ex,E&&E(),E=null,c.value=Ex,P=!1,M=!1),n()}}};function N(e){return e.reduce(((e,t)=>e.then((()=>b(t)))),Promise.resolve())}return D}function Cw(){return ri(mw)}function kw(){return ri(gw)}var Rw={exports:{}};!function(e,t){function n(){var e=document.querySelector("[data-toggle-theme]"),t=e?e.getAttribute("data-key"):null;!function(n=localStorage.getItem(t||"theme")){localStorage.getItem(t||"theme")&&(document.documentElement.setAttribute("data-theme",n),e&&[...document.querySelectorAll("[data-toggle-theme]")].forEach((t=>{t.classList.add(e.getAttribute("data-act-class"))})))}(),e&&[...document.querySelectorAll("[data-toggle-theme]")].forEach((e=>{e.addEventListener("click",(function(){var n=e.getAttribute("data-toggle-theme");if(n){var r=n.split(",");document.documentElement.getAttribute("data-theme")==r[0]?1==r.length?(document.documentElement.removeAttribute("data-theme"),localStorage.removeItem(t||"theme")):(document.documentElement.setAttribute("data-theme",r[1]),localStorage.setItem(t||"theme",r[1])):(document.documentElement.setAttribute("data-theme",r[0]),localStorage.setItem(t||"theme",r[0]))}[...document.querySelectorAll("[data-toggle-theme]")].forEach((e=>{e.classList.toggle(this.getAttribute("data-act-class"))}))}))}))}function r(){var e=document.querySelector("[data-set-theme='']"),t=e?e.getAttribute("data-key"):null;!function(e=localStorage.getItem(t||"theme")){var n;null!=e&&""!=e&&(localStorage.getItem(t||"theme")&&""!=localStorage.getItem(t||"theme")?(document.documentElement.setAttribute("data-theme",e),(n=document.querySelector("[data-set-theme='"+e.toString()+"']"))&&([...document.querySelectorAll("[data-set-theme]")].forEach((e=>{e.classList.remove(e.getAttribute("data-act-class"))})),n.getAttribute("data-act-class")&&n.classList.add(n.getAttribute("data-act-class")))):(n=document.querySelector("[data-set-theme='']")).getAttribute("data-act-class")&&n.classList.add(n.getAttribute("data-act-class")))}(),[...document.querySelectorAll("[data-set-theme]")].forEach((e=>{e.addEventListener("click",(function(){document.documentElement.setAttribute("data-theme",this.getAttribute("data-set-theme")),localStorage.setItem(t||"theme",document.documentElement.getAttribute("data-theme")),[...document.querySelectorAll("[data-set-theme]")].forEach((e=>{e.classList.remove(e.getAttribute("data-act-class"))})),e.getAttribute("data-act-class")&&e.classList.add(e.getAttribute("data-act-class"))}))}))}function i(){var e=document.querySelector("select[data-choose-theme]"),t=e?e.getAttribute("data-key"):null;!function(e=localStorage.getItem(t||"theme")){localStorage.getItem(t||"theme")&&(document.documentElement.setAttribute("data-theme",e),document.querySelector("select[data-choose-theme] [value='"+e.toString()+"']")&&[...document.querySelectorAll("select[data-choose-theme] [value='"+e.toString()+"']")].forEach((e=>{e.selected=!0})))}(),e&&[...document.querySelectorAll("select[data-choose-theme]")].forEach((e=>{e.addEventListener("change",(function(){document.documentElement.setAttribute("data-theme",this.value),localStorage.setItem(t||"theme",document.documentElement.getAttribute("data-theme")),[...document.querySelectorAll("select[data-choose-theme] [value='"+localStorage.getItem(t||"theme")+"']")].forEach((e=>{e.selected=!0}))}))}))}Rw.exports={themeChange:function(e=!0){!0===e?document.addEventListener("DOMContentLoaded",(function(e){n(),i(),r()})):(n(),i(),r())}}}();var Ow=Rw.exports; +/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */const{entries:Iw,setPrototypeOf:Pw,isFrozen:Lw,getPrototypeOf:Dw,getOwnPropertyDescriptor:Nw}=Object;let{freeze:Fw,seal:Uw,create:Bw}=Object,{apply:zw,construct:Vw}="undefined"!=typeof Reflect&&Reflect;Fw||(Fw=function(e){return e}),Uw||(Uw=function(e){return e}),zw||(zw=function(e,t,n){return e.apply(t,n)}),Vw||(Vw=function(e,t){return new e(...t)});const Hw=eS(Array.prototype.forEach),jw=eS(Array.prototype.pop),Ww=eS(Array.prototype.push),Gw=eS(String.prototype.toLowerCase),Xw=eS(String.prototype.toString),qw=eS(String.prototype.match),$w=eS(String.prototype.replace),Yw=eS(String.prototype.indexOf),Zw=eS(String.prototype.trim),Kw=eS(RegExp.prototype.test),Jw=(Qw=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:Gw;Pw&&Pw(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(Lw(t)||(t[r]=e),i=e)}e[i]=!0}return e}function nS(e){for(let t=0;t/gm),yS=Uw(/\${[\w\W]*}/gm),_S=Uw(/^data-[\-\w.\u00B7-\uFFFF]/),bS=Uw(/^aria-[\-\w]+$/),xS=Uw(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wS=Uw(/^(?:\w+script|data):/i),SS=Uw(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ES=Uw(/^html$/i);var TS=Object.freeze({__proto__:null,MUSTACHE_EXPR:gS,ERB_EXPR:vS,TMPLIT_EXPR:yS,DATA_ATTR:_S,ARIA_ATTR:bS,IS_ALLOWED_URI:xS,IS_SCRIPT_OR_DATA:wS,ATTR_WHITESPACE:SS,DOCTYPE_NAME:ES});var MS=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.0.8",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;let{document:r}=t;const i=r,a=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:c,Element:l,NodeFilter:u,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:d,trustedTypes:p}=t,m=l.prototype,g=iS(m,"cloneNode"),v=iS(m,"nextSibling"),y=iS(m,"childNodes"),_=iS(m,"parentNode");if("function"==typeof o){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let b,x="";const{implementation:w,createNodeIterator:S,createDocumentFragment:E,getElementsByTagName:T}=r,{importNode:M}=i;let A={};n.isSupported="function"==typeof Iw&&"function"==typeof _&&w&&void 0!==w.createHTMLDocument;const{MUSTACHE_EXPR:C,ERB_EXPR:k,TMPLIT_EXPR:R,DATA_ATTR:O,ARIA_ATTR:I,IS_SCRIPT_OR_DATA:P,ATTR_WHITESPACE:L}=TS;let{IS_ALLOWED_URI:D}=TS,N=null;const F=tS({},[...aS,...sS,...oS,...lS,...hS]);let U=null;const B=tS({},[...fS,...dS,...pS,...mS]);let z=Object.seal(Bw(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,H=null,j=!0,W=!0,G=!1,X=!0,q=!1,$=!1,Y=!1,Z=!1,K=!1,J=!1,Q=!1,ee=!0,te=!1,ne=!0,re=!1,ie={},ae=null;const se=tS({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let oe=null;const ce=tS({},["audio","video","img","source","image","track"]);let le=null;const ue=tS({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",de="http://www.w3.org/1999/xhtml";let pe=de,me=!1,ge=null;const ve=tS({},[he,fe,de],Xw);let ye=null;const _e=["application/xhtml+xml","text/html"];let be=null,xe=null;const we=r.createElement("form"),Se=function(e){return e instanceof RegExp||e instanceof Function},Ee=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!xe||xe!==e){if(e&&"object"==typeof e||(e={}),e=rS(e),ye=-1===_e.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===ye?Xw:Gw,N="ALLOWED_TAGS"in e?tS({},e.ALLOWED_TAGS,be):F,U="ALLOWED_ATTR"in e?tS({},e.ALLOWED_ATTR,be):B,ge="ALLOWED_NAMESPACES"in e?tS({},e.ALLOWED_NAMESPACES,Xw):ve,le="ADD_URI_SAFE_ATTR"in e?tS(rS(ue),e.ADD_URI_SAFE_ATTR,be):ue,oe="ADD_DATA_URI_TAGS"in e?tS(rS(ce),e.ADD_DATA_URI_TAGS,be):ce,ae="FORBID_CONTENTS"in e?tS({},e.FORBID_CONTENTS,be):se,V="FORBID_TAGS"in e?tS({},e.FORBID_TAGS,be):{},H="FORBID_ATTR"in e?tS({},e.FORBID_ATTR,be):{},ie="USE_PROFILES"in e&&e.USE_PROFILES,j=!1!==e.ALLOW_ARIA_ATTR,W=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,X=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,q=e.SAFE_FOR_TEMPLATES||!1,$=e.WHOLE_DOCUMENT||!1,K=e.RETURN_DOM||!1,J=e.RETURN_DOM_FRAGMENT||!1,Q=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,ee=!1!==e.SANITIZE_DOM,te=e.SANITIZE_NAMED_PROPS||!1,ne=!1!==e.KEEP_CONTENT,re=e.IN_PLACE||!1,D=e.ALLOWED_URI_REGEXP||xS,pe=e.NAMESPACE||de,z=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Se(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Se(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(z.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),q&&(W=!1),J&&(K=!0),ie&&(N=tS({},hS),U=[],!0===ie.html&&(tS(N,aS),tS(U,fS)),!0===ie.svg&&(tS(N,sS),tS(U,dS),tS(U,mS)),!0===ie.svgFilters&&(tS(N,oS),tS(U,dS),tS(U,mS)),!0===ie.mathMl&&(tS(N,lS),tS(U,pS),tS(U,mS))),e.ADD_TAGS&&(N===F&&(N=rS(N)),tS(N,e.ADD_TAGS,be)),e.ADD_ATTR&&(U===B&&(U=rS(U)),tS(U,e.ADD_ATTR,be)),e.ADD_URI_SAFE_ATTR&&tS(le,e.ADD_URI_SAFE_ATTR,be),e.FORBID_CONTENTS&&(ae===se&&(ae=rS(ae)),tS(ae,e.FORBID_CONTENTS,be)),ne&&(N["#text"]=!0),$&&tS(N,["html","head","body"]),N.table&&(tS(N,["tbody"]),delete V.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Jw('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Jw('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=e.TRUSTED_TYPES_POLICY,x=b.createHTML("")}else void 0===b&&(b=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(a){return null}}(p,a)),null!==b&&"string"==typeof x&&(x=b.createHTML(""));Fw&&Fw(e),xe=e}},Te=tS({},["mi","mo","mn","ms","mtext"]),Me=tS({},["foreignobject","desc","title","annotation-xml"]),Ae=tS({},["title","style","font","a","script"]),Ce=tS({},[...sS,...oS,...cS]),ke=tS({},[...lS,...uS]),Re=function(e){Ww(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},Oe=function(e,t){try{Ww(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Ww(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!U[e])if(K||J)try{Re(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Ie=function(e){let t=null,n=null;if(Z)e=""+e;else{const t=qw(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ye&&pe===de&&(e=''+e+"");const i=b?b.createHTML(e):e;if(pe===de)try{t=(new d).parseFromString(i,ye)}catch(s){}if(!t||!t.documentElement){t=w.createDocument(pe,"template",null);try{t.documentElement.innerHTML=me?x:i}catch(s){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),pe===de?T.call(t,$?"html":"body")[0]:$?t.documentElement:a},Pe=function(e){return S.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},Le=function(e){return"function"==typeof c&&e instanceof c},De=function(e,t,r){A[e]&&Hw(A[e],(e=>{e.call(n,t,r,xe)}))},Ne=function(e){let t=null;if(De("beforeSanitizeElements",e,null),(r=e)instanceof f&&("string"!=typeof r.nodeName||"string"!=typeof r.textContent||"function"!=typeof r.removeChild||!(r.attributes instanceof h)||"function"!=typeof r.removeAttribute||"function"!=typeof r.setAttribute||"string"!=typeof r.namespaceURI||"function"!=typeof r.insertBefore||"function"!=typeof r.hasChildNodes))return Re(e),!0;var r;const i=be(e.nodeName);if(De("uponSanitizeElement",e,{tagName:i,allowedTags:N}),e.hasChildNodes()&&!Le(e.firstElementChild)&&Kw(/<[/\w]/g,e.innerHTML)&&Kw(/<[/\w]/g,e.textContent))return Re(e),!0;if(!N[i]||V[i]){if(!V[i]&&Ue(i)){if(z.tagNameCheck instanceof RegExp&&Kw(z.tagNameCheck,i))return!1;if(z.tagNameCheck instanceof Function&&z.tagNameCheck(i))return!1}if(ne&&!ae[i]){const t=_(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r)t.insertBefore(g(n[r],!0),v(e))}}return Re(e),!0}return e instanceof l&&!function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});const n=Gw(e.tagName),r=Gw(t.tagName);return!!ge[e.namespaceURI]&&(e.namespaceURI===fe?t.namespaceURI===de?"svg"===n:t.namespaceURI===he?"svg"===n&&("annotation-xml"===r||Te[r]):Boolean(Ce[n]):e.namespaceURI===he?t.namespaceURI===de?"math"===n:t.namespaceURI===fe?"math"===n&&Me[r]:Boolean(ke[n]):e.namespaceURI===de?!(t.namespaceURI===fe&&!Me[r])&&!(t.namespaceURI===he&&!Te[r])&&!ke[n]&&(Ae[n]||!Ce[n]):!("application/xhtml+xml"!==ye||!ge[e.namespaceURI]))}(e)?(Re(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!Kw(/<\/no(script|embed|frames)/i,e.innerHTML)?(q&&3===e.nodeType&&(t=e.textContent,Hw([C,k,R],(e=>{t=$w(t,e," ")})),e.textContent!==t&&(Ww(n.removed,{element:e.cloneNode()}),e.textContent=t)),De("afterSanitizeElements",e,null),!1):(Re(e),!0)},Fe=function(e,t,n){if(ee&&("id"===t||"name"===t)&&(n in r||n in we))return!1;if(W&&!H[t]&&Kw(O,t));else if(j&&Kw(I,t));else if(!U[t]||H[t]){if(!(Ue(e)&&(z.tagNameCheck instanceof RegExp&&Kw(z.tagNameCheck,e)||z.tagNameCheck instanceof Function&&z.tagNameCheck(e))&&(z.attributeNameCheck instanceof RegExp&&Kw(z.attributeNameCheck,t)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(t))||"is"===t&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Kw(z.tagNameCheck,n)||z.tagNameCheck instanceof Function&&z.tagNameCheck(n))))return!1}else if(le[t]);else if(Kw(D,$w(n,L,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Yw(n,"data:")||!oe[e]){if(G&&!Kw(P,$w(n,L,"")));else if(n)return!1}else;return!0},Ue=function(e){return e.indexOf("-")>0},Be=function(e){De("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U};let i=t.length;for(;i--;){const s=t[i],{name:o,namespaceURI:c,value:l}=s,u=be(o);let h="value"===o?l:Zw(l);if(r.attrName=u,r.attrValue=h,r.keepAttr=!0,r.forceKeepAttr=void 0,De("uponSanitizeAttribute",e,r),h=r.attrValue,r.forceKeepAttr)continue;if(Oe(o,e),!r.keepAttr)continue;if(!X&&Kw(/\/>/i,h)){Oe(o,e);continue}q&&Hw([C,k,R],(e=>{h=$w(h,e," ")}));const f=be(e.nodeName);if(Fe(f,u,h)){if(!te||"id"!==u&&"name"!==u||(Oe(o,e),h="user-content-"+h),b&&"object"==typeof p&&"function"==typeof p.getAttributeType)if(c);else switch(p.getAttributeType(f,u)){case"TrustedHTML":h=b.createHTML(h);break;case"TrustedScriptURL":h=b.createScriptURL(h)}try{c?e.setAttributeNS(c,o,h):e.setAttribute(o,h),jw(n.removed)}catch(a){}}}De("afterSanitizeAttributes",e,null)},ze=function e(t){let n=null;const r=Pe(t);for(De("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)De("uponSanitizeShadowNode",n,null),Ne(n)||(n.content instanceof s&&e(n.content),Be(n));De("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,o=null,l=null;if(me=!e,me&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Le(e)){if("function"!=typeof e.toString)throw Jw("toString is not a function");if("string"!=typeof(e=e.toString()))throw Jw("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Y||Ee(t),n.removed=[],"string"==typeof e&&(re=!1),re){if(e.nodeName){const t=be(e.nodeName);if(!N[t]||V[t])throw Jw("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)r=Ie("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!K&&!q&&!$&&-1===e.indexOf("<"))return b&&Q?b.createHTML(e):e;if(r=Ie(e),!r)return K?null:Q?x:""}r&&Z&&Re(r.firstChild);const u=Pe(re?e:r);for(;o=u.nextNode();)Ne(o)||(o.content instanceof s&&ze(o.content),Be(o));if(re)return e;if(K){if(J)for(l=E.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(U.shadowroot||U.shadowrootmode)&&(l=M.call(i,l,!0)),l}let h=$?r.outerHTML:r.innerHTML;return $&&N["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Kw(ES,r.ownerDocument.doctype.name)&&(h="\n"+h),q&&Hw([C,k,R],(e=>{h=$w(h,e," ")})),b&&Q?b.createHTML(h):h},n.setConfig=function(){Ee(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Y=!0},n.clearConfig=function(){xe=null,Y=!1},n.isValidAttribute=function(e,t,n){xe||Ee({});const r=be(e),i=be(t);return Fe(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(A[e]=A[e]||[],Ww(A[e],t))},n.removeHook=function(e){if(A[e])return jw(A[e])},n.removeHooks=function(e){A[e]&&(A[e]=[])},n.removeAllHooks=function(){A={}},n}();function AS(){return MS()}const CS={install(e,t={},n=AS){e.directive("dompurify-html",function(e={},t=AS){const n=t();!function(e,t){const n=e.hooks??{};let r;for(r in n){const e=n[r];void 0!==e&&t.addHook(r,e)}}(e,n);const r=function(t,r){const i=r.value;if(r.oldValue===i)return;const a=`${i}`,s=r.arg,o=e.namedConfigurations,c=e.default??{};t.innerHTML=o&&void 0!==s?n.sanitize(a,o[s]??c):n.sanitize(a,c)};return{mounted:r,updated:r}}(t,n))}};function kS(e){return!!ae()&&(se(e),!0)}function RS(e){return"function"==typeof e?e():Ot(e)}const OS="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const IS=Object.prototype.toString,PS=e=>"[object Object]"===IS.call(e),LS=()=>{},DS=NS();function NS(){var e;return OS&&(null==(e=null==window?void 0:window.navigator)?void 0:e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function FS(e,t){return function(...n){return new Promise(((r,i)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(r).catch(i)}))}}const US=e=>e();function BS(e,t=200,n={}){return FS(function(e,t={}){let n,r,i=LS;const a=e=>{clearTimeout(e),i(),i=LS};return s=>{const o=RS(e),c=RS(t.maxWait);return n&&a(n),o<=0||void 0!==c&&c<=0?(r&&(a(r),r=null),Promise.resolve(s())):new Promise(((e,l)=>{i=t.rejectOnCancel?l:e,c&&!r&&(r=setTimeout((()=>{n&&a(n),r=null,e(s())}),c)),n=setTimeout((()=>{r&&a(r),r=null,e(s())}),o)}))}}(t,n),e)}function zS(e,t=200,n=!1,r=!0,i=!1){return FS(function(e,t=!0,n=!0,r=!1){let i,a,s=0,o=!0,c=LS;const l=()=>{i&&(clearTimeout(i),i=void 0,c(),c=LS)};return u=>{const h=RS(e),f=Date.now()-s,d=()=>a=u();return l(),h<=0?(s=Date.now(),d()):(f>h&&(n||!o)?(s=Date.now(),d()):t&&(a=new Promise(((e,t)=>{c=r?t:e,i=setTimeout((()=>{s=Date.now(),o=!0,e(d()),l()}),Math.max(0,h-f))}))),n||i||(i=setTimeout((()=>o=!0),h)),o=!1,a)}}(t,n,r,i),e)}function VS(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:a,pause:s,resume:o,isActive:c}=function(e=US){const t=At(!0);return{isActive:pt(t),pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}(r),l=function(e,t,n={}){const{eventFilter:r=US,...i}=n;return Vn(e,FS(r,t),i)}(e,t,{...i,eventFilter:a});return{stop:l,pause:s,resume:o,isActive:c}}function HS(e,t=!0){va()?xr(e):t?e():Qt(e)}function jS(e,t,n){return Vn(e,((e,n,r)=>{e&&t(e,n,r)}),n)}function WS(e){var t;const n=RS(e);return null!=(t=null==n?void 0:n.$el)?t:n}const GS=OS?window:void 0;function XS(...e){let t,n,r,i;if("string"==typeof e[0]||Array.isArray(e[0])?([n,r,i]=e,t=GS):[t,n,r,i]=e,!t)return LS;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const a=[],s=()=>{a.forEach((e=>e())),a.length=0},o=Vn((()=>[WS(t),RS(i)]),(([e,t])=>{if(s(),!e)return;const i=PS(t)?{...t}:t;a.push(...n.flatMap((t=>r.map((n=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(e,t,n,i))))))}),{immediate:!0,flush:"post"}),c=()=>{o(),s()};return kS(c),c}let qS=!1;function $S(e){const t=function(){const e=At(!1);return va()&&xr((()=>{e.value=!0})),e}();return Pa((()=>(t.value,Boolean(e()))))}const YS="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ZS="__vueuse_ssr_handlers__",KS=JS();function JS(){return ZS in YS||(YS[ZS]=YS[ZS]||{}),YS[ZS]}const QS={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},eE="vueuse-storage";function tE(e,t,n,r={}){var i;const{flush:a="pre",deep:s=!0,listenToStorageChanges:o=!0,writeDefaults:c=!0,mergeDefaults:l=!1,shallow:u,window:h=GS,eventFilter:f,onError:d=(e=>{}),initOnMounted:p}=r,m=(u?Ct:At)("function"==typeof t?t():t);if(!n)try{n=function(e,t){return KS[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=GS)?void 0:e.localStorage}))()}catch(S){d(S)}if(!n)return m;const g=RS(t),v=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}(g),y=null!=(i=r.serializer)?i:QS[v],{pause:_,resume:b}=VS(m,(()=>function(t){try{if(null==t)n.removeItem(e);else{const r=y.write(t),i=n.getItem(e);i!==r&&(n.setItem(e,r),h&&h.dispatchEvent(new CustomEvent(eE,{detail:{key:e,oldValue:i,newValue:r,storageArea:n}})))}}catch(S){d(S)}}(m.value)),{flush:a,deep:s,eventFilter:f});return h&&o&&HS((()=>{XS(h,"storage",w),XS(h,eE,x),p&&w()})),p||w(),m;function x(e){w(e.detail)}function w(t){if(!t||t.storageArea===n)if(t&&null==t.key)m.value=g;else if(!t||t.key===e){_();try{(null==t?void 0:t.newValue)!==y.write(m.value)&&(m.value=function(t){const r=t?t.newValue:n.getItem(e);if(null==r)return c&&null!==g&&n.setItem(e,y.write(g)),g;if(!t&&l){const e=y.read(r);return"function"==typeof l?l(e,g):"object"!==v||Array.isArray(e)?e:{...g,...e}}return"string"!=typeof r?r:y.read(r)}(t))}catch(S){d(S)}finally{t?Qt(b):b()}}}}function nE(e,t={width:0,height:0},n={}){const{window:r=GS,box:i="content-box"}=n,a=Pa((()=>{var t,n;return null==(n=null==(t=WS(e))?void 0:t.namespaceURI)?void 0:n.includes("svg")})),s=At(t.width),o=At(t.height),{stop:c}=function(e,t,n={}){const{window:r=GS,...i}=n;let a;const s=$S((()=>r&&"ResizeObserver"in r)),o=()=>{a&&(a.disconnect(),a=void 0)},c=Vn(Pa((()=>Array.isArray(e)?e.map((e=>WS(e))):[WS(e)])),(e=>{if(o(),s.value&&r){a=new ResizeObserver(t);for(const t of e)t&&a.observe(t,i)}}),{immediate:!0,flush:"post",deep:!0}),l=()=>{o(),c()};return kS(l),{isSupported:s,stop:l}}(e,(([t])=>{const n="border-box"===i?t.borderBoxSize:"content-box"===i?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){const t=WS(e);if(t){const e=r.getComputedStyle(t);s.value=Number.parseFloat(e.width),o.value=Number.parseFloat(e.height)}}else if(n){const e=Array.isArray(n)?n:[n];s.value=e.reduce(((e,{inlineSize:t})=>e+t),0),o.value=e.reduce(((e,{blockSize:t})=>e+t),0)}else s.value=t.contentRect.width,o.value=t.contentRect.height}),n);HS((()=>{const n=WS(e);n&&(s.value="offsetWidth"in n?n.offsetWidth:t.width,o.value="offsetHeight"in n?n.offsetHeight:t.height)}));const l=Vn((()=>WS(e)),(e=>{s.value=e?t.width:0,o.value=e?t.height:0}));return{width:s,height:o,stop:function(){c(),l()}}}function rE(e,t={}){const{throttle:n=0,idle:r=200,onStop:i=LS,onScroll:a=LS,offset:s={left:0,right:0,top:0,bottom:0},eventListenerOptions:o={capture:!1,passive:!0},behavior:c="auto",window:l=GS}=t,u=At(0),h=At(0),f=Pa({get:()=>u.value,set(e){p(e,void 0)}}),d=Pa({get:()=>h.value,set(e){p(void 0,e)}});function p(t,n){var r,i,a;if(!l)return;const s=RS(e);s&&(null==(a=s instanceof Document?l.document.body:s)||a.scrollTo({top:null!=(r=RS(n))?r:d.value,left:null!=(i=RS(t))?i:f.value,behavior:RS(c)}))}const m=At(!1),g=ft({left:!0,right:!1,top:!0,bottom:!1}),v=ft({left:!1,right:!1,top:!1,bottom:!1}),y=e=>{m.value&&(m.value=!1,v.left=!1,v.right=!1,v.top=!1,v.bottom=!1,i(e))},_=BS(y,n+r),b=e=>{var t;if(!l)return;const n=e.document?e.document.documentElement:null!=(t=e.documentElement)?t:e,{display:r,flexDirection:i}=getComputedStyle(n),a=n.scrollLeft;v.left=au.value;const o=Math.abs(a)<=0+(s.left||0),c=Math.abs(a)+n.clientWidth>=n.scrollWidth-(s.right||0)-1;"flex"===r&&"row-reverse"===i?(g.left=c,g.right=o):(g.left=o,g.right=c),u.value=a;let f=n.scrollTop;e!==l.document||f||(f=l.document.body.scrollTop),v.top=fh.value;const d=Math.abs(f)<=0+(s.top||0),p=Math.abs(f)+n.clientHeight>=n.scrollHeight-(s.bottom||0)-1;"flex"===r&&"column-reverse"===i?(g.top=p,g.bottom=d):(g.top=d,g.bottom=p),h.value=f},x=e=>{var t;if(!l)return;const n=null!=(t=e.target.documentElement)?t:e.target;b(n),m.value=!0,_(e),a(e)};return XS(e,"scroll",n?zS(x,n,!0,!1):x,o),HS((()=>{const t=RS(e);t&&b(t)})),XS(e,"scrollend",y,o),{x:f,y:d,isScrolling:m,arrivedState:g,directions:v,measure(){const t=RS(e);l&&t&&b(t)}}}function iE(e,t,n={}){const{window:r=GS}=n;return tE(e,t,null==r?void 0:r.localStorage,n)} +/**! + * Sparticles - Lightweight, High Performance Particles in Canvas + * @version 1.3.1 + * @license MPL-2.0 + * @author simeydotme + * @website http://sparticlesjs.dev + * @repository https://github.com/simeydotme/sparticles.git + */function aE(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 sE(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;this.fps=t,this.handler=e;var n=0;this.start=function(){var e=this;if(!this.started){var t=performance.now(),r=1e3/this.fps;n=requestAnimationFrame((function i(a){var s=a-t;n=requestAnimationFrame(i),s>=r-0&&(e.handler(s),t=a-s%r)})),this.started=!0}},this.stop=function(){cancelAnimationFrame(n),this.started=!1}},lE=function(e){return[Math.cos(hE(e-90)),Math.sin(hE(e-90))]},uE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.max(t,Math.min(n,e))},hE=function(e){return e*Math.PI/180},fE=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Math.random();return t<=e?n=e:(0!==e||1!==t)&&t>e&&(n=n*(t-e)+e),n},dE=function(e){return e[Math.floor(fE(0,e.length))]},pE=function(){var e=gE(fE(0,360)),t=gE(fE(90,100)),n=gE(fE(45,85));return"hsl(".concat(e,",").concat(t,"%,").concat(n,"%)")},mE=function(e){return e>fE()},gE=function(e){return.5+e|0},vE=function(e){return e&&(this.canvas=e.canvas,this.settings=e.settings,this.colors=e.colors,this.shapes=e.shapes,this.images=e.images,this.styles=e.styles,this.ctx=e.canvas.getContext("2d"),this.setup(),this.init()),this};vE.prototype.setup=function(){var e=this.settings;this.frame=0,this.frameoffset=gE(fE(0,360)),this.size=gE(fE(e.minSize,e.maxSize)),this.da=this.getAlphaDelta(),this.dx=this.getDeltaX(),this.dy=this.getDeltaY(),this.dd=this.getDriftDelta(),this.dr=this.getRotationDelta(),this.color=this.getColor(),this.shape=this.getShape(),this.image=this.getImage(),this.style=this.getStyle(),this.rotation=e.rotate?hE(fE(0,360)):0,this.vertical=e.direction>150&&e.direction<210||e.direction>330&&e.direction<390||e.direction>-30&&e.direction<30,this.horizontal=e.direction>60&&e.direction<120||e.direction>240&&e.direction<300},vE.prototype.init=function(){var e=this.settings,t=this.canvas;this.alpha=0,(e.speed>0||0===e.alphaSpeed)&&(this.alpha=fE(e.minAlpha,e.maxAlpha)),e.bounce?(this.px=gE(fE(2,t.width-this.size-2)),this.py=gE(fE(2,t.height-this.size-2))):(this.px=gE(fE(2*-this.size,t.width+this.size)),this.py=gE(fE(2*-this.size,t.height+this.size)))},vE.prototype.reset=function(){this.setup(),this.py<0?this.py=this.canvas.height+2*this.size:this.py>this.canvas.height&&(this.py=0-2*this.size),this.px<0?this.px=this.canvas.width+2*this.size:this.px>this.canvas.width&&(this.px=0-2*this.size)},vE.prototype.bounce=function(){this.settings.direction,(this.py<=0||this.py+this.size>=this.canvas.height)&&(this.dy=-this.dy,this.horizontal&&(this.dd=-this.dd)),(this.px<=0||this.px+this.size>=this.canvas.width)&&(this.dx=-this.dx,this.vertical&&(this.dd=-this.dd))},vE.prototype.isOffCanvas=function(){var e=0-2*this.size,t=this.canvas.height+2*this.size,n=this.canvas.width+2*this.size;return this.pxn||this.pyt},vE.prototype.isTouchingEdge=function(){var e=this.canvas.height-this.size,t=this.canvas.width-this.size;return this.px<0||this.px>t||this.py<0||this.py>e},vE.prototype.getColor=function(){return"random"===this.settings.color?dE(this.colors):Array.isArray(this.settings.color)?dE(this.settings.color):this.settings.color},vE.prototype.getShape=function(){return"random"===this.settings.shape?dE(this.shapes):Array.isArray(this.settings.shape)?dE(this.settings.shape):this.settings.shape},vE.prototype.getImage=function(){return Array.isArray(this.settings.imageUrl)?dE(this.settings.imageUrl):this.settings.imageUrl},vE.prototype.getStyle=function(){return dE(this.styles)},vE.prototype.getDelta=function(){var e=.1*this.settings.speed;return this.settings.speed&&this.settings.parallax?e+this.size*this.settings.parallax/50:e},vE.prototype.getDeltaVariance=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.settings.speed||10;return e>0?fE(-e,e)*t/100:0},vE.prototype.getDeltaX=function(){var e=this.getDelta(),t=this.getDeltaVariance(this.settings.xVariance);return lE(this.settings.direction)[0]*e+t},vE.prototype.getDeltaY=function(){var e=this.getDelta(),t=this.getDeltaVariance(this.settings.yVariance);return lE(this.settings.direction)[1]*e+t},vE.prototype.getAlphaDelta=function(){var e=this.settings.alphaVariance,t=fE(1,e+1);return mE(.5)&&(t=-t),t},vE.prototype.getDriftDelta=function(){return this.settings.drift?fE(this.settings.drift-this.settings.drift/2,this.settings.drift+this.settings.drift/2):0},vE.prototype.getRotationDelta=function(){var e=0;return this.settings.rotate&&this.settings.rotation&&(e=hE(fE(.5,1.5)*this.settings.rotation),mE(.5)&&(e=-e)),e},vE.prototype.update=function(){return this.frame+=1,this.updatePosition(),this.updateAlpha(),this},vE.prototype.updateAlpha=function(){return this.settings.alphaSpeed>0&&(this.settings.twinkle?this.alpha=this.updateTwinkle():this.alpha=this.updateFade()),this.alpha},vE.prototype.updateFade=function(){var e=this.da/1e3*this.settings.alphaSpeed*.5,t=this.alpha+e,n=this.da>0&&t>this.settings.maxAlpha,r=this.da<0&&tthis.settings.maxAlpha,r=e=1&&!(arguments[0]instanceof HTMLElement)&&(t=arguments[0],n=arguments[1],r=arguments[2],e=void 0),n&&!r&&(r=n);var i={alphaSpeed:10,alphaVariance:1,bounce:!1,color:"random",randomColor:pE,randomColorCount:3,composition:"source-over",count:50,direction:180,drift:1,glow:0,imageUrl:"",maxAlpha:1,maxSize:10,minAlpha:0,minSize:1,parallax:1,rotate:!0,rotation:1,shape:"circle",speed:10,style:"fill",twinkle:!1,xVariance:2,yVariance:2};return this.el=e||document.body,this.settings=sE(sE({},i),t),this.resizable=!n&&!r,this.width=this.resizable?this.el.clientWidth:n,this.height=this.resizable?this.el.clientHeight:r,this.init=function(){var e=this;return this.sparticles=[],this.colors=this.getColorArray(),this.shapes=this.getShapeArray(),this.styles=this.getStyleArray(),this.imageUrls=this.getImageArray(),this.setupMainCanvas(),this.setupOffscreenCanvasses((function(){e.createSparticles(),e.start()})),window.addEventListener("resize",this),this},this.handleEvent=function(e){var t=this;"resize"===e.type&&(clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((function(){t.resizable&&(t.width=t.el.clientWidth,t.height=t.el.clientHeight,t.setCanvasSize().resetSparticles())}),200))},this.start=function(){var e=this;return this.loop||(this.loop=new cE((function(t){e.drawFrame(t)}))),this.loop.start(),this},this.stop=function(){return this.loop.stop(),this},this.destroy=function(){for(var e in this.stop(),this.el.removeChild(this.canvas),window.removeEventListener("resize",this),this)this.hasOwnProperty(e)&&delete this[e];return this},this.setCanvasSize=function(e,t){return e&&(this.resizable=!1),this.width=e||this.width,this.height=t||this.height,this.canvas.width=this.width,this.canvas.height=this.height,this},this.resetSparticles=this.createSparticles=function(){this.sparticles=[],this.ctx.globalCompositeOperation=this.settings.composition;for(var e=0;e{this.traverse((e=>{e instanceof xE&&e.element instanceof Element&&null!==e.element.parentNode&&e.element.parentNode.removeChild(e.element)}))}))}copy(e,t){return sh.prototype.copy.call(this,e,t),this.element=e.element.cloneNode(!0),this}}class wE extends xE{constructor(e,t=1){super(e),this.spriteRatio=t,this.spriteMatrixWorld=(new Du).copy(this.matrixWorld)}}class SE extends ml{zOrder(e){const{cache:t}=this,n=[];e.traverse((e=>{const r=e;t.objects.has(r)&&n.push({object:r,data:t.objects.get(r)})}));const r=n.sort(((e,t)=>e.data.distanceToCameraSquared-t.data.distanceToCameraSquared)),i=r.length;r.forEach(((e,t)=>{const{object:n}=e;n.element.style.zIndex=""+(i-t)}))}constructor(){super(),this._width=0,this._height=0,this._widthHalf=0,this._heightHalf=0,this.matrix=new Du,this._spriteQuat=new iu,this._objectQuat=new iu,this.cache={camera:{fov:0,style:""},objects:new WeakMap},this.epsilon=e=>Math.abs(e)<1e-10?0:e,this.getDistanceToSquared=function(){const e=new au,t=new au;return function(n,r){return e.setFromMatrixPosition(n.matrixWorld),t.setFromMatrixPosition(r.matrixWorld),e.distanceToSquared(t)}}(),this.getCameraCSSMatrix=(e,t,n)=>{const{epsilon:r}=this,{elements:i}=e,a=`matrix3d(${r(i[0])},${r(-i[1])},${r(i[2])},${r(i[3])},${r(i[4])},${r(-i[5])},${r(i[6])},${r(i[7])},${r(i[8])},${r(-i[9])},${r(i[10])},${r(i[11])},${r(i[12])},${r(-i[13])},${r(i[14])},${r(i[15])})`;if(t instanceof Gf){const e=-(t.right+t.left)/2,i=(t.top+t.bottom)/2;return`scale(${n})translate(${r(e)}px,${r(i)}px)${a}`}return`translateZ(${n}px)${a}`},this.getObjectCSSMatrix=(e,t)=>{const{epsilon:n}=this,{elements:r}=e,i=`matrix3d(${n(r[0])},${n(r[1])},${n(r[2])},${n(r[3])},${n(-r[4])},${n(-r[5])},${n(-r[6])},${n(-r[7])},${n(r[8])},${n(r[9])},${n(r[10])},${n(r[11])},${n(r[12])},${n(r[13])},${n(r[14])},${n(r[15])})`;return this.isIE?`translate(-50%,-50%)translate(${this._widthHalf}px,${this._heightHalf}px)${t}${i}`:`translate(-50%,-50%)${i}`},this.renderObject=(e,t,n,r)=>{const{matrix:i,getObjectCSSMatrix:a,cache:s,cameraElement:o,renderObject:c,isIE:l,getDistanceToSquared:u}=this;if(e instanceof xE){let c;e.onBeforeRender(this,t,n),e instanceof wE?(i.copy(n.matrixWorldInverse),i.transpose(),this._spriteQuat.setFromRotationMatrix(i),this._objectQuat.setFromRotationMatrix(e.matrixWorld),this._objectQuat.slerp(this._spriteQuat,e.spriteRatio),i.makeRotationFromQuaternion(this._objectQuat),i.copyPosition(e.matrixWorld),i.scale(e.scale),i.elements[3]=0,i.elements[7]=0,i.elements[11]=0,i.elements[15]=1,e.spriteMatrixWorld.copy(i),c=a(i,r)):c=a(e.matrixWorld,r);const{element:h}=e,f=s.objects.get(e);if(void 0===f||f.style!==c){h.style.transform=c;const t={style:c};s.objects.set(e,t),l&&(t.distanceToCameraSquared=u(n,e))}h.style.display=e.visible?"":"none",h.parentNode!==o&&o.appendChild(h),e.onAfterRender(this,t,n)}for(let h=0,f=e.children.length;h0&&(n.object.isPerspectiveCamera?v.multiplyScalar(e):n.object.isOrthographicCamera&&(n.object.zoom=Cl.clamp(n.object.zoom/e,n.minZoom,n.maxZoom),h!==n.object.zoom&&n.object.updateProjectionMatrix())),n.staticMoving?x.copy(w):x.y+=(w.y-x.y)*this.dynamicDampingFactor)},this.panCamera=function(){const e=new kl,t=new au,r=new au;return function(){if(e.copy(E).sub(S),e.lengthSq()){if(n.object.isOrthographicCamera){const t=(n.object.right-n.object.left)/n.object.zoom/n.domElement.clientWidth,r=(n.object.top-n.object.bottom)/n.object.zoom/n.domElement.clientWidth;e.x*=t,e.y*=r}e.multiplyScalar(v.length()*n.panSpeed),r.copy(v).cross(n.object.up).setLength(e.x),r.add(t.copy(n.object.up).setLength(e.y)),n.object.position.add(r),n.target.add(r),n.staticMoving?S.copy(E):S.add(e.subVectors(E,S).multiplyScalar(n.dynamicDampingFactor))}}}(),this.checkDistances=function(){n.noZoom&&n.noPan||(v.lengthSq()>n.maxDistance*n.maxDistance&&(n.object.position.addVectors(n.target,v.setLength(n.maxDistance)),x.copy(w)),v.lengthSq()l&&(n.dispatchEvent(EE),u.copy(n.object.position))):n.object.isOrthographicCamera&&(n.object.lookAt(n.target),(u.distanceToSquared(n.object.position)>l||h!==n.object.zoom)&&(n.dispatchEvent(EE),u.copy(n.object.position),h=n.object.zoom))},this.reset=function(){f=r,d=r,n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.up.copy(n.up0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),v.subVectors(n.object.position,n.target),n.object.lookAt(n.target),n.dispatchEvent(EE),u.copy(n.object.position),h=n.object.zoom},this.dispose=function(){n.domElement.removeEventListener("contextmenu",N),n.domElement.removeEventListener("pointerdown",k),n.domElement.removeEventListener("pointercancel",I),n.domElement.removeEventListener("wheel",D),n.domElement.removeEventListener("pointermove",R),n.domElement.removeEventListener("pointerup",O),window.removeEventListener("keydown",P),window.removeEventListener("keyup",L)},this.domElement.addEventListener("contextmenu",N),this.domElement.addEventListener("pointerdown",k),this.domElement.addEventListener("pointercancel",I),this.domElement.addEventListener("wheel",D,{passive:!1}),window.addEventListener("keydown",P),window.addEventListener("keyup",L),this.handleResize(),this.update()}}var CE,kE=Object.freeze({Linear:Object.freeze({None:function(e){return e},In:function(e){return this.None(e)},Out:function(e){return this.None(e)},InOut:function(e){return this.None(e)}}),Quadratic:Object.freeze({In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}}),Cubic:Object.freeze({In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}),Quartic:Object.freeze({In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}}),Quintic:Object.freeze({In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}}),Sinusoidal:Object.freeze({In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return.5*(1-Math.sin(Math.PI*(.5-e)))}}),Exponential:Object.freeze({In:function(e){return 0===e?0:Math.pow(1024,e-1)},Out:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))}}),Circular:Object.freeze({In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}}),Elastic:Object.freeze({In:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)},Out:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin(5*(e-.1)*Math.PI)+1},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?-.5*Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)+1}}),Back:Object.freeze({In:function(e){var t=1.70158;return 1===e?1:e*e*((t+1)*e-t)},Out:function(e){var t=1.70158;return 0===e?0:--e*e*((t+1)*e+t)+1},InOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}}),Bounce:Object.freeze({In:function(e){return 1-kE.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?.5*kE.Bounce.In(2*e):.5*kE.Bounce.Out(2*e-1)+.5}}),generatePow:function(e){return void 0===e&&(e=4),e=(e=e1e4?1e4:e,{In:function(t){return Math.pow(t,e)},Out:function(t){return 1-Math.pow(1-t,e)},InOut:function(t){return t<.5?Math.pow(2*t,e)/2:(1-Math.pow(2-2*t,e))/2+.5}}}}),RE=function(){return performance.now()},OE=function(){function e(){this._tweens={},this._tweensAddedDuringUpdate={}}return e.prototype.getAll=function(){var e=this;return Object.keys(this._tweens).map((function(t){return e._tweens[t]}))},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e},e.prototype.remove=function(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]},e.prototype.update=function(e,t){void 0===e&&(e=RE()),void 0===t&&(t=!1);var n=Object.keys(this._tweens);if(0===n.length)return!1;for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var r=0;r1?a(e[n],e[n-1],n-r):a(e[i],e[i+1>n?n:i+1],r-i)},Bezier:function(e,t){for(var n=0,r=e.length-1,i=Math.pow,a=IE.Utils.Bernstein,s=0;s<=r;s++)n+=i(1-t,r-s)*i(t,s)*e[s]*a(r,s);return n},CatmullRom:function(e,t){var n=e.length-1,r=n*t,i=Math.floor(r),a=IE.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(i=Math.floor(r=n*(1+t))),a(e[(i-1+n)%n],e[i],e[(i+1)%n],e[(i+2)%n],r-i)):t<0?e[0]-(a(e[0],e[0],e[1],e[1],-r)-e[0]):t>1?e[n]-(a(e[n],e[n],e[n-1],e[n-1],r-n)-e[n]):a(e[i?i-1:0],e[i],e[n1;n--)t*=n;return CE[e]=t,t}),CatmullRom:function(e,t,n,r,i){var a=.5*(n-e),s=.5*(r-t),o=i*i;return(2*t-2*n+a+s)*(i*o)+(-3*t+3*n-2*a-s)*o+a*i+t}}},PE=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),LE=new OE,DE=function(){function e(e,t){void 0===t&&(t=LE),this._object=e,this._group=t,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=kE.Linear.None,this._interpolationFunction=IE.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=PE.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.to=function(e,t){if(void 0===t&&(t=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=e,this._propertiesAreSetUp=!1,this._duration=t,this},e.prototype.duration=function(e){return void 0===e&&(e=1e3),this._duration=e,this},e.prototype.dynamic=function(e){return void 0===e&&(e=!1),this._isDynamic=e,this},e.prototype.start=function(e,t){if(void 0===e&&(e=RE()),void 0===t&&(t=!1),this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var n in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e,this._startTime+=this._delayTime,!this._propertiesAreSetUp||t){if(this._propertiesAreSetUp=!0,!this._isDynamic){var r={};for(var i in this._valuesEnd)r[i]=this._valuesEnd[i];this._valuesEnd=r}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,t)}return this},e.prototype.startFromCurrentValues=function(e){return this.start(e,!0)},e.prototype._setupProperties=function(e,t,n,r,i){for(var a in n){var s=e[a],o=Array.isArray(s),c=o?"array":typeof s,l=!o&&Array.isArray(n[a]);if("undefined"!==c&&"function"!==c){if(l){if(0===(g=n[a]).length)continue;for(var u=[s],h=0,f=g.length;hi)return!1;t&&this.start(e,!0)}if(this._goToEnd=!1,e1?1:r;var a=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),1===r){if(this._repeat>0){for(n in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat)this._yoyo||"string"!=typeof this._valuesEnd[n]||(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),void 0!==this._repeatDelayTime?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var s=0,o=this._chainedTweens.length;s(()=>{var t={772:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n}},976:t=>{t.exports=e}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{r.r(i),r.d(i,{ToastComponent:()=>f,ToastPlugin:()=>p,ToastPositions:()=>o,default:()=>m,useToast:()=>d});var e=r(976);const t=(0,e.createElementVNode)("div",{class:"v-toast__icon"},null,-1),n=["innerHTML"];function a(e){var t;void 0!==e.remove?e.remove():null==(t=e.parentNode)||t.removeChild(e)}class s{constructor(e,t){this.startedAt=Date.now(),this.callback=e,this.delay=t,this.timer=setTimeout(e,t)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.stop(),this.startedAt=Date.now(),this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}const o=Object.freeze({TOP_RIGHT:"top-right",TOP:"top",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left"});var c;const l={all:c=c||new Map,on:function(e,t){var n=c.get(e);n?n.push(t):c.set(e,[t])},off:function(e,t){var n=c.get(e);n&&(t?n.splice(n.indexOf(t)>>>0,1):c.set(e,[]))},emit:function(e,t){var n=c.get(e);n&&n.slice().map((function(e){e(t)})),(n=c.get("*"))&&n.slice().map((function(n){n(e,t)}))}},u=(0,e.defineComponent)({name:"Toast",props:{message:{type:String,required:!0},type:{type:String,default:"success"},position:{type:String,default:o.BOTTOM_RIGHT,validator:e=>Object.values(o).includes(e)},duration:{type:Number,default:3e3},dismissible:{type:Boolean,default:!0},onDismiss:{type:Function,default:()=>{}},onClick:{type:Function,default:()=>{}},queue:Boolean,pauseOnHover:{type:Boolean,default:!0}},data:()=>({isActive:!1,parentTop:null,parentBottom:null,isHovered:!1}),beforeMount(){this.setupContainer()},mounted(){this.showNotice(),l.on("toast-clear",this.dismiss)},methods:{setupContainer(){if(this.parentTop=document.querySelector(".v-toast.v-toast--top"),this.parentBottom=document.querySelector(".v-toast.v-toast--bottom"),this.parentTop&&this.parentBottom)return;this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="v-toast v-toast--top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="v-toast v-toast--bottom");const e=document.body;e.appendChild(this.parentTop),e.appendChild(this.parentBottom)},shouldQueue(){return!!this.queue&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},dismiss(){this.timer&&this.timer.stop(),clearTimeout(this.queueTimer),this.isActive=!1,setTimeout((()=>{this.onDismiss.apply(null,arguments);const t=this.$refs.root;(0,e.render)(null,t),a(t)}),150)},showNotice(){if(this.shouldQueue())return void(this.queueTimer=setTimeout(this.showNotice,250));const e=this.$refs.root.parentElement;this.correctParent.insertAdjacentElement("afterbegin",this.$refs.root),a(e),this.isActive=!0,this.duration&&(this.timer=new s(this.dismiss,this.duration))},whenClicked(){this.dismissible&&(this.onClick.apply(null,arguments),this.dismiss())},toggleTimer(e){this.pauseOnHover&&this.timer&&(e?this.timer.pause():this.timer.resume())}},computed:{correctParent(){switch(this.position){case o.TOP:case o.TOP_RIGHT:case o.TOP_LEFT:return this.parentTop;case o.BOTTOM:case o.BOTTOM_RIGHT:case o.BOTTOM_LEFT:return this.parentBottom}},transition(){switch(this.position){case o.TOP:case o.TOP_RIGHT:case o.TOP_LEFT:return{enter:"v-toast--fade-in-down",leave:"v-toast--fade-out"};case o.BOTTOM:case o.BOTTOM_RIGHT:case o.BOTTOM_LEFT:return{enter:"v-toast--fade-in-up",leave:"v-toast--fade-out"}}}},beforeUnmount(){l.off("toast-clear",this.dismiss)}}),h=(0,r(772).default)(u,[["render",function(r,i,a,s,o,c){return(0,e.openBlock)(),(0,e.createBlock)(e.Transition,{"enter-active-class":r.transition.enter,"leave-active-class":r.transition.leave},{default:(0,e.withCtx)((()=>[(0,e.withDirectives)((0,e.createElementVNode)("div",{ref:"root",role:"alert",class:(0,e.normalizeClass)(["v-toast__item",[`v-toast__item--${r.type}`,`v-toast__item--${r.position}`]]),onMouseover:i[0]||(i[0]=e=>r.toggleTimer(!0)),onMouseleave:i[1]||(i[1]=e=>r.toggleTimer(!1)),onClick:i[2]||(i[2]=function(){return r.whenClicked&&r.whenClicked(...arguments)})},[t,(0,e.createElementVNode)("p",{class:"v-toast__text",innerHTML:r.message},null,8,n)],34),[[e.vShow,r.isActive]])])),_:1},8,["enter-active-class","leave-active-class"])}]]),f=h,d=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{open(n){let r=null;"string"==typeof n&&(r=n);const i={message:r},a=Object.assign({},i,t,n),s=function(t,n,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const a=(0,e.h)(t,n,i),s=document.createElement("div");return s.classList.add("v-toast--pending"),r.appendChild(s),(0,e.render)(a,s),a.component}(f,a,document.body);return{dismiss:s.ctx.dismiss}},clear(){l.emit("toast-clear")},success(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.open(Object.assign({},{message:e,type:"success"},t))},error(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.open(Object.assign({},{message:e,type:"error"},t))},info(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.open(Object.assign({},{message:e,type:"info"},t))},warning(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.open(Object.assign({},{message:e,type:"warning"},t))},default(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.open(Object.assign({},{message:e,type:"default"},t))}}},p={install:function(e){let t=d(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});e.config.globalProperties.$toast=t,e.provide("$toast",t)}},m=p})(),i})();var VE=BE.exports=zE(Wb(po));const HE=(e,t)=>{const n=e.storage||sessionStorage,r=e.key||t.$id;if(e.paths){const i=e.paths.reduce(((e,n)=>(e[n]=t.$state[n],e)),{});n.setItem(r,JSON.stringify(i))}else n.setItem(r,JSON.stringify(t.$state))};var jE=({options:e,store:t})=>{var n,r,i,a;if(null==(n=e.persist)?void 0:n.enabled){const n=[{key:t.$id,storage:sessionStorage}],s=(null==(i=null==(r=e.persist)?void 0:r.strategies)?void 0:i.length)?null==(a=e.persist)?void 0:a.strategies:n;s.forEach((e=>{const n=e.storage||sessionStorage,r=e.key||t.$id,i=n.getItem(r);i&&(t.$patch(JSON.parse(i)),HE(e,t))})),t.$subscribe((()=>{s.forEach((e=>{HE(e,t)}))}))}},WE={version:"0.18.5"},GE=1252,XE=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],qE={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},$E=function(e){-1!=XE.indexOf(e)&&(GE=qE[0]=e)}; +/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var YE=function(e){$E(e)};function ZE(){YE(1200),$E(1252)}function KE(e){for(var t=[],n=0,r=e.length;n>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join("")}var QE,eT=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return 255==t&&254==n?function(e){for(var t=[],n=0;n>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n)+(e.charCodeAt(2*n+1)<<8));return t.join("")}(e.slice(2)):254==t&&255==n?JE(e.slice(2)):65279==t?e.slice(1):e},tT=function(e){return String.fromCharCode(e)},nT=function(e){return String.fromCharCode(e)},rT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function iT(e){for(var t="",n=0,r=0,i=0,a=0,s=0,o=0,c=0,l=0;l>2,s=(3&n)<<4|(r=e.charCodeAt(l++))>>4,o=(15&r)<<2|(i=e.charCodeAt(l++))>>6,c=63&i,isNaN(r)?o=c=64:isNaN(i)&&(c=64),t+=rT.charAt(a)+rT.charAt(s)+rT.charAt(o)+rT.charAt(c);return t}function aT(e){var t="",n=0,r=0,i=0,a=0,s=0,o=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c>4,t+=String.fromCharCode(n),r=(15&a)<<4|(s=rT.indexOf(e.charAt(c++)))>>2,64!==s&&(t+=String.fromCharCode(r)),i=(3&s)<<6|(o=rT.indexOf(e.charAt(c++))),64!==o&&(t+=String.fromCharCode(i));return t}var sT=function(){return"undefined"!=typeof Buffer&&"undefined"!=typeof process&&void 0!==process.versions&&!!process.versions.node}(),oT=function(){if("undefined"!=typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function cT(e){return sT?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function lT(e){return sT?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var uT=function(e){return sT?oT(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function hT(e){if("undefined"==typeof ArrayBuffer)return uT(e);for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=255&e.charCodeAt(r);return t}function fT(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],n=0;n=0;)t+=e.charAt(n--);return t}function yT(e,t){var n=""+e;return n.length>=t?n:OM("0",t-n.length)+n}function _T(e,t){var n=""+e;return n.length>=t?n:OM(" ",t-n.length)+n}function bT(e,t){var n=""+e;return n.length>=t?n:n+OM(" ",t-n.length)}var xT=Math.pow(2,32);function wT(e,t){return e>xT||e<-xT?function(e,t){var n=""+Math.round(e);return n.length>=t?n:OM("0",t-n.length)+n}(e,t):function(e,t){var n=""+e;return n.length>=t?n:OM("0",t-n.length)+n}(Math.round(e),t)}function ST(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var ET=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],TT=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];var MT={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},AT={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},CT={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function kT(e,t,n){for(var r=e<0?-1:1,i=e*r,a=0,s=1,o=0,c=1,l=0,u=0,h=Math.floor(i);lt&&(l>t?(u=c,o=a):(u=l,o=s)),!n)return[0,r*o,u];var f=Math.floor(r*o/u);return[f,r*o-f*u,u]}function RT(e,t,n){if(e>2958465||e<0)return null;var r=0|e,i=Math.floor(86400*(e-r)),a=0,s=[],o={D:r,T:i,u:86400*(e-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(r+=1462),o.u>.9999&&(o.u=0,86400==++i&&(o.T=i=0,++r,++o.D)),60===r)s=n?[1317,10,29]:[1900,2,29],a=3;else if(0===r)s=n?[1317,8,29]:[1900,1,0],a=6;else{r>60&&--r;var c=new Date(1900,0,1);c.setDate(c.getDate()+r-1),s=[c.getFullYear(),c.getMonth()+1,c.getDate()],a=c.getDay(),r<60&&(a=(a+6)%7),n&&(a=function(e,t){t[0]-=581;var n=e.getDay();e<60&&(n=(n+6)%7);return n}(c,s))}return o.y=s[0],o.m=s[1],o.d=s[2],o.S=i%60,i=Math.floor(i/60),o.M=i%60,i=Math.floor(i/60),o.H=i,o.q=a,o}var OT=new Date(1899,11,31,0,0,0),IT=OT.getTime(),PT=new Date(1900,2,1,0,0,0);function LT(e,t){var n=e.getTime();return t?n-=1262304e5:e>=PT&&(n+=864e5),(n-(IT+6e4*(e.getTimezoneOffset()-OT.getTimezoneOffset())))/864e5}function DT(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function NT(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?function(e){var t=e<0?12:11,n=DT(e.toFixed(12));return n.length<=t||(n=e.toPrecision(10)).length<=t?n:e.toExponential(5)}(e):10===n?e.toFixed(10).substr(0,12):function(e){var t=DT(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),DT(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}function FT(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):NT(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return iM(14,LT(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function UT(e,t,n,r){var i,a="",s=0,o=0,c=n.y,l=0;switch(e){case 98:c=n.y+543;case 121:switch(t.length){case 1:case 2:i=c%100,l=2;break;default:i=c%1e4,l=4}break;case 109:switch(t.length){case 1:case 2:i=n.m,l=t.length;break;case 3:return TT[n.m-1][1];case 5:return TT[n.m-1][0];default:return TT[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:i=n.d,l=t.length;break;case 3:return ET[n.q][0];default:return ET[n.q][1]}break;case 104:switch(t.length){case 1:case 2:i=1+(n.H+11)%12,l=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:i=n.H,l=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:i=n.M,l=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(o=r>=2?3===r?1e3:100:1===r?10:1,(s=Math.round(o*(n.S+n.u)))>=60*o&&(s=0),"s"===t?0===s?"0":""+s/o:(a=yT(s,2+r),"ss"===t?a.substr(0,2):"."+a.substr(2,t.length-1))):yT(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":i=24*n.D+n.H;break;case"[m]":case"[mm]":i=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":i=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}l=3===t.length?1:2;break;case 101:i=c,l=1}return l>0?yT(i,l):""}function BT(e){if(e.length<=3)return e;for(var t=e.length%3,n=e.substr(0,t);t!=e.length;t+=3)n+=(n.length>0?",":"")+e.substr(t,3);return n}var zT=/%/g;function VT(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+VT(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),-1===(n=(t/Math.pow(10,a)).toPrecision(r+1+(i+a)%i)).indexOf("e")){var s=Math.floor(Math.log(t)*Math.LOG10E);for(-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+a):n+="E+"+(s-a);"0."===n.substr(0,2);)n=(n=n.charAt(0)+n.substr(2,i)+"."+n.substr(2+i)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+a)%i)+"."+r.substr(a)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var HT=/# (\?+)( ?)\/( ?)(\d+)/;var jT=/^#*0*\.([0#]+)/,WT=/\).*[0#]/,GT=/\(###\) ###\\?-####/;function XT(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function qT(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function $T(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function YT(e,t,n){if(40===e.charCodeAt(0)&&!t.match(WT)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?YT("n",r,n):"("+YT("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return JT(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(zT,""),i=t.length-r.length;return JT(e,r,n*Math.pow(10,2*i))+OM("%",i)}(e,t,n);if(-1!==t.indexOf("E"))return VT(t,n);if(36===t.charCodeAt(0))return"$"+YT(e,t.substr(" "==t.charAt(1)?2:1),n);var i,a,s,o,c=Math.abs(n),l=n<0?"-":"";if(t.match(/^00+$/))return l+wT(c,t.length);if(t.match(/^[#?]+$/))return"0"===(i=wT(n,0))&&(i=""),i.length>t.length?i:XT(t.substr(0,t.length-i.length))+i;if(a=t.match(HT))return function(e,t,n){var r=parseInt(e[4],10),i=Math.round(t*r),a=Math.floor(i/r),s=i-a*r,o=r;return n+(0===a?"":""+a)+" "+(0===s?OM(" ",e[1].length+1+e[4].length):_T(s,e[1].length)+e[2]+"/"+e[3]+yT(o,e[4].length))}(a,c,l);if(t.match(/^#+0+$/))return l+wT(c,t.length-t.indexOf("0"));if(a=t.match(jT))return i=qT(n,a[1].length).replace(/^([^\.]+)$/,"$1."+XT(a[1])).replace(/\.$/,"."+XT(a[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+OM("0",XT(a[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return l+qT(c,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return l+BT(wT(c,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+YT(e,t,-n):BT(""+(Math.floor(n)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(n,a[1].length)))+"."+yT($T(n,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return YT(e,t.replace(/^#,#*,/,""),n);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=vT(YT(e,t.replace(/[\\-]/g,""),n)),s=0,vT(vT(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return s-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?yT(0,3-e.length):"")+e}))+"."+yT(s,a[1].length);switch(t){case"###,##0.00":return YT(e,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var d=BT(wT(c,0));return"0"!==d?l+d:"";case"###,###.00":return YT(e,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return YT(e,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function ZT(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+ZT(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),!(n=(t/Math.pow(10,a)).toPrecision(r+1+(i+a)%i)).match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(s-n.length+a):n+="E+"+(s-a),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+a)%i)+"."+r.substr(a)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function KT(e,t,n){if(40===e.charCodeAt(0)&&!t.match(WT)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?KT("n",r,n):"("+KT("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return JT(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(zT,""),i=t.length-r.length;return JT(e,r,n*Math.pow(10,2*i))+OM("%",i)}(e,t,n);if(-1!==t.indexOf("E"))return ZT(t,n);if(36===t.charCodeAt(0))return"$"+KT(e,t.substr(" "==t.charAt(1)?2:1),n);var i,a,s,o,c=Math.abs(n),l=n<0?"-":"";if(t.match(/^00+$/))return l+yT(c,t.length);if(t.match(/^[#?]+$/))return i=""+n,0===n&&(i=""),i.length>t.length?i:XT(t.substr(0,t.length-i.length))+i;if(a=t.match(HT))return function(e,t,n){return n+(0===t?"":""+t)+OM(" ",e[1].length+2+e[4].length)}(a,c,l);if(t.match(/^#+0+$/))return l+yT(c,t.length-t.indexOf("0"));if(a=t.match(jT))return i=(i=(""+n).replace(/^([^\.]+)$/,"$1."+XT(a[1])).replace(/\.$/,"."+XT(a[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+OM("0",XT(a[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return l+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return l+BT(""+c);if(a=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+KT(e,t,-n):BT(""+n)+"."+OM("0",a[1].length);if(a=t.match(/^#,#*,#0/))return KT(e,t.replace(/^#,#*,/,""),n);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=vT(KT(e,t.replace(/[\\-]/g,""),n)),s=0,vT(vT(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return s-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===n;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t-1;);break;default:++t}return!1}var tM=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function nM(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0}return!1}function rM(e,t){var n=function(e){for(var t=[],n=!1,r=0,i=0;r-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof t)return[4,4===n.length||i>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=i>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=i>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=i>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var a=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,a];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var s=n[0].match(tM),o=n[1].match(tM);return nM(t,s)?[r,n[0]]:nM(t,o)?[r,n[1]]:[r,n[null!=s&&null!=o?2:1]]}return[r,a]}function iM(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":null==(r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:MT)[e])&&(r=n.table&&n.table[AT[e]]||MT[AT[e]]),null==r&&(r=CT[e]||"General")}if(ST(r,0))return FT(t,n);t instanceof Date&&(t=LT(t,n.date1904));var i=rM(r,t);if(ST(i[1]))return FT(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,n,r){for(var i,a,s,o=[],c="",l=0,u="",h="t",f="H";l=12?"P":"A"),m.t="T",f="h",l+=3):"AM/PM"===e.substr(l,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"PM":"AM"),m.t="T",l+=5,f="h"):"上午/下午"===e.substr(l,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"下午":"上午"),m.t="T",l+=5,f="h"):(m.t="t",++l),null==i&&"T"===m.t)return"";o[o.length]=m,h=u;break;case"[":for(c=u;"]"!==e.charAt(l++)&&l-1&&(c=(c.match(/\$([^-\[\]]*)/)||[])[1]||"$",eM(e)||(o[o.length]={t:"t",v:c}));break;case".":if(null!=i){for(c=u;++l-1;)c+=u;o[o.length]={t:"n",v:c};break;case"?":for(c=u;e.charAt(++l)===u;)c+=u;o[o.length]={t:u,v:c},h=u;break;case"*":++l," "!=e.charAt(l)&&"*"!=e.charAt(l)||++l;break;case"(":case")":o[o.length]={t:1===r?"t":u,v:u},++l;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(c=u;l-1;)c+=e.charAt(l);o[o.length]={t:"D",v:c};break;case" ":o[o.length]={t:u,v:u},++l;break;case"$":o[o.length]={t:"t",v:"$"},++l;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u))throw new Error("unrecognized character "+u+" in "+e);o[o.length]={t:"t",v:u},++l}var g,v=0,y=0;for(l=o.length-1,h="t";l>=0;--l)switch(o[l].t){case"h":case"H":o[l].t=f,h="h",v<1&&(v=1);break;case"s":(g=o[l].v.match(/\.0+$/))&&(y=Math.max(y,g[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":h=o[l].t;break;case"m":"s"===h&&(o[l].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&o[l].v.match(/[Hh]/)&&(v=1),v<2&&o[l].v.match(/[Mm]/)&&(v=2),v<3&&o[l].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H);break;case 2:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M)}var _,b="";for(l=0;l0){40==b.charCodeAt(0)?(x=t<0&&45===b.charCodeAt(0)?-t:t,w=JT("n",b,x)):(w=JT("n",b,x=t<0&&r>1?-t:t),x<0&&o[0]&&"t"==o[0].t&&(w=w.substr(1),o[0].v="-"+o[0].v)),_=w.length-1;var E=o.length;for(l=0;l-1){E=l;break}var T=o.length;if(E===o.length&&-1===w.indexOf("E")){for(l=o.length-1;l>=0;--l)null!=o[l]&&-1!=="n?".indexOf(o[l].t)&&(_>=o[l].v.length-1?(_-=o[l].v.length,o[l].v=w.substr(_+1,o[l].v.length)):_<0?o[l].v="":(o[l].v=w.substr(0,_+1),_=-1),o[l].t="t",T=l);_>=0&&T=0;--l)if(null!=o[l]&&-1!=="n?".indexOf(o[l].t)){for(a=o[l].v.indexOf(".")>-1&&l===E?o[l].v.indexOf(".")-1:o[l].v.length-1,S=o[l].v.substr(a+1);a>=0;--a)_>=0&&("0"===o[l].v.charAt(a)||"#"===o[l].v.charAt(a))&&(S=w.charAt(_--)+S);o[l].v=S,o[l].t="t",T=l}for(_>=0&&T-1&&l===E?o[l].v.indexOf(".")+1:0,S=o[l].v.substr(0,a);a-1&&(x=r>1&&t<0&&l>0&&"-"===o[l-1].v?-t:t,o[l].v=JT(o[l].t,o[l].v,x),o[l].t="t");var M="";for(l=0;l!==o.length;++l)null!=o[l]&&(M+=o[l].v);return M}(i[1],t,n,i[0])}function aM(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(null!=MT[n]){if(MT[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return MT[t]=e,t}function sM(e){for(var t=0;392!=t;++t)void 0!==e[t]&&aM(e[t],t)}function oM(){var e;e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',MT=e}var cM={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},lM=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;var uM=function(){var e={};e.version="1.2.0";var t=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}();var n=function(e){var t=0,n=0,r=0,i="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)i[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[255&n];var a=[];for(r=1;16!=r;++r)a[r-1]="undefined"!=typeof Int32Array?i.subarray(256*r,256*r+256):i.slice(256*r,256*r+256);return a}(t),r=n[0],i=n[1],a=n[2],s=n[3],o=n[4],c=n[5],l=n[6],u=n[7],h=n[8],f=n[9],d=n[10],p=n[11],m=n[12],g=n[13],v=n[14];return e.table=t,e.bstr=function(e,n){for(var r=-1^n,i=0,a=e.length;i>>8^t[255&(r^e.charCodeAt(i++))];return~r},e.buf=function(e,n){for(var y=-1^n,_=e.length-15,b=0;b<_;)y=v[e[b++]^255&y]^g[e[b++]^y>>8&255]^m[e[b++]^y>>16&255]^p[e[b++]^y>>>24]^d[e[b++]]^f[e[b++]]^h[e[b++]]^u[e[b++]]^l[e[b++]]^c[e[b++]]^o[e[b++]]^s[e[b++]]^a[e[b++]]^i[e[b++]]^r[e[b++]]^t[e[b++]];for(_+=15;b<_;)y=y>>>8^t[255&(y^e[b++])];return~y},e.str=function(e,n){for(var r=-1^n,i=0,a=e.length,s=0,o=0;i>>8^t[255&(r^s)]:s<2048?r=(r=r>>>8^t[255&(r^(192|s>>6&31))])>>>8^t[255&(r^(128|63&s))]:s>=55296&&s<57344?(s=64+(1023&s),o=1023&e.charCodeAt(i++),r=(r=(r=(r=r>>>8^t[255&(r^(240|s>>8&7))])>>>8^t[255&(r^(128|s>>2&63))])>>>8^t[255&(r^(128|o>>6&15|(3&s)<<4))])>>>8^t[255&(r^(128|63&o))]):r=(r=(r=r>>>8^t[255&(r^(224|s>>12&15))])>>>8^t[255&(r^(128|s>>6&63))])>>>8^t[255&(r^(128|63&s))];return~r},e}(),hM=function(){var e,t={};function n(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:n(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function r(e){if("/"==e.charAt(e.length-1))return r(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function i(e,t){"string"==typeof t&&(t=new Date(t));var n=t.getHours();n=(n=n<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=(r=r<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,r)}function a(e){pC(e,0);for(var t={},n=0;e.l<=e.length-4;){var r=e.read_shift(2),i=e.read_shift(2),a=e.l+i,s={};if(21589===r)1&(n=e.read_shift(1))&&(s.mtime=e.read_shift(4)),i>5&&(2&n&&(s.atime=e.read_shift(4)),4&n&&(s.ctime=e.read_shift(4))),s.mtime&&(s.mt=new Date(1e3*s.mtime));e.l=a,t[r]=s}return t}function s(){return e||(e={})}function o(e,t){if(80==e[0]&&75==e[1])return ie(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=w(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=t&&t.root||"",r=(sT&&Buffer.isBuffer(e)?e.toString("binary"):w(e)).split("\r\n"),i=0,a="";for(i=0;i0&&(n=(n=n.slice(0,n.length-1)).slice(0,n.lastIndexOf("/")+1),a.slice(0,n.length)!=n););var s=(r[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var o="--"+(s[1]||""),c=[],l=[],u={FileIndex:c,FullPaths:l};f(u);var h,d=0;for(i=0;i=i&&(f-=i),!s[f]){c=[];var p=[];for(h=f;h>=0;){p[h]=!0,s[h]=!0,o[o.length]=h,c.push(e[h]);var m=n[Math.floor(4*h/r)];if(r<4+(d=4*h&l))throw new Error("FAT boundary crossed: "+h+" 4 "+r);if(!e[m])break;if(p[h=sC(e[m],d)])break}a[f]={nodes:o,data:NA([c])}}return a}(E,a,p,d);T[a].name="!Directory",r>0&&s!==v&&(T[s].name="!MiniFAT"),T[p[0]].name="!FAT",T.fat_addrs=p,T.ssz=d;var M=[],A=[],C=[];!function(e,t,n,r,i,a,s,o){for(var l,f=0,d=r.length?2:0,p=t[e].data,m=0,g=0;m0&&f!==v&&(t[f].name="!StreamData")):_.size>=4096?(_.storage="fat",void 0===t[_.start]&&(t[_.start]=u(n,_.start,t.fat_addrs,t.ssz)),t[_.start].name=_.name,_.content=t[_.start].data.slice(0,_.size)):(_.storage="minifat",_.size<0?_.size=0:f!==v&&_.start!==v&&t[f]&&(_.content=c(_,t[f].data,(t[o]||{}).data))),_.content&&pC(_.content,0),a[l]=_,s.push(_)}}(a,T,E,M,r,{},A,s),function(e,t,n){for(var r=0,i=0,a=0,s=0,o=0,c=n.length,l=[],u=[];r0&&s>=0;)a.push(t.slice(s*g,s*g+g)),i-=g,s=sC(n,4*s);return 0===a.length?gC(0):pT(a).slice(0,e.size)}function l(e,t,n,r,i){var a=v;if(e===v){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var s=n[e],o=(r>>>2)-1;if(!s)return;for(var c=0;c=0;){i[c]=!0,a[a.length]=c,s.push(e[c]);var u=n[Math.floor(4*c/r)];if(r<4+(l=4*c&o))throw new Error("FAT boundary crossed: "+c+" 4 "+r);if(!e[u])break;c=sC(e[u],l)}return{nodes:a,data:NA([s])}}function h(e,t){return new Date(1e3*(aC(e,t+4)/1e7*Math.pow(2,32)+aC(e,t)/1e7-11644473600))}function f(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),function(e){var t="Sh33tJ5";if(hM.find(e,"/"+t))return;var n=gC(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),d(e)}(e)}function d(e,t){f(e);for(var i=!1,a=!1,s=e.FullPaths.length-1;s>=0;--s){var o=e.FileIndex[s];switch(o.type){case 0:a?i=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:a=!0,isNaN(o.R*o.L*o.C)&&(i=!0),o.R>-1&&o.L>-1&&o.R==o.L&&(i=!0);break;default:i=!0}}if(i||t){var c=new Date(1987,1,19),l=0,u=Object.create?Object.create(null):{},h=[];for(s=0;s1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(l=s+1;l=h.length?-1:l,l=s+1;l=h.length?-1:l,p.type=1}else n(e.FullPaths[s+1]||"")==n(m)&&(p.R=s+1),p.type=2}}}function p(e,t){var n=t||{};if("mad"==n.fileType)return function(e,t){for(var n=t||{},r=n.boundary||"SheetJS",i=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(r="------="+r).slice(2)+'"',"","",""],a=e.FullPaths[0],s=a,o=e.FileIndex[0],c=1;c=32&&d<128&&++h;var m=h>=4*f/5;i.push(r),i.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+s),i.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),i.push("Content-Type: "+oe(o,s)),i.push(""),i.push(m?le(u):ce(u))}return i.push(r+"--\r\n"),i.join("\r\n")}(e,n);if(d(e),"zip"===n.fileType)return function(e,t){var n=t||{},r=[],a=[],s=gC(1),o=n.compression?8:0,c=0,l=0,u=0,h=0,f=0,d=e.FullPaths[0],p=d,m=e.FileIndex[0],g=[],v=0;for(l=1;l0&&(a<4096?t+=a+63>>6:n+=a+511>>9)}}for(var s=e.FullPaths.length+3>>2,o=t+127>>7,c=(t+7>>3)+n+s+o,l=c+127>>7,u=l<=109?0:Math.ceil((l-109)/127);c+l+u+127>>7>l;)u=++l<=109?0:Math.ceil((l-109)/127);var h=[1,u,l,o,s,n,t,0];return e.FileIndex[0].size=t<<6,h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3),h}(e),a=gC(r[7]<<9),s=0,o=0;for(s=0;s<8;++s)a.write_shift(1,_[s]);for(s=0;s<8;++s)a.write_shift(2,0);for(a.write_shift(2,62),a.write_shift(2,3),a.write_shift(2,65534),a.write_shift(2,9),a.write_shift(2,6),s=0;s<3;++s)a.write_shift(2,0);for(a.write_shift(4,0),a.write_shift(4,r[2]),a.write_shift(4,r[0]+r[1]+r[2]+r[3]-1),a.write_shift(4,0),a.write_shift(4,4096),a.write_shift(4,r[3]?r[0]+r[1]+r[2]-1:v),a.write_shift(4,r[3]),a.write_shift(-4,r[1]?r[0]-1:v),a.write_shift(4,r[1]),s=0;s<109;++s)a.write_shift(-4,s>9)));for(c(r[6]+7>>3);511&a.l;)a.write_shift(-4,x.ENDOFCHAIN);for(o=s=0,l=0;l=4096||(h.start=o,c(u+63>>6)));for(;511&a.l;)a.write_shift(-4,x.ENDOFCHAIN);for(s=0;s=4096)if(a.l=h.start+1<<9,sT&&Buffer.isBuffer(h.content))h.content.copy(a,a.l,0,h.size),a.l+=h.size+511&-512;else{for(l=0;l0&&h.size<4096)if(sT&&Buffer.isBuffer(h.content))h.content.copy(a,a.l,0,h.size),a.l+=h.size+63&-64;else{for(l=0;l>16|C>>8|C));function I(e,t){var n=R[255&e];return t<=8?n>>>8-t:(n=n<<8|R[e>>8&255],t<=16?n>>>16-t:(n=n<<8|R[e>>16&255])>>>24-t)}function P(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function L(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function D(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function N(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function F(e,t,n){var r=7&t,i=t>>>3,a=(1<>>r;return n<8-r?s&a:(s|=e[i+1]<<8-r,n<16-r?s&a:(s|=e[i+2]<<16-r,n<24-r?s&a:(s|=e[i+3]<<24-r)&a))}function U(e,t,n){var r=7&t,i=t>>>3;return r<=5?e[i]|=(7&n)<>8-r),t+3}function B(e,t,n){return n=(1&n)<<(7&t),e[t>>>3]|=n,t+1}function z(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=n,t+8}function V(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=255&n,e[r+2]=n>>>8,t+16}function H(e,t){var n=e.length,r=2*n>t?2*n:t+5,i=0;if(n>=t)return e;if(sT){var a=lT(r);if(e.copy)e.copy(a);else for(;i>r-h,s=(1<=0;--s)t[o|s<0;)t[t.l++]=e[n++]}return t.l}(t,n):function(t,n){for(var i=0,a=0,s=k?new Uint16Array(32768):[];a0;)n[n.l++]=t[a++];i=8*n.l}else{i=U(n,i,+!(a+o!=t.length)+2);for(var c=0;o-- >0;){var l=t[a],u=-1,h=0;if((u=s[c=32767&(c<<5^l)])&&((u|=-32768&a)>a&&(u-=32768),u2){(l=r[h])<=22?i=z(n,i,R[l+1]>>1)-1:(z(n,i,3),z(n,i+=5,R[l-23]>>5),i+=3);var f=l<8?0:l-4>>2;f>0&&(V(n,i,h-T[l]),i+=f),l=e[a-u],i=z(n,i,R[l]>>3),i-=3;var d=l<4?0:l-2>>1;d>0&&(V(n,i,a-u-M[l]),i+=d);for(var p=0;p>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}(e,t+=5)+4;t+=4;for(var a=0,s=k?new Uint8Array(19):j(19),o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],c=1,l=k?new Uint8Array(8):j(8),u=k?new Uint8Array(8):j(8),h=s.length,f=0;f>8-p;for(var m=(1<<7-p)-1;m>=0;--m)J[d|m<>>=3){case 16:for(a=3+P(e,t),t+=2,d=g[g.length-1];a-- >0;)g.push(d);break;case 17:for(a=3+L(e,t),t+=3;a-- >0;)g.push(0);break;case 18:for(a=11+N(e,t),t+=7;a-- >0;)g.push(0);break;default:g.push(d),c>>0,o=0,c=0;0==(1&r);)if(r=L(e,n),n+=3,r>>>1!=0)for(r>>1==1?(o=9,c=5):(n=te(e,n),o=Q,c=ee);;){!t&&s>>1==1?G[l]:Z[l];if(n+=15&u,0==((u>>>=4)>>>8&255))i[a++]=u;else{if(256==u)break;var h=(u-=257)<8?0:u-4>>2;h>5&&(h=0);var f=a+T[u];h>0&&(f+=F(e,n,h),n+=h),l=F(e,n,c),n+=15&(u=r>>>1==1?X[l]:K[l]);var d=(u>>>=4)<4?0:u-2>>1,p=M[u];for(d>0&&(p+=F(e,n,d),n+=d),!t&&s>>3]|e[1+(n>>>3)]<<8;if(n+=32,m>0)for(!t&&s0;)i[a++]=e[n>>>3],n+=8}return t?[i,n+7>>>3]:[i.slice(0,a),n+7>>>3]}(e.slice(e.l||0),t);return e.l+=n[1],n[0]}function re(e,t){if(!e)throw new Error(t)}function ie(e,t){var n=e;pC(n,0);var r={FileIndex:[],FullPaths:[]};f(r,{root:t.root});for(var i=n.length-4;(80!=n[i]||75!=n[i+1]||5!=n[i+2]||6!=n[i+3])&&i>=0;)--i;n.l=i+4,n.l+=4;var s=n.read_shift(2);n.l+=6;var o=n.read_shift(4);for(n.l=o,i=0;i>>=5);n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(a-1),r.setDate(i);var s=31&t,o=63&(t>>>=5);return t>>>=6,r.setHours(t),r.setMinutes(o),r.setSeconds(s<<1),r}(e);if(8257&s)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var l=e.read_shift(4),u=e.read_shift(4),h=e.read_shift(2),f=e.read_shift(2),d="",p=0;p3&&(r=!0),i[a].slice(i[a].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[a].slice(i[a].length-1));case"D":n*=24;case"H":n*=60;case"M":if(!r)throw new Error("Unsupported ISO Duration Field: M");n*=60}t+=n*parseInt(i[a],10)}return t}var TM=new Date("2017-02-19T19:06:09.000Z"),MM=isNaN(TM.getFullYear())?new Date("2/19/17"):TM,AM=2017==MM.getFullYear();function CM(e,t){var n=new Date(e);if(AM)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==MM.getFullYear()&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-60*a.getTimezoneOffset()*1e3)),a}function kM(e,t){if(sT&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return yA(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return yA(JE(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return yA(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return yA(new TextDecoder("utf-16be").decode(e.slice(2)))}var n={"€":"€","‚":"‚","ƒ":"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰","Š":"Š","‹":"‹","Œ":"Œ","Ž":"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™","š":"š","›":"›","œ":"œ","ž":"ž","Ÿ":"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return n[e]||e}))}catch(a){}for(var r=[],i=0;i!=e.length;++i)r.push(String.fromCharCode(e[i]));return r.join("")}function RM(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=RM(e[n]));return t}function OM(e,t){for(var n="";n.length3&&-1==PM.indexOf(s))return n}else if(s.match(/[a-z]/))return n;return r<0||r>8099?n:(i>0||a>1)&&101!=r?t:e.match(/[^-0-9:,\/\\]/)?n:t}var DM=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,n,r){if(e||"string"==typeof n)return t.split(n);for(var i=t.split(n),a=[i[0]],s=1;s>6&31,i[n++]=128|63&s;else if(s>=55296&&s<57344){s=64+(1023&s);var o=1023&e.charCodeAt(++a);i[n++]=240|s>>8&7,i[n++]=128|s>>2&63,i[n++]=128|o>>6&15|(3&s)<<4,i[n++]=128|63&o}else i[n++]=224|s>>12&15,i[n++]=128|s>>6&63,i[n++]=128|63&s;n>r&&(t.push(i.slice(0,n)),n=0,i=cT(65535),r=65530)}return t.push(i.slice(0,n)),pT(t)}(n),hM.utils.cfb_add(e,t,r);hM.utils.cfb_add(e,t,n)}else e.file(t,n)}function GM(){return hM.utils.cfb_new()}function XM(e,t){switch(t.type){case"base64":return hM.read(e,{type:"base64"});case"binary":return hM.read(e,{type:"binary"});case"buffer":case"array":return hM.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function qM(e,t){if("/"==e.charAt(0))return e.slice(1);var n=t.split("/");"/"!=t.slice(-1)&&n.pop();for(var r=e.split("/");0!==r.length;){var i=r.shift();".."===i?n.pop():"."!==i&&n.push(i)}return n.join("/")}var $M='\r\n',YM=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,ZM=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,KM=$M.match(ZM)?ZM:/<[^>]*>/g,JM=/<\w*:/,QM=/<(\/?)\w+:/;function eA(e,t,n){for(var r={},i=0,a=0;i!==e.length&&(32!==(a=e.charCodeAt(i))&&10!==a&&13!==a);++i);if(t||(r[0]=e.slice(0,i)),i===e.length)return r;var s=e.match(YM),o=0,c="",l=0,u="",h="",f=1;if(s)for(l=0;l!=s.length;++l){for(h=s[l],a=0;a!=h.length&&61!==h.charCodeAt(a);++a);for(u=h.slice(0,a).trim();32==h.charCodeAt(a+1);)++a;for(f=34==(i=h.charCodeAt(a+1))||39==i?1:0,c=h.slice(a+1+f,h.length-f),o=0;o!=u.length&&58!==u.charCodeAt(o);++o);if(o===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),r[u]=c,n||(r[u.toLowerCase()]=c);else{var d=(5===o&&"xmlns"===u.slice(0,5)?"xmlns":"")+u.slice(o+1);if(r[d]&&"ext"==u.slice(o-3,o))continue;r[d]=c,n||(r[d.toLowerCase()]=c)}}return r}function tA(e){return e.replace(QM,"<$1")}var nA={""":'"',"'":"'",">":">","<":"<","&":"&"},rA=gM(nA),iA=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function n(r){var i=r+"",a=i.indexOf("-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var s=i.indexOf("]]>");return n(i.slice(0,a))+i.slice(a+9,s)+n(i.slice(s+3))}}(),aA=/[&<>'"]/g,sA=/[\u0000-\u0008\u000b-\u001f]/g;function oA(e){return(e+"").replace(aA,(function(e){return rA[e]})).replace(sA,(function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function cA(e){return oA(e).replace(/ /g,"_x0020_")}var lA=/[\u0000-\u001f]/g;function uA(e){return(e+"").replace(aA,(function(e){return rA[e]})).replace(/\n/g,"
").replace(lA,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}var hA=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(n){return n.replace(e,t)}}();function fA(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function dA(e){for(var t="",n=0,r=0,i=0,a=0,s=0,o=0;n191&&r<224?(s=(31&r)<<6,s|=63&i,t+=String.fromCharCode(s)):(a=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&a):(o=((7&r)<<18|(63&i)<<12|(63&a)<<6|63&(s=e.charCodeAt(n++)))-65536,t+=String.fromCharCode(55296+(o>>>10&1023)),t+=String.fromCharCode(56320+(1023&o)))));return t}function pA(e){var t,n,r,i=cT(2*e.length),a=1,s=0,o=0;for(n=0;n>>10&1023),t=56320+(1023&t)),0!==o&&(i[s++]=255&o,i[s++]=o>>>8,o=0),i[s++]=t%256,i[s++]=t>>>8;return i.slice(0,s).toString("ucs2")}function mA(e){return oT(e,"binary").toString("utf8")}var gA="foo bar baz☃🍣",vA=sT&&(mA(gA)==dA(gA)&&mA||pA(gA)==dA(gA)&&pA)||dA,yA=sT?function(e){return oT(e,"utf8").toString("binary")}:function(e){for(var t=[],n=0,r=0,i=0;n>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,i=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(63&i)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join("")},_A=function(){var e={};return function(t,n){var r=t+"|"+(n||"");return e[r]?e[r]:e[r]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",n||"")}}(),bA=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,"\n").replace(/<[^>]*>/g,""),r=0;r([\\s\\S]*?)","g")}}(),wA=/<\/?(?:vt:)?variant>/g,SA=/<(?:vt:)([^>]*)>([\s\S]*)"+t+""}function AA(e){return pM(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function CA(e,t,n){return"<"+e+(null!=n?AA(n):"")+(null!=t?(t.match(TA)?' xml:space="preserve"':"")+">"+t+""}function kA(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(n){if(t)throw n}return""}function RA(e){if(sT&&Buffer.isBuffer(e))return e.toString("utf8");if("string"==typeof e)return e;if("undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return vA(fT(dT(e)));throw new Error("Bad input format: expected Buffer or string")}var OA=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/gm,IA={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},PA=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],LA={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};var DA=function(e){for(var t=[],n=0;n0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:oT(e)}))):DA(e)}:DA,FA=function(e,t,n){for(var r=[],i=t;i0?HA(e,t+4,t+4+n-1):""},WA=jA,GA=function(e,t){var n=aC(e,t);return n>0?HA(e,t+4,t+4+n-1):""},XA=GA,qA=function(e,t){var n=2*aC(e,t);return n>0?HA(e,t+4,t+4+n-1):""},$A=qA,YA=function(e,t){var n=aC(e,t);return n>0?UA(e,t+4,t+4+n):""},ZA=YA,KA=function(e,t){var n=aC(e,t);return n>0?HA(e,t+4,t+4+n):""},JA=KA,QA=function(e,t){return function(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),i=15&e[t+6],a=5;a>=0;--a)i=256*i+e[t+a];return 2047==r?0==i?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,i+=Math.pow(2,52)),n*Math.pow(2,r-52)*i)}(e,t)},eC=QA,tC=function(e){return Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array};sT&&(WA=function(e,t){if(!Buffer.isBuffer(e))return jA(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},XA=function(e,t){if(!Buffer.isBuffer(e))return GA(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},$A=function(e,t){if(!Buffer.isBuffer(e))return qA(e,t);var n=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n-1)},ZA=function(e,t){if(!Buffer.isBuffer(e))return YA(e,t);var n=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n)},JA=function(e,t){if(!Buffer.isBuffer(e))return KA(e,t);var n=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+n)},eC=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):QA(e,t)},tC=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array});var nC=function(e,t){return e[t]},rC=function(e,t){return 256*e[t+1]+e[t]},iC=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},aC=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},sC=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},oC=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function cC(e,t){var n,r,i,a,s,o,c="",l=[];switch(t){case"dbcs":if(o=this.l,sT&&Buffer.isBuffer(this))c=this.slice(this.l,this.l+2*e).toString("utf16le");else for(s=0;s0?sC:oC)(this,this.l),this.l+=4,n):(r=aC(this,this.l),this.l+=4,r);case 8:case-8:if("f"===t)return r=8==e?eC(this,this.l):eC([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;e=8;case 16:c=zA(this,this.l,e)}}return this.l+=e,c}var lC=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},uC=function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},hC=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function fC(e,t,n){var r=0,i=0;if("dbcs"===n){for(i=0;i!=t.length;++i)hC(this,t.charCodeAt(i),this.l+2*i);r=2*t.length}else if("sbcs"===n){for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=255&t.charCodeAt(i);r=t.length}else{if("hex"===n){for(;i>8}for(;this.l>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,lC(this,t,this.l);break;case 8:if(r=8,"f"===n){!function(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,s=r?-t:t;isFinite(s)?0==s?i=a=0:(i=Math.floor(Math.log(s)/Math.LN2),a=s*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a>4|r}(this,t,this.l);break}case 16:break;case-4:r=4,uC(this,t,this.l)}}return this.l+=r,this}function dC(e,t){var n=zA(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function pC(e,t){e.l=t,e.read_shift=cC,e.chk=dC,e.write_shift=fC}function mC(e,t){e.l+=t}function gC(e){var t=cT(e);return pC(t,0),t}function vC(e,t,n){if(e){var r,i,a;pC(e,e.l||0);for(var s=e.length,o=0,c=0;e.lr.l&&((r=r.slice(0,r.l)).l=r.length),r.length>0&&e.push(r),r=null)},a=function(e){return r&&e=128?1:0)+1,r>=128&&++i,r>=16384&&++i,r>=2097152&&++i;var s=e.next(i);a<=127?s.write_shift(1,a):(s.write_shift(1,128+(127&a)),s.write_shift(1,a>>7));for(var o=0;4!=o;++o){if(!(r>=128)){s.write_shift(1,r);break}s.write_shift(1,128+(127&r)),r>>=7}r>0&&tC(n)&&e.push(n)}}function bC(e,t,n){var r=RM(e);if(t.s?(r.cRel&&(r.c+=t.s.c),r.rRel&&(r.r+=t.s.r)):(r.cRel&&(r.c+=t.c),r.rRel&&(r.r+=t.r)),!n||n.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function xC(e,t,n){var r=RM(e);return r.s=bC(r.s,t.s,n),r.e=bC(r.e,t.s,n),r}function wC(e,t){if(e.cRel&&e.c<0)for(e=RM(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=RM(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var n=kC(e);return e.cRel||null==e.cRel||(n=n.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(n=function(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(n)),n}function SC(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?wC(e.s,t.biff)+":"+wC(e.e,t.biff):(e.s.rRel?"":"$")+TC(e.s.r)+":"+(e.e.rRel?"":"$")+TC(e.e.r):(e.s.cRel?"":"$")+AC(e.s.c)+":"+(e.e.cRel?"":"$")+AC(e.e.c)}function EC(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function TC(e){return""+(e+1)}function MC(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function AC(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function CC(e){for(var t=0,n=0,r=0;r=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(n=26*n+(i-64))}return{c:n-1,r:t-1}}function kC(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function RC(e){var t=e.indexOf(":");return-1==t?{s:CC(e),e:CC(e)}:{s:CC(e.slice(0,t)),e:CC(e.slice(t+1))}}function OC(e,t){return void 0===t||"number"==typeof t?OC(e.s,e.e):("string"!=typeof e&&(e=kC(e)),"string"!=typeof t&&(t=kC(t)),e==t?e:e+":"+t)}function IC(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,i=0,a=e.length;for(n=0;r26);++r)n=26*n+i;for(t.s.c=--n,n=0;r9);++r)n=10*n+i;if(t.s.r=--n,r===a||10!=i)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=a&&!((i=e.charCodeAt(r)-64)<1||i>26);++r)n=26*n+i;for(t.e.c=--n,n=0;r!=a&&!((i=e.charCodeAt(r)-48)<0||i>9);++r)n=10*n+i;return t.e.r=--n,t}function PC(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=iM(e.z,n?_M(t):t)}catch(r){}try{return e.w=iM((e.XF||{}).numFmtId||(n?14:0),n?_M(t):t)}catch(r){return""+t}}function LC(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?Sk[e.v]||e.v:PC(e,null==t?e.v:t))}function DC(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function NC(e,t,n){var r=n||{},i=e?Array.isArray(e):r.dense,a=e||(i?[]:{}),s=0,o=0;if(a&&null!=r.origin){if("number"==typeof r.origin)s=r.origin;else{var c="string"==typeof r.origin?CC(r.origin):r.origin;s=c.r,o=c.c}a["!ref"]||(a["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var u=IC(a["!ref"]);l.s.c=u.s.c,l.s.r=u.s.r,l.e.c=Math.max(l.e.c,u.e.c),l.e.r=Math.max(l.e.r,u.e.r),-1==s&&(l.e.r=s=u.e.r+1)}for(var h=0;h!=t.length;++h)if(t[h]){if(!Array.isArray(t[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var f=0;f!=t[h].length;++f)if(void 0!==t[h][f]){var d={v:t[h][f]},p=s+h,m=o+f;if(l.s.r>p&&(l.s.r=p),l.s.c>m&&(l.s.c=m),l.e.r0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}function VC(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function HC(e,t){var n=e.l,r=e.read_shift(1),i=BC(e),a=[],s={t:i,h:i};if(0!=(1&r)){for(var o=e.read_shift(4),c=0;c!=o;++c)a.push(VC(e));s.r=a}else s.r=[{ich:0,ifnt:0}];return e.l=n+t,s}var jC=HC;function WC(e,t){var n=!1;return null==t&&(n=!0,t=gC(23+4*e.t.length)),t.write_shift(1,1),zC(e.t,t),t.write_shift(4,1),function(e,t){t||(t=gC(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0)}({ich:0,ifnt:0},t),n?t.slice(0,t.l):t}function GC(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function XC(e,t){return null==t&&(t=gC(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function qC(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function $C(e,t){return null==t&&(t=gC(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var YC=BC,ZC=zC;function KC(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function JC(e,t){var n=!1;return null==t&&(n=!0,t=gC(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}var QC=BC,ek=KC,tk=JC;function nk(e){var t=e.slice(e.l,e.l+4),n=1&t[0],r=2&t[0];e.l+=4;var i=0===r?eC([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):sC(t,0)>>2;return n?i/100:i}function rk(e,t){null==t&&(t=gC(4));var n=0,r=0,i=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?r=1:i==(0|i)&&i>=-(1<<29)&&i<1<<29&&(r=1,n=1),!r)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((n?i:e)<<2)+(n+2))}function ik(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var ak=ik,sk=function(e,t){return t||(t=gC(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t};function ok(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function ck(e,t){return(t||gC(8)).write_shift(8,e,"f")}function lk(e,t){if(t||(t=gC(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),e.rgb&&null==e.theme){var r=e.rgb||"FFFFFF";"number"==typeof r&&(r=("000000"+r.toString(16)).slice(-6)),t.write_shift(1,parseInt(r.slice(0,2),16)),t.write_shift(1,parseInt(r.slice(2,4),16)),t.write_shift(1,parseInt(r.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}function uk(e,t){var n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[e.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}var hk=2,fk=3,dk=12,pk=80,mk=81,gk=[pk,mk],vk={1:{n:"CodePage",t:hk},2:{n:"Category",t:pk},3:{n:"PresentationFormat",t:pk},4:{n:"ByteCount",t:fk},5:{n:"LineCount",t:fk},6:{n:"ParagraphCount",t:fk},7:{n:"SlideCount",t:fk},8:{n:"NoteCount",t:fk},9:{n:"HiddenCount",t:fk},10:{n:"MultimediaClipCount",t:fk},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:pk},15:{n:"Company",t:pk},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:fk},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:fk,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:pk},27:{n:"ContentStatus",t:pk},28:{n:"Language",t:pk},29:{n:"Version",t:pk},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},yk={1:{n:"CodePage",t:hk},2:{n:"Title",t:pk},3:{n:"Subject",t:pk},4:{n:"Author",t:pk},5:{n:"Keywords",t:pk},6:{n:"Comments",t:pk},7:{n:"Template",t:pk},8:{n:"LastAuthor",t:pk},9:{n:"RevNumber",t:pk},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:fk},15:{n:"WordCount",t:fk},16:{n:"CharCount",t:fk},17:{n:"Thumbnail",t:71},18:{n:"Application",t:pk},19:{n:"DocSecurity",t:fk},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},_k={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},bk=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function xk(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var wk=RM(xk([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Sk={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Ek={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Tk={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Mk={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Ak(e,t){var n,r=function(e){for(var t=[],n=pM(e),r=0;r!==n.length;++r)null==t[e[n[r]]]&&(t[e[n[r]]]=[]),t[e[n[r]]].push(n[r]);return t}(Tk),i=[];i[i.length]=$M,i[i.length]=CA("Types",null,{xmlns:IA.CT,"xmlns:xsd":IA.xsd,"xmlns:xsi":IA.xsi}),i=i.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(e){return CA("Default",null,{Extension:e[0],ContentType:e[1]})})));var a=function(r){e[r]&&e[r].length>0&&(n=e[r][0],i[i.length]=CA("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:Mk[r][t.bookType]||Mk[r].xlsx}))},s=function(n){(e[n]||[]).forEach((function(e){i[i.length]=CA("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:Mk[n][t.bookType]||Mk[n].xlsx})}))},o=function(t){(e[t]||[]).forEach((function(e){i[i.length]=CA("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:r[t][0]})}))};return a("workbooks"),s("sheets"),s("charts"),o("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(o),o("vba"),o("comments"),o("threadedcomments"),o("drawings"),s("metadata"),o("people"),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}var Ck={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function kk(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Rk(e,t){var n={"!id":{}};if(!e)return n;"/"!==t.charAt(0)&&(t="/"+t);var r={};return(e.match(KM)||[]).forEach((function(e){var i=eA(e);if("2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Ik(e,t,n,r,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,i.Id="rId"+t,i.Type=r,i.Target=n,a?i.TargetMode=a:[Ck.HLINK,Ck.XPATH,Ck.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}var Pk="application/vnd.oasis.opendocument.spreadsheet";function Lk(e,t,n){return[' \n',' \n'," \n"].join("")}function Dk(){return'SheetJS '+WE.version+""}var Nk=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],Fk=function(){for(var e=new Array(Nk.length),t=0;t]*>([\\s\\S]*?)")}return e}();function Uk(e){var t={};e=vA(e);for(var n=0;n0&&(t[r[1]]=iA(i[1])),"date"===r[2]&&t[r[1]]&&(t[r[1]]=CM(t[r[1]]))}return t}function Bk(e,t,n,r,i){null==i[e]&&null!=t&&""!==t&&(i[e]=t,t=oA(t),r[r.length]=n?CA(e,t,n):MA(e,t))}function zk(e,t){var n=t||{},r=[$M,CA("cp:coreProperties",null,{"xmlns:cp":IA.CORE_PROPS,"xmlns:dc":IA.dc,"xmlns:dcterms":IA.dcterms,"xmlns:dcmitype":IA.dcmitype,"xmlns:xsi":IA.xsi})],i={};if(!e&&!n.Props)return r.join("");e&&(null!=e.CreatedDate&&Bk("dcterms:created","string"==typeof e.CreatedDate?e.CreatedDate:kA(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i),null!=e.ModifiedDate&&Bk("dcterms:modified","string"==typeof e.ModifiedDate?e.ModifiedDate:kA(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i));for(var a=0;a!=Nk.length;++a){var s=Nk[a],o=n.Props&&null!=n.Props[s[1]]?n.Props[s[1]]:e?e[s[1]]:null;!0===o?o="1":!1===o?o="0":"number"==typeof o&&(o=String(o)),null!=o&&Bk(s[0],o,null,r,i)}return r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}var Vk=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Hk=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function jk(e,t,n,r){var i=[];if("string"==typeof e)i=EA(e,r);else for(var a=0;a0)for(var l=0;l!==i.length;l+=2){switch(c=+i[l+1].v,i[l].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":n.Worksheets=c,n.SheetNames=s.slice(o,o+c);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":n.NamedRanges=c,n.DefinedNames=s.slice(o,o+c);break;case"Charts":case"Diagramme":n.Chartsheets=c,n.ChartNames=s.slice(o,o+c)}o+=c}}function Wk(e){var t=[],n=CA;return e||(e={}),e.Application="SheetJS",t[t.length]=$M,t[t.length]=CA("Properties",null,{xmlns:IA.EXT_PROPS,"xmlns:vt":IA.vt}),Vk.forEach((function(r){if(void 0!==e[r[1]]){var i;switch(r[2]){case"string":i=oA(String(e[r[1]]));break;case"bool":i=e[r[1]]?"true":"false"}void 0!==i&&(t[t.length]=n(r[0],i))}})),t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","Worksheets")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map((function(e){return""+oA(e)+""})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var Gk=/<[^>]+>[^<]*/g;function Xk(e){var t=[$M,CA("Properties",null,{xmlns:IA.CUST_PROPS,"xmlns:vt":IA.vt})];if(!e)return t.join("");var n=1;return pM(e).forEach((function(r){++n,t[t.length]=CA("property",function(e,t){switch(typeof e){case"string":var n=CA("vt:lpwstr",oA(e));return t&&(n=n.replace(/"/g,"_x0022_")),n;case"number":return CA((0|e)==e?"vt:i4":"vt:r8",oA(String(e)));case"boolean":return CA("vt:bool",e?"true":"false")}if(e instanceof Date)return CA("vt:filetime",kA(e));throw new Error("Unable to serialize "+e)}(e[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:oA(r)})})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var qk,$k={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Yk(e,t,n){qk||(qk=gM($k)),e[t=qk[t]||t]=n}function Zk(e){var t=e.read_shift(4),n=e.read_shift(4);return new Date(1e3*(n/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function Kk(e,t,n){var r=e.l,i=e.read_shift(0,"lpstr-cp");if(n)for(;e.l-r&3;)++e.l;return i}function Jk(e,t,n){var r=e.read_shift(0,"lpwstr");return n&&(e.l+=4-(r.length+1&3)&3),r}function Qk(e,t,n){return 31===t?Jk(e):Kk(e,0,n)}function eR(e,t,n){return Qk(e,t,!1===n?0:4)}function tR(e){var t=e.l,n=iR(e,mk);return 0==e[e.l]&&0==e[e.l+1]&&e.l-t&2&&(e.l+=2),[n,iR(e,fk)]}function nR(e,t){for(var n=e.read_shift(4),r={},i=0;i!=n;++i){var a=e.read_shift(4),s=e.read_shift(4);r[a]=e.read_shift(s,1200===t?"utf16le":"utf8").replace(mT,"").replace(gT,"!"),1200===t&&s%2&&(e.l+=2)}return 3&e.l&&(e.l=e.l>>3<<2),r}function rR(e){var t=e.read_shift(4),n=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),n}function iR(e,t,n){var r,i=e.read_shift(2),a=n||{};if(e.l+=2,t!==dk&&i!==t&&-1===gk.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&i)))throw new Error("Expected type "+t+" saw "+i);switch(t===dk?i:t){case 2:return r=e.read_shift(2,"i"),a.raw||(e.l+=2),r;case 3:return r=e.read_shift(4,"i");case 11:return 0!==e.read_shift(4);case 19:return r=e.read_shift(4);case 30:return Kk(e,0,4).replace(mT,"");case 31:return Jk(e);case 64:return Zk(e);case 65:return rR(e);case 71:return function(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}(e);case 80:return eR(e,i,!a.raw).replace(mT,"");case 81:return function(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return Qk(e,t,0)}(e,i).replace(mT,"");case 4108:return function(e){for(var t=e.read_shift(4),n=[],r=0;r0&&(n%=Math.pow(2,32),r+=i);var a=gC(8);return a.write_shift(4,n),a.write_shift(4,r),a}(t);break;case 31:case 80:for((r=gC(4+2*(t.length+1)+(t.length%2?0:2))).write_shift(4,t.length+1),r.write_shift(0,t,"dbcs");r.l!=r.length;)r.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return pT([n,r])}function sR(e,t){var n=e.l,r=e.read_shift(4),i=e.read_shift(4),a=[],s=0,o=0,c=-1,l={};for(s=0;s!=i;++s){var u=e.read_shift(4),h=e.read_shift(4);a[s]=[u,h+n]}a.sort((function(e,t){return e[1]-t[1]}));var f={};for(s=0;s!=i;++s){if(e.l!==a[s][1]){var d=!0;if(s>0&&t)switch(t[a[s-1][0]].t){case 2:e.l+2===a[s][1]&&(e.l+=2,d=!1);break;case 80:case 4108:e.l<=a[s][1]&&(e.l=a[s][1],d=!1)}if((!t||0==s)&&e.l<=a[s][1]&&(d=!1,e.l=a[s][1]),d)throw new Error("Read Error: Expected address "+a[s][1]+" at "+e.l+" :"+s)}if(t){var p=t[a[s][0]];if(f[p.n]=iR(e,p.t,{raw:!0}),"version"===p.p&&(f[p.n]=String(f[p.n]>>16)+"."+("0000"+String(65535&f[p.n])).slice(-4)),"CodePage"==p.n)switch(f[p.n]){case 0:f[p.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:YE(o=f[p.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+f[p.n])}}else if(1===a[s][0]){if(o=f.CodePage=iR(e,hk),YE(o),-1!==c){var m=e.l;e.l=a[c][1],l=nR(e,o),e.l=m}}else if(0===a[s][0]){if(0===o){c=s,e.l=a[s+1][1];continue}l=nR(e,o)}else{var g,v=l[a[s][0]];switch(e[e.l]){case 65:e.l+=4,g=rR(e);break;case 30:case 31:e.l+=4,g=eR(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,g=e.read_shift(4,"i");break;case 19:e.l+=4,g=e.read_shift(4);break;case 5:e.l+=4,g=e.read_shift(8,"f");break;case 11:e.l+=4,g=dR(e,4);break;case 64:e.l+=4,g=CM(Zk(e));break;default:throw new Error("unparsed value: "+e[e.l])}f[v]=g}}return e.l=n+r,f}var oR=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function cR(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64}return-1}function lR(e,t,n){var r=gC(8),i=[],a=[],s=8,o=0,c=gC(8),l=gC(8);if(c.write_shift(4,2),c.write_shift(4,1200),l.write_shift(4,1),a.push(c),i.push(l),s+=8+c.length,!t){(l=gC(8)).write_shift(4,0),i.unshift(l);var u=[gC(4)];for(u[0].write_shift(4,e.length),o=0;o-1||Hk.indexOf(e[o][0])>-1)&&null!=e[o][1]){var f=e[o][1],d=0;if(t){var p=n[d=+t[e[o][0]]];if("version"==p.p&&"string"==typeof f){var m=f.split(".");f=(+m[0]<<16)+(+m[1]||0)}c=aR(p.t,f)}else{var g=cR(f);-1==g&&(g=31,f=String(f)),c=aR(g,f)}a.push(c),(l=gC(8)).write_shift(4,t?d:2+o),i.push(l),s+=8+c.length}var v=8*(a.length+1);for(o=0;o=12?2:1),i="sbcs-cont";(n&&n.biff,n&&8!=n.biff)?12==n.biff&&(i="wstr"):e.read_shift(1)&&(i="dbcs-cont");return n.biff>=2&&n.biff<=5&&(i="cpstr"),r?e.read_shift(r,i):""}function bR(e){var t,n=e.read_shift(2),r=e.read_shift(1),i=4&r,a=8&r,s=1+(1&r),o=0,c={};a&&(o=e.read_shift(2)),i&&(t=e.read_shift(4));var l=2==s?"dbcs-cont":"sbcs-cont",u=0===n?"":e.read_shift(n,l);return a&&(e.l+=4*o),i&&(e.l+=t),c.t=u,a||(c.raw=""+c.t+"",c.r=c.t),c}function xR(e){var t=e.t||"",n=gC(3);n.write_shift(2,t.length),n.write_shift(1,1);var r=gC(2*t.length);return r.write_shift(2*t.length,t,"utf16le"),pT([n,r])}function wR(e,t,n){if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}function SR(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):wR(e,r,n)}function ER(e,t,n){if(n.biff>5)return SR(e,0,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function TR(e,t,n){return n||(n=gC(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,"utf16le"),n}function MR(e,t){var n=e.read_shift(16);switch(n){case"e0c9ea79f9bace118c8200aa004ba90b":return function(e){var t=e.read_shift(4),n=e.l,r=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(r=!0),e.l=n);var i=e.read_shift((r?t-24:t)>>1,"utf16le").replace(mT,"");return r&&(e.l+=24),i}(e);case"0303000000000000c000000000000046":return function(e){for(var t=e.read_shift(2),n="";t-- >0;)n+="../";var r=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");if(0===e.read_shift(4))return n+r.replace(/\\/g,"/");var i=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");return n+e.read_shift(i>>1,"utf16le").replace(mT,"")}(e);default:throw new Error("Unsupported Moniker "+n)}}function AR(e){var t=e.read_shift(4);return t>0?e.read_shift(t,"utf16le").replace(mT,""):""}function CR(e,t){t||(t=gC(6+2*e.length)),t.write_shift(4,1+e.length);for(var n=0;n-1?31:23;switch(r.charAt(0)){case"#":a=28;break;case".":a&=-3}t.write_shift(4,2),t.write_shift(4,a);var s=[8,6815827,6619237,4849780,83];for(n=0;n-1?r.slice(0,i):r;for(t.write_shift(4,2*(o.length+1)),n=0;n-1?r.slice(i+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n8?4:2;return[e.read_shift(r),e.read_shift(r,"i"),e.read_shift(r,"i")]}function DR(e){return[e.read_shift(2),nk(e)]}function NR(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:n}}}function FR(e,t){return t||(t=gC(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function UR(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(1),r:t},e:{c:e.read_shift(1),r:n}}}var BR=UR;function zR(e){e.l+=4;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return e.l+=12,[n,t,r]}function VR(e){e.l+=2,e.l+=e.read_shift(2)}var HR={0:VR,4:VR,5:VR,6:VR,7:function(e){return e.l+=4,e.cf=e.read_shift(2),{}},8:VR,9:VR,10:VR,11:VR,12:VR,13:function(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t},14:VR,15:VR,16:VR,17:VR,18:VR,19:VR,20:VR,21:zR};function jR(e,t){var n={BIFFVer:0,dt:0};switch(n.BIFFVer=e.read_shift(2),(t-=2)>=2&&(n.dt=e.read_shift(2),e.l-=2),n.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+n.BIFFVer)}return e.read_shift(t),n}function WR(e,t,n){var r=1536,i=16;switch(n.bookType){case"biff8":case"xla":break;case"biff5":r=1280,i=8;break;case"biff4":r=4,i=6;break;case"biff3":r=3,i=6;break;case"biff2":r=2,i=4;break;default:throw new Error("unsupported BIFF version")}var a=gC(i);return a.write_shift(2,r),a.write_shift(2,t),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function GR(e,t){var n=!t||t.biff>=8?2:1,r=gC(8+n*e.name.length);r.write_shift(4,e.pos),r.write_shift(1,e.hs||0),r.write_shift(1,e.dt),r.write_shift(1,e.name.length),t.biff>=8&&r.write_shift(1,1),r.write_shift(n*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=r.slice(0,r.l);return i.l=r.l,i}function XR(e,t,n){var r=0;n&&2==n.biff||(r=e.read_shift(2));var i=e.read_shift(2);return n&&2==n.biff&&(r=1-(i>>15),i&=32767),[{Unsynced:1&r,DyZero:(2&r)>>1,ExAsc:(4&r)>>2,ExDsc:(8&r)>>3},i]}function qR(e,t,n,r){var i=n&&5==n.biff;r||(r=gC(i?3+t.length:5+2*t.length)),r.write_shift(2,e),r.write_shift(i?1:2,t.length),i||r.write_shift(1,1),r.write_shift((i?1:2)*t.length,t,i?"sbcs":"utf16le");var a=r.length>r.l?r.slice(0,r.l):r;return null==a.l&&(a.l=a.length),a}var $R=ER;function YR(e,t,n){var r=e.l+t,i=8!=n.biff&&n.biff?2:4,a=e.read_shift(i),s=e.read_shift(i),o=e.read_shift(2),c=e.read_shift(2);return e.l=r,{s:{r:a,c:o},e:{r:s,c:c}}}function ZR(e,t,n,r){var i=n&&5==n.biff;r||(r=gC(i?16:20)),r.write_shift(2,0),e.style?(r.write_shift(2,e.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,e.numFmtId||0),r.write_shift(2,t<<4));var a=0;return e.numFmtId>0&&i&&(a|=1024),r.write_shift(4,a),r.write_shift(4,0),i||r.write_shift(4,0),r.write_shift(2,0),r}function KR(e,t,n){var r=IR(e);2!=n.biff&&9!=t||++e.l;var i=function(e){var t=e.read_shift(1);return 1===e.read_shift(1)?t:1===t}(e);return r.val=i,r.t=!0===i||!1===i?"b":"e",r}var JR=function(e,t,n){return 0===t?"":ER(e,0,n)};function QR(e,t,n){var r,i=e.read_shift(2),a={fBuiltIn:1&i,fWantAdvise:i>>>1&1,fWantPict:i>>>2&1,fOle:i>>>3&1,fOleLink:i>>>4&1,cf:i>>>5&1023,fIcon:i>>>15&1};return 14849===n.sbcch&&(r=function(e,t,n){e.l+=4,t-=4;var r=e.l+t,i=_R(e,0,n),a=e.read_shift(2);if(a!==(r-=e.l))throw new Error("Malformed AddinUdf: padding = "+r+" != "+a);return e.l+=a,i}(e,t-2,n)),a.body=r||e.read_shift(t-2),"string"==typeof r&&(a.Name=r),a}var eO=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function tO(e,t,n){var r=e.l+t,i=e.read_shift(2),a=e.read_shift(1),s=e.read_shift(1),o=e.read_shift(n&&2==n.biff?1:2),c=0;(!n||n.biff>=5)&&(5!=n.biff&&(e.l+=2),c=e.read_shift(2),5==n.biff&&(e.l+=2),e.l+=4);var l=wR(e,s,n);32&i&&(l=eO[l.charCodeAt(0)]);var u=r-e.l;n&&2==n.biff&&--u;var h=r!=e.l&&0!==o&&u>0?function(e,t,n,r){var i,a=e.l+t,s=_P(e,r,n);a!==e.l&&(i=yP(e,a-e.l,s,n));return[s,i]}(e,u,n,o):[];return{chKey:a,Name:l,itab:c,rgce:h}}function nO(e,t,n){if(n.biff<8)return function(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=_R(e,0,n);return 3==r.charCodeAt(0)?r.slice(1):r}(e,0,n);for(var r=[],i=e.l+t,a=e.read_shift(n.biff>8?4:2);0!=a--;)r.push(LR(e,n.biff,n));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return r}function rO(e,t,n){var r=BR(e);switch(n.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[r,TP(e,t,n)]}var iO={8:function(e,t){var n=e.l+t;e.l+=10;var r=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var i=e.read_shift(1);return e.l+=i,e.l=n,{fmt:r}}};function aO(e){var t=gC(24),n=CC(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(r[i],16));return pT([t,kR(e[1])])}function sO(e){var t=e[1].Tooltip,n=gC(10+2*(t.length+1));n.write_shift(2,2048);var r=CC(e[0]);n.write_shift(2,r.r),n.write_shift(2,r.r),n.write_shift(2,r.c),n.write_shift(2,r.c);for(var i=0;i=12?4:2,i=e.read_shift(r),a=e.read_shift(r),s=e.read_shift(r),o=e.read_shift(r),c=e.read_shift(2);2==r&&(e.l+=2);var l={s:i,e:a,w:s,ixfe:o,flags:c};return(n.biff>=5||!n.biff)&&(l.level=c>>8&7),l}var cO=IR,lO=vR,uO=SR;var hO=[2,3,48,49,131,139,140,245],fO=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=gM({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=n||{};r.dateNF||(r.dateNF="yyyymmdd");var i=FC(function(t,n){var r=[],i=cT(1);switch(n.type){case"base64":i=uT(aT(t));break;case"binary":i=uT(t);break;case"buffer":case"array":i=t}pC(i,0);var a=i.read_shift(1),s=!!(136&a),o=!1,c=!1;switch(a){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:o=!0,s=!0;break;case 140:c=!0;break;default:throw new Error("DBF Unsupported Version: "+a.toString(16))}var l=0,u=521;2==a&&(l=i.read_shift(2)),i.l+=3,2!=a&&(l=i.read_shift(4)),l>1048576&&(l=1e6),2!=a&&(u=i.read_shift(2));var h=i.read_shift(2),f=n.codepage||1252;2!=a&&(i.l+=16,i.read_shift(1),0!==i[i.l]&&(f=e[i[i.l]]),i.l+=1,i.l+=2),c&&(i.l+=36);for(var d=[],p={},m=Math.min(i.length,2==a?521:u-10-(o?264:0)),g=c?32:11;i.l0;)if(42!==i[i.l])for(++i.l,r[++v]=[],y=0,y=0;y!=d.length;++y){var _=i.slice(i.l,i.l+d[y].len);i.l+=d[y].len,pC(_,0);var b=QE.utils.decode(f,_);switch(d[y].type){case"C":b.trim().length&&(r[v][y]=b.replace(/\s+$/,""));break;case"D":8===b.length?r[v][y]=new Date(+b.slice(0,4),+b.slice(4,6)-1,+b.slice(6,8)):r[v][y]=b;break;case"F":r[v][y]=parseFloat(b.trim());break;case"+":case"I":r[v][y]=c?2147483648^_.read_shift(-4,"i"):_.read_shift(4,"i");break;case"L":switch(b.trim().toUpperCase()){case"Y":case"T":r[v][y]=!0;break;case"N":case"F":r[v][y]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+b+"|")}break;case"M":if(!s)throw new Error("DBF Unexpected MEMO for type "+a.toString(16));r[v][y]="##MEMO##"+(c?parseInt(b.trim(),10):_.read_shift(4));break;case"N":(b=b.replace(/\u0000/g,"").trim())&&"."!=b&&(r[v][y]=+b||0);break;case"@":r[v][y]=new Date(_.read_shift(-8,"f")-621356832e5);break;case"T":r[v][y]=new Date(864e5*(_.read_shift(4)-2440588)+_.read_shift(4));break;case"Y":r[v][y]=_.read_shift(4,"i")/1e4+_.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[v][y]=-_.read_shift(-8,"f");break;case"B":if(o&&8==d[y].len){r[v][y]=_.read_shift(8,"f");break}case"G":case"P":_.l+=d[y].len;break;case"0":if("_NullFlags"===d[y].name)break;default:throw new Error("DBF Unsupported data type "+d[y].type)}}else i.l+=h;if(2!=a&&i.l=0&&YE(+i.codepage),"string"==i.type)throw new Error("Cannot write DBF to JS string");var a=yC(),s=XN(e,{header:1,raw:!0,cellDates:!0}),o=s[0],c=s.slice(1),l=e["!cols"]||[],u=0,h=0,f=0,d=1;for(u=0;u250&&(b=250),"C"==(_=((l[u]||{}).DBF||{}).type)&&l[u].DBF.len>b&&(b=l[u].DBF.len),"B"==y&&"N"==_&&(y="N",v[u]=l[u].DBF.dec,b=l[u].DBF.len),g[u]="C"==y||"N"==_?b:r[y]||0,d+=g[u],m[u]=y}else m[u]="?"}var w=a.next(32);for(w.write_shift(4,318902576),w.write_shift(4,c.length),w.write_shift(2,296+32*f),w.write_shift(2,d),u=0;u<4;++u)w.write_shift(4,0);for(w.write_shift(4,0|(+t[GE]||3)<<8),u=0,h=0;u":190,"?":191,"{":223},t=new RegExp("N("+pM(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,n){var r=e[n];return"number"==typeof r?nT(r):r},r=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:nT(r)};function i(e,i){var a,s=e.split(/[\n\r]+/),o=-1,c=-1,l=0,u=0,h=[],f=[],d=null,p={},m=[],g=[],v=[],y=0;for(+i.codepage>=0&&YE(+i.codepage);l!==s.length;++l){y=0;var _,b=s[l].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(t,n),x=b.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),w=x[0];if(b.length>0)switch(w){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==x[1].charAt(0)&&f.push(b.slice(3).replace(/;;/g,";"));break;case"C":var S=!1,E=!1,T=!1,M=!1,A=-1,C=-1;for(u=1;u-1&&h[A][C];if(!R||!R[1])throw new Error("SYLK shared formula cannot find base");h[o][c][1]=ZI(R[1],{r:o-A,c:c-C})}break;case"F":var O=0;for(u=1;u0?(m[o].hpt=y,m[o].hpx=aI(y)):0===y&&(m[o].hidden=!0);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+b)}O<1&&(d=null);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+b)}}return m.length>0&&(p["!rows"]=m),g.length>0&&(p["!cols"]=g),i&&i.sheetRows&&(h=h.slice(0,i.sheetRows)),[h,p]}function a(e,t){var n=function(e,t){switch(t.type){case"base64":return i(aT(e),t);case"binary":return i(e,t);case"buffer":return i(sT&&Buffer.isBuffer(e)?e.toString("binary"):fT(e),t);case"array":return i(kM(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),r=n[0],a=n[1],s=FC(r,t);return pM(a).forEach((function(e){s[e]=a[e]})),s}function s(e,t,n,r){var i="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":i+=e.v||0,e.f&&!e.F&&(i+=";E"+YI(e.f,{r:n,c:r}));break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w||e.v;break;case"d":i+='"'+(e.w||e.v)+'"';break;case"s":i+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return i}return e["|"]=254,{to_workbook:function(e,t){return DC(a(e,t),t)},to_sheet:a,from_sheet:function(e,t){var n,r,i=["ID;PWXL;N;E"],a=[],o=IC(e["!ref"]),c=Array.isArray(e),l="\r\n";i.push("P;PGeneral"),i.push("F;P0;DG0G8;M255"),e["!cols"]&&(r=i,e["!cols"].forEach((function(e,t){var n="F;W"+(t+1)+" "+(t+1)+" ";e.hidden?n+="0":("number"!=typeof e.width||e.wpx||(e.wpx=KO(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=JO(e.wpx)),"number"==typeof e.wch&&(n+=Math.round(e.wch)))," "!=n.charAt(n.length-1)&&r.push(n)}))),e["!rows"]&&function(e,t){t.forEach((function(t,n){var r="F;";t.hidden?r+="M0;":t.hpt?r+="M"+20*t.hpt+";":t.hpx&&(r+="M"+20*iI(t.hpx)+";"),r.length>2&&e.push(r+"R"+(n+1))}))}(i,e["!rows"]),i.push("B;Y"+(o.e.r-o.s.r+1)+";X"+(o.e.c-o.s.c+1)+";D"+[o.s.c,o.s.r,o.e.c,o.e.r].join(" "));for(var u=o.s.r;u<=o.e.r;++u)for(var h=o.s.c;h<=o.e.c;++h){var f=kC({r:u,c:h});(n=c?(e[u]||[])[h]:e[f])&&(null!=n.v||n.f&&!n.F)&&a.push(s(n,0,u,h))}return i.join(l)+l+a.join(l)+l+"E"+l}}}(),pO=function(){function e(e,t){for(var n=e.split("\n"),r=-1,i=-1,a=0,s=[];a!==n.length;++a)if("BOT"!==n[a].trim()){if(!(r<0)){for(var o=n[a].trim().split(","),c=o[0],l=o[1],u=n[++a]||"";1&(u.match(/["]/g)||[]).length&&a=0?o=l:i=l}})),c>=0&&-1==o&&i>=0&&(o=i,i=-1);var l=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);7==l.length&&(l="0"+l),8==l.length&&(l="20"+l);var u=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return-1==s&&-1==o&&-1==c?l:-1==r&&-1==i&&-1==a?u:l+"T"+u}(0,n.dateNF,t.match(y)||[]),i=1),n.cellDates?(r.t="d",r.v=CM(t,i)):(r.t="n",r.v=_M(CM(t,i))),!1!==n.cellText&&(r.w=iM(r.z,r.v instanceof Date?_M(r.v):r.v)),n.cellNF||delete r.z}else r.t="s",r.v=t;else r.t="n",!1!==n.cellText&&(r.w=t),r.v=l;if("z"==r.t||(n.dense?(a[o]||(a[o]=[]),a[o][c]=r):a[kC({c:c,r:o})]=r),u=h+1,m=e.charCodeAt(u),s.e.c0&&_(),a["!ref"]=OC(s),a}function a(t,n){return n&&n.PRN?n.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?i(t,n):FC(function(t,n){var r=n||{},i=[];if(!t||0===t.length)return i;for(var a=t.split(/[\r\n]/),s=a.length-1;s>=0&&0===a[s].length;)--s;for(var o=10,c=0,l=0;l<=s;++l)-1==(c=a[l].indexOf(" "))?c=a[l].length:c++,o=Math.max(o,c);for(l=0;l<=s;++l){i[l]=[];var u=0;for(e(a[l].slice(0,o).trim(),i,l,u,r),u=1;u<=(a[l].length-o)/10+1;++u)e(a[l].slice(o+10*(u-1),o+10*u).trim(),i,l,u,r)}return r.sheetRows&&(i=i.slice(0,r.sheetRows)),i}(t,n),n):i(t,n)}function s(e,t){var n="",r="string"==t.type?[0,0,0,0]:DN(e,t);switch(t.type){case"base64":n=aT(e);break;case"binary":case"string":n=e;break;case"buffer":n=65001==t.codepage?e.toString("utf8"):t.codepage&&void 0!==QE?QE.utils.decode(t.codepage,e):sT&&Buffer.isBuffer(e)?e.toString("binary"):fT(e);break;case"array":n=kM(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==r[0]&&187==r[1]&&191==r[2]?n=vA(n.slice(3)):"string"!=t.type&&"buffer"!=t.type&&65001==t.codepage?n=vA(n):"binary"==t.type&&void 0!==QE&&t.codepage&&(n=QE.utils.decode(t.codepage,QE.utils.encode(28591,n))),"socialcalc:version:"==n.slice(0,19)?mO.to_sheet("string"==t.type?n:vA(n),t):a(n,t)}return{to_workbook:function(e,t){return DC(s(e,t),t)},to_sheet:s,from_sheet:function(e){for(var t,n=[],r=IC(e["!ref"]),i=Array.isArray(e),a=r.s.r;a<=r.e.r;++a){for(var s=[],o=r.s.c;o<=r.e.c;++o){var c=kC({r:a,c:o});if((t=i?(e[a]||[])[o]:e[c])&&null!=t.v){for(var l=(t.w||(LC(t),t.w)||"").slice(0,10);l.length<10;)l+=" ";s.push(l+(0===o?" ":""))}else s.push(" ")}n.push(s.join(""))}return n.join("\n")}}}();var vO=function(){function e(e,t,n){if(e){pC(e,e.l||0);for(var r=n.Enum||v;e.l=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=v,e(t,(function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:h=e;break;case 204:e&&(s=e);break;case 222:s=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||MT[14],r.cellDates&&(e[1].t="d",e[1].v=SM(e[1].v))),r.qpro&&e[3]>o&&(i["!ref"]=OC(h),c[a]=i,l.push(a),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},o=e[3],a=s||"Sheet"+(o+1),s="");var u=r.dense?(i[e[0].r]||[])[e[0].c]:i[kC(e[0])];if(u){u.t=e[1].t,u.v=e[1].v,null!=e[1].z&&(u.z=e[1].z),null!=e[1].f&&(u.f=e[1].f);break}r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[kC(e[0])]=e[1]}}),r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=y,14==t[2]&&(r.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:a=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>o&&(i["!ref"]=OC(h),c[a]=i,l.push(a),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},o=e[3],a="Sheet"+(o+1)),f>0&&e[0].r>=f)break;r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[kC(e[0])]=e[1],h.e.c=128?95:a)}return r.write_shift(1,0),r}function a(e,t,n){var r=gC(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function s(e,t,n){var r=gC(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function o(e,t,n){var r=32768&t;return t=(r?e:0)+((t&=-32769)>=8192?t-16384:t),(r?"":"$")+(n?AC(t):TC(t))}var c={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},l=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function u(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function h(e,t,n,r){var i=gC(6+r.length);i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),i.write_shift(1,39);for(var a=0;a=128?95:s)}return i.write_shift(1,0),i}function f(e,t){var n=u(e),r=e.read_shift(4),i=e.read_shift(4),a=e.read_shift(2);if(65535==a)return 0===r&&3221225472===i?(n[1].t="e",n[1].v=15):0===r&&3489660928===i?(n[1].t="e",n[1].v=42):n[1].v=0,n;var s=32768&a;return a=(32767&a)-16446,n[1].v=(1-2*s)*(i*Math.pow(2,a+32)+r*Math.pow(2,a)),n}function d(e,t,n,r){var i=gC(14);if(i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),0==r)return i.write_shift(4,0),i.write_shift(4,0),i.write_shift(2,65535),i;var a,s=0,o=0,c=0;return r<0&&(s=1,r=-r),o=0|Math.log2(r),0==(2147483648&(c=(r/=Math.pow(2,o-31))>>>0))&&(++o,c=(r/=2)>>>0),r-=c,c|=2147483648,c>>>=0,a=(r*=Math.pow(2,32))>>>0,i.write_shift(4,a),i.write_shift(4,c),o+=16383+(s?32768:0),i.write_shift(2,o),i}function p(e,t){var n=u(e),r=e.read_shift(8,"f");return n[1].v=r,n}function m(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function g(e,t){var n=gC(5+e.length);n.write_shift(2,14e3),n.write_shift(2,t);for(var r=0;r127?95:i}return n[n.l++]=0,n}var v={0:{n:"BOF",f:mR},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,r){var i=n(e,0,r);return i[1].v=e.read_shift(2,"i"),i}},14:{n:"NUMBER",f:function(e,t,r){var i=n(e,0,r);return i[1].v=e.read_shift(8,"f"),i}},15:{n:"LABEL",f:r},16:{n:"FORMULA",f:function(e,t,r){var i=e.l+t,a=n(e,0,r);if(a[1].v=e.read_shift(8,"f"),r.qpro)e.l=i;else{var s=e.read_shift(2);!function(e,t){pC(e,0);var n=[],r=0,i="",a="",s="",u="";for(;e.ln.length)return;var m=n.slice(-r);n.length-=r,n.push(c[h][0]+"("+m.join(",")+")")}}}1==n.length&&(t[1].f=""+n[0])}(e.slice(e.l,e.l+s),a),e.l+=s}return a}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:r},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:m},222:{n:"SHEETNAMELP",f:function(e,t){var n=e[e.l++];n>t-1&&(n=t-1);for(var r="";r.length>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64}return n[1].v=r,n}},25:{n:"FORMULA19",f:function(e,t){var n=f(e);return e.l+=t-14,n}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var n={},r=e.l+t;e.l>6,n}},38:{n:"??"},39:{n:"NUMBER27",f:p},40:{n:"FORMULA28",f:function(e,t){var n=p(e);return e.l+=t-10,n}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:m},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,t,n){if(n.qpro&&!(t<21)){var r=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[r,e.read_shift(t-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){var n=t||{};if(+n.codepage>=0&&YE(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r,o,c=yC(),l=IC(e["!ref"]),u=Array.isArray(e),h=[];kD(c,0,(r=1030,(o=gC(2)).write_shift(2,r),o)),kD(c,6,function(e){var t=gC(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(l));for(var f=Math.min(l.e.r,8191),d=l.s.r;d<=f;++d)for(var p=TC(d),m=l.s.c;m<=l.e.c;++m){d===l.s.r&&(h[m]=AC(m));var g=h[m]+p,v=u?(e[d]||[])[m]:e[g];if(v&&"z"!=v.t)if("n"==v.t)(0|v.v)==v.v&&v.v>=-32768&&v.v<=32767?kD(c,13,a(d,m,v.v)):kD(c,14,s(d,m,v.v));else kD(c,15,i(d,m,LC(v).slice(0,239)))}return kD(c,1),c.end()},book_to_wk3:function(e,t){var n=t||{};if(+n.codepage>=0&&YE(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=yC();kD(r,0,function(e){var t=gC(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var n=0,r=0,i=0,a=0;a8191&&(n=8191);return t.write_shift(2,n),t.write_shift(1,i),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var i=0,a=0;i":case"":t.shadow=1;break;case"":break;case"":case"":t.outline=1;break;case"":break;case"":case"":t.strike=1;break;case"":break;case"":case"":t.u=1;break;case"":break;case"":case"":t.b=1;break;case"":break;case"":case"":t.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":case"":case"":case"":case"":case"":break;case"":i=!1;break;default:if(47!==a[0].charCodeAt(1)&&!i)throw new Error("Unrecognized rich format "+a[0])}}return t}(a[1])),i}var r=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(e){return e.replace(r,"").split(i).map(n).filter((function(e){return e.v}))}}(),_O=function(){var e=/(\r\n|\n)/g;function t(t){var n=[[],t.v,[]];return t.v?(t.s&&function(e,t,n){var r=[];e.u&&r.push("text-decoration: underline;"),e.uval&&r.push("text-underline-style:"+e.uval+";"),e.sz&&r.push("font-size:"+e.sz+"pt;"),e.outline&&r.push("text-effect: outline;"),e.shadow&&r.push("text-shadow: auto;"),t.push(''),e.b&&(t.push(""),n.push("")),e.i&&(t.push(""),n.push("")),e.strike&&(t.push(""),n.push(""));var i=e.valign||"";"superscript"==i||"super"==i?i="sup":"subscript"==i&&(i="sub"),""!=i&&(t.push("<"+i+">"),n.push("")),n.push("")}(t.s,n[0],n[2]),n[0].join("")+n[1].replace(e,"
")+n[2].join("")):""}return function(e){return e.map(t).join("")}}(),bO=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,xO=/<(?:\w+:)?r>/,wO=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function SO(e,t){var n=!t||t.cellHTML,r={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(r.t=iA(vA(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),r.r=vA(e),n&&(r.h=uA(r.t))):e.match(xO)&&(r.r=vA(e),r.t=iA(vA((e.replace(wO,"").match(bO)||[]).join("").replace(KM,""))),n&&(r.h=_O(yO(r.r)))),r):{t:""}}var EO=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,TO=/<(?:\w+:)?(?:si|sstItem)>/g,MO=/<\/(?:\w+:)?(?:si|sstItem)>/;var AO=/^\s|\s$|[\t\n\r]/;function CO(e,t){if(!t.bookSST)return"";var n=[$M];n[n.length]=CA("sst",null,{xmlns:PA[0],count:e.Count,uniqueCount:e.Unique});for(var r=0;r!=e.length;++r)if(null!=e[r]){var i=e[r],a="";i.r?a+=i.r:(a+=""),a+="",n[n.length]=a}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var kO=function(e,t){var n=!1;return null==t&&(n=!0,t=gC(15+4*e.t.length)),t.write_shift(1,0),zC(e.t,t),n?t.slice(0,t.l):t};function RO(e){var t=yC();_C(t,159,function(e,t){return t||(t=gC(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}(e));for(var n=0;n=4&&(e.l+=t-4),n}function PO(e){for(var t=e.read_shift(4),n=e.l+t-4,r={},i=e.read_shift(4),a=[];i-- >0;)a.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(r.name=e.read_shift(0,"lpp4"),r.comps=a,e.l!=n)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+n);return r}function LO(e){var t=function(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=IO(e,4),t.U=IO(e,4),t.W=IO(e,4),t}(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record");return t}function DO(e,t){var n=e.l+t,r={};r.Flags=63&e.read_shift(4),e.l+=4,r.AlgID=e.read_shift(4);var i=!1;switch(r.AlgID){case 26126:case 26127:case 26128:i=36==r.Flags;break;case 26625:i=4==r.Flags;break;case 0:i=16==r.Flags||4==r.Flags||36==r.Flags;break;default:throw"Unrecognized encryption algorithm: "+r.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return r.AlgIDHash=e.read_shift(4),r.KeySize=e.read_shift(4),r.ProviderType=e.read_shift(4),e.l+=8,r.CSPName=e.read_shift(n-e.l>>1,"utf16le"),e.l=n,r}function NO(e,t){var n={},r=e.l+t;return e.l+=4,n.Salt=e.slice(e.l,e.l+16),e.l+=16,n.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),n.VerifierHash=e.slice(e.l,r),e.l=r,n}function FO(e){if(36!=(63&e.read_shift(4)))throw new Error("EncryptionInfo mismatch");var t=e.read_shift(4);return{t:"Std",h:DO(e,t),v:NO(e,e.length-e.l)}}function UO(){throw new Error("File is password-protected: ECMA-376 Extensible")}function BO(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var n=e.read_shift(e.length-e.l,"utf8"),r={};return n.replace(KM,(function(e){var n=eA(e);switch(tA(n[0])){case"":case"":case"":break;case"":case"=0;--n)r=((0==(16384&r)?0:1)|r<<1&32767)^t[n];return 52811^r}var VO=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],n=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],r=function(e,t){return 255&((n=e^t)/2|128*n);var n};return function(i){for(var a,s,o,c=OO(i),l=function(e){for(var r=t[e.length-1],i=104,a=e.length-1;a>=0;--a)for(var s=e[a],o=0;7!=o;++o)64&s&&(r^=n[i]),s*=2,--i;return r}(c),u=c.length,h=cT(16),f=0;16!=f;++f)h[f]=0;for(1==(1&u)&&(a=l>>8,h[u]=r(e[0],a),--u,a=255&l,s=c[c.length-1],h[u]=r(s,a));u>0;)a=l>>8,h[--u]=r(c[u],a),a=255&l,h[--u]=r(c[u],a);for(u=15,o=15-c.length;o>0;)a=l>>8,h[u]=r(e[o],a),--o,a=255&l,h[--u]=r(c[u],a),--u,--o;return h}}(),HO=function(e){var t=0,n=VO(e);return function(e){var r=function(e,t,n,r,i){var a,s;for(i||(i=t),r||(r=VO(e)),a=0;a!=t.length;++a)s=t[a],s=255&((s^=r[n])>>5|s<<3),i[a]=s,++n;return[i,n,r]}("",e,t,n);return t=r[1],r[0]}};function jO(e,t,n){var r=n||{};return r.Info=e.read_shift(2),e.l-=2,1===r.Info?r.Data=function(e){var t={},n=t.EncryptionVersionInfo=IO(e,4);if(1!=n.Major||1!=n.Minor)throw"unrecognized version code "+n.Major+" : "+n.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}(e):r.Data=function(e,t){var n={},r=n.EncryptionVersionInfo=IO(e,4);if(t-=4,2!=r.Minor)throw new Error("unrecognized minor version code: "+r.Minor);if(r.Major>4||r.Major<2)throw new Error("unrecognized major version code: "+r.Major);n.Flags=e.read_shift(4),t-=4;var i=e.read_shift(4);return t-=4,n.EncryptionHeader=DO(e,i),t-=i,n.EncryptionVerifier=NO(e,t),n}(e,t),r}var WO=function(){function e(e,n){switch(n.type){case"base64":return t(aT(e),n);case"binary":return t(e,n);case"buffer":return t(sT&&Buffer.isBuffer(e)?e.toString("binary"):fT(e),n);case"array":return t(kM(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){var n=(t||{}).dense?[]:{},r=e.match(/\\trowd.*?\\row\b/g);if(!r.length)throw new Error("RTF missing table");var i={s:{c:0,r:0},e:{c:0,r:r.length-1}};return r.forEach((function(e,t){Array.isArray(n)&&(n[t]=[]);for(var r,a=/\\\w+\b/g,s=0,o=-1;r=a.exec(e);){if("\\cell"===r[0]){var c=e.slice(s,a.lastIndex-r[0].length);if(" "==c[0]&&(c=c.slice(1)),++o,c.length){var l={v:c,t:"s"};Array.isArray(n)?n[t][o]=l:n[kC({r:t,c:o})]=l}}s=a.lastIndex}o>i.e.c&&(i.e.c=o)})),n["!ref"]=OC(i),n}return{to_workbook:function(t,n){return DC(e(t,n),n)},to_sheet:e,from_sheet:function(e){for(var t,n=["{\\rtf1\\ansi"],r=IC(e["!ref"]),i=Array.isArray(e),a=r.s.r;a<=r.e.r;++a){n.push("\\trowd\\trautofit1");for(var s=r.s.c;s<=r.e.c;++s)n.push("\\cellx"+(s+1));for(n.push("\\pard\\intbl"),s=r.s.c;s<=r.e.c;++s){var o=kC({r:a,c:s});(t=i?(e[a]||[])[s]:e[o])&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(LC(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}}}();function GO(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}function XO(e,t){if(0===t)return e;var n,r,i=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(t,n,r),a=Math.min(t,n,r),s=i-a;if(0===s)return[0,0,t];var o,c=0,l=i+a;switch(o=s/(l>1?2-l:l),i){case t:c=((n-r)/s+6)%6;break;case n:c=(r-t)/s+2;break;case r:c=(t-n)/s+4}return[c/6,o,l/2]}((r=(n=e).slice("#"===n[0]?1:0).slice(0,6),[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]));return i[2]=t<0?i[2]*(1+t):1-(1-i[2])*(1-t),GO(function(e){var t,n=e[0],r=e[1],i=e[2],a=2*r*(i<.5?i:1-i),s=i-a/2,o=[s,s,s],c=6*n;if(0!==r)switch(0|c){case 0:case 6:t=a*c,o[0]+=a,o[1]+=t;break;case 1:t=a*(2-c),o[0]+=t,o[1]+=a;break;case 2:t=a*(c-2),o[1]+=a,o[2]+=t;break;case 3:t=a*(4-c),o[1]+=t,o[2]+=a;break;case 4:t=a*(c-4),o[2]+=a,o[0]+=t;break;case 5:t=a*(6-c),o[2]+=t,o[0]+=a}for(var l=0;3!=l;++l)o[l]=Math.round(255*o[l]);return o}(i))}var qO=6,$O=15,YO=1,ZO=qO;function KO(e){return Math.floor((e+Math.round(128/ZO)/256)*ZO)}function JO(e){return Math.floor((e-5)/ZO*100+.5)/100}function QO(e){return Math.round((e*ZO+5)/ZO*256)/256}function eI(e){return QO(JO(KO(e)))}function tI(e){var t=Math.abs(e-eI(e)),n=ZO;if(t>.005)for(ZO=YO;ZO<$O;++ZO)Math.abs(e-eI(e))<=t&&(t=Math.abs(e-eI(e)),n=ZO);ZO=n}function nI(e){e.width?(e.wpx=KO(e.width),e.wch=JO(e.wpx),e.MDW=ZO):e.wpx?(e.wch=JO(e.wpx),e.width=QO(e.wch),e.MDW=ZO):"number"==typeof e.wch&&(e.width=QO(e.wch),e.wpx=KO(e.width),e.MDW=ZO),e.customWidth&&delete e.customWidth}var rI=96;function iI(e){return 96*e/rI}function aI(e){return e*rI/96}var sI={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};var oI=["numFmtId","fillId","fontId","borderId","xfId"],cI=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];var lI=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,r=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(a,s,o){var c,l={};return a?((c=(a=a.replace(//gm,"").replace(//gm,"")).match(e))&&function(e,t,n){t.NumberFmt=[];for(var r=pM(MT),i=0;i":case"":case"":case"":break;case"0){if(c>392){for(c=392;c>60&&null!=t.NumberFmt[c];--c);t.NumberFmt[c]=o}aM(o,c)}break;default:if(n.WTF)throw new Error("unrecognized "+s[0]+" in numFmts")}}}(c,l,o),(c=a.match(r))&&function(e,t,n,r){t.Fonts=[];var i={},a=!1;(e[0].match(KM)||[]).forEach((function(e){var s=eA(e);switch(tA(s[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":case"":t.Fonts.push(i),i={};break;case"":i.bold=1;break;case"":i.italic=1;break;case"":i.underline=1;break;case"":i.strike=1;break;case"":i.outline=1;break;case"":i.shadow=1;break;case"":i.condense=1;break;case"":i.extend=1;break;case"":case"":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+s[0]+" in fonts")}}))}(c,l,s,o),(c=a.match(n))&&function(e,t,n,r){t.Fills=[];var i={},a=!1;(e[0].match(KM)||[]).forEach((function(e){var n=eA(e);switch(tA(n[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":case"":i={},t.Fills.push(i);break;case"":t.Fills.push(i),i={};break;case"":n.patternType&&(i.patternType=n.patternType);break;case"":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+n[0]+" in fills")}}))}(c,l,0,o),(c=a.match(i))&&function(e,t,n,r){t.Borders=[];var i={},a=!1;(e[0].match(KM)||[]).forEach((function(e){var n=eA(e);switch(tA(n[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":case"":i={},n.diagonalUp&&(i.diagonalUp=fA(n.diagonalUp)),n.diagonalDown&&(i.diagonalDown=fA(n.diagonalDown)),t.Borders.push(i);break;case"":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+n[0]+" in borders")}}))}(c,l,0,o),(c=a.match(t))&&function(e,t,n){var r;t.CellXf=[];var i=!1;(e[0].match(KM)||[]).forEach((function(e){var a=eA(e),s=0;switch(tA(a[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":for(delete(r=a)[0],s=0;s392)for(s=392;s>60;--s)if(t.NumberFmt[r.numFmtId]==t.NumberFmt[s]){r.numFmtId=s;break}t.CellXf.push(r);break;case"":var o={};a.vertical&&(o.vertical=a.vertical),a.horizontal&&(o.horizontal=a.horizontal),null!=a.textRotation&&(o.textRotation=a.textRotation),a.indent&&(o.indent=a.indent),a.wrapText&&(o.wrapText=fA(a.wrapText)),r.alignment=o;break;case"":case"":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+a[0]+" in cellXfs")}}))}(c,l,o),l):l}}();function uI(e,t){var n,r=[$M,CA("styleSheet",null,{xmlns:PA[0],"xmlns:vt":IA.vt})];return e.SSF&&null!=(n=function(e){var t=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=e[r]&&(t[t.length]=CA("numFmt",null,{numFmtId:r,formatCode:oA(e[r])}))})),1===t.length?"":(t[t.length]="",t[0]=CA("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.SSF))&&(r[r.length]=n),r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',(n=function(e){var t=[];return t[t.length]=CA("cellXfs",null),e.forEach((function(e){t[t.length]=CA("xf",null,e)})),t[t.length]="",2===t.length?"":(t[0]=CA("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellXfs))&&(r[r.length]=n),r[r.length]='',r[r.length]='',r[r.length]='',r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function hI(e,t,n){n||(n=gC(6+4*t.length)),n.write_shift(2,e),zC(t,n);var r=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),r}function fI(e,t){t||(t=gC(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=gC(2));var n=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);t.write_shift(1,n),t.write_shift(1,0)}(e,t),t.write_shift(2,e.bold?700:400);var n=0;"superscript"==e.vertAlign?n=1:"subscript"==e.vertAlign&&(n=2),t.write_shift(2,n),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),lk(e.color,t);var r=0;return"major"==e.scheme&&(r=1),"minor"==e.scheme&&(r=2),t.write_shift(1,r),zC(e.name,t),t.length>t.l?t.slice(0,t.l):t}var dI,pI=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],mI=mC;function gI(e,t){t||(t=gC(84)),dI||(dI=gM(pI));var n=dI[e.patternType];null==n&&(n=40),t.write_shift(4,n);var r=0;if(40!=n)for(lk({auto:1},t),lk({auto:1},t);r<12;++r)t.write_shift(4,0);else{for(;r<4;++r)t.write_shift(4,0);for(;r<12;++r)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function vI(e,t,n){n||(n=gC(16)),n.write_shift(2,t||0),n.write_shift(2,e.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0);return n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function yI(e,t){return t||(t=gC(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var _I=mC;function bI(e){var t;_C(e,613,UC(1)),_C(e,46,(t||(t=gC(51)),t.write_shift(1,0),yI(0,t),yI(0,t),yI(0,t),yI(0,t),yI(0,t),t.length>t.l?t.slice(0,t.l):t)),_C(e,614)}function xI(e){var t,n;_C(e,619,UC(1)),_C(e,48,(t={xfId:0,builtinId:0,name:"Normal"},n||(n=gC(52)),n.write_shift(4,t.xfId),n.write_shift(2,1),n.write_shift(1,+t.builtinId),n.write_shift(1,0),JC(t.name||"",n),n.length>n.l?n.slice(0,n.l):n)),_C(e,620)}function wI(e){_C(e,508,function(e,t,n){var r=gC(2052);return r.write_shift(4,e),JC(t,r),JC(n,r),r.length>r.l?r.slice(0,r.l):r}(0,"TableStyleMedium9","PivotStyleMedium4")),_C(e,509)}function SI(e,t){var n=yC();return _C(n,278),function(e,t){if(t){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var r=e[0];r<=e[1];++r)null!=t[r]&&++n})),0!=n&&(_C(e,615,UC(n)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var r=n[0];r<=n[1];++r)null!=t[r]&&_C(e,44,hI(r,t[r]))})),_C(e,616))}}(n,e.SSF),function(e){_C(e,611,UC(1)),_C(e,43,fI({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),_C(e,612)}(n),function(e){_C(e,603,UC(2)),_C(e,45,gI({patternType:"none"})),_C(e,45,gI({patternType:"gray125"})),_C(e,604)}(n),bI(n),function(e){_C(e,626,UC(1)),_C(e,47,vI({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),_C(e,627)}(n),function(e,t){_C(e,617,UC(t.length)),t.forEach((function(t){_C(e,47,vI(t,0))})),_C(e,618)}(n,t.cellXfs),xI(n),function(e){_C(e,505,UC(0)),_C(e,506)}(n),wI(n),_C(n,279),n.end()}var EI=["","","","","","","","","","","",""];function TI(e,t,n){t.themeElements.clrScheme=[];var r={};(e[0].match(KM)||[]).forEach((function(e){var i=eA(e);switch(i[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":"/"===i[0].charAt(1)?(t.themeElements.clrScheme[EI.indexOf(i[0])]=r,r={}):r.name=i[0].slice(3,i[0].length-1);break;default:if(n&&n.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}}))}function MI(){}function AI(){}var CI=/]*)>[\s\S]*<\/a:clrScheme>/,kI=/]*)>[\s\S]*<\/a:fontScheme>/,RI=/]*)>[\s\S]*<\/a:fmtScheme>/;var OI=/]*)>[\s\S]*<\/a:themeElements>/;function II(e,t){var n;e&&0!==e.length||(e=PI());var r={};if(!(n=e.match(OI)))throw new Error("themeElements not found in theme");return function(e,t,n){var r;t.themeElements={},[["clrScheme",CI,TI],["fontScheme",kI,MI],["fmtScheme",RI,AI]].forEach((function(i){if(!(r=e.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](r,t,n)}))}(n[0],r,t),r.raw=e,r}function PI(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[$M];return n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n.join("")}function LI(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:case 4:e.l+=4;break;case 1:t.xclrValue=function(e,t){return mC(e,t)}(e,4);break;case 2:t.xclrValue=RR(e);break;case 3:t.xclrValue=function(e){return e.read_shift(4)}(e)}return e.l+=8,t}function DI(e){var t=e.read_shift(2),n=e.read_shift(2)-4,r=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:r[1]=LI(e);break;case 6:r[1]=function(e,t){return mC(e,t)}(e,n);break;case 14:case 15:r[1]=e.read_shift(1===n?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+n)}return r}function NI(){var e,t,n=yC();return _C(n,332),_C(n,334,UC(1)),_C(n,335,((t=gC(12+2*(e={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,e.flags),t.write_shift(4,e.version),zC(e.name,t),t.slice(0,t.l))),_C(n,336),_C(n,339,function(e,t){var n=gC(8+2*t.length);return n.write_shift(4,e),zC(t,n),n.slice(0,n.l)}(1,"XLDAPR")),_C(n,52),_C(n,35,UC(514)),_C(n,4096,UC(0)),_C(n,4097,gR(1)),_C(n,36),_C(n,53),_C(n,340),_C(n,337,function(e,t){var n=gC(8);return n.write_shift(4,e),n.write_shift(4,t?1:0),n}(1,!0)),_C(n,51,function(e){var t=gC(4+8*e.length);t.write_shift(4,e.length);for(var n=0;n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),e.join("")}var UI=1024;function BI(e,t){for(var n=[21600,21600],r=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),i=[CA("xml",null,{"xmlns:v":LA.v,"xmlns:o":LA.o,"xmlns:x":LA.x,"xmlns:mv":LA.mv}).replace(/\/>/,">"),CA("o:shapelayout",CA("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),CA("v:shapetype",[CA("v:stroke",null,{joinstyle:"miter"}),CA("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:r})];UI<1e3*e;)UI+=1e3;return t.forEach((function(e){var t=CC(e[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?CA("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,a=CA("v:fill",r,n);++UI,i=i.concat(["",a,CA("v:shadow",null,{on:"t",obscured:"t"}),CA("v:path",null,{"o:connecttype":"none"}),'
','',"","",MA("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),MA("x:AutoFill","False"),MA("x:Row",String(t.r)),MA("x:Column",String(t.c)),e[1].hidden?"":"","",""])})),i.push(""),i.join("")}function zI(e,t,n,r){var i,a=Array.isArray(e);t.forEach((function(t){var s=CC(t.ref);if(a?(e[s.r]||(e[s.r]=[]),i=e[s.r][s.c]):i=e[t.ref],!i){i={t:"z"},a?e[s.r][s.c]=i:e[t.ref]=i;var o=IC(e["!ref"]||"BDWGO1000001:A1");o.s.r>s.r&&(o.s.r=s.r),o.e.rs.c&&(o.s.c=s.c),o.e.c=0;--u){if(!n&&i.c[u].T)return;n&&!i.c[u].T&&i.c.splice(u,1)}if(n&&r)for(u=0;u"),e.forEach((function(e){e[1].forEach((function(e){var r=oA(e.a);-1==n.indexOf(r)&&(n.push(r),t.push(""+r+"")),e.T&&e.ID&&-1==n.indexOf("tc="+e.ID)&&(n.push("tc="+e.ID),t.push("tc="+e.ID+""))}))})),0==n.length&&(n.push("SheetJ5"),t.push("SheetJ5")),t.push(""),t.push(""),e.forEach((function(e){var r=0,i=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?r=n.indexOf("tc="+e[1][0].ID):e[1].forEach((function(e){e.a&&(r=n.indexOf(oA(e.a))),i.push(e.t||"")})),t.push(''),i.length<=1)t.push(MA("t",oA(i[0]||"")));else{for(var a="Comment:\n "+i[0]+"\n",s=1;s")})),t.push(""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function HI(e,t,n){var r=[$M,CA("ThreadedComments",null,{xmlns:IA.TCMNT}).replace(/[\/]>/,">")];return e.forEach((function(e){var i="";(e[1]||[]).forEach((function(a,s){if(a.T){a.a&&-1==t.indexOf(a.a)&&t.push(a.a);var o={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==s?i=o.id:o.parentId=i,a.ID=o.id,a.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(a.a)).slice(-12)+"}"),r.push(CA("threadedComment",MA("text",a.t||""),o))}else delete a.ID}))})),r.push(""),r.join("")}var jI=BC;function WI(e){var t=yC(),n=[];return _C(t,628),_C(t,630),e.forEach((function(e){e[1].forEach((function(e){n.indexOf(e.a)>-1||(n.push(e.a.slice(0,54)),_C(t,632,function(e){return zC(e.slice(0,54))}(e.a)))}))})),_C(t,631),_C(t,633),e.forEach((function(e){e[1].forEach((function(r){r.iauthor=n.indexOf(r.a);var i={s:CC(e[0]),e:CC(e[0])};_C(t,635,function(e,t){return null==t&&(t=gC(36)),t.write_shift(4,e[1].iauthor),sk(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}([i,r])),r.t&&r.t.length>0&&_C(t,637,WC(r)),_C(t,636),delete r.iauthor}))})),_C(t,634),_C(t,629),t.end()}var GI="application/vnd.ms-office.vbaProject";var XI=["xlsb","xlsm","xlam","biff8","xla"];var qI=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,i){var a=!1,s=!1;0==r.length?s=!0:"["==r.charAt(0)&&(s=!0,r=r.slice(1,-1)),0==i.length?a=!0:"["==i.charAt(0)&&(a=!0,i=i.slice(1,-1));var o=r.length>0?0|parseInt(r,10):0,c=i.length>0?0|parseInt(i,10):0;return a?c+=t.c:--c,s?o+=t.r:--o,n+(a?"":"$")+AC(c)+(s?"":"$")+TC(o)}return function(r,i){return t=i,r.replace(e,n)}}(),$I=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,YI=function(){return function(e,t){return e.replace($I,(function(e,n,r,i,a,s){var o=MC(i)-(r?0:t.c),c=EC(s)-(a?0:t.r);return n+"R"+(0==c?"":a?c+1:"["+c+"]")+"C"+(0==o?"":r?o+1:"["+o+"]")}))}}();function ZI(e,t){return e.replace($I,(function(e,n,r,i,a,s){return n+("$"==r?r+i:AC(MC(i)+t.c))+("$"==a?a+s:TC(EC(s)+t.r))}))}function KI(e,t,n){var r=RC(t).s,i=CC(n);return ZI(e,{r:i.r-r.r,c:i.c-r.c})}function JI(e){return e.replace(/_xlfn\./g,"")}function QI(e){e.l+=1}function eP(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function tP(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return nP(e);12==n.biff&&(r=4)}var i=e.read_shift(r),a=e.read_shift(r),s=eP(e,2),o=eP(e,2);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function nP(e){var t=eP(e,2),n=eP(e,2),r=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function rP(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return function(e){var t=eP(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}(e);var r=e.read_shift(n&&12==n.biff?4:2),i=eP(e,2);return{r:r,c:i[0],cRel:i[1],rRel:i[2]}}function iP(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function aP(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function sP(e){return[e.read_shift(1),e.read_shift(1)]}function oP(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=dR(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=Sk[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=ok(e);break;case 2:n[1]=ER(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function cP(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),i=[],a=0;a!=r;++a)i.push((12==n.biff?ak:NR)(e));return i}function lP(e,t,n){var r=0,i=0;12==n.biff?(r=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--i&&(i=256));for(var a=0,s=[];a!=r&&(s[a]=[]);++a)for(var o=0;o!=i;++o)s[a][o]=oP(e,n.biff);return s}function uP(e,t,n){return e.l+=2,[iP(e)]}function hP(e){return e.l+=6,[]}function fP(e){return e.l+=2,[mR(e),1&e.read_shift(2)]}var dP=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];var pP={1:{n:"PtgExp",f:function(e,t,n){return e.l++,n&&12==n.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(n&&2==n.biff?1:2)]}},2:{n:"PtgTbl",f:mC},3:{n:"PtgAdd",f:QI},4:{n:"PtgSub",f:QI},5:{n:"PtgMul",f:QI},6:{n:"PtgDiv",f:QI},7:{n:"PtgPower",f:QI},8:{n:"PtgConcat",f:QI},9:{n:"PtgLt",f:QI},10:{n:"PtgLe",f:QI},11:{n:"PtgEq",f:QI},12:{n:"PtgGe",f:QI},13:{n:"PtgGt",f:QI},14:{n:"PtgNe",f:QI},15:{n:"PtgIsect",f:QI},16:{n:"PtgUnion",f:QI},17:{n:"PtgRange",f:QI},18:{n:"PtgUplus",f:QI},19:{n:"PtgUminus",f:QI},20:{n:"PtgPercent",f:QI},21:{n:"PtgParen",f:QI},22:{n:"PtgMissArg",f:QI},23:{n:"PtgStr",f:function(e,t,n){return e.l++,_R(e,0,n)}},26:{n:"PtgSheet",f:function(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,Sk[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,ok(e)}},32:{n:"PtgArray",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}},33:{n:"PtgFunc",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(n&&n.biff<=3?1:2);return[NP[i],DP[i],r]}},34:{n:"PtgFuncVar",f:function(e,t,n){var r=e[e.l++],i=e.read_shift(1),a=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[i,(0===a[0]?DP:LP)[a[1]]]}},35:{n:"PtgName",f:function(e,t,n){var r=e.read_shift(1)>>>5&3,i=!n||n.biff>=8?4:2,a=e.read_shift(i);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[r,0,a]}},36:{n:"PtgRef",f:function(e,t,n){var r=(96&e[e.l])>>5;return e.l+=1,[r,rP(e,0,n)]}},37:{n:"PtgArea",f:function(e,t,n){return[(96&e[e.l++])>>5,tP(e,n.biff>=2&&n.biff,n)]}},38:{n:"PtgMemArea",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=n&&2==n.biff?3:4,[r,e.read_shift(n&&2==n.biff?1:2)]}},39:{n:"PtgMemErr",f:mC},40:{n:"PtgMemNoMem",f:mC},41:{n:"PtgMemFunc",f:function(e,t,n){return[e.read_shift(1)>>>5&3,e.read_shift(n&&2==n.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}},43:{n:"PtgAreaErr",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}},44:{n:"PtgRefN",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=function(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return function(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,i=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==i&&n>=128&&(n-=256),{r:t,c:n,cRel:i,rRel:r}}(e);var i=e.read_shift(r>=12?4:2),a=e.read_shift(2),s=(16384&a)>>14,o=(32768&a)>>15;if(a&=16383,1==o)for(;i>524287;)i-=1048576;if(1==s)for(;a>8191;)a-=16384;return{r:i,c:a,cRel:s,rRel:o}}(e,0,n);return[r,i]}},45:{n:"PtgAreaN",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=function(e,t,n){if(n.biff<8)return nP(e);var r=e.read_shift(12==n.biff?4:2),i=e.read_shift(12==n.biff?4:2),a=eP(e,2),s=eP(e,2);return{s:{r:r,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}(e,0,n);return[r,i]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,t,n){return 5==n.biff?function(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(2);return n&&5==n.biff&&(e.l+=12),[r,i,rP(e,0,n)]}},59:{n:"PtgArea3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2,"i");if(n)switch(n.biff){case 5:e.l+=12,6;break;case 12:12}return[r,i,tP(e,0,n)]}},60:{n:"PtgRefErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),a=4;if(n)switch(n.biff){case 5:a=15;break;case 12:a=6}return e.l+=a,[r,i]}},61:{n:"PtgAreaErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),a=8;if(n)switch(n.biff){case 5:e.l+=12,a=6;break;case 12:a=12}return e.l+=a,[r,i]}},255:{}},mP={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},gP={1:{n:"PtgElfLel",f:fP},2:{n:"PtgElfRw",f:uP},3:{n:"PtgElfCol",f:uP},6:{n:"PtgElfRwV",f:uP},7:{n:"PtgElfColV",f:uP},10:{n:"PtgElfRadical",f:uP},11:{n:"PtgElfRadicalS",f:hP},13:{n:"PtgElfColS",f:hP},15:{n:"PtgElfColSV",f:hP},16:{n:"PtgElfRadicalLel",f:fP},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2);return{ixti:t,coltype:3&n,rt:dP[n>>2&31],idx:r,c:i,C:a}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},vP={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}},2:{n:"PtgAttrIf",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),i=[],a=0;a<=r;++a)i.push(e.read_shift(n&&2==n.biff?1:2));return i}},8:{n:"PtgAttrGoto",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,n){e.l+=n&&2==n.biff?3:4}},32:{n:"PtgAttrBaxcel",f:aP},33:{n:"PtgAttrBaxcel",f:aP},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),sP(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),sP(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function yP(e,t,n,r){if(r.biff<8)return mC(e,t);for(var i=e.l+t,a=[],s=0;s!==n.length;++s)switch(n[s][0]){case"PtgArray":n[s][1]=lP(e,0,r),a.push(n[s][1]);break;case"PtgMemArea":n[s][2]=cP(e,n[s][1],r),a.push(n[s][2]);break;case"PtgExp":r&&12==r.biff&&(n[s][1][1]=e.read_shift(4),a.push(n[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[s][0]}return 0!==(t=i-e.l)&&a.push(mC(e,t)),a}function _P(e,t,n){for(var r,i,a=e.l+t,s=[];a!=e.l;)t=a-e.l,i=e[e.l],r=pP[i]||pP[mP[i]],24!==i&&25!==i||(r=(24===i?gP:vP)[e[e.l+1]]),r&&r.f?s.push([r.n,r.f(e,t,n)]):mC(e,t);return s}function bP(e){for(var t=[],n=0;n=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function wP(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var i="";if(n.biff>8)switch(e[r[0]][0]){case 357:return i=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return i=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[r[0]][0][3]?(i=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function SP(e,t,n){var r=wP(e,t,n);return"#REF"==r?r:function(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}(r,n)}function EP(e,t,n,r,i){var a,s,o,c,l=i&&i.biff||8,u={s:{c:0,r:0},e:{c:0,r:0}},h=[],f=0,d=0,p="";if(!e[0]||!e[0][0])return"";for(var m=-1,g="",v=0,y=e[0].length;v=0){switch(e[0][m][1][0]){case 0:g=OM(" ",e[0][m][1][1]);break;case 1:g=OM("\r",e[0][m][1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}s+=g,m=-1}h.push(s+xP[_[0]]+a);break;case"PtgIsect":a=h.pop(),s=h.pop(),h.push(s+" "+a);break;case"PtgUnion":a=h.pop(),s=h.pop(),h.push(s+","+a);break;case"PtgRange":a=h.pop(),s=h.pop(),h.push(s+":"+a);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":o=bC(_[1][1],u,i),h.push(wC(o,l));break;case"PtgRefN":o=n?bC(_[1][1],n,i):_[1][1],h.push(wC(o,l));break;case"PtgRef3d":f=_[1][1],o=bC(_[1][2],u,i),p=SP(r,f,i),h.push(p+"!"+wC(o,l));break;case"PtgFunc":case"PtgFuncVar":var b=_[1][0],x=_[1][1];b||(b=0);var w=0==(b&=127)?[]:h.slice(-b);h.length-=b,"User"===x&&(x=w.shift()),h.push(x+"("+w.join(",")+")");break;case"PtgBool":h.push(_[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":h.push(_[1]);break;case"PtgNum":h.push(String(_[1]));break;case"PtgStr":h.push('"'+_[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":c=xC(_[1][1],n?{s:n}:u,i),h.push(SC(c,i));break;case"PtgArea":c=xC(_[1][1],u,i),h.push(SC(c,i));break;case"PtgArea3d":f=_[1][1],c=_[1][2],p=SP(r,f,i),h.push(p+"!"+SC(c,i));break;case"PtgAttrSum":h.push("SUM("+h.pop()+")");break;case"PtgName":d=_[1][2];var S=(r.names||[])[d-1]||(r[0]||[])[d],E=S?S.Name:"SH33TJSNAME"+String(d);E&&"_xlfn."==E.slice(0,6)&&!i.xlfn&&(E=E.slice(6)),h.push(E);break;case"PtgNameX":var T,M=_[1][1];if(d=_[1][2],!(i.biff<=5)){var A="";if(14849==((r[M]||[])[0]||[])[0]||(1025==((r[M]||[])[0]||[])[0]?r[M][d]&&r[M][d].itab>0&&(A=r.SheetNames[r[M][d].itab-1]+"!"):A=r.SheetNames[d-1]+"!"),r[M]&&r[M][d])A+=r[M][d].Name;else if(r[0]&&r[0][d])A+=r[0][d].Name;else{var C=(wP(r,M,i)||"").split(";;");C[d-1]?A=C[d-1]:A+="SH33TJSERRX"}h.push(A);break}M<0&&(M=-M),r[M]&&(T=r[M][d]),T||(T={Name:"SH33TJSERRY"}),h.push(T.Name);break;case"PtgParen":var k="(",R=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:k=OM(" ",e[0][m][1][1])+k;break;case 3:k=OM("\r",e[0][m][1][1])+k;break;case 4:R=OM(" ",e[0][m][1][1])+R;break;case 5:R=OM("\r",e[0][m][1][1])+R;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}h.push(k+h.pop()+R);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":h.push("#REF!");break;case"PtgExp":o={c:_[1][1],r:_[1][0]};var O={c:n.c,r:n.r};if(r.sharedf[kC(o)]){var I=r.sharedf[kC(o)];h.push(EP(I,u,O,r,i))}else{var P=!1;for(a=0;a!=r.arrayf.length;++a)if(s=r.arrayf[a],!(o.cs[0].e.c||o.rs[0].e.r)){h.push(EP(s[1],u,O,r,i)),P=!0;break}P||h.push(_[1])}break;case"PtgArray":h.push("{"+bP(_[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=v;break;case"PtgMissArg":h.push("");break;case"PtgList":h.push("Table"+_[1].idx+"[#"+_[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(_))}if(3!=i.biff&&m>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][v][0])){var L=!0;switch((_=e[0][m])[1][0]){case 4:L=!1;case 0:g=OM(" ",_[1][1]);break;case 5:L=!1;case 1:g=OM("\r",_[1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+_[1][0])}h.push((L?g:"")+h.pop()+(L?"":g)),m=-1}}if(h.length>1&&i.WTF)throw new Error("bad formula stack");return h[0]}function TP(e,t,n){var r,i=e.l+t,a=2==n.biff?1:2,s=e.read_shift(a);if(65535==s)return[[],mC(e,t-2)];var o=_P(e,s,n);return t!==s+a&&(r=yP(e,t-s-a,o,n)),e.l=i,[o,r]}function MP(e,t,n){var r,i=e.l+t,a=e.read_shift(2),s=_P(e,a,n);return 65535==a?[[],mC(e,t-2)]:(t!==a+2&&(r=yP(e,i-a-2,s,n)),[s,r])}function AP(e,t,n){var r=e.l+t,i=IR(e);2==n.biff&&++e.l;var a=function(e){var t;if(65535!==rC(e,e.l+6))return[ok(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}(e),s=e.read_shift(1);2!=n.biff&&(e.read_shift(1),n.biff>=5&&e.read_shift(4));var o=function(e,t,n){var r,i=e.l+t,a=2==n.biff?1:2,s=e.read_shift(a);if(65535==s)return[[],mC(e,t-2)];var o=_P(e,s,n);return t!==s+a&&(r=yP(e,t-s-a,o,n)),e.l=i,[o,r]}(e,r-e.l,n);return{cell:i,val:a[0],formula:o,shared:s>>3&1,tt:a[1]}}function CP(e,t,n,r,i){var a=PR(t,n,i),s=function(e){if(null==e){var t=gC(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return ck("number"==typeof e?e:0)}(e.v),o=gC(6);o.write_shift(2,33),o.write_shift(4,0);for(var c=gC(e.bf.length),l=0;l0?yP(e,a,i,n):null]}var RP=kP,OP=kP,IP=kP,PP=kP,LP={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},DP={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},NP={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function FP(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&61==(e=e.slice(1)).charCodeAt(0)&&(e=e.slice(1)),(e=(e=(e=e.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")}))).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function UP(e){var t=e.split(":");return[t[0].split(".")[0],t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}var BP={},zP={},VP="undefined"!=typeof Map;function HP(e,t,n){var r=0,i=e.length;if(n){if(VP?n.has(t):Object.prototype.hasOwnProperty.call(n,t))for(var a=VP?n.get(t):n[t];r-1?(n.width=QO(r),n.customWidth=1):null!=t.width&&(n.width=t.width),t.hidden&&(n.hidden=!0),null!=t.level&&(n.outlineLevel=n.level=t.level),n}function WP(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function GP(e,t,n){var r=n.revssf[null!=t.z?t.z:"General"],i=60,a=e.length;if(null==r&&n.ssf)for(;i<392;++i)if(null==n.ssf[i]){aM(t.z,i),n.ssf[i]=t.z,n.revssf[t.z]=r=i;break}for(i=0;i!=a;++i)if(e[i].numFmtId===r)return i;return e[a]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function XP(e,t,n,r,i,a){try{r.cellNF&&(e.z=MT[t])}catch(o){if(r.WTF)throw o}if("z"!==e.t||r.cellStyles){if("d"===e.t&&"string"==typeof e.v&&(e.v=CM(e.v)),(!r||!1!==r.cellText)&&"z"!==e.t)try{if(null==MT[t]&&aM(cM[t]||"General",t),"e"===e.t)e.w=e.w||Sk[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=NT(e.v);else if("d"===e.t){var s=_M(e.v);e.w=(0|s)===s?s.toString(10):NT(s)}else{if(void 0===e.v)return"";e.w=FT(e.v,zP)}else"d"===e.t?e.w=iM(t,_M(e.v),zP):e.w=iM(t,e.v,zP)}catch(o){if(r.WTF)throw o}if(r.cellStyles&&null!=n)try{e.s=a.Fills[n],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=XO(i.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),r.WTF&&(e.s.fgColor.raw_rgb=i.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=XO(i.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),r.WTF&&(e.s.bgColor.raw_rgb=i.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(o){if(r.WTF&&a.Fills)throw o}}}function qP(e,t,n){if(e&&e["!ref"]){var r=IC(e["!ref"]);if(r.e.c/g,YP=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,ZP=/<(?:\w:)?hyperlink [^>]*>/gm,KP=/"(\w*:\w*)"/,JP=/<(?:\w:)?col\b[^>]*[\/]?>/g,QP=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,eL=/<(?:\w:)?pageMargins[^>]*\/>/g,tL=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,nL=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,rL=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function iL(e,t,n,r,i,a,s){if(!e)return e;r||(r={"!id":{}});var o=t.dense?[]:{},c={s:{r:2e6,c:2e6},e:{r:0,c:0}},l="",u="",h=e.match(YP);h?(l=e.slice(0,h.index),u=e.slice(h.index+h[0].length)):l=u=e;var f=l.match(tL);f?aL(f[0],o,i,n):(f=l.match(nL))&&function(e,t,n,r,i){aL(e.slice(0,e.indexOf(">")),n,r,i)}(f[0],f[1],o,i,n);var d=(l.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var p=l.slice(d,d+50).match(KP);p&&function(e,t){var n=IC(t);n.s.r<=n.e.r&&n.s.c<=n.e.c&&n.s.r>=0&&n.s.c>=0&&(e["!ref"]=OC(n))}(o,p[1])}var m=l.match(rL);m&&m[1]&&function(e,t){t.Views||(t.Views=[{}]);(e.match(cL)||[]).forEach((function(e,n){var r=eA(e);t.Views[n]||(t.Views[n]={}),+r.zoomScale&&(t.Views[n].zoom=+r.zoomScale),fA(r.rightToLeft)&&(t.Views[n].RTL=!0)}))}(m[1],i);var g=[];if(t.cellStyles){var v=l.match(JP);v&&function(e,t){for(var n=!1,r=0;r!=t.length;++r){var i=eA(t[r],!0);i.hidden&&(i.hidden=fA(i.hidden));var a=parseInt(i.min,10)-1,s=parseInt(i.max,10)-1;for(i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!n&&i.width&&(n=!0,tI(i.width)),nI(i);a<=s;)e[a++]=RM(i)}}(g,v)}h&&uL(h[1],o,t,c,a,s);var y=u.match(QP);y&&(o["!autofilter"]=function(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}(y[0]));var _=[],b=u.match($P);if(b)for(d=0;d!=b.length;++d)_[d]=IC(b[d].slice(b[d].indexOf('"')+1));var x=u.match(ZP);x&&function(e,t,n){for(var r=Array.isArray(e),i=0;i!=t.length;++i){var a=eA(vA(t[i]),!0);if(!a.ref)return;var s=((n||{})["!id"]||[])[a.id];s?(a.Target=s.Target,a.location&&(a.Target+="#"+iA(a.location))):(a.Target="#"+iA(a.location),s={Target:a.Target,TargetMode:"Internal"}),a.Rel=s,a.tooltip&&(a.Tooltip=a.tooltip,delete a.tooltip);for(var o=IC(a.ref),c=o.s.r;c<=o.e.r;++c)for(var l=o.s.c;l<=o.e.c;++l){var u=kC({c:l,r:c});r?(e[c]||(e[c]=[]),e[c][l]||(e[c][l]={t:"z",v:void 0}),e[c][l].l=a):(e[u]||(e[u]={t:"z",v:void 0}),e[u].l=a)}}}(o,x,r);var w,S,E=u.match(eL);if(E&&(o["!margins"]=(w=eA(E[0]),S={},["left","right","top","bottom","header","footer"].forEach((function(e){w[e]&&(S[e]=parseFloat(w[e]))})),S)),!o["!ref"]&&c.e.c>=c.s.c&&c.e.r>=c.s.r&&(o["!ref"]=OC(c)),t.sheetRows>0&&o["!ref"]){var T=IC(o["!ref"]);t.sheetRows<=+T.e.r&&(T.e.r=t.sheetRows-1,T.e.r>c.e.r&&(T.e.r=c.e.r),T.e.rc.e.c&&(T.e.c=c.e.c),T.e.c0&&(o["!cols"]=g),_.length>0&&(o["!merges"]=_),o}function aL(e,t,n,r){var i=eA(e);n.Sheets[r]||(n.Sheets[r]={}),i.codeName&&(n.Sheets[r].CodeName=iA(vA(i.codeName)))}var sL=["objects","scenarios","selectLockedCells","selectUnlockedCells"],oL=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];var cL=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function lL(e,t,n,r){if(e.c&&n["!comments"].push([t,e.c]),void 0===e.v&&"string"!=typeof e.f||"z"===e.t&&!e.f)return"";var i="",a=e.t,s=e.v;if("z"!==e.t)switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=Sk[e.v];break;case"d":r&&r.cellDates?i=CM(e.v,-1).toISOString():((e=RM(e)).t="n",i=""+(e.v=_M(CM(e.v)))),void 0===e.z&&(e.z=MT[14]);break;default:i=e.v}var o=MA("v",oA(i)),c={r:t},l=GP(r.cellXfs,e,r);switch(0!==l&&(c.s=l),e.t){case"n":case"z":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){o=MA("v",""+HP(r.Strings,e.v,r.revStrings)),c.t="s";break}c.t="str"}if(e.t!=a&&(e.t=a,e.v=s),"string"==typeof e.f&&e.f){var u=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;o=CA("f",oA(e.f),u)+(null!=e.v?o:"")}return e.l&&n["!links"].push([t,e.l]),e.D&&(c.cm=1),CA("c",o,c)}var uL=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,n=/r=["']([^"']*)["']/,r=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,a=_A("v"),s=_A("f");return function(o,c,l,u,h,f){for(var d,p,m,g,v,y=0,_="",b=[],x=[],w=0,S=0,E=0,T="",M=0,A=0,C=0,k=0,R=Array.isArray(f.CellXf),O=[],I=[],P=Array.isArray(c),L=[],D={},N=!1,F=!!l.sheetStubs,U=o.split(t),B=0,z=U.length;B!=z;++B){var V=(_=U[B].trim()).length;if(0!==V){var H=0;e:for(y=0;y":if("/"!=_[y-1]){++y;break e}if(l&&l.cellStyles){if(M=null!=(p=eA(_.slice(H,y),!0)).r?parseInt(p.r,10):M+1,A=-1,l.sheetRows&&l.sheetRows=y)break;if(M=null!=(p=eA(_.slice(H,y),!0)).r?parseInt(p.r,10):M+1,A=-1,!(l.sheetRows&&l.sheetRowsM-1&&(u.s.r=M-1),u.e.r":"")+_,null!=x&&2===x.length){for(w=0,T=x[1],S=0;S!=T.length&&!((E=T.charCodeAt(S)-64)<1||E>26);++S)w=26*w+E;A=--w}else++A;for(S=0;S!=_.length&&62!==_.charCodeAt(S);++S);if(++S,(p=eA(_.slice(0,S),!0)).r||(p.r=kC({r:M-1,c:A})),d={t:""},null!=(x=(T=_.slice(S)).match(a))&&""!==x[1]&&(d.v=iA(x[1])),l.cellFormula){if(null!=(x=T.match(s))&&""!==x[1]){if(d.f=iA(vA(x[1])).replace(/\r\n/g,"\n"),l.xlfn||(d.f=JI(d.f)),x[0].indexOf('t="array"')>-1)d.F=(T.match(i)||[])[1],d.F.indexOf(":")>-1&&O.push([IC(d.F),d.F]);else if(x[0].indexOf('t="shared"')>-1){g=eA(x[0]);var W=iA(vA(x[1]));l.xlfn||(W=JI(W)),I[parseInt(g.si,10)]=[g,W,p.r]}}else(x=T.match(/]*\/>/))&&I[(g=eA(x[0])).si]&&(d.f=KI(I[g.si][1],I[g.si][2],p.r));var G=CC(p.r);for(S=0;S=O[S][0].s.r&&G.r<=O[S][0].e.r&&G.c>=O[S][0].s.c&&G.c<=O[S][0].e.c&&(d.F=O[S][1])}if(null==p.t&&void 0===d.v)if(d.f||d.F)d.v=0,d.t="n";else{if(!F)continue;d.t="z"}else d.t=p.t||"n";switch(u.s.c>A&&(u.s.c=A),u.e.c0&&(c["!rows"]=L)}}();function hL(e,t,n,r){var i,a=[$M,CA("worksheet",null,{xmlns:PA[0],"xmlns:r":IA.r})],s=n.SheetNames[e],o="",c=n.Sheets[s];null==c&&(c={});var l=c["!ref"]||"A1",u=IC(l);if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),l=OC(u)}r||(r={}),c["!comments"]=[];var h=[];!function(e,t,n,r,i){var a=!1,s={},o=null;if("xlsx"!==r.bookType&&t.vbaraw){var c=t.SheetNames[n];try{t.Workbook&&(c=t.Workbook.Sheets[n].CodeName||c)}catch(u){}a=!0,s.codeName=yA(oA(c))}if(e&&e["!outline"]){var l={summaryBelow:1,summaryRight:1};e["!outline"].above&&(l.summaryBelow=0),e["!outline"].left&&(l.summaryRight=0),o=(o||"")+CA("outlinePr",null,l)}(a||o)&&(i[i.length]=CA("sheetPr",o,s))}(c,n,e,t,a),a[a.length]=CA("dimension",null,{ref:l}),a[a.length]=function(e,t,n,r){var i={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),CA("sheetViews",CA("sheetView",null,i),{})}(0,0,0,n),t.sheetFormat&&(a[a.length]=CA("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=c["!cols"]&&c["!cols"].length>0&&(a[a.length]=function(e,t){for(var n,r=[""],i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=CA("col",null,jP(i,n)));return r[r.length]="",r.join("")}(0,c["!cols"])),a[i=a.length]="",c["!links"]=[],null!=c["!ref"]&&(o=function(e,t,n,r){var i,a,s=[],o=[],c=IC(e["!ref"]),l="",u="",h=[],f=0,d=0,p=e["!rows"],m=Array.isArray(e),g={r:u},v=-1;for(d=c.s.c;d<=c.e.c;++d)h[d]=AC(d);for(f=c.s.r;f<=c.e.r;++f){for(o=[],u=TC(f),d=c.s.c;d<=c.e.c;++d){i=h[d]+u;var y=m?(e[f]||[])[d]:e[i];void 0!==y&&null!=(l=lL(y,i,e,t))&&o.push(l)}(o.length>0||p&&p[f])&&(g={r:u},p&&p[f]&&((a=p[f]).hidden&&(g.hidden=1),v=-1,a.hpx?v=iI(a.hpx):a.hpt&&(v=a.hpt),v>-1&&(g.ht=v,g.customHeight=1),a.level&&(g.outlineLevel=a.level)),s[s.length]=CA("row",o.join(""),g))}if(p)for(;f-1&&(g.ht=v,g.customHeight=1),a.level&&(g.outlineLevel=a.level),s[s.length]=CA("row","",g));return s.join("")}(c,t),o.length>0&&(a[a.length]=o)),a.length>i+1&&(a[a.length]="",a[i]=a[i].replace("/>",">")),c["!protect"]&&(a[a.length]=function(e){var t={sheet:1};return sL.forEach((function(n){null!=e[n]&&e[n]&&(t[n]="1")})),oL.forEach((function(n){null==e[n]||e[n]||(t[n]="0")})),e.password&&(t.password=zO(e.password).toString(16).toUpperCase()),CA("sheetProtection",null,t)}(c["!protect"])),null!=c["!autofilter"]&&(a[a.length]=function(e,t,n,r){var i="string"==typeof e.ref?e.ref:OC(e.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var a=n.Workbook.Names,s=RC(i);s.s.r==s.e.r&&(s.e.r=RC(t["!ref"]).e.r,i=OC(s));for(var o=0;o0&&(a[a.length]=function(e){if(0===e.length)return"";for(var t='',n=0;n!=e.length;++n)t+='';return t+""}(c["!merges"]));var f,d,p=-1,m=-1;return c["!links"].length>0&&(a[a.length]="",c["!links"].forEach((function(e){e[1].Target&&(f={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(m=Ik(r,-1,oA(e[1].Target).replace(/#.*$/,""),Ck.HLINK),f["r:id"]="rId"+m),(p=e[1].Target.indexOf("#"))>-1&&(f.location=oA(e[1].Target.slice(p+1))),e[1].Tooltip&&(f.tooltip=oA(e[1].Tooltip)),a[a.length]=CA("hyperlink",null,f))})),a[a.length]=""),delete c["!links"],null!=c["!margins"]&&(a[a.length]=(WP(d=c["!margins"]),CA("pageMargins",null,d))),t&&!t.ignoreEC&&null!=t.ignoreEC||(a[a.length]=MA("ignoredErrors",CA("ignoredError",null,{numberStoredAsText:1,sqref:l}))),h.length>0&&(m=Ik(r,-1,"../drawings/drawing"+(e+1)+".xml",Ck.DRAW),a[a.length]=CA("drawing",null,{"r:id":"rId"+m}),c["!drawing"]=h),c["!comments"].length>0&&(m=Ik(r,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Ck.VML),a[a.length]=CA("legacyDrawing",null,{"r:id":"rId"+m}),c["!legacy"]=m),a.length>1&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}function fL(e,t,n,r){var i=function(e,t,n){var r=gC(145),i=(n["!rows"]||[])[e]||{};r.write_shift(4,e),r.write_shift(4,0);var a=320;i.hpx?a=20*iI(i.hpx):i.hpt&&(a=20*i.hpt),r.write_shift(2,a),r.write_shift(1,0);var s=0;i.level&&(s|=i.level),i.hidden&&(s|=16),(i.hpx||i.hpt)&&(s|=32),r.write_shift(1,s),r.write_shift(1,0);var o=0,c=r.l;r.l+=4;for(var l={r:e,c:0},u=0;u<16;++u)if(!(t.s.c>u+1<<10||t.e.cr.l?r.slice(0,r.l):r}(r,n,t);(i.length>17||(t["!rows"]||[])[r])&&_C(e,0,i)}var dL=ak,pL=sk;function mL(e){return[qC(e),ok(e),"n"]}var gL=ak,vL=sk;var yL=["left","right","top","bottom","header","footer"];function _L(e,t,n,r,i,a,s){if(void 0===t.v)return!1;var o="";switch(t.t){case"b":o=t.v?"1":"0";break;case"d":(t=RM(t)).z=t.z||MT[14],t.v=_M(CM(t.v)),t.t="n";break;case"n":case"e":o=""+t.v;break;default:o=t.v}var c={r:n,c:r};switch(c.s=GP(i.cellXfs,t,i),t.l&&a["!links"].push([kC(c),t.l]),t.c&&a["!comments"].push([kC(c),t.c]),t.t){case"s":case"str":return i.bookSST?(o=HP(i.Strings,t.v,i.revStrings),c.t="s",c.v=o,s?_C(e,18,function(e,t,n){return null==n&&(n=gC(8)),$C(t,n),n.write_shift(4,t.v),n}(0,c)):_C(e,7,function(e,t,n){return null==n&&(n=gC(12)),XC(t,n),n.write_shift(4,t.v),n}(0,c))):(c.t="str",s?_C(e,17,function(e,t,n){return null==n&&(n=gC(8+4*e.v.length)),$C(t,n),zC(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,c)):_C(e,6,function(e,t,n){return null==n&&(n=gC(12+4*e.v.length)),XC(t,n),zC(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,c))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?s?_C(e,13,function(e,t,n){return null==n&&(n=gC(8)),$C(t,n),rk(e.v,n),n}(t,c)):_C(e,2,function(e,t,n){return null==n&&(n=gC(12)),XC(t,n),rk(e.v,n),n}(t,c)):s?_C(e,16,function(e,t,n){return null==n&&(n=gC(12)),$C(t,n),ck(e.v,n),n}(t,c)):_C(e,5,function(e,t,n){return null==n&&(n=gC(16)),XC(t,n),ck(e.v,n),n}(t,c)),!0;case"b":return c.t="b",s?_C(e,15,function(e,t,n){return null==n&&(n=gC(5)),$C(t,n),n.write_shift(1,e.v?1:0),n}(t,c)):_C(e,4,function(e,t,n){return null==n&&(n=gC(9)),XC(t,n),n.write_shift(1,e.v?1:0),n}(t,c)),!0;case"e":return c.t="e",s?_C(e,14,function(e,t,n){return null==n&&(n=gC(8)),$C(t,n),n.write_shift(1,e.v),n.write_shift(2,0),n.write_shift(1,0),n}(t,c)):_C(e,3,function(e,t,n){return null==n&&(n=gC(9)),XC(t,n),n.write_shift(1,e.v),n}(t,c)),!0}return s?_C(e,12,function(e,t,n){return null==n&&(n=gC(4)),$C(t,n)}(0,c)):_C(e,1,function(e,t,n){return null==n&&(n=gC(8)),XC(t,n)}(0,c)),!0}function bL(e,t){var n,r;t&&t["!merges"]&&(_C(e,177,(n=t["!merges"].length,null==r&&(r=gC(4)),r.write_shift(4,n),r)),t["!merges"].forEach((function(t){_C(e,176,vL(t))})),_C(e,178))}function xL(e,t){t&&t["!cols"]&&(_C(e,390),t["!cols"].forEach((function(t,n){t&&_C(e,60,function(e,t,n){null==n&&(n=gC(18));var r=jP(e,t);n.write_shift(-4,e),n.write_shift(-4,e),n.write_shift(4,256*(r.width||10)),n.write_shift(4,0);var i=0;return t.hidden&&(i|=1),"number"==typeof r.width&&(i|=2),t.level&&(i|=t.level<<8),n.write_shift(2,i),n}(n,t))})),_C(e,391))}function wL(e,t){var n,r;t&&t["!ref"]&&(_C(e,648),_C(e,649,(n=IC(t["!ref"]),(r=gC(24)).write_shift(4,4),r.write_shift(4,1),sk(n,r),r)),_C(e,650))}function SL(e,t,n){t["!links"].forEach((function(t){if(t[1].Target){var r=Ik(n,-1,t[1].Target.replace(/#.*$/,""),Ck.HLINK);_C(e,494,function(e,t){var n=gC(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));sk({s:CC(e[0]),e:CC(e[0])},n),tk("rId"+t,n);var r=e[1].Target.indexOf("#");return zC((-1==r?"":e[1].Target.slice(r+1))||"",n),zC(e[1].Tooltip||"",n),zC("",n),n.slice(0,n.l)}(t,r))}})),delete t["!links"]}function EL(e,t,n){_C(e,133),_C(e,137,function(e,t,n){null==n&&(n=gC(30));var r=924;return(((t||{}).Views||[])[0]||{}).RTL&&(r|=32),n.write_shift(2,r),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}(0,n)),_C(e,138),_C(e,134)}function TL(e,t){var n,r;t["!protect"]&&_C(e,535,(n=t["!protect"],null==r&&(r=gC(66)),r.write_shift(2,n.password?zO(n.password):0),r.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(e){e[1]?r.write_shift(4,null==n[e[0]]||n[e[0]]?0:1):r.write_shift(4,null!=n[e[0]]&&n[e[0]]?0:1)})),r))}function ML(e,t,n,r){var i=yC(),a=n.SheetNames[e],s=n.Sheets[a]||{},o=a;try{n&&n.Workbook&&(o=n.Workbook.Sheets[e].CodeName||o)}catch(h){}var c,l,u=IC(s["!ref"]||"A1");if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],_C(i,129),(n.vbaraw||s["!outline"])&&_C(i,147,function(e,t,n){null==n&&(n=gC(84+4*e.length));var r=192;t&&(t.above&&(r&=-65),t.left&&(r&=-129)),n.write_shift(1,r);for(var i=1;i<3;++i)n.write_shift(1,0);return lk({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),ZC(e,n),n.slice(0,n.l)}(o,s["!outline"])),_C(i,148,pL(u)),EL(i,0,n.Workbook),xL(i,s),function(e,t,n,r){var i,a=IC(t["!ref"]||"A1"),s="",o=[];_C(e,145);var c=Array.isArray(t),l=a.e.r;t["!rows"]&&(l=Math.max(a.e.r,t["!rows"].length-1));for(var u=a.s.r;u<=l;++u){s=TC(u),fL(e,t,a,u);var h=!1;if(u<=a.e.r)for(var f=a.s.c;f<=a.e.c;++f){u===a.s.r&&(o[f]=AC(f)),i=o[f]+s;var d=c?(t[u]||[])[f]:t[i];h=!!d&&_L(e,d,u,f,r,t,h)}}_C(e,146)}(i,s,0,t),TL(i,s),function(e,t,n,r){if(t["!autofilter"]){var i=t["!autofilter"],a="string"==typeof i.ref?i.ref:OC(i.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var s=n.Workbook.Names,o=RC(a);o.s.r==o.e.r&&(o.e.r=RC(t["!ref"]).e.r,a=OC(o));for(var c=0;c0){var i=Ik(r,-1,"../drawings/vmlDrawing"+(n+1)+".vml",Ck.VML);_C(e,551,tk("rId"+i)),t["!legacy"]=i}}(i,s,e,r),_C(i,130),i.end()}function AL(e,t,n,r,i,a){var s=a||{"!type":"chart"};if(!e)return a;var o=0,c=0,l="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=function(e){var t,n=[],r=e.match(/^/);(e.match(/(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var t=e.match(/(.*)<\/c:v><\/c:pt>/);t&&(n[+t[1]]=r?+t[2]:t[2])}));var i=iA((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")})),[n,i,t]}(e);u.s.r=u.s.c=0,u.e.c=o,l=AC(o),t[0].forEach((function(e,n){s[l+TC(n)]={t:"n",v:e,z:t[1]},c=n})),u.e.r0&&(s["!ref"]=OC(u)),s}var CL=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],kL=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],RL=[],OL=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function IL(e,t){for(var n=0;n!=e.length;++n)for(var r=e[n],i=0;i!=t.length;++i){var a=t[i];if(null==r[a[0]])r[a[0]]=a[1];else switch(a[2]){case"bool":"string"==typeof r[a[0]]&&(r[a[0]]=fA(r[a[0]]));break;case"int":"string"==typeof r[a[0]]&&(r[a[0]]=parseInt(r[a[0]],10))}}}function PL(e,t){for(var n=0;n!=t.length;++n){var r=t[n];if(null==e[r[0]])e[r[0]]=r[1];else switch(r[2]){case"bool":"string"==typeof e[r[0]]&&(e[r[0]]=fA(e[r[0]]));break;case"int":"string"==typeof e[r[0]]&&(e[r[0]]=parseInt(e[r[0]],10))}}}function LL(e){PL(e.WBProps,CL),PL(e.CalcPr,OL),IL(e.WBView,kL),IL(e.Sheets,RL),zP.date1904=fA(e.WBProps.date1904)}var DL="][*?/\\".split("");function NL(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return DL.forEach((function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}function FL(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t,n,r,i=e.Workbook&&e.Workbook.Sheets||[];t=e.SheetNames,n=i,r=!!e.vbaraw,t.forEach((function(e,i){NL(e);for(var a=0;a22)throw new Error("Bad Code Name: Worksheet"+s)}}));for(var a=0;a0,r={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(CL.forEach((function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(r[t[0]]=e.Workbook.WBProps[t[0]])})),e.Workbook.WBProps.CodeName&&(r.codeName=e.Workbook.WBProps.CodeName,delete r.CodeName)),t[t.length]=CA("workbookPr",null,r);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="",a=0;a!=e.SheetNames.length&&i[a]&&i[a].Hidden;++a);a==e.SheetNames.length&&(a=0),t[t.length]='',t[t.length]=""}for(t[t.length]="",a=0;a!=e.SheetNames.length;++a){var s={name:oA(e.SheetNames[a].slice(0,31))};if(s.sheetId=""+(a+1),s["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden"}t[t.length]=CA("sheet",null,s)}return t[t.length]="",n&&(t[t.length]="",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var n={name:e.Name};e.Comment&&(n.comment=e.Comment),null!=e.Sheet&&(n.localSheetId=""+e.Sheet),e.Hidden&&(n.hidden="1"),e.Ref&&(t[t.length]=CA("definedName",oA(e.Ref),n))})),t[t.length]=""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function zL(e,t){var n={};return e.read_shift(4),n.ArchID=e.read_shift(4),e.l+=t-8,n}function VL(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var n,r,i=t.Workbook.Sheets,a=0,s=-1,o=-1;as))_C(e,135),_C(e,158,(n=s,r||(r=gC(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,n),r.write_shift(4,n),r.write_shift(1,120),r.length>r.l?r.slice(0,r.l):r)),_C(e,136)}}function HL(e,t){var n=yC();return _C(n,131),_C(n,128,function(e,t){t||(t=gC(127));for(var n=0;4!=n;++n)t.write_shift(4,0);return zC("SheetJS",t),zC(WE.version,t),zC(WE.version,t),zC("7262",t),t.length>t.l?t.slice(0,t.l):t}()),_C(n,153,function(e,t){t||(t=gC(72));var n=0;return e&&e.filterPrivacy&&(n|=8),t.write_shift(4,n),t.write_shift(4,0),ZC(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}(e.Workbook&&e.Workbook.WBProps||null)),VL(n,e),function(e,t){_C(e,143);for(var n=0;n!=t.SheetNames.length;++n){_C(e,156,(r={Hidden:t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[n]&&t.Workbook.Sheets[n].Hidden||0,iTabID:n+1,strRelID:"rId"+(n+1),name:t.SheetNames[n]},(i=void 0)||(i=gC(127)),i.write_shift(4,r.Hidden),i.write_shift(4,r.iTabID),tk(r.strRelID,i),zC(r.name.slice(0,31),i),i.length>i.l?i.slice(0,i.l):i))}var r,i;_C(e,144)}(n,e),_C(n,132),n.end()}function jL(e,t,n){return".bin"===t.slice(-4)?function(e,t){var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},r=[],i=!1;t||(t={}),t.biff=12;var a=[],s=[[]];return s.SheetNames=[],s.XTI=[],AD[16]={n:"BrtFRTArchID$",f:zL},vC(e,(function(e,o,c){switch(c){case 156:s.SheetNames.push(e.name),n.Sheets.push(e);break;case 153:n.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=EP(e.Ptg,0,null,s,t),delete t.SID,delete e.Ptg,a.push(e);break;case 1036:case 361:case 2071:case 158:case 143:case 664:case 353:case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:case 16:break;case 357:case 358:case 355:case 667:s[0].length?s.push([c,e]):s[0]=[c,e],s[s.length-1].XTI=[];break;case 362:0===s.length&&(s[0]=[],s[0].XTI=[]),s[s.length-1].XTI=s[s.length-1].XTI.concat(e),s.XTI=s.XTI.concat(e);break;case 35:case 37:r.push(c),i=!0;break;case 36:case 38:r.pop(),i=!1;break;default:if(o.T);else if(!i||t.WTF&&37!=r[r.length-1]&&35!=r[r.length-1])throw new Error("Unexpected record 0x"+c.toString(16))}}),t),LL(n),n.Names=a,n.supbooks=s,n}(e,n):function(e,t){if(!e)throw new Error("Could not find file");var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},r=!1,i="xmlns",a={},s=0;if(e.replace(KM,(function(o,c){var l=eA(o);switch(tA(l[0])){case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":CL.forEach((function(e){if(null!=l[e[0]])switch(e[2]){case"bool":n.WBProps[e[0]]=fA(l[e[0]]);break;case"int":n.WBProps[e[0]]=parseInt(l[e[0]],10);break;default:n.WBProps[e[0]]=l[e[0]]}})),l.codeName&&(n.WBProps.CodeName=vA(l.codeName));break;case"":delete l[0],n.WBView.push(l);break;case"":case"":r=!0;break;case"":case"":case"":r=!1;break;case"":a.Ref=iA(vA(e.slice(s,c))),n.Names.push(a);break;case"":delete l[0],n.CalcPr=l;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+l[0]+" in workbook")}return o})),-1===PA.indexOf(n.xmlns))throw new Error("Unknown Namespace: "+n.xmlns);return LL(n),n}(e,n)}function WL(e,t,n,r,i,a,s,o){return".bin"===t.slice(-4)?function(e,t,n,r,i,a,s){if(!e)return e;var o=t||{};r||(r={"!id":{}});var c,l,u,h,f,d,p,m,g,v,y=o.dense?[]:{},_={s:{r:2e6,c:2e6},e:{r:0,c:0}},b=!1,x=!1,w=[];o.biff=12,o["!row"]=0;var S=0,E=!1,T=[],M={},A=o.supbooks||i.supbooks||[[]];if(A.sharedf=M,A.arrayf=T,A.SheetNames=i.SheetNames||i.Sheets.map((function(e){return e.name})),!o.supbooks&&(o.supbooks=A,i.Names))for(var C=0;C=P[0].s.r&&l.r<=P[0].e.r&&d>=P[0].s.c&&d<=P[0].e.c&&(u.F=OC(P[0]),E=!0)}!E&&e.length>3&&(u.f=e[3])}if(_.s.r>l.r&&(_.s.r=l.r),_.s.c>d&&(_.s.c=d),_.e.rl.r&&(_.s.r=l.r),_.s.c>d&&(_.s.c=d),_.e.r=e.s;)R[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},I||(I=!0,tI(e.w/256)),nI(R[e.e+1]);break;case 161:y["!autofilter"]={ref:OC(e)};break;case 476:y["!margins"]=e;break;case 147:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name),(e.above||e.left)&&(y["!outline"]={above:e.above,left:e.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),e.RTL&&(i.Views[0].RTL=!0);break;case 485:case 64:case 1053:case 151:case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:case 37:b=!0;break;case 36:case 38:b=!1;break;default:if(t.T);else if(!b||o.WTF)throw new Error("Unexpected record 0x"+C.toString(16))}}),o),delete o.supbooks,delete o["!row"],!y["!ref"]&&(_.s.r<2e6||c&&(c.e.r>0||c.e.c>0||c.s.r>0||c.s.c>0))&&(y["!ref"]=OC(c||_)),o.sheetRows&&y["!ref"]){var P=IC(y["!ref"]);o.sheetRows<=+P.e.r&&(P.e.r=o.sheetRows-1,P.e.r>_.e.r&&(P.e.r=_.e.r),P.e.r_.e.c&&(P.e.c=_.e.c),P.e.c0&&(y["!merges"]=w),R.length>0&&(y["!cols"]=R),O.length>0&&(y["!rows"]=O),y}(e,r,n,i,a,s,o):iL(e,r,n,i,a,s,o)}function GL(e,t,n,r,i,a,s,o){return".bin"===t.slice(-4)?function(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var a={"!type":"chart","!drawel":null,"!rel":""},s=!1;return vC(e,(function(e,r,o){switch(o){case 550:a["!rel"]=e;break;case 651:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:case 37:case 38:break;case 35:s=!0;break;case 36:s=!1;break;default:if(r.T>0);else if(r.T<0);else if(!s||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}),t),r["!id"][a["!rel"]]&&(a["!drawel"]=r["!id"][a["!rel"]]),a}(e,r,n,i,a):function(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var a,s={"!type":"chart","!drawel":null,"!rel":""},o=e.match(tL);return o&&aL(o[0],0,i,n),(a=e.match(/drawing r:id="(.*?)"/))&&(s["!rel"]=a[1]),r["!id"][s["!rel"]]&&(s["!drawel"]=r["!id"][s["!rel"]]),s}(e,0,n,i,a)}function XL(e,t,n,r){return".bin"===t.slice(-4)?function(e,t,n){var r={NumberFmt:[]};for(var i in MT)r.NumberFmt[i]=MT[i];r.CellXf=[],r.Fonts=[];var a=[],s=!1;return vC(e,(function(e,i,o){switch(o){case 44:r.NumberFmt[e[0]]=e[1],aM(e[1],e[0]);break;case 43:r.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=XO(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:case 45:case 46:case 48:case 507:case 572:case 475:case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 47:617==a[a.length-1]&&r.CellXf.push(e);break;case 35:s=!0;break;case 36:s=!1;break;case 37:a.push(o),s=!0;break;case 38:a.pop(),s=!1;break;default:if(i.T>0)a.push(o);else if(i.T<0)a.pop();else if(!s||n.WTF&&37!=a[a.length-1])throw new Error("Unexpected record 0x"+o.toString(16))}})),r}(e,n,r):lI(e,n,r)}function qL(e,t,n){return".bin"===t.slice(-4)?function(e,t){var n=[],r=!1;return vC(e,(function(e,i,a){switch(a){case 159:n.Count=e[0],n.Unique=e[1];break;case 19:n.push(e);break;case 160:return!0;case 35:r=!0;break;case 36:r=!1;break;default:if(i.T,!r||t.WTF)throw new Error("Unexpected record 0x"+a.toString(16))}})),n}(e,n):function(e,t){var n=[],r="";if(!e)return n;var i=e.match(EO);if(i){r=i[2].replace(TO,"").split(MO);for(var a=0;a!=r.length;++a){var s=SO(r[a].trim(),t);null!=s&&(n[n.length]=s)}i=eA(i[1]),n.Count=i.count,n.Unique=i.uniqueCount}return n}(e,n)}function $L(e,t,n){return".bin"===t.slice(-4)?function(e,t){var n=[],r=[],i={},a=!1;return vC(e,(function(e,s,o){switch(o){case 632:r.push(e);break;case 635:i=e;break;case 637:i.t=e.t,i.h=e.h,i.r=e.r;break;case 636:if(i.author=r[i.iauthor],delete i.iauthor,t.sheetRows&&i.rfx&&t.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,n.push(i);break;case 3072:case 37:case 38:break;case 35:a=!0;break;case 36:a=!1;break;default:if(s.T);else if(!a||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}})),n}(e,n):function(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var n=[],r=[],i=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&n.push(t[1])}}));var a=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return a&&a[1]&&a[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var i=e.match(/<(?:\w+:)?comment[^>]*>/);if(i){var a=eA(i[0]),s={author:a.authorId&&n[a.authorId]||"sheetjsghost",ref:a.ref,guid:a.guid},o=CC(a.ref);if(!(t.sheetRows&&t.sheetRows<=o.r)){var c=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),l=!!c&&!!c[1]&&SO(c[1])||{r:"",t:"",h:""};s.r=l.r,""==l.r&&(l.t=l.h=""),s.t=(l.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(s.h=l.h),r.push(s)}}}})),r}(e,n)}function YL(e,t,n){return".bin"===t.slice(-4)?function(e,t,n){var r=[];return vC(e,(function(e,t,n){if(63===n)r.push(e);else if(!t.T)throw new Error("Unexpected record 0x"+n.toString(16))})),r}(e):function(e){var t=[];if(!e)return t;var n=1;return(e.match(KM)||[]).forEach((function(e){var r=eA(e);switch(r[0]){case"":case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":break;case"":case"":s=2;break;case"":a=!1;break;case"-1?iA(t||e).replace(/<.*?>/g,""):r.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),r.v=(CM(e)-new Date(Date.UTC(1899,11,30)))/864e5,r.v!=r.v?r.v=iA(e):r.v<60&&(r.v=r.v-1),u&&"General"!=u||(u="yyyy-mm-dd");case"Number":void 0===r.v&&(r.v=+e),r.t||(r.t="n");break;case"Error":r.t="e",r.v=Ek[e],!1!==l.cellText&&(r.w=e);break;default:""==e&&""==t?r.t="z":(r.t="s",r.v=hA(t||e))}if(sD(r,u,l),!1!==l.cellFormula)if(r.Formula){var m=iA(r.Formula);61==m.charCodeAt(0)&&(m=m.slice(1)),r.f=qI(m,i),delete r.Formula,"RC"==r.ArrayRange?r.F=qI("RC:RC",i):r.ArrayRange&&(r.F=qI(r.ArrayRange,i),c.push([IC(r.F),r.F]))}else for(p=0;p=c[p][0].s.r&&i.r<=c[p][0].e.r&&i.c>=c[p][0].s.c&&i.c<=c[p][0].e.c&&(r.F=c[p][1]);l.cellStyles&&(d.forEach((function(e){!f.patternType&&e.patternType&&(f.patternType=e.patternType)})),r.s=f),void 0!==r.StyleID&&(r.ixfe=r.StyleID)}function lD(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function uD(e,t){var n=t||{};oM();var r=eT(RA(e));"binary"!=n.type&&"array"!=n.type&&"base64"!=n.type||(r=vA(r));var i,a=r.slice(0,1024).toLowerCase(),s=!1;if((1023&(a=a.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&a.indexOf(","),1023&a.indexOf(";"))){var o=RM(n);return o.type="string",gO.to_workbook(r,o)}if(-1==a.indexOf("=0&&(s=!0)})),s)return function(e,t){var n=e.match(/[\s\S]*?<\/table>/gi);if(!n||0==n.length)throw new Error("Invalid HTML: could not find ");if(1==n.length)return DC(BD(n[0],t),t);var r={SheetNames:[],Sheets:{}};return n.forEach((function(e,n){eF(r,BD(e,t),"Sheet"+(n+1))})),r}(r,n);eD={"General Number":"General","General Date":MT[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":MT[15],"Short Date":MT[14],"Long Time":MT[19],"Medium Time":MT[18],"Short Time":MT[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:MT[2],Standard:MT[4],Percent:MT[10],Scientific:MT[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var c,l,u=[],h={},f=[],d=n.dense?[]:{},p="",m={},g={},v=rD(''),y=0,_=0,b=0,x={s:{r:2e6,c:2e6},e:{r:0,c:0}},w={},S={},E="",T=0,M=[],A={},C={},k=0,R=[],O=[],I={},P=[],L=!1,D=[],N=[],F={},U=0,B=0,z={Sheets:[],WBProps:{date1904:!1}},V={};OA.lastIndex=0,r=r.replace(//gm,"");for(var H="";i=OA.exec(r);)switch(i[3]=(H=i[3]).toLowerCase()){case"data":if("data"==H){if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&u.push([i[3],!0]);break}if(u[u.length-1][1])break;"/"===i[1]?cD(r.slice(y,i.index),E,v,"comment"==u[u.length-1][0]?I:m,{c:_,r:b},w,P[_],g,D,n):(E="",v=rD(i[0]),y=i.index+i[0].length);break;case"cell":if("/"===i[1])if(O.length>0&&(m.c=O),(!n.sheetRows||n.sheetRows>b)&&void 0!==m.v&&(n.dense?(d[b]||(d[b]=[]),d[b][_]=m):d[AC(_)+TC(b)]=m),m.HRef&&(m.l={Target:iA(m.HRef)},m.HRefScreenTip&&(m.l.Tooltip=m.HRefScreenTip),delete m.HRef,delete m.HRefScreenTip),(m.MergeAcross||m.MergeDown)&&(U=_+(0|parseInt(m.MergeAcross,10)),B=b+(0|parseInt(m.MergeDown,10)),M.push({s:{c:_,r:b},e:{c:U,r:B}})),n.sheetStubs)if(m.MergeAcross||m.MergeDown){for(var j=_;j<=U;++j)for(var W=b;W<=B;++W)(j>_||W>b)&&(n.dense?(d[W]||(d[W]=[]),d[W][j]={t:"z"}):d[AC(j)+TC(W)]={t:"z"});_=U+1}else++_;else m.MergeAcross?_=U+1:++_;else(m=iD(i[0])).Index&&(_=+m.Index-1),_x.e.c&&(x.e.c=_),"/>"===i[0].slice(-2)&&++_,O=[];break;case"row":"/"===i[1]||"/>"===i[0].slice(-2)?(bx.e.r&&(x.e.r=b),"/>"===i[0].slice(-2)&&(g=rD(i[0])).Index&&(b=+g.Index-1),_=0,++b):((g=rD(i[0])).Index&&(b=+g.Index-1),F={},("0"==g.AutoFitHeight||g.Height)&&(F.hpx=parseInt(g.Height,10),F.hpt=iI(F.hpx),N[b]=F),"1"==g.Hidden&&(F.hidden=!0,N[b]=F));break;case"worksheet":if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"));f.push(p),x.s.r<=x.e.r&&x.s.c<=x.e.c&&(d["!ref"]=OC(x),n.sheetRows&&n.sheetRows<=x.e.r&&(d["!fullref"]=d["!ref"],x.e.r=n.sheetRows-1,d["!ref"]=OC(x))),M.length&&(d["!merges"]=M),P.length>0&&(d["!cols"]=P),N.length>0&&(d["!rows"]=N),h[p]=d}else x={s:{r:2e6,c:2e6},e:{r:0,c:0}},b=_=0,u.push([i[3],!1]),c=rD(i[0]),p=iA(c.Name),d=n.dense?[]:{},M=[],D=[],N=[],V={name:p,Hidden:0},z.Sheets.push(V);break;case"table":if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"))}else{if("/>"==i[0].slice(-2))break;u.push([i[3],!1]),P=[],L=!1}break;case"style":"/"===i[1]?oD(w,S,n):S=rD(i[0]);break;case"numberformat":S.nf=iA(rD(i[0]).Format||"General"),eD[S.nf]&&(S.nf=eD[S.nf]);for(var G=0;392!=G&&MT[G]!=S.nf;++G);if(392==G)for(G=57;392!=G;++G)if(null==MT[G]){aM(S.nf,G);break}break;case"column":if("table"!==u[u.length-1][0])break;if((l=rD(i[0])).Hidden&&(l.hidden=!0,delete l.Hidden),l.Width&&(l.wpx=parseInt(l.Width,10)),!L&&l.wpx>10){L=!0,ZO=qO;for(var X=0;X0&&(Y.Sheet=z.Sheets.length-1),z.Names.push(Y);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":case"protection":case"paragraphs":case"name":case"pixelsperinch":case"null":break;case"font":if("/>"===i[0].slice(-2))break;"/"===i[1]?E+=r.slice(T,i.index):T=i.index+i[0].length;break;case"interior":if(!n.cellStyles)break;S.Interior=rD(i[0]);break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===i[0].slice(-2))break;"/"===i[1]?Yk(A,H,r.slice(k,i.index)):k=i.index+i[0].length;break;case"styles":case"workbook":if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"))}else u.push([i[3],!1]);break;case"comment":if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"));lD(I),O.push(I)}else u.push([i[3],!1]),I={a:(c=rD(i[0])).Author};break;case"autofilter":if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"))}else if("/"!==i[0].charAt(i[0].length-2)){var Z=rD(i[0]);d["!autofilter"]={ref:qI(Z.Range).replace(/\$/g,"")},u.push([i[3],!0])}break;case"datavalidation":if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&u.push([i[3],!0]);break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===i[1]){if((c=u.pop())[0]!==i[3])throw new Error("Bad state: "+c.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&u.push([i[3],!0]);break;default:if(0==u.length&&"document"==i[3])return ZD(r,n);if(0==u.length&&"uof"==i[3])return ZD(r,n);var K=!0;switch(u[u.length-1][0]){case"officedocumentsettings":switch(i[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:K=!1}break;case"componentoptions":switch(i[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:K=!1}break;case"excelworkbook":switch(i[3]){case"date1904":z.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:K=!1}break;case"workbookoptions":switch(i[3]){case"owcversion":case"height":case"width":break;default:K=!1}break;case"worksheetoptions":switch(i[3]){case"visible":if("/>"===i[0].slice(-2));else if("/"===i[1])switch(r.slice(k,i.index)){case"SheetHidden":V.Hidden=1;break;case"SheetVeryHidden":V.Hidden=2}else k=i.index+i[0].length;break;case"header":d["!margins"]||WP(d["!margins"]={},"xlml"),isNaN(+eA(i[0]).Margin)||(d["!margins"].header=+eA(i[0]).Margin);break;case"footer":d["!margins"]||WP(d["!margins"]={},"xlml"),isNaN(+eA(i[0]).Margin)||(d["!margins"].footer=+eA(i[0]).Margin);break;case"pagemargins":var J=eA(i[0]);d["!margins"]||WP(d["!margins"]={},"xlml"),isNaN(+J.Top)||(d["!margins"].top=+J.Top),isNaN(+J.Left)||(d["!margins"].left=+J.Left),isNaN(+J.Right)||(d["!margins"].right=+J.Right),isNaN(+J.Bottom)||(d["!margins"].bottom=+J.Bottom);break;case"displayrighttoleft":z.Views||(z.Views=[]),z.Views[0]||(z.Views[0]={}),z.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;case"nosummaryrowsbelowdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].above=!0;break;case"nosummarycolumnsrightdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].left=!0;break;default:K=!1}break;case"pivottable":case"pivotcache":switch(i[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:K=!1}break;case"pagebreaks":switch(i[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:K=!1}break;case"autofilter":switch(i[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:K=!1}break;case"querytable":switch(i[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:K=!1}break;case"datavalidation":switch(i[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:K=!1}break;case"sorting":case"conditionalformatting":switch(i[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:K=!1}break;case"mapinfo":case"schema":case"data":switch(i[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:K=!1}break;case"smarttags":break;default:K=!1}if(K)break;if(i[3].match(/!\[CDATA/))break;if(!u[u.length-1][1])throw"Unrecognized tag: "+i[3]+"|"+u.join("|");if("customdocumentproperties"===u[u.length-1][0]){if("/>"===i[0].slice(-2))break;"/"===i[1]?aD(C,H,R,r.slice(k,i.index)):(R=i,k=i.index+i[0].length);break}if(n.WTF)throw"Unrecognized tag: "+i[3]+"|"+u.join("|")}var Q={};return n.bookSheets||n.bookProps||(Q.Sheets=h),Q.SheetNames=f,Q.Workbook=z,Q.SSF=RM(MT),Q.Props=A,Q.Custprops=C,Q}function hD(e,t){switch(CN(t=t||{}),t.type||"base64"){case"base64":return uD(aT(e),t);case"binary":case"buffer":case"file":return uD(e,t);case"array":return uD(fT(e),t)}}function fD(e,t){var n=[];return e.Props&&n.push(function(e,t){var n=[];return pM($k).map((function(e){for(var t=0;t'+i.join("")+""}(e.Props,e.Custprops)),n.join("")}function dD(e){return CA("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+YI(e.Ref,{r:0,c:0})})}function pD(e,t,n,r,i,a,s){if(!e||null==e.v&&null==e.f)return"";var o={};if(e.f&&(o["ss:Formula"]="="+oA(YI(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var c=CC(e.F.slice(t.length+1));o["ss:ArrayRange"]="RC:R"+(c.r==s.r?"":"["+(c.r-s.r)+"]")+"C"+(c.c==s.c?"":"["+(c.c-s.c)+"]")}if(e.l&&e.l.Target&&(o["ss:HRef"]=oA(e.l.Target),e.l.Tooltip&&(o["x:HRefScreenTip"]=oA(e.l.Tooltip))),n["!merges"])for(var l=n["!merges"],u=0;u!=l.length;++u)l[u].s.c==s.c&&l[u].s.r==s.r&&(l[u].e.c>l[u].s.c&&(o["ss:MergeAcross"]=l[u].e.c-l[u].s.c),l[u].e.r>l[u].s.r&&(o["ss:MergeDown"]=l[u].e.r-l[u].s.r));var h="",f="";switch(e.t){case"z":if(!r.sheetStubs)return"";break;case"n":h="Number",f=String(e.v);break;case"b":h="Boolean",f=e.v?"1":"0";break;case"e":h="Error",f=Sk[e.v];break;case"d":h="DateTime",f=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||MT[14]);break;case"s":h="String",f=((e.v||"")+"").replace(aA,(function(e){return rA[e]})).replace(lA,(function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}))}var d=GP(r.cellXfs,e,r);o["ss:StyleID"]="s"+(21+d),o["ss:Index"]=s.c+1;var p=null!=e.v?f:"",m="z"==e.t?"":''+p+"";return(e.c||[]).length>0&&(m+=e.c.map((function(e){var t=CA("ss:Data",(e.t||"").replace(/(\r\n|[\r\n])/g," "),{xmlns:"http://www.w3.org/TR/REC-html40"});return CA("Comment",t,{"ss:Author":e.a})})).join("")),CA("Cell",m,o)}function mD(e,t){var n='"}function gD(e,t,n){var r=[],i=n.SheetNames[e],a=n.Sheets[i],s=a?function(e,t,n,r){if(!e)return"";if(!((r||{}).Workbook||{}).Names)return"";for(var i=r.Workbook.Names,a=[],s=0;s0&&r.push(""+s+""),s=a?function(e,t,n,r){if(!e["!ref"])return"";var i=IC(e["!ref"]),a=e["!merges"]||[],s=0,o=[];e["!cols"]&&e["!cols"].forEach((function(e,t){nI(e);var n=!!e.width,r=jP(t,e),i={"ss:Index":t+1};n&&(i["ss:Width"]=KO(r.width)),e.hidden&&(i["ss:Hidden"]="1"),o.push(CA("Column",null,i))}));for(var c=Array.isArray(e),l=i.s.r;l<=i.e.r;++l){for(var u=[mD(l,(e["!rows"]||[])[l])],h=i.s.c;h<=i.e.c;++h){var f=!1;for(s=0;s!=a.length;++s)if(!(a[s].s.c>h||a[s].s.r>l||a[s].e.c"),u.length>2&&o.push(u.join(""))}return o.join("")}(a,t):"",s.length>0&&r.push("
"+s+"
"),r.push(function(e,t,n,r){if(!e)return"";var i=[];if(e["!margins"]&&(i.push(""),e["!margins"].header&&i.push(CA("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(CA("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(CA("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[n])if(r.Workbook.Sheets[n].Hidden)i.push(CA("Visible",1==r.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push(""),e["!protect"]&&(i.push(MA("ProtectContents","True")),e["!protect"].objects&&i.push(MA("ProtectObjects","True")),e["!protect"].scenarios&&i.push(MA("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||i.push(MA("EnableSelection","UnlockedCells")):i.push(MA("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(t){e["!protect"][t[0]]&&i.push("<"+t[1]+"/>")}))),0==i.length?"":CA("WorksheetOptions",i.join(""),{xmlns:LA.x})}(a,0,e,n)),r.join("")}function vD(e,t){t||(t={}),e.SSF||(e.SSF=RM(MT)),e.SSF&&(oM(),sM(e.SSF),t.revssf=vM(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],GP(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(fD(e,t)),n.push(""),n.push(""),n.push("");for(var r=0;r'];return t.cellXfs.forEach((function(e,t){var r=[];r.push(CA("NumberFormat",null,{"ss:Format":oA(MT[e.numFmtId])}));var i={"ss:ID":"s"+(21+t)};n.push(CA("Style",r.join(""),i))})),CA("Styles",n.join(""))}(0,t),n[3]=function(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,n=[],r=0;r40?t:(n.l-=4,t.Reserved1=n.read_shift(0,"lpstr-ansi"),n.length-n.l<=4||1907505652!==(r=n.read_shift(4))?t:(t.UnicodeClipboardFormat=function(e){return uk(e,2)}(n),0==(r=n.read_shift(4))||r>40?t:(n.l-=4,void(t.Reserved2=n.read_shift(0,"lpwstr")))))}var _D=[60,1084,2066,2165,2175];function bD(e,t,n,r,i){var a=r,s=[],o=n.slice(n.l,n.l+a);if(i&&i.enc&&i.enc.insitu&&o.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:i.enc.insitu(o)}s.push(o),n.l+=a;for(var c=rC(n,n.l),l=CD[c],u=0;null!=l&&_D.indexOf(c)>-1;)a=rC(n,n.l+2),u=n.l+4,2066==c?u+=4:2165!=c&&2175!=c||(u+=12),o=n.slice(u,n.l+4+a),s.push(o),n.l+=4+a,l=CD[c=rC(n,n.l)];var h=pT(s);pC(h,0);var f=0;h.lens=[];for(var d=0;d1||r.sheetRows&&e.r>=r.sheetRows)){if(r.cellStyles&&t.XF&&t.XF.data&&function(e,t,n){var r,i=t.XF.data;i&&i.patternType&&n&&n.cellStyles&&(t.s={},t.s.patternType=i.patternType,(r=GO(M(i.icvFore)))&&(t.s.fgColor={rgb:r}),(r=GO(M(i.icvBack)))&&(t.s.bgColor={rgb:r}))}(0,t,r),delete t.ixfe,delete t.XF,n=e,_=kC(e),p&&p.s&&p.e||(p={s:{r:0,c:0},e:{r:0,c:0}}),e.rp.e.r&&(p.e.r=e.r+1),e.c+1>p.e.c&&(p.e.c=e.c+1),r.cellFormula&&t.f)for(var i=0;ie.c||x[i][0].s.r>e.r||x[i][0].e.c>8)!==j)throw new Error("rt mismatch: "+X+"!="+j);12==G.r&&(e.l+=10,W-=10)}var q={};if(q=10===j?G.f(e,W,C):bD(j,G,e,W,C),0==F&&-1===[9,521,1033,2057].indexOf(N))continue;switch(j){case 34:u.opts.Date1904=E.WBProps.date1904=q;break;case 134:u.opts.WriteProtect=!0;break;case 47:if(C.enc||(e.l=0),C.enc=q,!t.password)throw new Error("File is password-protected");if(null==q.valid)throw new Error("Encryption scheme unsupported");if(!q.valid)throw new Error("Password is incorrect");break;case 92:C.lastuser=q;break;case 66:var $=Number(q);switch($){case 21010:$=1200;break;case 32768:$=1e4;break;case 32769:$=1252}YE(C.codepage=$),V=!0;break;case 317:C.rrtabid=q;break;case 25:C.winlocked=q;break;case 439:u.opts.RefreshAll=q;break;case 12:u.opts.CalcCount=q;break;case 16:u.opts.CalcDelta=q;break;case 17:u.opts.CalcIter=q;break;case 13:u.opts.CalcMode=q;break;case 14:u.opts.CalcPrecision=q;break;case 95:u.opts.CalcSaveRecalc=q;break;case 15:C.CalcRefMode=q;break;case 2211:u.opts.FullCalc=q;break;case 129:q.fDialog&&(f["!type"]="dialog"),q.fBelow||((f["!outline"]||(f["!outline"]={})).above=!0),q.fRight||((f["!outline"]||(f["!outline"]={})).left=!0);break;case 224:w.push(q);break;case 430:L.push([q]),L[L.length-1].XTI=[];break;case 35:case 547:L[L.length-1].push(q);break;case 24:case 536:D={Name:q.Name,Ref:EP(q.rgce,0,null,L,C)},q.itab>0&&(D.Sheet=q.itab-1),L.names.push(D),L[0]||(L[0]=[],L[0].XTI=[]),L[L.length-1].push(q),"_xlnm._FilterDatabase"==q.Name&&q.itab>0&&q.rgce&&q.rgce[0]&&q.rgce[0][0]&&"PtgArea3d"==q.rgce[0][0][0]&&(z[q.itab-1]={ref:OC(q.rgce[0][0][1][2])});break;case 22:C.ExternCount=q;break;case 23:0==L.length&&(L[0]=[],L[0].XTI=[]),L[L.length-1].XTI=L[L.length-1].XTI.concat(q),L.XTI=L.XTI.concat(q);break;case 2196:if(C.biff<8)break;null!=D&&(D.Comment=q[1]);break;case 18:f["!protect"]=q;break;case 19:0!==q&&C.WTF;break;case 133:d[q.pos]=q,C.snames.push(q.name);break;case 10:if(--F)break;if(p.e){if(p.e.r>0&&p.e.c>0){if(p.e.r--,p.e.c--,f["!ref"]=OC(p),t.sheetRows&&t.sheetRows<=p.e.r){var Y=p.e.r;p.e.r=t.sheetRows-1,f["!fullref"]=f["!ref"],f["!ref"]=OC(p),p.e.r=Y}p.e.r++,p.e.c++}k.length>0&&(f["!merges"]=k),R.length>0&&(f["!objects"]=R),O.length>0&&(f["!cols"]=O),I.length>0&&(f["!rows"]=I),E.Sheets.push(T)}""===v?y=f:h[v]=f,f=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===C.biff&&(C.biff={9:2,521:3,1033:4}[j]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[q.BIFFVer]||8),C.biffguess=0==q.BIFFVer,0==q.BIFFVer&&4096==q.dt&&(C.biff=5,V=!0,YE(C.codepage=28591)),8==C.biff&&0==q.BIFFVer&&16==q.dt&&(C.biff=2),F++)break;if(f=t.dense?[]:{},C.biff<8&&!V&&(V=!0,YE(C.codepage=t.codepage||1252)),C.biff<5||0==q.BIFFVer&&4096==q.dt){""===v&&(v="Sheet1"),p={s:{r:0,c:0},e:{r:0,c:0}};var Z={pos:e.l-W,name:v};d[Z.pos]=Z,C.snames.push(v)}else v=(d[H]||{name:""}).name;32==q.dt&&(f["!type"]="chart"),64==q.dt&&(f["!type"]="macro"),k=[],R=[],C.arrayf=x=[],O=[],I=[],P=!1,T={Hidden:(d[H]||{hs:0}).hs,name:v};break;case 515:case 3:case 2:"chart"==f["!type"]&&(t.dense?(f[q.r]||[])[q.c]:f[kC({c:q.c,r:q.r})])&&++q.c,o={ixfe:q.ixfe,XF:w[q.ixfe]||{},v:q.val,t:"n"},U>0&&(o.z=B[o.ixfe>>8&63]),xD(o,t,u.opts.Date1904),A({c:q.c,r:q.r},o,t);break;case 5:case 517:o={ixfe:q.ixfe,XF:w[q.ixfe],v:q.val,t:q.t},U>0&&(o.z=B[o.ixfe>>8&63]),xD(o,t,u.opts.Date1904),A({c:q.c,r:q.r},o,t);break;case 638:o={ixfe:q.ixfe,XF:w[q.ixfe],v:q.rknum,t:"n"},U>0&&(o.z=B[o.ixfe>>8&63]),xD(o,t,u.opts.Date1904),A({c:q.c,r:q.r},o,t);break;case 189:for(var K=q.c;K<=q.C;++K){var J=q.rkrec[K-q.c][0];o={ixfe:J,XF:w[J],v:q.rkrec[K-q.c][1],t:"n"},U>0&&(o.z=B[o.ixfe>>8&63]),xD(o,t,u.opts.Date1904),A({c:K,r:q.r},o,t)}break;case 6:case 518:case 1030:if("String"==q.val){m=q;break}if((o=wD(q.val,q.cell.ixfe,q.tt)).XF=w[o.ixfe],t.cellFormula){var Q=q.formula;if(Q&&Q[0]&&Q[0][0]&&"PtgExp"==Q[0][0][0]){var ee=Q[0][0][1][0],te=Q[0][0][1][1],ne=kC({r:ee,c:te});b[ne]?o.f=""+EP(q.formula,0,q.cell,L,C):o.F=((t.dense?(f[ee]||[])[te]:f[ne])||{}).F}else o.f=""+EP(q.formula,0,q.cell,L,C)}U>0&&(o.z=B[o.ixfe>>8&63]),xD(o,t,u.opts.Date1904),A(q.cell,o,t),m=q;break;case 7:case 519:if(!m)throw new Error("String record expects Formula");m.val=q,(o=wD(q,m.cell.ixfe,"s")).XF=w[o.ixfe],t.cellFormula&&(o.f=""+EP(m.formula,0,m.cell,L,C)),U>0&&(o.z=B[o.ixfe>>8&63]),xD(o,t,u.opts.Date1904),A(m.cell,o,t),m=null;break;case 33:case 545:x.push(q);var re=kC(q[0].s);if(r=t.dense?(f[q[0].s.r]||[])[q[0].s.c]:f[re],t.cellFormula&&r){if(!m)break;if(!re||!r)break;r.f=""+EP(q[1],0,q[0],L,C),r.F=OC(q[0])}break;case 1212:if(!t.cellFormula)break;if(_){if(!m)break;b[kC(m.cell)]=q[0],((r=t.dense?(f[m.cell.r]||[])[m.cell.c]:f[kC(m.cell)])||{}).f=""+EP(q[0],0,n,L,C)}break;case 253:o=wD(g[q.isst].t,q.ixfe,"s"),g[q.isst].h&&(o.h=g[q.isst].h),o.XF=w[o.ixfe],U>0&&(o.z=B[o.ixfe>>8&63]),xD(o,t,u.opts.Date1904),A({c:q.c,r:q.r},o,t);break;case 513:t.sheetStubs&&(o={ixfe:q.ixfe,XF:w[q.ixfe],t:"z"},U>0&&(o.z=B[o.ixfe>>8&63]),xD(o,t,u.opts.Date1904),A({c:q.c,r:q.r},o,t));break;case 190:if(t.sheetStubs)for(var ie=q.c;ie<=q.C;++ie){var ae=q.ixfe[ie-q.c];o={ixfe:ae,XF:w[ae],t:"z"},U>0&&(o.z=B[o.ixfe>>8&63]),xD(o,t,u.opts.Date1904),A({c:ie,r:q.r},o,t)}break;case 214:case 516:case 4:(o=wD(q.val,q.ixfe,"s")).XF=w[o.ixfe],U>0&&(o.z=B[o.ixfe>>8&63]),xD(o,t,u.opts.Date1904),A({c:q.c,r:q.r},o,t);break;case 0:case 512:1===F&&(p=q);break;case 252:g=q;break;case 1054:if(4==C.biff){B[U++]=q[1];for(var se=0;se=163&&aM(q[1],U+163)}else aM(q[1],q[0]);break;case 30:B[U++]=q;for(var oe=0;oe=163&&aM(q,U+163);break;case 229:k=k.concat(q);break;case 93:R[q.cmo[0]]=C.lastobj=q;break;case 438:C.lastobj.TxO=q;break;case 127:C.lastobj.ImData=q;break;case 440:for(s=q[0].s.r;s<=q[0].e.r;++s)for(a=q[0].s.c;a<=q[0].e.c;++a)(r=t.dense?(f[s]||[])[a]:f[kC({c:a,r:s})])&&(r.l=q[1]);break;case 2048:for(s=q[0].s.r;s<=q[0].e.r;++s)for(a=q[0].s.c;a<=q[0].e.c;++a)(r=t.dense?(f[s]||[])[a]:f[kC({c:a,r:s})])&&r.l&&(r.l.Tooltip=q[1]);break;case 28:if(C.biff<=5&&C.biff>=2)break;r=t.dense?(f[q[0].r]||[])[q[0].c]:f[kC(q[0])];var ce=R[q[2]];r||(t.dense?(f[q[0].r]||(f[q[0].r]=[]),r=f[q[0].r][q[0].c]={t:"z"}):r=f[kC(q[0])]={t:"z"},p.e.r=Math.max(p.e.r,q[0].r),p.s.r=Math.min(p.s.r,q[0].r),p.e.c=Math.max(p.e.c,q[0].c),p.s.c=Math.min(p.s.c,q[0].c)),r.c||(r.c=[]),i={a:q[1],t:ce.TxO.t},r.c.push(i);break;case 2173:w[q.ixfe],q.ext.forEach((function(e){e[0]}));break;case 125:if(!C.cellStyles)break;for(;q.e>=q.s;)O[q.e--]={width:q.w/256,level:q.level||0,hidden:!!(1&q.flags)},P||(P=!0,tI(q.w/256)),nI(O[q.e+1]);break;case 520:var le={};null!=q.level&&(I[q.r]=le,le.level=q.level),q.hidden&&(I[q.r]=le,le.hidden=!0),q.hpt&&(I[q.r]=le,le.hpt=q.hpt,le.hpx=aI(q.hpt));break;case 38:case 39:case 40:case 41:f["!margins"]||WP(f["!margins"]={}),f["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[j]]=q;break;case 161:f["!margins"]||WP(f["!margins"]={}),f["!margins"].header=q.header,f["!margins"].footer=q.footer;break;case 574:q.RTL&&(E.Views[0].RTL=!0);break;case 146:S=q;break;case 2198:l=q;break;case 140:c=q;break;case 442:v?T.CodeName=q||T.name:E.WBProps.CodeName=q||"ThisWorkbook"}}else e.l+=W}return u.SheetNames=pM(d).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return d[e].name})),t.bookSheets||(u.Sheets=h),!u.SheetNames.length&&y["!ref"]?(u.SheetNames.push("Sheet1"),u.Sheets&&(u.Sheets.Sheet1=y)):u.Preamble=y,u.Sheets&&z.forEach((function(e,t){u.Sheets[u.SheetNames[t]]["!autofilter"]=e})),u.Strings=g,u.SSF=RM(MT),C.enc&&(u.Encryption=C.enc),l&&(u.Themes=l),u.Metadata={},void 0!==c&&(u.Metadata.Country=c),L.names.length>0&&(E.Names=L.names),u.Workbook=E,u}var ED={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function TD(e,t){var n,r,i,a;if(t||(t={}),CN(t),ZE(),t.codepage&&$E(t.codepage),e.FullPaths){if(hM.find(e,"/encryption"))throw new Error("File is password-protected");n=hM.find(e,"!CompObj"),r=hM.find(e,"/Workbook")||hM.find(e,"/Book")}else{switch(t.type){case"base64":e=uT(aT(e));break;case"binary":e=uT(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e))}pC(e,0),r={content:e}}if(n&&yD(n),t.bookProps&&!t.bookSheets)i={};else{var s=sT?"buffer":"array";if(r&&r.content)i=SD(r.content,t);else if((a=hM.find(e,"PerfectOffice_MAIN"))&&a.content)i=vO.to_workbook(a.content,(t.type=s,t));else{if(!(a=hM.find(e,"NativeContent_MAIN"))||!a.content)throw(a=hM.find(e,"MN0"))&&a.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");i=vO.to_workbook(a.content,(t.type=s,t))}t.bookVBA&&e.FullPaths&&hM.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=function(e){var t=hM.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(n,r){if("/"!==n.slice(-1)&&n.match(/_VBA_PROJECT_CUR/)){var i=n.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");hM.utils.cfb_add(t,i,e.FileIndex[r].content)}})),hM.write(t)}(e))}var o={};return e.FullPaths&&function(e,t,n){var r=hM.find(e,"/!DocumentSummaryInformation");if(r&&r.size>0)try{var i=uR(r,vk,ED.DSI);for(var a in i)t[a]=i[a]}catch(l){if(n.WTF)throw l}var s=hM.find(e,"/!SummaryInformation");if(s&&s.size>0)try{var o=uR(s,yk,ED.SI);for(var c in o)null==t[c]&&(t[c]=o[c])}catch(l){if(n.WTF)throw l}t.HeadingPairs&&t.TitlesOfParts&&(jk(t.HeadingPairs,t.TitlesOfParts,t,n),delete t.HeadingPairs,delete t.TitlesOfParts)}(e,o,t),i.Props=i.Custprops=o,t.bookFiles&&(i.cfb=e),i}function MD(e,t){var n=t||{},r=hM.utils.cfb_new({root:"R"}),i="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":i="/Workbook",n.biff=8;break;case"biff5":i="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return hM.utils.cfb_add(r,i,UD(e,n)),8==n.biff&&(e.Props||e.Custprops)&&function(e,t){var n,r=[],i=[],a=[],s=0,o=mM(vk,"n"),c=mM(yk,"n");if(e.Props)for(n=pM(e.Props),s=0;s-1||Hk.indexOf(a[s][0])>-1||null!=a[s][1]&&l.push(a[s]);i.length&&hM.utils.cfb_add(t,"/SummaryInformation",hR(i,ED.SI,c,yk)),(r.length||l.length)&&hM.utils.cfb_add(t,"/DocumentSummaryInformation",hR(r,ED.DSI,o,vk,l.length?l:null,ED.UDI))}(e,r),8==n.biff&&e.vbaraw&&function(e,t){t.FullPaths.forEach((function(n,r){if(0!=r){var i=n.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==i.slice(-1)&&hM.utils.cfb_add(e,i,t.FileIndex[r].content)}}))}(r,hM.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),r}var AD={0:{f:function(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=r,7&a&&(n.level=7&a),16&a&&(n.hidden=!0),32&a&&(n.hpt=i/20),n}},1:{f:function(e){return[GC(e)]}},2:{f:function(e){return[GC(e),nk(e),"n"]}},3:{f:function(e){return[GC(e),e.read_shift(1),"e"]}},4:{f:function(e){return[GC(e),e.read_shift(1),"b"]}},5:{f:function(e){return[GC(e),ok(e),"n"]}},6:{f:function(e){return[GC(e),BC(e),"str"]}},7:{f:function(e){return[GC(e),e.read_shift(4),"s"]}},8:{f:function(e,t,n){var r=e.l+t,i=GC(e);i.r=n["!row"];var a=[i,BC(e),"str"];if(n.cellFormula){e.l+=2;var s=OP(e,r-e.l,n);a[3]=EP(s,0,i,n.supbooks,n)}else e.l=r;return a}},9:{f:function(e,t,n){var r=e.l+t,i=GC(e);i.r=n["!row"];var a=[i,ok(e),"n"];if(n.cellFormula){e.l+=2;var s=OP(e,r-e.l,n);a[3]=EP(s,0,i,n.supbooks,n)}else e.l=r;return a}},10:{f:function(e,t,n){var r=e.l+t,i=GC(e);i.r=n["!row"];var a=[i,e.read_shift(1),"b"];if(n.cellFormula){e.l+=2;var s=OP(e,r-e.l,n);a[3]=EP(s,0,i,n.supbooks,n)}else e.l=r;return a}},11:{f:function(e,t,n){var r=e.l+t,i=GC(e);i.r=n["!row"];var a=[i,e.read_shift(1),"e"];if(n.cellFormula){e.l+=2;var s=OP(e,r-e.l,n);a[3]=EP(s,0,i,n.supbooks,n)}else e.l=r;return a}},12:{f:function(e){return[qC(e)]}},13:{f:function(e){return[qC(e),nk(e),"n"]}},14:{f:function(e){return[qC(e),e.read_shift(1),"e"]}},15:{f:function(e){return[qC(e),e.read_shift(1),"b"]}},16:{f:mL},17:{f:function(e){return[qC(e),BC(e),"str"]}},18:{f:function(e){return[qC(e),e.read_shift(4),"s"]}},19:{f:HC},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=QC(e),s=IP(e,0,n),o=KC(e);e.l=r;var c={Name:a,Ptg:s};return i<268435455&&(c.Sheet=i),o&&(c.Comment=o),c}},40:{},42:{},43:{f:function(e,t,n){var r={};r.sz=e.read_shift(2)/20;var i=function(e){var t=e.read_shift(1);return e.l++,{fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t}}(e);switch(i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1),700===e.read_shift(2)&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript"}var a=e.read_shift(1);0!=a&&(r.underline=a);var s=e.read_shift(1);s>0&&(r.family=s);var o=e.read_shift(1);switch(o>0&&(r.charset=o),e.l++,r.color=function(e){var t={},n=e.read_shift(1)>>>1,r=e.read_shift(1),i=e.read_shift(2,"i"),a=e.read_shift(1),s=e.read_shift(1),o=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=r;var c=wk[r];c&&(t.rgb=GO(c));break;case 2:t.rgb=GO([a,s,o]);break;case 3:t.theme=r}return 0!=i&&(t.tint=i>0?i/32767:i/32768),t}(e),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor"}return r.name=BC(e),r}},44:{f:function(e,t){return[e.read_shift(2),BC(e)]}},45:{f:mI},46:{f:_I},47:{f:function(e,t){var n=e.l+t,r=e.read_shift(2),i=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:i}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var t=[],n=e.read_shift(4);n-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:oO},62:{f:function(e){return[GC(e),HC(e),"is"]}},63:{f:function(e){var t={};t.i=e.read_shift(4);var n={};n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=kC(n);var r=e.read_shift(1);return 2&r&&(t.l="1"),8&r&&(t.a="1"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:mC,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,t){var n={},r=e[e.l];return++e.l,n.above=!(64&r),n.left=!(128&r),e.l+=18,n.name=YC(e),n}},148:{f:dL,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var n={},r=e.read_shift(4);n.defaultThemeVersion=e.read_shift(4);var i=t>8?BC(e):"";return i.length>0&&(n.CodeName=i),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=["userSet","never","always"][r>>8&3],n}},154:{},155:{},156:{f:function(e,t){var n={};return n.Hidden=e.read_shift(4),n.iTabID=e.read_shift(4),n.strRelID=ek(e),n.name=BC(e),n}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:ak},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:gL},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:BC(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:ek},357:{},358:{},359:{},360:{T:1},361:{},362:{f:nO},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,t,n){var r=e.l+t,i=ik(e),a=e.read_shift(1),s=[i];if(s[2]=a,n.cellFormula){var o=RP(e,r-e.l,n);s[1]=o}else e.l=r;return s}},427:{f:function(e,t,n){var r=e.l+t,i=[ak(e)];if(n.cellFormula){var a=PP(e,r-e.l,n);i[1]=a,e.l=r}else e.l=r;return i}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var t={};return yL.forEach((function(n){t[n]=ok(e)})),t}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,t){var n=e.l+t,r=ak(e),i=KC(e),a=BC(e),s=BC(e),o=BC(e);e.l=n;var c={rfx:r,relId:i,loc:a,display:o};return s&&(c.Tooltip=s),c}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:ek},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:jI},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var n=ak(e);return t.rfx=n.s,t.ref=kC(n.s),e.l+=16,t}},636:{T:-1},637:{f:jC},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,t){return e.l+=10,{name:BC(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},CD={6:{f:AP},10:{f:fR},12:{f:mR},13:{f:mR},14:{f:dR},15:{f:dR},16:{f:ok},17:{f:dR},18:{f:dR},19:{f:mR},20:{f:JR},21:{f:JR},23:{f:nO},24:{f:tO},25:{f:dR},26:{},27:{},28:{f:function(e,t,n){return function(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2),a=e.read_shift(2),s=e.read_shift(2),o=ER(e,0,n);return n.biff<8&&e.read_shift(1),[{r:r,c:i},o,s,a]}}(e,0,n)}},29:{},34:{f:dR},35:{f:QR},38:{f:ok},39:{f:ok},40:{f:ok},41:{f:ok},42:{f:dR},43:{f:dR},47:{f:function(e,t,n){var r={Type:n.biff>=8?e.read_shift(2):0};return r.Type?jO(e,t-2,r):function(e,t,n,r){var i={key:mR(e),verificationBytes:mR(e)};n.password&&(i.verifier=zO(n.password)),r.valid=i.verificationBytes===i.verifier,r.valid&&(r.insitu=HO(n.password))}(e,n.biff,n,r),r}},49:{f:function(e,t,n){var r={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(n&&n.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10}return r.name=_R(e,0,n),r}},51:{f:mR},60:{},61:{f:function(e){return{Pos:[e.read_shift(2),e.read_shift(2)],Dim:[e.read_shift(2),e.read_shift(2)],Flags:e.read_shift(2),CurTab:e.read_shift(2),FirstTab:e.read_shift(2),Selected:e.read_shift(2),TabRatio:e.read_shift(2)}}},64:{f:dR},65:{f:function(){}},66:{f:mR},77:{},80:{},81:{},82:{},85:{f:mR},89:{},90:{},91:{},92:{f:function(e,t,n){if(n.enc)return e.l+=t,"";var r=e.l,i=ER(e,0,n);return e.read_shift(t+r-e.l),i}},93:{f:function(e,t,n){if(n&&n.biff<8)return function(e,t,n){e.l+=4;var r=e.read_shift(2),i=e.read_shift(2),a=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var s=[];return s.push((iO[r]||mC)(e,t,n)),{cmo:[i,r,a],ft:s}}(e,t,n);var r=zR(e),i=function(e,t){for(var n=e.l+t,r=[];e.l7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}},129:{f:function(e,t,n){var r=n&&8==n.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&r,fBelow:64&r,fRight:128&r}}},130:{f:mR},131:{f:dR},132:{f:dR},133:{f:function(e,t,n){var r=e.read_shift(4),i=3&e.read_shift(1),a=e.read_shift(1);switch(a){case 0:a="Worksheet";break;case 1:a="Macrosheet";break;case 2:a="Chartsheet";break;case 6:a="VBAModule"}var s=_R(e,0,n);return 0===s.length&&(s="Sheet1"),{pos:r,hs:i,dt:a,name:s}}},134:{},140:{f:function(e){var t,n=[0,0];return t=e.read_shift(2),n[0]=_k[t]||t,t=e.read_shift(2),n[1]=_k[t]||t,n}},141:{f:mR},144:{},146:{f:function(e){for(var t=e.read_shift(2),n=[];t-- >0;)n.push(OR(e));return n}},151:{},152:{},153:{},154:{},155:{},156:{f:mR},157:{},158:{},160:{f:lO},161:{f:function(e,t){var n={};return t<32||(e.l+=16,n.header=ok(e),n.footer=ok(e),e.l+=2),n}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(e,t){for(var n=e.l+t-2,r=e.read_shift(2),i=e.read_shift(2),a=[];e.l>2&1,6,r.data=function(e,t,n,r){var i={},a=e.read_shift(4),s=e.read_shift(4),o=e.read_shift(4),c=e.read_shift(2);return i.patternType=bk[o>>26],r.cellStyles?(i.alc=7&a,i.fWrap=a>>3&1,i.alcV=a>>4&7,i.fJustLast=a>>7&1,i.trot=a>>8&255,i.cIndent=a>>16&15,i.fShrinkToFit=a>>20&1,i.iReadOrder=a>>22&2,i.fAtrNum=a>>26&1,i.fAtrFnt=a>>27&1,i.fAtrAlc=a>>28&1,i.fAtrBdr=a>>29&1,i.fAtrPat=a>>30&1,i.fAtrProt=a>>31&1,i.dgLeft=15&s,i.dgRight=s>>4&15,i.dgTop=s>>8&15,i.dgBottom=s>>12&15,i.icvLeft=s>>16&127,i.icvRight=s>>23&127,i.grbitDiag=s>>30&3,i.icvTop=127&o,i.icvBottom=o>>7&127,i.icvDiag=o>>14&127,i.dgDiag=o>>21&15,i.icvFore=127&c,i.icvBack=c>>7&127,i.fsxButton=c>>14&1,i):i}(e,0,r.fStyle,n),r}},225:{f:function(e,t){return 0===t||e.read_shift(2),1200}},226:{f:fR},227:{},229:{f:function(e,t){for(var n=[],r=e.read_shift(2);r--;)n.push(NR(e));return n}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(e,t){for(var n=e.l+t,r=e.read_shift(4),i=e.read_shift(4),a=[],s=0;s!=i&&e.l255)throw new Error("Unexpected SupBook type: "+a);for(var s=wR(e,a),o=[];r>e.l;)o.push(SR(e));return[a,i,s,o]}},431:{f:dR},432:{},433:{},434:{},437:{},438:{f:function(e,t,n){var r=e.l,i="";try{e.l+=4;var a=(n.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(a)?e.l+=6:function(e){var t=e.read_shift(1);e.l++;var n=e.read_shift(2);return e.l+=2,[t,n]}(e);var s=e.read_shift(2);e.read_shift(2),mR(e);var o=e.read_shift(2);e.l+=o;for(var c=1;c=(l?s:2*s))break}if(i.length!==s&&i.length!==2*s)throw new Error("cchText: "+s+" != "+i.length);return e.l=r+t,{t:i}}catch(u){return e.l=r+t,{t:i}}}},439:{f:dR},440:{f:function(e,t){var n=NR(e);e.l+=16;var r=function(e,t){var n=e.l+t,r=e.read_shift(4);if(2!==r)throw new Error("Unrecognized streamVersion: "+r);var i=e.read_shift(2);e.l+=2;var a,s,o,c,l,u,h="";16&i&&(a=AR(e,e.l)),128&i&&(s=AR(e,e.l)),257==(257&i)&&(o=AR(e,e.l)),1==(257&i)&&(c=MR(e,e.l)),8&i&&(h=AR(e,e.l)),32&i&&(l=e.read_shift(16)),64&i&&(u=Zk(e)),e.l=n;var f=s||o||c||"";f&&h&&(f+="#"+h),f||(f="#"+h),2&i&&"/"==f.charAt(0)&&"/"!=f.charAt(1)&&(f="file://"+f);var d={Target:f};return l&&(d.guid=l),u&&(d.time=u),a&&(d.Tooltip=a),d}(e,t-24);return[n,r]}},441:{},442:{f:SR},443:{},444:{f:mR},445:{},446:{},448:{f:fR},449:{f:function(e){return e.read_shift(2),e.read_shift(4)},r:2},450:{f:fR},512:{f:YR},513:{f:cO},515:{f:function(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=IR(e),i=ok(e);return r.val=i,r}},516:{f:function(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5),e.l;var r=IR(e);2==n.biff&&e.l++;var i=SR(e,e.l,n);return r.val=i,r}},517:{f:KR},519:{f:uO},520:{f:function(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var n=e.read_shift(2);e.l+=4;var r=e.read_shift(1);return e.l+=3,7&r&&(t.level=7&r),32&r&&(t.hidden=!0),64&r&&(t.hpt=n/20),t}},523:{},545:{f:rO},549:{f:XR},566:{},574:{f:function(e,t,n){return n&&n.biff>=2&&n.biff<5?{}:{RTL:64&e.read_shift(2)}}},638:{f:function(e){var t=e.read_shift(2),n=e.read_shift(2),r=DR(e);return{r:t,c:n,ixfe:r[0],rknum:r[1]}}},659:{},1048:{},1054:{f:function(e,t,n){return[e.read_shift(2),ER(e,0,n)]}},1084:{},1212:{f:function(e,t,n){var r=UR(e);e.l++;var i=e.read_shift(1);return[MP(e,t-=8,n),i,r]}},2048:{f:function(e,t){e.read_shift(2);var n=NR(e),r=e.read_shift((t-10)/2,"dbcs-cont");return[n,r=r.replace(mT,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:jR},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:fR},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t},r:12},2173:{f:function(e,t){e.l,e.l+=2;var n=e.read_shift(2);e.l+=2;for(var r=e.read_shift(2),i=[];r-- >0;)i.push(DI(e,e.l));return{ixfe:n,ext:i}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:dR,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2);return[wR(e,r,n),wR(e,i,n)]}e.l+=t},r:12},2197:{},2198:{f:function(e,t,n){var r=e.l+t;if(124226!==e.read_shift(4))if(n.cellStyles){var i,a=e.slice(e.l);e.l=r;try{i=XM(a,{type:"array"})}catch(o){return}var s=VM(i,"theme/theme/theme1.xml",!0);if(s)return II(s,n)}else e.l=r},r:12},2199:{},2200:{},2201:{},2202:{f:function(e){return[0!==e.read_shift(4),0!==e.read_shift(4),e.read_shift(4)]},r:12},2203:{f:fR},2204:{},2205:{},2206:{},2207:{},2211:{f:function(e){var t=function(e){var t=e.read_shift(2),n=e.read_shift(2);return e.l+=8,{type:t,flags:n}}(e);if(2211!=t.type)throw new Error("Invalid Future Record "+t.type);return 0!==e.read_shift(4)}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:mR},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(e,t,n){var r={area:!1};if(5!=n.biff)return e.l+=t,r;var i=e.read_shift(1);return e.l+=3,16&i&&(r.area=!0),r}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(e){for(var t=e.read_shift(2),n=[];t-- >0;)n.push(OR(e));return n}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:YR},1:{},2:{f:function(e){var t=IR(e);++e.l;var n=e.read_shift(2);return t.t="n",t.val=n,t}},3:{f:function(e){var t=IR(e);++e.l;var n=ok(e);return t.t="n",t.val=n,t}},4:{f:function(e,t,n){n.biffguess&&5==n.biff&&(n.biff=2);var r=IR(e);++e.l;var i=ER(e,0,n);return r.t="str",r.val=i,r}},5:{f:KR},7:{f:function(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}},8:{},9:{f:jR},11:{},22:{f:mR},30:{f:$R},31:{},32:{},33:{f:rO},36:{},37:{f:XR},50:{f:function(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}},62:{},52:{},67:{},68:{f:mR},69:{},86:{},126:{},127:{f:function(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i={fmt:t,env:n,len:r,data:e.slice(e.l,e.l+r)};return e.l+=r,i}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(e,t,n){var r=e.l+t,i=IR(e),a=e.read_shift(2),s=wR(e,a,n);return e.l=r,i.t="str",i.val=s,i}},223:{},234:{},354:{},421:{},518:{f:AP},521:{f:jR},536:{f:tO},547:{f:QR},561:{},579:{},1030:{f:AP},1033:{f:jR},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function kD(e,t,n,r){var i=t;if(!isNaN(i)){var a=r||(n||[]).length||0,s=e.next(4);s.write_shift(2,i),s.write_shift(2,a),a>0&&tC(n)&&e.push(n)}}function RD(e,t,n){return e||(e=gC(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function OD(e,t,n,r){if(null!=t.v)switch(t.t){case"d":case"n":var i="d"==t.t?_M(CM(t.v)):t.v;return void(i==(0|i)&&i>=0&&i<65536?kD(e,2,(a=n,s=r,o=i,c=gC(9),RD(c,a,s),c.write_shift(2,o),c)):kD(e,3,function(e,t,n){var r=gC(15);return RD(r,e,t),r.write_shift(8,n,"f"),r}(n,r,i)));case"b":case"e":return void kD(e,5,function(e,t,n,r){var i=gC(9);return RD(i,e,t),yR(n,r||"b",i),i}(n,r,t.v,t.t));case"s":case"str":return void kD(e,4,function(e,t,n){var r=gC(8+2*n.length);return RD(r,e,t),r.write_shift(1,n.length),r.write_shift(n.length,n,"sbcs"),r.l255||s.e.r>16383){if(r.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");s.e.c=Math.min(s.e.c,255),s.e.r=Math.min(s.e.c,16383),i=OC(s)}for(var l=s.s.r;l<=s.e.r;++l){o=TC(l);for(var u=s.s.c;u<=s.e.c;++u){l===s.s.r&&(c[u]=AC(u)),i=c[u]+o;var h=a?(t[l]||[])[u]:t[i];h&&OD(e,h,l,u)}}}(r,e.Sheets[e.SheetNames[i]],0,n),kD(r,10),r.end()}function PD(e,t,n){kD(e,49,function(e,t){var n=e.name||"Arial",r=t&&5==t.biff,i=gC(r?15+n.length:16+2*n.length);return i.write_shift(2,20*(e.sz||12)),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,n.length),r||i.write_shift(1,1),i.write_shift((r?1:2)*n.length,n,r?"sbcs":"utf16le"),i}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},n))}function LD(e,t){if(t){var n=0;t.forEach((function(t,r){++n<=256&&t&&kD(e,125,function(e,t){var n=gC(12);n.write_shift(2,t),n.write_shift(2,t),n.write_shift(2,256*e.width),n.write_shift(2,0);var r=0;return e.hidden&&(r|=1),n.write_shift(1,r),r=e.level||0,n.write_shift(1,r),n.write_shift(2,0),n}(jP(r,t),r))}))}}function DD(e,t,n,r,i){var a=16+GP(i.cellXfs,t,i);if(null!=t.v||t.bf)if(t.bf)kD(e,6,CP(t,n,r,0,a));else switch(t.t){case"d":case"n":kD(e,515,function(e,t,n,r){var i=gC(14);return PR(e,t,r,i),ck(n,i),i}(n,r,"d"==t.t?_M(CM(t.v)):t.v,a));break;case"b":case"e":kD(e,517,function(e,t,n,r,i,a){var s=gC(8);return PR(e,t,r,s),yR(n,a,s),s}(n,r,t.v,a,0,t.t));break;case"s":case"str":if(i.bookSST)kD(e,253,function(e,t,n,r){var i=gC(10);return PR(e,t,r,i),i.write_shift(4,n),i}(n,r,HP(i.Strings,t.v,i.revStrings),a));else kD(e,516,function(e,t,n,r,i){var a=!i||8==i.biff,s=gC(+a+8+(1+a)*n.length);return PR(e,t,r,s),s.write_shift(2,n.length),a&&s.write_shift(1,1),s.write_shift((1+a)*n.length,n,a?"utf16le":"sbcs"),s}(n,r,(t.v||"").slice(0,255),a,i));break;default:kD(e,513,PR(n,r,a))}else kD(e,513,PR(n,r,a))}function ND(e,t,n){var r,i,a,s=yC(),o=n.SheetNames[e],c=n.Sheets[o]||{},l=(n||{}).Workbook||{},u=(l.Sheets||[])[e]||{},h=Array.isArray(c),f=8==t.biff,d="",p=[],m=IC(c["!ref"]||"A1"),g=f?65536:16384;if(m.e.c>255||m.e.r>=g){if(t.WTF)throw new Error("Range "+(c["!ref"]||"A1")+" exceeds format limit A1:IV16384");m.e.c=Math.min(m.e.c,255),m.e.r=Math.min(m.e.c,g-1)}kD(s,2057,WR(0,16,t)),kD(s,13,gR(1)),kD(s,12,gR(100)),kD(s,15,pR(!0)),kD(s,17,pR(!1)),kD(s,16,ck(.001)),kD(s,95,pR(!0)),kD(s,42,pR(!1)),kD(s,43,pR(!1)),kD(s,130,gR(1)),kD(s,128,(i=[0,0],(a=gC(8)).write_shift(4,0),a.write_shift(2,i[0]?i[0]+1:0),a.write_shift(2,i[1]?i[1]+1:0),a)),kD(s,131,pR(!1)),kD(s,132,pR(!1)),f&&LD(s,c["!cols"]),kD(s,512,function(e,t){var n=8!=t.biff&&t.biff?2:4,r=gC(2*n+6);return r.write_shift(n,e.s.r),r.write_shift(n,e.e.r+1),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c+1),r.write_shift(2,0),r}(m,t)),f&&(c["!links"]=[]);for(var v=m.s.r;v<=m.e.r;++v){d=TC(v);for(var y=m.s.c;y<=m.e.c;++y){v===m.s.r&&(p[y]=AC(y)),r=p[y]+d;var _=h?(c[v]||[])[y]:c[r];_&&(DD(s,_,v,y,t),f&&_.l&&c["!links"].push([r,_.l]))}}var b=u.CodeName||u.name||o;return f&&kD(s,574,function(e){var t=gC(18),n=1718;return e&&e.RTL&&(n|=64),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}((l.Views||[])[0])),f&&(c["!merges"]||[]).length&&kD(s,229,function(e){var t=gC(2+8*e.length);t.write_shift(2,e.length);for(var n=0;n255&&"undefined"!=typeof console&&console.error}var i=t||{};switch(i.biff||2){case 8:case 5:return function(e,t){var n=t||{},r=[];e&&!e.SSF&&(e.SSF=RM(MT)),e&&e.SSF&&(oM(),sM(e.SSF),n.revssf=vM(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,kN(n),n.cellXfs=[],GP(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i/g,"")).match(/");var a=e.match(/<\/table/i),s=i.index,o=a&&a.index||e.length,c=DM(e.slice(s,o),/(:?]*>)/i,""),l=-1,u=0,h=0,f=0,d={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(s=0;s/i);for(o=0;o"))>-1;)_=_.slice(b+1);for(var x=0;x")));f=S.colspan?+S.colspan:1,((h=+S.rowspan)>1||f>1)&&p.push({s:{r:l,c:u},e:{r:l+(h||1)-1,c:u+f-1}});var E=S.t||S["data-t"]||"";if(_.length)if(_=bA(_),d.s.r>l&&(d.s.r=l),d.e.ru&&(d.s.c=u),d.e.cn||i[l].s.c>s||i[l].e.r1&&(d.rowspan=o),c>1&&(d.colspan=c),r.editable?f=''+f+"":h&&(d["data-t"]=h&&h.t||"z",null!=h.v&&(d["data-v"]=h.v),null!=h.z&&(d["data-z"]=h.z),h.l&&"#"!=(h.l.Target||"#").charAt(0)&&(f=''+f+"")),d.id=(r.id||"sjs")+"-"+u,a.push(CA("td",f,d))}}return""+a.join("")+""}var VD='SheetJS Table Export',HD="";function jD(e,t){var n=t||{},r=null!=n.header?n.header:VD,i=null!=n.footer?n.footer:HD,a=[r],s=RC(e["!ref"]);n.dense=Array.isArray(e),a.push(function(e,t,n){return[].join("")+""}(0,0,n));for(var o=s.s.r;o<=s.e.r;++o)a.push(zD(e,s,o,n));return a.push("
"+i),a.join("")}function WD(e,t,n){var r=n||{},i=0,a=0;if(null!=r.origin)if("number"==typeof r.origin)i=r.origin;else{var s="string"==typeof r.origin?CC(r.origin):r.origin;i=s.r,a=s.c}var o=t.getElementsByTagName("tr"),c=Math.min(r.sheetRows||1e7,o.length),l={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var u=RC(e["!ref"]);l.s.r=Math.min(l.s.r,u.s.r),l.s.c=Math.min(l.s.c,u.s.c),l.e.r=Math.max(l.e.r,u.e.r),l.e.c=Math.max(l.e.c,u.e.c),-1==i&&(l.e.r=i=u.e.r+1)}var h=[],f=0,d=e["!rows"]||(e["!rows"]=[]),p=0,m=0,g=0,v=0,y=0,_=0;for(e["!cols"]||(e["!cols"]=[]);p1||_>1)&&h.push({s:{r:m+i,c:v+a},e:{r:m+i+(y||1)-1,c:v+a+(_||1)-1}});var M={t:"s",v:S},A=w.getAttribute("data-t")||w.getAttribute("t")||"";null!=S&&(0==S.length?M.t=A||"z":r.raw||0==S.trim().length||"s"==A||("TRUE"===S?M={t:"b",v:!0}:"FALSE"===S?M={t:"b",v:!1}:isNaN(IM(S))?isNaN(LM(S).getDate())||(M={t:"d",v:CM(S)},r.cellDates||(M={t:"n",v:_M(M.v)}),M.z=r.dateNF||MT[14]):M={t:"n",v:IM(S)})),void 0===M.z&&null!=E&&(M.z=E);var C="",k=w.getElementsByTagName("A");if(k&&k.length)for(var R=0;R=c&&(e["!fullref"]=OC((l.e.r=o.length-p+m-1+i,l))),e}function GD(e,t){return WD((t||{}).dense?[]:{},e,t)}function XD(e){var t="",n=function(e){return e.ownerDocument.defaultView&&"function"==typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}var qD={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function $D(e,t){var n,r,i,a,s,o,c,l,u=t||{},h=RA(e),f=[],d={name:""},p="",m=0,g={},v=[],y=u.dense?[]:{},_={value:""},b="",x=0,w=[],S=-1,E=-1,T={s:{r:1e6,c:1e7},e:{r:0,c:0}},M=0,A={},C=[],k={},R=[],O=1,I=1,P=[],L={Names:[]},D={},N=["",""],F=[],U={},B="",z=0,V=!1,H=!1,j=0;for(OA.lastIndex=0,h=h.replace(//gm,"").replace(//gm,"");s=OA.exec(h);)switch(s[3]=s[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===s[1]?(T.e.c>=T.s.c&&T.e.r>=T.s.r?y["!ref"]=OC(T):y["!ref"]="A1:A1",u.sheetRows>0&&u.sheetRows<=T.e.r&&(y["!fullref"]=y["!ref"],T.e.r=u.sheetRows-1,y["!ref"]=OC(T)),C.length&&(y["!merges"]=C),R.length&&(y["!rows"]=R),i.name=i["名称"]||i.name,"undefined"!=typeof JSON&&JSON.stringify(i),v.push(i.name),g[i.name]=y,H=!1):"/"!==s[0].charAt(s[0].length-2)&&(i=eA(s[0],!1),S=E=-1,T.s.r=T.s.c=1e7,T.e.r=T.e.c=0,y=u.dense?[]:{},C=[],R=[],H=!0);break;case"table-row-group":"/"===s[1]?--M:++M;break;case"table-row":case"行":if("/"===s[1]){S+=O,O=1;break}if((a=eA(s[0],!1))["行号"]?S=a["行号"]-1:-1==S&&(S=0),(O=+a["number-rows-repeated"]||1)<10)for(j=0;j0&&(R[S+j]={level:M});E=-1;break;case"covered-table-cell":"/"!==s[1]&&++E,u.sheetStubs&&(u.dense?(y[S]||(y[S]=[]),y[S][E]={t:"z"}):y[kC({r:S,c:E})]={t:"z"}),b="",w=[];break;case"table-cell":case"数据":if("/"===s[0].charAt(s[0].length-2))++E,_=eA(s[0],!1),I=parseInt(_["number-columns-repeated"]||"1",10),o={t:"z",v:null},_.formula&&0!=u.cellFormula&&(o.f=FP(iA(_.formula))),"string"==(_["数据类型"]||_["value-type"])&&(o.t="s",o.v=iA(_["string-value"]||""),u.dense?(y[S]||(y[S]=[]),y[S][E]=o):y[kC({r:S,c:E})]=o),E+=I-1;else if("/"!==s[1]){b="",x=0,w=[],I=1;var W=O?S+O-1:S;if(++E>T.e.c&&(T.e.c=E),ET.e.r&&(T.e.r=W),F=[],U={},o={t:(_=eA(s[0],!1))["数据类型"]||_["value-type"],v:null},u.cellFormula)if(_.formula&&(_.formula=iA(_.formula)),_["number-matrix-columns-spanned"]&&_["number-matrix-rows-spanned"]&&(k={s:{r:S,c:E},e:{r:S+(parseInt(_["number-matrix-rows-spanned"],10)||0)-1,c:E+(parseInt(_["number-matrix-columns-spanned"],10)||0)-1}},o.F=OC(k),P.push([k,o.F])),_.formula)o.f=FP(_.formula);else for(j=0;j=P[j][0].s.r&&S<=P[j][0].e.r&&E>=P[j][0].s.c&&E<=P[j][0].e.c&&(o.F=P[j][1]);switch((_["number-columns-spanned"]||_["number-rows-spanned"])&&(k={s:{r:S,c:E},e:{r:S+(parseInt(_["number-rows-spanned"],10)||0)-1,c:E+(parseInt(_["number-columns-spanned"],10)||0)-1}},C.push(k)),_["number-columns-repeated"]&&(I=parseInt(_["number-columns-repeated"],10)),o.t){case"boolean":o.t="b",o.v=fA(_["boolean-value"]);break;case"float":case"percentage":case"currency":o.t="n",o.v=parseFloat(_.value);break;case"date":o.t="d",o.v=CM(_["date-value"]),u.cellDates||(o.t="n",o.v=_M(o.v)),o.z="m/d/yy";break;case"time":o.t="n",o.v=EM(_["time-value"])/86400,u.cellDates&&(o.t="d",o.v=SM(o.v)),o.z="HH:MM:SS";break;case"number":o.t="n",o.v=parseFloat(_["数据数值"]);break;default:if("string"!==o.t&&"text"!==o.t&&o.t)throw new Error("Unsupported value type "+o.t);o.t="s",null!=_["string-value"]&&(b=iA(_["string-value"]),w=[])}}else{if(V=!1,"s"===o.t&&(o.v=b||"",w.length&&(o.R=w),V=0==x),D.Target&&(o.l=D),F.length>0&&(o.c=F,F=[]),b&&!1!==u.cellText&&(o.w=b),V&&(o.t="z",delete o.v),(!V||u.sheetStubs)&&!(u.sheetRows&&u.sheetRows<=S))for(var G=0;G0;)y[S+G][E+I]=RM(o);else for(y[kC({r:S+G,c:E})]=o;--I>0;)y[kC({r:S+G,c:E+I})]=RM(o);T.e.c<=E&&(T.e.c=E)}E+=(I=parseInt(_["number-columns-repeated"]||"1",10))-1,I=0,o={},b="",w=[]}D={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===s[1]){if((n=f.pop())[0]!==s[3])throw"Bad state: "+n}else"/"!==s[0].charAt(s[0].length-2)&&f.push([s[3],!0]);break;case"annotation":if("/"===s[1]){if((n=f.pop())[0]!==s[3])throw"Bad state: "+n;U.t=b,w.length&&(U.R=w),U.a=B,F.push(U)}else"/"!==s[0].charAt(s[0].length-2)&&f.push([s[3],!1]);B="",z=0,b="",x=0,w=[];break;case"creator":"/"===s[1]?B=h.slice(z,s.index):z=s.index+s[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===s[1]){if((n=f.pop())[0]!==s[3])throw"Bad state: "+n}else"/"!==s[0].charAt(s[0].length-2)&&f.push([s[3],!1]);b="",x=0,w=[];break;case"scientific-number":case"currency-symbol":case"currency-style":case"script":case"libraries":case"automatic-styles":case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":case"fraction":case"boolean-style":case"boolean":case"text-style":case"text-content":case"text-properties":case"embedded-text":case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":case"s":case"date":case"object":case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===s[1]){if(A[d.name]=p,(n=f.pop())[0]!==s[3])throw"Bad state: "+n}else"/"!==s[0].charAt(s[0].length-2)&&(p="",d=eA(s[0],!1),f.push([s[3],!0]));break;case"number":case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(f[f.length-1][0]){case"time-style":case"date-style":r=eA(s[0],!1),p+=qD[s[3]]["long"===r.style?1:0]}break;case"text":if("/>"===s[0].slice(-2))break;if("/"===s[1])switch(f[f.length-1][0]){case"number-style":case"date-style":case"time-style":p+=h.slice(m,s.index)}else m=s.index+s[0].length;break;case"named-range":N=UP((r=eA(s[0],!1))["cell-range-address"]);var X={Name:r.name,Ref:N[0]+"!"+N[1]};H&&(X.Sheet=v.length),L.Names.push(X);break;case"p":case"文本串":if(["master-styles"].indexOf(f[f.length-1][0])>-1)break;if("/"!==s[1]||_&&_["string-value"])eA(s[0],!1),x=s.index+s[0].length;else{var q=(c=h.slice(x,s.index),l=void 0,l=c.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/]*\/>/g,"\t").replace(//g,"\n"),[iA(l.replace(/<[^>]*>/g,""))]);b=(b.length>0?b+"\n":"")+q[0]}break;case"database-range":if("/"===s[1])break;try{g[(N=UP(eA(s[0])["target-range-address"]))[0]]["!autofilter"]={ref:N[1]}}catch(Y){}break;case"a":if("/"!==s[1]){if(!(D=eA(s[0],!1)).href)break;D.Target=iA(D.href),delete D.href,"#"==D.Target.charAt(0)&&D.Target.indexOf(".")>-1?(N=UP(D.Target.slice(1)),D.Target="#"+N[0]+"!"+N[1]):D.Target.match(/^\.\.[\\\/]/)&&(D.Target=D.Target.slice(3))}break;default:switch(s[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(u.WTF)throw new Error(s)}}var $={Sheets:g,SheetNames:v,Workbook:L};return u.bookSheets&&delete $.Sheets,$}function YD(e,t){t=t||{},UM(e,"META-INF/manifest.xml")&&function(e,t){for(var n,r,i=RA(e);n=OA.exec(i);)switch(n[3]){case"manifest":break;case"file-entry":if("/"==(r=eA(n[0],!1)).path&&r.type!==Pk)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw n}}(zM(e,"META-INF/manifest.xml"),t);var n=VM(e,"content.xml");if(!n)throw new Error("Missing content.xml in ODS / UOF file");var r=$D(vA(n),t);return UM(e,"meta.xml")&&(r.Props=Uk(zM(e,"meta.xml"))),r}function ZD(e,t){return $D(e,t)}var KD=function(){var e=["",'',"",'',"",'',"",""].join(""),t=""+e+"";return function(){return $M+t}}(),JD=function(){var e=" \n",t=function(t,n,r){var i=[];i.push(' \n');var a=0,s=0,o=RC(t["!ref"]||"A1"),c=t["!merges"]||[],l=0,u=Array.isArray(t);if(t["!cols"])for(s=0;s<=o.e.c;++s)i.push(" \n");var h="",f=t["!rows"]||[];for(a=0;a\n");for(;a<=o.e.r;++a){for(h=f[a]?' table:style-name="ro'+f[a].ods+'"':"",i.push(" \n"),s=0;ss||c[l].s.r>a||c[l].e.c\n");else{var g=kC({r:a,c:s}),v=u?(t[a]||[])[s]:t[g];if(v&&v.f&&(p["table:formula"]=oA(("of:="+v.f.replace($I,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),v.F&&v.F.slice(0,g.length)==g)){var y=RC(v.F);p["table:number-matrix-columns-spanned"]=y.e.c-y.s.c+1,p["table:number-matrix-rows-spanned"]=y.e.r-y.s.r+1}if(v){switch(v.t){case"b":m=v.v?"TRUE":"FALSE",p["office:value-type"]="boolean",p["office:boolean-value"]=v.v?"true":"false";break;case"n":m=v.w||String(v.v||0),p["office:value-type"]="float",p["office:value"]=v.v||0;break;case"s":case"str":m=null==v.v?"":v.v,p["office:value-type"]="string";break;case"d":m=v.w||CM(v.v).toISOString(),p["office:value-type"]="date",p["office:date-value"]=CM(v.v).toISOString(),p["table:style-name"]="ce1";break;default:i.push(e);continue}var _=oA(m).replace(/ +/g,(function(e){return''})).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"");if(v.l&&v.l.Target){var b=v.l.Target;"#"==(b="#"==b.charAt(0)?"#"+b.slice(1).replace(/\./,"!"):b).charAt(0)||b.match(/^\w+:/)||(b="../"+b),_=CA("text:a",_,{"xlink:href":b.replace(/&/g,"&")})}i.push(" "+CA("table:table-cell",CA("text:p",_,{}),p)+"\n")}else i.push(e)}}i.push(" \n")}return i.push(" \n"),i.join("")};return function(e,n){var r=[$M],i=AA({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),a=AA({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==n.bookType?(r.push("\n"),r.push(Dk().replace(/office:document-meta/g,"office:meta"))):r.push("\n"),function(e,t){e.push(" \n"),e.push(' \n'),e.push(' \n'),e.push(" /\n"),e.push(' \n'),e.push(" /\n"),e.push(" \n"),e.push(" \n");var n=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!cols"])for(var r=0;r\n'),e.push(' \n'),e.push(" \n"),++n}}));var r=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!rows"])for(var n=0;n\n'),e.push(' \n'),e.push(" \n"),++r}})),e.push(' \n'),e.push(' \n'),e.push(" \n"),e.push(' \n'),e.push(" \n")}(r,e),r.push(" \n"),r.push(" \n");for(var s=0;s!=e.SheetNames.length;++s)r.push(t(e.Sheets[e.SheetNames[s]],e,s));return r.push(" \n"),r.push(" \n"),"fods"==n.bookType?r.push(""):r.push(""),r.join("")}}();function QD(e,t){if("fods"==t.bookType)return JD(e,t);var n=GM(),r="",i=[],a=[];return WM(n,r="mimetype","application/vnd.oasis.opendocument.spreadsheet"),WM(n,r="content.xml",JD(e,t)),i.push([r,"text/xml"]),a.push([r,"ContentFile"]),WM(n,r="styles.xml",KD(e,t)),i.push([r,"text/xml"]),a.push([r,"StylesFile"]),WM(n,r="meta.xml",$M+Dk()),i.push([r,"text/xml"]),a.push([r,"MetadataFile"]),WM(n,r="manifest.rdf",function(e){var t,n,r=[$M];r.push('\n');for(var i=0;i!=e.length;++i)r.push(Lk(e[i][0],e[i][1])),r.push((t="",n=e[i][0],[' \n',' \n'," \n"].join("")));return r.push(Lk("","Document","pkg")),r.push(""),r.join("")}(a)),i.push([r,"application/rdf+xml"]),WM(n,r="META-INF/manifest.xml",function(e){var t=[$M];t.push('\n'),t.push(' \n');for(var n=0;n\n');return t.push(""),t.join("")}(i)),n} +/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function eN(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function tN(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):vA(fT(e))}function nN(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):uT(yA(e))}function rN(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0;return e.forEach((function(e){n.set(e,r),r+=e.length})),n}function iN(e){return 16843009*((e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>>24}function aN(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function sN(e){var t=new Uint8Array(7);t[0]=127&e;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383)break e;if(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)break e;if(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)break e;if(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)break e;if(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103)break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function oN(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function cN(e){for(var t=[],n=[0];n[0]=128;);r=e.slice(c,n[0]);break;case 5:o=4,r=e.slice(n[0],n[0]+o),n[0]+=o;break;case 1:o=8,r=e.slice(n[0],n[0]+o),n[0]+=o;break;case 2:o=aN(e,n),r=e.slice(n[0],n[0]+o),n[0]+=o;break;default:throw new Error("PB Type ".concat(s," for Field ").concat(a," at offset ").concat(i))}var l={data:r,type:s};null==t[a]?t[a]=[l]:t[a].push(l)}return t}function lN(e){var t=[];return e.forEach((function(e,n){e.forEach((function(e){e.data&&(t.push(sN(8*n+e.type)),2==e.type&&t.push(sN(e.data.length)),t.push(e.data))}))})),rN(t)}function uN(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function hN(e){for(var t,n=[],r=[0];r[0]>>0>0),n.push(s)}return n}function fN(e){var t=[];return e.forEach((function(e){var n=[];n[1]=[{data:sN(e.id),type:0}],n[2]=[],null!=e.merge&&(n[3]=[{data:sN(+!!e.merge),type:0}]);var r=[];e.messages.forEach((function(e){r.push(e.data),e.meta[3]=[{type:0,data:sN(e.data.length)}],n[2].push({data:lN(e.meta),type:2})}));var i=lN(n);t.push(sN(i.length)),t.push(i),r.forEach((function(e){return t.push(e)}))})),rN(t)}function dN(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],r=aN(t,n),i=[];n[0]>2&7),s=(224&t[n[0]++])<<3,s|=t[n[0]++]):(o=1+(t[n[0]++]>>2),2==a?(s=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(s=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),i=[rN(i)],0==s)throw new Error("Invalid offset 0");if(s>i[0].length)throw new Error("Invalid offset beyond length");if(o>=s)for(i.push(i[0].slice(-s)),o-=s;o>=i[i.length-1].length;)i.push(i[i.length-1]),o-=i[i.length-1].length;i.push(i[0].slice(-s,-s+o))}else{var c=t[n[0]++]>>2;if(c<60)++c;else{var l=c-59;c=t[n[0]],l>1&&(c|=t[n[0]+1]<<8),l>2&&(c|=t[n[0]+2]<<16),l>3&&(c|=t[n[0]+3]<<24),c>>>=0,c++,n[0]+=l}i.push(t.slice(n[0],n[0]+c)),n[0]+=c}}var u=rN(i);if(u.length!=r)throw new Error("Unexpected length: ".concat(u.length," != ").concat(r));return u}function pN(e){for(var t=[],n=0;n>8&255]))):r<=16777216?(s+=4,t.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(s+=5,t.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),t.push(e.slice(n,n+r)),s+=r,i[0]=0,i[1]=255&s,i[2]=s>>8&255,i[3]=s>>16&255,n+=r}return rN(t)}function gN(e,t,n){var r,i=eN(e),a=i.getUint32(8,!0),s=12,o=-1,c=-1,l=NaN,u=NaN,h=new Date(2001,0,1);switch(1&a&&(l=function(e,t){for(var n=(127&e[t+15])<<7|e[t+14]>>1,r=1&e[t+14],i=t+13;i>=t;--i)r=256*r+e[i];return(128&e[t+15]?-r:r)*Math.pow(10,n-6176)}(e,s),s+=16),2&a&&(u=i.getFloat64(s,!0),s+=8),4&a&&(h.setTime(h.getTime()+1e3*i.getFloat64(s,!0)),s+=8),8&a&&(c=i.getUint32(s,!0),s+=4),16&a&&(o=i.getUint32(s,!0),s+=4),e[1]){case 0:break;case 2:case 10:r={t:"n",v:l};break;case 3:r={t:"s",v:t[c]};break;case 5:r={t:"d",v:h};break;case 6:r={t:"b",v:u>0};break;case 7:r={t:"n",v:u/86400};break;case 8:r={t:"e",v:0};break;case 9:if(!(o>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&a," : ").concat(e.slice(0,4)));r={t:"s",v:n[o]};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&a," : ").concat(e.slice(0,4)))}return r}function vN(e,t){var n=new Uint8Array(32),r=eN(n),i=12,a=0;switch(n[0]=5,e.t){case"n":n[1]=2,function(e,t,n){var r=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,i=n/Math.pow(10,r-6176);e[t+15]|=r>>7,e[t+14]|=(127&r)<<1;for(var a=0;i>=1;++a,i/=256)e[t+a]=255&i;e[t+15]|=n>=0?0:128}(n,i,e.v),a|=1,i+=16;break;case"b":n[1]=6,r.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[1]=3,r.setUint32(i,t.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(8,a,!0),n.slice(0,i)}function yN(e,t){var n=new Uint8Array(32),r=eN(n),i=12,a=0;switch(n[0]=3,e.t){case"n":n[2]=2,r.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":n[2]=6,r.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[2]=3,r.setUint32(i,t.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(4,a,!0),n.slice(0,i)}function _N(e,t,n){switch(e[0]){case 0:case 1:case 2:case 3:return function(e,t,n,r){var i,a=eN(e),s=a.getUint32(4,!0),o=(r>1?12:8)+4*iN(s&(r>1?3470:398)),c=-1,l=-1,u=NaN,h=new Date(2001,0,1);switch(512&s&&(c=a.getUint32(o,!0),o+=4),o+=4*iN(s&(r>1?12288:4096)),16&s&&(l=a.getUint32(o,!0),o+=4),32&s&&(u=a.getFloat64(o,!0),o+=8),64&s&&(h.setTime(h.getTime()+1e3*a.getFloat64(o,!0)),o+=8),e[2]){case 0:break;case 2:i={t:"n",v:u};break;case 3:i={t:"s",v:t[l]};break;case 5:i={t:"d",v:h};break;case 6:i={t:"b",v:u>0};break;case 7:i={t:"n",v:u/86400};break;case 8:i={t:"e",v:0};break;case 9:if(c>-1)i={t:"s",v:n[c]};else if(l>-1)i={t:"s",v:t[l]};else{if(isNaN(u))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));i={t:"n",v:u}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return i}(e,t,n,e[0]);case 5:return gN(e,t,n);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function bN(e){return aN(cN(e)[1][0].data)}function xN(e,t){var n=cN(t.data),r=oN(n[1][0].data),i=n[3],a=[];return(i||[]).forEach((function(t){var n=cN(t.data),i=oN(n[1][0].data)>>>0;switch(r){case 1:a[i]=tN(n[3][0].data);break;case 8:var s=cN(e[bN(n[9][0].data)][0].data),o=e[bN(s[1][0].data)][0],c=oN(o.meta[1][0].data);if(2001!=c)throw new Error("2000 unexpected reference to ".concat(c));var l=cN(o.data);a[i]=l[3].map((function(e){return tN(e.data)})).join("")}})),a}function wN(e,t){var n,r=cN(t.data),i=(null==(n=null==r?void 0:r[7])?void 0:n[0])?oN(r[7][0].data)>>>0>0?1:0:-1,a=uN(r[5],(function(e){return function(e,t){var n,r,i,a,s,o,c,l,u,h,f,d,p,m,g,v,y=cN(e),_=oN(y[1][0].data)>>>0,b=oN(y[2][0].data)>>>0,x=(null==(r=null==(n=y[8])?void 0:n[0])?void 0:r.data)&&oN(y[8][0].data)>0||!1;if((null==(a=null==(i=y[7])?void 0:i[0])?void 0:a.data)&&0!=t)g=null==(o=null==(s=y[7])?void 0:s[0])?void 0:o.data,v=null==(l=null==(c=y[6])?void 0:c[0])?void 0:l.data;else{if(!(null==(h=null==(u=y[4])?void 0:u[0])?void 0:h.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");g=null==(d=null==(f=y[4])?void 0:f[0])?void 0:d.data,v=null==(m=null==(p=y[3])?void 0:p[0])?void 0:m.data}for(var w=x?4:1,S=eN(g),E=[],T=0;T=1&&(A[E[E.length-1][0]]=v.subarray(E[E.length-1][1]*w)),{R:_,cells:A}}(e,i)}));return{nrows:oN(r[4][0].data)>>>0,data:a.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(n,r){if(e[t.R][r])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(r));e[t.R][r]=n})),e}),[])}}function SN(e,t){var n={"!ref":"A1"},r=e[bN(cN(t.data)[2][0].data)],i=oN(r[0].meta[1][0].data);if(6001!=i)throw new Error("6000 unexpected reference to ".concat(i));return function(e,t,n){var r,i=cN(t.data),a={s:{r:0,c:0},e:{r:0,c:0}};if(a.e.r=(oN(i[6][0].data)>>>0)-1,a.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(a.e.c=(oN(i[7][0].data)>>>0)-1,a.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));n["!ref"]=OC(a);var s=cN(i[4][0].data),o=xN(e,e[bN(s[4][0].data)][0]),c=(null==(r=s[17])?void 0:r[0])?xN(e,e[bN(s[17][0].data)][0]):[],l=cN(s[3][0].data),u=0;l[1].forEach((function(t){var r=cN(t.data),i=e[bN(r[2][0].data)][0],a=oN(i.meta[1][0].data);if(6002!=a)throw new Error("6001 unexpected reference to ".concat(a));var s=wN(0,i);s.data.forEach((function(e,t){e.forEach((function(e,r){var i=kC({r:u+t,c:r}),a=_N(e,o,c);a&&(n[i]=a)}))})),u+=s.nrows}))}(e,r[0],n),n}function EN(e,t){var n={SheetNames:[],Sheets:{}};if(uN(cN(t.data)[1],bN).forEach((function(t){e[t].forEach((function(t){if(2==oN(t.meta[1][0].data)){var r=function(e,t){var n,r=cN(t.data),i={name:(null==(n=r[1])?void 0:n[0])?tN(r[1][0].data):"",sheets:[]};return uN(r[2],bN).forEach((function(t){e[t].forEach((function(t){6e3==oN(t.meta[1][0].data)&&i.sheets.push(SN(e,t))}))})),i}(e,t);r.sheets.forEach((function(e,t){eF(n,e,0==t?r.name:r.name+"_"+t,!0)}))}}))})),0==n.SheetNames.length)throw new Error("Empty NUMBERS file");return n}function TN(e){var t,n,r,i,a={},s=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var t,n;try{t=pN(e.content)}catch(r){return}try{n=hN(t)}catch(r){return}n.forEach((function(e){a[e.id]=e.messages,s.push(e.id)}))}})),!s.length)throw new Error("File has no messages");var o=(null==(i=null==(r=null==(n=null==(t=null==a?void 0:a[1])?void 0:t[0])?void 0:n.meta)?void 0:r[1])?void 0:i[0].data)&&1==oN(a[1][0].meta[1][0].data)&&a[1][0];if(o||s.forEach((function(e){a[e].forEach((function(e){if(1==oN(e.meta[1][0].data)>>>0){if(o)throw new Error("Document has multiple roots");o=e}}))})),!o)throw new Error("Cannot find Document root");return EN(a,o)}function MN(e,t,n){var r,i,a,s;if(!(null==(r=e[6])?void 0:r[0])||!(null==(i=e[7])?void 0:i[0]))throw"Mutation only works on post-BNC storages!";if((null==(s=null==(a=e[8])?void 0:a[0])?void 0:s.data)&&oN(e[8][0].data)>0||!1)throw"Math only works with normal offsets";for(var o=0,c=eN(e[7][0].data),l=0,u=[],h=eN(e[4][0].data),f=0,d=[],p=0;p]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][n].Target}(VM(e,p,!0),Rk(VM(e,m,!0),p)),v=qM(g,p),y=kk(v);f=AL(VM(e,v,!0),0,0,Rk(VM(e,y,!0),v),0,f);break;case"macro":b=t,a[r],b.slice(-4),f={"!type":"macro"};break;case"dialog":f=function(e,t,n,r,i,a,s,o){return t.slice(-4),{"!type":"dialog"}}(0,t,0,0,a[r]);break;default:throw new Error("Unrecognized sheet type "+o)}s[r]=f;var _=[];a&&a[r]&&pM(a[r]).forEach((function(n){var i="";if(a[r][n].Type==Ck.CMNT){i=qM(a[r][n].Target,t);var s=$L(zM(e,i,!0),i,c);if(!s||!s.length)return;zI(f,s,!1)}a[r][n].Type==Ck.TCMNT&&(i=qM(a[r][n].Target,t),_=_.concat(function(e,t){var n=[],r=!1,i={},a=0;return e.replace(KM,(function(s,o){var c=eA(s);switch(tA(c[0])){case"":case"":case"
":case"":break;case"":null!=i.t&&n.push(i);break;case"":case"":i.t=e.slice(a,o).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"":case"":case"":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+c[0]+" in threaded comments")}return s})),n}(zM(e,i,!0),c)))})),_&&_.length&&zI(f,_,!0,c.people||[])}catch(x){if(c.WTF)throw x}var b}function ON(e){return"/"==e.charAt(0)?e.slice(1):e}function IN(e,t){if(oM(),CN(t=t||{}),UM(e,"META-INF/manifest.xml"))return YD(e,t);if(UM(e,"objectdata.xml"))return YD(e,t);if(UM(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if(void 0!==TN){if(e.FileIndex)return TN(e);var n=hM.utils.cfb_new();return jM(e).forEach((function(t){WM(n,t,HM(e,t))})),TN(n)}throw new Error("Unsupported NUMBERS file")}if(!UM(e,"[Content_Types].xml")){if(UM(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(UM(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var r,i,a=jM(e),s=function(e){var t={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!e||!e.match)return t;var n={};if((e.match(KM)||[]).forEach((function(e){var r=eA(e);switch(r[0].replace(JM,"<")){case"0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=n,delete t.calcchains,t}(VM(e,"[Content_Types].xml")),o=!1;if(0===s.workbooks.length&&zM(e,i="xl/workbook.xml",!0)&&s.workbooks.push(i),0===s.workbooks.length){if(!zM(e,i="xl/workbook.bin",!0))throw new Error("Could not find workbook");s.workbooks.push(i),o=!0}"bin"==s.workbooks[0].slice(-3)&&(o=!0);var c={},l={};if(!t.bookSheets&&!t.bookProps){if(BP=[],s.sst)try{BP=qL(zM(e,ON(s.sst)),s.sst,t)}catch(R){if(t.WTF)throw R}t.cellStyles&&s.themes.length&&(c=function(e,t,n){return II(e,n)}(VM(e,s.themes[0].replace(/^\//,""),!0)||"",s.themes[0],t)),s.style&&(l=XL(zM(e,ON(s.style)),s.style,c,t))}s.links.map((function(n){try{Rk(VM(e,kk(ON(n))),n);return ZL(zM(e,ON(n)),0,n,t)}catch(R){}}));var u=jL(zM(e,ON(s.workbooks[0])),s.workbooks[0],t),h={},f="";s.coreprops.length&&((f=zM(e,ON(s.coreprops[0]),!0))&&(h=Uk(f)),0!==s.extprops.length&&(f=zM(e,ON(s.extprops[0]),!0))&&function(e,t,n){var r={};t||(t={}),e=vA(e),Vk.forEach((function(n){var i=(e.match(_A(n[0]))||[])[1];switch(n[2]){case"string":i&&(t[n[1]]=iA(i));break;case"bool":t[n[1]]="true"===i;break;case"raw":var a=e.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)"));a&&a.length>0&&(r[n[1]]=a[1])}})),r.HeadingPairs&&r.TitlesOfParts&&jk(r.HeadingPairs,r.TitlesOfParts,t,n)}(f,h,t));var d={};t.bookSheets&&!t.bookProps||0!==s.custprops.length&&(f=VM(e,ON(s.custprops[0]),!0))&&(d=function(e,t){var n={},r="",i=e.match(Gk);if(i)for(var a=0;a!=i.length;++a){var s=i[a],o=eA(s);switch(o[0]){case"":r=null;break;default:if(0===s.indexOf(""),l=c[0].slice(4),u=c[1];switch(l){case"lpstr":case"bstr":case"lpwstr":case"cy":case"error":n[r]=iA(u);break;case"bool":n[r]=fA(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":n[r]=parseInt(u,10);break;case"r4":case"r8":case"decimal":n[r]=parseFloat(u);break;case"filetime":case"date":n[r]=CM(u);break;default:if("/"==l.slice(-1))break;t.WTF}}else if("0&&(r=h.SheetNames),t.bookProps&&(p.Props=h,p.Custprops=d),t.bookSheets&&void 0!==r&&(p.SheetNames=r),t.bookSheets?p.SheetNames:t.bookProps))return p;r={};var m={};t.bookDeps&&s.calcchain&&(m=YL(zM(e,ON(s.calcchain)),s.calcchain));var g,v,y=0,_={},b=u.Sheets;h.Worksheets=b.length,h.SheetNames=[];for(var x=0;x!=b.length;++x)h.SheetNames[x]=b[x].name;var w=o?"bin":"xml",S=s.workbooks[0].lastIndexOf("/"),E=(s.workbooks[0].slice(0,S+1)+"_rels/"+s.workbooks[0].slice(S+1)+".rels").replace(/^\//,"");UM(e,E)||(E="xl/_rels/workbook."+w+".rels");var T=Rk(VM(e,E,!0),E.replace(/_rels.*/,"s5s"));(s.metadata||[]).length>=1&&(t.xlmeta=KL(zM(e,ON(s.metadata[0])),s.metadata[0],t)),(s.people||[]).length>=1&&(t.people=function(e,t){var n=[],r=!1;return e.replace(KM,(function(e){var i=eA(e);switch(tA(i[0])){case"":case"":case"":case"":case"":break;case"":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+i[0]+" in threaded comments")}return e})),n}(zM(e,ON(s.people[0])),t)),T&&(T=function(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,(n=e["!id"][t.id].Type,Ck.WS.indexOf(n)>-1?"sheet":n==Ck.CS?"chart":n==Ck.DS?"dialog":n==Ck.MS?"macro":n&&n.length?n:"sheet")];var n}))}catch(R){return null}return e&&0!==e.length?e:null}(T,u.Sheets));var M=zM(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(y=0;y!=h.Worksheets;++y){var A="sheet";if(T&&T[y]?(g="xl/"+T[y][1].replace(/[\/]?xl\//,""),UM(e,g)||(g=T[y][1]),UM(e,g)||(g=E.replace(/_rels\/.*$/,"")+T[y][1]),A=T[y][2]):g=(g="xl/worksheets/sheet"+(y+1-M)+"."+w).replace(/sheet0\./,"sheet."),v=g.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(y!=t.sheets)continue e;break;case"string":if(h.SheetNames[y].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var C=!1,k=0;k!=t.sheets.length;++k)"number"==typeof t.sheets[k]&&t.sheets[k]==y&&(C=1),"string"==typeof t.sheets[k]&&t.sheets[k].toLowerCase()==h.SheetNames[y].toLowerCase()&&(C=1);if(!C)continue e}}RN(e,g,v,h.SheetNames[y],y,_,r,A,t,u,c,l)}return p={Directory:s,Workbook:u,Props:h,Custprops:d,Deps:m,Sheets:r,SheetNames:h.SheetNames,Strings:BP,Styles:l,Themes:c,SSF:RM(MT)},t&&t.bookFiles&&(e.files?(p.keys=a,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach((function(t,n){t=t.replace(/^Root Entry[\/]/,""),p.keys.push(t),p.files[t]=e.FileIndex[n]})))),t&&t.bookVBA&&(s.vba.length>0?p.vbaraw=zM(e,ON(s.vba[0]),!0):s.defaults&&s.defaults.bin===GI&&(p.vbaraw=zM(e,"xl/vbaProject.bin",!0))),p}function PN(e,t){var n,r,i=t||{},a="Workbook",s=hM.find(e,a);try{if(a="/!DataSpaces/Version",!(s=hM.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(n=s.content,(r={}).id=n.read_shift(0,"lpp4"),r.R=IO(n,4),r.U=IO(n,4),r.W=IO(n,4),a="/!DataSpaces/DataSpaceMap",!(s=hM.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);var o=function(e){var t=[];e.l+=4;for(var n=e.read_shift(4);n-- >0;)t.push(PO(e));return t}(s.content);if(1!==o.length||1!==o[0].comps.length||0!==o[0].comps[0].t||"StrongEncryptionDataSpace"!==o[0].name||"EncryptedPackage"!==o[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(s=hM.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);var c=function(e){var t=[];e.l+=4;for(var n=e.read_shift(4);n-- >0;)t.push(e.read_shift(0,"lpp4"));return t}(s.content);if(1!=c.length||"StrongEncryptionTransform"!=c[0])throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(s=hM.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);LO(s.content)}catch(u){}if(a="/EncryptionInfo",!(s=hM.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);var l=function(e){var t=IO(e);switch(t.Minor){case 2:return[t.Minor,FO(e)];case 3:return[t.Minor,UO()];case 4:return[t.Minor,BO(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}(s.content);if(a="/EncryptedPackage",!(s=hM.find(e,a))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(4==l[0]&&"undefined"!=typeof decrypt_agile)return decrypt_agile(l[1],s.content,i.password||"",i);if(2==l[0]&&"undefined"!=typeof decrypt_std76)return decrypt_std76(l[1],s.content,i.password||"",i);throw new Error("File is password-protected")}function LN(e,t){return"ods"==t.bookType?QD(e,t):"numbers"==t.bookType?function(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=e.Sheets[e.SheetNames[0]];e.SheetNames.length;var r=RC(n["!ref"]);r.s.r=r.s.c=0,r.e.c>9&&(r.e.c=9),r.e.r>49&&(r.e.r=49);var i=XN(n,{range:r,header:1}),a=["~Sh33tJ5~"];i.forEach((function(e){return e.forEach((function(e){"string"==typeof e&&a.push(e)}))}));var s={},o=[],c=hM.read(t.numbers,{type:"base64"});c.FileIndex.map((function(e,t){return[e,c.FullPaths[t]]})).forEach((function(e){var t=e[0],n=e[1];2==t.type&&t.name.match(/\.iwa/)&&hN(pN(t.content)).forEach((function(e){o.push(e.id),s[e.id]={deps:[],location:n,type:oN(e.messages[0].meta[1][0].data)}}))})),o.sort((function(e,t){return e-t}));var l=o.filter((function(e){return e>1})).map((function(e){return[e,sN(e)]}));c.FileIndex.map((function(e,t){return[e,c.FullPaths[t]]})).forEach((function(e){var t=e[0];e[1],t.name.match(/\.iwa/)&&hN(pN(t.content)).forEach((function(e){e.messages.forEach((function(t){l.forEach((function(t){e.messages.some((function(e){return 11006!=oN(e.meta[1][0].data)&&function(e,t){e:for(var n=0;n<=e.length-t.length;++n){for(var r=0;r-1,i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};kN(t=t||{});var a=GM(),s="",o=0;t.cellXfs=[],GP(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});if(WM(a,s="docProps/core.xml",zk(e.Props,t)),i.coreprops.push(s),Ik(t.rels,2,s,Ck.CORE_PROPS),s="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var c=[],l=0;l0&&(WM(a,s="docProps/custom.xml",Xk(e.Custprops)),i.custprops.push(s),Ik(t.rels,4,s,Ck.CUST_PROPS));for(o=1;o<=e.SheetNames.length;++o){var u={"!id":{}},h=e.Sheets[e.SheetNames[o-1]];(h||{})["!type"];if(WM(a,s="xl/worksheets/sheet"+o+"."+n,JL(o-1,s,t,e,u)),i.sheets.push(s),Ik(t.wbrels,-1,"worksheets/sheet"+o+"."+n,Ck.WS[0]),h){var f=h["!comments"],d=!1,p="";f&&f.length>0&&(WM(a,p="xl/comments"+o+"."+n,QL(f,p)),i.comments.push(p),Ik(u,-1,"../comments"+o+"."+n,Ck.CMNT),d=!0),h["!legacy"]&&d&&WM(a,"xl/drawings/vmlDrawing"+o+".vml",BI(o,h["!comments"])),delete h["!comments"],delete h["!legacy"]}u["!id"].rId1&&WM(a,kk(s),Ok(u))}null!=t.Strings&&t.Strings.length>0&&(WM(a,s="xl/sharedStrings."+n,function(e,t,n){return(".bin"===t.slice(-4)?RO:CO)(e,n)}(t.Strings,s,t)),i.strs.push(s),Ik(t.wbrels,-1,"sharedStrings."+n,Ck.SST));WM(a,s="xl/workbook."+n,function(e,t,n){return(".bin"===t.slice(-4)?HL:BL)(e)}(e,s)),i.workbooks.push(s),Ik(t.rels,1,s,Ck.WB),WM(a,s="xl/theme/theme1.xml",PI(e.Themes,t)),i.themes.push(s),Ik(t.wbrels,-1,"theme/theme1.xml",Ck.THEME),WM(a,s="xl/styles."+n,function(e,t,n){return(".bin"===t.slice(-4)?SI:uI)(e,n)}(e,s,t)),i.styles.push(s),Ik(t.wbrels,-1,"styles."+n,Ck.STY),e.vbaraw&&r&&(WM(a,s="xl/vbaProject.bin",e.vbaraw),i.vba.push(s),Ik(t.wbrels,-1,"vbaProject.bin",Ck.VBA));return WM(a,s="xl/metadata."+n,function(e){return(".bin"===e.slice(-4)?NI:FI)()}(s)),i.metadata.push(s),Ik(t.wbrels,-1,"metadata."+n,Ck.XLMETA),WM(a,"[Content_Types].xml",Ak(i,t)),WM(a,"_rels/.rels",Ok(t.rels)),WM(a,"xl/_rels/workbook."+n+".rels",Ok(t.wbrels)),delete t.revssf,delete t.ssf,a}(e,t):function(e,t){UI=1024,e&&!e.SSF&&(e.SSF=RM(MT));e&&e.SSF&&(oM(),sM(e.SSF),t.revssf=vM(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF);t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,VP?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xml",r=XI.indexOf(t.bookType)>-1,i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};kN(t=t||{});var a=GM(),s="",o=0;t.cellXfs=[],GP(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});if(WM(a,s="docProps/core.xml",zk(e.Props,t)),i.coreprops.push(s),Ik(t.rels,2,s,Ck.CORE_PROPS),s="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var c=[],l=0;l0&&(WM(a,s="docProps/custom.xml",Xk(e.Custprops)),i.custprops.push(s),Ik(t.rels,4,s,Ck.CUST_PROPS));var u=["SheetJ5"];for(t.tcid=0,o=1;o<=e.SheetNames.length;++o){var h={"!id":{}},f=e.Sheets[e.SheetNames[o-1]];(f||{})["!type"];if(WM(a,s="xl/worksheets/sheet"+o+"."+n,hL(o-1,t,e,h)),i.sheets.push(s),Ik(t.wbrels,-1,"worksheets/sheet"+o+"."+n,Ck.WS[0]),f){var d=f["!comments"],p=!1,m="";if(d&&d.length>0){var g=!1;d.forEach((function(e){e[1].forEach((function(e){1==e.T&&(g=!0)}))})),g&&(WM(a,m="xl/threadedComments/threadedComment"+o+"."+n,HI(d,u,t)),i.threadedcomments.push(m),Ik(h,-1,"../threadedComments/threadedComment"+o+"."+n,Ck.TCMNT)),WM(a,m="xl/comments"+o+"."+n,VI(d)),i.comments.push(m),Ik(h,-1,"../comments"+o+"."+n,Ck.CMNT),p=!0}f["!legacy"]&&p&&WM(a,"xl/drawings/vmlDrawing"+o+".vml",BI(o,f["!comments"])),delete f["!comments"],delete f["!legacy"]}h["!id"].rId1&&WM(a,kk(s),Ok(h))}null!=t.Strings&&t.Strings.length>0&&(WM(a,s="xl/sharedStrings."+n,CO(t.Strings,t)),i.strs.push(s),Ik(t.wbrels,-1,"sharedStrings."+n,Ck.SST));WM(a,s="xl/workbook."+n,BL(e)),i.workbooks.push(s),Ik(t.rels,1,s,Ck.WB),WM(a,s="xl/theme/theme1.xml",PI(e.Themes,t)),i.themes.push(s),Ik(t.wbrels,-1,"theme/theme1.xml",Ck.THEME),WM(a,s="xl/styles."+n,uI(e,t)),i.styles.push(s),Ik(t.wbrels,-1,"styles."+n,Ck.STY),e.vbaraw&&r&&(WM(a,s="xl/vbaProject.bin",e.vbaraw),i.vba.push(s),Ik(t.wbrels,-1,"vbaProject.bin",Ck.VBA));WM(a,s="xl/metadata."+n,FI()),i.metadata.push(s),Ik(t.wbrels,-1,"metadata."+n,Ck.XLMETA),u.length>1&&(WM(a,s="xl/persons/person.xml",function(e){var t=[$M,CA("personList",null,{xmlns:IA.TCMNT,"xmlns:x":PA[0]}).replace(/[\/]>/,">")];return e.forEach((function(e,n){t.push(CA("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))})),t.push(""),t.join("")}(u)),i.people.push(s),Ik(t.wbrels,-1,"persons/person.xml",Ck.PEOPLE));return WM(a,"[Content_Types].xml",Ak(i,t)),WM(a,"_rels/.rels",Ok(t.rels)),WM(a,"xl/_rels/workbook."+n+".rels",Ok(t.wbrels)),delete t.revssf,delete t.ssf,a}(e,t)}function DN(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=aT(e.slice(0,12));break;case"binary":n=e;break;default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function NN(e,t){var n=0;e:for(;n=2&&0===r[3])return vO.to_workbook(i,n);if(0===r[2]&&(8===r[3]||9===r[3]))return vO.to_workbook(i,n)}break;case 3:case 131:case 139:case 140:return fO.to_workbook(i,n);case 123:if(92===r[1]&&114===r[2]&&116===r[3])return WO.to_workbook(i,n);break;case 10:case 13:case 32:return function(e,t){var n="",r=DN(e,t);switch(t.type){case"base64":n=aT(e);break;case"binary":n=e;break;case"buffer":n=e.toString("binary");break;case"array":n=kM(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==r[0]&&187==r[1]&&191==r[2]&&(n=vA(n)),t.type="binary",NN(n,t)}(i,n);case 137:if(80===r[1]&&78===r[2]&&71===r[3])throw new Error("PNG Image File is not a spreadsheet")}return hO.indexOf(r[0])>-1&&r[2]<=12&&r[3]<=31?fO.to_workbook(i,n):FN(e,i,n,a)}function BN(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return dM(t.file,hM.write(e,{type:sT?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return hM.write(e,t)}function zN(e,t){var n=RM(t||{});return function(e,t){var n={},r=sT?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";t.compression&&(n.compression="DEFLATE");if(t.password)n.type=r;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=r;break;default:throw new Error("Unrecognized type "+t.type)}var i=e.FullPaths?hM.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if("undefined"!=typeof Deno&&"string"==typeof i){if("binary"==t.type||"base64"==t.type)return i;i=new Uint8Array(hT(i))}return t.password&&"undefined"!=typeof encrypt_agile?BN(encrypt_agile(i,t.password),t):"file"===t.type?dM(t.file,i):"string"==t.type?vA(i):i}(LN(e,n),n)}function VN(e,t,n){n||(n="");var r=n+e;switch(t.type){case"base64":return iT(yA(r));case"binary":return yA(r);case"string":return e;case"file":return dM(t.file,r,"utf8");case"buffer":return sT?oT(r,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(r):VN(r,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function HN(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",r=0;r0&&(i=0);var h=TC(c.s.r),f=[],d=[],p=0,m=0,g=Array.isArray(e),v=c.s.r,y=0,_={};g&&!e[v]&&(e[v]=[]);var b=l.skipHidden&&e["!cols"]||[],x=l.skipHidden&&e["!rows"]||[];for(y=c.s.c;y<=c.e.c;++y)if(!(b[y]||{}).hidden)switch(f[y]=AC(y),n=g?e[v][y]:e[f[y]+h],r){case 1:a[y]=y-c.s.c;break;case 2:a[y]=f[y];break;case 3:a[y]=l.header[y-c.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),o=s=LC(n,null,l),m=_[s]||0){do{o=s+"_"+m++}while(_[o]);_[s]=m,_[o]=1}else _[s]=1;a[y]=o}for(v=c.s.r+i;v<=c.e.r;++v)if(!(x[v]||{}).hidden){var w=GN(e,c,v,f,r,a,g,l);(!1===w.isempty||(1===r?!1!==l.blankrows:l.blankrows))&&(d[p++]=w.row)}return d.length=p,d}var qN=/"/g;function $N(e,t,n,r,i,a,s,o){for(var c=!0,l=[],u="",h=TC(n),f=t.s.c;f<=t.e.c;++f)if(r[f]){var d=o.dense?(e[n]||[])[f]:e[r[f]+h];if(null==d)u="";else if(null!=d.v){c=!1,u=""+(o.rawNumbers&&"n"==d.t?d.v:LC(d,null,o));for(var p=0,m=0;p!==u.length;++p)if((m=u.charCodeAt(p))===i||m===a||34===m||o.forceQuotes){u='"'+u.replace(qN,'""')+'"';break}"ID"==u&&(u='"ID"')}else null==d.f||d.F?u="":(c=!1,(u="="+d.f).indexOf(",")>=0&&(u='"'+u.replace(qN,'""')+'"'));l.push(u)}return!1===o.blankrows&&c?null:l.join(s)}function YN(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var i=IC(e["!ref"]),a=void 0!==r.FS?r.FS:",",s=a.charCodeAt(0),o=void 0!==r.RS?r.RS:"\n",c=o.charCodeAt(0),l=new RegExp(("|"==a?"\\|":a)+"+$"),u="",h=[];r.dense=Array.isArray(e);for(var f=r.skipHidden&&e["!cols"]||[],d=r.skipHidden&&e["!rows"]||[],p=i.s.c;p<=i.e.c;++p)(f[p]||{}).hidden||(h[p]=AC(p));for(var m=0,g=i.s.r;g<=i.e.r;++g)(d[g]||{}).hidden||null!=(u=$N(e,i,g,h,s,c,a,r))&&(r.strip&&(u=u.replace(l,"")),(u||!1!==r.blankrows)&&n.push((m++?o:"")+u));return delete r.dense,n.join("")}function ZN(e,t){return t||(t={}),t.FS="\t",t.RS="\n",YN(e,t)}function KN(e,t,n){var r,i=n||{},a=+!i.skipHeader,s=e||{},o=0,c=0;if(s&&null!=i.origin)if("number"==typeof i.origin)o=i.origin;else{var l="string"==typeof i.origin?CC(i.origin):i.origin;o=l.r,c=l.c}var u={s:{c:0,r:0},e:{c:c,r:o+t.length-1+a}};if(s["!ref"]){var h=IC(s["!ref"]);u.e.c=Math.max(u.e.c,h.e.c),u.e.r=Math.max(u.e.r,h.e.r),-1==o&&(o=h.e.r+1,u.e.r=o+t.length-1+a)}else-1==o&&(o=0,u.e.r=t.length-1+a);var f=i.header||[],d=0;t.forEach((function(e,t){pM(e).forEach((function(n){-1==(d=f.indexOf(n))&&(f[d=f.length]=n);var l=e[n],u="z",h="",p=kC({c:c+d,r:o+t+a});r=JN(s,p),!l||"object"!=typeof l||l instanceof Date?("number"==typeof l?u="n":"boolean"==typeof l?u="b":"string"==typeof l?u="s":l instanceof Date?(u="d",i.cellDates||(u="n",l=_M(l)),h=i.dateNF||MT[14]):null===l&&i.nullError&&(u="e",l=0),r?(r.t=u,r.v=l,delete r.w,delete r.R,h&&(r.z=h)):s[p]=r={t:u,v:l},h&&(r.z=h)):s[p]=l}))})),u.e.c=Math.max(u.e.c,c+f.length-1);var p=TC(o);if(a)for(d=0;d=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var a=n.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||n;for(++i;i<=65535&&-1!=e.SheetNames.indexOf(n=s+i);++i);}if(NL(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function tF(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}var nF,rF,iF,aF={encode_col:AC,encode_row:TC,encode_cell:kC,encode_range:OC,decode_col:MC,decode_row:EC,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:CC,decode_range:RC,format_cell:LC,sheet_add_aoa:NC,sheet_add_json:KN,sheet_add_dom:WD,aoa_to_sheet:FC,json_to_sheet:function(e,t){return KN(null,e,t)},table_to_sheet:GD,table_to_book:function(e,t){return DC(GD(e,t),t)},sheet_to_csv:YN,sheet_to_txt:ZN,sheet_to_json:XN,sheet_to_html:jD,sheet_to_formulae:function(e){var t,n="",r="";if(null==e||null==e["!ref"])return[];var i,a=IC(e["!ref"]),s="",o=[],c=[],l=Array.isArray(e);for(i=a.s.c;i<=a.e.c;++i)o[i]=AC(i);for(var u=a.s.r;u<=a.e.r;++u)for(s=TC(u),i=a.s.c;i<=a.e.c;++i)if(n=o[i]+s,r="",void 0!==(t=l?(e[u]||[])[i]:e[n])){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)r=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)r=""+t.v;else if("b"==t.t)r=t.v?"TRUE":"FALSE";else if(void 0!==t.w)r="'"+t.w;else{if(void 0===t.v)continue;r="s"==t.t?"'"+t.v:""+t.v}}c[c.length]=n+"="+r}return c},sheet_to_row_object_array:XN,sheet_get_cell:JN,book_new:QN,book_append_sheet:eF,book_set_sheet_visibility:function(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=function(e,t){if("number"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:tF,cell_set_internal_link:function(e,t,n){return tF(e,"#"+t,n)},cell_add_comment:function(e,t,n){e.c||(e.c=[]),e.c.push({t:t,a:n||"SheetJS"})},sheet_set_array_formula:function(e,t,n,r){for(var i="string"!=typeof t?t:IC(t),a="string"==typeof t?t:OC(t),s=i.s.r;s<=i.e.r;++s)for(var o=i.s.c;o<=i.e.c;++o){var c=JN(e,s,o);c.t="n",c.F=a,delete c.v,s==i.s.r&&o==i.s.c&&(c.f=n,r&&(c.D=!0))}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};(rF=nF||(nF={})).assertEqual=e=>e,rF.assertIs=function(e){},rF.assertNever=function(e){throw new Error},rF.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},rF.getValidEnumValues=e=>{const t=rF.objectKeys(e).filter((t=>"number"!=typeof e[e[t]])),n={};for(const r of t)n[r]=e[r];return rF.objectValues(n)},rF.objectValues=e=>rF.objectKeys(e).map((function(t){return e[t]})),rF.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},rF.find=(e,t)=>{for(const n of e)if(t(n))return n},rF.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,rF.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},rF.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(iF||(iF={})).mergeShapes=(e,t)=>({...e,...t});const sF=nF.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),oF=e=>{switch(typeof e){case"undefined":return sF.undefined;case"string":return sF.string;case"number":return isNaN(e)?sF.nan:sF.number;case"boolean":return sF.boolean;case"function":return sF.function;case"bigint":return sF.bigint;case"symbol":return sF.symbol;case"object":return Array.isArray(e)?sF.array:null===e?sF.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?sF.promise:"undefined"!=typeof Map&&e instanceof Map?sF.map:"undefined"!=typeof Set&&e instanceof Set?sF.set:"undefined"!=typeof Date&&e instanceof Date?sF.date:sF.object;default:return sF.unknown}},cF=nF.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class lF extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;re.message)){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}lF.create=e=>new lF(e);const uF=(e,t)=>{let n;switch(e.code){case cF.invalid_type:n=e.received===sF.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case cF.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,nF.jsonStringifyReplacer)}`;break;case cF.unrecognized_keys:n=`Unrecognized key(s) in object: ${nF.joinValues(e.keys,", ")}`;break;case cF.invalid_union:n="Invalid input";break;case cF.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${nF.joinValues(e.options)}`;break;case cF.invalid_enum_value:n=`Invalid enum value. Expected ${nF.joinValues(e.options)}, received '${e.received}'`;break;case cF.invalid_arguments:n="Invalid function arguments";break;case cF.invalid_return_type:n="Invalid function return type";break;case cF.invalid_date:n="Invalid date";break;case cF.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:nF.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case cF.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case cF.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case cF.custom:n="Invalid input";break;case cF.invalid_intersection_types:n="Intersection results could not be merged";break;case cF.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case cF.not_finite:n="Number must be finite";break;default:n=t.defaultError,nF.assertNever(e)}return{message:n}};let hF=uF;function fF(){return hF}const dF=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],s={...i,path:a};let o="";const c=r.filter((e=>!!e)).slice().reverse();for(const l of c)o=l(s,{data:t,defaultError:o}).message;return{...i,path:a,message:i.message||o}};function pF(e,t){const n=dF({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,fF(),uF].filter((e=>!!e))});e.common.issues.push(n)}class mF{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return gF;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t)n.push({key:await r.key,value:await r.value});return mF.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:i}=r;if("aborted"===t.status)return gF;if("aborted"===i.status)return gF;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"===t.value||void 0===i.value&&!r.alwaysSet||(n[t.value]=i.value)}return{status:e.value,value:n}}}const gF=Object.freeze({status:"aborted"}),vF=e=>({status:"dirty",value:e}),yF=e=>({status:"valid",value:e}),_F=e=>"aborted"===e.status,bF=e=>"dirty"===e.status,xF=e=>"valid"===e.status,wF=e=>"undefined"!=typeof Promise&&e instanceof Promise;var SF,EF;(EF=SF||(SF={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},EF.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class TF{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const MF=(e,t)=>{if(xF(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new lF(e.common.issues);return this._error=t,this._error}}};function AF(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};return{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=n?n:t.defaultError},description:i}}class CF{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return oF(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:oF(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new mF,ctx:{common:e.parent.common,data:e.data,parsedType:oF(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(wF(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:oF(e)},i=this._parseSync({data:e,path:r.path,parent:r});return MF(r,i)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:oF(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await(wF(r)?r:Promise.resolve(r));return MF(n,i)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,r)=>{const i=e(t),a=()=>r.addIssue({code:cF.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then((e=>!!e||(a(),!1))):!!i||(a(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1)))}_refinement(e){return new mU({schema:this,typeName:AU.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return gU.create(this,this._def)}nullable(){return vU.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZF.create(this,this._def)}promise(){return pU.create(this,this._def)}or(e){return QF.create([this,e],this._def)}and(e){return rU.create(this,e,this._def)}transform(e){return new mU({...AF(this._def),schema:this,typeName:AU.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new yU({...AF(this._def),innerType:this,defaultValue:t,typeName:AU.ZodDefault})}brand(){return new wU({typeName:AU.ZodBranded,type:this,...AF(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new _U({...AF(this._def),innerType:this,catchValue:t,typeName:AU.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return SU.create(this,e)}readonly(){return EU.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const kF=/^c[^\s-]{8,}$/i,RF=/^[a-z][a-z0-9]*$/,OF=/^[0-9A-HJKMNP-TV-Z]{26}$/,IF=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,PF=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let LF;const DF=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,NF=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;class FF extends CF{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==sF.string){const t=this._getOrReturnCtx(e);return pF(t,{code:cF.invalid_type,expected:sF.string,received:t.parsedType}),gF}const t=new mF;let n;for(const o of this._def.checks)if("min"===o.kind)e.data.lengtho.value&&(n=this._getOrReturnCtx(e,n),pF(n,{code:cF.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("length"===o.kind){const r=e.data.length>o.value,i=e.data.lengthe.test(t)),{validation:t,code:cF.invalid_string,...SF.errToObj(n)})}_addCheck(e){return new FF({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...SF.errToObj(e)})}url(e){return this._addCheck({kind:"url",...SF.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...SF.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...SF.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...SF.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...SF.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...SF.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...SF.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...SF.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...SF.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...SF.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...SF.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...SF.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...SF.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...SF.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...SF.errToObj(t)})}nonempty(e){return this.min(1,SF.errToObj(e))}trim(){return new FF({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new FF({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new FF({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.valuer?n:r;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}FF.create=e=>{var t;return new FF({checks:[],typeName:AU.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...AF(e)})};class BF extends CF{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==sF.number){const t=this._getOrReturnCtx(e);return pF(t,{code:cF.invalid_type,expected:sF.number,received:t.parsedType}),gF}let t;const n=new mF;for(const r of this._def.checks)if("int"===r.kind)nF.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),pF(t,{code:cF.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty());else if("min"===r.kind){(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),pF(t,{code:cF.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else"multipleOf"===r.kind?0!==UF(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),pF(t,{code:cF.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),pF(t,{code:cF.not_finite,message:r.message}),n.dirty()):nF.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,SF.toString(t))}gt(e,t){return this.setLimit("min",e,!1,SF.toString(t))}lte(e,t){return this.setLimit("max",e,!0,SF.toString(t))}lt(e,t){return this.setLimit("max",e,!1,SF.toString(t))}setLimit(e,t,n,r){return new BF({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:SF.toString(r)}]})}_addCheck(e){return new BF({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:SF.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:SF.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:SF.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:SF.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:SF.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:SF.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:SF.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:SF.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:SF.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&nF.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.valuenew BF({checks:[],typeName:AU.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...AF(e)});class zF extends CF{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==sF.bigint){const t=this._getOrReturnCtx(e);return pF(t,{code:cF.invalid_type,expected:sF.bigint,received:t.parsedType}),gF}let t;const n=new mF;for(const r of this._def.checks)if("min"===r.kind){(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),pF(t,{code:cF.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),pF(t,{code:cF.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):nF.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,SF.toString(t))}gt(e,t){return this.setLimit("min",e,!1,SF.toString(t))}lte(e,t){return this.setLimit("max",e,!0,SF.toString(t))}lt(e,t){return this.setLimit("max",e,!1,SF.toString(t))}setLimit(e,t,n,r){return new zF({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:SF.toString(r)}]})}_addCheck(e){return new zF({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:SF.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:SF.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:SF.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:SF.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:SF.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new zF({checks:[],typeName:AU.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...AF(e)})};class VF extends CF{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==sF.boolean){const t=this._getOrReturnCtx(e);return pF(t,{code:cF.invalid_type,expected:sF.boolean,received:t.parsedType}),gF}return yF(e.data)}}VF.create=e=>new VF({typeName:AU.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...AF(e)});class HF extends CF{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==sF.date){const t=this._getOrReturnCtx(e);return pF(t,{code:cF.invalid_type,expected:sF.date,received:t.parsedType}),gF}if(isNaN(e.data.getTime())){return pF(this._getOrReturnCtx(e),{code:cF.invalid_date}),gF}const t=new mF;let n;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()r.value&&(n=this._getOrReturnCtx(e,n),pF(n,{code:cF.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):nF.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new HF({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:SF.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:SF.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew HF({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:AU.ZodDate,...AF(e)});class jF extends CF{_parse(e){if(this._getType(e)!==sF.symbol){const t=this._getOrReturnCtx(e);return pF(t,{code:cF.invalid_type,expected:sF.symbol,received:t.parsedType}),gF}return yF(e.data)}}jF.create=e=>new jF({typeName:AU.ZodSymbol,...AF(e)});class WF extends CF{_parse(e){if(this._getType(e)!==sF.undefined){const t=this._getOrReturnCtx(e);return pF(t,{code:cF.invalid_type,expected:sF.undefined,received:t.parsedType}),gF}return yF(e.data)}}WF.create=e=>new WF({typeName:AU.ZodUndefined,...AF(e)});class GF extends CF{_parse(e){if(this._getType(e)!==sF.null){const t=this._getOrReturnCtx(e);return pF(t,{code:cF.invalid_type,expected:sF.null,received:t.parsedType}),gF}return yF(e.data)}}GF.create=e=>new GF({typeName:AU.ZodNull,...AF(e)});class XF extends CF{constructor(){super(...arguments),this._any=!0}_parse(e){return yF(e.data)}}XF.create=e=>new XF({typeName:AU.ZodAny,...AF(e)});class qF extends CF{constructor(){super(...arguments),this._unknown=!0}_parse(e){return yF(e.data)}}qF.create=e=>new qF({typeName:AU.ZodUnknown,...AF(e)});class $F extends CF{_parse(e){const t=this._getOrReturnCtx(e);return pF(t,{code:cF.invalid_type,expected:sF.never,received:t.parsedType}),gF}}$F.create=e=>new $F({typeName:AU.ZodNever,...AF(e)});class YF extends CF{_parse(e){if(this._getType(e)!==sF.undefined){const t=this._getOrReturnCtx(e);return pF(t,{code:cF.invalid_type,expected:sF.void,received:t.parsedType}),gF}return yF(e.data)}}YF.create=e=>new YF({typeName:AU.ZodVoid,...AF(e)});class ZF extends CF{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==sF.array)return pF(t,{code:cF.invalid_type,expected:sF.array,received:t.parsedType}),gF;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(pF(t,{code:cF.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new TF(t,e,t.path,n))))).then((e=>mF.mergeArray(n,e)));const i=[...t.data].map(((e,n)=>r.type._parseSync(new TF(t,e,t.path,n))));return mF.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new ZF({...this._def,minLength:{value:e,message:SF.toString(t)}})}max(e,t){return new ZF({...this._def,maxLength:{value:e,message:SF.toString(t)}})}length(e,t){return new ZF({...this._def,exactLength:{value:e,message:SF.toString(t)}})}nonempty(e){return this.min(1,e)}}function KF(e){if(e instanceof JF){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=gU.create(KF(r))}return new JF({...e._def,shape:()=>t})}return e instanceof ZF?new ZF({...e._def,type:KF(e.element)}):e instanceof gU?gU.create(KF(e.unwrap())):e instanceof vU?vU.create(KF(e.unwrap())):e instanceof iU?iU.create(e.items.map((e=>KF(e)))):e}ZF.create=(e,t)=>new ZF({type:e,minLength:null,maxLength:null,exactLength:null,typeName:AU.ZodArray,...AF(t)});class JF extends CF{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=nF.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==sF.object){const t=this._getOrReturnCtx(e);return pF(t,{code:cF.invalid_type,expected:sF.object,received:t.parsedType}),gF}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof $F&&"strip"===this._def.unknownKeys))for(const o in n.data)i.includes(o)||a.push(o);const s=[];for(const o of i){const e=r[o],t=n.data[o];s.push({key:{status:"valid",value:o},value:e._parse(new TF(n,t,n.path,o)),alwaysSet:o in n.data})}if(this._def.catchall instanceof $F){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of a)s.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)a.length>0&&(pF(n,{code:cF.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const r=n.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new TF(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of s){const n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e})).then((e=>mF.mergeObjectSync(t,e))):mF.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return SF.errToObj,new JF({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,a,s;const o=null!==(a=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=SF.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new JF({...this._def,unknownKeys:"strip"})}passthrough(){return new JF({...this._def,unknownKeys:"passthrough"})}extend(e){return new JF({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new JF({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:AU.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new JF({...this._def,catchall:e})}pick(e){const t={};return nF.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new JF({...this._def,shape:()=>t})}omit(e){const t={};return nF.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new JF({...this._def,shape:()=>t})}deepPartial(){return KF(this)}partial(e){const t={};return nF.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new JF({...this._def,shape:()=>t})}required(e){const t={};return nF.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof gU;)e=e._def.innerType;t[n]=e}})),new JF({...this._def,shape:()=>t})}keyof(){return hU(nF.objectKeys(this.shape))}}JF.create=(e,t)=>new JF({shape:()=>e,unknownKeys:"strip",catchall:$F.create(),typeName:AU.ZodObject,...AF(t)}),JF.strictCreate=(e,t)=>new JF({shape:()=>e,unknownKeys:"strict",catchall:$F.create(),typeName:AU.ZodObject,...AF(t)}),JF.lazycreate=(e,t)=>new JF({shape:e,unknownKeys:"strip",catchall:$F.create(),typeName:AU.ZodObject,...AF(t)});class QF extends CF{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map((e=>new lF(e.ctx.common.issues)));return pF(t,{code:cF.invalid_union,unionErrors:n}),gF}));{let e;const r=[];for(const a of n){const n={...t,common:{...t.common,issues:[]},parent:null},i=a._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const i=r.map((e=>new lF(e)));return pF(t,{code:cF.invalid_union,unionErrors:i}),gF}}get options(){return this._def.options}}QF.create=(e,t)=>new QF({options:e,typeName:AU.ZodUnion,...AF(t)});const eU=e=>e instanceof lU?eU(e.schema):e instanceof mU?eU(e.innerType()):e instanceof uU?[e.value]:e instanceof fU?e.options:e instanceof dU?Object.keys(e.enum):e instanceof yU?eU(e._def.innerType):e instanceof WF?[void 0]:e instanceof GF?[null]:null;class tU extends CF{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==sF.object)return pF(t,{code:cF.invalid_type,expected:sF.object,received:t.parsedType}),gF;const n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(pF(t,{code:cF.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),gF)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const i of t){const t=eU(i.shape[e]);if(!t)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,i)}}return new tU({typeName:AU.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...AF(n)})}}function nU(e,t){const n=oF(e),r=oF(t);if(e===t)return{valid:!0,data:e};if(n===sF.object&&r===sF.object){const n=nF.objectKeys(t),r=nF.objectKeys(e).filter((e=>-1!==n.indexOf(e))),i={...e,...t};for(const a of r){const n=nU(e[a],t[a]);if(!n.valid)return{valid:!1};i[a]=n.data}return{valid:!0,data:i}}if(n===sF.array&&r===sF.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r{if(_F(e)||_F(r))return gF;const i=nU(e.value,r.value);return i.valid?((bF(e)||bF(r))&&t.dirty(),{status:t.value,value:i.data}):(pF(n,{code:cF.invalid_intersection_types}),gF)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}rU.create=(e,t,n)=>new rU({left:e,right:t,typeName:AU.ZodIntersection,...AF(n)});class iU extends CF{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==sF.array)return pF(n,{code:cF.invalid_type,expected:sF.array,received:n.parsedType}),gF;if(n.data.lengththis._def.items.length&&(pF(n,{code:cF.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new TF(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>mF.mergeArray(t,e))):mF.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new iU({...this._def,rest:e})}}iU.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new iU({items:e,typeName:AU.ZodTuple,rest:null,...AF(t)})};class aU extends CF{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==sF.object)return pF(n,{code:cF.invalid_type,expected:sF.object,received:n.parsedType}),gF;const r=[],i=this._def.keyType,a=this._def.valueType;for(const s in n.data)r.push({key:i._parse(new TF(n,s,n.path,s)),value:a._parse(new TF(n,n.data[s],n.path,s))});return n.common.async?mF.mergeObjectAsync(t,r):mF.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new aU(t instanceof CF?{keyType:e,valueType:t,typeName:AU.ZodRecord,...AF(n)}:{keyType:FF.create(),valueType:e,typeName:AU.ZodRecord,...AF(t)})}}class sU extends CF{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==sF.map)return pF(n,{code:cF.invalid_type,expected:sF.map,received:n.parsedType}),gF;const r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map((([e,t],a)=>({key:r._parse(new TF(n,e,n.path,[a,"key"])),value:i._parse(new TF(n,t,n.path,[a,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return gF;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return gF;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}sU.create=(e,t,n)=>new sU({valueType:t,keyType:e,typeName:AU.ZodMap,...AF(n)});class oU extends CF{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==sF.set)return pF(n,{code:cF.invalid_type,expected:sF.set,received:n.parsedType}),gF;const r=this._def;null!==r.minSize&&n.data.sizer.maxSize.value&&(pF(n,{code:cF.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const i=this._def.valueType;function a(e){const n=new Set;for(const r of e){if("aborted"===r.status)return gF;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const s=[...n.data.values()].map(((e,t)=>i._parse(new TF(n,e,n.path,t))));return n.common.async?Promise.all(s).then((e=>a(e))):a(s)}min(e,t){return new oU({...this._def,minSize:{value:e,message:SF.toString(t)}})}max(e,t){return new oU({...this._def,maxSize:{value:e,message:SF.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}oU.create=(e,t)=>new oU({valueType:e,minSize:null,maxSize:null,typeName:AU.ZodSet,...AF(t)});class cU extends CF{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==sF.function)return pF(t,{code:cF.invalid_type,expected:sF.function,received:t.parsedType}),gF;function n(e,n){return dF({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,fF(),uF].filter((e=>!!e)),issueData:{code:cF.invalid_arguments,argumentsError:n}})}function r(e,n){return dF({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,fF(),uF].filter((e=>!!e)),issueData:{code:cF.invalid_return_type,returnTypeError:n}})}const i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof pU){const e=this;return yF((async function(...t){const s=new lF([]),o=await e._def.args.parseAsync(t,i).catch((e=>{throw s.addIssue(n(t,e)),s})),c=await Reflect.apply(a,this,o);return await e._def.returns._def.type.parseAsync(c,i).catch((e=>{throw s.addIssue(r(c,e)),s}))}))}{const e=this;return yF((function(...t){const s=e._def.args.safeParse(t,i);if(!s.success)throw new lF([n(t,s.error)]);const o=Reflect.apply(a,this,s.data),c=e._def.returns.safeParse(o,i);if(!c.success)throw new lF([r(o,c.error)]);return c.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new cU({...this._def,args:iU.create(e).rest(qF.create())})}returns(e){return new cU({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new cU({args:e||iU.create([]).rest(qF.create()),returns:t||qF.create(),typeName:AU.ZodFunction,...AF(n)})}}class lU extends CF{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}lU.create=(e,t)=>new lU({getter:e,typeName:AU.ZodLazy,...AF(t)});class uU extends CF{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return pF(t,{received:t.data,code:cF.invalid_literal,expected:this._def.value}),gF}return{status:"valid",value:e.data}}get value(){return this._def.value}}function hU(e,t){return new fU({values:e,typeName:AU.ZodEnum,...AF(t)})}uU.create=(e,t)=>new uU({value:e,typeName:AU.ZodLiteral,...AF(t)});class fU extends CF{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return pF(t,{expected:nF.joinValues(n),received:t.parsedType,code:cF.invalid_type}),gF}if(-1===this._def.values.indexOf(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return pF(t,{received:t.data,code:cF.invalid_enum_value,options:n}),gF}return yF(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return fU.create(e)}exclude(e){return fU.create(this.options.filter((t=>!e.includes(t))))}}fU.create=hU;class dU extends CF{_parse(e){const t=nF.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==sF.string&&n.parsedType!==sF.number){const e=nF.objectValues(t);return pF(n,{expected:nF.joinValues(e),received:n.parsedType,code:cF.invalid_type}),gF}if(-1===t.indexOf(e.data)){const e=nF.objectValues(t);return pF(n,{received:n.data,code:cF.invalid_enum_value,options:e}),gF}return yF(e.data)}get enum(){return this._def.values}}dU.create=(e,t)=>new dU({values:e,typeName:AU.ZodNativeEnum,...AF(t)});class pU extends CF{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==sF.promise&&!1===t.common.async)return pF(t,{code:cF.invalid_type,expected:sF.promise,received:t.parsedType}),gF;const n=t.parsedType===sF.promise?t.data:Promise.resolve(t.data);return yF(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}pU.create=(e,t)=>new pU({type:e,typeName:AU.ZodPromise,...AF(t)});class mU extends CF{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===AU.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{pF(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){const e=r.transform(n.data,i);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(e).then((e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n}))):this._def.schema._parseSync({data:e,path:n.path,parent:n})}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?gF:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?gF:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!xF(e))return e;const a=r.transform(e.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>xF(e)?Promise.resolve(r.transform(e.value,i)).then((e=>({status:t.value,value:e}))):e))}nF.assertNever(r)}}mU.create=(e,t,n)=>new mU({schema:e,typeName:AU.ZodEffects,effect:t,...AF(n)}),mU.createWithPreprocess=(e,t,n)=>new mU({schema:t,effect:{type:"preprocess",transform:e},typeName:AU.ZodEffects,...AF(n)});class gU extends CF{_parse(e){return this._getType(e)===sF.undefined?yF(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}gU.create=(e,t)=>new gU({innerType:e,typeName:AU.ZodOptional,...AF(t)});class vU extends CF{_parse(e){return this._getType(e)===sF.null?yF(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}vU.create=(e,t)=>new vU({innerType:e,typeName:AU.ZodNullable,...AF(t)});class yU extends CF{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===sF.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}yU.create=(e,t)=>new yU({innerType:e,typeName:AU.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...AF(t)});class _U extends CF{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return wF(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new lF(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new lF(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}_U.create=(e,t)=>new _U({innerType:e,typeName:AU.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...AF(t)});class bU extends CF{_parse(e){if(this._getType(e)!==sF.nan){const t=this._getOrReturnCtx(e);return pF(t,{code:cF.invalid_type,expected:sF.nan,received:t.parsedType}),gF}return{status:"valid",value:e.data}}}bU.create=e=>new bU({typeName:AU.ZodNaN,...AF(e)});const xU=Symbol("zod_brand");class wU extends CF{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class SU extends CF{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?gF:"dirty"===e.status?(t.dirty(),vF(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?gF:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new SU({in:e,out:t,typeName:AU.ZodPipeline})}}class EU extends CF{_parse(e){const t=this._def.innerType._parse(e);return xF(t)&&(t.value=Object.freeze(t.value)),t}}EU.create=(e,t)=>new EU({innerType:e,typeName:AU.ZodReadonly,...AF(t)});const TU=(e,t={},n)=>e?XF.create().superRefine(((r,i)=>{var a,s;if(!e(r)){const e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,o=null===(s=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===s||s,c="string"==typeof e?{message:e}:e;i.addIssue({code:"custom",...c,fatal:o})}})):XF.create(),MU={object:JF.lazycreate};var AU,CU;(CU=AU||(AU={})).ZodString="ZodString",CU.ZodNumber="ZodNumber",CU.ZodNaN="ZodNaN",CU.ZodBigInt="ZodBigInt",CU.ZodBoolean="ZodBoolean",CU.ZodDate="ZodDate",CU.ZodSymbol="ZodSymbol",CU.ZodUndefined="ZodUndefined",CU.ZodNull="ZodNull",CU.ZodAny="ZodAny",CU.ZodUnknown="ZodUnknown",CU.ZodNever="ZodNever",CU.ZodVoid="ZodVoid",CU.ZodArray="ZodArray",CU.ZodObject="ZodObject",CU.ZodUnion="ZodUnion",CU.ZodDiscriminatedUnion="ZodDiscriminatedUnion",CU.ZodIntersection="ZodIntersection",CU.ZodTuple="ZodTuple",CU.ZodRecord="ZodRecord",CU.ZodMap="ZodMap",CU.ZodSet="ZodSet",CU.ZodFunction="ZodFunction",CU.ZodLazy="ZodLazy",CU.ZodLiteral="ZodLiteral",CU.ZodEnum="ZodEnum",CU.ZodEffects="ZodEffects",CU.ZodNativeEnum="ZodNativeEnum",CU.ZodOptional="ZodOptional",CU.ZodNullable="ZodNullable",CU.ZodDefault="ZodDefault",CU.ZodCatch="ZodCatch",CU.ZodPromise="ZodPromise",CU.ZodBranded="ZodBranded",CU.ZodPipeline="ZodPipeline",CU.ZodReadonly="ZodReadonly";const kU=FF.create,RU=BF.create,OU=bU.create,IU=zF.create,PU=VF.create,LU=HF.create,DU=jF.create,NU=WF.create,FU=GF.create,UU=XF.create,BU=qF.create,zU=$F.create,VU=YF.create,HU=ZF.create,jU=JF.create,WU=JF.strictCreate,GU=QF.create,XU=tU.create,qU=rU.create,$U=iU.create,YU=aU.create,ZU=sU.create,KU=oU.create,JU=cU.create,QU=lU.create,eB=uU.create,tB=fU.create,nB=dU.create,rB=pU.create,iB=mU.create,aB=gU.create,sB=vU.create,oB=mU.createWithPreprocess,cB=SU.create,lB={string:e=>FF.create({...e,coerce:!0}),number:e=>BF.create({...e,coerce:!0}),boolean:e=>VF.create({...e,coerce:!0}),bigint:e=>zF.create({...e,coerce:!0}),date:e=>HF.create({...e,coerce:!0})},uB=gF;var hB=Object.freeze({__proto__:null,defaultErrorMap:uF,setErrorMap:function(e){hF=e},getErrorMap:fF,makeIssue:dF,EMPTY_PATH:[],addIssueToContext:pF,ParseStatus:mF,INVALID:gF,DIRTY:vF,OK:yF,isAborted:_F,isDirty:bF,isValid:xF,isAsync:wF,get util(){return nF},get objectUtil(){return iF},ZodParsedType:sF,getParsedType:oF,ZodType:CF,ZodString:FF,ZodNumber:BF,ZodBigInt:zF,ZodBoolean:VF,ZodDate:HF,ZodSymbol:jF,ZodUndefined:WF,ZodNull:GF,ZodAny:XF,ZodUnknown:qF,ZodNever:$F,ZodVoid:YF,ZodArray:ZF,ZodObject:JF,ZodUnion:QF,ZodDiscriminatedUnion:tU,ZodIntersection:rU,ZodTuple:iU,ZodRecord:aU,ZodMap:sU,ZodSet:oU,ZodFunction:cU,ZodLazy:lU,ZodLiteral:uU,ZodEnum:fU,ZodNativeEnum:dU,ZodPromise:pU,ZodEffects:mU,ZodTransformer:mU,ZodOptional:gU,ZodNullable:vU,ZodDefault:yU,ZodCatch:_U,ZodNaN:bU,BRAND:xU,ZodBranded:wU,ZodPipeline:SU,ZodReadonly:EU,custom:TU,Schema:CF,ZodSchema:CF,late:MU,get ZodFirstPartyTypeKind(){return AU},coerce:lB,any:UU,array:HU,bigint:IU,boolean:PU,date:LU,discriminatedUnion:XU,effect:iB,enum:tB,function:JU,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>TU((t=>t instanceof e),t),intersection:qU,lazy:QU,literal:eB,map:ZU,nan:OU,nativeEnum:nB,never:zU,null:FU,nullable:sB,number:RU,object:jU,oboolean:()=>PU().optional(),onumber:()=>RU().optional(),optional:aB,ostring:()=>kU().optional(),pipeline:cB,preprocess:oB,promise:rB,record:YU,set:KU,strictObject:WU,string:kU,symbol:DU,transformer:iB,tuple:$U,undefined:NU,union:GU,unknown:BU,void:VU,NEVER:uB,ZodIssueCode:cF,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:lF});const fB=jb({aqua:{"color-scheme":"dark",primary:"#09ecf3","primary-content":"#005355",secondary:"#966fb3",accent:"#ffe999",neutral:"#3b8ac4","base-100":"#345da7",info:"#2563eb",success:"#16a34a",warning:"#d97706",error:"oklch(73.95% 0.19 27.33)"},black:{"color-scheme":"dark",primary:"#373737",secondary:"#373737",accent:"#373737","base-100":"#000000","base-200":"#141414","base-300":"#262626","base-content":"#d6d6d6",neutral:"#373737",info:"#0000ff",success:"#008000",warning:"#ffff00",error:"#ff0000","--rounded-box":"0","--rounded-btn":"0","--rounded-badge":"0","--animation-btn":"0","--animation-input":"0","--btn-focus-scale":"1","--tab-radius":"0"},bumblebee:{"color-scheme":"light",primary:"oklch(89.51% 0.2132 96.61)","primary-content":"oklch(38.92% 0.046 96.61)",secondary:"oklch(80.39% 0.194 70.76)","secondary-content":"oklch(39.38% 0.068 70.76)",accent:"oklch(81.27% 0.157 56.52)",neutral:"oklch(12.75% 0.075 281.99)","base-100":"oklch(100% 0 0)"},cmyk:{"color-scheme":"light",primary:"#45AEEE",secondary:"#E8488A",accent:"#FFF232",neutral:"#1a1a1a","base-100":"oklch(100% 0 0)",info:"#4AA8C0",success:"#823290",warning:"#EE8133",error:"#E93F33"},corporate:{"color-scheme":"light",primary:"oklch(60.39% 0.228 269.1)",secondary:"#7b92b2",accent:"#67cba0",neutral:"#181a2a","neutral-content":"#edf2f7","base-100":"oklch(100% 0 0)","base-content":"#181a2a","--rounded-box":"0.25rem","--rounded-btn":".125rem","--rounded-badge":".125rem","--tab-radius":"0.25rem","--animation-btn":"0","--animation-input":"0","--btn-focus-scale":"1"},cupcake:{"color-scheme":"light",primary:"#65c3c8",secondary:"#ef9fbc",accent:"#eeaf3a",neutral:"#291334","base-100":"#faf7f5","base-200":"#efeae6","base-300":"#e7e2df","base-content":"#291334","--rounded-btn":"1.9rem","--tab-border":"2px","--tab-radius":"0.7rem"},cyberpunk:{"color-scheme":"light",fontFamily:"ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",primary:"oklch(74.22% 0.209 6.35)",secondary:"oklch(83.33% 0.184 204.72)",accent:"oklch(71.86% 0.2176 310.43)",neutral:"oklch(23.04% 0.065 269.31)","neutral-content":"oklch(94.51% 0.179 104.32)","base-100":"oklch(94.51% 0.179 104.32)","--rounded-box":"0","--rounded-btn":"0","--rounded-badge":"0","--tab-radius":"0"},dark:{"color-scheme":"dark",primary:"oklch(65.69% 0.196 275.75)",secondary:"oklch(74.8% 0.26 342.55)",accent:"oklch(74.51% 0.167 183.61)",neutral:"#2a323c","neutral-content":"#A6ADBB","base-100":"#1d232a","base-200":"#191e24","base-300":"#15191e","base-content":"#A6ADBB"},dracula:{"color-scheme":"dark",primary:"#ff79c6",secondary:"#bd93f9",accent:"#ffb86c",neutral:"#414558","base-100":"#282a36","base-content":"#f8f8f2",info:"#8be9fd",success:"#50fa7b",warning:"#f1fa8c",error:"#ff5555"},emerald:{"color-scheme":"light",primary:"#66cc8a","primary-content":"#223D30",secondary:"#377cfb","secondary-content":"#fff",accent:"#f68067","accent-content":"#000",neutral:"#333c4d","neutral-content":"#f9fafb","base-100":"oklch(100% 0 0)","base-content":"#333c4d","--animation-btn":"0","--animation-input":"0","--btn-focus-scale":"1"},fantasy:{"color-scheme":"light",primary:"oklch(37.45% 0.189 325.02)",secondary:"oklch(53.92% 0.162 241.36)",accent:"oklch(75.98% 0.204 56.72)",neutral:"#1f2937","base-100":"oklch(100% 0 0)","base-content":"#1f2937"},forest:{"color-scheme":"dark",primary:"#1eb854","primary-content":"#000000",secondary:"#1DB88E",accent:"#1DB8AB",neutral:"#19362D","base-100":"#171212","--rounded-btn":"1.9rem"},garden:{"color-scheme":"light",primary:"oklch(62.45% 0.278 3.8363600743192197)","primary-content":"#fff",secondary:"#8E4162",accent:"#5c7f67",neutral:"#291E00","neutral-content":"#e9e7e7","base-100":"#e9e7e7","base-content":"#100f0f"},halloween:{"color-scheme":"dark",primary:"oklch(77.48% 0.204 60.62)","primary-content":"#131616",secondary:"oklch(45.98% 0.248 305.03)",accent:"oklch(64.8% 0.223 136.07347934356451)","accent-content":"#000000",neutral:"#2F1B05","base-100":"#212121",info:"#2563eb",success:"#16a34a",warning:"#d97706",error:"oklch(65.72% 0.199 27.33)"},light:{"color-scheme":"light",primary:"oklch(49.12% 0.3096 275.75)",secondary:"oklch(69.71% 0.329 342.55)","secondary-content":"oklch(98.71% 0.0106 342.55)",accent:"oklch(76.76% 0.184 183.61)",neutral:"#2B3440","neutral-content":"#D7DDE4","base-100":"oklch(100% 0 0)","base-200":"#F2F2F2","base-300":"#E5E6E6","base-content":"#1f2937"},lofi:{"color-scheme":"light",primary:"#0D0D0D","primary-content":"oklch(100% 0 0)",secondary:"#1A1919","secondary-content":"oklch(100% 0 0)",accent:"#262626","accent-content":"oklch(100% 0 0)",neutral:"#000000","neutral-content":"oklch(100% 0 0)","base-100":"oklch(100% 0 0)","base-200":"#F2F2F2","base-300":"#E6E5E5","base-content":"#000000",info:"oklch(79.54% 0.103 205.9)",success:"oklch(90.13% 0.153 164.14)",warning:"oklch(88.37% 0.135 79.94)",error:"oklch(78.66% 0.15 28.47)","--rounded-box":"0.25rem","--rounded-btn":"0.125rem","--rounded-badge":"0.125rem","--tab-radius":"0.125rem","--animation-btn":"0","--animation-input":"0","--btn-focus-scale":"1"},luxury:{"color-scheme":"dark",primary:"oklch(100% 0 0)",secondary:"#152747",accent:"#513448",neutral:"#331800","neutral-content":"#FFE7A3","base-100":"#09090b","base-200":"#171618","base-300":"#2e2d2f","base-content":"#dca54c",info:"#66c6ff",success:"#87d039",warning:"#e2d562",error:"#ff6f6f"},pastel:{"color-scheme":"light",primary:"#d1c1d7",secondary:"#f6cbd1",accent:"#b4e9d6",neutral:"#70acc7","base-100":"oklch(100% 0 0)","base-200":"#f9fafb","base-300":"#d1d5db","--rounded-btn":"1.9rem","--tab-radius":"0.7rem"},retro:{"color-scheme":"light",primary:"#ef9995","primary-content":"#282425",secondary:"#a4cbb4","secondary-content":"#282425",accent:"#DC8850","accent-content":"#282425",neutral:"#2E282A","neutral-content":"#EDE6D4","base-100":"#ece3ca","base-200":"#e4d8b4","base-300":"#DBCA9A","base-content":"#282425",info:"#2563eb",success:"#16a34a",warning:"#d97706",error:"oklch(65.72% 0.199 27.33)","--rounded-box":"0.4rem","--rounded-btn":"0.4rem","--rounded-badge":"0.4rem","--tab-radius":"0.4rem"},synthwave:{"color-scheme":"dark",primary:"#e779c1",secondary:"#58c7f3",accent:"oklch(88.04% 0.206 93.72)",neutral:"#221551","neutral-content":"#f9f7fd","base-100":"#1a103d","base-content":"#f9f7fd",info:"#53c0f3","info-content":"#201047",success:"#71ead2","success-content":"#201047",warning:"#eace6c","warning-content":"#201047",error:"#ec8c78","error-content":"#201047"},valentine:{"color-scheme":"light",primary:"#e96d7b",secondary:"#a991f7",accent:"#66b1b3",neutral:"#af4670","neutral-content":"#f0d6e8","base-100":"#fae7f4","base-content":"#632c3b",info:"#2563eb",success:"#16a34a",warning:"#d97706",error:"oklch(73.07% 0.207 27.33)","--rounded-btn":"1.9rem","--tab-radius":"0.7rem"},wireframe:{"color-scheme":"light",fontFamily:"Chalkboard,comic sans ms,'sans-serif'",primary:"#b8b8b8",secondary:"#b8b8b8",accent:"#b8b8b8",neutral:"#ebebeb","base-100":"oklch(100% 0 0)","base-200":"#eeeeee","base-300":"#dddddd",info:"#0000ff",success:"#008000",warning:"#a6a659",error:"#ff0000","--rounded-box":"0.2rem","--rounded-btn":"0.2rem","--rounded-badge":"0.2rem","--tab-radius":"0.2rem"},autumn:{"color-scheme":"light",primary:"#8C0327",secondary:"#D85251",accent:"#D59B6A",neutral:"#826A5C","base-100":"#f1f1f1",info:"#42ADBB",success:"#499380",warning:"#E97F14",error:"oklch(53.07% 0.241 24.16)"},business:{"color-scheme":"dark",primary:"#1C4E80",secondary:"#7C909A",accent:"#EA6947",neutral:"#23282E","base-100":"#202020",info:"#0091D5",success:"#6BB187",warning:"#DBAE59",error:"#AC3E31","--rounded-box":"0.25rem","--rounded-btn":".125rem","--rounded-badge":".125rem"},acid:{"color-scheme":"light",primary:"oklch(71.9% 0.357 330.7595734057481)",secondary:"oklch(73.37% 0.224 48.25087840015526)",accent:"oklch(92.78% 0.264 122.96295065960891)",neutral:"oklch(21.31% 0.128 278.68)","base-100":"#fafafa",info:"oklch(60.72% 0.227 252.05)",success:"oklch(85.72% 0.266 158.53)",warning:"oklch(91.01% 0.212 100.5)",error:"oklch(64.84% 0.293 29.34918758658804)","--rounded-box":"1.25rem","--rounded-btn":"1rem","--rounded-badge":"1rem","--tab-radius":"0.7rem"},lemonade:{"color-scheme":"light",primary:"oklch(58.92% 0.199 134.6)",secondary:"oklch(77.75% 0.196 111.09)",accent:"oklch(85.39% 0.201 100.73)",neutral:"oklch(30.98% 0.075 108.6)","base-100":"oklch(98.71% 0.02 123.72)",info:"oklch(86.19% 0.047 224.14)",success:"oklch(86.19% 0.047 157.85)",warning:"oklch(86.19% 0.047 102.15)",error:"oklch(86.19% 0.047 25.85)"},night:{"color-scheme":"dark",primary:"#38bdf8",secondary:"#818CF8",accent:"#F471B5",neutral:"#1E293B","base-100":"#0F172A",info:"#0CA5E9","info-content":"#000000",success:"#2DD4BF",warning:"#F4BF50",error:"#FB7085"},coffee:{"color-scheme":"dark",primary:"#DB924B",secondary:"#263E3F",accent:"#10576D",neutral:"#120C12","base-100":"#20161F","base-content":"#c59f60",info:"#8DCAC1",success:"#9DB787",warning:"#FFD25F",error:"#FC9581"},winter:{"color-scheme":"light",primary:"oklch(56.86% 0.255 257.57)",secondary:"#463AA2",accent:"#C148AC",neutral:"#021431","base-100":"oklch(100% 0 0)","base-200":"#F2F7FF","base-300":"#E3E9F4","base-content":"#394E6A",info:"#93E7FB",success:"#81CFD1",warning:"#EFD7BB",error:"#E58B8B"},dim:{"color-scheme":"dark",primary:"#9FE88D",secondary:"#FF7D5C",accent:"#C792E9",neutral:"#162135","neutral-content":"#B2CCD6","base-100":"#3f495d","base-200":"#2a303c","base-300":"#222730","base-content":"#B2CCD6",info:"#28ebff",success:"#62efbd",warning:"#efd057",error:"#ffae9b"},nord:{"color-scheme":"light",primary:"#5E81AC",secondary:"#81A1C1",accent:"#88C0D0",neutral:"#4C566A","neutral-content":"#D8DEE9","base-100":"#ECEFF4","base-200":"#E5E9F0","base-300":"#D8DEE9","base-content":"#2E3440",info:"#B48EAD",success:"#A3BE8C",warning:"#EBCB8B",error:"#BF616A","--rounded-box":"0.4rem","--rounded-btn":"0.2rem","--rounded-badge":"0.4rem","--tab-radius":"0.2rem"},sunset:{"color-scheme":"dark",primary:"#FF865B",secondary:"#FD6F9C",accent:"#B387FA",neutral:"oklch(26% 0.019 237.69)","neutral-content":"oklch(70% 0.019 237.69)","base-100":"oklch(22% 0.019 237.69)","base-200":"oklch(20% 0.019 237.69)","base-300":"oklch(18% 0.019 237.69)","base-content":"#9fb9d0",info:"#89e0eb",success:"#addfad",warning:"#f1c891",error:"#ffbbbd","--rounded-box":"1.2rem","--rounded-btn":"0.8rem","--rounded-badge":"0.4rem","--tab-radius":"0.7rem"}});function dB(e){return(dB="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)}var pB=/^\s+/,mB=/\s+$/;function gB(e,t){if(t=t||{},(e=e||"")instanceof gB)return e;if(!(this instanceof gB))return new gB(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,s=!1,o=!1;"string"==typeof e&&(e=function(e){e=e.replace(pB,"").replace(mB,"").toLowerCase();var t,n=!1;if(PB[e])e=PB[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=$B.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=$B.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=$B.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=$B.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=$B.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=$B.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=$B.hex8.exec(e))return{r:UB(t[1]),g:UB(t[2]),b:UB(t[3]),a:HB(t[4]),format:n?"name":"hex8"};if(t=$B.hex6.exec(e))return{r:UB(t[1]),g:UB(t[2]),b:UB(t[3]),format:n?"name":"hex"};if(t=$B.hex4.exec(e))return{r:UB(t[1]+""+t[1]),g:UB(t[2]+""+t[2]),b:UB(t[3]+""+t[3]),a:HB(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=$B.hex3.exec(e))return{r:UB(t[1]+""+t[1]),g:UB(t[2]+""+t[2]),b:UB(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==dB(e)&&(YB(e.r)&&YB(e.g)&&YB(e.b)?(c=e.r,l=e.g,u=e.b,t={r:255*NB(c,255),g:255*NB(l,255),b:255*NB(u,255)},s=!0,o="%"===String(e.r).substr(-1)?"prgb":"rgb"):YB(e.h)&&YB(e.s)&&YB(e.v)?(r=zB(e.s),i=zB(e.v),t=function(e,t,n){e=6*NB(e,360),t=NB(t,100),n=NB(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),s=n*(1-i*t),o=n*(1-(1-i)*t),c=r%6,l=[n,s,a,a,o,n][c],u=[o,n,n,s,a,a][c],h=[a,a,o,n,n,s][c];return{r:255*l,g:255*u,b:255*h}}(e.h,r,i),s=!0,o="hsv"):YB(e.h)&&YB(e.s)&&YB(e.l)&&(r=zB(e.s),a=zB(e.l),t=function(e,t,n){var r,i,a;function s(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=NB(e,360),t=NB(t,100),n=NB(n,100),0===t)r=i=a=n;else{var o=n<.5?n*(1+t):n+t-n*t,c=2*n-o;r=s(c,o,e+1/3),i=s(c,o,e),a=s(c,o,e-1/3)}return{r:255*r,g:255*i,b:255*a}}(e.h,r,a),s=!0,o="hsl"),e.hasOwnProperty("a")&&(n=e.a));var c,l,u;return n=DB(n),{ok:s,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function vB(e,t,n){e=NB(e,255),t=NB(t,255),n=NB(n,255);var r,i,a=Math.max(e,t,n),s=Math.min(e,t,n),o=(a+s)/2;if(a==s)r=i=0;else{var c=a-s;switch(i=o>.5?c/(2-a-s):c/(a+s),a){case e:r=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(gB(r));return a}function IB(e,t){t=t||6;for(var n=gB(e).toHsv(),r=n.h,i=n.s,a=n.v,s=[],o=1/t;t--;)s.push(gB({h:r,s:i,v:a})),a=(a+o)%1;return s}gB.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=DB(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=yB(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=yB(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=vB(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=vB(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return _B(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var a=[BB(Math.round(e).toString(16)),BB(Math.round(t).toString(16)),BB(Math.round(n).toString(16)),BB(VB(r))];if(i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*NB(this._r,255))+"%",g:Math.round(100*NB(this._g,255))+"%",b:Math.round(100*NB(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*NB(this._r,255))+"%, "+Math.round(100*NB(this._g,255))+"%, "+Math.round(100*NB(this._b,255))+"%)":"rgba("+Math.round(100*NB(this._r,255))+"%, "+Math.round(100*NB(this._g,255))+"%, "+Math.round(100*NB(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(LB[_B(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+bB(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=gB(e);n="#"+bB(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return gB(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(EB,arguments)},brighten:function(){return this._applyModification(TB,arguments)},darken:function(){return this._applyModification(MB,arguments)},desaturate:function(){return this._applyModification(xB,arguments)},saturate:function(){return this._applyModification(wB,arguments)},greyscale:function(){return this._applyModification(SB,arguments)},spin:function(){return this._applyModification(AB,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(OB,arguments)},complement:function(){return this._applyCombination(CB,arguments)},monochromatic:function(){return this._applyCombination(IB,arguments)},splitcomplement:function(){return this._applyCombination(RB,arguments)},triad:function(){return this._applyCombination(kB,[3])},tetrad:function(){return this._applyCombination(kB,[4])}},gB.fromRatio=function(e,t){if("object"==dB(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:zB(e[r]));e=n}return gB(e,t)},gB.equals=function(e,t){return!(!e||!t)&&gB(e).toRgbString()==gB(t).toRgbString()},gB.random=function(){return gB.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},gB.mix=function(e,t,n){n=0===n?0:n||50;var r=gB(e).toRgb(),i=gB(t).toRgb(),a=n/100;return gB({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},gB.readability=function(e,t){var n=gB(e),r=gB(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},gB.isReadable=function(e,t,n){var r,i,a=gB.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},gB.mostReadable=function(e,t,n){var r,i,a,s,o=null,c=0;i=(n=n||{}).includeFallbackColors,a=n.level,s=n.size;for(var l=0;lc&&(c=r,o=gB(t[l]));return gB.isReadable(e,o,{level:a,size:s})||!i?o:(n.includeFallbackColors=!1,gB.mostReadable(e,["#fff","#000"],n))};var PB=gB.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},LB=gB.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(PB);function DB(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function NB(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function FB(e){return Math.min(1,Math.max(0,e))}function UB(e){return parseInt(e,16)}function BB(e){return 1==e.length?"0"+e:""+e}function zB(e){return e<=1&&(e=100*e+"%"),e}function VB(e){return Math.round(255*parseFloat(e)).toString(16)}function HB(e){return UB(e)/255}var jB,WB,GB,XB,qB,$B=(WB="[\\s|\\(]+("+(jB="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+jB+")[,|\\s]+("+jB+")\\s*\\)?",GB="[\\s|\\(]+("+jB+")[,|\\s]+("+jB+")[,|\\s]+("+jB+")[,|\\s]+("+jB+")\\s*\\)?",{CSS_UNIT:new RegExp(jB),rgb:new RegExp("rgb"+WB),rgba:new RegExp("rgba"+GB),hsl:new RegExp("hsl"+WB),hsla:new RegExp("hsla"+GB),hsv:new RegExp("hsv"+WB),hsva:new RegExp("hsva"+GB),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function YB(e){return!!$B.CSS_UNIT.exec(e)}(qB=qB||{}).stringify=(XB={"visit_linear-gradient":function(e){return XB.visit_gradient(e)},"visit_repeating-linear-gradient":function(e){return XB.visit_gradient(e)},"visit_radial-gradient":function(e){return XB.visit_gradient(e)},"visit_repeating-radial-gradient":function(e){return XB.visit_gradient(e)},visit_gradient:function(e){var t=XB.visit(e.orientation);return t&&(t+=", "),e.type+"("+t+XB.visit(e.colorStops)+")"},visit_shape:function(e){var t=e.value,n=XB.visit(e.at),r=XB.visit(e.style);return r&&(t+=" "+r),n&&(t+=" at "+n),t},"visit_default-radial":function(e){var t="",n=XB.visit(e.at);return n&&(t+=n),t},"visit_extent-keyword":function(e){var t=e.value,n=XB.visit(e.at);return n&&(t+=" at "+n),t},"visit_position-keyword":function(e){return e.value},visit_position:function(e){return XB.visit(e.value.x)+" "+XB.visit(e.value.y)},"visit_%":function(e){return e.value+"%"},visit_em:function(e){return e.value+"em"},visit_px:function(e){return e.value+"px"},visit_literal:function(e){return XB.visit_color(e.value,e)},visit_hex:function(e){return XB.visit_color("#"+e.value,e)},visit_rgb:function(e){return XB.visit_color("rgb("+e.value.join(", ")+")",e)},visit_rgba:function(e){return XB.visit_color("rgba("+e.value.join(", ")+")",e)},visit_color:function(e,t){var n=e,r=XB.visit(t.length);return r&&(n+=" "+r),n},visit_angular:function(e){return e.value+"deg"},visit_directional:function(e){return"to "+e.value},visit_array:function(e){var t="",n=e.length;return e.forEach((function(e,r){t+=XB.visit(e),r0&&n("Invalid input not EOF"),e}function i(){return a("linear-gradient",e.linearGradient,o)||a("repeating-linear-gradient",e.repeatingLinearGradient,o)||a("radial-gradient",e.radialGradient,c)||a("repeating-radial-gradient",e.repeatingRadialGradient,c)}function a(t,r,i){return s(r,(function(r){var a=i();return a&&(_(e.comma)||n("Missing comma before color stops")),{type:t,orientation:a,colorStops:d(p)}}))}function s(t,r){var i=_(t);if(i){_(e.startCall)||n("Missing (");var a=r(i);return _(e.endCall)||n("Missing )"),a}}function o(){return y("directional",e.sideOrCorner,1)||y("angular",e.angleValue,1)}function c(){var n,r,i=l();return i&&((n=[]).push(i),r=t,_(e.comma)&&((i=l())?n.push(i):t=r)),n}function l(){var e=function(){var e=y("shape",/^(circle)/i,0);e&&(e.style=v()||u());return e}()||function(){var e=y("shape",/^(ellipse)/i,0);e&&(e.style=g()||u());return e}();if(e)e.at=h();else{var t=u();if(t){e=t;var n=h();n&&(e.at=n)}else{var r=f();r&&(e={type:"default-radial",at:r})}}return e}function u(){return y("extent-keyword",e.extentKeywords,1)}function h(){if(y("position",/^at/,0)){var e=f();return e||n("Missing positioning value"),e}}function f(){var e={x:g(),y:g()};if(e.x||e.y)return{type:"position",value:e}}function d(t){var r=t(),i=[];if(r)for(i.push(r);_(e.comma);)(r=t())?i.push(r):n("One extra comma");return i}function p(){var t=y("hex",e.hexColor,1)||s(e.rgbaColor,(function(){return{type:"rgba",value:d(m)}}))||s(e.rgbColor,(function(){return{type:"rgb",value:d(m)}}))||y("literal",e.literalColor,0);return t||n("Expected color definition"),t.length=g(),t}function m(){return _(e.number)[1]}function g(){return y("%",e.percentageValue,1)||y("position-keyword",e.positionKeywords,1)||v()}function v(){return y("px",e.pixelValue,1)||y("em",e.emValue,1)}function y(e,t,n){var r=_(t);if(r)return{type:e,value:r[n]}}function _(e){var n,r;return(r=/^[\n\r\t\s]+/.exec(t))&&b(r[0].length),(n=e.exec(t))&&b(n[0].length),n}function b(e){t=t.substr(e)}return function(e){return t=e.toString(),r()}}();var ZB=qB.parse,KB=qB.stringify,JB="top",QB="bottom",ez="right",tz="left",nz="auto",rz=[JB,QB,ez,tz],iz="start",az="end",sz="clippingParents",oz="viewport",cz="popper",lz="reference",uz=rz.reduce((function(e,t){return e.concat([t+"-"+iz,t+"-"+az])}),[]),hz=[].concat(rz,[nz]).reduce((function(e,t){return e.concat([t,t+"-"+iz,t+"-"+az])}),[]),fz=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function dz(e){return e?(e.nodeName||"").toLowerCase():null}function pz(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function mz(e){return e instanceof pz(e).Element||e instanceof Element}function gz(e){return e instanceof pz(e).HTMLElement||e instanceof HTMLElement}function vz(e){return"undefined"!=typeof ShadowRoot&&(e instanceof pz(e).ShadowRoot||e instanceof ShadowRoot)}const yz={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];gz(i)&&dz(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});gz(r)&&dz(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function _z(e){return e.split("-")[0]}var bz=Math.max,xz=Math.min,wz=Math.round;function Sz(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ez(){return!/^((?!chrome|android).)*safari/i.test(Sz())}function Tz(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&gz(e)&&(i=e.offsetWidth>0&&wz(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&wz(r.height)/e.offsetHeight||1);var s=(mz(e)?pz(e):window).visualViewport,o=!Ez()&&n,c=(r.left+(o&&s?s.offsetLeft:0))/i,l=(r.top+(o&&s?s.offsetTop:0))/a,u=r.width/i,h=r.height/a;return{width:u,height:h,top:l,right:c+u,bottom:l+h,left:c,x:c,y:l}}function Mz(e){var t=Tz(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Az(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vz(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Cz(e){return pz(e).getComputedStyle(e)}function kz(e){return["table","td","th"].indexOf(dz(e))>=0}function Rz(e){return((mz(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oz(e){return"html"===dz(e)?e:e.assignedSlot||e.parentNode||(vz(e)?e.host:null)||Rz(e)}function Iz(e){return gz(e)&&"fixed"!==Cz(e).position?e.offsetParent:null}function Pz(e){for(var t=pz(e),n=Iz(e);n&&kz(n)&&"static"===Cz(n).position;)n=Iz(n);return n&&("html"===dz(n)||"body"===dz(n)&&"static"===Cz(n).position)?t:n||function(e){var t=/firefox/i.test(Sz());if(/Trident/i.test(Sz())&&gz(e)&&"fixed"===Cz(e).position)return null;var n=Oz(e);for(vz(n)&&(n=n.host);gz(n)&&["html","body"].indexOf(dz(n))<0;){var r=Cz(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Lz(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dz(e,t,n){return bz(e,xz(t,n))}function Nz(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Fz(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Uz(e){return e.split("-")[1]}var Bz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zz(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,h=e.isFixed,f=s.x,d=void 0===f?0:f,p=s.y,m=void 0===p?0:p,g="function"==typeof u?u({x:d,y:m}):{x:d,y:m};d=g.x,m=g.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),_=tz,b=JB,x=window;if(l){var w=Pz(n),S="clientHeight",E="clientWidth";if(w===pz(n)&&"static"!==Cz(w=Rz(n)).position&&"absolute"===o&&(S="scrollHeight",E="scrollWidth"),i===JB||(i===tz||i===ez)&&a===az)b=QB,m-=(h&&w===x&&x.visualViewport?x.visualViewport.height:w[S])-r.height,m*=c?1:-1;if(i===tz||(i===JB||i===QB)&&a===az)_=ez,d-=(h&&w===x&&x.visualViewport?x.visualViewport.width:w[E])-r.width,d*=c?1:-1}var T,M=Object.assign({position:o},l&&Bz),A=!0===u?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:wz(n*i)/i||0,y:wz(r*i)/i||0}}({x:d,y:m},pz(n)):{x:d,y:m};return d=A.x,m=A.y,c?Object.assign({},M,((T={})[b]=y?"0":"",T[_]=v?"0":"",T.transform=(x.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",T)):Object.assign({},M,((t={})[b]=y?m+"px":"",t[_]=v?d+"px":"",t.transform="",t))}var Vz={passive:!0};var Hz={left:"right",right:"left",bottom:"top",top:"bottom"};function jz(e){return e.replace(/left|right|bottom|top/g,(function(e){return Hz[e]}))}var Wz={start:"end",end:"start"};function Gz(e){return e.replace(/start|end/g,(function(e){return Wz[e]}))}function Xz(e){var t=pz(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qz(e){return Tz(Rz(e)).left+Xz(e).scrollLeft}function $z(e){var t=Cz(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Yz(e){return["html","body","#document"].indexOf(dz(e))>=0?e.ownerDocument.body:gz(e)&&$z(e)?e:Yz(Oz(e))}function Zz(e,t){var n;void 0===t&&(t=[]);var r=Yz(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=pz(r),s=i?[a].concat(a.visualViewport||[],$z(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(Zz(Oz(s)))}function Kz(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Jz(e,t,n){return t===oz?Kz(function(e,t){var n=pz(e),r=Rz(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,c=0;if(i){a=i.width,s=i.height;var l=Ez();(l||!l&&"fixed"===t)&&(o=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:o+qz(e),y:c}}(e,n)):mz(t)?function(e,t){var n=Tz(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Kz(function(e){var t,n=Rz(e),r=Xz(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=bz(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=bz(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+qz(e),c=-r.scrollTop;return"rtl"===Cz(i||n).direction&&(o+=bz(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:c}}(Rz(e)))}function Qz(e,t,n,r){var i="clippingParents"===t?function(e){var t=Zz(Oz(e)),n=["absolute","fixed"].indexOf(Cz(e).position)>=0&&gz(e)?Pz(e):e;return mz(n)?t.filter((function(e){return mz(e)&&Az(e,n)&&"body"!==dz(e)})):[]}(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce((function(t,n){var i=Jz(e,n,r);return t.top=bz(i.top,t.top),t.right=xz(i.right,t.right),t.bottom=xz(i.bottom,t.bottom),t.left=bz(i.left,t.left),t}),Jz(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function eV(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?_z(i):null,s=i?Uz(i):null,o=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(a){case JB:t={x:o,y:n.y-r.height};break;case QB:t={x:o,y:n.y+n.height};break;case ez:t={x:n.x+n.width,y:c};break;case tz:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var l=a?Lz(a):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case iz:t[l]=t[l]-(n[u]/2-r[u]/2);break;case az:t[l]=t[l]+(n[u]/2-r[u]/2)}}return t}function tV(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.strategy,s=void 0===a?e.strategy:a,o=n.boundary,c=void 0===o?sz:o,l=n.rootBoundary,u=void 0===l?oz:l,h=n.elementContext,f=void 0===h?cz:h,d=n.altBoundary,p=void 0!==d&&d,m=n.padding,g=void 0===m?0:m,v=Nz("number"!=typeof g?g:Fz(g,rz)),y=f===cz?lz:cz,_=e.rects.popper,b=e.elements[p?y:f],x=Qz(mz(b)?b:b.contextElement||Rz(e.elements.popper),c,u,s),w=Tz(e.elements.reference),S=eV({reference:w,element:_,strategy:"absolute",placement:i}),E=Kz(Object.assign({},_,S)),T=f===cz?E:w,M={top:x.top-T.top+v.top,bottom:T.bottom-x.bottom+v.bottom,left:x.left-T.left+v.left,right:T.right-x.right+v.right},A=e.modifiersData.offset;if(f===cz&&A){var C=A[i];Object.keys(M).forEach((function(e){var t=[ez,QB].indexOf(e)>=0?1:-1,n=[JB,QB].indexOf(e)>=0?"y":"x";M[e]+=C[n]*t}))}return M}const nV={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,s=n.altAxis,o=void 0===s||s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,h=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,p=void 0===d||d,m=n.allowedAutoPlacements,g=t.options.placement,v=_z(g),y=c||(v===g||!p?[jz(g)]:function(e){if(_z(e)===nz)return[];var t=jz(e);return[Gz(e),t,Gz(t)]}(g)),_=[g].concat(y).reduce((function(e,n){return e.concat(_z(n)===nz?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?hz:c,u=Uz(r),h=u?o?uz:uz.filter((function(e){return Uz(e)===u})):rz,f=h.filter((function(e){return l.indexOf(e)>=0}));0===f.length&&(f=h);var d=f.reduce((function(t,n){return t[n]=tV(e,{placement:n,boundary:i,rootBoundary:a,padding:s})[_z(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:u,rootBoundary:h,padding:l,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),b=t.rects.reference,x=t.rects.popper,w=new Map,S=!0,E=_[0],T=0;T<_.length;T++){var M=_[T],A=_z(M),C=Uz(M)===iz,k=[JB,QB].indexOf(A)>=0,R=k?"width":"height",O=tV(t,{placement:M,boundary:u,rootBoundary:h,altBoundary:f,padding:l}),I=k?C?ez:tz:C?QB:JB;b[R]>x[R]&&(I=jz(I));var P=jz(I),L=[];if(a&&L.push(O[A]<=0),o&&L.push(O[I]<=0,O[P]<=0),L.every((function(e){return e}))){E=M,S=!1;break}w.set(M,L)}if(S)for(var D=function(e){var t=_.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},N=p?3:1;N>0;N--){if("break"===D(N))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rV(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function iV(e){return[JB,ez,QB,tz].some((function(t){return e[t]>=0}))}function aV(e,t,n){void 0===n&&(n=!1);var r,i,a=gz(t),s=gz(t)&&function(e){var t=e.getBoundingClientRect(),n=wz(t.width)/e.offsetWidth||1,r=wz(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=Rz(t),c=Tz(e,s,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==dz(t)||$z(o))&&(l=(r=t)!==pz(r)&&gz(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:Xz(r)),gz(t)?((u=Tz(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=qz(o))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function sV(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var oV={placement:"bottom",modifiers:[],strategy:"absolute"};function cV(){for(var e=arguments.length,t=new Array(e),n=0;n=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[tz,ez].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}(n,t.rects,a),e}),{}),o=s[t.placement],c=o.x,l=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=s}},nV,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=void 0===i||i,s=n.altAxis,o=void 0!==s&&s,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,h=n.padding,f=n.tether,d=void 0===f||f,p=n.tetherOffset,m=void 0===p?0:p,g=tV(t,{boundary:c,rootBoundary:l,padding:h,altBoundary:u}),v=_z(t.placement),y=Uz(t.placement),_=!y,b=Lz(v),x="x"===b?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,M="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(w){if(a){var k,R="y"===b?JB:tz,O="y"===b?QB:ez,I="y"===b?"height":"width",P=w[b],L=P+g[R],D=P-g[O],N=d?-E[I]/2:0,F=y===iz?S[I]:E[I],U=y===iz?-E[I]:-S[I],B=t.elements.arrow,z=d&&B?Mz(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=V[R],j=V[O],W=Dz(0,S[I],z[I]),G=_?S[I]/2-N-W-H-M.mainAxis:F-W-H-M.mainAxis,X=_?-S[I]/2+N+W+j+M.mainAxis:U+W+j+M.mainAxis,q=t.elements.arrow&&Pz(t.elements.arrow),$=q?"y"===b?q.clientTop||0:q.clientLeft||0:0,Y=null!=(k=null==A?void 0:A[b])?k:0,Z=P+X-Y,K=Dz(d?xz(L,P+G-Y-$):L,P,d?bz(D,Z):D);w[b]=K,C[b]=K-P}if(o){var J,Q="x"===b?JB:tz,ee="x"===b?QB:ez,te=w[x],ne="y"===x?"height":"width",re=te+g[Q],ie=te-g[ee],ae=-1!==[JB,tz].indexOf(v),se=null!=(J=null==A?void 0:A[x])?J:0,oe=ae?re:te-S[ne]-E[ne]-se+M.altAxis,ce=ae?te+S[ne]+E[ne]-se-M.altAxis:ie,le=d&&ae?(he=Dz(oe,te,ue=ce))>ue?ue:he:Dz(d?oe:re,te,d?ce:ie);w[x]=le,C[x]=le-te}var ue,he;t.modifiersData[r]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=_z(n.placement),c=Lz(o),l=[tz,ez].indexOf(o)>=0?"height":"width";if(a&&s){var u=function(e,t){return Nz("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Fz(e,rz))}(i.padding,n),h=Mz(a),f="y"===c?JB:tz,d="y"===c?QB:ez,p=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],m=s[c]-n.rects.reference[c],g=Pz(a),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=p/2-m/2,_=u[f],b=v-h[l]-u[d],x=v/2-h[l]/2+y,w=Dz(_,x,b),S=c;n.modifiersData[r]=((t={})[S]=w,t.centerOffset=w-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Az(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=tV(t,{elementContext:"reference"}),o=tV(t,{altBoundary:!0}),c=rV(s,r),l=rV(o,i,a),u=iV(c),h=iV(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}}]}); +/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ +function hV(e){return"[object Object]"===Object.prototype.toString.call(e)}function fV(){return fV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}const pV={silent:!1,logLevel:"warn"},mV=["validator"],gV=Object.prototype,vV=gV.toString,yV=gV.hasOwnProperty,_V=/^\s*function (\w+)/;function bV(e){var t;const n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){const e=n.toString().match(_V);return e?e[1]:""}return""}const xV=function(e){var t,n;return!1!==hV(e)&&(void 0===(t=e.constructor)||!1!==hV(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))};let wV=e=>e;const SV=(e,t)=>yV.call(e,t),EV=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},TV=Array.isArray||function(e){return"[object Array]"===vV.call(e)},MV=e=>"[object Function]"===vV.call(e),AV=e=>xV(e)&&SV(e,"_vueTypes_name"),CV=e=>xV(e)&&(SV(e,"type")||["_vueTypes_name","validator","default","required"].some((t=>SV(e,t))));function kV(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function RV(e,t,n=!1){let r,i=!0,a="";r=xV(e)?e:{type:e};const s=AV(r)?r._vueTypes_name+" - ":"";if(CV(r)&&null!==r.type){if(void 0===r.type||!0===r.type)return i;if(!r.required&&void 0===t)return i;TV(r.type)?(i=r.type.some((e=>!0===RV(e,t,!0))),a=r.type.map((e=>bV(e))).join(" or ")):(a=bV(r),i="Array"===a?TV(t):"Object"===a?xV(t):"String"===a||"Number"===a||"Boolean"===a||"Function"===a?function(e){if(null==e)return"";const t=e.constructor.toString().match(_V);return t?t[1]:""}(t)===a:t instanceof r.type)}if(!i){const e=`${s}value "${t}" should be of type "${a}"`;return!1===n?(wV(e),!1):e}if(SV(r,"validator")&&MV(r.validator)){const e=wV,a=[];if(wV=e=>{a.push(e)},i=r.validator(t),wV=e,!i){const e=(a.length>1?"* ":"")+a.join("\n* ");return a.length=0,!1===n?(wV(e),i):e}}return i}function OV(e,t){const n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(e){return void 0===e?(SV(this,"default")&&delete this.default,this):MV(e)||!0===RV(this,e,!0)?(this.default=TV(e)?()=>[...e]:xV(e)?()=>Object.assign({},e):e,this):(wV(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:r}=n;return MV(r)&&(n.validator=kV(r,n)),n}function IV(e,t){const n=OV(e,t);return Object.defineProperty(n,"validate",{value(e){return MV(this.validator)&&wV(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=kV(e,this),this}})}function PV(e,t,n){const r=function(e){const t={};return Object.getOwnPropertyNames(e).forEach((n=>{t[n]=Object.getOwnPropertyDescriptor(e,n)})),Object.defineProperties({},t)}(t);if(r._vueTypes_name=e,!xV(n))return r;const{validator:i}=n,a=dV(n,mV);if(MV(i)){let{validator:e}=r;e&&(e=null!==(o=(s=e).__original)&&void 0!==o?o:s),r.validator=kV(e?function(t){return e.call(this,t)&&i.call(this,t)}:i,r)}var s,o;return Object.assign(r,a)}function LV(e){return e.replace(/^(?!\s*$)/gm," ")}function DV(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return OV(e.name||"<>",{type:null,validator(n){const r=e(n);return r||wV(`${this._vueTypes_name} - ${t}`),r}})}function NV(e){if(!TV(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.join('", "')}".`,n=e.reduce(((e,t)=>{if(null!=t){const n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e}),[]);return OV("oneOf",{type:n.length>0?n:void 0,validator(n){const r=-1!==e.indexOf(n);return r||wV(t),r}})}function FV(e){if(!TV(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,n=[];for(let i=0;in.indexOf(e)===t));const r=n.length>0?n:null;return OV("oneOfType",t?{type:r,validator(t){const n=[],r=e.some((e=>{const r=RV(AV(e)&&"oneOf"===e._vueTypes_name?e.type||null:e,t,!0);return"string"==typeof r&&n.push(r),!0===r}));return r||wV(`oneOfType - provided value does not match any of the ${n.length} passed-in validators:\n${LV(n.join("\n"))}`),r}}:{type:r})}function UV(e){return OV("arrayOf",{type:Array,validator(t){let n="";const r=t.every((t=>(n=RV(e,t,!0),!0===n)));return r||wV(`arrayOf - value validation error:\n${LV(n)}`),r}})}function BV(e){return OV("instanceOf",{type:e})}function zV(e){return OV("objectOf",{type:Object,validator(t){let n="";const r=Object.keys(t).every((r=>(n=RV(e,t[r],!0),!0===n)));return r||wV(`objectOf - value validation error:\n${LV(n)}`),r}})}function VV(e){const t=Object.keys(e),n=t.filter((t=>{var n;return!(null===(n=e[t])||void 0===n||!n.required)})),r=OV("shape",{type:Object,validator(r){if(!xV(r))return!1;const i=Object.keys(r);if(n.length>0&&n.some((e=>-1===i.indexOf(e)))){const e=n.filter((e=>-1===i.indexOf(e)));return wV(1===e.length?`shape - required property "${e[0]}" is not defined.`:`shape - required properties "${e.join('", "')}" are not defined.`),!1}return i.every((n=>{if(-1===t.indexOf(n))return!0===this._vueTypes_isLoose||(wV(`shape - shape definition does not include a "${n}" property. Allowed keys: "${t.join('", "')}".`),!1);const i=RV(e[n],r[n],!0);return"string"==typeof i&&wV(`shape - "${n}" property validation error:\n ${LV(i)}`),!0===i}))}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),r}const HV=["name","validate","getter"],jV=(()=>{var e;return(e=class{static get any(){return IV("any",{})}static get func(){return IV("function",{type:Function}).def(this.defaults.func)}static get bool(){return IV("boolean",{type:Boolean}).def(this.defaults.bool)}static get string(){return IV("string",{type:String}).def(this.defaults.string)}static get number(){return IV("number",{type:Number}).def(this.defaults.number)}static get array(){return IV("array",{type:Array}).def(this.defaults.array)}static get object(){return IV("object",{type:Object}).def(this.defaults.object)}static get integer(){return OV("integer",{type:Number,validator:e=>EV(e)}).def(this.defaults.integer)}static get symbol(){return OV("symbol",{validator:e=>"symbol"==typeof e})}static get nullable(){return{type:null}}static extend(e){if(TV(e))return e.forEach((e=>this.extend(e))),this;const{name:t,validate:n=!1,getter:r=!1}=e,i=dV(e,HV);if(SV(this,t))throw new TypeError(`[VueTypes error]: Type "${t}" already defined`);const{type:a}=i;if(AV(a))return delete i.type,Object.defineProperty(this,t,r?{get:()=>PV(t,a,i)}:{value(...e){const n=PV(t,a,i);return n.validator&&(n.validator=n.validator.bind(n,...e)),n}});let s;return s=r?{get(){const e=Object.assign({},i);return n?IV(t,e):OV(t,e)},enumerable:!0}:{value(...e){const r=Object.assign({},i);let a;return a=n?IV(t,r):OV(t,r),r.validator&&(a.validator=r.validator.bind(a,...e)),a},enumerable:!0},Object.defineProperty(this,t,s)}}).defaults={},e.sensibleDefaults=void 0,e.config=pV,e.custom=DV,e.oneOf=NV,e.instanceOf=BV,e.oneOfType=FV,e.arrayOf=UV,e.objectOf=zV,e.shape=VV,e.utils={validate:(e,t)=>!0===RV(t,e,!0),toType:(e,t,n=!1)=>n?IV(e,t):OV(e,t)},e})();let WV=class extends(function(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var t;return(t=class extends jV{static get sensibleDefaults(){return fV({},this.defaults)}static set sensibleDefaults(t){this.defaults=!1!==t?fV({},!0!==t?t:e):{}}}).defaults=fV({},e),t}()){};var GV="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function XV(e){var t={exports:{}};return e(t,t.exports),t.exports}var qV=function(e){return e&&e.Math==Math&&e},$V=qV("object"==typeof globalThis&&globalThis)||qV("object"==typeof window&&window)||qV("object"==typeof self&&self)||qV("object"==typeof GV&&GV)||function(){return this}()||Function("return this")(),YV=function(e){try{return!!e()}catch(t){return!0}},ZV=!YV((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),KV={}.propertyIsEnumerable,JV=Object.getOwnPropertyDescriptor,QV={f:JV&&!KV.call({1:2},1)?function(e){var t=JV(this,e);return!!t&&t.enumerable}:KV},eH=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tH={}.toString,nH=function(e){return tH.call(e).slice(8,-1)},rH="".split,iH=YV((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==nH(e)?rH.call(e,""):Object(e)}:Object,aH=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},sH=function(e){return iH(aH(e))},oH=function(e){return"object"==typeof e?null!==e:"function"==typeof e},cH=function(e,t){if(!oH(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!oH(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!oH(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!oH(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},lH={}.hasOwnProperty,uH=function(e,t){return lH.call(e,t)},hH=$V.document,fH=oH(hH)&&oH(hH.createElement),dH=function(e){return fH?hH.createElement(e):{}},pH=!ZV&&!YV((function(){return 7!=Object.defineProperty(dH("div"),"a",{get:function(){return 7}}).a})),mH=Object.getOwnPropertyDescriptor,gH={f:ZV?mH:function(e,t){if(e=sH(e),t=cH(t,!0),pH)try{return mH(e,t)}catch(n){}if(uH(e,t))return eH(!QV.f.call(e,t),e[t])}},vH=function(e){if(!oH(e))throw TypeError(String(e)+" is not an object");return e},yH=Object.defineProperty,_H={f:ZV?yH:function(e,t,n){if(vH(e),t=cH(t,!0),vH(n),pH)try{return yH(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},bH=ZV?function(e,t,n){return _H.f(e,t,eH(1,n))}:function(e,t,n){return e[t]=n,e},xH=function(e,t){try{bH($V,e,t)}catch(n){$V[e]=t}return t},wH=$V["__core-js_shared__"]||xH("__core-js_shared__",{}),SH=Function.toString;"function"!=typeof wH.inspectSource&&(wH.inspectSource=function(e){return SH.call(e)});var EH,TH,MH,AH=wH.inspectSource,CH=$V.WeakMap,kH="function"==typeof CH&&/native code/.test(AH(CH)),RH=XV((function(e){(e.exports=function(e,t){return wH[e]||(wH[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),OH=0,IH=Math.random(),PH=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++OH+IH).toString(36)},LH=RH("keys"),DH=function(e){return LH[e]||(LH[e]=PH(e))},NH={},FH=$V.WeakMap;if(kH){var UH=wH.state||(wH.state=new FH),BH=UH.get,zH=UH.has,VH=UH.set;EH=function(e,t){return t.facade=e,VH.call(UH,e,t),t},TH=function(e){return BH.call(UH,e)||{}},MH=function(e){return zH.call(UH,e)}}else{var HH=DH("state");NH[HH]=!0,EH=function(e,t){return t.facade=e,bH(e,HH,t),t},TH=function(e){return uH(e,HH)?e[HH]:{}},MH=function(e){return uH(e,HH)}}var jH={set:EH,get:TH,has:MH,enforce:function(e){return MH(e)?TH(e):EH(e,{})},getterFor:function(e){return function(t){var n;if(!oH(t)||(n=TH(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},WH=XV((function(e){var t=jH.get,n=jH.enforce,r=String(String).split("String");(e.exports=function(e,t,i,a){var s,o=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||uH(i,"name")||bH(i,"name",t),(s=n(i)).source||(s.source=r.join("string"==typeof t?t:""))),e!==$V?(o?!l&&e[t]&&(c=!0):delete e[t],c?e[t]=i:bH(e,t,i)):c?e[t]=i:xH(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||AH(this)}))})),GH=$V,XH=function(e){return"function"==typeof e?e:void 0},qH=function(e,t){return arguments.length<2?XH(GH[e])||XH($V[e]):GH[e]&&GH[e][t]||$V[e]&&$V[e][t]},$H=Math.ceil,YH=Math.floor,ZH=function(e){return isNaN(e=+e)?0:(e>0?YH:$H)(e)},KH=Math.min,JH=function(e){return e>0?KH(ZH(e),9007199254740991):0},QH=Math.max,ej=Math.min,tj=function(e,t){var n=ZH(e);return n<0?QH(n+t,0):ej(n,t)},nj=function(e){return function(t,n,r){var i,a=sH(t),s=JH(a.length),o=tj(r,s);if(e&&n!=n){for(;s>o;)if((i=a[o++])!=i)return!0}else for(;s>o;o++)if((e||o in a)&&a[o]===n)return e||o||0;return!e&&-1}},rj={includes:nj(!0),indexOf:nj(!1)},ij=rj.indexOf,aj=function(e,t){var n,r=sH(e),i=0,a=[];for(n in r)!uH(NH,n)&&uH(r,n)&&a.push(n);for(;t.length>i;)uH(r,n=t[i++])&&(~ij(a,n)||a.push(n));return a},sj=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oj=sj.concat("length","prototype"),cj={f:Object.getOwnPropertyNames||function(e){return aj(e,oj)}},lj={f:Object.getOwnPropertySymbols},uj=qH("Reflect","ownKeys")||function(e){var t=cj.f(vH(e)),n=lj.f;return n?t.concat(n(e)):t},hj=function(e,t){for(var n=uj(t),r=_H.f,i=gH.f,a=0;a1?arguments[1]:void 0)}}),function(){function e(){Oj(this,e)}Pj(e,null,[{key:"isInBrowser",value:function(){return"undefined"!=typeof window}},{key:"isServer",value:function(){return"undefined"==typeof window}},{key:"getUA",value:function(){return e.isInBrowser()?window.navigator.userAgent.toLowerCase():""}},{key:"isMobile",value:function(){return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion)}},{key:"isOpera",value:function(){return-1!==navigator.userAgent.indexOf("Opera")}},{key:"isIE",value:function(){var t=e.getUA();return""!==t&&t.indexOf("msie")>0}},{key:"isIE9",value:function(){var t=e.getUA();return""!==t&&t.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var t=e.getUA();return""!==t&&t.indexOf("edge/")>0}},{key:"isChrome",value:function(){var t=e.getUA();return""!==t&&/chrome\/\d+/.test(t)&&!e.isEdge()}},{key:"isPhantomJS",value:function(){var t=e.getUA();return""!==t&&/phantomjs/.test(t)}},{key:"isFirefox",value:function(){var t=e.getUA();return""!==t&&/firefox/.test(t)}}])}();var Lj=[].join,Dj=iH!=Object,Nj=xj("join",",");bj({target:"Array",proto:!0,forced:Dj||!Nj},{join:function(e){return Lj.call(sH(this),void 0===e?",":e)}});var Fj,Uj,Bj=function(e){return Object(aH(e))},zj=Array.isArray||function(e){return"Array"==nH(e)},Vj=!!Object.getOwnPropertySymbols&&!YV((function(){return!String(Symbol())})),Hj=Vj&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,jj=RH("wks"),Wj=$V.Symbol,Gj=Hj?Wj:Wj&&Wj.withoutSetter||PH,Xj=function(e){return uH(jj,e)||(Vj&&uH(Wj,e)?jj[e]=Wj[e]:jj[e]=Gj("Symbol."+e)),jj[e]},qj=Xj("species"),$j=function(e,t){var n;return zj(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!zj(n.prototype)?oH(n)&&null===(n=n[qj])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Yj=function(e,t,n){var r=cH(t);r in e?_H.f(e,r,eH(0,n)):e[r]=n},Zj=qH("navigator","userAgent")||"",Kj=$V.process,Jj=Kj&&Kj.versions,Qj=Jj&&Jj.v8;Qj?Uj=(Fj=Qj.split("."))[0]+Fj[1]:Zj&&(!(Fj=Zj.match(/Edge\/(\d+)/))||Fj[1]>=74)&&(Fj=Zj.match(/Chrome\/(\d+)/))&&(Uj=Fj[1]);var eW=Uj&&+Uj,tW=Xj("species"),nW=function(e){return eW>=51||!YV((function(){var t=[];return(t.constructor={})[tW]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},rW=nW("splice"),iW=Tj("splice",{ACCESSORS:!0,0:0,1:2}),aW=Math.max,sW=Math.min;bj({target:"Array",proto:!0,forced:!rW||!iW},{splice:function(e,t){var n,r,i,a,s,o,c=Bj(this),l=JH(c.length),u=tj(e,l),h=arguments.length;if(0===h?n=r=0:1===h?(n=0,r=l-u):(n=h-2,r=sW(aW(ZH(t),0),l-u)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=$j(c,r),a=0;al-r+n;a--)delete c[a-1]}else if(n>r)for(a=l-r;a>u;a--)o=a+n-1,(s=a+r-1)in c?c[o]=c[s]:delete c[o];for(a=0;a0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(c="(?: "+c+")",u=" "+u,l++),n=new RegExp("^(?:"+c+")",o)),SW&&(n=new RegExp("^"+c+"$(?!\\s)",o)),xW&&(t=a.lastIndex),r=yW.call(s?n:a,u),s?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:xW&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),SW&&r&&r.length>1&&_W.call(r[0],n,(function(){for(i=1;i")})),OW="$0"==="a".replace(/./,"$0"),IW=Xj("replace"),PW=!!/./[IW]&&""===/./[IW]("a","$0"),LW=!YV((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),DW=function(e,t,n,r){var i=Xj(e),a=!YV((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),s=a&&!YV((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[kW]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!a||!s||"replace"===e&&(!RW||!OW||PW)||"split"===e&&!LW){var o=/./[i],c=n(i,""[e],(function(e,t,n,r,i){return t.exec===EW?a&&!i?{done:!0,value:o.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:OW,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:PW}),l=c[0],u=c[1];WH(String.prototype,e,l),WH(RegExp.prototype,i,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)})}r&&bH(RegExp.prototype[i],"sham",!0)},NW=Xj("match"),FW=function(e){var t;return oH(e)&&(void 0!==(t=e[NW])?!!t:"RegExp"==nH(e))},UW=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},BW=Xj("species"),zW=function(e){return function(t,n){var r,i,a=String(aH(t)),s=ZH(n),o=a.length;return s<0||s>=o?e?"":void 0:(r=a.charCodeAt(s))<55296||r>56319||s+1===o||(i=a.charCodeAt(s+1))<56320||i>57343?e?a.charAt(s):r:e?a.slice(s,s+2):i-56320+(r-55296<<10)+65536}},VW={codeAt:zW(!1),charAt:zW(!0)},HW=VW.charAt,jW=function(e,t,n){return t+(n?HW(e,t).length:1)},WW=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==nH(e))throw TypeError("RegExp#exec called on incompatible receiver");return EW.call(e,t)},GW=[].push,XW=Math.min,qW=!YV((function(){return!RegExp(4294967295,"y")}));DW("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(aH(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!FW(e))return t.call(r,e,i);for(var a,s,o,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,h=new RegExp(e.source,l+"g");(a=EW.call(h,r))&&!((s=h.lastIndex)>u&&(c.push(r.slice(u,a.index)),a.length>1&&a.index=i));)h.lastIndex===a.index&&h.lastIndex++;return u===r.length?!o&&h.test("")||c.push(""):c.push(r.slice(u)),c.length>i?c.slice(0,i):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=aH(this),a=null==t?void 0:t[e];return void 0!==a?a.call(t,i,n):r.call(String(i),t,n)},function(e,i){var a=n(r,e,this,i,r!==t);if(a.done)return a.value;var s,o,c,l=vH(e),u=String(this),h=(s=RegExp,void 0===(c=vH(l).constructor)||null==(o=vH(c)[BW])?s:UW(o)),f=l.unicode,d=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(qW?"y":"g"),p=new h(qW?l:"^(?:"+l.source+")",d),m=void 0===i?4294967295:i>>>0;if(0===m)return[];if(0===u.length)return null===WW(p,u)?[u]:[];for(var g=0,v=0,y=[];v1?arguments[1]:void 0,t.length)),r=String(e);return hG?hG.call(t,r,n):t.slice(n,n+r.length)===r}});var gG=function(e){return"string"==typeof e},vG=function(e){return null!==e&&"object"===mG(e)},yG=function(){function e(){Oj(this,e)}return Pj(e,null,[{key:"isWindow",value:function(e){return e===window}},{key:"addEventListener",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e&&t&&n&&e.addEventListener(t,n,r)}},{key:"removeEventListener",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e&&t&&n&&e.removeEventListener(t,n,r)}},{key:"triggerDragEvent",value:function(t,n){var r=!1,i=function(e){var t;null===(t=n.drag)||void 0===t||t.call(n,e)},a=function t(a){var s;e.removeEventListener(document,"mousemove",i),e.removeEventListener(document,"mouseup",t),document.onselectstart=null,document.ondragstart=null,r=!1,null===(s=n.end)||void 0===s||s.call(n,a)};e.addEventListener(t,"mousedown",(function(t){var s;r||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",i),e.addEventListener(document,"mouseup",a),r=!0,null===(s=n.start)||void 0===s||s.call(n,t))}))}},{key:"getBoundingClientRect",value:function(e){return e&&vG(e)&&1===e.nodeType?e.getBoundingClientRect():null}},{key:"hasClass",value:function(e,t){return!!(e&&vG(e)&&gG(t)&&1===e.nodeType)&&e.classList.contains(t.trim())}},{key:"addClass",value:function(t,n){if(t&&vG(t)&&gG(n)&&1===t.nodeType&&(n=n.trim(),!e.hasClass(t,n))){var r=t.className;t.className=r?r+" "+n:n}}},{key:"removeClass",value:function(e,t){if(e&&vG(e)&&gG(t)&&1===e.nodeType&&"string"==typeof e.className){t=t.trim();for(var n=e.className.trim().split(" "),r=n.length-1;r>=0;r--)n[r]=n[r].trim(),n[r]&&n[r]!==t||n.splice(r,1);e.className=n.join(" ")}}},{key:"toggleClass",value:function(e,t,n){e&&vG(e)&&gG(t)&&1===e.nodeType&&e.classList.toggle(t,n)}},{key:"replaceClass",value:function(t,n,r){t&&vG(t)&&gG(n)&&gG(r)&&1===t.nodeType&&(n=n.trim(),r=r.trim(),e.removeClass(t,n),e.addClass(t,r))}},{key:"getScrollTop",value:function(e){var t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}},{key:"setScrollTop",value:function(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(t){e.setScrollTop(window,t),e.setScrollTop(document.body,t)}},{key:"getElementTop",value:function(t,n){if(e.isWindow(t))return 0;var r=n?e.getScrollTop(n):e.getRootScrollTop();return t.getBoundingClientRect().top+r}},{key:"getVisibleHeight",value:function(t){return e.isWindow(t)?t.innerHeight:t.getBoundingClientRect().height}},{key:"isHidden",value:function(e){if(!e)return!1;var t=window.getComputedStyle(e),n="none"===t.display,r=null===e.offsetParent&&"fixed"!==t.position;return n||r}},{key:"triggerEvent",value:function(e,t){if("createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent(t,!1,!0),e.dispatchEvent(n)}}},{key:"calcAngle",value:function(e,t){var n=e.getBoundingClientRect(),r=n.left+n.width/2,i=n.top+n.height/2,a=Math.abs(r-t.clientX),s=Math.abs(i-t.clientY),o=s/Math.sqrt(Math.pow(a,2)+Math.pow(s,2)),c=Math.acos(o),l=Math.floor(180/(Math.PI/c));return t.clientX>r&&t.clientY>i&&(l=180-l),t.clientX==r&&t.clientY>i&&(l=180),t.clientX>r&&t.clientY==i&&(l=90),t.clientXi&&(l=180+l),t.clientX1?n-1:0),i=1;i]*>)/g,wG=/\$([$&'`]|\d\d?)/g,SG=function(e,t,n,r,i,a){var s=n+e.length,o=r.length,c=wG;return void 0!==i&&(i=Bj(i),c=xG),bG.call(a,c,(function(a,c){var l;switch(c.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(s);case"<":l=i[c.slice(1,-1)];break;default:var u=+c;if(0===u)return a;if(u>o){var h=_G(u/10);return 0===h?a:h<=o?void 0===r[h-1]?c.charAt(1):r[h-1]+c.charAt(1):a}l=r[u-1]}return void 0===l?"":l}))},EG=Math.max,TG=Math.min;DW("replace",2,(function(e,t,n,r){var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=r.REPLACE_KEEPS_$0,s=i?"$":"$0";return[function(n,r){var i=aH(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!i&&a||"string"==typeof r&&-1===r.indexOf(s)){var o=n(t,e,this,r);if(o.done)return o.value}var c=vH(e),l=String(this),u="function"==typeof r;u||(r=String(r));var h=c.global;if(h){var f=c.unicode;c.lastIndex=0}for(var d=[];;){var p=WW(c,l);if(null===p)break;if(d.push(p),!h)break;""===String(p[0])&&(c.lastIndex=jW(l,JH(c.lastIndex),f))}for(var m,g="",v=0,y=0;y=v&&(g+=l.slice(v,b)+T,v=b+_.length)}return g+l.slice(v)}]})),function(){function e(){Oj(this,e)}Pj(e,null,[{key:"camelize",value:function(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}},{key:"capitalize",value:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}}])}(),function(){function e(){Oj(this,e)}Pj(e,null,[{key:"_clone",value:function(){}}])}();var MG=Xj("isConcatSpreadable"),AG=eW>=51||!YV((function(){var e=[];return e[MG]=!1,e.concat()[0]!==e})),CG=nW("concat"),kG=function(e){if(!oH(e))return!1;var t=e[MG];return void 0!==t?!!t:zj(e)};bj({target:"Array",proto:!0,forced:!AG||!CG},{concat:function(e){var t,n,r,i,a,s=Bj(this),o=$j(s,0),c=0;for(t=-1,r=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");Yj(o,c++,a)}return o.length=c,o}});var RG,OG=function(e,t,n){if(UW(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},IG=[].push,PG=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,a=6==e,s=7==e,o=5==e||a;return function(c,l,u,h){for(var f,d,p=Bj(c),m=iH(p),g=OG(l,u,3),v=JH(m.length),y=0,_=h||$j,b=t?_(c,v):n||s?_(c,0):void 0;v>y;y++)if((o||y in m)&&(d=g(f=m[y],y,p),e))if(t)b[y]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:IG.call(b,f)}else switch(e){case 4:return!1;case 7:IG.call(b,f)}return a?-1:r||i?i:b}},LG={forEach:PG(0),map:PG(1),filter:PG(2),some:PG(3),every:PG(4),find:PG(5),findIndex:PG(6),filterOut:PG(7)},DG=ZV?Object.defineProperties:function(e,t){vH(e);for(var n,r=sG(t),i=r.length,a=0;i>a;)_H.f(e,n=r[a++],t[n]);return e},NG=qH("document","documentElement"),FG=DH("IE_PROTO"),UG=function(){},BG=function(e){return" + + + + diff --git a/test.html.gz b/test.html.gz new file mode 100644 index 0000000..33f4a17 Binary files /dev/null and b/test.html.gz differ diff --git a/vite.svg b/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git "a/\344\272\272\345\217\243\347\231\273\350\256\260\350\241\250.xlsx" "b/\344\272\272\345\217\243\347\231\273\350\256\260\350\241\250.xlsx" new file mode 100644 index 0000000..7e88377 Binary files /dev/null and "b/\344\272\272\345\217\243\347\231\273\350\256\260\350\241\250.xlsx" differ