diff --git a/_app/immutable/assets/_layout-70f76e75.css b/_app/immutable/assets/_layout-70f76e75.css new file mode 100644 index 00000000..31baac71 --- /dev/null +++ b/_app/immutable/assets/_layout-70f76e75.css @@ -0,0 +1 @@ +*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}:root,[data-theme]{background-color:hsla(var(--b1)/var(--tw-bg-opacity,1));color:hsla(var(--bc)/var(--tw-text-opacity,1))}html{-webkit-tap-highlight-color:transparent}:root{--pf:259 94% 41%;--sf:314 100% 38%;--af:174 60% 41%;--nf:219 14% 22%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:259 94% 51%;--pc:0 0% 100%;--s:314 100% 47%;--sc:0 0% 100%;--a:174 60% 51%;--ac:175 44% 15%;--n:219 14% 28%;--nc:0 0% 100%;--b1:0 0% 100%;--b2:0 0% 95%;--b3:180 2% 90%;--bc:215 28% 17%;color-scheme:light}@media (prefers-color-scheme:dark){:root{--pf:262 80% 40%;--sf:316 70% 40%;--af:175 70% 33%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:262 80% 50%;--pc:0 0% 100%;--s:316 70% 50%;--sc:0 0% 100%;--a:175 70% 41%;--ac:0 0% 100%;--n:218 18% 12%;--nf:223 17% 8%;--nc:220 13% 69%;--b1:220 18% 20%;--b2:220 17% 17%;--b3:219 18% 15%;--bc:220 13% 69%;color-scheme:dark}}[data-theme=light]{--pf:259 94% 41%;--sf:314 100% 38%;--af:174 60% 41%;--nf:219 14% 22%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:259 94% 51%;--pc:0 0% 100%;--s:314 100% 47%;--sc:0 0% 100%;--a:174 60% 51%;--ac:175 44% 15%;--n:219 14% 28%;--nc:0 0% 100%;--b1:0 0% 100%;--b2:0 0% 95%;--b3:180 2% 90%;--bc:215 28% 17%;color-scheme:light}[data-theme=dark]{--pf:262 80% 40%;--sf:316 70% 40%;--af:175 70% 33%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:262 80% 50%;--pc:0 0% 100%;--s:316 70% 50%;--sc:0 0% 100%;--a:175 70% 41%;--ac:0 0% 100%;--n:218 18% 12%;--nf:223 17% 8%;--nc:220 13% 69%;--b1:220 18% 20%;--b2:220 17% 17%;--b3:219 18% 15%;--bc:220 13% 69%;color-scheme:dark}[data-theme=cupcake]{--pf:183 47% 47%;--sf:338 71% 62%;--af:39 84% 46%;--nf:280 46% 11%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--pc:183 100% 12%;--sc:338 100% 16%;--ac:39 100% 12%;--nc:280 83% 83%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--p:183 47% 59%;--s:338 71% 78%;--a:39 84% 58%;--n:280 46% 14%;--b1:24 33% 97%;--b2:27 22% 92%;--b3:22 14% 89%;--bc:280 46% 14%;--rounded-btn:1.9rem;--tab-border:2px;--tab-radius:.5rem;color-scheme:light}[data-theme=bumblebee]{--pf:41 74% 42%;--sf:50 94% 46%;--af:240 33% 11%;--nf:240 33% 11%;--b2:0 0% 90%;--b3:0 0% 81%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--bc:0 0% 20%;--ac:240 60% 83%;--nc:240 60% 83%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:41 74% 53%;--pc:240 33% 14%;--s:50 94% 58%;--sc:240 33% 14%;--a:240 33% 14%;--n:240 33% 14%;--b1:0 0% 100%;color-scheme:light}[data-theme=emerald]{--pf:141 50% 48%;--sf:219 96% 48%;--af:10 81% 45%;--nf:219 20% 20%;--b2:0 0% 90%;--b3:0 0% 81%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--btn-text-case:uppercase;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:141 50% 60%;--pc:151 28% 19%;--s:219 96% 60%;--sc:210 20% 98%;--a:10 81% 56%;--ac:210 20% 98%;--n:219 20% 25%;--nc:210 20% 98%;--b1:0 0% 100%;--bc:219 20% 25%;--animation-btn:0;--animation-input:0;--btn-focus-scale:1;color-scheme:light}[data-theme=corporate]{--pf:229 96% 51%;--sf:215 26% 47%;--af:154 49% 48%;--nf:233 27% 10%;--b2:0 0% 90%;--b3:0 0% 81%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--pc:229 100% 93%;--sc:215 100% 12%;--ac:154 100% 12%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--btn-text-case:uppercase;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:229 96% 64%;--s:215 26% 59%;--a:154 49% 60%;--n:233 27% 13%;--nc:210 38% 95%;--b1:0 0% 100%;--bc:233 27% 13%;--rounded-box:.25rem;--rounded-btn:.125rem;--rounded-badge:.125rem;--animation-btn:0;--animation-input:0;--btn-focus-scale:1;color-scheme:light}[data-theme=synthwave]{--pf:321 70% 55%;--sf:197 87% 52%;--af:48 89% 46%;--nf:253 61% 15%;--b2:254 59% 23%;--b3:254 59% 21%;--pc:321 100% 14%;--sc:197 100% 13%;--ac:48 100% 11%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:321 70% 69%;--s:197 87% 65%;--a:48 89% 57%;--n:253 61% 19%;--nc:260 60% 98%;--b1:254 59% 26%;--bc:260 60% 98%;--in:199 87% 64%;--inc:257 63% 17%;--su:168 74% 68%;--suc:257 63% 17%;--wa:48 89% 57%;--wac:257 63% 17%;--er:352 74% 57%;--erc:260 60% 98%;color-scheme:dark}[data-theme=retro]{--pf:3 74% 61%;--sf:145 27% 58%;--af:49 67% 61%;--nf:42 17% 34%;--inc:221 100% 91%;--suc:142 100% 87%;--wac:32 100% 9%;--erc:0 100% 90%;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:3 74% 76%;--pc:345 5% 15%;--s:145 27% 72%;--sc:345 5% 15%;--a:49 67% 76%;--ac:345 5% 15%;--n:42 17% 42%;--nc:45 47% 80%;--b1:45 47% 80%;--b2:45 37% 72%;--b3:42 36% 65%;--bc:345 5% 15%;--in:221 83% 53%;--su:142 76% 36%;--wa:32 95% 44%;--er:0 72% 51%;--rounded-box:.4rem;--rounded-btn:.4rem;--rounded-badge:.4rem;color-scheme:light}[data-theme=cyberpunk]{--pf:345 100% 58%;--sf:195 80% 56%;--af:276 74% 57%;--nf:57 100% 10%;--b2:56 100% 45%;--b3:56 100% 41%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--bc:56 100% 10%;--pc:345 100% 15%;--sc:195 100% 14%;--ac:276 100% 14%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--p:345 100% 73%;--s:195 80% 70%;--a:276 74% 71%;--n:57 100% 13%;--nc:56 100% 50%;--b1:56 100% 50%;--rounded-box:0;--rounded-btn:0;--rounded-badge:0;--tab-radius:0;color-scheme:light;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}[data-theme=valentine]{--pf:353 74% 54%;--sf:254 86% 61%;--af:181 56% 56%;--nf:336 43% 38%;--b2:318 46% 80%;--b3:318 46% 72%;--pc:353 100% 13%;--sc:254 100% 15%;--ac:181 100% 14%;--inc:221 100% 91%;--suc:142 100% 87%;--wac:32 100% 9%;--erc:0 100% 90%;--rounded-box:1rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:353 74% 67%;--s:254 86% 77%;--a:181 56% 70%;--n:336 43% 48%;--nc:318 46% 89%;--b1:318 46% 89%;--bc:344 38% 28%;--in:221 83% 53%;--su:142 76% 36%;--wa:32 95% 44%;--er:0 72% 51%;--rounded-btn:1.9rem;color-scheme:light}[data-theme=halloween]{--pf:32 89% 42%;--sf:271 46% 34%;--af:91 100% 26%;--nf:180 4% 9%;--b2:0 0% 12%;--b3:0 0% 10%;--bc:0 0% 83%;--sc:271 100% 88%;--ac:91 100% 87%;--nc:180 5% 82%;--inc:221 100% 91%;--suc:142 100% 87%;--wac:32 100% 9%;--erc:0 100% 90%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:32 89% 52%;--pc:180 7% 8%;--s:271 46% 42%;--a:91 100% 33%;--n:180 4% 11%;--b1:0 0% 13%;--in:221 83% 53%;--su:142 76% 36%;--wa:32 95% 44%;--er:0 72% 51%;color-scheme:dark}[data-theme=garden]{--pf:139 16% 34%;--sf:97 37% 75%;--af:0 68% 75%;--nf:0 4% 28%;--b2:0 4% 82%;--b3:0 4% 74%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--pc:139 100% 89%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:139 16% 43%;--s:97 37% 93%;--sc:96 32% 15%;--a:0 68% 94%;--ac:0 22% 16%;--n:0 4% 35%;--nc:0 4% 91%;--b1:0 4% 91%;--bc:0 3% 6%;color-scheme:light}[data-theme=forest]{--pf:141 72% 34%;--sf:141 75% 38%;--af:35 69% 42%;--nf:0 10% 5%;--b2:0 12% 7%;--b3:0 12% 7%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--bc:0 12% 82%;--sc:141 100% 10%;--ac:35 100% 10%;--nc:0 7% 81%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:141 72% 42%;--pc:141 100% 88%;--s:141 75% 48%;--a:35 69% 52%;--n:0 10% 6%;--b1:0 12% 8%;--rounded-btn:1.9rem;color-scheme:dark}[data-theme=aqua]{--pf:182 93% 40%;--sf:274 31% 45%;--af:47 100% 64%;--nf:205 54% 40%;--b2:219 53% 39%;--b3:219 53% 35%;--bc:219 100% 89%;--sc:274 100% 11%;--ac:47 100% 16%;--nc:205 100% 90%;--inc:221 100% 91%;--suc:142 100% 87%;--wac:32 100% 9%;--erc:0 100% 90%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:182 93% 49%;--pc:181 100% 17%;--s:274 31% 57%;--a:47 100% 80%;--n:205 54% 50%;--b1:219 53% 43%;--in:221 83% 53%;--su:142 76% 36%;--wa:32 95% 44%;--er:0 72% 51%;color-scheme:dark}[data-theme=lofi]{--pf:0 0% 4%;--sf:0 2% 8%;--af:0 0% 12%;--nf:0 0% 0%;--btn-text-case:uppercase;--border-btn:1px;--tab-border:1px;--p:0 0% 5%;--pc:0 0% 100%;--s:0 2% 10%;--sc:0 0% 100%;--a:0 0% 15%;--ac:0 0% 100%;--n:0 0% 0%;--nc:0 0% 100%;--b1:0 0% 100%;--b2:0 0% 95%;--b3:0 2% 90%;--bc:0 0% 0%;--in:212 100% 48%;--inc:0 0% 100%;--su:137 72% 46%;--suc:0 0% 100%;--wa:5 100% 66%;--wac:0 0% 100%;--er:325 78% 49%;--erc:0 0% 100%;--rounded-box:.25rem;--rounded-btn:.125rem;--rounded-badge:.125rem;--animation-btn:0;--animation-input:0;--btn-focus-scale:1;--tab-radius:0;color-scheme:light}[data-theme=pastel]{--pf:284 22% 64%;--sf:352 70% 70%;--af:158 55% 65%;--nf:199 44% 49%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--bc:0 0% 20%;--pc:284 59% 16%;--sc:352 100% 18%;--ac:158 100% 16%;--nc:199 100% 12%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:284 22% 80%;--s:352 70% 88%;--a:158 55% 81%;--n:199 44% 61%;--b1:0 0% 100%;--b2:210 20% 98%;--b3:216 12% 84%;--rounded-btn:1.9rem;color-scheme:light}[data-theme=fantasy]{--pf:296 83% 20%;--sf:200 100% 30%;--af:31 94% 41%;--nf:215 28% 13%;--b2:0 0% 90%;--b3:0 0% 81%;--in:198 93% 60%;--su:158 64% 52%;--wa:43 96% 56%;--er:0 91% 71%;--pc:296 100% 85%;--sc:200 100% 87%;--ac:31 100% 10%;--nc:215 62% 83%;--inc:198 100% 12%;--suc:158 100% 10%;--wac:43 100% 11%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:296 83% 25%;--s:200 100% 37%;--a:31 94% 51%;--n:215 28% 17%;--b1:0 0% 100%;--bc:215 28% 17%;color-scheme:light}[data-theme=wireframe]{--pf:0 0% 58%;--sf:0 0% 58%;--af:0 0% 58%;--nf:0 0% 74%;--bc:0 0% 20%;--pc:0 0% 14%;--sc:0 0% 14%;--ac:0 0% 14%;--nc:0 0% 18%;--inc:240 100% 90%;--suc:120 100% 85%;--wac:60 100% 10%;--erc:0 100% 90%;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--p:0 0% 72%;--s:0 0% 72%;--a:0 0% 72%;--n:0 0% 92%;--b1:0 0% 100%;--b2:0 0% 93%;--b3:0 0% 87%;--in:240 100% 50%;--su:120 100% 25%;--wa:60 30% 50%;--er:0 100% 50%;--rounded-box:.2rem;--rounded-btn:.2rem;--rounded-badge:.2rem;--tab-radius:.2rem;color-scheme:light;font-family:Chalkboard,comic sans ms,sanssecondaryerif}[data-theme=black]{--pf:0 2% 16%;--sf:0 2% 16%;--af:0 2% 16%;--bc:0 0% 80%;--pc:0 5% 84%;--sc:0 5% 84%;--ac:0 5% 84%;--nc:0 3% 83%;--inc:240 100% 90%;--suc:120 100% 85%;--wac:60 100% 10%;--erc:0 100% 90%;--border-btn:1px;--tab-border:1px;--p:0 2% 20%;--s:0 2% 20%;--a:0 2% 20%;--b1:0 0% 0%;--b2:0 0% 5%;--b3:0 2% 10%;--n:0 1% 15%;--nf:0 2% 20%;--in:240 100% 50%;--su:120 100% 25%;--wa:60 100% 50%;--er:0 100% 50%;--rounded-box:0;--rounded-btn:0;--rounded-badge:0;--animation-btn:0;--animation-input:0;--btn-text-case:lowercase;--btn-focus-scale:1;--tab-radius:0;color-scheme:dark}[data-theme=luxury]{--pf:0 0% 80%;--sf:218 54% 14%;--af:319 22% 21%;--nf:270 4% 7%;--pc:0 0% 20%;--sc:218 100% 84%;--ac:319 85% 85%;--inc:202 100% 14%;--suc:89 100% 10%;--wac:54 100% 13%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:0 0% 100%;--s:218 54% 18%;--a:319 22% 26%;--n:270 4% 9%;--nc:37 67% 58%;--b1:240 10% 4%;--b2:270 4% 9%;--b3:270 2% 18%;--bc:37 67% 58%;--in:202 100% 70%;--su:89 62% 52%;--wa:54 69% 64%;--er:0 100% 72%;color-scheme:dark}[data-theme=dracula]{--pf:326 100% 59%;--sf:265 89% 62%;--af:31 100% 57%;--nf:230 15% 24%;--b2:231 15% 17%;--b3:231 15% 15%;--pc:326 100% 15%;--sc:265 100% 16%;--ac:31 100% 14%;--nc:230 71% 86%;--inc:191 100% 15%;--suc:135 100% 13%;--wac:65 100% 15%;--erc:0 100% 13%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:326 100% 74%;--s:265 89% 78%;--a:31 100% 71%;--n:230 15% 30%;--b1:231 15% 18%;--bc:60 30% 96%;--in:191 97% 77%;--su:135 94% 65%;--wa:65 92% 76%;--er:0 100% 67%;color-scheme:dark}[data-theme=cmyk]{--pf:203 83% 48%;--sf:335 78% 48%;--af:56 100% 48%;--nf:0 0% 8%;--b2:0 0% 90%;--b3:0 0% 81%;--bc:0 0% 20%;--pc:203 100% 12%;--sc:335 100% 92%;--ac:56 100% 12%;--nc:0 0% 82%;--inc:192 100% 10%;--suc:291 100% 88%;--wac:25 100% 11%;--erc:4 100% 91%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:203 83% 60%;--s:335 78% 60%;--a:56 100% 60%;--n:0 0% 10%;--b1:0 0% 100%;--in:192 48% 52%;--su:291 48% 38%;--wa:25 85% 57%;--er:4 81% 56%;color-scheme:light}[data-theme=autumn]{--pf:344 96% 22%;--sf:0 63% 47%;--af:27 56% 50%;--nf:22 17% 35%;--b2:0 0% 85%;--b3:0 0% 77%;--bc:0 0% 19%;--pc:344 100% 86%;--sc:0 100% 92%;--ac:27 100% 13%;--nc:22 100% 89%;--inc:187 100% 10%;--suc:165 100% 89%;--wac:30 100% 10%;--erc:354 100% 90%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:344 96% 28%;--s:0 63% 58%;--a:27 56% 63%;--n:22 17% 44%;--b1:0 0% 95%;--in:187 48% 50%;--su:165 34% 43%;--wa:30 84% 50%;--er:354 79% 49%;color-scheme:light}[data-theme=business]{--pf:210 64% 24%;--sf:200 13% 44%;--af:13 80% 48%;--nf:213 14% 13%;--b2:0 0% 11%;--b3:0 0% 10%;--bc:0 0% 83%;--pc:210 100% 86%;--sc:200 100% 11%;--ac:13 100% 12%;--nc:213 28% 83%;--inc:199 100% 88%;--suc:144 100% 11%;--wac:39 100% 12%;--erc:6 100% 89%;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:210 64% 31%;--s:200 13% 55%;--a:13 80% 60%;--n:213 14% 16%;--b1:0 0% 13%;--in:199 100% 42%;--su:144 31% 56%;--wa:39 64% 60%;--er:6 56% 43%;--rounded-box:.25rem;--rounded-btn:.125rem;--rounded-badge:.125rem;color-scheme:dark}[data-theme=acid]{--pf:303 100% 40%;--sf:27 100% 40%;--af:72 98% 40%;--nf:238 43% 14%;--b2:0 0% 88%;--b3:0 0% 79%;--bc:0 0% 20%;--pc:303 100% 90%;--sc:27 100% 10%;--ac:72 100% 10%;--nc:238 99% 83%;--inc:210 100% 12%;--suc:149 100% 12%;--wac:53 100% 11%;--erc:1 100% 89%;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:303 100% 50%;--s:27 100% 50%;--a:72 98% 50%;--n:238 43% 17%;--b1:0 0% 98%;--in:210 92% 58%;--su:149 50% 58%;--wa:53 93% 57%;--er:1 100% 45%;--rounded-box:1.25rem;--rounded-btn:1rem;--rounded-badge:1rem;color-scheme:light}[data-theme=lemonade]{--pf:89 96% 24%;--sf:60 81% 44%;--af:63 80% 71%;--nf:238 43% 14%;--b2:0 0% 90%;--b3:0 0% 81%;--bc:0 0% 20%;--pc:89 100% 86%;--sc:60 100% 11%;--ac:63 100% 18%;--nc:238 99% 83%;--inc:192 79% 17%;--suc:74 100% 16%;--wac:50 100% 15%;--erc:1 100% 17%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:89 96% 31%;--s:60 81% 55%;--a:63 80% 88%;--n:238 43% 17%;--b1:0 0% 100%;--in:192 39% 85%;--su:74 76% 79%;--wa:50 87% 75%;--er:1 70% 83%;color-scheme:light}[data-theme=night]{--pf:198 93% 48%;--sf:234 89% 59%;--af:329 86% 56%;--b2:222 47% 10%;--b3:222 47% 9%;--bc:222 66% 82%;--pc:198 100% 12%;--sc:234 100% 15%;--ac:329 100% 14%;--nc:217 76% 83%;--inc:198 100% 90%;--suc:172 100% 10%;--wac:41 100% 13%;--erc:351 100% 14%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:198 93% 60%;--s:234 89% 74%;--a:329 86% 70%;--n:217 33% 17%;--nf:217 30% 22%;--b1:222 47% 11%;--in:198 90% 48%;--su:172 66% 50%;--wa:41 88% 64%;--er:351 95% 71%;color-scheme:dark}[data-theme=coffee]{--pf:30 67% 46%;--sf:182 25% 16%;--af:194 74% 20%;--nf:300 20% 5%;--b2:306 19% 10%;--b3:306 19% 9%;--pc:30 100% 12%;--sc:182 67% 84%;--ac:194 100% 85%;--nc:300 14% 81%;--inc:171 100% 13%;--suc:93 100% 12%;--wac:43 100% 14%;--erc:10 100% 15%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:30 67% 58%;--s:182 25% 20%;--a:194 74% 25%;--n:300 20% 6%;--b1:306 19% 11%;--bc:37 8% 42%;--in:171 37% 67%;--su:93 25% 62%;--wa:43 100% 69%;--er:10 95% 75%;color-scheme:dark}[data-theme=winter]{--pf:212 100% 41%;--sf:247 47% 35%;--af:310 49% 42%;--nf:217 92% 8%;--pc:212 100% 90%;--sc:247 100% 89%;--ac:310 100% 90%;--nc:217 100% 82%;--inc:192 100% 16%;--suc:182 100% 13%;--wac:32 100% 17%;--erc:0 100% 14%;--rounded-box:1rem;--rounded-btn:.5rem;--rounded-badge:1.9rem;--animation-btn:.25s;--animation-input:.2s;--btn-text-case:uppercase;--btn-focus-scale:.95;--border-btn:1px;--tab-border:1px;--tab-radius:.5rem;--p:212 100% 51%;--s:247 47% 43%;--a:310 49% 52%;--n:217 92% 10%;--b1:0 0% 100%;--b2:217 100% 97%;--b3:219 44% 92%;--bc:214 30% 32%;--in:192 93% 78%;--su:182 47% 66%;--wa:32 62% 84%;--er:0 63% 72%;color-scheme:light}*,:after,:before{--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-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:rgba(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-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:rgba(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{--tw-bg-opacity:1;align-items:center;background-color:hsl(var(--b2,var(--b1))/var(--tw-bg-opacity));border-radius:var(--rounded-box,1rem);display:flex;flex-direction:column;gap:1rem;justify-content:space-between;padding:1rem;width:100%}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}@media (min-width:768px){.alert{flex-direction:row}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}}.alert>:where(*){align-items:center;display:flex;gap:.5rem}.avatar.placeholder>div{display:flex}.avatar.placeholder>div,.btn{align-items:center;justify-content:center}.btn{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;animation:button-pop var(--animation-btn,.25s) ease-out;background-color:hsl(var(--n)/var(--tw-bg-opacity));border-color:transparent;border-color:hsl(var(--n)/var(--tw-border-opacity));border-radius:var(--rounded-btn,.5rem);border-width:var(--border-btn,1px);color:hsl(var(--nc)/var(--tw-text-opacity));cursor:pointer;display:inline-flex;flex-shrink:0;flex-wrap:wrap;font-size:.875rem;font-weight:600;height:3rem;line-height:1.25rem;line-height:1em;min-height:3rem;padding-left:1rem;padding-right:1rem;text-align:center;text-decoration-line:none;text-transform:uppercase;text-transform:var(--btn-text-case,uppercase);transition-duration:.2s;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);-webkit-user-select:none;-moz-user-select:none;user-select:none}.btn-disabled,.btn.loading,.btn.loading:hover,.btn[disabled]{pointer-events:none}.btn.loading:before{animation:spin 2s linear infinite;border-color:transparent currentColor currentColor transparent;border-radius:9999px;border-width:2px;content:"";height:1rem;margin-right:.5rem;width:1rem}@media (prefers-reduced-motion:reduce){.btn.loading:before{animation:spin 10s linear infinite}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.btn-group>input[type=radio].btn{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-group>input[type=radio].btn:before{content:attr(data-title)}.card{border-radius:var(--rounded-box,1rem);display:flex;flex-direction:column;position:relative}.card:focus{outline:2px solid transparent;outline-offset:2px}.card-body{display:flex;flex:1 1 auto;flex-direction:column;gap:.5rem;padding:var(--padding-card,2rem)}.card-body :where(p){flex-grow:1}.card figure{align-items:center;display:flex;justify-content:center}.card.image-full{display:grid}.card.image-full:before{--tw-bg-opacity:1;background-color:hsl(var(--n)/var(--tw-bg-opacity));border-radius:var(--rounded-box,1rem);content:"";opacity:.75;position:relative;z-index:10}.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{--tw-text-opacity:1;color:hsl(var(--nc)/var(--tw-text-opacity));position:relative;z-index:20}.checkbox{--chkbg:var(--bc);--chkfg:var(--b1);--tw-border-opacity:.2;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:hsl(var(--bc)/var(--tw-border-opacity));border-radius:var(--rounded-btn,.5rem);border-width:1px;cursor:pointer;flex-shrink:0;height:1.5rem;width:1.5rem}.dropdown{display:inline-block;position:relative}.dropdown>:focus{outline:2px solid transparent;outline-offset:2px}.dropdown .dropdown-content{--tw-scale-x:.95;--tw-scale-y:.95;opacity:0;position:absolute;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-origin:top;transition-duration:.2s;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);visibility:hidden;z-index:50}.dropdown-end .dropdown-content{right:0}.dropdown-left .dropdown-content{bottom:auto;right:100%;top:0;transform-origin:right}.dropdown-right .dropdown-content{bottom:auto;left: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-left .dropdown-content,.dropdown-end.dropdown-right .dropdown-content{bottom:0;top:auto}.dropdown.dropdown-hover:hover .dropdown-content,.dropdown.dropdown-open .dropdown-content,.dropdown:not(.dropdown-hover):focus .dropdown-content,.dropdown:not(.dropdown-hover):focus-within .dropdown-content{opacity:1;visibility:visible}.form-control{flex-direction:column}.form-control,.label{display:flex}.label{align-items:center;justify-content:space-between;padding:.5rem .25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.input{--tw-border-opacity:0;--tw-bg-opacity:1;background-color:hsl(var(--b1)/var(--tw-bg-opacity));border-color:hsl(var(--bc)/var(--tw-border-opacity));border-radius:var(--rounded-btn,.5rem);border-width:1px;flex-shrink:1;font-size:1rem;height:3rem;line-height:2;line-height:1.5rem;padding-left:1rem;padding-right:1rem;transition-duration:.2s;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)}.input-group>.input{isolation:isolate}.input-group>*,.input-group>.input,.input-group>.select{border-radius:0}.kbd{--tw-border-opacity:.2;--tw-bg-opacity:1;align-items:center;background-color:hsl(var(--b2,var(--b1))/var(--tw-bg-opacity));border-color:hsl(var(--bc)/var(--tw-border-opacity));border-radius:var(--rounded-btn,.5rem);border-width:1px 1px 2px;display:inline-flex;justify-content:center;min-height:2.2em;min-width:2.2em;padding-left:.5rem;padding-right:.5rem}.link{cursor:pointer;text-decoration-line:underline}.menu{display:flex;flex-direction:column;flex-wrap:wrap}.menu.horizontal{display:inline-flex;flex-direction:row}.menu.horizontal :where(li){flex-direction:row}.menu :where(li){align-items:stretch;display:flex;flex-direction:column;flex-shrink:0;flex-wrap:wrap;position:relative}.menu :where(li:not(.menu-title))>:where(:not(ul)){display:flex}.menu :where(li:not(.disabled):not(.menu-title))>:where(:not(ul)){align-items:center;cursor:pointer;outline:2px solid transparent;outline-offset:2px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.menu>:where(li>:not(ul):focus){outline:2px solid transparent;outline-offset:2px}.menu>:where(li.disabled>:not(ul):focus){cursor:auto}.menu>:where(li) :where(ul){align-items:stretch;display:flex;flex-direction:column}.menu>:where(li)>:where(ul){border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;border-top-left-radius:inherit;border-top-right-radius:inherit;display:none;left:100%;position:absolute;top:auto}.menu>:where(li:hover)>:where(ul){display:flex}.menu>:where(li:focus)>:where(ul){display:flex}.navbar{align-items:center;display:flex;min-height:4rem;padding:var(--navbar-padding,.5rem);width:100%}:where(.navbar>*){align-items:center;display:inline-flex}.radio{--chkbg:var(--bc);--tw-border-opacity:.2;border-radius:9999px;height:1.5rem;transition:background,box-shadow var(--animation-input,.2s) ease-in-out;width:1.5rem}.radio,.select{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:hsl(var(--bc)/var(--tw-border-opacity));border-width:1px;cursor:pointer;flex-shrink:0}.select{--tw-border-opacity:0;--tw-bg-opacity:1;background-color:hsl(var(--b1)/var(--tw-bg-opacity));background-image:linear-gradient(45deg,transparent 50%,currentColor 0),linear-gradient(135deg,currentColor 50%,transparent 0);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16px) calc(1px + 50%);background-repeat:no-repeat;background-size:4px 4px,4px 4px;border-radius:var(--rounded-btn,.5rem);display:inline-flex;font-size:.875rem;font-weight:600;height:3rem;line-height:1.25rem;line-height:2;min-height:3rem;padding-left:1rem;padding-right:2.5rem;transition-duration:.2s;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);-webkit-user-select:none;-moz-user-select:none;user-select:none}.select[multiple]{height:auto}.stats{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--b1)/var(--tw-bg-opacity));border-radius:var(--rounded-box,1rem);color:hsl(var(--bc)/var(--tw-text-opacity));display:inline-grid}:where(.stats){grid-auto-flow:column;overflow-x:auto}.tabs{align-items:flex-end;display:flex}.tab,.tabs{flex-wrap:wrap}.tab{--tab-padding:1rem;--tw-text-opacity:.5;--tab-color:hsla(var(--bc)/var(--tw-text-opacity,1));--tab-bg:hsla(var(--b1)/var(--tw-bg-opacity,1));--tab-border-color:hsla(var(--b3)/var(--tw-bg-opacity,1));align-items:center;color:var(--tab-color);display:inline-flex;font-size:.875rem;height:2rem;justify-content:center;line-height:1.25rem;line-height:2;padding-left:var(--tab-padding,1rem);padding-right:var(--tab-padding,1rem);position:relative;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tab,.toggle{cursor:pointer}.toggle{--tglbg:hsl(var(--b1));--handleoffset:1.5rem;--handleoffsetcalculator:calc(var(--handleoffset)*-1);--togglehandleborder:0 0;--tw-border-opacity:.2;--tw-bg-opacity:.5;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:hsl(var(--bc)/var(--tw-bg-opacity));border-color:hsl(var(--bc)/var(--tw-border-opacity));border-radius:var(--rounded-badge,1.9rem);border-width:1px;box-shadow:var(--handleoffsetcalculator) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset,var(--togglehandleborder);flex-shrink:0;height:1.5rem;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition:background,box-shadow var(--animation-input,.2s) ease-in-out;width:3rem}.btn-outline.btn-primary .badge{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--p)/var(--tw-bg-opacity));border-color:hsl(var(--p)/var(--tw-border-opacity));color:hsl(var(--pc)/var(--tw-text-opacity))}.btn-outline.btn-secondary .badge{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--s)/var(--tw-bg-opacity));border-color:hsl(var(--s)/var(--tw-border-opacity));color:hsl(var(--sc)/var(--tw-text-opacity))}.btn-outline.btn-primary .badge-outline{--tw-border-opacity:1;--tw-text-opacity:1;background-color:transparent;border-color:hsl(var(--p)/var(--tw-border-opacity));color:hsl(var(--p)/var(--tw-text-opacity))}.btn-outline.btn-secondary .badge-outline{--tw-border-opacity:1;--tw-text-opacity:1;background-color:transparent;border-color:hsl(var(--s)/var(--tw-border-opacity));color:hsl(var(--s)/var(--tw-text-opacity))}.btn-outline.btn-success .badge-outline{--tw-border-opacity:1;--tw-text-opacity:1;background-color:transparent;border-color:hsl(var(--su)/var(--tw-border-opacity));color:hsl(var(--su)/var(--tw-text-opacity))}.btn-outline.btn-error .badge-outline{--tw-border-opacity:1;--tw-text-opacity:1;background-color:transparent;border-color:hsl(var(--er)/var(--tw-border-opacity));color:hsl(var(--er)/var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge{background-color:hsl(var(--pc)/var(--tw-bg-opacity));color:hsl(var(--p)/var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge,.btn-outline.btn-primary:hover .badge.outline{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;border-color:hsl(var(--pc)/var(--tw-border-opacity))}.btn-outline.btn-primary:hover .badge.outline{background-color:hsl(var(--pf,var(--p))/var(--tw-bg-opacity));color:hsl(var(--pc)/var(--tw-text-opacity))}.btn-outline.btn-secondary:hover .badge{background-color:hsl(var(--sc)/var(--tw-bg-opacity));color:hsl(var(--s)/var(--tw-text-opacity))}.btn-outline.btn-secondary:hover .badge,.btn-outline.btn-secondary:hover .badge.outline{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;border-color:hsl(var(--sc)/var(--tw-border-opacity))}.btn-outline.btn-secondary:hover .badge.outline{background-color:hsl(var(--sf,var(--s))/var(--tw-bg-opacity));color:hsl(var(--sc)/var(--tw-text-opacity))}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:focus,.btn:active:hover{animation:none;transform:scale(var(--btn-focus-scale,.95))}.btn-active,.btn:hover{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:hsl(var(--nf,var(--n))/var(--tw-bg-opacity));border-color:hsl(var(--nf,var(--n))/var(--tw-border-opacity))}.btn:focus-visible{outline:2px solid hsl(var(--nf));outline-offset:2px}.btn-primary{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--p)/var(--tw-bg-opacity));border-color:hsl(var(--p)/var(--tw-border-opacity));color:hsl(var(--pc)/var(--tw-text-opacity))}.btn-primary.btn-active,.btn-primary:hover{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:hsl(var(--pf,var(--p))/var(--tw-bg-opacity));border-color:hsl(var(--pf,var(--p))/var(--tw-border-opacity))}.btn-primary:focus-visible{outline:2px solid hsl(var(--p))}.btn-secondary{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--s)/var(--tw-bg-opacity));border-color:hsl(var(--s)/var(--tw-border-opacity));color:hsl(var(--sc)/var(--tw-text-opacity))}.btn-secondary.btn-active,.btn-secondary:hover{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:hsl(var(--sf,var(--s))/var(--tw-bg-opacity));border-color:hsl(var(--sf,var(--s))/var(--tw-border-opacity))}.btn-secondary:focus-visible{outline:2px solid hsl(var(--s))}.btn-success{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;color:hsl(var(--suc,var(--nc))/var(--tw-text-opacity))}.btn-success,.btn-success.btn-active,.btn-success:hover{background-color:hsl(var(--su)/var(--tw-bg-opacity));border-color:hsl(var(--su)/var(--tw-border-opacity))}.btn-success.btn-active,.btn-success:hover{--tw-border-opacity:1;--tw-bg-opacity:1}.btn-success:focus-visible{outline:2px solid hsl(var(--su))}.btn-error{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;color:hsl(var(--erc,var(--nc))/var(--tw-text-opacity))}.btn-error,.btn-error.btn-active,.btn-error:hover{background-color:hsl(var(--er)/var(--tw-bg-opacity));border-color:hsl(var(--er)/var(--tw-border-opacity))}.btn-error.btn-active,.btn-error:hover{--tw-border-opacity:1;--tw-bg-opacity:1}.btn-error:focus-visible{outline:2px solid hsl(var(--er))}.btn.glass.btn-active,.btn.glass:hover{--glass-opacity:25%;--glass-border-opacity:15%}.btn.glass:focus-visible{outline:2px solid currentColor}.btn-ghost{background-color:transparent;border-color:transparent;border-width:1px;color:currentColor}.btn-ghost.btn-active,.btn-ghost:hover{--tw-border-opacity:0;--tw-bg-opacity:.2;background-color:hsl(var(--bc)/var(--tw-bg-opacity))}.btn-ghost:focus-visible{outline:2px solid currentColor}.btn-outline.btn-primary{--tw-text-opacity:1;color:hsl(var(--p)/var(--tw-text-opacity))}.btn-outline.btn-primary.btn-active,.btn-outline.btn-primary:hover{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--pf,var(--p))/var(--tw-bg-opacity));border-color:hsl(var(--pf,var(--p))/var(--tw-border-opacity));color:hsl(var(--pc)/var(--tw-text-opacity))}.btn-outline.btn-secondary{--tw-text-opacity:1;color:hsl(var(--s)/var(--tw-text-opacity))}.btn-outline.btn-secondary.btn-active,.btn-outline.btn-secondary:hover{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--sf,var(--s))/var(--tw-bg-opacity));border-color:hsl(var(--sf,var(--s))/var(--tw-border-opacity));color:hsl(var(--sc)/var(--tw-text-opacity))}.btn-outline.btn-success{--tw-text-opacity:1;color:hsl(var(--su)/var(--tw-text-opacity))}.btn-outline.btn-success.btn-active,.btn-outline.btn-success:hover{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--su)/var(--tw-bg-opacity));border-color:hsl(var(--su)/var(--tw-border-opacity));color:hsl(var(--suc,var(--nc))/var(--tw-text-opacity))}.btn-outline.btn-error{--tw-text-opacity:1;color:hsl(var(--er)/var(--tw-text-opacity))}.btn-outline.btn-error.btn-active,.btn-outline.btn-error:hover{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--er)/var(--tw-bg-opacity));border-color:hsl(var(--er)/var(--tw-border-opacity));color:hsl(var(--erc,var(--nc))/var(--tw-text-opacity))}.btn-disabled,.btn-disabled:hover,.btn[disabled],.btn[disabled]:hover{--tw-border-opacity:0;--tw-bg-opacity:.2;--tw-text-opacity:.2;background-color:hsl(var(--n)/var(--tw-bg-opacity));color:hsl(var(--bc)/var(--tw-text-opacity))}.btn.loading.btn-circle:before,.btn.loading.btn-square:before{margin-right:0}.btn.loading.btn-lg:before,.btn.loading.btn-xl:before{height:1.25rem;width:1.25rem}.btn.loading.btn-sm:before,.btn.loading.btn-xs:before{height:.75rem;width:.75rem}.btn-group>.btn-active,.btn-group>input[type=radio]:checked.btn{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--p)/var(--tw-bg-opacity));border-color:hsl(var(--p)/var(--tw-border-opacity));color:hsl(var(--pc)/var(--tw-text-opacity))}.btn-group>.btn-active:focus-visible,.btn-group>input[type=radio]:checked.btn:focus-visible{outline:2px solid hsl(var(--p))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale,.95))}40%{transform:scale(1.02)}to{transform:scale(1)}}.card :where(figure:first-child){border-end-end-radius:unset;border-end-start-radius:unset;border-start-end-radius:inherit;border-start-start-radius:inherit;overflow:hidden}.card :where(figure:last-child){border-end-end-radius:inherit;border-end-start-radius:inherit;border-start-end-radius:unset;border-start-start-radius:unset;overflow:hidden}.card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.card.bordered{--tw-border-opacity:1;border-color:hsl(var(--b2,var(--b1))/var(--tw-border-opacity));border-width:1px}.card.compact .card-body{font-size:.875rem;line-height:1.25rem;padding:1rem}.card.image-full :where(figure){border-radius:inherit;overflow:hidden}.checkbox:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.checkbox:checked,.checkbox[aria-checked=true],.checkbox[checked=true]{--tw-bg-opacity:1;animation:checkmark var(--animation-input,.2s) ease-in-out;background-color:hsl(var(--bc)/var(--tw-bg-opacity));background-image:linear-gradient(-45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%);background-repeat:no-repeat}.checkbox:indeterminate{--tw-bg-opacity:1;animation:checkmark var(--animation-input,.2s) ease-in-out;background-color:hsl(var(--bc)/var(--tw-bg-opacity));background-image:linear-gradient(90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(-90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(0deg,hsl(var(--chkbg)) 43%,hsl(var(--chkfg)) 43%,hsl(var(--chkfg)) 57%,hsl(var(--chkbg)) 57%);background-repeat:no-repeat}.checkbox:disabled{--tw-bg-opacity:1;background-color:hsl(var(--bc)/var(--tw-bg-opacity));border-color:transparent;cursor:not-allowed;opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}[dir=rtl] .checkbox:checked,[dir=rtl] .checkbox[aria-checked=true],[dir=rtl] .checkbox[checked=true]{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(-45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-primary{outline:2px solid hsl(var(--p))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-secondary{outline:2px solid hsl(var(--s))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-success{outline:2px solid hsl(var(--su))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-error{outline:2px solid hsl(var(--er))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-ghost{outline:2px solid currentColor}.dropdown.dropdown-hover:hover .dropdown-content,.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 a:hover{--tw-text-opacity:1;color:hsl(var(--bc)/var(--tw-text-opacity))}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input:focus{outline:2px solid hsla(var(--bc)/.2);outline-offset:2px}.input-disabled,.input[disabled]{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:.2;background-color:hsl(var(--b2,var(--b1))/var(--tw-bg-opacity));border-color:hsl(var(--b2,var(--b1))/var(--tw-border-opacity));cursor:not-allowed}.input-disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{--tw-placeholder-opacity:.2;color:hsl(var(--bc)/var(--tw-placeholder-opacity))}.input-disabled::placeholder,.input[disabled]::placeholder{--tw-placeholder-opacity:.2;color:hsl(var(--bc)/var(--tw-placeholder-opacity))}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.menu.horizontal li.bordered>a,.menu.horizontal li.bordered>button,.menu.horizontal li.bordered>span{--tw-border-opacity:1;border-bottom-width:4px;border-color:hsl(var(--p)/var(--tw-border-opacity));border-left-width:0}.menu[class*=" p-"]:not(.menu[class*=" p-0"]) li>*,.menu[class*=" px-"]:not(.menu[class*=" px-0"]) li>*,.menu[class^=p-]:not(.menu[class^=p-0]) li>*,.menu[class^=px-]:not(.menu[class^=px-0]) li>*{border-radius:var(--rounded-btn,.5rem)}.menu :where(li.bordered>*){--tw-border-opacity:1;border-color:hsl(var(--p)/var(--tw-border-opacity));border-left-width:4px}.menu :where(li)>:where(:not(ul)){color:currentColor;gap:.75rem;padding:.75rem 1rem}.menu :where(li:not(.menu-title):not(:empty))>:where(:not(ul):focus),.menu :where(li:not(.menu-title):not(:empty))>:where(:not(ul):hover){--tw-bg-opacity:.1;background-color:hsl(var(--bc)/var(--tw-bg-opacity))}.menu :where(li:not(.menu-title):not(:empty))>:where(:not(ul).active),.menu :where(li:not(.menu-title):not(:empty))>:where(:not(ul):active){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--p)/var(--tw-bg-opacity));color:hsl(var(--pc)/var(--tw-text-opacity))}.menu :where(li:empty){--tw-bg-opacity:.1;background-color:hsl(var(--bc)/var(--tw-bg-opacity));height:1px;margin:.5rem 1rem}.menu li.disabled>*{--tw-text-opacity:.2;color:hsl(var(--bc)/var(--tw-text-opacity));-webkit-user-select:none;-moz-user-select:none;user-select:none}.menu li.disabled>:hover{background-color:transparent}.menu li.hover-bordered a{border-color:transparent;border-left-width:4px}.menu li.hover-bordered a:hover{--tw-border-opacity:1;border-color:hsl(var(--p)/var(--tw-border-opacity))}.menu.compact li>a,.menu.compact li>span{font-size:.875rem;line-height:1.25rem;padding-bottom:.5rem;padding-top:.5rem}.menu .menu-title>*{--tw-text-opacity:.4;color:hsl(var(--bc)/var(--tw-text-opacity));font-size:.75rem;font-weight:700;line-height:1rem;padding-bottom:.25rem;padding-top:.25rem}.menu :where(li:not(.disabled))>:where(:not(ul)){outline:2px solid transparent;outline-offset:2px;transition-duration:.2s;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)}.menu>:where(li:first-child){border-bottom-left-radius:unset;border-bottom-right-radius:unset;border-top-left-radius:inherit;border-top-right-radius:inherit}.menu>:where(li:first-child)>:where(:not(ul)){border-bottom-left-radius:unset;border-bottom-right-radius:unset;border-top-left-radius:inherit;border-top-right-radius:inherit}.menu>:where(li:last-child){border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;border-top-left-radius:unset;border-top-right-radius:unset}.menu>:where(li:last-child)>:where(:not(ul)){border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;border-top-left-radius:unset;border-top-right-radius:unset}.menu>:where(li)>:where(ul) :where(li){white-space:nowrap;width:100%}.menu>:where(li)>:where(ul) :where(li) :where(ul){padding-left:1rem}.menu>:where(li)>:where(ul) :where(li)>:where(:not(ul)){white-space:nowrap;width:100%}.menu>:where(li)>:where(ul)>:where(li:first-child){border-bottom-left-radius:unset;border-bottom-right-radius:unset;border-top-left-radius:inherit;border-top-right-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:first-child)>:where(:not(ul)){border-bottom-left-radius:unset;border-bottom-right-radius:unset;border-top-left-radius:inherit;border-top-right-radius:inherit}.menu>:where(li)>:where(ul)>:where(li:last-child){border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;border-top-left-radius:unset;border-top-right-radius:unset}.menu>:where(li)>:where(ul)>:where(li:last-child)>:where(:not(ul)){border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;border-top-left-radius:unset;border-top-right-radius:unset}.mockup-phone .display{border-radius:40px;margin-top:-25px;overflow:hidden}@keyframes progress-loading{50%{left:107%}}.radio:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.radio:checked,.radio[aria-checked=true]{--tw-bg-opacity:1;animation:radiomark var(--animation-input,.2s) ease-in-out;background-color:hsl(var(--bc)/var(--tw-bg-opacity));box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}.radio:disabled{cursor:not-allowed;opacity:.2}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select:focus{outline:2px solid hsla(var(--bc)/.2);outline-offset:2px}.select-disabled,.select[disabled]{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:.2;background-color:hsl(var(--b2,var(--b1))/var(--tw-bg-opacity));border-color:hsl(var(--b2,var(--b1))/var(--tw-border-opacity));cursor:not-allowed}.select-disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{--tw-placeholder-opacity:.2;color:hsl(var(--bc)/var(--tw-placeholder-opacity))}.select-disabled::placeholder,.select[disabled]::placeholder{--tw-placeholder-opacity:.2;color:hsl(var(--bc)/var(--tw-placeholder-opacity))}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}:where(.stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;--tw-divide-y-reverse:0;border-width:calc(0px*(1 - var(--tw-divide-y-reverse))) calc(1px*var(--tw-divide-x-reverse)) calc(0px*var(--tw-divide-y-reverse)) calc(1px*(1 - var(--tw-divide-x-reverse)))}.tab:hover{--tw-text-opacity:1}.tab.tab-active{--tw-border-opacity:1;--tw-text-opacity:1;border-color:hsl(var(--bc)/var(--tw-border-opacity))}.tab:focus{outline:2px solid transparent;outline-offset:2px}.tab:focus-visible{outline:2px solid currentColor;outline-offset:-3px}.tab:focus-visible.tab-lifted{border-bottom-left-radius:var(--tab-radius,.5rem);border-bottom-right-radius:var(--tab-radius,.5rem)}.tab-lifted{border:var(--tab-border,1px) solid transparent;border-bottom-color:var(--tab-border-color);border-top-left-radius:var(--tab-radius,.5rem);border-top-right-radius:var(--tab-radius,.5rem);border-width:0 0 var(--tab-border,1px) 0;padding-left:var(--tab-padding,1rem);padding-right:var(--tab-padding,1rem);padding-top:var(--tab-border,1px)}.tab-lifted.tab-active{background-color:var(--tab-bg);border-left-color:var(--tab-border-color);border-right-color:var(--tab-border-color);border-top-color:var(--tab-border-color);border-width:var(--tab-border,1px) var(--tab-border,1px) 0 var(--tab-border,1px);padding-bottom:var(--tab-border,1px);padding-left:calc(var(--tab-padding, 1rem) - var(--tab-border, 1px));padding-right:calc(var(--tab-padding, 1rem) - var(--tab-border, 1px));padding-top:0}.tab-lifted.tab-active:after,.tab-lifted.tab-active:before{--tab-grad:calc(68% - var(--tab-border, 1px));--tab-corner-bg:radial-gradient(circle at var(--circle-pos),transparent var(--tab-grad),var(--tab-border-color) calc(var(--tab-grad) + .3px),var(--tab-border-color) calc(var(--tab-grad) + var(--tab-border, 1px)),var(--tab-bg) calc(var(--tab-grad) + var(--tab-border, 1px) + .3px));bottom:0;content:"";display:block;height:var(--tab-radius,.5rem);position:absolute;width:var(--tab-radius,.5rem);z-index:1}.tab-lifted.tab-active:before{--circle-pos:top left;background-image:var(--tab-corner-bg);left:calc(var(--tab-radius, .5rem)*-1)}[dir=rtl] .tab-lifted.tab-active:before{--circle-pos:top right}.tab-lifted.tab-active:after{--circle-pos:top right;background-image:var(--tab-corner-bg);right:calc(var(--tab-radius, .5rem)*-1)}[dir=rtl] .tab-lifted.tab-active:after{--circle-pos:top left}.tab-lifted.tab-active+.tab-lifted.tab-active:before,.tab-lifted.tab-active:first-child:before,.tab-lifted.tab-active:last-child:after{background:none}.tabs-boxed .tab-active{--tw-bg-opacity:1;background-color:hsl(var(--p)/var(--tw-bg-opacity));border-radius:var(--rounded-btn,.5rem)}.tabs-boxed .tab-active,.tabs-boxed .tab-active:hover{--tw-text-opacity:1;color:hsl(var(--pc)/var(--tw-text-opacity))}@keyframes toast-pop{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}[dir=rtl] .toggle{--handleoffsetcalculator:calc(var(--handleoffset)*1)}.toggle:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.toggle:checked,.toggle[aria-checked=true],.toggle[checked=true]{--handleoffsetcalculator:var(--handleoffset);--tw-border-opacity:1;--tw-bg-opacity:1}[dir=rtl] .toggle:checked,[dir=rtl] .toggle[aria-checked=true],[dir=rtl] .toggle[checked=true]{--handleoffsetcalculator:calc(var(--handleoffset)*-1)}.toggle:indeterminate{--tw-border-opacity:1;--tw-bg-opacity:1;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:2px solid hsl(var(--p))}.toggle-primary:checked,.toggle-primary[aria-checked=true],.toggle-primary[checked=true]{--tw-border-opacity:.1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--p)/var(--tw-bg-opacity));border-color:hsl(var(--p)/var(--tw-border-opacity));color:hsl(var(--pc)/var(--tw-text-opacity))}.toggle:disabled{--tw-border-opacity:1;--togglehandleborder:0 0 0 3px hsl(var(--bc)) inset,var(--handleoffsetcalculator) 0 0 3px hsl(var(--bc)) inset;background-color:transparent;border-color:hsl(var(--bc)/var(--tw-border-opacity));cursor:not-allowed;opacity:.3}.btn-xs{font-size:.75rem;height:1.5rem;min-height:1.5rem;padding-left:.5rem;padding-right:.5rem}.btn-sm{font-size:.875rem;height:2rem;min-height:2rem;padding-left:.75rem;padding-right:.75rem}.btn-md{font-size:.875rem;height:3rem;min-height:3rem;padding-left:1rem;padding-right:1rem}.btn-square:where(.btn-xs){height:1.5rem;padding:0;width:1.5rem}.btn-square:where(.btn-sm){height:2rem;padding:0;width:2rem}.btn-square:where(.btn-md){height:3rem;padding:0;width:3rem}.btn-circle:where(.btn-xs){border-radius:9999px;height:1.5rem;padding:0;width:1.5rem}.btn-circle:where(.btn-sm){border-radius:9999px;height:2rem;padding:0;width:2rem}.btn-circle:where(.btn-md){border-radius:9999px;height:3rem;padding:0;width:3rem}.btn-group .btn:not(:first-child):not(:last-child),.btn-group.btn-group-horizontal .btn:not(:first-child):not(:last-child){border-radius:0}.btn-group .btn:first-child:not(:last-child),.btn-group.btn-group-horizontal .btn:first-child:not(:last-child){border-bottom-left-radius:var(--rounded-btn,.5rem);border-bottom-right-radius:0;border-top-left-radius:var(--rounded-btn,.5rem);border-top-right-radius:0;margin-left:-1px;margin-top:0}.btn-group .btn:last-child:not(:first-child),.btn-group.btn-group-horizontal .btn:last-child:not(:first-child){border-bottom-left-radius:0;border-bottom-right-radius:var(--rounded-btn,.5rem);border-top-left-radius:0;border-top-right-radius:var(--rounded-btn,.5rem)}.btn-group.btn-group-vertical .btn:first-child:not(:last-child){border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--rounded-btn,.5rem);border-top-right-radius:var(--rounded-btn,.5rem);margin-left:0;margin-top:-1px}.btn-group.btn-group-vertical .btn:last-child:not(:first-child){border-bottom-left-radius:var(--rounded-btn,.5rem);border-bottom-right-radius:var(--rounded-btn,.5rem);border-top-left-radius:0;border-top-right-radius:0}.card-compact .card-body{font-size:.875rem;line-height:1.25rem;padding:1rem}.card-normal .card-body{font-size:1rem;line-height:1.5rem;padding:var(--padding-card,2rem)}.menu-vertical :where(li.bordered>*){border-bottom-width:0;border-left-width:4px}.menu-horizontal :where(li.bordered>*){border-bottom-width:4px;border-left-width:0}.fixed{position:fixed}.absolute{position:absolute}.left-0{left:0}.top-0{top:0}.top-px{top:1px}.z-50{z-index:50}.z-10{z-index:10}.m-2{margin:.5rem}.my-auto{margin-bottom:auto;margin-top:auto}.mx-auto{margin-left:auto;margin-right:auto}.mx-2{margin-left:.5rem}.mr-2,.mx-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.ml-1{margin-left:.25rem}.mt-14{margin-top:3.5rem}.mr-1{margin-right:.25rem}.-mt-2{margin-top:-.5rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.hidden{display:none}.h-screen{height:100vh}.h-6{height:1.5rem}.h-4{height:1rem}.h-96{height:24rem}.h-full{height:100%}.h-56{height:14rem}.w-screen{width:100vw}.w-full{width:100%}.w-28{width:7rem}.w-6{width:1.5rem}.w-4{width:1rem}.w-56{width:14rem}.w-12{width:3rem}.flex-auto{flex:1 1 auto}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-grow{flex-grow:1}.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-pointer{cursor:pointer}.cursor-default{cursor:default}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.border{border-width:1px}.bg-gray-600{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity:1;background-color:hsl(var(--p)/var(--tw-bg-opacity))}.bg-base-200{--tw-bg-opacity:1;background-color:hsl(var(--b2,var(--b1))/var(--tw-bg-opacity))}.bg-base-100{--tw-bg-opacity:1;background-color:hsl(var(--b1)/var(--tw-bg-opacity))}.bg-opacity-80{--tw-bg-opacity:.8}.fill-current{fill:currentColor}.stroke-current{stroke:currentColor}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0{padding-bottom:0;padding-top:0}.pt-4{padding-top:1rem}.pb-0{padding-bottom:0}.text-center{text-align:center}.align-middle{vertical-align:middle}.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-sm{font-size:.875rem;line-height:1.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-base{font-size:1rem;line-height:1.5rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.font-semibold{font-weight:600}.normal-case{text-transform:none}.text-primary-content{--tw-text-opacity:1;color:hsl(var(--pc)/var(--tw-text-opacity))}.text-indigo-100{--tw-text-opacity:1;color:rgb(224 231 255/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-base-content{--tw-text-opacity:1;color:hsl(var(--bc)/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-2xl,.shadow-lg{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 rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(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)}.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)}.transition{transition-duration:.15s;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)}.input{--tw-border-opacity:1;border-color:hsl(var(--p)/var(--tw-border-opacity));border-radius:.25rem;border-style:solid;border-width:2px;flex:1 1 0%}.action-btn{align-items:center;animation:button-pop var(--animation-btn,.25s) ease-out;background-color:hsl(var(--n)/var(--tw-bg-opacity));border-color:transparent;border-color:hsl(var(--n)/var(--tw-border-opacity));border-radius:var(--rounded-btn,.5rem);border-width:var(--border-btn,1px);color:hsl(var(--nc)/var(--tw-text-opacity));cursor:pointer;display:inline-flex;flex-shrink:0;flex-wrap:wrap;font-size:.875rem;font-weight:600;height:3rem;justify-content:center;line-height:1.25rem;line-height:1em;min-height:3rem;padding-left:1rem;padding-right:1rem;text-align:center;text-decoration-line:none;text-transform:uppercase;text-transform:var(--btn-text-case,uppercase);transition-duration:.2s;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);-webkit-user-select:none;-moz-user-select:none;user-select:none}.action-btn.loading,.action-btn.loading:hover,.action-btn[disabled]{pointer-events:none}.action-btn.loading:before{animation:spin 2s linear infinite;border-color:transparent currentColor currentColor transparent;border-radius:9999px;border-width:2px;content:"";height:1rem;margin-right:.5rem;width:1rem}@media (prefers-reduced-motion:reduce){.action-btn.loading:before{animation:spin 10s linear infinite}}.btn-group>input[type=radio].action-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-group>input[type=radio].action-btn:before{content:attr(data-title)}.btn-outline.action-btn .badge{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--p)/var(--tw-bg-opacity));border-color:hsl(var(--p)/var(--tw-border-opacity));color:hsl(var(--pc)/var(--tw-text-opacity))}.btn-outline.action-btn .badge-outline{--tw-border-opacity:1;--tw-text-opacity:1;background-color:transparent;border-color:hsl(var(--p)/var(--tw-border-opacity));color:hsl(var(--p)/var(--tw-text-opacity))}.btn-outline.action-btn:hover .badge{background-color:hsl(var(--pc)/var(--tw-bg-opacity));color:hsl(var(--p)/var(--tw-text-opacity))}.btn-outline.action-btn:hover .badge,.btn-outline.action-btn:hover .badge.outline{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;border-color:hsl(var(--pc)/var(--tw-border-opacity))}.btn-outline.action-btn:hover .badge.outline{background-color:hsl(var(--pf,var(--p))/var(--tw-bg-opacity));color:hsl(var(--pc)/var(--tw-text-opacity))}.action-btn:active:focus,.action-btn:active:hover{animation:none;transform:scale(var(--btn-focus-scale,.95))}.action-btn:hover{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:hsl(var(--nf,var(--n))/var(--tw-bg-opacity));border-color:hsl(var(--nf,var(--n))/var(--tw-border-opacity))}.action-btn:focus-visible{outline:2px solid hsl(var(--nf));outline-offset:2px}.action-btn{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--p)/var(--tw-bg-opacity));border-color:hsl(var(--p)/var(--tw-border-opacity));color:hsl(var(--pc)/var(--tw-text-opacity))}.action-btn.btn-active,.action-btn:hover{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:hsl(var(--pf,var(--p))/var(--tw-bg-opacity));border-color:hsl(var(--pf,var(--p))/var(--tw-border-opacity))}.action-btn:focus-visible{outline:2px solid hsl(var(--p))}.action-btn.glass.btn-active,.action-btn.glass:hover{--glass-opacity:25%;--glass-border-opacity:15%}.action-btn.glass:focus-visible{outline:2px solid currentColor}.btn-outline.action-btn{--tw-text-opacity:1;color:hsl(var(--p)/var(--tw-text-opacity))}.btn-outline.action-btn.btn-active,.btn-outline.action-btn:hover{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--pf,var(--p))/var(--tw-bg-opacity));border-color:hsl(var(--pf,var(--p))/var(--tw-border-opacity));color:hsl(var(--pc)/var(--tw-text-opacity))}.action-btn[disabled],.action-btn[disabled]:hover{--tw-border-opacity:0;--tw-bg-opacity:.2;--tw-text-opacity:.2;background-color:hsl(var(--n)/var(--tw-bg-opacity));color:hsl(var(--bc)/var(--tw-text-opacity))}.action-btn.loading.btn-circle:before,.action-btn.loading.btn-square:before{margin-right:0}.action-btn.loading.btn-lg:before,.action-btn.loading.btn-xl:before{height:1.25rem;width:1.25rem}.action-btn.loading.btn-sm:before,.action-btn.loading.btn-xs:before{height:.75rem;width:.75rem}.btn-group>input[type=radio]:checked.action-btn{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:hsl(var(--p)/var(--tw-bg-opacity));border-color:hsl(var(--p)/var(--tw-border-opacity));color:hsl(var(--pc)/var(--tw-text-opacity))}.btn-group>input[type=radio]:checked.action-btn:focus-visible{outline:2px solid hsl(var(--p))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.action-btn{outline:2px solid hsl(var(--p))}.btn-group .action-btn:not(:first-child):not(:last-child),.btn-group.btn-group-horizontal .action-btn:not(:first-child):not(:last-child){border-radius:0}.btn-group .action-btn:first-child:not(:last-child),.btn-group.btn-group-horizontal .action-btn:first-child:not(:last-child){border-bottom-left-radius:var(--rounded-btn,.5rem);border-bottom-right-radius:0;border-top-left-radius:var(--rounded-btn,.5rem);border-top-right-radius:0;margin-left:-1px;margin-top:0}.btn-group .action-btn:last-child:not(:first-child),.btn-group.btn-group-horizontal .action-btn:last-child:not(:first-child){border-bottom-left-radius:0;border-bottom-right-radius:var(--rounded-btn,.5rem);border-top-left-radius:0;border-top-right-radius:var(--rounded-btn,.5rem)}.btn-group.btn-group-vertical .action-btn:first-child:not(:last-child){border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--rounded-btn,.5rem);border-top-right-radius:var(--rounded-btn,.5rem);margin-left:0;margin-top:-1px}.btn-group.btn-group-vertical .action-btn:last-child:not(:first-child){border-bottom-left-radius:var(--rounded-btn,.5rem);border-bottom-right-radius:var(--rounded-btn,.5rem);border-top-left-radius:0;border-top-right-radius:0}.hover\:underline:hover{text-decoration-line:underline}@media (min-width:768px){.md\:mr-2{margin-right:.5rem}.md\:block{display:block}.md\:inline{display:inline}.md\:flex{display:flex}.md\:hidden{display:none}}@media (min-width:1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:w-auto{width:auto}.lg\:items-center{align-items:center}.lg\:pt-0{padding-top:0}}.loader.svelte-6pksaq{animation:svelte-6pksaq-spin 2s linear infinite;border:.45em solid #f3f3f3;border-radius:50%;border-top-color:#6365f1;height:3em;width:3em}@keyframes svelte-6pksaq-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}} diff --git a/_app/immutable/chunks/0-d3a67b4f.js b/_app/immutable/chunks/0-d3a67b4f.js new file mode 100644 index 00000000..3e990e0f --- /dev/null +++ b/_app/immutable/chunks/0-d3a67b4f.js @@ -0,0 +1 @@ +import{_ as r}from"./_layout-1224cfc9.js";import{default as t}from"../components/pages/_layout.svelte-b487a034.js";export{t as component,r as universal}; diff --git a/_app/immutable/chunks/1-986cb1fa.js b/_app/immutable/chunks/1-986cb1fa.js new file mode 100644 index 00000000..0e2f922e --- /dev/null +++ b/_app/immutable/chunks/1-986cb1fa.js @@ -0,0 +1 @@ +import{default as t}from"../components/error.svelte-7021878c.js";export{t as component}; diff --git a/_app/immutable/chunks/2-e0049608.js b/_app/immutable/chunks/2-e0049608.js new file mode 100644 index 00000000..3005b1bb --- /dev/null +++ b/_app/immutable/chunks/2-e0049608.js @@ -0,0 +1 @@ +import{default as t}from"../components/pages/_page.svelte-3b708156.js";export{t as component}; diff --git a/_app/immutable/chunks/3-dd498018.js b/_app/immutable/chunks/3-dd498018.js new file mode 100644 index 00000000..939249ac --- /dev/null +++ b/_app/immutable/chunks/3-dd498018.js @@ -0,0 +1 @@ +import{default as t}from"../components/pages/edit/_page.svelte-0c6617a3.js";export{t as component}; diff --git a/_app/immutable/chunks/4-2a9e44cb.js b/_app/immutable/chunks/4-2a9e44cb.js new file mode 100644 index 00000000..14cab249 --- /dev/null +++ b/_app/immutable/chunks/4-2a9e44cb.js @@ -0,0 +1 @@ +import{default as t}from"../components/pages/view/_page.svelte-969fb3b7.js";export{t as component}; diff --git a/_app/immutable/chunks/View-3eeba331.js b/_app/immutable/chunks/View-3eeba331.js new file mode 100644 index 00000000..54186fb9 --- /dev/null +++ b/_app/immutable/chunks/View-3eeba331.js @@ -0,0 +1,3 @@ +import{S as st,i as rt,s as at,a as lt,k as I,c as ut,l as T,m as k,h as b,n as C,P as B,b as E,H as q,K as W,G as H,o as ht,a2 as ct,L as X,q as N,r as D,a3 as pt,e as j,a4 as ft}from"./index-2c2c5609.js";import{s as F,j as Y,z as mt,y as K,x as dt,b as vt}from"./state-89af7797.js";import{c as J}from"./_commonjsHelpers-35101cd5.js";var gt=function(){var t="",e,o,i,s=[],n={passive:!0};window.addEventListener?(e="addEventListener",o="removeEventListener"):(e="attachEvent",o="detachEvent",t="on"),i="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";function r(m,u){var g=function(v){!v&&(v=window.event);var y={originalEvent:v,target:v.target||v.srcElement,type:"wheel",deltaMode:v.type=="MozMousePixelScroll"?0:1,deltaX:0,delatZ:0,preventDefault:function(){v.preventDefault?v.preventDefault():v.returnValue=!1}};return i=="mousewheel"?(y.deltaY=-.025*v.wheelDelta,v.wheelDeltaX&&(y.deltaX=-.025*v.wheelDeltaX)):y.deltaY=v.detail,u(y)};return s.push({element:m,fn:g}),g}function a(m){for(var u=0;ue?(clearTimeout(a),a=null,p=l,r=t.apply(s,n),a||(s=n=null)):!a&&o.trailing!==!1&&(a=setTimeout(w,f)),r}},createRequestAnimationFrame:function(t){var e=null;return t!=="auto"&&t<60&&t>1&&(e=Math.floor(1e3/t)),e===null?window.requestAnimationFrame||Q(33):Q(e)}};function Q(t){return function(e){window.setTimeout(e,t)}}var O=U,tt="unknown";document.documentMode&&(tt="ie");var G={svgNS:"http://www.w3.org/2000/svg",xmlNS:"http://www.w3.org/XML/1998/namespace",xmlnsNS:"http://www.w3.org/2000/xmlns/",xlinkNS:"http://www.w3.org/1999/xlink",evNS:"http://www.w3.org/2001/xml-events",getBoundingClientRectNormalized:function(t){if(t.clientWidth&&t.clientHeight)return{width:t.clientWidth,height:t.clientHeight};if(t.getBoundingClientRect())return t.getBoundingClientRect();throw new Error("Cannot get BoundingClientRect for SVG.")},getOrCreateViewport:function(t,e){var o=null;if(O.isElement(e)?o=e:o=t.querySelector(e),!o){var i=Array.prototype.slice.call(t.childNodes||t.children).filter(function(p){return p.nodeName!=="defs"&&p.nodeName!=="#text"});i.length===1&&i[0].nodeName==="g"&&i[0].getAttribute("transform")===null&&(o=i[0])}if(!o){var s="viewport-"+new Date().toISOString().replace(/\D/g,"");o=document.createElementNS(this.svgNS,"g"),o.setAttribute("id",s);var n=t.childNodes||t.children;if(n&&n.length>0)for(var r=n.length;r>0;r--)n[n.length-r].nodeName!=="defs"&&o.appendChild(n[n.length-r]);t.appendChild(o)}var a=[];return o.getAttribute("class")&&(a=o.getAttribute("class").split(" ")),~a.indexOf("svg-pan-zoom_viewport")||(a.push("svg-pan-zoom_viewport"),o.setAttribute("class",a.join(" "))),o},setupSvgAttributes:function(t){if(t.setAttribute("xmlns",this.svgNS),t.setAttributeNS(this.xmlnsNS,"xmlns:xlink",this.xlinkNS),t.setAttributeNS(this.xmlnsNS,"xmlns:ev",this.evNS),t.parentNode!==null){var e=t.getAttribute("style")||"";e.toLowerCase().indexOf("overflow")===-1&&t.setAttribute("style","overflow: hidden; "+e)}},internetExplorerRedisplayInterval:300,refreshDefsGlobal:O.throttle(function(){for(var t=document.querySelectorAll("defs"),e=t.length,o=0;o=0;i--)this.eventListeners.hasOwnProperty(o[i])&&delete this.eventListeners[o[i]]}for(var s in this.eventListeners)(this.options.eventsListenerElement||this.svg).addEventListener(s,this.eventListeners[s],this.options.preventMouseEventsDefault?!1:ot);this.options.mouseWheelZoomEnabled&&(this.options.mouseWheelZoomEnabled=!1,this.enableMouseWheelZoom())};c.prototype.enableMouseWheelZoom=function(){if(!this.options.mouseWheelZoomEnabled){var t=this;this.wheelListener=function(o){return t.handleMouseWheel(o)};var e=!this.options.preventMouseEventsDefault;et.on(this.options.eventsListenerElement||this.svg,this.wheelListener,e),this.options.mouseWheelZoomEnabled=!0}};c.prototype.disableMouseWheelZoom=function(){if(this.options.mouseWheelZoomEnabled){var t=!this.options.preventMouseEventsDefault;et.off(this.options.eventsListenerElement||this.svg,this.wheelListener,t),this.options.mouseWheelZoomEnabled=!1}};c.prototype.handleMouseWheel=function(t){if(!(!this.options.zoomEnabled||this.state!=="none")){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1);var e=t.deltaY||1,o=Date.now()-this.lastMouseWheelEventTime,i=3+Math.max(0,30-o);this.lastMouseWheelEventTime=Date.now(),"deltaMode"in t&&t.deltaMode===0&&t.wheelDelta&&(e=t.deltaY===0?0:Math.abs(t.wheelDelta)/t.deltaY),e=-.30?1:-1)*Math.log(Math.abs(e)+10)/i;var s=this.svg.getScreenCTM().inverse(),n=M.getEventPoint(t,this.svg).matrixTransform(s),r=Math.pow(1+this.options.zoomScaleSensitivity,-1*e);this.zoomAtPoint(r,n)}};c.prototype.zoomAtPoint=function(t,e,o){var i=this.viewport.getOriginalState();o?(t=Math.max(this.options.minZoom*i.zoom,Math.min(this.options.maxZoom*i.zoom,t)),t=t/this.getZoom()):this.getZoom()*tthis.options.maxZoom*i.zoom&&(t=this.options.maxZoom*i.zoom/this.getZoom());var s=this.viewport.getCTM(),n=e.matrixTransform(s.inverse()),r=this.svg.createSVGMatrix().translate(n.x,n.y).scale(t).translate(-n.x,-n.y),a=s.multiply(r);a.a!==s.a&&this.viewport.setCTM(a)};c.prototype.zoom=function(t,e){this.zoomAtPoint(t,M.getSvgCenterPoint(this.svg,this.width,this.height),e)};c.prototype.publicZoom=function(t,e){e&&(t=this.computeFromRelativeZoom(t)),this.zoom(t,e)};c.prototype.publicZoomAtPoint=function(t,e,o){if(o&&(t=this.computeFromRelativeZoom(t)),x.getType(e)!=="SVGPoint")if("x"in e&&"y"in e)e=M.createSVGPoint(this.svg,e.x,e.y);else throw new Error("Given point is invalid");this.zoomAtPoint(t,e,o)};c.prototype.getZoom=function(){return this.viewport.getZoom()};c.prototype.getRelativeZoom=function(){return this.viewport.getRelativeZoom()};c.prototype.computeFromRelativeZoom=function(t){return t*this.viewport.getOriginalState().zoom};c.prototype.resetZoom=function(){var t=this.viewport.getOriginalState();this.zoom(t.zoom,!0)};c.prototype.resetPan=function(){this.pan(this.viewport.getOriginalState())};c.prototype.reset=function(){this.resetZoom(),this.resetPan()};c.prototype.handleDblClick=function(t){if(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.options.controlIconsEnabled){var e=t.target.getAttribute("class")||"";if(e.indexOf("svg-pan-zoom-control")>-1)return!1}var o;t.shiftKey?o=1/((1+this.options.zoomScaleSensitivity)*2):o=(1+this.options.zoomScaleSensitivity)*2;var i=M.getEventPoint(t,this.svg).matrixTransform(this.svg.getScreenCTM().inverse());this.zoomAtPoint(o,i)};c.prototype.handleMouseDown=function(t,e){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),x.mouseAndTouchNormalize(t,this.svg),this.options.dblClickZoomEnabled&&x.isDblClick(t,e)?this.handleDblClick(t):(this.state="pan",this.firstEventCTM=this.viewport.getCTM(),this.stateOrigin=M.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()))};c.prototype.handleMouseMove=function(t){if(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.state==="pan"&&this.options.panEnabled){var e=M.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()),o=this.firstEventCTM.translate(e.x-this.stateOrigin.x,e.y-this.stateOrigin.y);this.viewport.setCTM(o)}};c.prototype.handleMouseUp=function(t){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.state==="pan"&&(this.state="none")};c.prototype.fit=function(){var t=this.viewport.getViewBox(),e=Math.min(this.width/t.width,this.height/t.height);this.zoom(e,!0)};c.prototype.contain=function(){var t=this.viewport.getViewBox(),e=Math.max(this.width/t.width,this.height/t.height);this.zoom(e,!0)};c.prototype.center=function(){var t=this.viewport.getViewBox(),e=(this.width-(t.width+t.x*2)*this.getZoom())*.5,o=(this.height-(t.height+t.y*2)*this.getZoom())*.5;this.getPublicInstance().pan({x:e,y:o})};c.prototype.updateBBox=function(){this.viewport.simpleViewBoxCache()};c.prototype.pan=function(t){var e=this.viewport.getCTM();e.e=t.x,e.f=t.y,this.viewport.setCTM(e)};c.prototype.panBy=function(t){var e=this.viewport.getCTM();e.e+=t.x,e.f+=t.y,this.viewport.setCTM(e)};c.prototype.getPan=function(){var t=this.viewport.getState();return{x:t.x,y:t.y}};c.prototype.resize=function(){var t=M.getBoundingClientRectNormalized(this.svg);this.width=t.width,this.height=t.height;var e=this.viewport;e.options.width=this.width,e.options.height=this.height,e.processCTM(),this.options.controlIconsEnabled&&(this.getPublicInstance().disableControlIcons(),this.getPublicInstance().enableControlIcons())};c.prototype.destroy=function(){var t=this;this.beforeZoom=null,this.onZoom=null,this.beforePan=null,this.onPan=null,this.onUpdatedCTM=null,this.options.customEventsHandler!=null&&this.options.customEventsHandler.destroy({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()});for(var e in this.eventListeners)(this.options.eventsListenerElement||this.svg).removeEventListener(e,this.eventListeners[e],this.options.preventMouseEventsDefault?!1:ot);this.disableMouseWheelZoom(),this.getPublicInstance().disableControlIcons(),this.reset(),z=z.filter(function(o){return o.svg!==t.svg}),delete this.options,delete this.viewport,delete this.publicInstance,delete this.pi,this.getPublicInstance=function(){return null}};c.prototype.getPublicInstance=function(){var t=this;return this.publicInstance||(this.publicInstance=this.pi={enablePan:function(){return t.options.panEnabled=!0,t.pi},disablePan:function(){return t.options.panEnabled=!1,t.pi},isPanEnabled:function(){return!!t.options.panEnabled},pan:function(e){return t.pan(e),t.pi},panBy:function(e){return t.panBy(e),t.pi},getPan:function(){return t.getPan()},setBeforePan:function(e){return t.options.beforePan=e===null?null:x.proxy(e,t.publicInstance),t.pi},setOnPan:function(e){return t.options.onPan=e===null?null:x.proxy(e,t.publicInstance),t.pi},enableZoom:function(){return t.options.zoomEnabled=!0,t.pi},disableZoom:function(){return t.options.zoomEnabled=!1,t.pi},isZoomEnabled:function(){return!!t.options.zoomEnabled},enableControlIcons:function(){return t.options.controlIconsEnabled||(t.options.controlIconsEnabled=!0,R.enable(t)),t.pi},disableControlIcons:function(){return t.options.controlIconsEnabled&&(t.options.controlIconsEnabled=!1,R.disable(t)),t.pi},isControlIconsEnabled:function(){return!!t.options.controlIconsEnabled},enableDblClickZoom:function(){return t.options.dblClickZoomEnabled=!0,t.pi},disableDblClickZoom:function(){return t.options.dblClickZoomEnabled=!1,t.pi},isDblClickZoomEnabled:function(){return!!t.options.dblClickZoomEnabled},enableMouseWheelZoom:function(){return t.enableMouseWheelZoom(),t.pi},disableMouseWheelZoom:function(){return t.disableMouseWheelZoom(),t.pi},isMouseWheelZoomEnabled:function(){return!!t.options.mouseWheelZoomEnabled},setZoomScaleSensitivity:function(e){return t.options.zoomScaleSensitivity=e,t.pi},setMinZoom:function(e){return t.options.minZoom=e,t.pi},setMaxZoom:function(e){return t.options.maxZoom=e,t.pi},setBeforeZoom:function(e){return t.options.beforeZoom=e===null?null:x.proxy(e,t.publicInstance),t.pi},setOnZoom:function(e){return t.options.onZoom=e===null?null:x.proxy(e,t.publicInstance),t.pi},zoom:function(e){return t.publicZoom(e,!0),t.pi},zoomBy:function(e){return t.publicZoom(e,!1),t.pi},zoomAtPoint:function(e,o){return t.publicZoomAtPoint(e,o,!0),t.pi},zoomAtPointBy:function(e,o){return t.publicZoomAtPoint(e,o,!1),t.pi},zoomIn:function(){return this.zoomBy(1+t.options.zoomScaleSensitivity),t.pi},zoomOut:function(){return this.zoomBy(1/(1+t.options.zoomScaleSensitivity)),t.pi},getZoom:function(){return t.getRelativeZoom()},setOnUpdatedCTM:function(e){return t.options.onUpdatedCTM=e===null?null:x.proxy(e,t.publicInstance),t.pi},resetZoom:function(){return t.resetZoom(),t.pi},resetPan:function(){return t.resetPan(),t.pi},reset:function(){return t.reset(),t.pi},fit:function(){return t.fit(),t.pi},contain:function(){return t.contain(),t.pi},center:function(){return t.center(),t.pi},updateBBox:function(){return t.updateBBox(),t.pi},resize:function(){return t.resize(),t.pi},getSizes:function(){return{width:t.width,height:t.height,realZoom:t.getZoom(),viewBox:t.viewport.getViewBox()}},destroy:function(){return t.destroy(),t.pi}}),this.publicInstance};var z=[],xt=function(t,e){var o=x.getSvg(t);if(o===null)return null;for(var i=z.length-1;i>=0;i--)if(z[i].svg===o)return z[i].instance.getPublicInstance();return z.push({svg:o,instance:new c(o,e)}),z[z.length-1].instance.getPublicInstance()},Mt=xt;function $(t){let e,o;function i(r,a){return r[2]?zt:Zt}let s=i(t),n=s(t);return{c(){e=I("div"),n.c(),this.h()},l(r){e=T(r,"DIV",{class:!0,id:!0});var a=k(e);n.l(a),a.forEach(b),this.h()},h(){C(e,"class",o="absolute w-full p-2 z-10 font-mono "+(t[2]?"text-red-600":"text-yellow-600")+" bg-base-100 bg-opacity-80 text-center"),C(e,"id","errorContainer")},m(r,a){E(r,e,a),n.m(e,null)},p(r,a){s===(s=i(r))&&n?n.p(r,a):(n.d(1),n=s(r),n&&(n.c(),n.m(e,null))),a&4&&o!==(o="absolute w-full p-2 z-10 font-mono "+(r[2]?"text-red-600":"text-yellow-600")+" bg-base-100 bg-opacity-80 text-center")&&C(e,"class",o)},d(r){r&&b(e),n.d()}}}function Zt(t){let e,o,i,s,n,r,a,p,w;return{c(){e=N("Diagram out of sync. "),o=I("br"),i=N(` + Press `),s=I("i"),n=N(" (Sync button) or "),r=I("kbd"),a=N(K),p=N(" + Enter"),w=N(" to sync."),this.h()},l(l){e=D(l,"Diagram out of sync. "),o=T(l,"BR",{}),i=D(l,` + Press `),s=T(l,"I",{class:!0}),k(s).forEach(b),n=D(l," (Sync button) or "),r=T(l,"KBD",{});var f=k(r);a=D(f,K),p=D(f," + Enter"),f.forEach(b),w=D(l," to sync."),this.h()},h(){C(s,"class","fas fa-sync")},m(l,f){E(l,e,f),E(l,o,f),E(l,i,f),E(l,s,f),E(l,n,f),E(l,r,f),q(r,a),q(r,p),E(l,w,f)},p:W,d(l){l&&b(e),l&&b(o),l&&b(i),l&&b(s),l&&b(n),l&&b(r),l&&b(w)}}}function zt(t){let e,o=t[5].error.toString().replace(/\n/g,"
")+"",i;return{c(){e=new pt(!1),i=j(),this.h()},l(s){e=ft(s,!1),i=j(),this.h()},h(){e.a=i},m(s,n){e.m(o,s,n),E(s,i,n)},p(s,n){n&32&&o!==(o=s[5].error.toString().replace(/\n/g,"
")+"")&&e.p(o)},d(s){s&&b(i),s&&e.d()}}}function Ct(t){let e,o,i,s=(t[2]&&t[5].error instanceof Error||t[3])&&$(t);return{c(){s&&s.c(),e=lt(),o=I("div"),i=I("div"),this.h()},l(n){s&&s.l(n),e=ut(n),o=T(n,"DIV",{id:!0,class:!0});var r=k(o);i=T(r,"DIV",{id:!0,class:!0}),k(i).forEach(b),r.forEach(b),this.h()},h(){C(i,"id","container"),C(i,"class","h-full overflow-auto svelte-1ewr4tw"),B(i,"hide",t[4]),C(o,"id","view"),C(o,"class","p-2 h-full svelte-1ewr4tw"),B(o,"error",t[2]),B(o,"outOfSync",t[3])},m(n,r){s&&s.m(n,r),E(n,e,r),E(n,o,r),q(o,i),t[6](i),t[7](o)},p(n,[r]){n[2]&&n[5].error instanceof Error||n[3]?s?s.p(n,r):(s=$(n),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),r&16&&B(i,"hide",n[4]),r&4&&B(o,"error",n[2]),r&8&&B(o,"outOfSync",n[3])},i:W,o:W,d(n){s&&s.d(n),n&&b(e),n&&b(o),t[6](null),t[7](null)}}}function Pt(t,e,o){let i,s;H(t,F,h=>o(5,i=h)),H(t,Y,h=>o(13,s=h));let n="",r="",a,p,w=!1,l=!1,f=!1,_=!0,m=i.panZoom,u;const g=()=>{if(!u)return;const h=u.getPan(),Z=u.getZoom();dt({pan:h,zoom:Z}),vt("panZoom")},v=h=>{h.panZoom&&(o(4,f=!0),u==null||u.destroy(),u=void 0,Promise.resolve().then(()=>{const Z=document.getElementById("graph-div");if(!Z)return;u=Mt(Z,{onPan:g,onZoom:g,controlIconsEnabled:!0,fit:!0,center:!0});const{pan:V,zoom:A}=h;V!==void 0&&A!==void 0&&Number.isFinite(A)&&(u.zoom(A),u.pan(V)),o(4,f=!1)}))},y=async h=>{if(h.error!==void 0){o(2,w=!0);return}o(2,w=!1);try{if(a&&h&&(h.updateDiagram||h.autoSync)){if(h.autoSync||ct(Y,s.updateDiagram=!1,s),o(3,l=!1),_=!0,n===h.code&&r===h.mermaid&&m===h.panZoom)return;n=h.code,r=h.mermaid,m=h.panZoom;const Z=p.parentElement.scrollTop;delete a.dataset.processed,await mt(Object.assign({},JSON.parse(h.mermaid)),n,"graph-div",(V,A)=>{if(V.length>0){v(h),o(0,a.innerHTML=V,a);const L=document.getElementById("graph-div");if(!L)throw new Error("graph-div not found");L.setAttribute("height","100%"),L.style.maxWidth="100%",A&&A(L)}}),o(1,p.parentElement.scrollTop=Z,p),o(2,w=!1)}else _?_=!1:(n!==h.code||r!==h.mermaid)&&o(3,l=!0)}catch(Z){console.error("view fail",Z),o(2,w=!0)}};ht(()=>{F.subscribe(h=>{y(h)}),window.addEventListener("resize",()=>{i.panZoom&&u&&u.resize()}),console.log("View mounted")});function it(h){X[h?"unshift":"push"](()=>{a=h,o(0,a)})}function nt(h){X[h?"unshift":"push"](()=>{p=h,o(1,p)})}return[a,p,w,l,f,i,it,nt]}class Dt extends st{constructor(e){super(),rt(this,e,Pt,Ct,at,{})}}export{Dt as V}; diff --git a/_app/immutable/chunks/_commonjsHelpers-35101cd5.js b/_app/immutable/chunks/_commonjsHelpers-35101cd5.js new file mode 100644 index 00000000..109b04c4 --- /dev/null +++ b/_app/immutable/chunks/_commonjsHelpers-35101cd5.js @@ -0,0 +1 @@ +var f=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e){var r=e.default;if(typeof r=="function"){var n=function o(){if(this instanceof o){var t=[null];t.push.apply(t,arguments);var u=Function.bind.apply(r,t);return new u}return r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}),n}export{a,f as c,l as g}; diff --git a/_app/immutable/chunks/_layout-1224cfc9.js b/_app/immutable/chunks/_layout-1224cfc9.js new file mode 100644 index 00000000..fd5f56f1 --- /dev/null +++ b/_app/immutable/chunks/_layout-1224cfc9.js @@ -0,0 +1 @@ +const r=!0,s=!0,t=!1,e="ignore",o=Object.freeze(Object.defineProperty({__proto__:null,prerender:!0,csr:!0,ssr:!1,trailingSlash:e},Symbol.toStringTag,{value:"Module"}));export{o as _,s as c,r as p,t as s,e as t}; diff --git a/_app/immutable/chunks/analytics.browser.es-34f06abc.js b/_app/immutable/chunks/analytics.browser.es-34f06abc.js new file mode 100644 index 00000000..b98908c2 --- /dev/null +++ b/_app/immutable/chunks/analytics.browser.es-34f06abc.js @@ -0,0 +1,2 @@ +function Ze(e,t,n,r,a){for(t=t.split?t.split("."):t,r=0;r1&&(nn(r,y.map(function(v){return v.replace(/[?[\]\\ ]/g,"")}),r[f]),delete r[f])}return r}(function(t){if(t){var n=t.match(/\?(.*)/);return n&&n[1]?n[1].split("#")[0]:""}return X&&window.location.search.substring(1)}(e))}function nn(e,t,n){for(var r=t.length-1,a=0;a>4}return e}var be="global",pe=re+"global"+re,ge=typeof self===et&&self.self===self&&self||typeof global===et&&global.global===global&&global||void 0;function ie(e){return ge[pe][e]}function oe(e,t){return ge[pe][e]=t}function ve(e){delete ge[pe][e]}function he(e,t,n){var r;try{if(We(e)){var a=window[e];r=a[t].bind(a)}}catch{}return r||n}ge[pe]||(ge[pe]={});var xe={};function We(e){if(typeof xe[e]!==Oe)return xe[e];try{var t=window[e];t.setItem(Oe,Oe),t.removeItem(Oe)}catch{return xe[e]=!1}return xe[e]=!0}function g(){return g=Object.assign||function(e){for(var t=1;t1;return te===!1&&(c?oe(e,t):ie(e)),c?document.cookie=e+"="+encodeURIComponent(t)+(n?"; expires="+new Date(+new Date+1e3*n).toUTCString()+(r?"; path="+r:"")+(a?"; domain="+a:"")+(u?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}}var we="localStorage",_n=We.bind(null,"localStorage");he("localStorage","getItem",ie);he("localStorage","setItem",oe);he("localStorage","removeItem",ve);var Se="sessionStorage",kn=We.bind(null,"sessionStorage");he("sessionStorage","getItem",ie);he("sessionStorage","setItem",oe);he("sessionStorage","removeItem",ve);function de(e){var t=e;try{if((t=JSON.parse(e))==="true")return!0;if(t==="false")return!1;if(F(t))return t;parseFloat(t)===t&&(t=parseFloat(t))}catch{}if(t!==null&&t!=="")return t}var An=_n(),Tn=kn(),$n=qt();function Vt(e,t){if(e){var n=Xe(t),r=!Qe(n),a=He(n)?de(localStorage.getItem(e)):void 0;if(r&&!ce(a))return a;var u=Ge(n)?de(Dt(e)):void 0;if(r&&u)return u;var c=Ke(n)?de(sessionStorage.getItem(e)):void 0;if(r&&c)return c;var f=ie(e);return r?f:{localStorage:a,sessionStorage:c,cookie:u,global:f}}}function Mn(e,t,n){if(e&&!ce(t)){var r={},a=Xe(n),u=JSON.stringify(t),c=!Qe(a);return He(a)&&(r[we]=ke(we,t,de(localStorage.getItem(e))),localStorage.setItem(e,u),c)?r[we]:Ge(a)&&(r[Ie]=ke(Ie,t,de(Dt(e))),jn(e,u),c)?r[Ie]:Ke(a)&&(r[Se]=ke(Se,t,de(sessionStorage.getItem(e))),sessionStorage.setItem(e,u),c)?r[Se]:(r[be]=ke(be,t,ie(e)),oe(e,t),c?r[be]:r)}}function zn(e,t){if(e){var n=Xe(t),r=Vt(e,Et),a={};return!ce(r.localStorage)&&He(n)&&(localStorage.removeItem(e),a[we]=r.localStorage),!ce(r.cookie)&&Ge(n)&&(Lt(e),a[Ie]=r.cookie),!ce(r.sessionStorage)&&Ke(n)&&(sessionStorage.removeItem(e),a[Se]=r.sessionStorage),!ce(r.global)&&De(n,be)&&(ve(e),a[be]=r.global),a}}function Xe(e){return e?le(e)?e:e.storage:St}function He(e){return An&&De(e,we)}function Ge(e){return $n&&De(e,Ie)}function Ke(e){return Tn&&De(e,Se)}function Qe(e){return e===Et||e==="all"}function De(e,t){return e===St||e===t||Qe(e)}function ke(e,t,n){return{location:e,current:t,previous:n}}var Un={setItem:Mn,getItem:Vt,removeItem:zn};function Cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t={storage:Un};return Nn(wt(wt({},t),e))}export{Ln as Analytics,Dn as CONSTANTS,p as EVENTS,Ln as default,Ln as init}; diff --git a/_app/immutable/chunks/darken-e9b93bc2.js b/_app/immutable/chunks/darken-e9b93bc2.js new file mode 100644 index 00000000..e66b67f2 --- /dev/null +++ b/_app/immutable/chunks/darken-e9b93bc2.js @@ -0,0 +1 @@ +var ke={value:()=>{}};function Ut(){for(var t=0,e=arguments.length,n={},r;t=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}J.prototype=Ut.prototype={constructor:J,on:function(t,e){var n=this._,r=Ne(t+"",n),i,a=-1,s=r.length;if(arguments.length<2){for(;++a0)for(var n=new Array(i),r=0,i,a;r=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Rt.hasOwnProperty(e)?{space:Rt[e],local:t}:t}function Se(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===dt&&e.documentElement.namespaceURI===dt?e.createElement(t):e.createElementNS(n,t)}}function Ce(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Kt(t){var e=ot(t);return(e.local?Ce:Se)(e)}function $e(){}function xt(t){return t==null?$e:function(){return this.querySelector(t)}}function Me(t){typeof t!="function"&&(t=xt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=Y&&(Y=T+1);!(Mt=$[Y])&&++Y=0;)(s=r[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function tn(t){t||(t=en);function e(c,h){return c&&h?t(c.__data__,h.__data__):!c-!h}for(var n=this._groups,r=n.length,i=new Array(r),a=0;ae?1:t>=e?0:NaN}function nn(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function rn(){return Array.from(this)}function an(){for(var t=this._groups,e=0,n=t.length;e1?this.each((e==null?yn:typeof e=="function"?wn:_n)(t,e,n??"")):L(this.node(),t)}function L(t,e){return t.style.getPropertyValue(e)||jt(t).getComputedStyle(t,null).getPropertyValue(e)}function xn(t){return function(){delete this[t]}}function vn(t,e){return function(){this[t]=e}}function bn(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function kn(t,e){return arguments.length>1?this.each((e==null?xn:typeof e=="function"?bn:vn)(t,e)):this.node()[t]}function te(t){return t.trim().split(/^|\s+/)}function vt(t){return t.classList||new ee(t)}function ee(t){this._node=t,this._names=te(t.getAttribute("class")||"")}ee.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function ne(t,e){for(var n=vt(t),r=-1,i=e.length;++r=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function Qn(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,a;n>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?z(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?z(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=sr.exec(t))?new w(e[1],e[2],e[3],1):(e=or.exec(t))?new w(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=fr.exec(t))?z(e[1],e[2],e[3],e[4]):(e=ur.exec(t))?z(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=lr.exec(t))?Pt(e[1],e[2]/100,e[3]/100,1):(e=cr.exec(t))?Pt(e[1],e[2]/100,e[3]/100,e[4]):Lt.hasOwnProperty(t)?Ht(Lt[t]):t==="transparent"?new w(NaN,NaN,NaN,0):null}function Ht(t){return new w(t>>16&255,t>>8&255,t&255,1)}function z(t,e,n,r){return r<=0&&(t=e=n=NaN),new w(t,e,n,r)}function dr(t){return t instanceof V||(t=D(t)),t?(t=t.rgb(),new w(t.r,t.g,t.b,t.opacity)):new w}function gt(t,e,n,r){return arguments.length===1?dr(t):new w(t,e,n,r??1)}function w(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}bt(w,gt,se(V,{brighter:function(t){return t=t==null?rt:Math.pow(rt,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?B:Math.pow(B,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:It,formatHex:It,formatRgb:qt,toString:qt}));function It(){return"#"+lt(this.r)+lt(this.g)+lt(this.b)}function qt(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function lt(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Pt(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new v(t,e,n,r)}function oe(t){if(t instanceof v)return new v(t.h,t.s,t.l,t.opacity);if(t instanceof V||(t=D(t)),!t)return new v;if(t instanceof v)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,o=a-i,f=(a+i)/2;return o?(e===a?s=(n-r)/o+(n0&&f<1?0:s,new v(s,o,f,t.opacity)}function gr(t,e,n,r){return arguments.length===1?oe(t):new v(t,e,n,r??1)}function v(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}bt(v,gr,se(V,{brighter:function(t){return t=t==null?rt:Math.pow(rt,t),new v(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?B:Math.pow(B,t),new v(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new w(ct(t>=240?t-240:t+120,i,r),ct(t,i,r),ct(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function ct(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const kt=t=>()=>t;function fe(t,e){return function(n){return t+n*e}}function pr(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Zi(t,e){var n=e-t;return n?fe(t,n>180||n<-180?n-360*Math.round(n/360):n):kt(isNaN(t)?e:t)}function yr(t){return(t=+t)==1?ue:function(e,n){return n-e?pr(e,n,t):kt(isNaN(e)?n:e)}}function ue(t,e){var n=e-t;return n?fe(t,n):kt(isNaN(t)?e:t)}const Bt=function t(e){var n=yr(e);function r(i,a){var s=n((i=gt(i)).r,(a=gt(a)).r),o=n(i.g,a.g),f=n(i.b,a.b),u=ue(i.opacity,a.opacity);return function(l){return i.r=s(l),i.g=o(l),i.b=f(l),i.opacity=u(l),i+""}}return r.gamma=t,r}(1);function C(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var pt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ht=new RegExp(pt.source,"g");function _r(t){return function(){return t}}function wr(t){return function(e){return t(e)+""}}function mr(t,e){var n=pt.lastIndex=ht.lastIndex=0,r,i,a,s=-1,o=[],f=[];for(t=t+"",e=e+"";(r=pt.exec(t))&&(i=ht.exec(e));)(a=i.index)>n&&(a=e.slice(n,a),o[s]?o[s]+=a:o[++s]=a),(r=r[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,f.push({i:s,x:C(r,i)})),n=ht.lastIndex;return n180?l+=360:l-u>180&&(u+=360),h.push({i:c.push(i(c)+"rotate(",null,r)-2,x:C(u,l)})):l&&c.push(i(c)+"rotate("+l+r)}function o(u,l,c,h){u!==l?h.push({i:c.push(i(c)+"skewX(",null,r)-2,x:C(u,l)}):l&&c.push(i(c)+"skewX("+l+r)}function f(u,l,c,h,d,p){if(u!==c||l!==h){var _=d.push(i(d)+"scale(",null,",",null,")");p.push({i:_-4,x:C(u,c)},{i:_-2,x:C(l,h)})}else(c!==1||h!==1)&&d.push(i(d)+"scale("+c+","+h+")")}return function(u,l){var c=[],h=[];return u=t(u),l=t(l),a(u.translateX,u.translateY,l.translateX,l.translateY,c,h),s(u.rotate,l.rotate,c,h),o(u.skewX,l.skewX,c,h),f(u.scaleX,u.scaleY,l.scaleX,l.scaleY,c,h),u=l=null,function(d){for(var p=-1,_=h.length,$;++p<_;)c[($=h[p]).i]=$.x(d);return c.join("")}}}var br=ce(xr,"px, ","px)","deg)"),kr=ce(vr,", ",")",")"),F=0,I=0,H=0,he=1e3,it,q,at=0,M=0,ft=0,O=typeof performance=="object"&&performance.now?performance:Date,de=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Nt(){return M||(de(Nr),M=O.now()+ft)}function Nr(){M=0}function st(){this._call=this._time=this._next=null}st.prototype=ge.prototype={constructor:st,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Nt():+n)+(e==null?0:+e),!this._next&&q!==this&&(q?q._next=this:it=this,q=this),this._call=t,this._time=n,_t()},stop:function(){this._call&&(this._call=null,this._time=1/0,_t())}};function ge(t,e,n){var r=new st;return r.restart(t,e,n),r}function Ar(){Nt(),++F;for(var t=it,e;t;)(e=M-t._time)>=0&&t._call.call(void 0,e),t=t._next;--F}function Dt(){M=(at=O.now())+ft,F=I=0;try{Ar()}finally{F=0,Cr(),M=0}}function Sr(){var t=O.now(),e=t-at;e>he&&(ft-=e,at=t)}function Cr(){for(var t,e=it,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:it=n);q=t,_t(r)}function _t(t){if(!F){I&&(I=clearTimeout(I));var e=t-M;e>24?(t<1/0&&(I=setTimeout(Dt,t-O.now()-ft)),H&&(H=clearInterval(H))):(H||(at=O.now(),H=setInterval(Sr,he)),F=1,de(Dt))}}function Ot(t,e,n){var r=new st;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var $r=Ut("start","end","cancel","interrupt"),Mr=[],pe=0,Gt=1,wt=2,Q=3,Vt=4,mt=5,Z=6;function ut(t,e,n,r,i,a){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;Er(t,n,{name:e,index:r,group:i,on:$r,tween:Mr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:pe})}function At(t,e){var n=x(t,e);if(n.state>pe)throw new Error("too late; already scheduled");return n}function k(t,e){var n=x(t,e);if(n.state>Q)throw new Error("too late; already running");return n}function x(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Er(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=ge(a,0,n.time);function a(u){n.state=Gt,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var l,c,h,d;if(n.state!==Gt)return f();for(l in r)if(d=r[l],d.name===n.name){if(d.state===Q)return Ot(s);d.state===Vt?(d.state=Z,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[l]):+lwt&&r.state=0&&(e=e.slice(0,n)),!e||e==="start"})}function oi(t,e,n){var r,i,a=si(e)?At:k;return function(){var s=a(this,t),o=s.on;o!==r&&(i=(r=o).copy()).on(e,n),s.on=i}}function fi(t,e){var n=this._id;return arguments.length<2?x(this.node(),n).on.on(t):this.each(oi(n,t,e))}function ui(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function li(){return this.on("end.remove",ui(this._id))}function ci(t){var e=this._name,n=this._id;typeof t!="function"&&(t=xt(t));for(var r=this._groups,i=r.length,a=new Array(i),s=0;st>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},r)=>{if(!e)return n*2.55;t/=360,e/=100,n/=100;const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;switch(r){case"r":return j.hue2rgb(a,i,t+1/3)*255;case"g":return j.hue2rgb(a,i,t)*255;case"b":return j.hue2rgb(a,i,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:n},r)=>{t/=255,e/=255,n/=255;const i=Math.max(t,e,n),a=Math.min(t,e,n),s=(i+a)/2;if(r==="l")return s*100;if(i===a)return 0;const o=i-a,f=s>.5?o/(2-i-a):o/(i+a);if(r==="s")return f*100;switch(i){case t:return((e-n)/o+(ee>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},Pi=qi,Bi={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},Xi=Bi,Di={channel:Ii,lang:Pi,unit:Xi},g=Di,S={};for(let t=0;t<=255;t++)S[t]=g.unit.dec2hex(t);const y={ALL:0,RGB:1,HSL:2};class Oi{constructor(){this.type=y.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=y.ALL}is(e){return this.type===e}}const Gi=Oi;class Vi{constructor(e,n){this.color=n,this.changed=!1,this.data=e,this.type=new Gi}set(e,n){return this.color=n,this.changed=!1,this.data=e,this.type.type=y.ALL,this}_ensureHSL(){const e=this.data,{h:n,s:r,l:i}=e;n===void 0&&(e.h=g.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=g.channel.rgb2hsl(e,"s")),i===void 0&&(e.l=g.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:n,g:r,b:i}=e;n===void 0&&(e.r=g.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=g.channel.hsl2rgb(e,"g")),i===void 0&&(e.b=g.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,n=e.r;return!this.type.is(y.HSL)&&n!==void 0?n:(this._ensureHSL(),g.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,n=e.g;return!this.type.is(y.HSL)&&n!==void 0?n:(this._ensureHSL(),g.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,n=e.b;return!this.type.is(y.HSL)&&n!==void 0?n:(this._ensureHSL(),g.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,n=e.h;return!this.type.is(y.RGB)&&n!==void 0?n:(this._ensureRGB(),g.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,n=e.s;return!this.type.is(y.RGB)&&n!==void 0?n:(this._ensureRGB(),g.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,n=e.l;return!this.type.is(y.RGB)&&n!==void 0?n:(this._ensureRGB(),g.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(y.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(y.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(y.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(y.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(y.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(y.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Yi=Vi,zi=new Yi({r:0,g:0,b:0,a:0},"transparent"),Ct=zi,me={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(me.re);if(!e)return;const n=e[1],r=parseInt(n,16),i=n.length,a=i%4===0,s=i>4,o=s?1:17,f=s?8:4,u=a?0:-1,l=s?255:15;return Ct.set({r:(r>>f*(u+3)&l)*o,g:(r>>f*(u+2)&l)*o,b:(r>>f*(u+1)&l)*o,a:a?(r&l)*o/255:1},t)},stringify:t=>{const{r:e,g:n,b:r,a:i}=t;return i<1?`#${S[Math.round(e)]}${S[Math.round(n)]}${S[Math.round(r)]}${S[Math.round(i*255)]}`:`#${S[Math.round(e)]}${S[Math.round(n)]}${S[Math.round(r)]}`}},P=me,tt={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(tt.hueRe);if(e){const[,n,r]=e;switch(r){case"grad":return g.channel.clamp.h(parseFloat(n)*.9);case"rad":return g.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return g.channel.clamp.h(parseFloat(n)*360)}}return g.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const n=t.match(tt.re);if(!n)return;const[,r,i,a,s,o]=n;return Ct.set({h:tt._hue2deg(r),s:g.channel.clamp.s(parseFloat(i)),l:g.channel.clamp.l(parseFloat(a)),a:s?g.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:n,l:r,a:i}=t;return i<1?`hsla(${g.lang.round(e)}, ${g.lang.round(n)}%, ${g.lang.round(r)}%, ${i})`:`hsl(${g.lang.round(e)}, ${g.lang.round(n)}%, ${g.lang.round(r)}%)`}},K=tt,et={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=et.colors[t];if(e)return P.parse(e)},stringify:t=>{const e=P.stringify(t);for(const n in et.colors)if(et.colors[n]===e)return n}},Yt=et,xe={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const n=t.match(xe.re);if(!n)return;const[,r,i,a,s,o,f,u,l]=n;return Ct.set({r:g.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:g.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:g.channel.clamp.b(f?parseFloat(o)*2.55:parseFloat(o)),a:u?g.channel.clamp.a(l?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:n,b:r,a:i}=t;return i<1?`rgba(${g.lang.round(e)}, ${g.lang.round(n)}, ${g.lang.round(r)}, ${g.lang.round(i)})`:`rgb(${g.lang.round(e)}, ${g.lang.round(n)}, ${g.lang.round(r)})`}},W=xe,Ui={format:{keyword:Yt,hex:P,rgb:W,rgba:W,hsl:K,hsla:K},parse:t=>{if(typeof t!="string")return t;const e=P.parse(t)||W.parse(t)||K.parse(t)||Yt.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(y.HSL)||t.data.r===void 0?K.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?W.stringify(t):P.stringify(t)},zt=Ui,Ki=(t,e,n)=>{const r=zt.parse(t),i=r[e],a=g.channel.clamp[e](i+n);return i!==a&&(r[e]=a),zt.stringify(r)},ve=Ki,Wi=(t,e)=>ve(t,"l",e),ji=Wi,Ji=(t,e)=>ve(t,"l",-e),ta=Ji;export{V as C,w as R,m as S,g as _,Ee as a,dr as b,kt as c,bt as d,se as e,D as f,Bt as g,mr as h,C as i,Zi as j,zt as k,Ct as l,ji as m,ue as n,ta as o,ae as r,Qi as s}; diff --git a/_app/immutable/chunks/diagram-definition.ae1f7a29-23a9d443.js b/_app/immutable/chunks/diagram-definition.ae1f7a29-23a9d443.js new file mode 100644 index 00000000..e9a75d4b --- /dev/null +++ b/_app/immutable/chunks/diagram-definition.ae1f7a29-23a9d443.js @@ -0,0 +1,91 @@ +import{k as Wu,_ as La,s as Qr,m as Ku,o as Zu}from"./darken-e9b93bc2.js";import{c as Vt,g as Qu}from"./_commonjsHelpers-35101cd5.js";const Ju=t=>{const{r:e,g:r,b:a}=Wu.parse(t),n=.2126*La.channel.toLinear(e)+.7152*La.channel.toLinear(r)+.0722*La.channel.toLinear(a);return La.lang.round(n)},ju=Ju,el=t=>ju(t)>=.5,tl=el,rl=t=>!tl(t),al=rl;function nl(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var va=nl,il=typeof Vt=="object"&&Vt&&Vt.Object===Object&&Vt,sl=il,ol=sl,ul=typeof self=="object"&&self&&self.Object===Object&&self,ll=ol||ul||Function("return this")(),tn=ll,fl=tn,hl=function(){return fl.Date.now()},vl=hl,cl=/\s/;function dl(t){for(var e=t.length;e--&&cl.test(t.charAt(e)););return e}var gl=dl,pl=gl,yl=/^\s+/;function ml(t){return t&&t.slice(0,pl(t)+1).replace(yl,"")}var bl=ml,El=tn,wl=El.Symbol,Qn=wl,Li=Qn,Hs=Object.prototype,xl=Hs.hasOwnProperty,Tl=Hs.toString,_r=Li?Li.toStringTag:void 0;function Cl(t){var e=xl.call(t,_r),r=t[_r];try{t[_r]=void 0;var a=!0}catch{}var n=Tl.call(t);return a&&(e?t[_r]=r:delete t[_r]),n}var Dl=Cl,Sl=Object.prototype,Ll=Sl.toString;function Al(t){return Ll.call(t)}var Ol=Al,Ai=Qn,Nl=Dl,Ml=Ol,Il="[object Null]",Rl="[object Undefined]",Oi=Ai?Ai.toStringTag:void 0;function kl(t){return t==null?t===void 0?Rl:Il:Oi&&Oi in Object(t)?Nl(t):Ml(t)}var Xs=kl;function Pl(t){return t!=null&&typeof t=="object"}var Bl=Pl,Fl=Xs,Gl=Bl,zl="[object Symbol]";function $l(t){return typeof t=="symbol"||Gl(t)&&Fl(t)==zl}var ca=$l,Vl=bl,Ni=va,_l=ca,Mi=0/0,Ul=/^[-+]0x[0-9a-f]+$/i,Yl=/^0b[01]+$/i,Hl=/^0o[0-7]+$/i,Xl=parseInt;function ql(t){if(typeof t=="number")return t;if(_l(t))return Mi;if(Ni(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ni(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Vl(t);var r=Yl.test(t);return r||Hl.test(t)?Xl(t.slice(2),r?2:8):Ul.test(t)?Mi:+t}var Wl=ql,Kl=va,Tn=vl,Ii=Wl,Zl="Expected a function",Ql=Math.max,Jl=Math.min;function jl(t,e,r){var a,n,i,s,o,u,l=0,f=!1,h=!1,c=!0;if(typeof t!="function")throw new TypeError(Zl);e=Ii(e)||0,Kl(r)&&(f=!!r.leading,h="maxWait"in r,i=h?Ql(Ii(r.maxWait)||0,e):i,c="trailing"in r?!!r.trailing:c);function v(D){var E=a,T=n;return a=n=void 0,l=D,s=t.apply(T,E),s}function d(D){return l=D,o=setTimeout(p,e),f?v(D):s}function g(D){var E=D-u,T=D-l,x=e-E;return h?Jl(x,i-T):x}function b(D){var E=D-u,T=D-l;return u===void 0||E>=e||E<0||h&&T>=i}function p(){var D=Tn();if(b(D))return m(D);o=setTimeout(p,g(D))}function m(D){return o=void 0,c&&a?v(D):(a=n=void 0,s)}function y(){o!==void 0&&clearTimeout(o),l=0,a=u=n=o=void 0}function w(){return o===void 0?s:m(Tn())}function C(){var D=Tn(),E=b(D);if(a=arguments,n=this,u=D,E){if(o===void 0)return d(u);if(h)return clearTimeout(o),o=setTimeout(p,e),v(u)}return o===void 0&&(o=setTimeout(p,e)),s}return C.cancel=y,C.flush=w,C}var ef=jl,qs={exports:{}},Ws={exports:{}};(function(t,e){(function(){var r,a,n,i,s,o,u,l,f,h,c,v,d,g,b;n=Math.floor,h=Math.min,a=function(p,m){return pm?1:0},f=function(p,m,y,w,C){var D;if(y==null&&(y=0),C==null&&(C=a),y<0)throw new Error("lo must be non-negative");for(w==null&&(w=p.length);yS;0<=S?x++:x--)T.push(x);return T}.apply(this).reverse(),E=[],w=0,C=D.length;wL;0<=L?++T:--T)A.push(s(p,y));return A},g=function(p,m,y,w){var C,D,E;for(w==null&&(w=a),C=p[y];y>m;){if(E=y-1>>1,D=p[E],w(C,D)<0){p[y]=D,y=E;continue}break}return p[y]=C},b=function(p,m,y){var w,C,D,E,T;for(y==null&&(y=a),C=p.length,T=m,D=p[m],w=2*m+1;w-1}var Ih=Mh,Rh=nn;function kh(t,e){var r=this.__data__,a=Rh(r,t);return a<0?(++this.size,r.push([t,e])):r[a][1]=e,this}var Ph=kh,Bh=mh,Fh=Sh,Gh=Oh,zh=Ih,$h=Ph;function Mr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&tt.length)&&(e=t.length);for(var r=0,a=new Array(e);r"u"?null:window,Ui=Be?Be.navigator:null;Be&&Be.document;var Yc=_e(""),ao=_e({}),Hc=_e(function(){}),Xc=typeof HTMLElement>"u"?"undefined":_e(HTMLElement),pa=function(e){return e&&e.instanceString&&Fe(e.instanceString)?e.instanceString():null},le=function(e){return e!=null&&_e(e)==Yc},Fe=function(e){return e!=null&&_e(e)===Hc},Ie=function(e){return!ht(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},Te=function(e){return e!=null&&_e(e)===ao&&!Ie(e)&&e.constructor===Object},qc=function(e){return e!=null&&_e(e)===ao},ae=function(e){return e!=null&&_e(e)===_e(1)&&!isNaN(e)},Wc=function(e){return ae(e)&&Math.floor(e)===e},Xa=function(e){if(Xc!=="undefined")return e!=null&&e instanceof HTMLElement},ht=function(e){return ya(e)||no(e)},ya=function(e){return pa(e)==="collection"&&e._private.single},no=function(e){return pa(e)==="collection"&&!e._private.single},ai=function(e){return pa(e)==="core"},io=function(e){return pa(e)==="stylesheet"},Kc=function(e){return pa(e)==="event"},Ht=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},Zc=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Qc=function(e){return Te(e)&&ae(e.x1)&&ae(e.x2)&&ae(e.y1)&&ae(e.y2)},Jc=function(e){return qc(e)&&Fe(e.then)},jc=function(){return Ui&&Ui.userAgent.match(/msie|trident|edge/i)},ea=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;sr?1:0},sd=function(e,r){return-1*oo(e,r)},ve=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(b-=1),b<1/6?d+(g-d)*6*b:b<1/2?g:b<2/3?d+(g-d)*(2/3-b)*6:d}var h=new RegExp("^"+rd+"$").exec(e);if(h){if(a=parseInt(h[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(h[2]),n<0||n>100||(n=n/100,i=parseFloat(h[3]),i<0||i>100)||(i=i/100,s=h[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(n===0)o=u=l=Math.round(i*255);else{var c=i<.5?i*(1+n):i+n-i*n,v=2*i-c;o=Math.round(255*f(v,c,a+1/3)),u=Math.round(255*f(v,c,a)),l=Math.round(255*f(v,c,a-1/3))}r=[o,u,l,s]}return r},ld=function(e){var r,a=new RegExp("^"+ed+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var s=a[i];if(s[s.length-1]==="%"&&(n[i]=!0),s=parseFloat(s),n[i]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=n[1]||n[2]||n[3],u=n[1]&&n[2]&&n[3];if(o&&!u)return;var l=a[4];if(l!==void 0){if(l=parseFloat(l),l<0||l>1)return;r.push(l)}}return r},fd=function(e){return vd[e.toLowerCase()]},hd=function(e){return(Ie(e)?e:null)||fd(e)||od(e)||ld(e)||ud(e)},vd={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},uo=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:Er,a=r,n;n=e.next(),!n.done;)a=a*ho+n.value|0;return a},ta=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Er;return r*ho+e|0},ra=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qr;return(r<<5)+r+e|0},dd=function(e,r){return e*2097152+r},Gt=function(e){return e[0]*2097152+e[1]},Aa=function(e,r){return[ta(e[0],r[0]),ra(e[1],r[1])]},gd=function(e,r){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n=0&&!(e[n]===r&&(e.splice(n,1),a));n--);},oi=function(e){e.splice(0,e.length)},xd=function(e,r){for(var a=0;a"u"?"undefined":_e(Set))!==Cd?Set:Dd,ln=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!ai(e)){ze("An element must have a core reference and parameters set");return}var n=r.group;if(n==null&&(r.data&&r.data.source!=null&&r.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){ze("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?n==="edges":!!r.pannable,active:!1,classes:new Rr,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),u=e.zoom();i.position={x:(s.x-o.x)/u,y:(s.y-o.y)/u}}var l=[];Ie(r.classes)?l=r.classes:le(r.classes)&&(l=r.classes.split(/\s+/));for(var f=0,h=l.length;f0;){var D=m.pop(),E=b(D),T=D.id();if(c[T]=E,E!==1/0)for(var x=D.neighborhood().intersect(d),S=0;S0)for(P.unshift(R);h[G];){var F=h[G];P.unshift(F.edge),P.unshift(F.node),B=F.node,G=B.id()}return o.spawn(P)}}}},Ad={kruskal:function(e){e=e||function(y){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,s=new Array(i),o=a,u=function(w){for(var C=0;C0;){if(C(),E++,w===f){for(var T=[],x=i,S=f,L=p[S];T.unshift(x),L!=null&&T.unshift(L),x=b[S],x!=null;)S=x.id(),L=p[S];return{found:!0,distance:h[w],path:this.spawn(T),steps:E}}v[w]=!0;for(var A=y._private.edges,M=0;ML&&(d[S]=L,m[S]=x,y[S]=C),!i){var A=x*f+T;!i&&d[A]>L&&(d[A]=L,m[A]=T,y[A]=C)}}}for(var M=0;M1&&arguments[1]!==void 0?arguments[1]:s,Ee=y(ne),ge=[],he=Ee;;){if(he==null)return r.spawn();var J=m(he),N=J.edge,_=J.pred;if(ge.unshift(he[0]),he.same(ue)&&ge.length>0)break;N!=null&&ge.unshift(N),he=_}return u.spawn(ge)},D=0;D=0;f--){var h=l[f],c=h[1],v=h[2];(r[c]===o&&r[v]===u||r[c]===u&&r[v]===o)&&l.splice(f,1)}for(var d=0;dn;){var i=Math.floor(Math.random()*r.length);r=Bd(i,e,r),a--}return r},Fd={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(P){return P.isLoop()});var i=a.length,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),u=Math.floor(i/Pd);if(i<2){ze("At least 2 nodes are required for Karger-Stein algorithm");return}for(var l=[],f=0;f1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,s=r;s1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(r,a):(a0&&e.splice(0,r));for(var o=0,u=e.length-1;u>=0;u--){var l=e[u];s?isFinite(l)||(e[u]=-1/0,o++):e.splice(u,1)}i&&e.sort(function(c,v){return c-v});var f=e.length,h=Math.floor(f/2);return f%2!==0?e[h+1+o]:(e[h-1+o]+e[h+o])/2},Ud=function(e){return Math.PI*e/180},Oa=function(e,r){return Math.atan2(r,e)-Math.PI/2},ui=Math.log2||function(t){return Math.log(t)/Math.log(2)},Eo=function(e){return e>0?1:e<0?-1:0},nr=function(e,r){return Math.sqrt(er(e,r))},er=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},Yd=function(e){for(var r=e.length,a=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Xd=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},qd=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Wd=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Kd=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},za=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Ln=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,s;if(r.length===1)a=n=i=s=r[0];else if(r.length===2)a=i=r[0],s=n=r[1];else if(r.length===4){var o=Mt(r,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Wi=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},li=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},Lr=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},Zd=function(e,r){return Lr(e,r.x,r.y)},wo=function(e,r){return Lr(e,r.x1,r.y1)&&Lr(e,r.x2,r.y2)},xo=function(e,r,a,n,i,s,o){var u=ma(i,s),l=i/2,f=s/2,h;{var c=a-l+u-o,v=n-f-o,d=a+l-u+o,g=v;if(h=_t(e,r,a,n,c,v,d,g,!1),h.length>0)return h}{var b=a+l+o,p=n-f+u-o,m=b,y=n+f-u+o;if(h=_t(e,r,a,n,b,p,m,y,!1),h.length>0)return h}{var w=a-l+u-o,C=n+f+o,D=a+l-u+o,E=C;if(h=_t(e,r,a,n,w,C,D,E,!1),h.length>0)return h}{var T=a-l-o,x=n-f+u-o,S=T,L=n+f-u+o;if(h=_t(e,r,a,n,T,x,S,L,!1),h.length>0)return h}var A;{var M=a-l+u,O=n-f+u;if(A=Wr(e,r,a,n,M,O,u+o),A.length>0&&A[0]<=M&&A[1]<=O)return[A[0],A[1]]}{var k=a+l-u,I=n-f+u;if(A=Wr(e,r,a,n,k,I,u+o),A.length>0&&A[0]>=k&&A[1]<=I)return[A[0],A[1]]}{var R=a+l-u,P=n+f-u;if(A=Wr(e,r,a,n,R,P,u+o),A.length>0&&A[0]>=R&&A[1]>=P)return[A[0],A[1]]}{var B=a-l+u,G=n+f-u;if(A=Wr(e,r,a,n,B,G,u+o),A.length>0&&A[0]<=B&&A[1]>=G)return[A[0],A[1]]}return[]},Qd=function(e,r,a,n,i,s,o){var u=o,l=Math.min(a,i),f=Math.max(a,i),h=Math.min(n,s),c=Math.max(n,s);return l-u<=e&&e<=f+u&&h-u<=r&&r<=c+u},Jd=function(e,r,a,n,i,s,o,u,l){var f={x1:Math.min(a,o,i)-l,x2:Math.max(a,o,i)+l,y1:Math.min(n,u,s)-l,y2:Math.max(n,u,s)+l};return!(ef.x2||rf.y2)},jd=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var s=Math.sqrt(i),o=2*e,u=(-r+s)/o,l=(-r-s)/o;return[u,l]},eg=function(e,r,a,n,i){var s=1e-5;e===0&&(e=s),r/=e,a/=e,n/=e;var o,u,l,f,h,c,v,d;if(u=(3*a-r*r)/9,l=-(27*n)+r*(9*a-2*(r*r)),l/=54,o=u*u*u+l*l,i[1]=0,v=r/3,o>0){h=l+Math.sqrt(o),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),c=l-Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-v+h+c,v+=(h+c)/2,i[4]=i[2]=-v,v=Math.sqrt(3)*(-c+h)/2,i[3]=v,i[5]=-v;return}if(i[5]=i[3]=0,o===0){d=l<0?-Math.pow(-l,1/3):Math.pow(l,1/3),i[0]=-v+2*d,i[4]=i[2]=-(d+v);return}u=-u,f=u*u*u,f=Math.acos(l/Math.sqrt(f)),d=2*Math.sqrt(u),i[0]=-v+d*Math.cos(f/3),i[2]=-v+d*Math.cos((f+2*Math.PI)/3),i[4]=-v+d*Math.cos((f+4*Math.PI)/3)},tg=function(e,r,a,n,i,s,o,u){var l=1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*u+4*s*s-4*s*u+u*u,f=1*9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*u-6*s*s+3*s*u,h=1*3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*u-n*r+2*s*s+2*s*r-u*r,c=1*a*i-a*a+a*e-i*e+n*s-n*n+n*r-s*r,v=[];eg(l,f,h,c,v);for(var d=1e-7,g=[],b=0;b<6;b+=2)Math.abs(v[b+1])=0&&v[b]<=1&&g.push(v[b]);g.push(1),g.push(0);for(var p=-1,m,y,w,C=0;C=0?wl?(e-i)*(e-i)+(r-s)*(r-s):f-c},ut=function(e,r,a){for(var n,i,s,o,u,l=0,f=0;f=e&&e>=s||n<=e&&e<=s)u=(e-n)/(s-n)*(o-i)+i,u>r&&l++;else continue;return l%2!==0},Rt=function(e,r,a,n,i,s,o,u,l){var f=new Array(a.length),h;u[0]!=null?(h=Math.atan(u[1]/u[0]),u[0]<0?h=h+Math.PI/2:h=-h-Math.PI/2):h=u;for(var c=Math.cos(-h),v=Math.sin(-h),d=0;d0){var b=Co(f,-l);g=To(b)}else g=f;return ut(e,r,g)},ag=function(e,r,a,n,i,s,o){for(var u=new Array(a.length),l=s/2,f=o/2,h=fi(s,o),c=h*h,v=0;v=0&&b<=1&&m.push(b),p>=0&&p<=1&&m.push(p),m.length===0)return[];var y=m[0]*u[0]+e,w=m[0]*u[1]+r;if(m.length>1){if(m[0]==m[1])return[y,w];var C=m[1]*u[0]+e,D=m[1]*u[1]+r;return[y,w,C,D]}else return[y,w]},An=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},_t=function(e,r,a,n,i,s,o,u,l){var f=e-i,h=a-e,c=o-i,v=r-s,d=n-r,g=u-s,b=c*v-g*f,p=h*v-d*f,m=g*h-c*d;if(m!==0){var y=b/m,w=p/m,C=.001,D=0-C,E=1+C;return D<=y&&y<=E&&D<=w&&w<=E?[e+y*h,r+y*d]:l?[e+y*h,r+y*d]:[]}else return b===0||p===0?An(e,a,o)===o?[o,u]:An(e,a,i)===i?[i,s]:An(i,o,a)===a?[a,n]:[]:[]},ia=function(e,r,a,n,i,s,o,u){var l=[],f,h=new Array(a.length),c=!0;s==null&&(c=!1);var v;if(c){for(var d=0;d0){var g=Co(h,-u);v=To(g)}else v=h}else v=a;for(var b,p,m,y,w=0;w2){for(var I=[l[0],l[1]],R=Math.pow(I[0]-e,2)+Math.pow(I[1]-r,2),P=1;Pf&&(f=w)},get:function(y){return l[y]}},c=0;c0?I=k.edgesTo(O)[0]:I=O.edgesTo(k)[0];var R=n(I);O=O.id(),T[O]>T[A]+R&&(T[O]=T[A]+R,x.nodes.indexOf(O)<0?x.push(O):x.updateItem(O),E[O]=0,D[O]=[]),T[O]==T[A]+R&&(E[O]=E[O]+E[A],D[O].push(A))}else for(var P=0;P0;){for(var $=C.pop(),V=0;V0&&o.push(a[u]);o.length!==0&&i.push(n.collection(o))}return i},bg=function(e,r){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:xg,o=n,u,l,f=0;f=2?Ur(e,r,a,0,ji,Tg):Ur(e,r,a,0,Ji)},squaredEuclidean:function(e,r,a){return Ur(e,r,a,0,ji)},manhattan:function(e,r,a){return Ur(e,r,a,0,Ji)},max:function(e,r,a){return Ur(e,r,a,-1/0,Cg)}};Ar["squared-euclidean"]=Ar.squaredEuclidean;Ar.squaredeuclidean=Ar.squaredEuclidean;function hn(t,e,r,a,n,i){var s;return Fe(t)?s=t:s=Ar[t]||Ar.euclidean,e===0&&Fe(t)?s(n,i):s(e,r,a,n,i)}var Dg=Ze({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),hi=function(e){return Dg(e)},Ka=function(e,r,a,n,i){var s=i!=="kMedoids",o=s?function(h){return a[h]}:function(h){return n[h](a)},u=function(c){return n[c](r)},l=a,f=r;return hn(e,n.length,o,u,l,f)},On=function(e,r,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(r),u=null,l=0;la)return!1}return!0},Ag=function(e,r,a){for(var n=0;no&&(o=r[l][f],u=f);i[u].push(e[l])}for(var h=0;h=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var d=r[s],g=r[n[s]],b;i.mode==="dendrogram"?b={left:d,right:g,key:d.key}:b={value:d.value.concat(g.value),key:d.key},e[d.index]=b,e.splice(g.index,1),r[d.key]=b;for(var p=0;pa[g.key][m.key]&&(u=a[g.key][m.key])):i.linkage==="max"?(u=a[d.key][m.key],a[d.key][m.key]0&&n.push(i);return n},is=function(e,r,a){for(var n=[],i=0;io&&(s=l,o=r[i*e+l])}s>0&&n.push(s)}for(var f=0;fl&&(u=f,l=h)}a[i]=s[u]}return n=is(e,r,a),n},ss=function(e){for(var r=this.cy(),a=this.nodes(),n=_g(e),i={},s=0;s=L?(A=L,L=O,M=k):O>A&&(A=O);for(var I=0;I0?1:0;E[x%n.minIterations*o+$]=V,F+=V}if(F>0&&(x>=n.minIterations-1||x==n.maxIterations-1)){for(var U=0,H=0;H1||D>1)&&(o=!0),h[y]=[],m.outgoers().forEach(function(T){T.isEdge()&&h[y].push(T.id())})}else c[y]=[void 0,m.target().id()]}):s.forEach(function(m){var y=m.id();if(m.isNode()){var w=m.degree(!0);w%2&&(u?l?o=!0:l=y:u=y),h[y]=[],m.connectedEdges().forEach(function(C){return h[y].push(C.id())})}else c[y]=[m.source().id(),m.target().id()]});var v={found:!1,trail:void 0};if(o)return v;if(l&&u)if(i){if(f&&l!=f)return v;f=l}else{if(f&&l!=f&&u!=f)return v;f||(f=l)}else f||(f=s[0].id());var d=function(y){for(var w=y,C=[y],D,E,T;h[w].length;)D=h[w].shift(),E=c[D][0],T=c[D][1],w!=T?(h[T]=h[T].filter(function(x){return x!=D}),w=T):!i&&w!=E&&(h[E]=h[E].filter(function(x){return x!=D}),w=E),C.unshift(D),C.unshift(w);return C},g=[],b=[];for(b=d(f);b.length!=1;)h[b[0]].length==0?(g.unshift(s.getElementById(b.shift())),g.unshift(s.getElementById(b.shift()))):b=d(b.shift()).concat(b);g.unshift(s.getElementById(b.shift()));for(var p in h)if(h[p].length)return v;return v.found=!0,v.trail=this.spawn(g,!0),v}},Ia=function(){var e=this,r={},a=0,n=0,i=[],s=[],o={},u=function(c,v){for(var d=s.length-1,g=[],b=e.spawn();s[d].x!=c||s[d].y!=v;)g.push(s.pop().edge),d--;g.push(s.pop().edge),g.forEach(function(p){var m=p.connectedNodes().intersection(e);b.merge(p),m.forEach(function(y){var w=y.id(),C=y.connectedEdges().intersection(e);b.merge(y),r[w].cutVertex?b.merge(C.filter(function(D){return D.isLoop()})):b.merge(C)})}),i.push(b)},l=function h(c,v,d){c===d&&(n+=1),r[v]={id:a,low:a++,cutVertex:!1};var g=e.getElementById(v).connectedEdges().intersection(e);if(g.size()===0)i.push(e.spawn(e.getElementById(v)));else{var b,p,m,y;g.forEach(function(w){b=w.source().id(),p=w.target().id(),m=b===v?p:b,m!==d&&(y=w.id(),o[y]||(o[y]=!0,s.push({x:v,y:m,edge:w})),m in r?r[v].low=Math.min(r[v].low,r[m].id):(h(c,m,v),r[v].low=Math.min(r[v].low,r[m].low),r[v].id<=r[m].low&&(r[v].cutVertex=!0,u(v,m))))})}};e.forEach(function(h){if(h.isNode()){var c=h.id();c in r||(n=0,l(c,c),r[c].cutVertex=n>1)}});var f=Object.keys(r).filter(function(h){return r[h].cutVertex}).map(function(h){return e.getElementById(h)});return{cut:e.spawn(f),components:i}},Zg={hopcroftTarjanBiconnected:Ia,htbc:Ia,htb:Ia,hopcroftTarjanBiconnectedComponents:Ia},Ra=function(){var e=this,r={},a=0,n=[],i=[],s=e.spawn(e),o=function u(l){i.push(l),r[l]={index:a,low:a++,explored:!1};var f=e.getElementById(l).connectedEdges().intersection(e);if(f.forEach(function(g){var b=g.target().id();b!==l&&(b in r||u(b),r[b].explored||(r[l].low=Math.min(r[l].low,r[b].low)))}),r[l].index===r[l].low){for(var h=e.spawn();;){var c=i.pop();if(h.merge(e.getElementById(c)),r[c].low=r[l].index,r[c].explored=!0,c===l)break}var v=h.edgesWith(h),d=h.merge(v);n.push(d),s=s.difference(d)}};return e.forEach(function(u){if(u.isNode()){var l=u.id();l in r||o(l)}}),{cut:s,components:n}},Qg={tarjanStronglyConnected:Ra,tsc:Ra,tscc:Ra,tarjanStronglyConnectedComponents:Ra},Mo={};[aa,Ld,Ad,Nd,Id,kd,Fd,ug,Cr,Dr,$n,wg,kg,$g,qg,Kg,Zg,Qg].forEach(function(t){ve(Mo,t)});var Io=0,Ro=1,ko=2,kt=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=Io,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};kt.prototype={fulfill:function(e){return os(this,Ro,"fulfillValue",e)},reject:function(e){return os(this,ko,"rejectReason",e)},then:function(e,r){var a=this,n=new kt;return a.onFulfilled.push(ls(e,n,"fulfill")),a.onRejected.push(ls(r,n,"reject")),Po(a),n.proxy}};var os=function(e,r,a,n){return e.state===Io&&(e.state=r,e[a]=n,Po(e)),e},Po=function(e){e.state===Ro?us(e,"onFulfilled",e.fulfillValue):e.state===ko&&us(e,"onRejected",e.rejectReason)},us=function(e,r,a){if(e[r].length!==0){var n=e[r];e[r]=[];var i=function(){for(var o=0;o0}},clearQueue:function(){return function(){var r=this,a=r.length!==void 0,n=a?r:[r],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var s=0;s0&&this.spawn(n).updateStyle().emit("class"),r},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var r=this[0];return r!=null&&r._private.classes.has(e)},toggleClass:function(e,r){Ie(e)||(e=e.match(/\S+/g)||[]);for(var a=this,n=r===void 0,i=[],s=0,o=a.length;s0&&this.spawn(i).updateStyle().emit("class"),a},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,r){var a=this;if(r==null)r=250;else if(r===0)return a;return a.addClass(e),setTimeout(function(){a.removeClass(e)},r),a}};$a.className=$a.classNames=$a.classes;var xe={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:Ve,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};xe.variable="(?:[\\w-.]|(?:\\\\"+xe.metaChar+"))+";xe.className="(?:[\\w-]|(?:\\\\"+xe.metaChar+"))+";xe.value=xe.string+"|"+xe.number;xe.id=xe.variable;(function(){var t,e,r;for(t=xe.comparatorOp.split("|"),r=0;r=0)&&e!=="="&&(xe.comparatorOp+="|\\!"+e)})();var Ne=function(){return{checks:[]}},ie={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},_n=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(t,e){return sd(t.selector,e.selector)}),ap=function(){for(var t={},e,r=0;r<_n.length;r++)e=_n[r],t[e.selector]=e.matches;return t}(),np=function(e,r){return ap[e](r)},ip="("+_n.map(function(t){return t.selector}).join("|")+")",dr=function(e){return e.replace(new RegExp("\\\\("+xe.metaChar+")","g"),function(r,a){return a})},zt=function(e,r,a){e[e.length-1]=a},Un=[{name:"group",query:!0,regex:"("+xe.group+")",populate:function(e,r,a){var n=Mt(a,1),i=n[0];r.checks.push({type:ie.GROUP,value:i==="*"?i:i+"s"})}},{name:"state",query:!0,regex:ip,populate:function(e,r,a){var n=Mt(a,1),i=n[0];r.checks.push({type:ie.STATE,value:i})}},{name:"id",query:!0,regex:"\\#("+xe.id+")",populate:function(e,r,a){var n=Mt(a,1),i=n[0];r.checks.push({type:ie.ID,value:dr(i)})}},{name:"className",query:!0,regex:"\\.("+xe.className+")",populate:function(e,r,a){var n=Mt(a,1),i=n[0];r.checks.push({type:ie.CLASS,value:dr(i)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+xe.variable+")\\s*\\]",populate:function(e,r,a){var n=Mt(a,1),i=n[0];r.checks.push({type:ie.DATA_EXIST,field:dr(i)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+xe.variable+")\\s*("+xe.comparatorOp+")\\s*("+xe.value+")\\s*\\]",populate:function(e,r,a){var n=Mt(a,3),i=n[0],s=n[1],o=n[2],u=new RegExp("^"+xe.string+"$").exec(o)!=null;u?o=o.substring(1,o.length-1):o=parseFloat(o),r.checks.push({type:ie.DATA_COMPARE,field:dr(i),operator:s,value:o})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+xe.boolOp+")\\s*("+xe.variable+")\\s*\\]",populate:function(e,r,a){var n=Mt(a,2),i=n[0],s=n[1];r.checks.push({type:ie.DATA_BOOL,field:dr(s),operator:i})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+xe.meta+")\\s*("+xe.comparatorOp+")\\s*("+xe.number+")\\s*\\]\\]",populate:function(e,r,a){var n=Mt(a,3),i=n[0],s=n[1],o=n[2];r.checks.push({type:ie.META_COMPARE,field:dr(i),operator:s,value:parseFloat(o)})}},{name:"nextQuery",separator:!0,regex:xe.separator,populate:function(e,r){var a=e.currentSubject,n=e.edgeCount,i=e.compoundCount,s=e[e.length-1];a!=null&&(s.subject=a,e.currentSubject=null),s.edgeCount=n,s.compoundCount=i,e.edgeCount=0,e.compoundCount=0;var o=e[e.length++]=Ne();return o}},{name:"directedEdge",separator:!0,regex:xe.directedEdge,populate:function(e,r){if(e.currentSubject==null){var a=Ne(),n=r,i=Ne();return a.checks.push({type:ie.DIRECTED_EDGE,source:n,target:i}),zt(e,r,a),e.edgeCount++,i}else{var s=Ne(),o=r,u=Ne();return s.checks.push({type:ie.NODE_SOURCE,source:o,target:u}),zt(e,r,s),e.edgeCount++,u}}},{name:"undirectedEdge",separator:!0,regex:xe.undirectedEdge,populate:function(e,r){if(e.currentSubject==null){var a=Ne(),n=r,i=Ne();return a.checks.push({type:ie.UNDIRECTED_EDGE,nodes:[n,i]}),zt(e,r,a),e.edgeCount++,i}else{var s=Ne(),o=r,u=Ne();return s.checks.push({type:ie.NODE_NEIGHBOR,node:o,neighbor:u}),zt(e,r,s),u}}},{name:"child",separator:!0,regex:xe.child,populate:function(e,r){if(e.currentSubject==null){var a=Ne(),n=Ne(),i=e[e.length-1];return a.checks.push({type:ie.CHILD,parent:i,child:n}),zt(e,r,a),e.compoundCount++,n}else if(e.currentSubject===r){var s=Ne(),o=e[e.length-1],u=Ne(),l=Ne(),f=Ne(),h=Ne();return s.checks.push({type:ie.COMPOUND_SPLIT,left:o,right:u,subject:l}),l.checks=r.checks,r.checks=[{type:ie.TRUE}],h.checks.push({type:ie.TRUE}),u.checks.push({type:ie.PARENT,parent:h,child:f}),zt(e,o,s),e.currentSubject=l,e.compoundCount++,f}else{var c=Ne(),v=Ne(),d=[{type:ie.PARENT,parent:c,child:v}];return c.checks=r.checks,r.checks=d,e.compoundCount++,v}}},{name:"descendant",separator:!0,regex:xe.descendant,populate:function(e,r){if(e.currentSubject==null){var a=Ne(),n=Ne(),i=e[e.length-1];return a.checks.push({type:ie.DESCENDANT,ancestor:i,descendant:n}),zt(e,r,a),e.compoundCount++,n}else if(e.currentSubject===r){var s=Ne(),o=e[e.length-1],u=Ne(),l=Ne(),f=Ne(),h=Ne();return s.checks.push({type:ie.COMPOUND_SPLIT,left:o,right:u,subject:l}),l.checks=r.checks,r.checks=[{type:ie.TRUE}],h.checks.push({type:ie.TRUE}),u.checks.push({type:ie.ANCESTOR,ancestor:h,descendant:f}),zt(e,o,s),e.currentSubject=l,e.compoundCount++,f}else{var c=Ne(),v=Ne(),d=[{type:ie.ANCESTOR,ancestor:c,descendant:v}];return c.checks=r.checks,r.checks=d,e.compoundCount++,v}}},{name:"subject",modifier:!0,regex:xe.subject,populate:function(e,r){if(e.currentSubject!=null&&e.currentSubject!==r)return Ae("Redefinition of subject in selector `"+e.toString()+"`"),!1;e.currentSubject=r;var a=e[e.length-1],n=a.checks[0],i=n==null?null:n.type;i===ie.DIRECTED_EDGE?n.type=ie.NODE_TARGET:i===ie.UNDIRECTED_EDGE&&(n.type=ie.NODE_NEIGHBOR,n.node=n.nodes[1],n.neighbor=n.nodes[0],n.nodes=null)}}];Un.forEach(function(t){return t.regexObj=new RegExp("^"+t.regex)});var sp=function(e){for(var r,a,n,i=0;i0&&f.edgeCount>0)return Ae("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(f.edgeCount>1)return Ae("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;f.edgeCount===1&&Ae("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},lp=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(f){return f??""},r=function(f){return le(f)?'"'+f+'"':e(f)},a=function(f){return" "+f+" "},n=function(f,h){var c=f.type,v=f.value;switch(c){case ie.GROUP:{var d=e(v);return d.substring(0,d.length-1)}case ie.DATA_COMPARE:{var g=f.field,b=f.operator;return"["+g+a(e(b))+r(v)+"]"}case ie.DATA_BOOL:{var p=f.operator,m=f.field;return"["+e(p)+m+"]"}case ie.DATA_EXIST:{var y=f.field;return"["+y+"]"}case ie.META_COMPARE:{var w=f.operator,C=f.field;return"[["+C+a(e(w))+r(v)+"]]"}case ie.STATE:return v;case ie.ID:return"#"+v;case ie.CLASS:return"."+v;case ie.PARENT:case ie.CHILD:return i(f.parent,h)+a(">")+i(f.child,h);case ie.ANCESTOR:case ie.DESCENDANT:return i(f.ancestor,h)+" "+i(f.descendant,h);case ie.COMPOUND_SPLIT:{var D=i(f.left,h),E=i(f.subject,h),T=i(f.right,h);return D+(D.length>0?" ":"")+E+T}case ie.TRUE:return""}},i=function(f,h){return f.checks.reduce(function(c,v,d){return c+(h===f&&d===0?"$":"")+n(v,h)},"")},s="",o=0;o1&&o=0&&(r=r.replace("!",""),h=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),f=!0),(i||o||f)&&(u=!i&&!s?"":""+e,l=""+a),f&&(e=u=u.toLowerCase(),a=l=l.toLowerCase()),r){case"*=":n=u.indexOf(l)>=0;break;case"$=":n=u.indexOf(l,u.length-l.length)>=0;break;case"^=":n=u.indexOf(l)===0;break;case"=":n=e===a;break;case">":c=!0,n=e>a;break;case">=":c=!0,n=e>=a;break;case"<":c=!0,n=e0;){var f=n.shift();e(f),i.add(f.id()),o&&a(n,i,f)}return t}function Fo(t,e,r){if(r.isParent())for(var a=r._private.children,n=0;n1&&arguments[1]!==void 0?arguments[1]:!0;return ci(this,t,e,Fo)};function Go(t,e,r){if(r.isChild()){var a=r._private.parent;e.has(a.id())||t.push(a)}}Or.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return ci(this,t,e,Go)};function yp(t,e,r){Go(t,e,r),Fo(t,e,r)}Or.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return ci(this,t,e,yp)};Or.ancestors=Or.parents;var sa,zo;sa=zo={data:Le.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:Le.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Le.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Le.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Le.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Le.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};sa.attr=sa.data;sa.removeAttr=sa.removeData;var mp=zo,vn={};function Nn(t){return function(e){var r=this;if(e===void 0&&(e=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var a=0,n=r[0],i=n._private.edges,s=0;se}),minIndegree:gr("indegree",function(t,e){return te}),minOutdegree:gr("outdegree",function(t,e){return te})});ve(vn,{totalDegree:function(e){for(var r=0,a=this.nodes(),n=0;n0,c=h;h&&(f=f[0]);var v=c?f.position():{x:0,y:0};r!==void 0?l.position(e,r+v[e]):i!==void 0&&l.position({x:i.x+v.x,y:i.y+v.y})}else{var d=a.position(),g=o?a.parent():null,b=g&&g.length>0,p=b;b&&(g=g[0]);var m=p?g.position():{x:0,y:0};return i={x:d.x-m.x,y:d.y-m.y},e===void 0?i:i[e]}else if(!s)return;return this}};Tt.modelPosition=Tt.point=Tt.position;Tt.modelPositions=Tt.points=Tt.positions;Tt.renderedPoint=Tt.renderedPosition;Tt.relativePoint=Tt.relativePosition;var bp=$o,Sr,Zt;Sr=Zt={};Zt.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),a=r.zoom(),n=r.pan(),i=e.x1*a+n.x,s=e.x2*a+n.x,o=e.y1*a+n.y,u=e.y2*a+n.y;return{x1:i,x2:s,y1:o,y2:u,w:s-i,h:u-o}};Zt.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var a=r._private;a.compoundBoundsClean=!1,a.bbCache=null,t||r.emitAndNotify("bounds")}}),this)};Zt.updateCompoundBounds=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(s){if(!s.isParent())return;var o=s._private,u=s.children(),l=s.pstyle("compound-sizing-wrt-labels").value==="include",f={width:{val:s.pstyle("min-width").pfValue,left:s.pstyle("min-width-bias-left"),right:s.pstyle("min-width-bias-right")},height:{val:s.pstyle("min-height").pfValue,top:s.pstyle("min-height-bias-top"),bottom:s.pstyle("min-height-bias-bottom")}},h=u.boundingBox({includeLabels:l,includeOverlays:!1,useCache:!1}),c=o.position;(h.w===0||h.h===0)&&(h={w:s.pstyle("width").pfValue,h:s.pstyle("height").pfValue},h.x1=c.x-h.w/2,h.x2=c.x+h.w/2,h.y1=c.y-h.h/2,h.y2=c.y+h.h/2);function v(x,S,L){var A=0,M=0,O=S+L;return x>0&&O>0&&(A=S/O*x,M=L/O*x),{biasDiff:A,biasComplementDiff:M}}function d(x,S,L,A){if(L.units==="%")switch(A){case"width":return x>0?L.pfValue*x:0;case"height":return S>0?L.pfValue*S:0;case"average":return x>0&&S>0?L.pfValue*(x+S)/2:0;case"min":return x>0&&S>0?x>S?L.pfValue*S:L.pfValue*x:0;case"max":return x>0&&S>0?x>S?L.pfValue*x:L.pfValue*S:0;default:return 0}else return L.units==="px"?L.pfValue:0}var g=f.width.left.value;f.width.left.units==="px"&&f.width.val>0&&(g=g*100/f.width.val);var b=f.width.right.value;f.width.right.units==="px"&&f.width.val>0&&(b=b*100/f.width.val);var p=f.height.top.value;f.height.top.units==="px"&&f.height.val>0&&(p=p*100/f.height.val);var m=f.height.bottom.value;f.height.bottom.units==="px"&&f.height.val>0&&(m=m*100/f.height.val);var y=v(f.width.val-h.w,g,b),w=y.biasDiff,C=y.biasComplementDiff,D=v(f.height.val-h.h,p,m),E=D.biasDiff,T=D.biasComplementDiff;o.autoPadding=d(h.w,h.h,s.pstyle("padding"),s.pstyle("padding-relative-to").value),o.autoWidth=Math.max(h.w,f.width.val),c.x=(-w+h.x1+h.x2+C)/2,o.autoHeight=Math.max(h.h,f.height.val),c.y=(-E+h.y1+h.y2+T)/2}for(var a=0;ae.x2?n:e.x2,e.y1=ae.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},tr=function(e,r){return r==null?e:wt(e,r.x1,r.y1,r.x2,r.y2)},Yr=function(e,r,a){return xt(e,r,a)},ka=function(e,r,a){if(!r.cy().headless()){var n=r._private,i=n.rstyle,s=i.arrowWidth/2,o=r.pstyle(a+"-arrow-shape").value,u,l;if(o!=="none"){a==="source"?(u=i.srcX,l=i.srcY):a==="target"?(u=i.tgtX,l=i.tgtY):(u=i.midX,l=i.midY);var f=n.arrowBounds=n.arrowBounds||{},h=f[a]=f[a]||{};h.x1=u-s,h.y1=l-s,h.x2=u+s,h.y2=l+s,h.w=h.x2-h.x1,h.h=h.y2-h.y1,za(h,1),wt(e,h.x1,h.y1,h.x2,h.y2)}}},Mn=function(e,r,a){if(!r.cy().headless()){var n;a?n=a+"-":n="";var i=r._private,s=i.rstyle,o=r.pstyle(n+"label").strValue;if(o){var u=r.pstyle("text-halign"),l=r.pstyle("text-valign"),f=Yr(s,"labelWidth",a),h=Yr(s,"labelHeight",a),c=Yr(s,"labelX",a),v=Yr(s,"labelY",a),d=r.pstyle(n+"text-margin-x").pfValue,g=r.pstyle(n+"text-margin-y").pfValue,b=r.isEdge(),p=r.pstyle(n+"text-rotation"),m=r.pstyle("text-outline-width").pfValue,y=r.pstyle("text-border-width").pfValue,w=y/2,C=r.pstyle("text-background-padding").pfValue,D=2,E=h,T=f,x=T/2,S=E/2,L,A,M,O;if(b)L=c-x,A=c+x,M=v-S,O=v+S;else{switch(u.value){case"left":L=c-T,A=c;break;case"center":L=c-x,A=c+x;break;case"right":L=c,A=c+T;break}switch(l.value){case"top":M=v-E,O=v;break;case"center":M=v-S,O=v+S;break;case"bottom":M=v,O=v+E;break}}L+=d-Math.max(m,w)-C-D,A+=d+Math.max(m,w)+C+D,M+=g-Math.max(m,w)-C-D,O+=g+Math.max(m,w)+C+D;var k=a||"main",I=i.labelBounds,R=I[k]=I[k]||{};R.x1=L,R.y1=M,R.x2=A,R.y2=O,R.w=A-L,R.h=O-M;var P=b&&p.strValue==="autorotate",B=p.pfValue!=null&&p.pfValue!==0;if(P||B){var G=P?Yr(i.rstyle,"labelAngle",a):p.pfValue,F=Math.cos(G),$=Math.sin(G),V=(L+A)/2,U=(M+O)/2;if(!b){switch(u.value){case"left":V=A;break;case"right":V=L;break}switch(l.value){case"top":U=O;break;case"bottom":U=M;break}}var H=function(de,re){return de=de-V,re=re-U,{x:de*F-re*$+V,y:de*$+re*F+U}},Y=H(L,M),z=H(L,O),X=H(A,M),K=H(A,O);L=Math.min(Y.x,z.x,X.x,K.x),A=Math.max(Y.x,z.x,X.x,K.x),M=Math.min(Y.y,z.y,X.y,K.y),O=Math.max(Y.y,z.y,X.y,K.y)}var Z=k+"Rot",te=I[Z]=I[Z]||{};te.x1=L,te.y1=M,te.x2=A,te.y2=O,te.w=A-L,te.h=O-M,wt(e,L,M,A,O),wt(i.labelBounds.all,L,M,A,O)}return e}},Ep=function(e,r){var a=e._private.cy,n=a.styleEnabled(),i=a.headless(),s=lt(),o=e._private,u=e.isNode(),l=e.isEdge(),f,h,c,v,d,g,b=o.rstyle,p=u&&n?e.pstyle("bounds-expansion").pfValue:[0],m=function(fe){return fe.pstyle("display").value!=="none"},y=!n||m(e)&&(!l||m(e.source())&&m(e.target()));if(y){var w=0,C=0;n&&r.includeOverlays&&(w=e.pstyle("overlay-opacity").value,w!==0&&(C=e.pstyle("overlay-padding").value));var D=0,E=0;n&&r.includeUnderlays&&(D=e.pstyle("underlay-opacity").value,D!==0&&(E=e.pstyle("underlay-padding").value));var T=Math.max(C,E),x=0,S=0;if(n&&(x=e.pstyle("width").pfValue,S=x/2),u&&r.includeNodes){var L=e.position();d=L.x,g=L.y;var A=e.outerWidth(),M=A/2,O=e.outerHeight(),k=O/2;f=d-M,h=d+M,c=g-k,v=g+k,wt(s,f,c,h,v)}else if(l&&r.includeEdges)if(n&&!i){var I=e.pstyle("curve-style").strValue;if(f=Math.min(b.srcX,b.midX,b.tgtX),h=Math.max(b.srcX,b.midX,b.tgtX),c=Math.min(b.srcY,b.midY,b.tgtY),v=Math.max(b.srcY,b.midY,b.tgtY),f-=S,h+=S,c-=S,v+=S,wt(s,f,c,h,v),I==="haystack"){var R=b.haystackPts;if(R&&R.length===2){if(f=R[0].x,c=R[0].y,h=R[1].x,v=R[1].y,f>h){var P=f;f=h,h=P}if(c>v){var B=c;c=v,v=B}wt(s,f-S,c-S,h+S,v+S)}}else if(I==="bezier"||I==="unbundled-bezier"||I==="segments"||I==="taxi"){var G;switch(I){case"bezier":case"unbundled-bezier":G=b.bezierPts;break;case"segments":case"taxi":G=b.linePts;break}if(G!=null)for(var F=0;Fh){var z=f;f=h,h=z}if(c>v){var X=c;c=v,v=X}f-=S,h+=S,c-=S,v+=S,wt(s,f,c,h,v)}if(n&&r.includeEdges&&l&&(ka(s,e,"mid-source"),ka(s,e,"mid-target"),ka(s,e,"source"),ka(s,e,"target")),n){var K=e.pstyle("ghost").value==="yes";if(K){var Z=e.pstyle("ghost-offset-x").pfValue,te=e.pstyle("ghost-offset-y").pfValue;wt(s,s.x1+Z,s.y1+te,s.x2+Z,s.y2+te)}}var ce=o.bodyBounds=o.bodyBounds||{};Wi(ce,s),Ln(ce,p),za(ce,1),n&&(f=s.x1,h=s.x2,c=s.y1,v=s.y2,wt(s,f-T,c-T,h+T,v+T));var de=o.overlayBounds=o.overlayBounds||{};Wi(de,s),Ln(de,p),za(de,1);var re=o.labelBounds=o.labelBounds||{};re.all!=null?qd(re.all):re.all=lt(),n&&r.includeLabels&&(r.includeMainLabels&&Mn(s,e,null),l&&(r.includeSourceLabels&&Mn(s,e,"source"),r.includeTargetLabels&&Mn(s,e,"target")))}return s.x1=dt(s.x1),s.y1=dt(s.y1),s.x2=dt(s.x2),s.y2=dt(s.y2),s.w=dt(s.x2-s.x1),s.h=dt(s.y2-s.y1),s.w>0&&s.h>0&&y&&(Ln(s,p),za(s,1)),s},_o=function(e){var r=0,a=function(s){return(s?1:0)<0&&arguments[0]!==void 0?arguments[0]:Pp,e=arguments.length>1?arguments[1]:void 0,r=0;r=0;o--)s(o);return this};Kt.removeAllListeners=function(){return this.removeListener("*")};Kt.emit=Kt.trigger=function(t,e,r){var a=this.listeners,n=a.length;return this.emitting++,Ie(e)||(e=[e]),Bp(this,function(i,s){r!=null&&(a=[{event:s.event,type:s.type,namespace:s.namespace,callback:r}],n=a.length);for(var o=function(f){var h=a[f];if(h.type===s.type&&(!h.namespace||h.namespace===s.namespace||h.namespace===kp)&&i.eventMatches(i.context,h,s)){var c=[s];e!=null&&xd(c,e),i.beforeEmit(i.context,h,s),h.conf&&h.conf.one&&(i.listeners=i.listeners.filter(function(g){return g!==h}));var v=i.callbackContext(i.context,h,s),d=h.callback.apply(v,c);i.afterEmit(i.context,h,s),d===!1&&(s.stopPropagation(),s.preventDefault())}},u=0;u1&&!s){var o=this.length-1,u=this[o],l=u._private.data.id;this[o]=void 0,this[e]=u,i.set(l,{ele:u,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var r=this._private,a=e._private.data.id,n=r.map,i=n.get(a);if(!i)return this;var s=i.index;return this.unmergeAt(s),this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&le(e)){var a=e;e=r.mutableElements().filter(a)}for(var n=0;n=0;r--){var a=this[r];e(a)&&this.unmergeAt(r)}return this},map:function(e,r){for(var a=[],n=this,i=0;ia&&(a=u,n=o)}return{value:a,ele:n}},min:function(e,r){for(var a=1/0,n,i=this,s=0;s=0&&i"u"?"undefined":_e(Symbol))!=e&&_e(Symbol.iterator)!=e;r&&(Za[Symbol.iterator]=function(){var a=this,n={value:void 0,done:!1},i=0,s=this.length;return ro({next:function(){return i1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],n=a.cy();if(n.styleEnabled()&&a){this.cleanStyle();var i=a._private.style[e];return i??(r?n.style().getDefaultProperty(e):null)}},numericStyle:function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var a=r.pstyle(e);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},renderedStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=this[0];if(a)return r.style().getRenderedStyle(a,e)},style:function(e,r){var a=this.cy();if(!a.styleEnabled())return this;var n=!1,i=a.style();if(Te(e)){var s=e;i.applyBypass(this,s,n),this.emitAndNotify("style")}else if(le(e))if(r===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}else i.applyBypass(this,e,r,n),this.emitAndNotify("style");else if(e===void 0){var u=this[0];return u?i.getRawStyle(u):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=!1,n=r.style(),i=this;if(e===void 0)for(var s=0;s0&&e.push(f[0]),e.push(o[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}});et.neighbourhood=et.neighborhood;et.closedNeighbourhood=et.closedNeighborhood;et.openNeighbourhood=et.openNeighborhood;ve(et,{source:gt(function(e){var r=this[0],a;return r&&(a=r._private.source||r.cy().collection()),a&&e?a.filter(e):a},"source"),target:gt(function(e){var r=this[0],a;return r&&(a=r._private.target||r.cy().collection()),a&&e?a.filter(e):a},"target"),sources:ws({attr:"source"}),targets:ws({attr:"target"})});function ws(t){return function(r){for(var a=[],n=0;n0);return s},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});et.componentsOf=et.components;var Ke=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){ze("A collection must have a reference to the core");return}var i=new St,s=!1;if(!r)r=[];else if(r.length>0&&Te(r[0])&&!ya(r[0])){s=!0;for(var o=[],u=new Rr,l=0,f=r.length;l0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=r.cy(),n=a._private,i=[],s=[],o,u=0,l=r.length;u0){for(var B=o.length===r.length?r:new Ke(a,o),G=0;G0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=[],n={},i=r._private.cy;function s(O){for(var k=O._private.edges,I=0;I0&&(t?L.emitAndNotify("remove"):e&&L.emit("remove"));for(var A=0;A0?A=O:L=O;while(Math.abs(M)>s&&++k=i?m(S,k):I===0?k:w(S,L,L+l)}var D=!1;function E(){D=!0,(t!==e||r!==a)&&y()}var T=function(L){return D||E(),t===e&&r===a?L:L===0?0:L===1?1:b(C(L),e,a)};T.getControlPoints=function(){return[{x:t,y:e},{x:r,y:a}]};var x="generateBezier("+[t,e,r,a]+")";return T.toString=function(){return x},T}var qp=function(){function t(a){return-a.tension*a.x-a.friction*a.v}function e(a,n,i){var s={x:a.x+i.dx*n,v:a.v+i.dv*n,tension:a.tension,friction:a.friction};return{dx:s.v,dv:t(s)}}function r(a,n){var i={dx:a.v,dv:t(a)},s=e(a,n*.5,i),o=e(a,n*.5,s),u=e(a,n,o),l=1/6*(i.dx+2*(s.dx+o.dx)+u.dx),f=1/6*(i.dv+2*(s.dv+o.dv)+u.dv);return a.x=a.x+l*n,a.v=a.v+f*n,a}return function a(n,i,s){var o={x:-1,v:0,tension:null,friction:null},u=[0],l=0,f=1/1e4,h=16/1e3,c,v,d;for(n=parseFloat(n)||500,i=parseFloat(i)||20,s=s||null,o.tension=n,o.friction=i,c=s!==null,c?(l=a(n,i),v=l/s*h):v=h;d=r(d||o,v),u.push(1+d.x),l+=16,Math.abs(d.x)>f&&Math.abs(d.v)>f;);return c?function(g){return u[g*(u.length-1)|0]}:l}}(),Re=function(e,r,a,n){var i=Xp(e,r,a,n);return function(s,o,u){return s+(o-s)*i(u)}},_a={linear:function(e,r,a){return e+(r-e)*a},ease:Re(.25,.1,.25,1),"ease-in":Re(.42,0,1,1),"ease-out":Re(0,0,.58,1),"ease-in-out":Re(.42,0,.58,1),"ease-in-sine":Re(.47,0,.745,.715),"ease-out-sine":Re(.39,.575,.565,1),"ease-in-out-sine":Re(.445,.05,.55,.95),"ease-in-quad":Re(.55,.085,.68,.53),"ease-out-quad":Re(.25,.46,.45,.94),"ease-in-out-quad":Re(.455,.03,.515,.955),"ease-in-cubic":Re(.55,.055,.675,.19),"ease-out-cubic":Re(.215,.61,.355,1),"ease-in-out-cubic":Re(.645,.045,.355,1),"ease-in-quart":Re(.895,.03,.685,.22),"ease-out-quart":Re(.165,.84,.44,1),"ease-in-out-quart":Re(.77,0,.175,1),"ease-in-quint":Re(.755,.05,.855,.06),"ease-out-quint":Re(.23,1,.32,1),"ease-in-out-quint":Re(.86,0,.07,1),"ease-in-expo":Re(.95,.05,.795,.035),"ease-out-expo":Re(.19,1,.22,1),"ease-in-out-expo":Re(1,0,0,1),"ease-in-circ":Re(.6,.04,.98,.335),"ease-out-circ":Re(.075,.82,.165,1),"ease-in-out-circ":Re(.785,.135,.15,.86),spring:function(e,r,a){if(a===0)return _a.linear;var n=qp(e,r,a);return function(i,s,o){return i+(s-i)*n(o)}},"cubic-bezier":Re};function Cs(t,e,r,a,n){if(a===1||e===r)return r;var i=n(e,r,a);return t==null||((t.roundValue||t.color)&&(i=Math.round(i)),t.min!==void 0&&(i=Math.max(i,t.min)),t.max!==void 0&&(i=Math.min(i,t.max))),i}function Ds(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function pr(t,e,r,a,n){var i=n!=null?n.type:null;r<0?r=0:r>1&&(r=1);var s=Ds(t,n),o=Ds(e,n);if(ae(s)&&ae(o))return Cs(i,s,o,r,a);if(Ie(s)&&Ie(o)){for(var u=[],l=0;l0?(v==="spring"&&d.push(s.duration),s.easingImpl=_a[v].apply(null,d)):s.easingImpl=_a[v]}var g=s.easingImpl,b;if(s.duration===0?b=1:b=(r-u)/s.duration,s.applying&&(b=s.progress),b<0?b=0:b>1&&(b=1),s.delay==null){var p=s.startPosition,m=s.position;if(m&&n&&!t.locked()){var y={};Xr(p.x,m.x)&&(y.x=pr(p.x,m.x,b,g)),Xr(p.y,m.y)&&(y.y=pr(p.y,m.y,b,g)),t.position(y)}var w=s.startPan,C=s.pan,D=i.pan,E=C!=null&&a;E&&(Xr(w.x,C.x)&&(D.x=pr(w.x,C.x,b,g)),Xr(w.y,C.y)&&(D.y=pr(w.y,C.y,b,g)),t.emit("pan"));var T=s.startZoom,x=s.zoom,S=x!=null&&a;S&&(Xr(T,x)&&(i.zoom=na(i.minZoom,pr(T,x,b,g),i.maxZoom)),t.emit("zoom")),(E||S)&&t.emit("viewport");var L=s.style;if(L&&L.length>0&&n){for(var A=0;A=0;E--){var T=D[E];T()}D.splice(0,D.length)},m=v.length-1;m>=0;m--){var y=v[m],w=y._private;if(w.stopped){v.splice(m,1),w.hooked=!1,w.playing=!1,w.started=!1,p(w.frames);continue}!w.playing&&!w.applying||(w.playing&&w.applying&&(w.applying=!1),w.started||Kp(f,y,t),Wp(f,y,t,h),w.applying&&(w.applying=!1),p(w.frames),w.step!=null&&w.step(t),y.completed()&&(v.splice(m,1),w.hooked=!1,w.playing=!1,w.started=!1,p(w.completes)),g=!0)}return!h&&v.length===0&&d.length===0&&a.push(f),g}for(var i=!1,s=0;s0?e.notify("draw",r):e.notify("draw")),r.unmerge(a),e.emit("step")}var Zp={animate:Le.animate(),animation:Le.animation(),animated:Le.animated(),clearQueue:Le.clearQueue(),delay:Le.delay(),delayAnimation:Le.delayAnimation(),stop:Le.stop(),addToAnimationPool:function(e){var r=this;r.styleEnabled()&&r._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function r(){e._private.animationsRunning&&qa(function(i){Ss(i,e),r()})}var a=e.renderer();a&&a.beforeRender?a.beforeRender(function(i,s){Ss(s,e)},a.beforeRenderPriorities.animations):r()}},Qp={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,a){var n=r.qualifier;return n!=null?e!==a.target&&ya(a.target)&&n.matches(a.target):!0},addEventFields:function(e,r){r.cy=e,r.target=e},callbackContext:function(e,r,a){return r.qualifier!=null?a.target:e}},Fa=function(e){return le(e)?new qt(e):e},jo={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new cn(Qp,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,a){return this.emitter().on(e,Fa(r),a),this},removeListener:function(e,r,a){return this.emitter().removeListener(e,Fa(r),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,a){return this.emitter().one(e,Fa(r),a),this},once:function(e,r,a){return this.emitter().one(e,Fa(r),a),this},emit:function(e,r){return this.emitter().emit(e,r),this},emitAndNotify:function(e,r){return this.emit(e),this.notify(e,r),this}};Le.eventAliasesOn(jo);var Yn={png:function(e){var r=this._private.renderer;return e=e||{},r.png(e)},jpg:function(e){var r=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",r.jpg(e)}};Yn.jpeg=Yn.jpg;var Ua={layout:function(e){var r=this;if(e==null){ze("Layout options must be specified to make a layout");return}if(e.name==null){ze("A `name` must be specified to make a layout");return}var a=e.name,n=r.extension("layout",a);if(n==null){ze("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i;le(e.eles)?i=r.$(e.eles):i=e.eles!=null?e.eles:r.$();var s=new n(ve({},e,{cy:r,eles:i}));return s}};Ua.createLayout=Ua.makeLayout=Ua.layout;var Jp={notify:function(e,r){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var n=a.batchNotifications[e]=a.batchNotifications[e]||this.collection();r!=null&&n.merge(r);return}if(a.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.notify(e,r)}},notifications:function(e){var r=this._private;return e===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(a){var n=e.batchNotifications[a];n.empty()?r.notify(a):r.notify(a,n)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var r=this;return this.batch(function(){for(var a=Object.keys(e),n=0;n0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(a){var n=a._private;n.rscratch={},n.rstyle={},n.animation.current=[],n.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};Hn.invalidateDimensions=Hn.resize;var Ya={collection:function(e,r){return le(e)?this.$(e):ht(e)?e.collection():Ie(e)?(r||(r={}),new Ke(this,e,r.unique,r.removed)):new Ke(this)},nodes:function(e){var r=this.$(function(a){return a.isNode()});return e?r.filter(e):r},edges:function(e){var r=this.$(function(a){return a.isEdge()});return e?r.filter(e):r},$:function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},mutableElements:function(){return this._private.elements}};Ya.elements=Ya.filter=Ya.$;var rt={},Jr="t",ey="f";rt.apply=function(t){for(var e=this,r=e._private,a=r.cy,n=a.collection(),i=0;i0;if(c||h&&v){var d=void 0;c&&v||c?d=l.properties:v&&(d=l.mappedProperties);for(var g=0;g1&&(w=1),o.color){var D=a.valueMin[0],E=a.valueMax[0],T=a.valueMin[1],x=a.valueMax[1],S=a.valueMin[2],L=a.valueMax[2],A=a.valueMin[3]==null?1:a.valueMin[3],M=a.valueMax[3]==null?1:a.valueMax[3],O=[Math.round(D+(E-D)*w),Math.round(T+(x-T)*w),Math.round(S+(L-S)*w),Math.round(A+(M-A)*w)];i={bypass:a.bypass,name:a.name,value:O,strValue:"rgb("+O[0]+", "+O[1]+", "+O[2]+")"}}else if(o.number){var k=a.valueMin+(a.valueMax-a.valueMin)*w;i=this.parse(a.name,k,a.bypass,c)}else return!1;if(!i)return g(),!1;i.mapping=a,a=i;break}case s.data:{for(var I=a.field.split("."),R=h.data,P=0;P0&&i>0){for(var o={},u=!1,l=0;l0?t.delayAnimation(s).play().promise().then(y):y()}).then(function(){return t.animation({style:o,duration:i,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1})}else a.transitioning&&(this.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1)};rt.checkTrigger=function(t,e,r,a,n,i){var s=this.properties[e],o=n(s);o!=null&&o(r,a)&&i(s)};rt.checkZOrderTrigger=function(t,e,r,a){var n=this;this.checkTrigger(t,e,r,a,function(i){return i.triggersZOrder},function(){n._private.cy.notify("zorder",t)})};rt.checkBoundsTrigger=function(t,e,r,a){this.checkTrigger(t,e,r,a,function(n){return n.triggersBounds},function(n){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),n.triggersBoundsOfParallelBeziers&&(e==="curve-style"&&(r==="bezier"||a==="bezier")||e==="display"&&(r==="none"||a==="none"))&&t.parallelEdges().forEach(function(i){i.isBundledBezier()&&i.dirtyBoundingBoxCache()})})};rt.checkTriggers=function(t,e,r,a){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,a),this.checkBoundsTrigger(t,e,r,a)};var Ea={};Ea.applyBypass=function(t,e,r,a){var n=this,i=[],s=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var o=0;on.length?a=a.substr(n.length):a=""}function u(){i.length>s.length?i=i.substr(s.length):i=""}for(;;){var l=a.match(/^\s*$/);if(l)break;var f=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!f){Ae("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}n=f[0];var h=f[1];if(h!=="core"){var c=new qt(h);if(c.invalid){Ae("Skipping parsing of block: Invalid selector found in string stylesheet: "+h),o();continue}}var v=f[2],d=!1;i=v;for(var g=[];;){var b=i.match(/^\s*$/);if(b)break;var p=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!p){Ae("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+v),d=!0;break}s=p[0];var m=p[1],y=p[2],w=e.properties[m];if(!w){Ae("Skipping property: Invalid property name in: "+s),u();continue}var C=r.parse(m,y);if(!C){Ae("Skipping property: Invalid property definition in: "+s),u();continue}g.push({name:m,val:y}),u()}if(d){o();break}r.selector(h);for(var D=0;D=7&&e[0]==="d"&&(f=new RegExp(o.data.regex).exec(e))){if(r)return!1;var c=o.data;return{name:t,value:f,strValue:""+e,mapped:c,field:f[1],bypass:r}}else if(e.length>=10&&e[0]==="m"&&(h=new RegExp(o.mapData.regex).exec(e))){if(r||l.multiple)return!1;var v=o.mapData;if(!(l.color||l.number))return!1;var d=this.parse(t,h[4]);if(!d||d.mapped)return!1;var g=this.parse(t,h[5]);if(!g||g.mapped)return!1;if(d.pfValue===g.pfValue||d.strValue===g.strValue)return Ae("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+d.strValue+"`"),this.parse(t,d.strValue);if(l.color){var b=d.value,p=g.value,m=b[0]===p[0]&&b[1]===p[1]&&b[2]===p[2]&&(b[3]===p[3]||(b[3]==null||b[3]===1)&&(p[3]==null||p[3]===1));if(m)return!1}return{name:t,value:h,strValue:""+e,mapped:v,field:h[1],fieldMin:parseFloat(h[2]),fieldMax:parseFloat(h[3]),valueMin:d.value,valueMax:g.value,bypass:r}}}if(l.multiple&&a!=="multiple"){var y;if(u?y=e.split(/\s+/):Ie(e)?y=e:y=[e],l.evenMultiple&&y.length%2!==0)return null;for(var w=[],C=[],D=[],E="",T=!1,x=0;x0?" ":"")+S.strValue}return l.validate&&!l.validate(w,C)?null:l.singleEnum&&T?w.length===1&&le(w[0])?{name:t,value:w[0],strValue:w[0],bypass:r}:null:{name:t,value:w,pfValue:D,strValue:E,bypass:r,units:C}}var L=function(){for(var K=0;Kl.max||l.strictMax&&e===l.max))return null;var I={name:t,value:e,strValue:""+e+(A||""),units:A,bypass:r};return l.unitless||A!=="px"&&A!=="em"?I.pfValue=e:I.pfValue=A==="px"||!A?e:this.getEmSizeInPixels()*e,(A==="ms"||A==="s")&&(I.pfValue=A==="ms"?e:1e3*e),(A==="deg"||A==="rad")&&(I.pfValue=A==="rad"?e:Ud(e)),A==="%"&&(I.pfValue=e/100),I}else if(l.propList){var R=[],P=""+e;if(P!=="none"){for(var B=P.split(/\s*,\s*|\s+/),G=0;G0&&o>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){u=Math.min((s-2*r)/a.w,(o-2*r)/a.h),u=u>this._private.maxZoom?this._private.maxZoom:u,u=u=a.minZoom&&(a.maxZoom=r),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var r=this._private,a=r.pan,n=r.zoom,i,s,o=!1;if(r.zoomingEnabled||(o=!0),ae(e)?s=e:Te(e)&&(s=e.level,e.position!=null?i=fn(e.position,n,a):e.renderedPosition!=null&&(i=e.renderedPosition),i!=null&&!r.panningEnabled&&(o=!0)),s=s>r.maxZoom?r.maxZoom:s,s=sr.maxZoom||!r.zoomingEnabled?s=!0:(r.zoom=u,i.push("zoom"))}if(n&&(!s||!e.cancelOnFailedZoom)&&r.panningEnabled){var l=e.pan;ae(l.x)&&(r.pan.x=l.x,o=!1),ae(l.y)&&(r.pan.y=l.y,o=!1),o||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,r){if(this._private.panningEnabled){if(le(e)){var a=e;e=this.mutableElements().filter(a)}else ht(e)||(e=this.mutableElements());if(e.length!==0){var n=e.boundingBox(),i=this.width(),s=this.height();r=r===void 0?this._private.zoom:r;var o={x:(i-r*(n.x1+n.x2))/2,y:(s-r*(n.y1+n.y2))/2};return o}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,r=e.container;return e.sizeCache=e.sizeCache||(r?function(){var a=Be.getComputedStyle(r),n=function(s){return parseFloat(a.getPropertyValue(s))};return{width:r.clientWidth-n("padding-left")-n("padding-right"),height:r.clientHeight-n("padding-top")-n("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,r=this._private.zoom,a=this.renderedExtent(),n={x1:(a.x1-e.x)/r,x2:(a.x2-e.x)/r,y1:(a.y1-e.y)/r,y2:(a.y2-e.y)/r};return n.w=n.x2-n.x1,n.h=n.y2-n.y1,n},renderedExtent:function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};sr.centre=sr.center;sr.autolockNodes=sr.autolock;sr.autoungrabifyNodes=sr.autoungrabify;var ua={data:Le.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Le.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Le.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Le.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};ua.attr=ua.data;ua.removeAttr=ua.removeData;var la=function(e){var r=this;e=ve({},e);var a=e.container;a&&!Xa(a)&&Xa(a[0])&&(a=a[0]);var n=a?a._cyreg:null;n=n||{},n&&n.cy&&(n.cy.destroy(),n={});var i=n.readies=n.readies||[];a&&(a._cyreg=n),n.cy=r;var s=Be!==void 0&&a!==void 0&&!e.headless,o=e;o.layout=ve({name:s?"grid":"null"},o.layout),o.renderer=ve({name:s?"canvas":"null"},o.renderer);var u=function(d,g,b){return g!==void 0?g:b!==void 0?b:d},l=this._private={container:a,ready:!1,options:o,elements:new Ke(this),listeners:[],aniEles:new Ke(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:u(!0,o.zoomingEnabled),userZoomingEnabled:u(!0,o.userZoomingEnabled),panningEnabled:u(!0,o.panningEnabled),userPanningEnabled:u(!0,o.userPanningEnabled),boxSelectionEnabled:u(!0,o.boxSelectionEnabled),autolock:u(!1,o.autolock,o.autolockNodes),autoungrabify:u(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:u(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?s:o.styleEnabled,zoom:ae(o.zoom)?o.zoom:1,pan:{x:Te(o.pan)&&ae(o.pan.x)?o.pan.x:0,y:Te(o.pan)&&ae(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:u(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var f=function(d,g){var b=d.some(Jc);if(b)return kr.all(d).then(g);g(d)};l.styleEnabled&&r.setStyle([]);var h=ve({},o,o.renderer);r.initRenderer(h);var c=function(d,g,b){r.notifications(!1);var p=r.mutableElements();p.length>0&&p.remove(),d!=null&&(Te(d)||Ie(d))&&r.add(d),r.one("layoutready",function(y){r.notifications(!0),r.emit(y),r.one("load",g),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",b),r.emit("done")});var m=ve({},r._private.options.layout);m.eles=r.elements(),r.layout(m).run()};f([o.style,o.elements],function(v){var d=v[0],g=v[1];l.styleEnabled&&r.style().append(d),c(g,function(){r.startAnimationLoop(),l.ready=!0,Fe(o.ready)&&r.on("ready",o.ready);for(var b=0;b0,u=lt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),l;if(ht(e.roots))l=e.roots;else if(Ie(e.roots)){for(var f=[],h=0;h0;){var k=O(),I=S(k,A);if(I)k.outgoers().filter(function(re){return re.isNode()&&a.has(re)}).forEach(M);else if(I===null){Ae("Detected double maximal shift for node `"+k.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}x();var R=0;if(e.avoidOverlap)for(var P=0;P0&&p[0].length<=3?he/2:0),_=2*Math.PI/p[se].length*ne;return se===0&&p[0].length===1&&(N=1),{x:te.x+N*Math.cos(_),y:te.y+N*Math.sin(_)}}else{var J={x:te.x+(ne+1-(ue+1)/2)*Ee,y:(se+1)*ge};return J}};return a.nodes().layoutPositions(this,e,de),this};var ny={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function tu(t){this.options=ve({},ny,t)}tu.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,i=a.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));for(var s=lt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},u=e.sweep===void 0?2*Math.PI-2*Math.PI/i.length:e.sweep,l=u/Math.max(1,i.length-1),f,h=0,c=0;c1&&e.avoidOverlap){h*=1.75;var p=Math.cos(l)-Math.cos(0),m=Math.sin(l)-Math.sin(0),y=Math.sqrt(h*h/(p*p+m*m));f=Math.max(y,f)}var w=function(D,E){var T=e.startAngle+E*l*(n?1:-1),x=f*Math.cos(T),S=f*Math.sin(T),L={x:o.x+x,y:o.y+S};return L};return a.nodes().layoutPositions(this,e,w),this};var iy={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function ru(t){this.options=ve({},iy,t)}ru.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=t.cy,n=e.eles,i=n.nodes().not(":parent"),s=lt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},u=[],l=0,f=0;f0){var C=Math.abs(m[0].value-w.value);C>=b&&(m=[],p.push(m))}m.push(w)}var D=l+e.minNodeSpacing;if(!e.avoidOverlap){var E=p.length>0&&p[0].length>1,T=Math.min(s.w,s.h)/2-D,x=T/(p.length+E?1:0);D=Math.min(D,x)}for(var S=0,L=0;L1&&e.avoidOverlap){var k=Math.cos(O)-Math.cos(0),I=Math.sin(O)-Math.sin(0),R=Math.sqrt(D*D/(k*k+I*I));S=Math.max(R,S)}A.r=S,S+=D}if(e.equidistant){for(var P=0,B=0,G=0;G=t.numIter||(cy(a,t),a.temperature=a.temperature*t.coolingFactor,a.temperature=t.animationThreshold&&i(),qa(h)}};f()}else{for(;l;)l=s(u),u++;Os(a,t),o()}return this};mn.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};mn.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var oy=function(e,r,a){for(var n=a.eles.edges(),i=a.eles.nodes(),s={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:a.initialTemp,clientWidth:e.width(),clientHeight:e.width(),boundingBox:lt(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()})},o=a.eles.components(),u={},l=0;l0){s.graphSet.push(E);for(var l=0;ln.count?0:n.graph},ly=function t(e,r,a,n){var i=n.graphSet[a];if(-10)var h=n.nodeOverlap*f,c=Math.sqrt(o*o+u*u),v=h*o/c,d=h*u/c;else var g=Ja(e,o,u),b=Ja(r,-1*o,-1*u),p=b.x-g.x,m=b.y-g.y,y=p*p+m*m,c=Math.sqrt(y),h=(e.nodeRepulsion+r.nodeRepulsion)/y,v=h*p/c,d=h*m/c;e.isLocked||(e.offsetX-=v,e.offsetY-=d),r.isLocked||(r.offsetX+=v,r.offsetY+=d)}},py=function(e,r,a,n){if(a>0)var i=e.maxX-r.minX;else var i=r.maxX-e.minX;if(n>0)var s=e.maxY-r.minY;else var s=r.maxY-e.minY;return i>=0&&s>=0?Math.sqrt(i*i+s*s):0},Ja=function(e,r,a){var n=e.positionX,i=e.positionY,s=e.height||1,o=e.width||1,u=a/r,l=s/o,f={};return r===0&&0a?(f.x=n,f.y=i+s/2,f):0r&&-1*l<=u&&u<=l?(f.x=n-o/2,f.y=i-o*a/2/r,f):0=l)?(f.x=n+s*r/2/a,f.y=i+s/2,f):(0>a&&(u<=-1*l||u>=l)&&(f.x=n-s*r/2/a,f.y=i-s/2),f)},yy=function(e,r){for(var a=0;aa){var b=r.gravity*v/g,p=r.gravity*d/g;c.offsetX+=b,c.offsetY+=p}}}}},by=function(e,r){var a=[],n=0,i=-1;for(a.push.apply(a,e.graphSet[0]),i+=e.graphSet[0].length;n<=i;){var s=a[n++],o=e.idToIndex[s],u=e.layoutNodes[o],l=u.children;if(0a)var i={x:a*e/n,y:a*r/n};else var i={x:e,y:r};return i},xy=function t(e,r){var a=e.parentId;if(a!=null){var n=r.layoutNodes[r.idToIndex[a]],i=!1;if((n.maxX==null||e.maxX+n.padRight>n.maxX)&&(n.maxX=e.maxX+n.padRight,i=!0),(n.minX==null||e.minX-n.padLeftn.maxY)&&(n.maxY=e.maxY+n.padBottom,i=!0),(n.minY==null||e.minY-n.padTopp&&(d+=b+r.componentSpacing,v=0,g=0,b=0)}}},Ty={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function nu(t){this.options=ve({},Ty,t)}nu.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=a.nodes().not(":parent");e.sort&&(n=n.sort(e.sort));var i=lt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(i.h===0||i.w===0)a.nodes().layoutPositions(this,e,function(V){return{x:i.x1,y:i.y1}});else{var s=n.size(),o=Math.sqrt(s*i.h/i.w),u=Math.round(o),l=Math.round(i.w/i.h*o),f=function(U){if(U==null)return Math.min(u,l);var H=Math.min(u,l);H==u?u=U:l=U},h=function(U){if(U==null)return Math.max(u,l);var H=Math.max(u,l);H==u?u=U:l=U},c=e.rows,v=e.cols!=null?e.cols:e.columns;if(c!=null&&v!=null)u=c,l=v;else if(c!=null&&v==null)u=c,l=Math.ceil(s/u);else if(c==null&&v!=null)l=v,u=Math.ceil(s/l);else if(l*u>s){var d=f(),g=h();(d-1)*g>=s?f(d-1):(g-1)*d>=s&&h(g-1)}else for(;l*u=s?h(p+1):f(b+1)}var m=i.w/l,y=i.h/u;if(e.condense&&(m=0,y=0),e.avoidOverlap)for(var w=0;w=l&&(k=0,O++)},R={},P=0;P(k=rg(t,e,I[R],I[R+1],I[R+2],I[R+3])))return b(E,k),!0}else if(x.edgeType==="bezier"||x.edgeType==="multibezier"||x.edgeType==="self"||x.edgeType==="compound"){for(var I=x.allpts,R=0;R+5(k=tg(t,e,I[R],I[R+1],I[R+2],I[R+3],I[R+4],I[R+5])))return b(E,k),!0}for(var P=P||T.source,B=B||T.target,G=n.getArrowWidth(S,L),F=[{name:"source",x:x.arrowStartX,y:x.arrowStartY,angle:x.srcArrowAngle},{name:"target",x:x.arrowEndX,y:x.arrowEndY,angle:x.tgtArrowAngle},{name:"mid-source",x:x.midX,y:x.midY,angle:x.midsrcArrowAngle},{name:"mid-target",x:x.midX,y:x.midY,angle:x.midtgtArrowAngle}],R=0;R0&&(p(P),p(B))}function y(E,T,x){return xt(E,T,x)}function w(E,T){var x=E._private,S=c,L;T?L=T+"-":L="",E.boundingBox();var A=x.labelBounds[T||"main"],M=E.pstyle(L+"label").value,O=E.pstyle("text-events").strValue==="yes";if(!(!O||!M)){var k=y(x.rscratch,"labelX",T),I=y(x.rscratch,"labelY",T),R=y(x.rscratch,"labelAngle",T),P=E.pstyle(L+"text-margin-x").pfValue,B=E.pstyle(L+"text-margin-y").pfValue,G=A.x1-S-P,F=A.x2+S-P,$=A.y1-S-B,V=A.y2+S-B;if(R){var U=Math.cos(R),H=Math.sin(R),Y=function(de,re){return de=de-k,re=re-I,{x:de*U-re*H+k,y:de*H+re*U+I}},z=Y(G,$),X=Y(G,V),K=Y(F,$),Z=Y(F,V),te=[z.x+P,z.y+B,K.x+P,K.y+B,Z.x+P,Z.y+B,X.x+P,X.y+B];if(ut(t,e,te))return b(E),!0}else if(Lr(A,t,e))return b(E),!0}}for(var C=s.length-1;C>=0;C--){var D=s[C];D.isNode()?p(D)||w(D):m(D)||w(D)||w(D,"source")||w(D,"target")}return o};lr.getAllInBox=function(t,e,r,a){var n=this.getCachedZSortedEles().interactive,i=[],s=Math.min(t,r),o=Math.max(t,r),u=Math.min(e,a),l=Math.max(e,a);t=s,r=o,e=u,a=l;for(var f=lt({x1:t,y1:e,x2:r,y2:a}),h=0;h0?Math.max(oe-we,0):Math.min(oe+we,0)},M=A(S,T),O=A(L,x),k=!1;m===l?p=Math.abs(M)>Math.abs(O)?n:a:m===u||m===o?(p=a,k=!0):(m===i||m===s)&&(p=n,k=!0);var I=p===a,R=I?O:M,P=I?L:S,B=Eo(P),G=!1;!(k&&(w||D))&&(m===o&&P<0||m===u&&P>0||m===i&&P>0||m===s&&P<0)&&(B*=-1,R=B*Math.abs(R),G=!0);var F;if(w){var $=C<0?1+C:C;F=$*R}else{var V=C<0?R:0;F=V+C*B}var U=function(oe){return Math.abs(oe)=Math.abs(R)},H=U(F),Y=U(Math.abs(R)-Math.abs(F)),z=H||Y;if(z&&!G)if(I){var X=Math.abs(P)<=c/2,K=Math.abs(S)<=v/2;if(X){var Z=(f.x1+f.x2)/2,te=f.y1,ce=f.y2;r.segpts=[Z,te,Z,ce]}else if(K){var de=(f.y1+f.y2)/2,re=f.x1,ee=f.x2;r.segpts=[re,de,ee,de]}else r.segpts=[f.x1,f.y2]}else{var fe=Math.abs(P)<=h/2,se=Math.abs(L)<=d/2;if(fe){var ne=(f.y1+f.y2)/2,ue=f.x1,Ee=f.x2;r.segpts=[ue,ne,Ee,ne]}else if(se){var ge=(f.x1+f.x2)/2,he=f.y1,J=f.y2;r.segpts=[ge,he,ge,J]}else r.segpts=[f.x2,f.y1]}else if(I){var N=f.y1+F+(b?c/2*B:0),_=f.x1,Q=f.x2;r.segpts=[_,N,Q,N]}else{var q=f.x1+F+(b?h/2*B:0),W=f.y1,pe=f.y2;r.segpts=[q,W,q,pe]}};it.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var a=e.srcPos,n=e.tgtPos,i=e.srcW,s=e.srcH,o=e.tgtW,u=e.tgtH,l=e.srcShape,f=e.tgtShape,h=!ae(r.startX)||!ae(r.startY),c=!ae(r.arrowStartX)||!ae(r.arrowStartY),v=!ae(r.endX)||!ae(r.endY),d=!ae(r.arrowEndX)||!ae(r.arrowEndY),g=3,b=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,p=g*b,m=nr({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),y=mO.poolIndex()){var k=M;M=O,O=k}var I=x.srcPos=M.position(),R=x.tgtPos=O.position(),P=x.srcW=M.outerWidth(),B=x.srcH=M.outerHeight(),G=x.tgtW=O.outerWidth(),F=x.tgtH=O.outerHeight(),$=x.srcShape=r.nodeShapes[e.getNodeShape(M)],V=x.tgtShape=r.nodeShapes[e.getNodeShape(O)];x.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var U=0;U0){var X=i,K=er(X,wr(r)),Z=er(X,wr(z)),te=K;if(Z2){var ce=er(X,{x:z[2],y:z[3]});ce0){var _=s,Q=er(_,wr(r)),q=er(_,wr(N)),W=Q;if(q2){var pe=er(_,{x:N[2],y:N[3]});pe=d||E){b={cp:w,segment:D};break}}if(b)break}var T=b.cp,x=b.segment,S=(d-p)/x.length,L=x.t1-x.t0,A=v?x.t0+L*S:x.t1-L*S;A=na(0,A,1),e=Tr(T.p0,T.p1,T.p2,A),c=Oy(T.p0,T.p1,T.p2,A);break}case"straight":case"segments":case"haystack":{for(var M=0,O,k,I,R,P=a.allpts.length,B=0;B+3=d));B+=2);var G=d-k,F=G/O;F=na(0,F,1),e=Hd(I,R,F),c=fu(I,R);break}}s("labelX",h,e.x),s("labelY",h,e.y),s("labelAutoAngle",h,c)}};l("source"),l("target"),this.applyLabelDimensions(t)}};At.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))};At.applyPrefixedLabelDimensions=function(t,e){var r=t._private,a=this.getLabelText(t,e),n=this.calculateLabelDimensions(t,a),i=t.pstyle("line-height").pfValue,s=t.pstyle("text-wrap").strValue,o=xt(r.rscratch,"labelWrapCachedLines",e)||[],u=s!=="wrap"?1:Math.max(o.length,1),l=n.height/u,f=l*i,h=n.width,c=n.height+(u-1)*(i-1)*l;$t(r.rstyle,"labelWidth",e,h),$t(r.rscratch,"labelWidth",e,h),$t(r.rstyle,"labelHeight",e,c),$t(r.rscratch,"labelHeight",e,c),$t(r.rscratch,"labelLineHeight",e,f)};At.getLabelText=function(t,e){var r=t._private,a=e?e+"-":"",n=t.pstyle(a+"label").strValue,i=t.pstyle("text-transform").value,s=function(G,F){return F?($t(r.rscratch,G,e,F),F):xt(r.rscratch,G,e)};if(!n)return"";i=="none"||(i=="uppercase"?n=n.toUpperCase():i=="lowercase"&&(n=n.toLowerCase()));var o=t.pstyle("text-wrap").value;if(o==="wrap"){var u=s("labelKey");if(u!=null&&s("labelWrapKey")===u)return s("labelWrapCachedText");for(var l="​",f=n.split(` +`),h=t.pstyle("text-max-width").pfValue,c=t.pstyle("text-overflow-wrap").value,v=c==="anywhere",d=[],g=/[\s\u200b]+/,b=v?"":" ",p=0;ph){for(var D=m.split(g),E="",T=0;TM)break;O+=n[R],R===n.length-1&&(I=!0)}return I||(O+=k),O}return n};At.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if(e==="auto")if(t.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e};At.calculateLabelDimensions=function(t,e){var r=this,a=ar(e,t._private.labelDimsKey),n=r.labelDimCache||(r.labelDimCache=[]),i=n[a];if(i!=null)return i;var s=0,o=t.pstyle("font-style").strValue,u=t.pstyle("font-size").pfValue,l=t.pstyle("font-family").strValue,f=t.pstyle("font-weight").strValue,h=this.labelCalcCanvas,c=this.labelCalcCanvasContext;if(!h){h=this.labelCalcCanvas=document.createElement("canvas"),c=this.labelCalcCanvasContext=h.getContext("2d");var v=h.style;v.position="absolute",v.left="-9999px",v.top="-9999px",v.zIndex="-1",v.visibility="hidden",v.pointerEvents="none"}c.font="".concat(o," ").concat(f," ").concat(u,"px ").concat(l);for(var d=0,g=0,b=e.split(` +`),p=0;p1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(s),o)for(var u=0;u=t.desktopTapThreshold2}var Nt=a(N);He&&(t.hoverData.tapholdCancelled=!0);var Ft=function(){var Ct=t.hoverData.dragDelta=t.hoverData.dragDelta||[];Ct.length===0?(Ct.push(be[0]),Ct.push(be[1])):(Ct[0]+=be[0],Ct[1]+=be[1])};Q=!0,r(me,["mousemove","vmousemove","tapdrag"],N,{x:j[0],y:j[1]});var vr=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||q.emit({originalEvent:N,type:"boxstart",position:{x:j[0],y:j[1]}}),Oe[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(t.hoverData.which===3){if(He){var Jt={originalEvent:N,type:"cxtdrag",position:{x:j[0],y:j[1]}};ye?ye.emit(Jt):q.emit(Jt),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||me!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:N,type:"cxtdragout",position:{x:j[0],y:j[1]}}),t.hoverData.cxtOver=me,me&&me.emit({originalEvent:N,type:"cxtdragover",position:{x:j[0],y:j[1]}}))}}else if(t.hoverData.dragging){if(Q=!0,q.panningEnabled()&&q.userPanningEnabled()){var cr;if(t.hoverData.justStartedPan){var Ca=t.hoverData.mdownPos;cr={x:(j[0]-Ca[0])*W,y:(j[1]-Ca[1])*W},t.hoverData.justStartedPan=!1}else cr={x:be[0]*W,y:be[1]*W};q.panBy(cr),q.emit("dragpan"),t.hoverData.dragged=!0}j=t.projectIntoViewport(N.clientX,N.clientY)}else if(Oe[4]==1&&(ye==null||ye.pannable())){if(He){if(!t.hoverData.dragging&&q.boxSelectionEnabled()&&(Nt||!q.panningEnabled()||!q.userPanningEnabled()))vr();else if(!t.hoverData.selecting&&q.panningEnabled()&&q.userPanningEnabled()){var jt=n(ye,t.hoverData.downs);jt&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,Oe[4]=0,t.data.bgActivePosistion=wr(oe),t.redrawHint("select",!0),t.redraw())}ye&&ye.pannable()&&ye.active()&&ye.unactivate()}}else{if(ye&&ye.pannable()&&ye.active()&&ye.unactivate(),(!ye||!ye.grabbed())&&me!=Se&&(Se&&r(Se,["mouseout","tapdragout"],N,{x:j[0],y:j[1]}),me&&r(me,["mouseover","tapdragover"],N,{x:j[0],y:j[1]}),t.hoverData.last=me),ye)if(He){if(q.boxSelectionEnabled()&&Nt)ye&&ye.grabbed()&&(g(Ge),ye.emit("freeon"),Ge.emit("free"),t.dragData.didDrag&&(ye.emit("dragfreeon"),Ge.emit("dragfree"))),vr();else if(ye&&ye.grabbed()&&t.nodeIsDraggable(ye)){var st=!t.dragData.didDrag;st&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||v(Ge,{inDragLayer:!0});var Je={x:0,y:0};if(ae(be[0])&&ae(be[1])&&(Je.x+=be[0],Je.y+=be[1],st)){var ot=t.hoverData.dragDelta;ot&&ae(ot[0])&&ae(ot[1])&&(Je.x+=ot[0],Je.y+=ot[1])}t.hoverData.draggingEles=!0,Ge.silentShift(Je).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else Ft();Q=!0}if(Oe[2]=j[0],Oe[3]=j[1],Q)return N.stopPropagation&&N.stopPropagation(),N.preventDefault&&N.preventDefault(),!1}},!1);var x,S,L;t.registerBinding(window,"mouseup",function(N){var _=t.hoverData.capture;if(_){t.hoverData.capture=!1;var Q=t.cy,q=t.projectIntoViewport(N.clientX,N.clientY),W=t.selection,pe=t.findNearestElement(q[0],q[1],!0,!1),j=t.dragData.possibleDragElements,oe=t.hoverData.down,we=a(N);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,oe&&oe.unactivate(),t.hoverData.which===3){var Oe={originalEvent:N,type:"cxttapend",position:{x:q[0],y:q[1]}};if(oe?oe.emit(Oe):Q.emit(Oe),!t.hoverData.cxtDragged){var me={originalEvent:N,type:"cxttap",position:{x:q[0],y:q[1]}};oe?oe.emit(me):Q.emit(me)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(r(pe,["mouseup","tapend","vmouseup"],N,{x:q[0],y:q[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(r(oe,["click","tap","vclick"],N,{x:q[0],y:q[1]}),S=!1,N.timeStamp-L<=Q.multiClickDebounceTime()?(x&&clearTimeout(x),S=!0,L=null,r(oe,["dblclick","dbltap","vdblclick"],N,{x:q[0],y:q[1]})):(x=setTimeout(function(){S||r(oe,["oneclick","onetap","voneclick"],N,{x:q[0],y:q[1]})},Q.multiClickDebounceTime()),L=N.timeStamp)),oe==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!a(N)&&(Q.$(e).unselect(["tapunselect"]),j.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=j=Q.collection()),pe==oe&&!t.dragData.didDrag&&!t.hoverData.selecting&&pe!=null&&pe._private.selectable&&(t.hoverData.dragging||(Q.selectionType()==="additive"||we?pe.selected()?pe.unselect(["tapunselect"]):pe.select(["tapselect"]):we||(Q.$(e).unmerge(pe).unselect(["tapunselect"]),pe.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var Se=Q.collection(t.getAllInBox(W[0],W[1],W[2],W[3]));t.redrawHint("select",!0),Se.length>0&&t.redrawHint("eles",!0),Q.emit({type:"boxend",originalEvent:N,position:{x:q[0],y:q[1]}});var ye=function(He){return He.selectable()&&!He.selected()};Q.selectionType()==="additive"||we||Q.$(e).unmerge(Se).unselect(),Se.emit("box").stdFilter(ye).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!W[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var be=oe&&oe.grabbed();g(j),be&&(oe.emit("freeon"),j.emit("free"),t.dragData.didDrag&&(oe.emit("dragfreeon"),j.emit("dragfree")))}}W[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null}},!1);var A=function(N){if(!t.scrollingPage){var _=t.cy,Q=_.zoom(),q=_.pan(),W=t.projectIntoViewport(N.clientX,N.clientY),pe=[W[0]*Q+q.x,W[1]*Q+q.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||E()){N.preventDefault();return}if(_.panningEnabled()&&_.userPanningEnabled()&&_.zoomingEnabled()&&_.userZoomingEnabled()){N.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout(function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()},150);var j;N.deltaY!=null?j=N.deltaY/-250:N.wheelDeltaY!=null?j=N.wheelDeltaY/1e3:j=N.wheelDelta/1e3,j=j*t.wheelSensitivity;var oe=N.deltaMode===1;oe&&(j*=33);var we=_.zoom()*Math.pow(10,j);N.type==="gesturechange"&&(we=t.gestureStartZoom*N.scale),_.zoom({level:we,renderedPosition:{x:pe[0],y:pe[1]}}),_.emit(N.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",A,!0),t.registerBinding(window,"scroll",function(N){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(N){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||N.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function(J){t.hasTouchStarted||A(J)},!0),t.registerBinding(t.container,"mouseout",function(N){var _=t.projectIntoViewport(N.clientX,N.clientY);t.cy.emit({originalEvent:N,type:"mouseout",position:{x:_[0],y:_[1]}})},!1),t.registerBinding(t.container,"mouseover",function(N){var _=t.projectIntoViewport(N.clientX,N.clientY);t.cy.emit({originalEvent:N,type:"mouseover",position:{x:_[0],y:_[1]}})},!1);var M,O,k,I,R,P,B,G,F,$,V,U,H,Y=function(N,_,Q,q){return Math.sqrt((Q-N)*(Q-N)+(q-_)*(q-_))},z=function(N,_,Q,q){return(Q-N)*(Q-N)+(q-_)*(q-_)},X;t.registerBinding(t.container,"touchstart",X=function(N){if(t.hasTouchStarted=!0,!!T(N)){p(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var _=t.cy,Q=t.touchData.now,q=t.touchData.earlier;if(N.touches[0]){var W=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);Q[0]=W[0],Q[1]=W[1]}if(N.touches[1]){var W=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY);Q[2]=W[0],Q[3]=W[1]}if(N.touches[2]){var W=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY);Q[4]=W[0],Q[5]=W[1]}if(N.touches[1]){t.touchData.singleTouchMoved=!0,g(t.dragData.touchDragEles);var pe=t.findContainerClientCoords();F=pe[0],$=pe[1],V=pe[2],U=pe[3],M=N.touches[0].clientX-F,O=N.touches[0].clientY-$,k=N.touches[1].clientX-F,I=N.touches[1].clientY-$,H=0<=M&&M<=V&&0<=k&&k<=V&&0<=O&&O<=U&&0<=I&&I<=U;var j=_.pan(),oe=_.zoom();R=Y(M,O,k,I),P=z(M,O,k,I),B=[(M+k)/2,(O+I)/2],G=[(B[0]-j.x)/oe,(B[1]-j.y)/oe];var we=200,Oe=we*we;if(P=1){for(var mt=t.touchData.startPosition=[],Xe=0;Xe=t.touchTapThreshold2}if(_&&t.touchData.cxt){N.preventDefault();var mt=N.touches[0].clientX-F,Xe=N.touches[0].clientY-$,ct=N.touches[1].clientX-F,at=N.touches[1].clientY-$,Nt=z(mt,Xe,ct,at),Ft=Nt/P,vr=150,Jt=vr*vr,cr=1.5,Ca=cr*cr;if(Ft>=Ca||Nt>=Jt){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var jt={originalEvent:N,type:"cxttapend",position:{x:W[0],y:W[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(jt),t.touchData.start=null):q.emit(jt)}}if(_&&t.touchData.cxt){var jt={originalEvent:N,type:"cxtdrag",position:{x:W[0],y:W[1]}};t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(jt):q.emit(jt),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var st=t.findNearestElement(W[0],W[1],!0,!0);(!t.touchData.cxtOver||st!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:N,type:"cxtdragout",position:{x:W[0],y:W[1]}}),t.touchData.cxtOver=st,st&&st.emit({originalEvent:N,type:"cxtdragover",position:{x:W[0],y:W[1]}}))}else if(_&&N.touches[2]&&q.boxSelectionEnabled())N.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||q.emit({originalEvent:N,type:"boxstart",position:{x:W[0],y:W[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,Q[4]=1,!Q||Q.length===0||Q[0]===void 0?(Q[0]=(W[0]+W[2]+W[4])/3,Q[1]=(W[1]+W[3]+W[5])/3,Q[2]=(W[0]+W[2]+W[4])/3+1,Q[3]=(W[1]+W[3]+W[5])/3+1):(Q[2]=(W[0]+W[2]+W[4])/3,Q[3]=(W[1]+W[3]+W[5])/3),t.redrawHint("select",!0),t.redraw();else if(_&&N.touches[1]&&!t.touchData.didSelect&&q.zoomingEnabled()&&q.panningEnabled()&&q.userZoomingEnabled()&&q.userPanningEnabled()){N.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Je=t.dragData.touchDragEles;if(Je){t.redrawHint("drag",!0);for(var ot=0;ot0&&!t.hoverData.draggingEles&&!t.swipePanning&&t.data.bgActivePosistion!=null&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1);var Z;t.registerBinding(window,"touchcancel",Z=function(N){var _=t.touchData.start;t.touchData.capture=!1,_&&_.unactivate()});var te,ce,de,re;if(t.registerBinding(window,"touchend",te=function(N){var _=t.touchData.start,Q=t.touchData.capture;if(Q)N.touches.length===0&&(t.touchData.capture=!1),N.preventDefault();else return;var q=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var W=t.cy,pe=W.zoom(),j=t.touchData.now,oe=t.touchData.earlier;if(N.touches[0]){var we=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);j[0]=we[0],j[1]=we[1]}if(N.touches[1]){var we=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY);j[2]=we[0],j[3]=we[1]}if(N.touches[2]){var we=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY);j[4]=we[0],j[5]=we[1]}_&&_.unactivate();var Oe;if(t.touchData.cxt){if(Oe={originalEvent:N,type:"cxttapend",position:{x:j[0],y:j[1]}},_?_.emit(Oe):W.emit(Oe),!t.touchData.cxtDragged){var me={originalEvent:N,type:"cxttap",position:{x:j[0],y:j[1]}};_?_.emit(me):W.emit(me)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!N.touches[2]&&W.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var Se=W.collection(t.getAllInBox(q[0],q[1],q[2],q[3]));q[0]=void 0,q[1]=void 0,q[2]=void 0,q[3]=void 0,q[4]=0,t.redrawHint("select",!0),W.emit({type:"boxend",originalEvent:N,position:{x:j[0],y:j[1]}});var ye=function(Jt){return Jt.selectable()&&!Jt.selected()};Se.emit("box").stdFilter(ye).select().emit("boxselect"),Se.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(_!=null&&_.unactivate(),N.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!N.touches[1]){if(!N.touches[0]){if(!N.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var be=t.dragData.touchDragEles;if(_!=null){var Ge=_._private.grabbed;g(be),t.redrawHint("drag",!0),t.redrawHint("eles",!0),Ge&&(_.emit("freeon"),be.emit("free"),t.dragData.didDrag&&(_.emit("dragfreeon"),be.emit("dragfree"))),r(_,["touchend","tapend","vmouseup","tapdragout"],N,{x:j[0],y:j[1]}),_.unactivate(),t.touchData.start=null}else{var He=t.findNearestElement(j[0],j[1],!0,!0);r(He,["touchend","tapend","vmouseup","tapdragout"],N,{x:j[0],y:j[1]})}var yt=t.touchData.startPosition[0]-j[0],mt=yt*yt,Xe=t.touchData.startPosition[1]-j[1],ct=Xe*Xe,at=mt+ct,Nt=at*pe*pe;t.touchData.singleTouchMoved||(_||W.$(":selected").unselect(["tapunselect"]),r(_,["tap","vclick"],N,{x:j[0],y:j[1]}),ce=!1,N.timeStamp-re<=W.multiClickDebounceTime()?(de&&clearTimeout(de),ce=!0,re=null,r(_,["dbltap","vdblclick"],N,{x:j[0],y:j[1]})):(de=setTimeout(function(){ce||r(_,["onetap","voneclick"],N,{x:j[0],y:j[1]})},W.multiClickDebounceTime()),re=N.timeStamp)),_!=null&&!t.dragData.didDrag&&_._private.selectable&&Nt"u"){var ee=[],fe=function(N){return{clientX:N.clientX,clientY:N.clientY,force:1,identifier:N.pointerId,pageX:N.pageX,pageY:N.pageY,radiusX:N.width/2,radiusY:N.height/2,screenX:N.screenX,screenY:N.screenY,target:N.target}},se=function(N){return{event:N,touch:fe(N)}},ne=function(N){ee.push(se(N))},ue=function(N){for(var _=0;_0)return F[0]}return null},v=Object.keys(h),d=0;d0?c:xo(i,s,e,r,a,n,o)},checkPoint:function(e,r,a,n,i,s,o){var u=ma(n,i),l=2*u;if(Rt(e,r,this.points,s,o,n,i-l,[0,-1],a)||Rt(e,r,this.points,s,o,n-l,i,[0,-1],a))return!0;var f=n/2+2*a,h=i/2+2*a,c=[s-f,o-h,s-f,o,s+f,o,s+f,o-h];return!!(ut(e,r,c)||rr(e,r,l,l,s+n/2-u,o+i/2-u,a)||rr(e,r,l,l,s-n/2+u,o+i/2-u,a))}}};Pt.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",nt(3,0)),this.generateRoundPolygon("round-triangle",nt(3,0)),this.generatePolygon("rectangle",nt(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",nt(5,0)),this.generateRoundPolygon("round-pentagon",nt(5,0)),this.generatePolygon("hexagon",nt(6,0)),this.generateRoundPolygon("round-hexagon",nt(6,0)),this.generatePolygon("heptagon",nt(7,0)),this.generateRoundPolygon("round-heptagon",nt(7,0)),this.generatePolygon("octagon",nt(8,0)),this.generateRoundPolygon("round-octagon",nt(8,0));var a=new Array(20);{var n=Gn(5,0),i=Gn(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var o=0;o=e.deqFastCost*w)break}else if(l){if(m>=e.deqCost*v||m>=e.deqAvgCost*c)break}else if(y>=e.deqNoDrawCost*kn)break;var C=e.deq(a,b,g);if(C.length>0)for(var D=0;D0&&(e.onDeqd(a,d),!l&&e.shouldRedraw(a,d,b,g)&&i())},o=e.priority||si;n.beforeRender(s,o(a))}}}},My=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wa;ti(this,t),this.idsByKey=new St,this.keyForId=new St,this.cachesByLvl=new St,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return ri(t,[{key:"getIdsFor",value:function(r){r==null&&ze("Can not get id list for null key");var a=this.idsByKey,n=this.idsByKey.get(r);return n||(n=new Rr,a.set(r,n)),n}},{key:"addIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).add(a)}},{key:"deleteIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).delete(a)}},{key:"getNumberOfIdsForKey",value:function(r){return r==null?0:this.getIdsFor(r).size}},{key:"updateKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a),i=this.getKey(r);this.deleteIdForKey(n,a),this.addIdForKey(i,a),this.keyForId.set(a,i)}},{key:"deleteKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteIdForKey(n,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(r){var a=r.id(),n=this.keyForId.get(a),i=this.getKey(r);return n!==i}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var a=this.cachesByLvl,n=this.lvls,i=a.get(r);return i||(i=new St,a.set(r,i),n.push(r)),i}},{key:"getCache",value:function(r,a){return this.getCachesAt(a).get(r)}},{key:"get",value:function(r,a){var n=this.getKey(r),i=this.getCache(n,a);return i!=null&&this.updateKeyMappingFor(r),i}},{key:"getForCachedKey",value:function(r,a){var n=this.keyForId.get(r.id()),i=this.getCache(n,a);return i}},{key:"hasCache",value:function(r,a){return this.getCachesAt(a).has(r)}},{key:"has",value:function(r,a){var n=this.getKey(r);return this.hasCache(n,a)}},{key:"setCache",value:function(r,a,n){n.key=r,this.getCachesAt(a).set(r,n)}},{key:"set",value:function(r,a,n){var i=this.getKey(r);this.setCache(i,a,n),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,a){this.getCachesAt(a).delete(r)}},{key:"delete",value:function(r,a){var n=this.getKey(r);this.deleteCache(n,a)}},{key:"invalidateKey",value:function(r){var a=this;this.lvls.forEach(function(n){return a.deleteCache(r,n)})}},{key:"invalidate",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteKeyMappingFor(r);var i=this.doesEleInvalidateKey(r);return i&&this.invalidateKey(n),i||this.getNumberOfIdsForKey(n)===0}}]),t}(),Ps=25,Ga=50,Ha=-4,Xn=3,Iy=7.99,Ry=8,ky=1024,Py=1024,By=1024,Fy=.2,Gy=.8,zy=10,$y=.15,Vy=.1,_y=.9,Uy=.9,Yy=100,Hy=1,xr={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Xy=Ze({getKey:null,doesEleInvalidateKey:Wa,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:go,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),Zr=function(e,r){var a=this;a.renderer=e,a.onDequeues=[];var n=Xy(r);ve(a,n),a.lookup=new My(n.getKey,n.doesEleInvalidateKey),a.setupDequeueing()},Ue=Zr.prototype;Ue.reasons=xr;Ue.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]};Ue.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},a=r[t]=r[t]||[];return a};Ue.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new ga.default(function(r,a){return a.reqs-r.reqs});return e};Ue.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e};Ue.getElement=function(t,e,r,a,n){var i=this,s=this.renderer,o=s.cy.zoom(),u=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!i.allowEdgeTxrCaching&&t.isEdge()||!i.allowParentTxrCaching&&t.isParent())return null;if(a==null&&(a=Math.ceil(ui(o*r))),a=Iy||a>Xn)return null;var l=Math.pow(2,a),f=e.h*l,h=e.w*l,c=s.eleTextBiggerThanMin(t,l);if(!this.isVisible(t,c))return null;var v=u.get(t,a);if(v&&v.invalidated&&(v.invalidated=!1,v.texture.invalidatedWidth-=v.width),v)return v;var d;if(f<=Ps?d=Ps:f<=Ga?d=Ga:d=Math.ceil(f/Ga)*Ga,f>By||h>Py)return null;var g=i.getTextureQueue(d),b=g[g.length-2],p=function(){return i.recycleTexture(d,h)||i.addTexture(d,h)};b||(b=g[g.length-1]),b||(b=p()),b.width-b.usedWidtha;L--)x=i.getElement(t,e,r,L,xr.downscale);S()}else return i.queueElement(t,D.level-1),D;else{var A;if(!y&&!w&&!C)for(var M=a-1;M>=Ha;M--){var O=u.get(t,M);if(O){A=O;break}}if(m(A))return i.queueElement(t,a),A;b.context.translate(b.usedWidth,0),b.context.scale(l,l),this.drawElement(b.context,t,e,c,!1),b.context.scale(1/l,1/l),b.context.translate(-b.usedWidth,0)}return v={x:b.usedWidth,texture:b,level:a,scale:l,width:h,height:f,scaledLabelShown:c},b.usedWidth+=Math.ceil(h+Ry),b.eleCaches.push(v),u.set(t,a,v),i.checkTextureFullness(b),v};Ue.invalidateElements=function(t){for(var e=0;e=Fy*t.width&&this.retireTexture(t)};Ue.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>Gy&&t.fullnessChecks>=zy?Xt(r,t):t.fullnessChecks++};Ue.retireTexture=function(t){var e=this,r=t.height,a=e.getTextureQueue(r),n=this.lookup;Xt(a,t),t.retired=!0;for(var i=t.eleCaches,s=0;s=e)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,oi(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),Xt(n,s),a.push(s),s}};Ue.queueElement=function(t,e){var r=this,a=r.getElementQueue(),n=r.getElementKeyToQueue(),i=this.getKey(t),s=n[i];if(s)s.level=Math.max(s.level,e),s.eles.merge(t),s.reqs++,a.updateItem(s);else{var o={eles:t.spawn().merge(t),level:e,reqs:1,key:i};a.push(o),n[i]=o}};Ue.dequeue=function(t){for(var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=[],i=e.lookup,s=0;s0;s++){var o=r.pop(),u=o.key,l=o.eles[0],f=i.hasCache(l,o.level);if(a[u]=null,f)continue;n.push(o);var h=e.getBoundingBox(l);e.getElement(l,h,t,o.level,xr.dequeue)}return n};Ue.removeFromQueue=function(t){var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=this.getKey(t),i=a[n];i!=null&&(i.eles.length===1?(i.reqs=ii,r.updateItem(i),r.pop(),a[n]=null):i.eles.unmerge(t))};Ue.onDequeue=function(t){this.onDequeues.push(t)};Ue.offDequeue=function(t){Xt(this.onDequeues,t)};Ue.setupDequeueing=gu.setupDequeueing({deqRedrawThreshold:Yy,deqCost:$y,deqAvgCost:Vy,deqNoDrawCost:_y,deqFastCost:Uy,deq:function(e,r,a){return e.dequeue(r,a)},onDeqd:function(e,r){for(var a=0;a=Wy||r>en)return null}a.validateLayersElesOrdering(r,t);var u=a.layersByLevel,l=Math.pow(2,r),f=u[r]=u[r]||[],h,c=a.levelIsComplete(r,t),v,d=function(){var S=function(k){if(a.validateLayersElesOrdering(k,t),a.levelIsComplete(k,t))return v=u[k],!0},L=function(k){if(!v)for(var I=r+k;jr<=I&&I<=en&&!S(I);I+=k);};L(1),L(-1);for(var A=f.length-1;A>=0;A--){var M=f[A];M.invalid&&Xt(f,M)}};if(!c)d();else return f;var g=function(){if(!h){h=lt();for(var S=0;Srm)return null;var M=a.makeLayer(h,r);if(L!=null){var O=f.indexOf(L)+1;f.splice(O,0,M)}else(S.insert===void 0||S.insert)&&f.unshift(M);return M};if(a.skipping&&!o)return null;for(var p=null,m=t.length/qy,y=!o,w=0;w=m||!wo(p.bb,C.boundingBox()))&&(p=b({insert:!0,after:p}),!p))return null;v||y?a.queueLayer(p,C):a.drawEleInLayer(p,C,r,e),p.eles.push(C),E[r]=p}return v||(y?null:f)};Qe.getEleLevelForLayerLevel=function(t,e){return t};Qe.drawEleInLayer=function(t,e,r,a){var n=this,i=this.renderer,s=t.context,o=e.boundingBox();o.w===0||o.h===0||!e.visible()||(r=n.getEleLevelForLayerLevel(r,a),i.setImgSmoothing(s,!1),i.drawCachedElement(s,e,null,null,r,am),i.setImgSmoothing(s,!0))};Qe.levelIsComplete=function(t,e){var r=this,a=r.layersByLevel[t];if(!a||a.length===0)return!1;for(var n=0,i=0;i0||s.invalid)return!1;n+=s.eles.length}return n===e.length};Qe.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var a=0;a0){e=!0;break}}return e};Qe.invalidateElements=function(t){var e=this;t.length!==0&&(e.lastInvalidationTime=It(),!(t.length===0||!e.haveLayers())&&e.updateElementsInLayers(t,function(a,n,i){e.invalidateLayer(a)}))};Qe.invalidateLayer=function(t){if(this.lastInvalidationTime=It(),!t.invalid){var e=t.level,r=t.eles,a=this.layersByLevel[e];Xt(a,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var n=0;n3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o=e._private.rscratch;if(!(i&&!e.visible())&&!(o.badLine||o.allpts==null||isNaN(o.allpts[0]))){var u;r&&(u=r,t.translate(-u.x1,-u.y1));var l=i?e.pstyle("opacity").value:1,f=i?e.pstyle("line-opacity").value:1,h=e.pstyle("curve-style").value,c=e.pstyle("line-style").value,v=e.pstyle("width").pfValue,d=e.pstyle("line-cap").value,g=l*f,b=l*f,p=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g;h==="straight-triangle"?(s.eleStrokeStyle(t,e,A),s.drawEdgeTrianglePath(e,t,o.allpts)):(t.lineWidth=v,t.lineCap=d,s.eleStrokeStyle(t,e,A),s.drawEdgePath(e,t,o.allpts,c),t.lineCap="butt")},m=function(){n&&s.drawEdgeOverlay(t,e)},y=function(){n&&s.drawEdgeUnderlay(t,e)},w=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b;s.drawArrowheads(t,e,A)},C=function(){s.drawElementText(t,e,null,a)};t.lineJoin="round";var D=e.pstyle("ghost").value==="yes";if(D){var E=e.pstyle("ghost-offset-x").pfValue,T=e.pstyle("ghost-offset-y").pfValue,x=e.pstyle("ghost-opacity").value,S=g*x;t.translate(E,T),p(S),w(S),t.translate(-E,-T)}y(),p(),w(),m(),C(),r&&t.translate(u.x1,u.y1)}};var mu=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a){if(a.visible()){var n=a.pstyle("".concat(e,"-opacity")).value;if(n!==0){var i=this,s=i.usePaths(),o=a._private.rscratch,u=a.pstyle("".concat(e,"-padding")).pfValue,l=2*u,f=a.pstyle("".concat(e,"-color")).value;r.lineWidth=l,o.edgeType==="self"&&!s?r.lineCap="butt":r.lineCap="round",i.colorStrokeStyle(r,f[0],f[1],f[2],n),i.drawEdgePath(a,r,o.allpts,"solid")}}}};Bt.drawEdgeOverlay=mu("overlay");Bt.drawEdgeUnderlay=mu("underlay");Bt.drawEdgePath=function(t,e,r,a){var n=t._private.rscratch,i=e,s,o=!1,u=this.usePaths(),l=t.pstyle("line-dash-pattern").pfValue,f=t.pstyle("line-dash-offset").pfValue;if(u){var h=r.join("$"),c=n.pathCacheKey&&n.pathCacheKey===h;c?(s=e=n.pathCache,o=!0):(s=e=new Path2D,n.pathCacheKey=h,n.pathCache=s)}if(i.setLineDash)switch(a){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(l),i.lineDashOffset=f;break;case"solid":i.setLineDash([]);break}if(!o&&!n.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),n.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var v=2;v+35&&arguments[5]!==void 0?arguments[5]:!0,s=this;if(a==null){if(i&&!s.eleTextBiggerThanMin(e))return}else if(a===!1)return;if(e.isNode()){var o=e.pstyle("label");if(!o||!o.value)return;var u=s.getLabelJustification(e);t.textAlign=u,t.textBaseline="bottom"}else{var l=e.element()._private.rscratch.badLine,f=e.pstyle("label"),h=e.pstyle("source-label"),c=e.pstyle("target-label");if(l||(!f||!f.value)&&(!h||!h.value)&&(!c||!c.value))return;t.textAlign="center",t.textBaseline="bottom"}var v=!r,d;r&&(d=r,t.translate(-d.x1,-d.y1)),n==null?(s.drawText(t,e,null,v,i),e.isEdge()&&(s.drawText(t,e,"source",v,i),s.drawText(t,e,"target",v,i))):s.drawText(t,e,n,v,i),r&&t.translate(d.x1,d.y1)};fr.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!0,a=e.pstyle("font-style").strValue,n=e.pstyle("font-size").pfValue+"px",i=e.pstyle("font-family").strValue,s=e.pstyle("font-weight").strValue,o=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,u=e.pstyle("text-outline-opacity").value*o,l=e.pstyle("color").value,f=e.pstyle("text-outline-color").value;t.font=a+" "+s+" "+n+" "+i,t.lineJoin="round",this.colorFillStyle(t,l[0],l[1],l[2],o),this.colorStrokeStyle(t,f[0],f[1],f[2],u)};function dm(t,e,r,a,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5;t.beginPath(),t.moveTo(e+i,r),t.lineTo(e+a-i,r),t.quadraticCurveTo(e+a,r,e+a,r+i),t.lineTo(e+a,r+n-i),t.quadraticCurveTo(e+a,r+n,e+a-i,r+n),t.lineTo(e+i,r+n),t.quadraticCurveTo(e,r+n,e,r+n-i),t.lineTo(e,r+i),t.quadraticCurveTo(e,r,e+i,r),t.closePath(),t.fill()}fr.getTextAngle=function(t,e){var r,a=t._private,n=a.rscratch,i=e?e+"-":"",s=t.pstyle(i+"text-rotation"),o=xt(n,"labelAngle",e);return s.strValue==="autorotate"?r=t.isEdge()?o:0:s.strValue==="none"?r=0:r=s.pfValue,r};fr.drawText=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=e._private,s=i.rscratch,o=n?e.effectiveOpacity():1;if(!(n&&(o===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var u=xt(s,"labelX",r),l=xt(s,"labelY",r),f,h,c=this.getLabelText(e,r);if(c!=null&&c!==""&&!isNaN(u)&&!isNaN(l)){this.setupTextStyle(t,e,n);var v=r?r+"-":"",d=xt(s,"labelWidth",r),g=xt(s,"labelHeight",r),b=e.pstyle(v+"text-margin-x").pfValue,p=e.pstyle(v+"text-margin-y").pfValue,m=e.isEdge(),y=e.pstyle("text-halign").value,w=e.pstyle("text-valign").value;m&&(y="center",w="center"),u+=b,l+=p;var C;switch(a?C=this.getTextAngle(e,r):C=0,C!==0&&(f=u,h=l,t.translate(f,h),t.rotate(C),u=0,l=0),w){case"top":break;case"center":l+=g/2;break;case"bottom":l+=g;break}var D=e.pstyle("text-background-opacity").value,E=e.pstyle("text-border-opacity").value,T=e.pstyle("text-border-width").pfValue,x=e.pstyle("text-background-padding").pfValue;if(D>0||T>0&&E>0){var S=u-x;switch(y){case"left":S-=d;break;case"center":S-=d/2;break}var L=l-g-x,A=d+2*x,M=g+2*x;if(D>0){var O=t.fillStyle,k=e.pstyle("text-background-color").value;t.fillStyle="rgba("+k[0]+","+k[1]+","+k[2]+","+D*o+")";var I=e.pstyle("text-background-shape").strValue;I.indexOf("round")===0?dm(t,S,L,A,M,2):t.fillRect(S,L,A,M),t.fillStyle=O}if(T>0&&E>0){var R=t.strokeStyle,P=t.lineWidth,B=e.pstyle("text-border-color").value,G=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+B[0]+","+B[1]+","+B[2]+","+E*o+")",t.lineWidth=T,t.setLineDash)switch(G){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=T/4,t.setLineDash([]);break;case"solid":t.setLineDash([]);break}if(t.strokeRect(S,L,A,M),G==="double"){var F=T/2;t.strokeRect(S+F,L+F,A-F*2,M-F*2)}t.setLineDash&&t.setLineDash([]),t.lineWidth=P,t.strokeStyle=R}}var $=2*e.pstyle("text-outline-width").pfValue;if($>0&&(t.lineWidth=$),e.pstyle("text-wrap").value==="wrap"){var V=xt(s,"labelWrapCachedLines",r),U=xt(s,"labelLineHeight",r),H=d/2,Y=this.getLabelJustification(e);switch(Y==="auto"||(y==="left"?Y==="left"?u+=-d:Y==="center"&&(u+=-H):y==="center"?Y==="left"?u+=-H:Y==="right"&&(u+=H):y==="right"&&(Y==="center"?u+=H:Y==="right"&&(u+=d))),w){case"top":l-=(V.length-1)*U;break;case"center":case"bottom":l-=(V.length-1)*U;break}for(var z=0;z0&&t.strokeText(V[z],u,l),t.fillText(V[z],u,l),l+=U}else $>0&&t.strokeText(c,u,l),t.fillText(c,u,l);C!==0&&(t.rotate(-C),t.translate(-f,-h))}}};var zr={};zr.drawNode=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o,u,l=e._private,f=l.rscratch,h=e.position();if(!(!ae(h.x)||!ae(h.y))&&!(i&&!e.visible())){var c=i?e.effectiveOpacity():1,v=s.usePaths(),d,g=!1,b=e.padding();o=e.width()+2*b,u=e.height()+2*b;var p;r&&(p=r,t.translate(-p.x1,-p.y1));for(var m=e.pstyle("background-image"),y=m.value,w=new Array(y.length),C=new Array(y.length),D=0,E=0;E0&&arguments[0]!==void 0?arguments[0]:M;s.eleFillStyle(t,e,ne)},P=function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I;s.colorStrokeStyle(t,O[0],O[1],O[2],ne)},B=e.pstyle("shape").strValue,G=e.pstyle("shape-polygon-points").pfValue;if(v){t.translate(h.x,h.y);var F=s.nodePathCache=s.nodePathCache||[],$=co(B==="polygon"?B+","+G.join(","):B,""+u,""+o),V=F[$];V!=null?(d=V,g=!0,f.pathCache=d):(d=new Path2D,F[$]=f.pathCache=d)}var U=function(){if(!g){var ne=h;v&&(ne={x:0,y:0}),s.nodeShapes[s.getNodeShape(e)].draw(d||t,ne.x,ne.y,o,u)}v?t.fill(d):t.fill()},H=function(){for(var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Ee=l.backgrounding,ge=0,he=0;he0&&arguments[0]!==void 0?arguments[0]:!1,ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c;s.hasPie(e)&&(s.drawPie(t,e,ue),ne&&(v||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,u)))},z=function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,ue=(L>0?L:-L)*ne,Ee=L>0?0:255;L!==0&&(s.colorFillStyle(t,Ee,Ee,Ee,ue),v?t.fill(d):t.fill())},X=function(){if(A>0){if(t.lineWidth=A,t.lineCap="butt",t.setLineDash)switch(k){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}if(v?t.stroke(d):t.stroke(),k==="double"){t.lineWidth=A/3;var ne=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",v?t.stroke(d):t.stroke(),t.globalCompositeOperation=ne}t.setLineDash&&t.setLineDash([])}},K=function(){n&&s.drawNodeOverlay(t,e,h,o,u)},Z=function(){n&&s.drawNodeUnderlay(t,e,h,o,u)},te=function(){s.drawElementText(t,e,null,a)},ce=e.pstyle("ghost").value==="yes";if(ce){var de=e.pstyle("ghost-offset-x").pfValue,re=e.pstyle("ghost-offset-y").pfValue,ee=e.pstyle("ghost-opacity").value,fe=ee*c;t.translate(de,re),R(ee*M),U(),H(fe,!0),P(ee*I),X(),Y(L!==0||A!==0),H(fe,!1),z(fe),t.translate(-de,-re)}v&&t.translate(-h.x,-h.y),Z(),v&&t.translate(h.x,h.y),R(),U(),H(c,!0),P(),X(),Y(L!==0||A!==0),H(c,!1),z(),v&&t.translate(-h.x,-h.y),te(),K(),r&&t.translate(p.x1,p.y1)}};var bu=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a,n,i,s){var o=this;if(a.visible()){var u=a.pstyle("".concat(e,"-padding")).pfValue,l=a.pstyle("".concat(e,"-opacity")).value,f=a.pstyle("".concat(e,"-color")).value,h=a.pstyle("".concat(e,"-shape")).value;if(l>0){if(n=n||a.position(),i==null||s==null){var c=a.padding();i=a.width()+2*c,s=a.height()+2*c}o.colorFillStyle(r,f[0],f[1],f[2],l),o.nodeShapes[h].draw(r,n.x,n.y,i+u*2,s+u*2),r.fill()}}}};zr.drawNodeOverlay=bu("overlay");zr.drawNodeUnderlay=bu("underlay");zr.hasPie=function(t){return t=t[0],t._private.hasPie};zr.drawPie=function(t,e,r,a){e=e[0],a=a||e.position();var n=e.cy().style(),i=e.pstyle("pie-size"),s=a.x,o=a.y,u=e.width(),l=e.height(),f=Math.min(u,l)/2,h=0,c=this.usePaths();c&&(s=0,o=0),i.units==="%"?f=f*i.pfValue:i.pfValue!==void 0&&(f=i.pfValue/2);for(var v=1;v<=n.pieBackgroundN;v++){var d=e.pstyle("pie-"+v+"-background-size").value,g=e.pstyle("pie-"+v+"-background-color").value,b=e.pstyle("pie-"+v+"-background-opacity").value*r,p=d/100;p+h>1&&(p=1-h);var m=1.5*Math.PI+2*Math.PI*h,y=2*Math.PI*p,w=m+y;d===0||h>=1||h+p>1||(t.beginPath(),t.moveTo(s,o),t.arc(s,o,f,m,w),t.closePath(),this.colorFillStyle(t,g[0],g[1],g[2],b),t.fill(),h+=p)}};var vt={},gm=100;vt.getPixelRatio=function(){var t=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/e};vt.paintCache=function(t){for(var e=this.paintCaches=this.paintCaches||[],r=!0,a,n=0;ns.minMbLowQualFrames&&(s.motionBlurPxRatio=s.mbPxRBlurry)),s.clearingMotionBlur&&(s.motionBlurPxRatio=1),s.textureDrawLastFrame&&!h&&(f[s.NODE]=!0,f[s.SELECT_BOX]=!0);var m=u.style(),y=u.zoom(),w=n!==void 0?n:y,C=u.pan(),D={x:C.x,y:C.y},E={zoom:y,pan:{x:C.x,y:C.y}},T=s.prevViewport,x=T===void 0||E.zoom!==T.zoom||E.pan.x!==T.pan.x||E.pan.y!==T.pan.y;!x&&!(g&&!d)&&(s.motionBlurPxRatio=1),i&&(D=i),w*=o,D.x*=o,D.y*=o;var S=s.getCachedZSortedEles();function L(re,ee,fe,se,ne){var ue=re.globalCompositeOperation;re.globalCompositeOperation="destination-out",s.colorFillStyle(re,255,255,255,s.motionBlurTransparency),re.fillRect(ee,fe,se,ne),re.globalCompositeOperation=ue}function A(re,ee){var fe,se,ne,ue;!s.clearingMotionBlur&&(re===l.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]||re===l.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG])?(fe={x:C.x*v,y:C.y*v},se=y*v,ne=s.canvasWidth*v,ue=s.canvasHeight*v):(fe=D,se=w,ne=s.canvasWidth,ue=s.canvasHeight),re.setTransform(1,0,0,1,0,0),ee==="motionBlur"?L(re,0,0,ne,ue):!e&&(ee===void 0||ee)&&re.clearRect(0,0,ne,ue),r||(re.translate(fe.x,fe.y),re.scale(se,se)),i&&re.translate(i.x,i.y),n&&re.scale(n,n)}if(h||(s.textureDrawLastFrame=!1),h){if(s.textureDrawLastFrame=!0,!s.textureCache){s.textureCache={},s.textureCache.bb=u.mutableElements().boundingBox(),s.textureCache.texture=s.data.bufferCanvases[s.TEXTURE_BUFFER];var M=s.data.bufferContexts[s.TEXTURE_BUFFER];M.setTransform(1,0,0,1,0,0),M.clearRect(0,0,s.canvasWidth*s.textureMult,s.canvasHeight*s.textureMult),s.render({forcedContext:M,drawOnlyNodeLayer:!0,forcedPxRatio:o*s.textureMult});var E=s.textureCache.viewport={zoom:u.zoom(),pan:u.pan(),width:s.canvasWidth,height:s.canvasHeight};E.mpan={x:(0-E.pan.x)/E.zoom,y:(0-E.pan.y)/E.zoom}}f[s.DRAG]=!1,f[s.NODE]=!1;var O=l.contexts[s.NODE],k=s.textureCache.texture,E=s.textureCache.viewport;O.setTransform(1,0,0,1,0,0),c?L(O,0,0,E.width,E.height):O.clearRect(0,0,E.width,E.height);var I=m.core("outside-texture-bg-color").value,R=m.core("outside-texture-bg-opacity").value;s.colorFillStyle(O,I[0],I[1],I[2],R),O.fillRect(0,0,E.width,E.height);var y=u.zoom();A(O,!1),O.clearRect(E.mpan.x,E.mpan.y,E.width/E.zoom/o,E.height/E.zoom/o),O.drawImage(k,E.mpan.x,E.mpan.y,E.width/E.zoom/o,E.height/E.zoom/o)}else s.textureOnViewport&&!e&&(s.textureCache=null);var P=u.extent(),B=s.pinching||s.hoverData.dragging||s.swipePanning||s.data.wheelZooming||s.hoverData.draggingEles||s.cy.animated(),G=s.hideEdgesOnViewport&&B,F=[];if(F[s.NODE]=!f[s.NODE]&&c&&!s.clearedForMotionBlur[s.NODE]||s.clearingMotionBlur,F[s.NODE]&&(s.clearedForMotionBlur[s.NODE]=!0),F[s.DRAG]=!f[s.DRAG]&&c&&!s.clearedForMotionBlur[s.DRAG]||s.clearingMotionBlur,F[s.DRAG]&&(s.clearedForMotionBlur[s.DRAG]=!0),f[s.NODE]||r||a||F[s.NODE]){var $=c&&!F[s.NODE]&&v!==1,O=e||($?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]:l.contexts[s.NODE]),V=c&&!$?"motionBlur":void 0;A(O,V),G?s.drawCachedNodes(O,S.nondrag,o,P):s.drawLayeredElements(O,S.nondrag,o,P),s.debug&&s.drawDebugPoints(O,S.nondrag),!r&&!c&&(f[s.NODE]=!1)}if(!a&&(f[s.DRAG]||r||F[s.DRAG])){var $=c&&!F[s.DRAG]&&v!==1,O=e||($?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG]:l.contexts[s.DRAG]);A(O,c&&!$?"motionBlur":void 0),G?s.drawCachedNodes(O,S.drag,o,P):s.drawCachedElements(O,S.drag,o,P),s.debug&&s.drawDebugPoints(O,S.drag),!r&&!c&&(f[s.DRAG]=!1)}if(s.showFps||!a&&f[s.SELECT_BOX]&&!r){var O=e||l.contexts[s.SELECT_BOX];if(A(O),s.selection[4]==1&&(s.hoverData.selecting||s.touchData.selecting)){var y=s.cy.zoom(),U=m.core("selection-box-border-width").value/y;O.lineWidth=U,O.fillStyle="rgba("+m.core("selection-box-color").value[0]+","+m.core("selection-box-color").value[1]+","+m.core("selection-box-color").value[2]+","+m.core("selection-box-opacity").value+")",O.fillRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]),U>0&&(O.strokeStyle="rgba("+m.core("selection-box-border-color").value[0]+","+m.core("selection-box-border-color").value[1]+","+m.core("selection-box-border-color").value[2]+","+m.core("selection-box-opacity").value+")",O.strokeRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]))}if(l.bgActivePosistion&&!s.hoverData.selecting){var y=s.cy.zoom(),H=l.bgActivePosistion;O.fillStyle="rgba("+m.core("active-bg-color").value[0]+","+m.core("active-bg-color").value[1]+","+m.core("active-bg-color").value[2]+","+m.core("active-bg-opacity").value+")",O.beginPath(),O.arc(H.x,H.y,m.core("active-bg-size").pfValue/y,0,2*Math.PI),O.fill()}var Y=s.lastRedrawTime;if(s.showFps&&Y){Y=Math.round(Y);var z=Math.round(1e3/Y);O.setTransform(1,0,0,1,0,0),O.fillStyle="rgba(255, 0, 0, 0.75)",O.strokeStyle="rgba(255, 0, 0, 0.75)",O.lineWidth=1,O.fillText("1 frame = "+Y+" ms = "+z+" fps",0,20);var X=60;O.strokeRect(0,30,250,20),O.fillRect(0,30,250*Math.min(z/X,1),20)}r||(f[s.SELECT_BOX]=!1)}if(c&&v!==1){var K=l.contexts[s.NODE],Z=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_NODE],te=l.contexts[s.DRAG],ce=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_DRAG],de=function(ee,fe,se){ee.setTransform(1,0,0,1,0,0),se||!p?ee.clearRect(0,0,s.canvasWidth,s.canvasHeight):L(ee,0,0,s.canvasWidth,s.canvasHeight);var ne=v;ee.drawImage(fe,0,0,s.canvasWidth*ne,s.canvasHeight*ne,0,0,s.canvasWidth,s.canvasHeight)};(f[s.NODE]||F[s.NODE])&&(de(K,Z,F[s.NODE]),f[s.NODE]=!1),(f[s.DRAG]||F[s.DRAG])&&(de(te,ce,F[s.DRAG]),f[s.DRAG]=!1)}s.prevViewport=E,s.clearingMotionBlur&&(s.clearingMotionBlur=!1,s.motionBlurCleared=!0,s.motionBlur=!0),c&&(s.motionBlurTimeout=setTimeout(function(){s.motionBlurTimeout=null,s.clearedForMotionBlur[s.NODE]=!1,s.clearedForMotionBlur[s.DRAG]=!1,s.motionBlur=!1,s.clearingMotionBlur=!h,s.mbFrames=0,f[s.NODE]=!0,f[s.DRAG]=!0,s.redraw()},gm)),e||u.emit("render")};var Qt={};Qt.drawPolygonPath=function(t,e,r,a,n,i){var s=a/2,o=n/2;t.beginPath&&t.beginPath(),t.moveTo(e+s*i[0],r+o*i[1]);for(var u=1;u0&&s>0){v.clearRect(0,0,i,s),v.globalCompositeOperation="source-over";var d=this.getCachedZSortedEles();if(t.full)v.translate(-a.x1*l,-a.y1*l),v.scale(l,l),this.drawElements(v,d),v.scale(1/l,1/l),v.translate(a.x1*l,a.y1*l);else{var g=e.pan(),b={x:g.x*l,y:g.y*l};l*=e.zoom(),v.translate(b.x,b.y),v.scale(l,l),this.drawElements(v,d),v.scale(1/l,1/l),v.translate(-b.x,-b.y)}t.bg&&(v.globalCompositeOperation="destination-over",v.fillStyle=t.bg,v.rect(0,0,i,s),v.fill())}return c};function pm(t,e){for(var r=atob(t),a=new ArrayBuffer(r.length),n=new Uint8Array(a),i=0;i"u"?"undefined":_e(OffscreenCanvas))!=="undefined"?r=new OffscreenCanvas(t,e):(r=document.createElement("canvas"),r.width=t,r.height=e),r};[yu,Ot,Bt,Ei,fr,zr,vt,Qt,Ta,xu].forEach(function(t){ve(Ce,t)});var bm=[{name:"null",impl:ou},{name:"base",impl:du},{name:"canvas",impl:ym}],Em=[{type:"layout",extensions:Ly},{type:"renderer",extensions:bm}],Cu={},Du={};function Su(t,e,r){var a=r,n=function(T){Ae("Can not register `"+e+"` for `"+t+"` since `"+T+"` already exists in the prototype and can not be overridden")};if(t==="core"){if(la.prototype[e])return n(e);la.prototype[e]=r}else if(t==="collection"){if(Ke.prototype[e])return n(e);Ke.prototype[e]=r}else if(t==="layout"){for(var i=function(T){this.options=T,r.call(this,T),Te(this._private)||(this._private={}),this._private.cy=T.cy,this._private.listeners=[],this.createEmitter()},s=i.prototype=Object.create(r.prototype),o=[],u=0;ud&&(this.rect.x-=(this.labelWidth-d)/2,this.setWidth(this.labelWidth)),this.labelHeight>g&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-g)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-g),this.setHeight(this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(v){var d=this.rect.x;d>u.WORLD_BOUNDARY?d=u.WORLD_BOUNDARY:d<-u.WORLD_BOUNDARY&&(d=-u.WORLD_BOUNDARY);var g=this.rect.y;g>u.WORLD_BOUNDARY?g=u.WORLD_BOUNDARY:g<-u.WORLD_BOUNDARY&&(g=-u.WORLD_BOUNDARY);var b=new f(d,g),p=v.inverseTransformPoint(b);this.setLocation(p.x,p.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},r.exports=h},function(r,a,n){function i(s,o){s==null&&o==null?(this.x=0,this.y=0):(this.x=s,this.y=o)}i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.setX=function(s){this.x=s},i.prototype.setY=function(s){this.y=s},i.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},i.prototype.getCopy=function(){return new i(this.x,this.y)},i.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},r.exports=i},function(r,a,n){var i=n(2),s=n(10),o=n(0),u=n(6),l=n(3),f=n(1),h=n(13),c=n(12),v=n(11);function d(b,p,m){i.call(this,m),this.estimatedSize=s.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=b,p!=null&&p instanceof u?this.graphManager=p:p!=null&&p instanceof Layout&&(this.graphManager=p.graphManager)}d.prototype=Object.create(i.prototype);for(var g in i)d[g]=i[g];d.prototype.getNodes=function(){return this.nodes},d.prototype.getEdges=function(){return this.edges},d.prototype.getGraphManager=function(){return this.graphManager},d.prototype.getParent=function(){return this.parent},d.prototype.getLeft=function(){return this.left},d.prototype.getRight=function(){return this.right},d.prototype.getTop=function(){return this.top},d.prototype.getBottom=function(){return this.bottom},d.prototype.isConnected=function(){return this.isConnected},d.prototype.add=function(b,p,m){if(p==null&&m==null){var y=b;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(y)>-1)throw"Node already in graph!";return y.owner=this,this.getNodes().push(y),y}else{var w=b;if(!(this.getNodes().indexOf(p)>-1&&this.getNodes().indexOf(m)>-1))throw"Source or target not in graph!";if(!(p.owner==m.owner&&p.owner==this))throw"Both owners must be this graph!";return p.owner!=m.owner?null:(w.source=p,w.target=m,w.isInterGraph=!1,this.getEdges().push(w),p.edges.push(w),m!=p&&m.edges.push(w),w)}},d.prototype.remove=function(b){var p=b;if(b instanceof l){if(p==null)throw"Node is null!";if(!(p.owner!=null&&p.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var m=p.edges.slice(),y,w=m.length,C=0;C-1&&T>-1))throw"Source and/or target doesn't know this edge!";y.source.edges.splice(E,1),y.target!=y.source&&y.target.edges.splice(T,1);var D=y.source.owner.getEdges().indexOf(y);if(D==-1)throw"Not in owner's edge list!";y.source.owner.getEdges().splice(D,1)}},d.prototype.updateLeftTop=function(){for(var b=s.MAX_VALUE,p=s.MAX_VALUE,m,y,w,C=this.getNodes(),D=C.length,E=0;Em&&(b=m),p>y&&(p=y)}return b==s.MAX_VALUE?null:(C[0].getParent().paddingLeft!=null?w=C[0].getParent().paddingLeft:w=this.margin,this.left=p-w,this.top=b-w,new c(this.left,this.top))},d.prototype.updateBounds=function(b){for(var p=s.MAX_VALUE,m=-s.MAX_VALUE,y=s.MAX_VALUE,w=-s.MAX_VALUE,C,D,E,T,x,S=this.nodes,L=S.length,A=0;AC&&(p=C),mE&&(y=E),wC&&(p=C),mE&&(y=E),w=this.nodes.length){var L=0;m.forEach(function(A){A.owner==b&&L++}),L==this.nodes.length&&(this.isConnected=!0)}},r.exports=d},function(r,a,n){var i,s=n(1);function o(u){i=n(5),this.layout=u,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var u=this.layout.newGraph(),l=this.layout.newNode(null),f=this.add(u,l);return this.setRootGraph(f),this.rootGraph},o.prototype.add=function(u,l,f,h,c){if(f==null&&h==null&&c==null){if(u==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(u)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(u),u.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return u.parent=l,l.child=u,u}else{c=f,h=l,f=u;var v=h.getOwner(),d=c.getOwner();if(!(v!=null&&v.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(d!=null&&d.getGraphManager()==this))throw"Target not in this graph mgr!";if(v==d)return f.isInterGraph=!1,v.add(f,h,c);if(f.isInterGraph=!0,f.source=h,f.target=c,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},o.prototype.remove=function(u){if(u instanceof i){var l=u;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(l.getEdges());for(var h,c=f.length,v=0;v=u.getRight()?l[0]+=Math.min(u.getX()-o.getX(),o.getRight()-u.getRight()):u.getX()<=o.getX()&&u.getRight()>=o.getRight()&&(l[0]+=Math.min(o.getX()-u.getX(),u.getRight()-o.getRight())),o.getY()<=u.getY()&&o.getBottom()>=u.getBottom()?l[1]+=Math.min(u.getY()-o.getY(),o.getBottom()-u.getBottom()):u.getY()<=o.getY()&&u.getBottom()>=o.getBottom()&&(l[1]+=Math.min(o.getY()-u.getY(),u.getBottom()-o.getBottom()));var c=Math.abs((u.getCenterY()-o.getCenterY())/(u.getCenterX()-o.getCenterX()));u.getCenterY()===o.getCenterY()&&u.getCenterX()===o.getCenterX()&&(c=1);var v=c*l[0],d=l[1]/c;l[0]v)return l[0]=f,l[1]=g,l[2]=c,l[3]=S,!1;if(hc)return l[0]=d,l[1]=h,l[2]=T,l[3]=v,!1;if(fc?(l[0]=p,l[1]=m,O=!0):(l[0]=b,l[1]=g,O=!0):I===P&&(f>c?(l[0]=d,l[1]=g,O=!0):(l[0]=y,l[1]=m,O=!0)),-R===P?c>f?(l[2]=x,l[3]=S,k=!0):(l[2]=T,l[3]=E,k=!0):R===P&&(c>f?(l[2]=D,l[3]=E,k=!0):(l[2]=L,l[3]=S,k=!0)),O&&k)return!1;if(f>c?h>v?(B=this.getCardinalDirection(I,P,4),G=this.getCardinalDirection(R,P,2)):(B=this.getCardinalDirection(-I,P,3),G=this.getCardinalDirection(-R,P,1)):h>v?(B=this.getCardinalDirection(-I,P,1),G=this.getCardinalDirection(-R,P,3)):(B=this.getCardinalDirection(I,P,2),G=this.getCardinalDirection(R,P,4)),!O)switch(B){case 1:$=g,F=f+-C/P,l[0]=F,l[1]=$;break;case 2:F=y,$=h+w*P,l[0]=F,l[1]=$;break;case 3:$=m,F=f+C/P,l[0]=F,l[1]=$;break;case 4:F=p,$=h+-w*P,l[0]=F,l[1]=$;break}if(!k)switch(G){case 1:U=E,V=c+-M/P,l[2]=V,l[3]=U;break;case 2:V=L,U=v+A*P,l[2]=V,l[3]=U;break;case 3:U=S,V=c+M/P,l[2]=V,l[3]=U;break;case 4:V=x,U=v+-A*P,l[2]=V,l[3]=U;break}}return!1},s.getCardinalDirection=function(o,u,l){return o>u?l:1+l%4},s.getIntersection=function(o,u,l,f){if(f==null)return this.getIntersection2(o,u,l);var h=o.x,c=o.y,v=u.x,d=u.y,g=l.x,b=l.y,p=f.x,m=f.y,y=void 0,w=void 0,C=void 0,D=void 0,E=void 0,T=void 0,x=void 0,S=void 0,L=void 0;return C=d-c,E=h-v,x=v*c-h*d,D=m-b,T=g-p,S=p*b-g*m,L=C*T-D*E,L===0?null:(y=(E*S-T*x)/L,w=(D*x-C*S)/L,new i(y,w))},s.angleOfVector=function(o,u,l,f){var h=void 0;return o!==l?(h=Math.atan((f-u)/(l-o)),l0?1:s<0?-1:0},i.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},i.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},r.exports=i},function(r,a,n){function i(){}i.MAX_VALUE=2147483647,i.MIN_VALUE=-2147483648,r.exports=i},function(r,a,n){var i=function(){function h(c,v){for(var d=0;d"u"?"undefined":i(o);return o==null||u!="object"&&u!="function"},r.exports=s},function(r,a,n){function i(g){if(Array.isArray(g)){for(var b=0,p=Array(g.length);b0&&b;){for(C.push(E[0]);C.length>0&&b;){var T=C[0];C.splice(0,1),w.add(T);for(var x=T.getEdges(),y=0;y-1&&E.splice(M,1)}w=new Set,D=new Map}}return g},d.prototype.createDummyNodesForBendpoints=function(g){for(var b=[],p=g.source,m=this.graphManager.calcLowestCommonAncestor(g.source,g.target),y=0;y0){for(var m=this.edgeToDummyNodes.get(p),y=0;y=0&&b.splice(S,1);var L=D.getNeighborsList();L.forEach(function(O){if(p.indexOf(O)<0){var k=m.get(O),I=k-1;I==1&&T.push(O),m.set(O,I)}})}p=p.concat(T),(b.length==1||b.length==2)&&(y=!0,w=b[0])}return w},d.prototype.setGraphManager=function(g){this.graphManager=g},r.exports=d},function(r,a,n){function i(){}i.seed=1,i.x=0,i.nextDouble=function(){return i.x=Math.sin(i.seed++)*1e4,i.x-Math.floor(i.x)},r.exports=i},function(r,a,n){var i=n(4);function s(o,u){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(o){this.lworldOrgX=o},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(o){this.lworldOrgY=o},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(o){this.lworldExtX=o},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(o){this.lworldExtY=o},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(o){this.ldeviceOrgX=o},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(o){this.ldeviceOrgY=o},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(o){this.ldeviceExtX=o},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(o){this.ldeviceExtY=o},s.prototype.transformX=function(o){var u=0,l=this.lworldExtX;return l!=0&&(u=this.ldeviceOrgX+(o-this.lworldOrgX)*this.ldeviceExtX/l),u},s.prototype.transformY=function(o){var u=0,l=this.lworldExtY;return l!=0&&(u=this.ldeviceOrgY+(o-this.lworldOrgY)*this.ldeviceExtY/l),u},s.prototype.inverseTransformX=function(o){var u=0,l=this.ldeviceExtX;return l!=0&&(u=this.lworldOrgX+(o-this.ldeviceOrgX)*this.lworldExtX/l),u},s.prototype.inverseTransformY=function(o){var u=0,l=this.ldeviceExtY;return l!=0&&(u=this.lworldOrgY+(o-this.ldeviceOrgY)*this.lworldExtY/l),u},s.prototype.inverseTransformPoint=function(o){var u=new i(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return u},r.exports=s},function(r,a,n){function i(v){if(Array.isArray(v)){for(var d=0,g=Array(v.length);do.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(v-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL):(v>o.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(v-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var v=this.getAllEdges(),d,g=0;g0&&arguments[0]!==void 0?arguments[0]:!0,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g,b,p,m,y=this.getAllNodes(),w;if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&v&&this.updateGrid(),w=new Set,g=0;gC||w>C)&&(v.gravitationForceX=-this.gravityConstant*p,v.gravitationForceY=-this.gravityConstant*m)):(C=d.getEstimatedSize()*this.compoundGravityRangeFactor,(y>C||w>C)&&(v.gravitationForceX=-this.gravityConstant*p*this.compoundGravityConstant,v.gravitationForceY=-this.gravityConstant*m*this.compoundGravityConstant))},h.prototype.isConverged=function(){var v,d=!1;return this.totalIterations>this.maxIterations/3&&(d=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),v=this.totalDisplacement=y.length||C>=y[0].length)){for(var D=0;Dh}}]),l}();r.exports=u},function(r,a,n){var i=function(){function u(l,f){for(var h=0;h2&&arguments[2]!==void 0?arguments[2]:1,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,u),this.sequence1=l,this.sequence2=f,this.match_score=h,this.mismatch_penalty=c,this.gap_penalty=v,this.iMax=l.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var d=0;d=0;l--){var f=this.listeners[l];f.event===o&&f.callback===u&&this.listeners.splice(l,1)}},s.emit=function(o,u){for(var l=0;lf.coolingFactor*f.maxNodeDisplacement&&(this.displacementX=f.coolingFactor*f.maxNodeDisplacement*o.sign(this.displacementX)),Math.abs(this.displacementY)>f.coolingFactor*f.maxNodeDisplacement&&(this.displacementY=f.coolingFactor*f.maxNodeDisplacement*o.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),f.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},u.prototype.propogateDisplacementToChildren=function(f,h){for(var c=this.getChild().getNodes(),v,d=0;d0)this.positionNodesRadially(E);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var T=new Set(this.getAllNodes()),x=this.nodesWithGravity.filter(function(S){return T.has(S)});this.graphManager.setAllNodesToApplyGravitation(x),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},C.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%c.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),T=this.nodesWithGravity.filter(function(L){return E.has(L)});this.graphManager.setAllNodesToApplyGravitation(T),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var x=!this.isTreeGrowing&&!this.isGrowthFinished,S=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(x,S),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},C.prototype.getPositionsData=function(){for(var E=this.graphManager.getAllNodes(),T={},x=0;x1){var O;for(O=0;OS&&(S=Math.floor(M.y)),A=Math.floor(M.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new g(v.WORLD_CENTER_X-M.x/2,v.WORLD_CENTER_Y-M.y/2))},C.radialLayout=function(E,T,x){var S=Math.max(this.maxDiagonalInTree(E),h.DEFAULT_RADIAL_SEPARATION);C.branchRadialLayout(T,null,0,359,0,S);var L=y.calculateBounds(E),A=new w;A.setDeviceOrgX(L.getMinX()),A.setDeviceOrgY(L.getMinY()),A.setWorldOrgX(x.x),A.setWorldOrgY(x.y);for(var M=0;M1;){var U=V[0];V.splice(0,1);var H=P.indexOf(U);H>=0&&P.splice(H,1),F--,B--}T!=null?$=(P.indexOf(V[0])+1)%F:$=0;for(var Y=Math.abs(S-x)/B,z=$;G!=B;z=++z%F){var X=P[z].getOtherEnd(E);if(X!=T){var K=(x+G*Y)%360,Z=(K+Y)%360;C.branchRadialLayout(X,E,K,Z,L+A,A),G++}}},C.maxDiagonalInTree=function(E){for(var T=p.MIN_VALUE,x=0;xT&&(T=L)}return T},C.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},C.prototype.groupZeroDegreeMembers=function(){var E=this,T={};this.memberGroups={},this.idToDummyNode={};for(var x=[],S=this.graphManager.getAllNodes(),L=0;L"u"&&(T[O]=[]),T[O]=T[O].concat(A)}Object.keys(T).forEach(function(k){if(T[k].length>1){var I="DummyCompound_"+k;E.memberGroups[I]=T[k];var R=T[k][0].getParent(),P=new l(E.graphManager);P.id=I,P.paddingLeft=R.paddingLeft||0,P.paddingRight=R.paddingRight||0,P.paddingBottom=R.paddingBottom||0,P.paddingTop=R.paddingTop||0,E.idToDummyNode[I]=P;var B=E.getGraphManager().add(E.newGraph(),P),G=R.getChild();G.add(P);for(var F=0;F=0;E--){var T=this.compoundOrder[E],x=T.id,S=T.paddingLeft,L=T.paddingTop;this.adjustLocations(this.tiledMemberPack[x],T.rect.x,T.rect.y,S,L)}},C.prototype.repopulateZeroDegreeMembers=function(){var E=this,T=this.tiledZeroDegreePack;Object.keys(T).forEach(function(x){var S=E.idToDummyNode[x],L=S.paddingLeft,A=S.paddingTop;E.adjustLocations(T[x],S.rect.x,S.rect.y,L,A)})},C.prototype.getToBeTiled=function(E){var T=E.id;if(this.toBeTiled[T]!=null)return this.toBeTiled[T];var x=E.getChild();if(x==null)return this.toBeTiled[T]=!1,!1;for(var S=x.getNodes(),L=0;L0)return this.toBeTiled[T]=!1,!1;if(A.getChild()==null){this.toBeTiled[A.id]=!1;continue}if(!this.getToBeTiled(A))return this.toBeTiled[T]=!1,!1}return this.toBeTiled[T]=!0,!0},C.prototype.getNodeDegree=function(E){E.id;for(var T=E.getEdges(),x=0,S=0;Sk&&(k=R.rect.height)}x+=k+E.verticalPadding}},C.prototype.tileCompoundMembers=function(E,T){var x=this;this.tiledMemberPack=[],Object.keys(E).forEach(function(S){var L=T[S];x.tiledMemberPack[S]=x.tileNodes(E[S],L.paddingLeft+L.paddingRight),L.rect.width=x.tiledMemberPack[S].width,L.rect.height=x.tiledMemberPack[S].height})},C.prototype.tileNodes=function(E,T){var x=h.TILING_PADDING_VERTICAL,S=h.TILING_PADDING_HORIZONTAL,L={rows:[],rowWidth:[],rowHeight:[],width:0,height:T,verticalPadding:x,horizontalPadding:S};E.sort(function(O,k){return O.rect.width*O.rect.height>k.rect.width*k.rect.height?-1:O.rect.width*O.rect.height0&&(M+=E.horizontalPadding),E.rowWidth[x]=M,E.width0&&(O+=E.verticalPadding);var k=0;O>E.rowHeight[x]&&(k=E.rowHeight[x],E.rowHeight[x]=O,k=E.rowHeight[x]-k),E.height+=k,E.rows[x].push(T)},C.prototype.getShortestRowIndex=function(E){for(var T=-1,x=Number.MAX_VALUE,S=0;Sx&&(T=S,x=E.rowWidth[S]);return T},C.prototype.canAddHorizontal=function(E,T,x){var S=this.getShortestRowIndex(E);if(S<0)return!0;var L=E.rowWidth[S];if(L+E.horizontalPadding+T<=E.width)return!0;var A=0;E.rowHeight[S]0&&(A=x+E.verticalPadding-E.rowHeight[S]);var M;E.width-L>=T+E.horizontalPadding?M=(E.height+A)/(L+T+E.horizontalPadding):M=(E.height+A)/E.width,A=x+E.verticalPadding;var O;return E.widthA&&T!=x){S.splice(-1,1),E.rows[x].push(L),E.rowWidth[T]=E.rowWidth[T]-A,E.rowWidth[x]=E.rowWidth[x]+A,E.width=E.rowWidth[instance.getLongestRowIndex(E)];for(var M=Number.MIN_VALUE,O=0;OM&&(M=S[O].height);T>0&&(M+=E.verticalPadding);var k=E.rowHeight[T]+E.rowHeight[x];E.rowHeight[T]=M,E.rowHeight[x]0)for(var G=L;G<=A;G++)B[0]+=this.grid[G][M-1].length+this.grid[G][M].length-1;if(A0)for(var G=M;G<=O;G++)B[3]+=this.grid[L-1][G].length+this.grid[L][G].length-1;for(var F=p.MAX_VALUE,$,V,U=0;U0){var O;O=w.getGraphManager().add(w.newGraph(),x),this.processChildrenList(O,T,w)}}},g.prototype.stop=function(){return this.stopped=!0,this};var p=function(y){y("layout","cose-bilkent",g)};typeof cytoscape<"u"&&p(cytoscape),a.exports=p}])})})(Nu);const Sm=Qu(Nu.exports);var Zn=function(){var t=function(b,p,m,y){for(m=m||{},y=b.length;y--;m[b[y]]=p);return m},e=[1,7],r=[1,9],a=[1,10],n=[1,14],i=[1,13],s=[1,19],o=[1,20],u=[6,9],l=[1,7,12,13,16,19],f=[1,28],h=[1,29],c=[1,6,7,9,12,13,16,19],v={trace:function(){},yy:{},symbols_:{error:2,start:3,MINDMAP:4,document:5,NL:6,SPACELIST:7,stop:8,EOF:9,statement:10,node:11,ICON:12,CLASS:13,nodeWithId:14,nodeWithoutId:15,NODE_DSTART:16,NODE_DESCR:17,NODE_DEND:18,NODE_ID:19,$accept:0,$end:1},terminals_:{2:"error",4:"MINDMAP",6:"NL",7:"SPACELIST",9:"EOF",12:"ICON",13:"CLASS",16:"NODE_DSTART",17:"NODE_DESCR",18:"NODE_DEND",19:"NODE_ID"},productions_:[0,[3,2],[3,3],[3,3],[8,1],[8,1],[8,2],[8,2],[5,3],[5,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[11,1],[11,1],[15,3],[14,1],[14,4]],performAction:function(p,m,y,w,C,D,E){var T=D.length-1;switch(C){case 1:case 2:case 3:return w;case 4:w.getLogger().trace("Stop NL ");break;case 5:w.getLogger().trace("Stop EOF ");break;case 6:w.getLogger().trace("Stop NL2 ");break;case 7:w.getLogger().trace("Stop EOF2 ");break;case 10:w.getLogger().trace("Node: ",D[T].id),w.addNode(D[T-1].length,D[T].id,D[T].descr,D[T].type);break;case 11:w.getLogger().trace("Icon: ",D[T]),w.decorateNode({icon:D[T]});break;case 12:case 15:w.decorateNode({class:D[T]});break;case 13:w.getLogger().trace("Node: ",D[T].id),w.addNode(0,D[T].id,D[T].descr,D[T].type);break;case 14:w.decorateNode({icon:D[T]});break;case 19:w.getLogger().trace("node found ..",D[T-2]),this.$={id:D[T-1],descr:D[T-1],type:w.getType(D[T-2],D[T])};break;case 20:this.$={id:D[T],descr:D[T],type:w.nodeType.DEFAULT};break;case 21:w.getLogger().trace("node found ..",D[T-3]),this.$={id:D[T-3],descr:D[T-1],type:w.getType(D[T-2],D[T])};break}},table:[{3:1,4:[1,2],7:[1,3]},{1:[3]},{5:4,6:[1,5],7:e,10:6,11:8,12:r,13:a,14:11,15:12,16:n,19:i},{4:[1,15]},{1:[2,1],7:e,10:16,11:8,12:r,13:a,14:11,15:12,16:n,19:i},{5:17,7:e,10:6,11:8,12:r,13:a,14:11,15:12,16:n,19:i},{6:s,8:18,9:o},t(u,[2,16],{14:11,15:12,11:21,12:[1,22],13:[1,23],16:n,19:i}),t(u,[2,13]),t(u,[2,14]),t(u,[2,15]),t(u,[2,17]),t(u,[2,18]),t(u,[2,20],{16:[1,24]}),{17:[1,25]},{5:26,7:e,10:6,11:8,12:r,13:a,14:11,15:12,16:n,19:i},{6:s,8:27,9:o},{1:[2,2],7:e,10:16,11:8,12:r,13:a,14:11,15:12,16:n,19:i},t(l,[2,9],{6:f,9:h}),t(c,[2,4]),t(c,[2,5]),t(u,[2,10]),t(u,[2,11]),t(u,[2,12]),{17:[1,30]},{18:[1,31]},{1:[2,3],7:e,10:16,11:8,12:r,13:a,14:11,15:12,16:n,19:i},t(l,[2,8],{6:f,9:h}),t(c,[2,6]),t(c,[2,7]),{18:[1,32]},t(u,[2,19]),t(u,[2,21])],defaultActions:{},parseError:function(p,m){if(m.recoverable)this.trace(p);else{var y=new Error(p);throw y.hash=m,y}},parse:function(p){var m=this,y=[0],w=[],C=[null],D=[],E=this.table,T="",x=0,S=0,L=2,A=1,M=D.slice.call(arguments,1),O=Object.create(this.lexer),k={yy:{}};for(var I in this.yy)Object.prototype.hasOwnProperty.call(this.yy,I)&&(k.yy[I]=this.yy[I]);O.setInput(p,k.yy),k.yy.lexer=O,k.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var R=O.yylloc;D.push(R);var P=O.options&&O.options.ranges;typeof k.yy.parseError=="function"?this.parseError=k.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function B(){var Z;return Z=w.pop()||O.lex()||A,typeof Z!="number"&&(Z instanceof Array&&(w=Z,Z=w.pop()),Z=m.symbols_[Z]||Z),Z}for(var G,F,$,V,U={},H,Y,z,X;;){if(F=y[y.length-1],this.defaultActions[F]?$=this.defaultActions[F]:((G===null||typeof G>"u")&&(G=B()),$=E[F]&&E[F][G]),typeof $>"u"||!$.length||!$[0]){var K="";X=[];for(H in E[F])this.terminals_[H]&&H>L&&X.push("'"+this.terminals_[H]+"'");O.showPosition?K="Parse error on line "+(x+1)+`: +`+O.showPosition()+` +Expecting `+X.join(", ")+", got '"+(this.terminals_[G]||G)+"'":K="Parse error on line "+(x+1)+": Unexpected "+(G==A?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(K,{text:O.match,token:this.terminals_[G]||G,line:O.yylineno,loc:R,expected:X})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+G);switch($[0]){case 1:y.push(G),C.push(O.yytext),D.push(O.yylloc),y.push($[1]),G=null,S=O.yyleng,T=O.yytext,x=O.yylineno,R=O.yylloc;break;case 2:if(Y=this.productions_[$[1]][1],U.$=C[C.length-Y],U._$={first_line:D[D.length-(Y||1)].first_line,last_line:D[D.length-1].last_line,first_column:D[D.length-(Y||1)].first_column,last_column:D[D.length-1].last_column},P&&(U._$.range=[D[D.length-(Y||1)].range[0],D[D.length-1].range[1]]),V=this.performAction.apply(U,[T,S,x,k.yy,$[1],C,D].concat(M)),typeof V<"u")return V;Y&&(y=y.slice(0,-1*Y*2),C=C.slice(0,-1*Y),D=D.slice(0,-1*Y)),y.push(this.productions_[$[1]][0]),C.push(U.$),D.push(U._$),z=E[y[y.length-2]][y[y.length-1]],y.push(z);break;case 3:return!0}}return!0}},d=function(){var b={EOF:1,parseError:function(m,y){if(this.yy.parser)this.yy.parser.parseError(m,y);else throw new Error(m)},setInput:function(p,m){return this.yy=m||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var m=p.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),p},unput:function(p){var m=p.length,y=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var w=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===w.length?this.yylloc.first_column:0)+w[w.length-y.length].length-y[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(p){this.unput(this.match.slice(p))},pastInput:function(){var p=this.matched.substr(0,this.matched.length-this.match.length);return(p.length>20?"...":"")+p.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var p=this.match;return p.length<20&&(p+=this._input.substr(0,20-p.length)),(p.substr(0,20)+(p.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var p=this.pastInput(),m=new Array(p.length+1).join("-");return p+this.upcomingInput()+` +`+m+"^"},test_match:function(p,m){var y,w,C;if(this.options.backtrack_lexer&&(C={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(C.yylloc.range=this.yylloc.range.slice(0))),w=p[0].match(/(?:\r\n?|\n).*/g),w&&(this.yylineno+=w.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:w?w[w.length-1].length-w[w.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(p[0].length),this.matched+=p[0],y=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var D in C)this[D]=C[D];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var p,m,y,w;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),D=0;Dm[0].length)){if(m=y,w=D,this.options.backtrack_lexer){if(p=this.test_match(y,C[D]),p!==!1)return p;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(p=this.test_match(m,C[w]),p!==!1?p:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var m=this.next();return m||this.lex()},begin:function(m){this.conditionStack.push(m)},popState:function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},pushState:function(m){this.begin(m)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(m,y,w,C){switch(w){case 0:m.getLogger().trace("Found comment",y.yytext);break;case 1:return 4;case 2:this.begin("CLASS");break;case 3:return this.popState(),13;case 4:this.popState();break;case 5:m.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return 6;case 7:return 12;case 8:m.getLogger().trace("end icon"),this.popState();break;case 9:return m.getLogger().trace("Exploding node"),this.begin("NODE"),16;case 10:return m.getLogger().trace("Cloud"),this.begin("NODE"),16;case 11:return m.getLogger().trace("Explosion Bang"),this.begin("NODE"),16;case 12:return m.getLogger().trace("Cloud Bang"),this.begin("NODE"),16;case 13:return this.begin("NODE"),16;case 14:return this.begin("NODE"),16;case 15:return this.begin("NODE"),16;case 16:return this.begin("NODE"),16;case 17:return 7;case 18:return 19;case 19:return 9;case 20:m.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 21:return m.getLogger().trace("description:",y.yytext),"NODE_DESCR";case 22:this.popState();break;case 23:return this.popState(),m.getLogger().trace("node end ))"),"NODE_DEND";case 24:return this.popState(),m.getLogger().trace("node end )"),"NODE_DEND";case 25:return this.popState(),m.getLogger().trace("node end ...",y.yytext),"NODE_DEND";case 26:return this.popState(),m.getLogger().trace("node end (("),"NODE_DEND";case 27:return this.popState(),m.getLogger().trace("node end (-"),"NODE_DEND";case 28:return this.popState(),m.getLogger().trace("node end (-"),"NODE_DEND";case 29:return this.popState(),m.getLogger().trace("node end (("),"NODE_DEND";case 30:return this.popState(),m.getLogger().trace("node end (("),"NODE_DEND";case 31:return m.getLogger().trace("Long description:",y.yytext),17;case 32:return m.getLogger().trace("Long description:",y.yytext),17}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\-\)\{\}]+)/i,/^(?:$)/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[7,8],inclusive:!1},NSTR:{rules:[21,22],inclusive:!1},NODE:{rules:[20,23,24,25,26,27,28,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,9,10,11,12,13,14,15,16,17,18,19],inclusive:!0}}};return b}();v.lexer=d;function g(){this.yy={}}return g.prototype=v,v.Parser=g,new g}();Zn.parser=Zn;const Lm=Zn,br=t=>{console.error("Log function was called before initialization",t)},ft={trace:br,debug:br,info:br,warn:br,error:br,fatal:br};let fa,ha,Mu;const Am=(t,e,r,a,n)=>{t.info("Mermaid utils injected"),ft.trace=t.trace,ft.debug=t.debug,ft.info=t.info,ft.warn=t.warn,ft.error=t.error,ft.fatal=t.fatal,fa=r,ha=a,Mu=n};let pt=[],Iu=0,wi={};const Om=()=>{pt=[],Iu=0,wi={}},Nm=function(t){for(let e=pt.length-1;e>=0;e--)if(pt[e].levelpt.length>0?pt[0]:null,Im=(t,e,r,a)=>{ft.info("addNode",t,e,r,a);const n=fa(),i={id:Iu++,nodeId:ha(e),level:t,descr:ha(r),type:a,children:[],width:fa().mindmap.maxNodeWidth};switch(i.type){case Me.ROUNDED_RECT:i.padding=2*n.mindmap.padding;break;case Me.RECT:i.padding=2*n.mindmap.padding;break;case Me.HEXAGON:i.padding=2*n.mindmap.padding;break;default:i.padding=n.mindmap.padding}const s=Nm(t);if(s)s.children.push(i),pt.push(i);else if(pt.length===0)pt.push(i);else{let o=new Error('There can be only one root. No parent could be found for ("'+i.descr+'")');throw o.hash={text:"branch "+name,token:"branch "+name,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+name+'"']},o}},Me={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Rm=(t,e)=>{switch(ft.debug("In get type",t,e),t){case"[":return Me.RECT;case"(":return e===")"?Me.ROUNDED_RECT:Me.CLOUD;case"((":return Me.CIRCLE;case")":return Me.CLOUD;case"))":return Me.BANG;case"{{":return Me.HEXAGON;default:return Me.DEFAULT}},Ru=(t,e)=>{wi[t]=e},km=t=>{const e=pt[pt.length-1];t&&t.icon&&(e.icon=ha(t.icon)),t&&t.class&&(e.class=ha(t.class))},hr=t=>{switch(t){case Me.DEFAULT:return"no-border";case Me.RECT:return"rect";case Me.ROUNDED_RECT:return"rounded-rect";case Me.CIRCLE:return"circle";case Me.CLOUD:return"cloud";case Me.BANG:return"bang";case Me.HEXAGON:return"hexgon";default:return"no-border"}};let ku;const Pm=t=>{ku=t},Bm=()=>ft,Fm=t=>pt[t],xi=t=>wi[t],Gm=Object.freeze(Object.defineProperty({__proto__:null,clear:Om,getMindmap:Mm,addNode:Im,nodeType:Me,getType:Rm,setElementForId:Ru,decorateNode:km,type2Str:hr,get parseError(){return ku},setErrorHandler:Pm,getLogger:Bm,getNodeById:Fm,getElementById:xi},Symbol.toStringTag,{value:"Module"})),Pu=12;function zm(t,e){t.each(function(){var r=Qr(this),a=r.text().split(/(\s+|
)/).reverse(),n,i=[],s=1.1,o=r.attr("y"),u=parseFloat(r.attr("dy")),l=r.text(null).append("tspan").attr("x",0).attr("y",o).attr("dy",u+"em");for(let f=0;fe||n==="
")&&(i.pop(),l.text(i.join(" ").trim()),n==="
"?i=[""]:i=[n],l=r.append("tspan").attr("x",0).attr("y",o).attr("dy",s+"em").text(n))})}const $m=function(t,e,r){t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+hr(e.type)).attr("d",`M0 ${e.height-5} v${-e.height+2*5} q0,-5 5,-5 h${e.width-2*5} q5,0 5,5 v${e.height-5} H0 Z`),t.append("line").attr("class","node-line-"+r).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},Vm=function(t,e){t.append("rect").attr("id","node-"+e.id).attr("class","node-bkg node-"+hr(e.type)).attr("height",e.height).attr("width",e.width)},_m=function(t,e){const r=e.width,a=e.height,n=.15*r,i=.25*r,s=.35*r,o=.2*r;t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+hr(e.type)).attr("d",`M0 0 a${n},${n} 0 0,1 ${r*.25},${-1*r*.1} + a${s},${s} 1 0,1 ${r*.4},${-1*r*.1} + a${i},${i} 1 0,1 ${r*.35},${1*r*.2} + + a${n},${n} 1 0,1 ${r*.15},${1*a*.35} + a${o},${o} 1 0,1 ${-1*r*.15},${1*a*.65} + + a${i},${n} 1 0,1 ${-1*r*.25},${r*.15} + a${s},${s} 1 0,1 ${-1*r*.5},${0} + a${n},${n} 1 0,1 ${-1*r*.25},${-1*r*.15} + + a${n},${n} 1 0,1 ${-1*r*.1},${-1*a*.35} + a${o},${o} 1 0,1 ${r*.1},${-1*a*.65} + + H0 V0 Z`)},Um=function(t,e){const r=e.width,a=e.height,n=.15*r;t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+hr(e.type)).attr("d",`M0 0 a${n},${n} 1 0,0 ${r*.25},${-1*a*.1} + a${n},${n} 1 0,0 ${r*.25},${0} + a${n},${n} 1 0,0 ${r*.25},${0} + a${n},${n} 1 0,0 ${r*.25},${1*a*.1} + + a${n},${n} 1 0,0 ${r*.15},${1*a*.33} + a${n*.8},${n*.8} 1 0,0 ${0},${1*a*.34} + a${n},${n} 1 0,0 ${-1*r*.15},${1*a*.33} + + a${n},${n} 1 0,0 ${-1*r*.25},${a*.15} + a${n},${n} 1 0,0 ${-1*r*.25},${0} + a${n},${n} 1 0,0 ${-1*r*.25},${0} + a${n},${n} 1 0,0 ${-1*r*.25},${-1*a*.15} + + a${n},${n} 1 0,0 ${-1*r*.1},${-1*a*.33} + a${n*.8},${n*.8} 1 0,0 ${0},${-1*a*.34} + a${n},${n} 1 0,0 ${r*.1},${-1*a*.33} + + H0 V0 Z`)},Ym=function(t,e){t.append("circle").attr("id","node-"+e.id).attr("class","node-bkg node-"+hr(e.type)).attr("r",e.width/2)};function Hm(t,e,r,a,n){return t.insert("polygon",":first-child").attr("points",a.map(function(i){return i.x+","+i.y}).join(" ")).attr("transform","translate("+(n.width-e)/2+", "+r+")")}const Xm=function(t,e){const r=e.height,n=r/4,i=e.width-e.padding+2*n,s=[{x:n,y:0},{x:i-n,y:0},{x:i,y:-r/2},{x:i-n,y:-r},{x:n,y:-r},{x:0,y:-r/2}];Hm(t,i,r,s,e)},qm=function(t,e){t.append("rect").attr("id","node-"+e.id).attr("class","node-bkg node-"+hr(e.type)).attr("height",e.height).attr("rx",e.padding).attr("ry",e.padding).attr("width",e.width)},Wm=function(t,e,r,a){const n=r%Pu-1,i=t.append("g");e.section=n,i.attr("class",(e.class?e.class+" ":"")+"mindmap-node "+(n<0?"section-root":"section-"+n));const s=i.append("g"),o=i.append("g"),l=o.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(zm,e.width).node().getBBox(),f=a.fontSize.replace?a.fontSize.replace("px",""):a.fontSize;if(e.height=l.height+f*1.1*.5+e.padding,e.width=l.width+2*e.padding,e.icon)if(e.type===Me.CIRCLE)e.height+=50,e.width+=50,i.append("foreignObject").attr("height","50px").attr("width",e.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+n+" "+e.icon),o.attr("transform","translate("+e.width/2+", "+(e.height/2-1.5*e.padding)+")");else{e.width+=50;const h=e.height;e.height=Math.max(h,60);const c=Math.abs(e.height-h);i.append("foreignObject").attr("width","60px").attr("height",e.height).attr("style","text-align: center;margin-top:"+c/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+n+" "+e.icon),o.attr("transform","translate("+(25+e.width/2)+", "+(c/2+e.padding/2)+")")}else o.attr("transform","translate("+e.width/2+", "+e.padding/2+")");switch(e.type){case Me.DEFAULT:$m(s,e,n);break;case Me.ROUNDED_RECT:qm(s,e);break;case Me.RECT:Vm(s,e);break;case Me.CIRCLE:s.attr("transform","translate("+e.width/2+", "+ +e.height/2+")"),Ym(s,e);break;case Me.CLOUD:_m(s,e);break;case Me.BANG:Um(s,e);break;case Me.HEXAGON:Xm(s,e);break}return Ru(e.id,i),e.height},Km=function(e,r,a,n,i){const s=i%Pu-1,o=a.x+a.width/2,u=a.y+a.height/2,l=r.x+r.width/2,f=r.y+r.height/2,h=l>o?o+Math.abs(o-l)/2:o-Math.abs(o-l)/2,c=f>u?u+Math.abs(u-f)/2:u-Math.abs(u-f)/2,v=l>o?Math.abs(o-h)/2+o:-Math.abs(o-h)/2+o,d=f>u?Math.abs(u-c)/2+u:-Math.abs(u-c)/2+u;e.append("path").attr("d",a.direction==="TB"||a.direction==="BT"?`M${o},${u} Q${o},${d} ${h},${c} T${l},${f}`:`M${o},${u} Q${v},${u} ${h},${c} T${l},${f}`).attr("class","edge section-edge-"+s+" edge-depth-"+n)},Zm=function(t){const e=xi(t.id),r=t.x||0,a=t.y||0;e.attr("transform","translate("+r+","+a+")")},Bu={drawNode:Wm,positionNode:Zm,drawEdge:Km};Ou.use(Sm);function Fu(t,e,r,a){Bu.drawNode(t,e,r,a),e.children&&e.children.forEach((n,i)=>{Fu(t,n,r<0?i:r,a)})}function Qm(t,e){e.edges().map((r,a)=>{const n=r.data();if(r[0]._private.bodyBounds){const i=r[0]._private.rscratch;ft.trace("Edge: ",a,n),t.insert("path").attr("d",`M ${i.startX},${i.startY} L ${i.midX},${i.midY} L${i.endX},${i.endY} `).attr("class","edge section-edge-"+n.section+" edge-depth-"+n.depth)}})}function Gu(t,e,r,a){e.add({group:"nodes",data:{id:t.id,labelText:t.descr,height:t.height,width:t.width,level:a,nodeId:t.id,padding:t.padding,type:t.type},position:{x:t.x,y:t.y}}),t.children&&t.children.forEach(n=>{Gu(n,e,r,a+1),e.add({group:"edges",data:{id:`${t.id}_${n.id}`,source:t.id,target:n.id,depth:a,section:n.section}})})}function Jm(t,e){return new Promise(r=>{const a=Qr("body").append("div").attr("id","cy").attr("style","display:none"),n=Ou({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});a.remove(),Gu(t,n,e,0),n.nodes().forEach(function(i){i.layoutDimensions=()=>{const s=i.data();return{w:s.width,h:s.height}}}),n.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),n.ready(i=>{ft.info("Ready",i),r(n)})})}function jm(t){t.nodes().map((e,r)=>{const a=e.data();a.x=e.position().x,a.y=e.position().y,Bu.positionNode(a);const n=xi(a.nodeId);ft.info("Id:",r,"Position: (",e.position().x,", ",e.position().y,")",a),n.attr("transform",`translate(${e.position().x-a.width/2}, ${e.position().y-a.height/2})`),n.attr("attr",`apa-${r})`)})}const e0=async(t,e,r,a)=>{const n=fa();a.db.clear(),a.parser.parse(t),ft.debug(`Renering info diagram +`+t);const i=fa().securityLevel;let s;i==="sandbox"&&(s=Qr("#i"+e));const u=(i==="sandbox"?Qr(s.nodes()[0].contentDocument.body):Qr("body")).select("#"+e);u.append("g");const l=a.db.getMindmap(),f=u.append("g");f.attr("class","mindmap-edges");const h=u.append("g");h.attr("class","mindmap-nodes"),Fu(h,l,-1,n);const c=await Jm(l,n);Qm(f,c),jm(c),Mu(void 0,u,n.mindmap.padding,n.mindmap.useMaxWidth)},t0={draw:e0},r0=t=>{let e="";for(let r=0;r` + .edge { + stroke-width: 3; + } + ${r0(t)} + .section-root rect, .section-root path, .section-root circle, .section-root polygon { + fill: ${t.git0}; + } + .section-root text { + fill: ${t.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } +`,n0=a0,o0={db:Gm,renderer:t0,parser:Lm,styles:n0,injectUtils:Am};export{o0 as diagram}; diff --git a/_app/immutable/chunks/index-2c2c5609.js b/_app/immutable/chunks/index-2c2c5609.js new file mode 100644 index 00000000..03bd1ed3 --- /dev/null +++ b/_app/immutable/chunks/index-2c2c5609.js @@ -0,0 +1,4 @@ +function p(){}const dt=t=>t;function ht(t,n){for(const e in n)t[e]=n[e];return t}function Z(t){return t()}function Q(){return Object.create(null)}function b(t){t.forEach(Z)}function P(t){return typeof t=="function"}function mt(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function pt(t){return Object.keys(t).length===0}function G(t,...n){if(t==null)return p;const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function Wt(t){let n;return G(t,e=>n=e)(),n}function Jt(t,n,e){t.$$.on_destroy.push(G(n,e))}function Kt(t,n,e,i){if(t){const s=tt(t,n,e,i);return t[0](s)}}function tt(t,n,e,i){return t[1]&&i?ht(e.ctx.slice(),t[1](i(n))):e.ctx}function Qt(t,n,e,i){if(t[2]&&i){const s=t[2](i(e));if(n.dirty===void 0)return s;if(typeof s=="object"){const u=[],c=Math.max(n.dirty.length,s.length);for(let r=0;r32){const n=[],e=t.ctx.length/32;for(let i=0;iwindow.performance.now():()=>Date.now(),I=nt?t=>requestAnimationFrame(t):p;const w=new Set;function et(t){w.forEach(n=>{n.c(t)||(w.delete(n),n.f())}),w.size!==0&&I(et)}function yt(t){let n;return w.size===0&&I(et),{promise:new Promise(e=>{w.add(n={c:t,f:e})}),abort(){w.delete(n)}}}let D=!1;function bt(){D=!0}function $t(){D=!1}function xt(t,n,e,i){for(;t>1);e(s)<=i?t=s+1:n=s}return t}function wt(t){if(t.hydrate_init)return;t.hydrate_init=!0;let n=t.childNodes;if(t.nodeName==="HEAD"){const o=[];for(let l=0;l0&&n[e[s]].claim_order<=l?s+1:xt(1,s,h=>n[e[h]].claim_order,l))-1;i[o]=e[_]+1;const f=_+1;e[f]=o,s=Math.max(f,s)}const u=[],c=[];let r=n.length-1;for(let o=e[s]+1;o!=0;o=i[o-1]){for(u.push(n[o-1]);r>=o;r--)c.push(n[r]);r--}for(;r>=0;r--)c.push(n[r]);u.reverse(),c.sort((o,l)=>o.claim_order-l.claim_order);for(let o=0,l=0;o=u[l].claim_order;)l++;const _=lt.removeEventListener(n,e,i)}function sn(t){return function(n){return n.stopPropagation(),t.call(this,n)}}function rn(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function cn(t){return t===""?null:+t}function kt(t){return Array.from(t.childNodes)}function rt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function ct(t,n,e,i,s=!1){rt(t);const u=(()=>{for(let c=t.claim_info.last_index;c=0;c--){const r=t[c];if(n(r)){const o=e(r);return o===void 0?t.splice(c,1):t[c]=o,s?o===void 0&&t.claim_info.last_index--:t.claim_info.last_index=c,r}}return i()})();return u.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,u}function lt(t,n,e,i){return ct(t,s=>s.nodeName===n,s=>{const u=[];for(let c=0;cs.removeAttribute(c))},()=>i(n))}function ln(t,n,e){return lt(t,n,e,W)}function on(t,n,e){return lt(t,n,e,st)}function Ct(t,n){return ct(t,e=>e.nodeType===3,e=>{const i=""+n;if(e.data.startsWith(i)){if(e.data.length!==i.length)return e.splitText(i.length)}else e.data=i},()=>J(n),!0)}function un(t){return Ct(t," ")}function U(t,n,e){for(let i=e;i>>0}function Ht(t,n){const e={stylesheet:Et(n),rules:{}};return j.set(t,e),e}function X(t,n,e,i,s,u,c,r=0){const o=16.666/i;let l=`{ +`;for(let y=0;y<=1;y+=o){const $=n+(e-n)*u(y);l+=y*100+`%{${c($,1-$)}} +`}const _=l+`100% {${c(e,1-e)}} +}`,f=`__svelte_${jt(_)}_${r}`,h=it(t),{stylesheet:a,rules:d}=j.get(h)||Ht(h,t);d[f]||(d[f]=!0,a.insertRule(`@keyframes ${f} ${_}`,a.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${f} ${i}ms linear ${s}ms 1 both`,H+=1,f}function Lt(t,n){const e=(t.style.animation||"").split(", "),i=e.filter(n?u=>u.indexOf(n)<0:u=>u.indexOf("__svelte")===-1),s=e.length-i.length;s&&(t.style.animation=i.join(", "),H-=s,H||Pt())}function Pt(){I(()=>{H||(j.forEach(t=>{const{ownerNode:n}=t.stylesheet;n&&A(n)}),j.clear())})}let T;function N(t){T=t}function K(){if(!T)throw new Error("Function called outside component initialization");return T}function pn(t){K().$$.on_mount.push(t)}function gn(t){K().$$.after_update.push(t)}function yn(){const t=K();return(n,e,{cancelable:i=!1}={})=>{const s=t.$$.callbacks[n];if(s){const u=ot(n,e,{cancelable:i});return s.slice().forEach(c=>{c.call(t,u)}),!u.defaultPrevented}return!0}}function bn(t,n){const e=t.$$.callbacks[n.type];e&&e.slice().forEach(i=>i.call(this,n))}const E=[],Y=[],C=[],B=[],ut=Promise.resolve();let F=!1;function at(){F||(F=!0,ut.then(ft))}function $n(){return at(),ut}function L(t){C.push(t)}function xn(t){B.push(t)}const R=new Set;let k=0;function ft(){const t=T;do{for(;k{v=null})),v}function q(t,n,e){t.dispatchEvent(ot(`${n?"intro":"outro"}${e}`))}const M=new Set;let g;function wn(){g={r:0,c:[],p:g}}function vn(){g.r||b(g.c),g=g.p}function Ot(t,n){t&&t.i&&(M.delete(t),t.i(n))}function En(t,n,e,i){if(t&&t.o){if(M.has(t))return;M.add(t),g.c.push(()=>{M.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}else i&&i()}const Rt={duration:0};function Nn(t,n,e,i){const s={direction:"both"};let u=n(t,e,s),c=i?0:1,r=null,o=null,l=null;function _(){l&&Lt(t,l)}function f(a,d){const m=a.b-c;return d*=Math.abs(m),{a:c,b:a.b,d:m,duration:d,start:a.start,end:a.start+d,group:a.group}}function h(a){const{delay:d=0,duration:m=300,easing:y=dt,tick:$=p,css:z}=u||Rt,O={start:gt()+d,b:a};a||(O.group=g,g.r+=1),r||o?o=O:(z&&(_(),l=X(t,c,a,m,d,y,z)),a&&$(0,1),r=f(O,m),L(()=>q(t,a,"start")),yt(S=>{if(o&&S>o.start&&(r=f(o,m),o=null,q(t,r.b,"start"),z&&(_(),l=X(t,c,r.b,r.duration,0,y,u.css))),r){if(S>=r.end)$(c=r.b,1-c),q(t,r.b,"end"),o||(r.b?_():--r.group.r||b(r.group.c)),r=null;else if(S>=r.start){const _t=S-r.start;c=r.a+r.d*y(_t/r.duration),$(c,1-c)}}return!!(r||o)}))}return{run(a){P(u)?zt().then(()=>{u=u(s),h(a)}):h(a)},end(){_(),r=o=null}}}function An(t,n,e,i){const s=t.$$.props[n];s!==void 0&&(t.$$.bound[s]=e,i===void 0&&e(t.$$.ctx[s]))}function Tn(t){t&&t.c()}function Sn(t,n){t&&t.l(n)}function qt(t,n,e,i){const{fragment:s,after_update:u}=t.$$;s&&s.m(n,e),i||L(()=>{const c=t.$$.on_mount.map(Z).filter(P);t.$$.on_destroy?t.$$.on_destroy.push(...c):b(c),t.$$.on_mount=[]}),u.forEach(L)}function Bt(t,n){const e=t.$$;e.fragment!==null&&(b(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Ft(t,n){t.$$.dirty[0]===-1&&(E.push(t),at(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const d=a.length?a[0]:h;return l.ctx&&s(l.ctx[f],l.ctx[f]=d)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](d),_&&Ft(t,f)),h}):[],l.update(),_=!0,b(l.before_update),l.fragment=i?i(l.ctx):!1,n.target){if(n.hydrate){bt();const f=kt(n.target);l.fragment&&l.fragment.l(f),f.forEach(A)}else l.fragment&&l.fragment.c();n.intro&&Ot(t.$$.fragment),qt(t,n.target,n.anchor,n.customElement),$t(),ft()}N(o)}class Cn{$destroy(){Bt(this,1),this.$destroy=p}$on(n,e){if(!P(e))return p;const i=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return i.push(e),()=>{const s=i.indexOf(e);s!==-1&&i.splice(s,1)}}$set(n){this.$$set&&!pt(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}const x=[];function Gt(t,n){return{subscribe:It(t,n).subscribe}}function It(t,n=p){let e;const i=new Set;function s(r){if(mt(t,r)&&(t=r,e)){const o=!x.length;for(const l of i)l[1](),x.push(l,t);if(o){for(let l=0;l{i.delete(l),i.size===0&&(e(),e=null)}}return{set:s,update:u,subscribe:c}}function Mn(t,n,e){const i=!Array.isArray(t),s=i?[t]:t,u=n.length<2;return Gt(e,c=>{let r=!1;const o=[];let l=0,_=p;const f=()=>{if(l)return;_();const a=n(i?o[0]:o,c);u?c(a):_=P(a)?a:p},h=s.map((a,d)=>G(a,m=>{o[d]=m,l&=~(1<{l|=1<r[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var v={};function _(n,e,t){const r=/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*:)*?:?0*1$/.test(location.hostname)||location.protocol==="file:";if(!e.trackLocalhost&&r)return console.warn("[Plausible] Ignoring event because website is running locally");try{if(window.localStorage.plausible_ignore==="true")return console.warn('[Plausible] Ignoring event because "plausible_ignore" is set to "true" in localStorage')}catch{}const a={n,u:e.url,d:e.domain,r:e.referrer,w:e.deviceWidth,h:e.hashMode?1:0,p:t&&t.props?JSON.stringify(t.props):void 0},l=new XMLHttpRequest;l.open("POST",`${e.apiHost}/api/event`,!0),l.setRequestHeader("Content-Type","text/plain"),l.send(JSON.stringify(a)),l.onreadystatechange=()=>{l.readyState===4&&t&&t.callback&&t.callback()}}function k(n){const e=()=>({hashMode:!1,trackLocalhost:!1,url:location.href,domain:location.hostname,referrer:document.referrer||null,deviceWidth:window.innerWidth,apiHost:"https://plausible.io",...n}),t=(i,s,c)=>{_(i,{...e(),...c},s)},r=(i,s)=>{t("pageview",s,i)};return{trackEvent:t,trackPageview:r,enableAutoPageviews:()=>{const i=()=>r(),s=history.pushState;return s&&(history.pushState=function(c,f,u){s.apply(this,[c,f,u]),i()},addEventListener("popstate",i)),n&&n.hashMode&&addEventListener("hashchange",i),r(),function(){s&&(history.pushState=s,removeEventListener("popstate",i)),n&&n.hashMode&&removeEventListener("hashchange",i)}},enableAutoOutboundTracking:(i=document,s={subtree:!0,childList:!0,attributes:!0,attributeFilter:["href"]})=>{function c(o){t("Outbound Link: Click",{props:{url:this.href}}),typeof process<"u"&&process,setTimeout(()=>{location.href=this.href},150),o.preventDefault()}const f=new Set;function u(o){o instanceof HTMLAnchorElement?o.host!==location.host&&(o.addEventListener("click",c),f.add(o)):"querySelectorAll"in o&&o.querySelectorAll("a").forEach(u)}function h(o){o instanceof HTMLAnchorElement?(o.removeEventListener("click",c),f.delete(o)):"querySelectorAll"in o&&o.querySelectorAll("a").forEach(h)}const g=new MutationObserver(o=>{o.forEach(p=>{p.type==="attributes"?(h(p.target),u(p.target)):p.type==="childList"&&(p.addedNodes.forEach(u),p.removedNodes.forEach(h))})});return i.querySelectorAll("a").forEach(u),g.observe(i,s),function(){f.forEach(p=>{p.removeEventListener("click",c)}),f.clear(),g.disconnect()}}}}const S=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"})),E=y(S);var d=b&&b.__assign||function(){return d=Object.assign||function(n){for(var e,t=1,r=arguments.length;t{if(e=m(e,c),e in u)return;u[e]=!0;const n=e.endsWith(".css"),f=n?'[rel="stylesheet"]':"";if(!!c)for(let r=a.length-1;r>=0;r--){const i=a[r];if(i.href===e&&(!n||i.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${f}`))return;const t=document.createElement("link");if(t.rel=n?"stylesheet":h,n||(t.as="script",t.crossOrigin=""),t.href=e,document.head.appendChild(t),n)return new Promise((r,i)=>{t.addEventListener("load",r),t.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${e}`)))})})).then(()=>s())};export{k as _}; diff --git a/_app/immutable/chunks/singletons-ff592d2b.js b/_app/immutable/chunks/singletons-ff592d2b.js new file mode 100644 index 00000000..0ee573b1 --- /dev/null +++ b/_app/immutable/chunks/singletons-ff592d2b.js @@ -0,0 +1 @@ +import{B as u}from"./index-2c2c5609.js";import{a as h}from"./paths-b4419565.js";let _="";function R(e){_=e}const k="sveltekit:scroll",x="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function y(){return{x:pageXOffset,y:pageYOffset}}function l(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function g(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function A(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A")return e;e=g(e)}}function S(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o={rel_external:(e.getAttribute("rel")||"").split(/\s+/).includes("external"),download:e.hasAttribute("download"),target:!!(e instanceof SVGAElement?e.target.baseVal:e.target)},a=!n||v(n,t)||o.rel_external||o.target||o.download;return{url:n,has:o,external:a}}function T(e){let t=null,n=null,o=null,a=null,r=e;for(;r&&r!==document.documentElement;)n===null&&(n=l(r,"preload-code")),o===null&&(o=l(r,"preload-data")),t===null&&(t=l(r,"noscroll")),a===null&&(a=l(r,"reload")),r=g(r);return{preload_code:d[n??"off"],preload_data:d[o??"off"],noscroll:t==="off"?!1:t===""?!0:null,reload:a==="off"?!1:a===""?!0:null}}function p(e){const t=u(e);let n=!0;function o(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function r(s){let i;return t.subscribe(c=>{(i===void 0||n&&c!==i)&&s(i=c)})}return{notify:o,set:a,subscribe:r}}function b(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);const a=await fetch(`${h}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(a.ok){const s=(await a.json()).version!==_;return s&&(e(!0),clearTimeout(n)),s}else throw new Error(`Version check failed: ${a.status}`)}return{subscribe:t,check:o}}function v(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}let m;function U(e){m=e.client}const L={url:p({}),page:p({}),navigating:u(null),updated:b()};export{x as I,f as P,k as S,S as a,T as b,y as c,U as d,R as e,A as f,I as g,m as h,v as i,L as s}; diff --git a/_app/immutable/chunks/state-89af7797.js b/_app/immutable/chunks/state-89af7797.js new file mode 100644 index 00000000..1cb3faa1 --- /dev/null +++ b/_app/immutable/chunks/state-89af7797.js @@ -0,0 +1,1299 @@ +import{B as writable,I as derived,J as get_store_value}from"./index-2c2c5609.js";import{g as getDefaultExportFromCjs,c as commonjsGlobal}from"./_commonjsHelpers-35101cd5.js";import{_ as __vitePreload}from"./preload-helper-41c905a7.js";import{S as Selection,r as root$2,a as array$1,d as define,e as extend$1,R as Rgb,C as Color,b as rgbConvert,c as constant$2,i as interpolateNumber,f as color,g as interpolateRgb,h as interpolateString,n as nogamma,j as hue,k as Color$1,_,l as ChannelsReusable,s as select,m as lighten,o as darken}from"./darken-e9b93bc2.js";const defaultLoading={loading:!1},loadingStateStore=writable(defaultLoading),initLoading=async(t,e)=>{loadingStateStore.set({loading:!0,message:t});const r=await e;return loadingStateStore.set({loading:!1}),r};var bundle={};(function(exports){(()=>{var __webpack_modules__={607:(module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0});var serializer_1=__webpack_require__(810),deserializer_1=__webpack_require__(496),Module;typeof process<"u"&&process.release&&process.release.name==="node"&&(Module=eval("require")("module"));var ESSerializer=function(){function t(){}return t.throwErrorIfInNonNodeEnvironment=function(){if(!Module)throw new Error("Cannot intercept require in non-Node environment.")},t.interceptRequire=function(){this.isRequireIntercepted||(this.isRequireIntercepted=!0,this.throwErrorIfInNonNodeEnvironment(),t.originRequire=Module.prototype.require,Module.prototype.require=function(){var e=t.originRequire.apply(this,arguments),r=e.name;return t.requiredClasses[r]||(t.requiredClasses[r]=e),e})},t.stopInterceptRequire=function(){this.throwErrorIfInNonNodeEnvironment(),Module.prototype.require=t.originRequire,this.isRequireIntercepted=!1},t.isInterceptingRequire=function(){return this.isRequireIntercepted},t.getRequiredClasses=function(){return this.requiredClasses},t.clearRequiredClasses=function(){this.requiredClasses={}},t.registerClass=function(e){this.registeredClasses.push(e)},t.registerClasses=function(e){this.registeredClasses=this.registeredClasses.concat(e)},t.clearRegisteredClasses=function(){this.registeredClasses=[]},t.serialize=function(e,r){return r===void 0&&(r={}),JSON.stringify(serializer_1.getSerializeValueWithClassName(e,r))},t.deserialize=function(e,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),deserializer_1.deserializeFromParsedObj(JSON.parse(e),Object.values(this.requiredClasses).concat(this.registeredClasses).concat(r),n)},t.originRequire=null,t.isRequireIntercepted=!1,t.requiredClasses={},t.registeredClasses=[],t}();module.exports=ESSerializer},917:function(t,e){var r=this&&this.__spreadArrays||function(){for(var ft=0,Lt=0,Tt=arguments.length;Lt0&&(R=R.concat(Array.from(Array(D),function(){return{}}))),o.test(z.toString()))try{$=new(z.bind.apply(z,n([void 0],R)))}catch{T(z.name),$={},Object.setPrototypeOf($,z?z.prototype:Object.prototype)}else{$=Object.create(z.prototype.constructor.prototype);try{z.prototype.constructor.call($,R)}catch{T(z.name)}}return $}(I[P],q);return function(z,R,$,D){for(var k in R){var B=R[k];if(!D.ignoreProperties||!D.ignoreProperties.includes(k))if(D.rawProperties&&D.rawProperties.includes(k))z[k]=JSON.stringify(B);else{var v=Object.getOwnPropertyDescriptor(z,k);J=B,E=v,k===s.CLASS_NAME_FIELD||E&&(typeof E.set=="function"||E.writable===!1&&typeof J!="object")||(v&&v.writable===!1&&typeof B=="object"?L(z[k],B,$):z[k]=l(B,$))}}var J,E;return z}(U,C,I,M)}function u(C,I){return C.map(function(M){return l(M,I)})}function h(C,I){return new I(C)}function d(C,I){return new I(C.map(function(M){return g(M[s.TO_STRING_FIELD])}))}function g(C){return BigInt(C)}function p(C,I){var M=C[s.OPTIONS_FIELD],P=M.locale;return delete M.locale,new I(P,M)}function m(C,I){var M;return delete(M=C.message?new I(C.message):new I).stack,C.name&&(M.name=C.name),C.stack&&(M.stack=C.stack),I===AggregateError&&(M.errors=l(C.errors,{})),M}function T(C){console.warn("Incorrect parameter type passed to constructor: "+C)}function L(C,I,M){for(var P in I){var H=Object.getOwnPropertyDescriptor(C,P);H&&H.writable!==!0&&typeof H.set!="function"||(C[P]=l(I[P],M))}}function A(C){C===void 0&&(C=[]);var I={};return C.forEach(function(M){if(a.isClass(M)){var P=M.name,H=I[P];H&&H!==M&&console.warn("WARNING: Found class definition with the same name: "+P),I[P]=M}}),I}e.deserializeFromParsedObj=function(C,I,M){return l(C,A(I),M)},e.deserializeFromParsedObjWithClassMapping=l,e.getClassMappingFromClassArray=A,e.getParentClassName=function(C){return C.prototype.__proto__.constructor.name}},821:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isClass=e.notObject=e.getValueFromToStringResult=void 0,e.notObject=function(r){return r===null||typeof r!="object"},e.getValueFromToStringResult=function(r){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN;default:return null}},e.isClass=function(r){if(function(n){return[Date].indexOf(n)>=0}(r))return!0;try{Reflect.construct(String,[],r)}catch{return!1}return!0}},810:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSerializeValueWithClassName=void 0;var n=r(917),a=r(821);function s(l,u){u===void 0&&(u={});var h=function(m){var T,L,A;return m===void 0?((T={})[n.CLASS_NAME_FIELD]=n.BUILTIN_TYPE_UNDEFINED,T):typeof m!="number"||isFinite(m)?typeof m=="bigint"?((A={})[n.CLASS_NAME_FIELD]=n.BUILTIN_TYPE_BIG_INT,A[n.TO_STRING_FIELD]=m.toString(),A):a.notObject(m)?m:n.ESSERIALIZER_NULL:((L={})[n.CLASS_NAME_FIELD]=n.BUILTIN_TYPE_NOT_FINITE,L[n.TO_STRING_FIELD]=m.toString(),L)}(l);if(h!==n.ESSERIALIZER_NULL)return h;if(Array.isArray(l))return o(l);var d={};if(!function(m){var T=m.__proto__.constructor.name;return n.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED.includes(T)}(l)){if(u.ignoreProperties&&u.ignoreProperties.forEach(function(m){delete l[m]}),u.interceptProperties)for(var g in u.interceptProperties)l[g]=u.interceptProperties[g].call(l,l[g]);for(var p in l)d[p]=s(l[p])}return function(m,T){var L=m.__proto__.constructor.name;return L!=="Object"&&(T[n.CLASS_NAME_FIELD]=L,L===n.BUILTIN_CLASS_ARRAYBUFFER||L===n.BUILTIN_CLASS_SHAREDARRAYBUFFER?T[n.ARRAY_FIELD]=o(Array.from(new Uint8Array(m))):L===n.BUILTIN_CLASS_BOOLEAN?T[n.BOOLEAN_FIELD]=m.valueOf():L===n.BUILTIN_CLASS_DATAVIEW?T[n.ARRAY_FIELD]=o(Array.from(new Uint8Array(m.buffer))):L===n.BUILTIN_CLASS_DATE?T[n.TIMESTAMP_FIELD]=m.getTime():L===n.BUILTIN_CLASS_INTL_LOCALE||L===n.BUILTIN_CLASS_REGEXP?T[n.TO_STRING_FIELD]=m.toString():L===n.BUILTIN_CLASS_SET?T[n.ARRAY_FIELD]=o(Array.from(m)):L===n.BUILTIN_CLASS_STRING?T[n.TO_STRING_FIELD]=m.toString():n.ALL_BUILTIN_ARRAYS.includes(L)?T[n.ARRAY_FIELD]=o(Array.from(m)):n.ALL_BUILTIN_ERRORS.includes(L)?function(A,C,I){A.name!=="Error"&&(C.name=A.name),A.message&&(C.message=A.message),A.stack&&(C.stack=A.stack),I===n.BUILTIN_CLASS_AGGREGATE_ERROR&&(C.errors=s(A.errors))}(m,T,L):n.ALL_BUILTIN_INTLS.includes(L)&&(T[n.OPTIONS_FIELD]=m.resolvedOptions())),T}(l,d)}function o(l){return l.map(function(u){return s(u)})}e.getSerializeValueWithClassName=s}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(e!==void 0)return e.exports;var r=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(r.exports,r,r.exports,__webpack_require__),r.exports}var __webpack_exports__=__webpack_require__(607),__webpack_export_target__=exports;for(var i in __webpack_exports__)__webpack_export_target__[i]=__webpack_exports__[i];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0})})()})(bundle);const ESSerializer=getDefaultExportFromCjs(bundle),alreadyWarnFor=[],warnStorageNotFound=t=>{const e=typeof process<"u"&&!0;if(!alreadyWarnFor.includes(t)&&!e){let r=`Unable to find the ${t}. No data will be persisted.`;typeof window>"u"&&(r+=` +Are you running on a server? Most of storages are not available while running on a server.`),console.warn(r),alreadyWarnFor.push(t)}},serialize$1=t=>ESSerializer.serialize(t),deserialize=t=>{if(t!=="undefined"){if(t!=null){try{return ESSerializer.deserialize(t)}catch{}try{return JSON.parse(t)}catch{}}return t}};function persist(t,e,r){const n=e.getValue(r);return n!==null&&t.set(n),"addListener"in e&&e.addListener(r,a=>{t.set(a)}),t.subscribe(a=>{e.setValue(r,a)}),{...t,delete(){e.deleteValue(r)}}}function getBrowserStorage(t,e=!1){const r=[],n=o=>{const l=o.key;o.storageArea===t&&r.filter(({key:u})=>u===l).forEach(({listener:u})=>{u(deserialize(o.newValue))})},a=()=>{e&&typeof window<"u"&&window.addEventListener&&window.addEventListener("storage",n)},s=()=>{e&&typeof window<"u"&&window.removeEventListener&&window.removeEventListener("storage",n)};return{addListener(o,l){r.push({key:o,listener:l}),r.length===1&&a()},removeListener(o,l){const u=r.indexOf({key:o,listener:l});u!==-1&&r.splice(u,1),r.length===0&&s()},getValue(o){const l=t.getItem(o);return deserialize(l)},deleteValue(o){t.removeItem(o)},setValue(o,l){t.setItem(o,serialize$1(l))}}}function localStorage(t=!1){return typeof window<"u"&&window.localStorage?getBrowserStorage(window.localStorage,t):(warnStorageNotFound("window.localStorage"),noopStorage())}function noopStorage(){return{getValue(){return null},deleteValue(){},setValue(){}}}let analytics;const initAnalytics=async()=>{if(!analytics)try{const[{Analytics:t},{default:e}]=await Promise.all([__vitePreload(()=>import("./analytics.browser.es-34f06abc.js"),[],import.meta.url),__vitePreload(()=>import("./plausible-c08e2f58.js").then(r=>r.p),["./plausible-c08e2f58.js","./_commonjsHelpers-35101cd5.js"],import.meta.url)]);analytics=t({app:"mermaid-live-editor",plugins:[e({domain:"mermaid.live",hashMode:!1,trackLocalhost:!1,apiHost:"https://plausible.io"})]})}catch(t){console.log(t),console.info("Analytics blocked ;)")}},detectType$1=t=>{const e=["classDiagram","erDiagram","flowChart","gantt","gitGraph","graph","journey","pie","stateDiagram"],r=t.replace(/^\s*%%.*\n/g,` +`).trimStart().split(" ")[0].toLowerCase();return e.find(a=>r.includes(a.toLowerCase()))},countLines=t=>{var e;return(((e=t.match(/\n/g))==null?void 0:e.length)??0)+1},saveStatistics=t=>{const e=detectType$1(t);if(!e)return;const r=countLines(t);logEvent("render",{graphType:e,length:r})},minutesToMilliSeconds=t=>t*6e4,defaultDelay=minutesToMilliSeconds(1),delaysPerEvent={render:minutesToMilliSeconds(5),panZoom:minutesToMilliSeconds(10),copyClipboard:defaultDelay,download:defaultDelay,copyMarkdown:defaultDelay,loadGist:defaultDelay,loadSampleDiagram:defaultDelay,renderDiagram:defaultDelay,history:defaultDelay,migration:defaultDelay,themeChange:defaultDelay},timeouts=new Map,logEvent=(t,e)=>{if(!analytics)return;const r=e?JSON.stringify({name:t,data:e}):t;timeouts.has(r)?clearTimeout(timeouts.get(r)):analytics.track(t,e),timeouts.set(r,window.setTimeout(()=>timeouts.delete(r),delaysPerEvent[t]))};const Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1(t){let e=t.length;for(;--e>=0;)t[e]=0}const STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),extra_dbits=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),extra_blbits=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bl_order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1(base_length);const base_dist=new Array(D_CODES$1);zero$1(base_dist);function StaticTreeDesc(t,e,r,n,a){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=a,this.has_stree=t&&t.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}const d_code=t=>t<256?_dist_code[t]:_dist_code[256+(t>>>7)],put_short=(t,e)=>{t.pending_buf[t.pending++]=e&255,t.pending_buf[t.pending++]=e>>>8&255},send_bits=(t,e,r)=>{t.bi_valid>Buf_size-r?(t.bi_buf|=e<>Buf_size-t.bi_valid,t.bi_valid+=r-Buf_size):(t.bi_buf|=e<{send_bits(t,r[e*2],r[e*2+1])},bi_reverse=(t,e)=>{let r=0;do r|=t&1,t>>>=1,r<<=1;while(--e>0);return r>>>1},bi_flush=t=>{t.bi_valid===16?(put_short(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},gen_bitlen=(t,e)=>{const r=e.dyn_tree,n=e.max_code,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,o=e.stat_desc.extra_bits,l=e.stat_desc.extra_base,u=e.stat_desc.max_length;let h,d,g,p,m,T,L=0;for(p=0;p<=MAX_BITS$1;p++)t.bl_count[p]=0;for(r[t.heap[t.heap_max]*2+1]=0,h=t.heap_max+1;hu&&(p=u,L++),r[d*2+1]=p,!(d>n)&&(t.bl_count[p]++,m=0,d>=l&&(m=o[d-l]),T=r[d*2],t.opt_len+=T*(p+m),s&&(t.static_len+=T*(a[d*2+1]+m)));if(L!==0){do{for(p=u-1;t.bl_count[p]===0;)p--;t.bl_count[p]--,t.bl_count[p+1]+=2,t.bl_count[u]--,L-=2}while(L>0);for(p=u;p!==0;p--)for(d=t.bl_count[p];d!==0;)g=t.heap[--h],!(g>n)&&(r[g*2+1]!==p&&(t.opt_len+=(p-r[g*2+1])*r[g*2],r[g*2+1]=p),d--)}},gen_codes=(t,e,r)=>{const n=new Array(MAX_BITS$1+1);let a=0,s,o;for(s=1;s<=MAX_BITS$1;s++)a=a+r[s-1]<<1,n[s]=a;for(o=0;o<=e;o++){let l=t[o*2+1];l!==0&&(t[o*2]=bi_reverse(n[l]++,l))}},tr_static_init=()=>{let t,e,r,n,a;const s=new Array(MAX_BITS$1+1);for(r=0,n=0;n>=7;n{let e;for(e=0;e{t.bi_valid>8?put_short(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},smaller=(t,e,r,n)=>{const a=e*2,s=r*2;return t[a]{const n=t.heap[r];let a=r<<1;for(;a<=t.heap_len&&(a{let n,a,s=0,o,l;if(t.sym_next!==0)do n=t.pending_buf[t.sym_buf+s++]&255,n+=(t.pending_buf[t.sym_buf+s++]&255)<<8,a=t.pending_buf[t.sym_buf+s++],n===0?send_code(t,a,e):(o=_length_code[a],send_code(t,o+LITERALS$1+1,e),l=extra_lbits[o],l!==0&&(a-=base_length[o],send_bits(t,a,l)),n--,o=d_code(n),send_code(t,o,r),l=extra_dbits[o],l!==0&&(n-=base_dist[o],send_bits(t,n,l)));while(s{const r=e.dyn_tree,n=e.stat_desc.static_tree,a=e.stat_desc.has_stree,s=e.stat_desc.elems;let o,l,u=-1,h;for(t.heap_len=0,t.heap_max=HEAP_SIZE$1,o=0;o>1;o>=1;o--)pqdownheap(t,r,o);h=s;do o=t.heap[1],t.heap[1]=t.heap[t.heap_len--],pqdownheap(t,r,1),l=t.heap[1],t.heap[--t.heap_max]=o,t.heap[--t.heap_max]=l,r[h*2]=r[o*2]+r[l*2],t.depth[h]=(t.depth[o]>=t.depth[l]?t.depth[o]:t.depth[l])+1,r[o*2+1]=r[l*2+1]=h,t.heap[1]=h++,pqdownheap(t,r,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],gen_bitlen(t,e),gen_codes(r,u,t.bl_count)},scan_tree=(t,e,r)=>{let n,a=-1,s,o=e[0*2+1],l=0,u=7,h=4;for(o===0&&(u=138,h=3),e[(r+1)*2+1]=65535,n=0;n<=r;n++)s=o,o=e[(n+1)*2+1],!(++l{let n,a=-1,s,o=e[0*2+1],l=0,u=7,h=4;for(o===0&&(u=138,h=3),n=0;n<=r;n++)if(s=o,o=e[(n+1)*2+1],!(++l{let e;for(scan_tree(t,t.dyn_ltree,t.l_desc.max_code),scan_tree(t,t.dyn_dtree,t.d_desc.max_code),build_tree(t,t.bl_desc),e=BL_CODES$1-1;e>=3&&t.bl_tree[bl_order[e]*2+1]===0;e--);return t.opt_len+=3*(e+1)+5+5+4,e},send_all_trees=(t,e,r,n)=>{let a;for(send_bits(t,e-257,5),send_bits(t,r-1,5),send_bits(t,n-4,4),a=0;a{let e=4093624447,r;for(r=0;r<=31;r++,e>>>=1)if(e&1&&t.dyn_ltree[r*2]!==0)return Z_BINARY;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return Z_TEXT;for(r=32;r{static_init_done||(tr_static_init(),static_init_done=!0),t.l_desc=new TreeDesc(t.dyn_ltree,static_l_desc),t.d_desc=new TreeDesc(t.dyn_dtree,static_d_desc),t.bl_desc=new TreeDesc(t.bl_tree,static_bl_desc),t.bi_buf=0,t.bi_valid=0,init_block(t)},_tr_stored_block$1=(t,e,r,n)=>{send_bits(t,(STORED_BLOCK<<1)+(n?1:0),3),bi_windup(t),put_short(t,r),put_short(t,~r),r&&t.pending_buf.set(t.window.subarray(e,e+r),t.pending),t.pending+=r},_tr_align$1=t=>{send_bits(t,STATIC_TREES<<1,3),send_code(t,END_BLOCK,static_ltree),bi_flush(t)},_tr_flush_block$1=(t,e,r,n)=>{let a,s,o=0;t.level>0?(t.strm.data_type===Z_UNKNOWN$1&&(t.strm.data_type=detect_data_type(t)),build_tree(t,t.l_desc),build_tree(t,t.d_desc),o=build_bl_tree(t),a=t.opt_len+3+7>>>3,s=t.static_len+3+7>>>3,s<=a&&(a=s)):a=s=r+5,r+4<=a&&e!==-1?_tr_stored_block$1(t,e,r,n):t.strategy===Z_FIXED$1||s===a?(send_bits(t,(STATIC_TREES<<1)+(n?1:0),3),compress_block(t,static_ltree,static_dtree)):(send_bits(t,(DYN_TREES<<1)+(n?1:0),3),send_all_trees(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),compress_block(t,t.dyn_ltree,t.dyn_dtree)),init_block(t),n&&bi_windup(t)},_tr_tally$1=(t,e,r)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=r,e===0?t.dyn_ltree[r*2]++:(t.matches++,e--,t.dyn_ltree[(_length_code[r]+LITERALS$1+1)*2]++,t.dyn_dtree[d_code(e)*2]++),t.sym_next===t.sym_end);var _tr_init_1=_tr_init$1,_tr_stored_block_1=_tr_stored_block$1,_tr_flush_block_1=_tr_flush_block$1,_tr_tally_1=_tr_tally$1,_tr_align_1=_tr_align$1,trees={_tr_init:_tr_init_1,_tr_stored_block:_tr_stored_block_1,_tr_flush_block:_tr_flush_block_1,_tr_tally:_tr_tally_1,_tr_align:_tr_align_1};const adler32=(t,e,r,n)=>{let a=t&65535|0,s=t>>>16&65535|0,o=0;for(;r!==0;){o=r>2e3?2e3:r,r-=o;do a=a+e[n++]|0,s=s+a|0;while(--o);a%=65521,s%=65521}return a|s<<16|0};var adler32_1=adler32;const makeTable=()=>{let t,e=[];for(var r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=t&1?3988292384^t>>>1:t>>>1;e[r]=t}return e},crcTable=new Uint32Array(makeTable()),crc32=(t,e,r,n)=>{const a=crcTable,s=n+r;t^=-1;for(let o=n;o>>8^a[(t^e[o])&255];return t^-1};var crc32_1=crc32,messages$1={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$2={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init,_tr_stored_block,_tr_flush_block,_tr_tally,_tr_align}=trees,{Z_NO_FLUSH:Z_NO_FLUSH$2,Z_PARTIAL_FLUSH,Z_FULL_FLUSH:Z_FULL_FLUSH$1,Z_FINISH:Z_FINISH$3,Z_BLOCK:Z_BLOCK$1,Z_OK:Z_OK$3,Z_STREAM_END:Z_STREAM_END$3,Z_STREAM_ERROR:Z_STREAM_ERROR$2,Z_DATA_ERROR:Z_DATA_ERROR$2,Z_BUF_ERROR:Z_BUF_ERROR$1,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION$1,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY$1,Z_UNKNOWN,Z_DEFLATED:Z_DEFLATED$2}=constants$2,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,GZIP_STATE=57,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,err=(t,e)=>(t.msg=messages$1[e],e),rank$1=t=>t*2-(t>4?9:0),zero=t=>{let e=t.length;for(;--e>=0;)t[e]=0},slide_hash=t=>{let e,r,n,a=t.w_size;e=t.hash_size,n=e;do r=t.head[--n],t.head[n]=r>=a?r-a:0;while(--e);e=a,n=e;do r=t.prev[--n],t.prev[n]=r>=a?r-a:0;while(--e)};let HASH_ZLIB=(t,e,r)=>(e<{const e=t.state;let r=e.pending;r>t.avail_out&&(r=t.avail_out),r!==0&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+r),t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,e.pending===0&&(e.pending_out=0))},flush_block_only=(t,e)=>{_tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,flush_pending(t.strm)},put_byte=(t,e)=>{t.pending_buf[t.pending++]=e},putShortMSB=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=e&255},read_buf=(t,e,r,n)=>{let a=t.avail_in;return a>n&&(a=n),a===0?0:(t.avail_in-=a,e.set(t.input.subarray(t.next_in,t.next_in+a),r),t.state.wrap===1?t.adler=adler32_1(t.adler,e,a,r):t.state.wrap===2&&(t.adler=crc32_1(t.adler,e,a,r)),t.next_in+=a,t.total_in+=a,a)},longest_match=(t,e)=>{let r=t.max_chain_length,n=t.strstart,a,s,o=t.prev_length,l=t.nice_match;const u=t.strstart>t.w_size-MIN_LOOKAHEAD?t.strstart-(t.w_size-MIN_LOOKAHEAD):0,h=t.window,d=t.w_mask,g=t.prev,p=t.strstart+MAX_MATCH;let m=h[n+o-1],T=h[n+o];t.prev_length>=t.good_match&&(r>>=2),l>t.lookahead&&(l=t.lookahead);do if(a=e,!(h[a+o]!==T||h[a+o-1]!==m||h[a]!==h[n]||h[++a]!==h[n+1])){n+=2,a++;do;while(h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&h[++n]===h[++a]&&no){if(t.match_start=e,o=s,s>=l)break;m=h[n+o-1],T=h[n+o]}}while((e=g[e&d])>u&&--r!==0);return o<=t.lookahead?o:t.lookahead},fill_window=t=>{const e=t.w_size;let r,n,a;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-MIN_LOOKAHEAD)&&(t.window.set(t.window.subarray(e,e+e-n),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),slide_hash(t),n+=e),t.strm.avail_in===0)break;if(r=read_buf(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=r,t.lookahead+t.insert>=MIN_MATCH)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=HASH(t,t.ins_h,t.window[a+1]);t.insert&&(t.ins_h=HASH(t,t.ins_h,t.window[a+MIN_MATCH-1]),t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert{let r=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,n,a,s,o=0,l=t.strm.avail_in;do{if(n=65535,s=t.bi_valid+42>>3,t.strm.avail_outa+t.strm.avail_in&&(n=a+t.strm.avail_in),n>s&&(n=s),n>8,t.pending_buf[t.pending-2]=~n,t.pending_buf[t.pending-1]=~n>>8,flush_pending(t.strm),a&&(a>n&&(a=n),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+a),t.strm.next_out),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a,t.block_start+=a,n-=a),n&&(read_buf(t.strm,t.strm.output,t.strm.next_out,n),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n)}while(o===0);return l-=t.strm.avail_in,l&&(l>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=l&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-l,t.strm.next_in),t.strstart),t.strstart+=l,t.insert+=l>t.w_size-t.insert?t.w_size-t.insert:l),t.block_start=t.strstart),t.high_waters&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,s+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),s>t.strm.avail_in&&(s=t.strm.avail_in),s&&(read_buf(t.strm,t.window,t.strstart,s),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.high_water>3,s=t.pending_buf_size-s>65535?65535:t.pending_buf_size-s,r=s>t.w_size?t.w_size:s,a=t.strstart-t.block_start,(a>=r||(a||e===Z_FINISH$3)&&e!==Z_NO_FLUSH$2&&t.strm.avail_in===0&&a<=s)&&(n=a>s?s:a,o=e===Z_FINISH$3&&t.strm.avail_in===0&&n===a?1:0,_tr_stored_block(t,t.block_start,n,o),t.block_start+=n,flush_pending(t.strm)),o?BS_FINISH_STARTED:BS_NEED_MORE)},deflate_fast=(t,e)=>{let r,n;for(;;){if(t.lookahead=MIN_MATCH&&(t.ins_h=HASH(t,t.ins_h,t.window[t.strstart+MIN_MATCH-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),r!==0&&t.strstart-r<=t.w_size-MIN_LOOKAHEAD&&(t.match_length=longest_match(t,r)),t.match_length>=MIN_MATCH)if(n=_tr_tally(t,t.strstart-t.match_start,t.match_length-MIN_MATCH),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=MIN_MATCH){t.match_length--;do t.strstart++,t.ins_h=HASH(t,t.ins_h,t.window[t.strstart+MIN_MATCH-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=HASH(t,t.ins_h,t.window[t.strstart+1]);else n=_tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(flush_block_only(t,!1),t.strm.avail_out===0))return BS_NEED_MORE}return t.insert=t.strstart{let r,n,a;for(;;){if(t.lookahead=MIN_MATCH&&(t.ins_h=HASH(t,t.ins_h,t.window[t.strstart+MIN_MATCH-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=MIN_MATCH-1,r!==0&&t.prev_length4096)&&(t.match_length=MIN_MATCH-1)),t.prev_length>=MIN_MATCH&&t.match_length<=t.prev_length){a=t.strstart+t.lookahead-MIN_MATCH,n=_tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-MIN_MATCH),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=a&&(t.ins_h=HASH(t,t.ins_h,t.window[t.strstart+MIN_MATCH-1]),r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=MIN_MATCH-1,t.strstart++,n&&(flush_block_only(t,!1),t.strm.avail_out===0))return BS_NEED_MORE}else if(t.match_available){if(n=_tr_tally(t,0,t.window[t.strstart-1]),n&&flush_block_only(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return BS_NEED_MORE}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=_tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart{let r,n,a,s;const o=t.window;for(;;){if(t.lookahead<=MAX_MATCH){if(fill_window(t),t.lookahead<=MAX_MATCH&&e===Z_NO_FLUSH$2)return BS_NEED_MORE;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=MIN_MATCH&&t.strstart>0&&(a=t.strstart-1,n=o[a],n===o[++a]&&n===o[++a]&&n===o[++a])){s=t.strstart+MAX_MATCH;do;while(n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&at.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=MIN_MATCH?(r=_tr_tally(t,1,t.match_length-MIN_MATCH),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=_tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(flush_block_only(t,!1),t.strm.avail_out===0))return BS_NEED_MORE}return t.insert=0,e===Z_FINISH$3?(flush_block_only(t,!0),t.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):t.sym_next&&(flush_block_only(t,!1),t.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(t,e)=>{let r;for(;;){if(t.lookahead===0&&(fill_window(t),t.lookahead===0)){if(e===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(t.match_length=0,r=_tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(flush_block_only(t,!1),t.strm.avail_out===0))return BS_NEED_MORE}return t.insert=0,e===Z_FINISH$3?(flush_block_only(t,!0),t.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):t.sym_next&&(flush_block_only(t,!1),t.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(t,e,r,n,a){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=a}const configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],lm_init=t=>{t.window_size=2*t.w_size,zero(t.head),t.max_lazy_match=configuration_table[t.level].max_lazy,t.good_match=configuration_table[t.level].good_length,t.nice_match=configuration_table[t.level].nice_length,t.max_chain_length=configuration_table[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=MIN_MATCH-1,t.match_available=0,t.ins_h=0};function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HEAP_SIZE*2),this.dyn_dtree=new Uint16Array((2*D_CODES+1)*2),this.bl_tree=new Uint16Array((2*BL_CODES+1)*2),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(MAX_BITS+1),this.heap=new Uint16Array(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const deflateStateCheck=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==INIT_STATE&&e.status!==GZIP_STATE&&e.status!==EXTRA_STATE&&e.status!==NAME_STATE&&e.status!==COMMENT_STATE&&e.status!==HCRC_STATE&&e.status!==BUSY_STATE&&e.status!==FINISH_STATE?1:0},deflateResetKeep=t=>{if(deflateStateCheck(t))return err(t,Z_STREAM_ERROR$2);t.total_in=t.total_out=0,t.data_type=Z_UNKNOWN;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?GZIP_STATE:e.wrap?INIT_STATE:BUSY_STATE,t.adler=e.wrap===2?0:1,e.last_flush=-2,_tr_init(e),Z_OK$3},deflateReset=t=>{const e=deflateResetKeep(t);return e===Z_OK$3&&lm_init(t.state),e},deflateSetHeader=(t,e)=>deflateStateCheck(t)||t.state.wrap!==2?Z_STREAM_ERROR$2:(t.state.gzhead=e,Z_OK$3),deflateInit2=(t,e,r,n,a,s)=>{if(!t)return Z_STREAM_ERROR$2;let o=1;if(e===Z_DEFAULT_COMPRESSION$1&&(e=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),a<1||a>MAX_MEM_LEVEL||r!==Z_DEFLATED$2||n<8||n>15||e<0||e>9||s<0||s>Z_FIXED||n===8&&o!==1)return err(t,Z_STREAM_ERROR$2);n===8&&(n=9);const l=new DeflateState;return t.state=l,l.strm=t,l.status=INIT_STATE,l.wrap=o,l.gzhead=null,l.w_bits=n,l.w_size=1<deflateInit2(t,e,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(t,e)=>{if(deflateStateCheck(t)||e>Z_BLOCK$1||e<0)return t?err(t,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const r=t.state;if(!t.output||t.avail_in!==0&&!t.input||r.status===FINISH_STATE&&e!==Z_FINISH$3)return err(t,t.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);const n=r.last_flush;if(r.last_flush=e,r.pending!==0){if(flush_pending(t),t.avail_out===0)return r.last_flush=-1,Z_OK$3}else if(t.avail_in===0&&rank$1(e)<=rank$1(n)&&e!==Z_FINISH$3)return err(t,Z_BUF_ERROR$1);if(r.status===FINISH_STATE&&t.avail_in!==0)return err(t,Z_BUF_ERROR$1);if(r.status===INIT_STATE&&r.wrap===0&&(r.status=BUSY_STATE),r.status===INIT_STATE){let a=Z_DEFLATED$2+(r.w_bits-8<<4)<<8,s=-1;if(r.strategy>=Z_HUFFMAN_ONLY||r.level<2?s=0:r.level<6?s=1:r.level===6?s=2:s=3,a|=s<<6,r.strstart!==0&&(a|=PRESET_DICT),a+=31-a%31,putShortMSB(r,a),r.strstart!==0&&(putShortMSB(r,t.adler>>>16),putShortMSB(r,t.adler&65535)),t.adler=1,r.status=BUSY_STATE,flush_pending(t),r.pending!==0)return r.last_flush=-1,Z_OK$3}if(r.status===GZIP_STATE){if(t.adler=0,put_byte(r,31),put_byte(r,139),put_byte(r,8),r.gzhead)put_byte(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),put_byte(r,r.gzhead.time&255),put_byte(r,r.gzhead.time>>8&255),put_byte(r,r.gzhead.time>>16&255),put_byte(r,r.gzhead.time>>24&255),put_byte(r,r.level===9?2:r.strategy>=Z_HUFFMAN_ONLY||r.level<2?4:0),put_byte(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(put_byte(r,r.gzhead.extra.length&255),put_byte(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=crc32_1(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=EXTRA_STATE;else if(put_byte(r,0),put_byte(r,0),put_byte(r,0),put_byte(r,0),put_byte(r,0),put_byte(r,r.level===9?2:r.strategy>=Z_HUFFMAN_ONLY||r.level<2?4:0),put_byte(r,OS_CODE),r.status=BUSY_STATE,flush_pending(t),r.pending!==0)return r.last_flush=-1,Z_OK$3}if(r.status===EXTRA_STATE){if(r.gzhead.extra){let a=r.pending,s=(r.gzhead.extra.length&65535)-r.gzindex;for(;r.pending+s>r.pending_buf_size;){let l=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+l),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>a&&(t.adler=crc32_1(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex+=l,flush_pending(t),r.pending!==0)return r.last_flush=-1,Z_OK$3;a=0,s-=l}let o=new Uint8Array(r.gzhead.extra);r.pending_buf.set(o.subarray(r.gzindex,r.gzindex+s),r.pending),r.pending+=s,r.gzhead.hcrc&&r.pending>a&&(t.adler=crc32_1(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex=0}r.status=NAME_STATE}if(r.status===NAME_STATE){if(r.gzhead.name){let a=r.pending,s;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>a&&(t.adler=crc32_1(t.adler,r.pending_buf,r.pending-a,a)),flush_pending(t),r.pending!==0)return r.last_flush=-1,Z_OK$3;a=0}r.gzindexa&&(t.adler=crc32_1(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex=0}r.status=COMMENT_STATE}if(r.status===COMMENT_STATE){if(r.gzhead.comment){let a=r.pending,s;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>a&&(t.adler=crc32_1(t.adler,r.pending_buf,r.pending-a,a)),flush_pending(t),r.pending!==0)return r.last_flush=-1,Z_OK$3;a=0}r.gzindexa&&(t.adler=crc32_1(t.adler,r.pending_buf,r.pending-a,a))}r.status=HCRC_STATE}if(r.status===HCRC_STATE){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(flush_pending(t),r.pending!==0))return r.last_flush=-1,Z_OK$3;put_byte(r,t.adler&255),put_byte(r,t.adler>>8&255),t.adler=0}if(r.status=BUSY_STATE,flush_pending(t),r.pending!==0)return r.last_flush=-1,Z_OK$3}if(t.avail_in!==0||r.lookahead!==0||e!==Z_NO_FLUSH$2&&r.status!==FINISH_STATE){let a=r.level===0?deflate_stored(r,e):r.strategy===Z_HUFFMAN_ONLY?deflate_huff(r,e):r.strategy===Z_RLE?deflate_rle(r,e):configuration_table[r.level].func(r,e);if((a===BS_FINISH_STARTED||a===BS_FINISH_DONE)&&(r.status=FINISH_STATE),a===BS_NEED_MORE||a===BS_FINISH_STARTED)return t.avail_out===0&&(r.last_flush=-1),Z_OK$3;if(a===BS_BLOCK_DONE&&(e===Z_PARTIAL_FLUSH?_tr_align(r):e!==Z_BLOCK$1&&(_tr_stored_block(r,0,0,!1),e===Z_FULL_FLUSH$1&&(zero(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),flush_pending(t),t.avail_out===0))return r.last_flush=-1,Z_OK$3}return e!==Z_FINISH$3?Z_OK$3:r.wrap<=0?Z_STREAM_END$3:(r.wrap===2?(put_byte(r,t.adler&255),put_byte(r,t.adler>>8&255),put_byte(r,t.adler>>16&255),put_byte(r,t.adler>>24&255),put_byte(r,t.total_in&255),put_byte(r,t.total_in>>8&255),put_byte(r,t.total_in>>16&255),put_byte(r,t.total_in>>24&255)):(putShortMSB(r,t.adler>>>16),putShortMSB(r,t.adler&65535)),flush_pending(t),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=t=>{if(deflateStateCheck(t))return Z_STREAM_ERROR$2;const e=t.state.status;return t.state=null,e===BUSY_STATE?err(t,Z_DATA_ERROR$2):Z_OK$3},deflateSetDictionary=(t,e)=>{let r=e.length;if(deflateStateCheck(t))return Z_STREAM_ERROR$2;const n=t.state,a=n.wrap;if(a===2||a===1&&n.status!==INIT_STATE||n.lookahead)return Z_STREAM_ERROR$2;if(a===1&&(t.adler=adler32_1(t.adler,e,r,0)),n.wrap=0,r>=n.w_size){a===0&&(zero(n.head),n.strstart=0,n.block_start=0,n.insert=0);let u=new Uint8Array(n.w_size);u.set(e.subarray(r-n.w_size,r),0),e=u,r=n.w_size}const s=t.avail_in,o=t.next_in,l=t.input;for(t.avail_in=r,t.next_in=0,t.input=e,fill_window(n);n.lookahead>=MIN_MATCH;){let u=n.strstart,h=n.lookahead-(MIN_MATCH-1);do n.ins_h=HASH(n,n.ins_h,n.window[u+MIN_MATCH-1]),n.prev[u&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=u,u++;while(--h);n.strstart=u,n.lookahead=MIN_MATCH-1,fill_window(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=MIN_MATCH-1,n.match_available=0,t.next_in=o,t.input=l,t.avail_in=s,n.wrap=a,Z_OK$3};var deflateInit_1=deflateInit,deflateInit2_1=deflateInit2,deflateReset_1=deflateReset,deflateResetKeep_1=deflateResetKeep,deflateSetHeader_1=deflateSetHeader,deflate_2$1=deflate$2,deflateEnd_1=deflateEnd,deflateSetDictionary_1=deflateSetDictionary,deflateInfo="pako deflate (from Nodeca project)",deflate_1$2={deflateInit:deflateInit_1,deflateInit2:deflateInit2_1,deflateReset:deflateReset_1,deflateResetKeep:deflateResetKeep_1,deflateSetHeader:deflateSetHeader_1,deflate:deflate_2$1,deflateEnd:deflateEnd_1,deflateSetDictionary:deflateSetDictionary_1,deflateInfo};const _has=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var assign=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const r=e.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)_has(r,n)&&(t[n]=r[n])}}return t},flattenChunks=t=>{let e=0;for(let n=0,a=t.length;n=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,r,n,a,s,o=t.length,l=0;for(a=0;a>>6,e[s++]=128|r&63):r<65536?(e[s++]=224|r>>>12,e[s++]=128|r>>>6&63,e[s++]=128|r&63):(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63,e[s++]=128|r>>>6&63,e[s++]=128|r&63);return e};const buf2binstring=(t,e)=>{if(e<65534&&t.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let r="";for(let n=0;n{const r=e||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let n,a;const s=new Array(r*2);for(a=0,n=0;n4){s[a++]=65533,n+=l-1;continue}for(o&=l===2?31:l===3?15:7;l>1&&n1){s[a++]=65533;continue}o<65536?s[a++]=o:(o-=65536,s[a++]=55296|o>>10&1023,s[a++]=56320|o&1023)}return buf2binstring(s,a)},utf8border=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let r=e-1;for(;r>=0&&(t[r]&192)===128;)r--;return r<0||r===0?e:r+_utf8len[t[r]]>e?r:e},strings={string2buf,buf2string,utf8border};function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream;const toString$1=Object.prototype.toString,{Z_NO_FLUSH:Z_NO_FLUSH$1,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH:Z_FINISH$2,Z_OK:Z_OK$2,Z_STREAM_END:Z_STREAM_END$2,Z_DEFAULT_COMPRESSION,Z_DEFAULT_STRATEGY,Z_DEFLATED:Z_DEFLATED$1}=constants$2;function Deflate$1(t){this.options=common$2.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let r=deflate_1$2.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==Z_OK$2)throw new Error(messages$1[r]);if(e.header&&deflate_1$2.deflateSetHeader(this.strm,e.header),e.dictionary){let n;if(typeof e.dictionary=="string"?n=strings.string2buf(e.dictionary):toString$1.call(e.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(e.dictionary):n=e.dictionary,r=deflate_1$2.deflateSetDictionary(this.strm,n),r!==Z_OK$2)throw new Error(messages$1[r]);this._dict_set=!0}}Deflate$1.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize;let a,s;if(this.ended)return!1;for(e===~~e?s=e:s=e===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof t=="string"?r.input=strings.string2buf(t):toString$1.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){if(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),(s===Z_SYNC_FLUSH||s===Z_FULL_FLUSH)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(a=deflate_1$2.deflate(r,s),a===Z_STREAM_END$2)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=deflate_1$2.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Z_OK$2;if(r.avail_out===0){this.onData(r.output);continue}if(s>0&&r.next_out>0){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(r.avail_in===0)break}return!0};Deflate$1.prototype.onData=function(t){this.chunks.push(t)};Deflate$1.prototype.onEnd=function(t){t===Z_OK$2&&(this.result=common$2.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function deflate$1(t,e){const r=new Deflate$1(e);if(r.push(t,!0),r.err)throw r.msg||messages$1[r.err];return r.result}function deflateRaw$1(t,e){return e=e||{},e.raw=!0,deflate$1(t,e)}function gzip$1(t,e){return e=e||{},e.gzip=!0,deflate$1(t,e)}var Deflate_1$1=Deflate$1,deflate_2=deflate$1,deflateRaw_1$1=deflateRaw$1,gzip_1$1=gzip$1,constants$1=constants$2,deflate_1$1={Deflate:Deflate_1$1,deflate:deflate_2,deflateRaw:deflateRaw_1$1,gzip:gzip_1$1,constants:constants$1};const BAD$1=16209,TYPE$1=16191;var inffast=function t(e,r){let n,a,s,o,l,u,h,d,g,p,m,T,L,A,C,I,M,P,H,q,U,z,R,$;const D=e.state;n=e.next_in,R=e.input,a=n+(e.avail_in-5),s=e.next_out,$=e.output,o=s-(r-e.avail_out),l=s+(e.avail_out-257),u=D.dmax,h=D.wsize,d=D.whave,g=D.wnext,p=D.window,m=D.hold,T=D.bits,L=D.lencode,A=D.distcode,C=(1<>>24,m>>>=P,T-=P,P=M>>>16&255,P===0)$[s++]=M&65535;else if(P&16){H=M&65535,P&=15,P&&(T>>=P,T-=P),T<15&&(m+=R[n++]<>>24,m>>>=P,T-=P,P=M>>>16&255,P&16){if(q=M&65535,P&=15,Tu){e.msg="invalid distance too far back",D.mode=BAD$1;break t}if(m>>>=P,T-=P,P=s-o,q>P){if(P=q-P,P>d&&D.sane){e.msg="invalid distance too far back",D.mode=BAD$1;break t}if(U=0,z=p,g===0){if(U+=h-P,P2;)$[s++]=z[U++],$[s++]=z[U++],$[s++]=z[U++],H-=3;H&&($[s++]=z[U++],H>1&&($[s++]=z[U++]))}else{U=s-q;do $[s++]=$[U++],$[s++]=$[U++],$[s++]=$[U++],H-=3;while(H>2);H&&($[s++]=$[U++],H>1&&($[s++]=$[U++]))}}else if(P&64){e.msg="invalid distance code",D.mode=BAD$1;break t}else{M=A[(M&65535)+(m&(1<>3,n-=H,T-=H<<3,m&=(1<{const u=l.bits;let h=0,d=0,g=0,p=0,m=0,T=0,L=0,A=0,C=0,I=0,M,P,H,q,U,z=null,R;const $=new Uint16Array(MAXBITS+1),D=new Uint16Array(MAXBITS+1);let k=null,B,v,J;for(h=0;h<=MAXBITS;h++)$[h]=0;for(d=0;d=1&&$[p]===0;p--);if(m>p&&(m=p),p===0)return a[s++]=1<<24|64<<16|0,a[s++]=1<<24|64<<16|0,l.bits=1,0;for(g=1;g0&&(t===CODES$1||p!==1))return-1;for(D[1]=0,h=1;hENOUGH_LENS$1||t===DISTS$1&&C>ENOUGH_DISTS$1)return 1;for(;;){B=h-L,o[d]+1=R?(v=k[o[d]-R],J=z[o[d]-R]):(v=32+64,J=0),M=1<>L)+P]=B<<24|v<<16|J|0;while(P!==0);for(M=1<>=1;if(M!==0?(I&=M-1,I+=M):I=0,d++,--$[h]===0){if(h===p)break;h=e[r+o[d]]}if(h>m&&(I&q)!==H){for(L===0&&(L=m),U+=g,T=h-L,A=1<ENOUGH_LENS$1||t===DISTS$1&&C>ENOUGH_DISTS$1)return 1;H=I&q,a[H]=m<<24|T<<16|U-s|0}}return I!==0&&(a[U+I]=h-L<<24|64<<16|0),l.bits=m,0};var inftrees=inflate_table;const CODES=0,LENS=1,DISTS=2,{Z_FINISH:Z_FINISH$1,Z_BLOCK,Z_TREES,Z_OK:Z_OK$1,Z_STREAM_END:Z_STREAM_END$1,Z_NEED_DICT:Z_NEED_DICT$1,Z_STREAM_ERROR:Z_STREAM_ERROR$1,Z_DATA_ERROR:Z_DATA_ERROR$1,Z_MEM_ERROR:Z_MEM_ERROR$1,Z_BUF_ERROR,Z_DEFLATED}=constants$2,HEAD=16180,FLAGS=16181,TIME=16182,OS=16183,EXLEN=16184,EXTRA=16185,NAME=16186,COMMENT$1=16187,HCRC=16188,DICTID=16189,DICT=16190,TYPE=16191,TYPEDO=16192,STORED=16193,COPY_=16194,COPY=16195,TABLE=16196,LENLENS=16197,CODELENS=16198,LEN_=16199,LEN=16200,LENEXT=16201,DIST=16202,DISTEXT=16203,MATCH=16204,LIT=16205,CHECK=16206,LENGTH=16207,DONE=16208,BAD=16209,MEM=16210,SYNC=16211,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,zswap32=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function InflateState(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const inflateStateCheck=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.modeSYNC?1:0},inflateResetKeep=t=>{if(inflateStateCheck(t))return Z_STREAM_ERROR$1;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=HEAD,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(ENOUGH_LENS),e.distcode=e.distdyn=new Int32Array(ENOUGH_DISTS),e.sane=1,e.back=-1,Z_OK$1},inflateReset=t=>{if(inflateStateCheck(t))return Z_STREAM_ERROR$1;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,inflateResetKeep(t)},inflateReset2=(t,e)=>{let r;if(inflateStateCheck(t))return Z_STREAM_ERROR$1;const n=t.state;return e<0?(r=0,e=-e):(r=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?Z_STREAM_ERROR$1:(n.window!==null&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,inflateReset(t))},inflateInit2=(t,e)=>{if(!t)return Z_STREAM_ERROR$1;const r=new InflateState;t.state=r,r.strm=t,r.window=null,r.mode=HEAD;const n=inflateReset2(t,e);return n!==Z_OK$1&&(t.state=null),n},inflateInit=t=>inflateInit2(t,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=t=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(inftrees(LENS,t.lens,0,288,lenfix,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;inftrees(DISTS,t.lens,0,32,distfix,0,t.work,{bits:5}),virgin=!1}t.lencode=lenfix,t.lenbits=9,t.distcode=distfix,t.distbits=5},updatewindow=(t,e,r,n)=>{let a;const s=t.state;return s.window===null&&(s.wsize=1<=s.wsize?(s.window.set(e.subarray(r-s.wsize,r),0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>n&&(a=n),s.window.set(e.subarray(r-n,r-n+a),s.wnext),n-=a,n?(s.window.set(e.subarray(r-n,r),0),s.wnext=n,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave{let r,n,a,s,o,l,u,h,d,g,p,m,T,L,A=0,C,I,M,P,H,q,U,z;const R=new Uint8Array(4);let $,D;const k=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(t)||!t.output||!t.input&&t.avail_in!==0)return Z_STREAM_ERROR$1;r=t.state,r.mode===TYPE&&(r.mode=TYPEDO),o=t.next_out,a=t.output,u=t.avail_out,s=t.next_in,n=t.input,l=t.avail_in,h=r.hold,d=r.bits,g=l,p=u,z=Z_OK$1;t:for(;;)switch(r.mode){case HEAD:if(r.wrap===0){r.mode=TYPEDO;break}for(;d<16;){if(l===0)break t;l--,h+=n[s++]<>>8&255,r.check=crc32_1(r.check,R,2,0),h=0,d=0,r.mode=FLAGS;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((h&255)<<8)+(h>>8))%31){t.msg="incorrect header check",r.mode=BAD;break}if((h&15)!==Z_DEFLATED){t.msg="unknown compression method",r.mode=BAD;break}if(h>>>=4,d-=4,U=(h&15)+8,r.wbits===0&&(r.wbits=U),U>15||U>r.wbits){t.msg="invalid window size",r.mode=BAD;break}r.dmax=1<>8&1),r.flags&512&&r.wrap&4&&(R[0]=h&255,R[1]=h>>>8&255,r.check=crc32_1(r.check,R,2,0)),h=0,d=0,r.mode=TIME;case TIME:for(;d<32;){if(l===0)break t;l--,h+=n[s++]<>>8&255,R[2]=h>>>16&255,R[3]=h>>>24&255,r.check=crc32_1(r.check,R,4,0)),h=0,d=0,r.mode=OS;case OS:for(;d<16;){if(l===0)break t;l--,h+=n[s++]<>8),r.flags&512&&r.wrap&4&&(R[0]=h&255,R[1]=h>>>8&255,r.check=crc32_1(r.check,R,2,0)),h=0,d=0,r.mode=EXLEN;case EXLEN:if(r.flags&1024){for(;d<16;){if(l===0)break t;l--,h+=n[s++]<>>8&255,r.check=crc32_1(r.check,R,2,0)),h=0,d=0}else r.head&&(r.head.extra=null);r.mode=EXTRA;case EXTRA:if(r.flags&1024&&(m=r.length,m>l&&(m=l),m&&(r.head&&(U=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(s,s+m),U)),r.flags&512&&r.wrap&4&&(r.check=crc32_1(r.check,n,m,s)),l-=m,s+=m,r.length-=m),r.length))break t;r.length=0,r.mode=NAME;case NAME:if(r.flags&2048){if(l===0)break t;m=0;do U=n[s+m++],r.head&&U&&r.length<65536&&(r.head.name+=String.fromCharCode(U));while(U&&m>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=TYPE;break;case DICTID:for(;d<32;){if(l===0)break t;l--,h+=n[s++]<>>=d&7,d-=d&7,r.mode=CHECK;break}for(;d<3;){if(l===0)break t;l--,h+=n[s++]<>>=1,d-=1,h&3){case 0:r.mode=STORED;break;case 1:if(fixedtables(r),r.mode=LEN_,e===Z_TREES){h>>>=2,d-=2;break t}break;case 2:r.mode=TABLE;break;case 3:t.msg="invalid block type",r.mode=BAD}h>>>=2,d-=2;break;case STORED:for(h>>>=d&7,d-=d&7;d<32;){if(l===0)break t;l--,h+=n[s++]<>>16^65535)){t.msg="invalid stored block lengths",r.mode=BAD;break}if(r.length=h&65535,h=0,d=0,r.mode=COPY_,e===Z_TREES)break t;case COPY_:r.mode=COPY;case COPY:if(m=r.length,m){if(m>l&&(m=l),m>u&&(m=u),m===0)break t;a.set(n.subarray(s,s+m),o),l-=m,s+=m,u-=m,o+=m,r.length-=m;break}r.mode=TYPE;break;case TABLE:for(;d<14;){if(l===0)break t;l--,h+=n[s++]<>>=5,d-=5,r.ndist=(h&31)+1,h>>>=5,d-=5,r.ncode=(h&15)+4,h>>>=4,d-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=BAD;break}r.have=0,r.mode=LENLENS;case LENLENS:for(;r.have>>=3,d-=3}for(;r.have<19;)r.lens[k[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,$={bits:r.lenbits},z=inftrees(CODES,r.lens,0,19,r.lencode,0,r.work,$),r.lenbits=$.bits,z){t.msg="invalid code lengths set",r.mode=BAD;break}r.have=0,r.mode=CODELENS;case CODELENS:for(;r.have>>24,I=A>>>16&255,M=A&65535,!(C<=d);){if(l===0)break t;l--,h+=n[s++]<>>=C,d-=C,r.lens[r.have++]=M;else{if(M===16){for(D=C+2;d>>=C,d-=C,r.have===0){t.msg="invalid bit length repeat",r.mode=BAD;break}U=r.lens[r.have-1],m=3+(h&3),h>>>=2,d-=2}else if(M===17){for(D=C+3;d>>=C,d-=C,U=0,m=3+(h&7),h>>>=3,d-=3}else{for(D=C+7;d>>=C,d-=C,U=0,m=11+(h&127),h>>>=7,d-=7}if(r.have+m>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=BAD;break}for(;m--;)r.lens[r.have++]=U}}if(r.mode===BAD)break;if(r.lens[256]===0){t.msg="invalid code -- missing end-of-block",r.mode=BAD;break}if(r.lenbits=9,$={bits:r.lenbits},z=inftrees(LENS,r.lens,0,r.nlen,r.lencode,0,r.work,$),r.lenbits=$.bits,z){t.msg="invalid literal/lengths set",r.mode=BAD;break}if(r.distbits=6,r.distcode=r.distdyn,$={bits:r.distbits},z=inftrees(DISTS,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,$),r.distbits=$.bits,z){t.msg="invalid distances set",r.mode=BAD;break}if(r.mode=LEN_,e===Z_TREES)break t;case LEN_:r.mode=LEN;case LEN:if(l>=6&&u>=258){t.next_out=o,t.avail_out=u,t.next_in=s,t.avail_in=l,r.hold=h,r.bits=d,inffast(t,p),o=t.next_out,a=t.output,u=t.avail_out,s=t.next_in,n=t.input,l=t.avail_in,h=r.hold,d=r.bits,r.mode===TYPE&&(r.back=-1);break}for(r.back=0;A=r.lencode[h&(1<>>24,I=A>>>16&255,M=A&65535,!(C<=d);){if(l===0)break t;l--,h+=n[s++]<>P)],C=A>>>24,I=A>>>16&255,M=A&65535,!(P+C<=d);){if(l===0)break t;l--,h+=n[s++]<>>=P,d-=P,r.back+=P}if(h>>>=C,d-=C,r.back+=C,r.length=M,I===0){r.mode=LIT;break}if(I&32){r.back=-1,r.mode=TYPE;break}if(I&64){t.msg="invalid literal/length code",r.mode=BAD;break}r.extra=I&15,r.mode=LENEXT;case LENEXT:if(r.extra){for(D=r.extra;d>>=r.extra,d-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=DIST;case DIST:for(;A=r.distcode[h&(1<>>24,I=A>>>16&255,M=A&65535,!(C<=d);){if(l===0)break t;l--,h+=n[s++]<>P)],C=A>>>24,I=A>>>16&255,M=A&65535,!(P+C<=d);){if(l===0)break t;l--,h+=n[s++]<>>=P,d-=P,r.back+=P}if(h>>>=C,d-=C,r.back+=C,I&64){t.msg="invalid distance code",r.mode=BAD;break}r.offset=M,r.extra=I&15,r.mode=DISTEXT;case DISTEXT:if(r.extra){for(D=r.extra;d>>=r.extra,d-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=BAD;break}r.mode=MATCH;case MATCH:if(u===0)break t;if(m=p-u,r.offset>m){if(m=r.offset-m,m>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=BAD;break}m>r.wnext?(m-=r.wnext,T=r.wsize-m):T=r.wnext-m,m>r.length&&(m=r.length),L=r.window}else L=a,T=o-r.offset,m=r.length;m>u&&(m=u),u-=m,r.length-=m;do a[o++]=L[T++];while(--m);r.length===0&&(r.mode=LEN);break;case LIT:if(u===0)break t;a[o++]=r.length,u--,r.mode=LEN;break;case CHECK:if(r.wrap){for(;d<32;){if(l===0)break t;l--,h|=n[s++]<{if(inflateStateCheck(t))return Z_STREAM_ERROR$1;let e=t.state;return e.window&&(e.window=null),t.state=null,Z_OK$1},inflateGetHeader=(t,e)=>{if(inflateStateCheck(t))return Z_STREAM_ERROR$1;const r=t.state;return r.wrap&2?(r.head=e,e.done=!1,Z_OK$1):Z_STREAM_ERROR$1},inflateSetDictionary=(t,e)=>{const r=e.length;let n,a,s;return inflateStateCheck(t)||(n=t.state,n.wrap!==0&&n.mode!==DICT)?Z_STREAM_ERROR$1:n.mode===DICT&&(a=1,a=adler32_1(a,e,r,0),a!==n.check)?Z_DATA_ERROR$1:(s=updatewindow(t,e,r,r),s?(n.mode=MEM,Z_MEM_ERROR$1):(n.havedict=1,Z_OK$1))};var inflateReset_1=inflateReset,inflateReset2_1=inflateReset2,inflateResetKeep_1=inflateResetKeep,inflateInit_1=inflateInit,inflateInit2_1=inflateInit2,inflate_2$1=inflate$2,inflateEnd_1=inflateEnd,inflateGetHeader_1=inflateGetHeader,inflateSetDictionary_1=inflateSetDictionary,inflateInfo="pako inflate (from Nodeca project)",inflate_1$2={inflateReset:inflateReset_1,inflateReset2:inflateReset2_1,inflateResetKeep:inflateResetKeep_1,inflateInit:inflateInit_1,inflateInit2:inflateInit2_1,inflate:inflate_2$1,inflateEnd:inflateEnd_1,inflateGetHeader:inflateGetHeader_1,inflateSetDictionary:inflateSetDictionary_1,inflateInfo};function GZheader(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader;const toString$2=Object.prototype.toString,{Z_NO_FLUSH,Z_FINISH,Z_OK,Z_STREAM_END,Z_NEED_DICT,Z_STREAM_ERROR,Z_DATA_ERROR,Z_MEM_ERROR}=constants$2;function Inflate$1(t){this.options=common$2.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let r=inflate_1$2.inflateInit2(this.strm,e.windowBits);if(r!==Z_OK)throw new Error(messages$1[r]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=strings.string2buf(e.dictionary):toString$2.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=inflate_1$2.inflateSetDictionary(this.strm,e.dictionary),r!==Z_OK)))throw new Error(messages$1[r])}Inflate$1.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize,a=this.options.dictionary;let s,o,l;if(this.ended)return!1;for(e===~~e?o=e:o=e===!0?Z_FINISH:Z_NO_FLUSH,toString$2.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),s=inflate_1$2.inflate(r,o),s===Z_NEED_DICT&&a&&(s=inflate_1$2.inflateSetDictionary(r,a),s===Z_OK?s=inflate_1$2.inflate(r,o):s===Z_DATA_ERROR&&(s=Z_NEED_DICT));r.avail_in>0&&s===Z_STREAM_END&&r.state.wrap>0&&t[r.next_in]!==0;)inflate_1$2.inflateReset(r),s=inflate_1$2.inflate(r,o);switch(s){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(s),this.ended=!0,!1}if(l=r.avail_out,r.next_out&&(r.avail_out===0||s===Z_STREAM_END))if(this.options.to==="string"){let u=strings.utf8border(r.output,r.next_out),h=r.next_out-u,d=strings.buf2string(r.output,u);r.next_out=h,r.avail_out=n-h,h&&r.output.set(r.output.subarray(u,u+h),0),this.onData(d)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(s===Z_OK&&l===0)){if(s===Z_STREAM_END)return s=inflate_1$2.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(t){this.chunks.push(t)};Inflate$1.prototype.onEnd=function(t){t===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common$2.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function inflate$1(t,e){const r=new Inflate$1(e);if(r.push(t),r.err)throw r.msg||messages$1[r.err];return r.result}function inflateRaw$1(t,e){return e=e||{},e.raw=!0,inflate$1(t,e)}var Inflate_1$1=Inflate$1,inflate_2=inflate$1,inflateRaw_1$1=inflateRaw$1,ungzip$1=inflate$1,constants$3=constants$2,inflate_1$1={Inflate:Inflate_1$1,inflate:inflate_2,inflateRaw:inflateRaw_1$1,ungzip:ungzip$1,constants:constants$3};const{Deflate,deflate,deflateRaw,gzip}=deflate_1$1,{Inflate,inflate,inflateRaw,ungzip}=inflate_1$1;var deflate_1=deflate,inflate_1=inflate;const _hasatob=typeof atob=="function",_hasbtoa=typeof btoa=="function",_hasBuffer=typeof Buffer=="function",_TD=typeof TextDecoder=="function"?new TextDecoder:void 0,_TE=typeof TextEncoder=="function"?new TextEncoder:void 0,b64ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b64chs=Array.prototype.slice.call(b64ch),b64tab=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(b64chs),b64re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_fromCC=String.fromCharCode.bind(String),_U8Afrom=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):(t,e=r=>r)=>new Uint8Array(Array.prototype.slice.call(t,0).map(e)),_mkUriSafe=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),_tidyB64=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=t=>{let e,r,n,a,s="";const o=t.length%3;for(let l=0;l255||(n=t.charCodeAt(l++))>255||(a=t.charCodeAt(l++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|a,s+=b64chs[e>>18&63]+b64chs[e>>12&63]+b64chs[e>>6&63]+b64chs[e&63]}return o?s.slice(0,o-3)+"===".substring(o):s},_btoa=_hasbtoa?t=>btoa(t):_hasBuffer?t=>Buffer.from(t,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,a=t.length;ne?_mkUriSafe(_fromUint8Array(t)):_fromUint8Array(t),cb_utob=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?_fromCC(192|e>>>6)+_fromCC(128|e&63):_fromCC(224|e>>>12&15)+_fromCC(128|e>>>6&63)+_fromCC(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return _fromCC(240|e>>>18&7)+_fromCC(128|e>>>12&63)+_fromCC(128|e>>>6&63)+_fromCC(128|e&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=t=>t.replace(re_utob,cb_utob),_encode=_hasBuffer?t=>Buffer.from(t,"utf8").toString("base64"):_TE?t=>_fromUint8Array(_TE.encode(t)):t=>_btoa(utob(t)),encode=(t,e=!1)=>e?_mkUriSafe(_encode(t)):_encode(t),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return _fromCC((r>>>10)+55296)+_fromCC((r&1023)+56320);case 3:return _fromCC((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return _fromCC((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},btou=t=>t.replace(re_btou,cb_btou),atobPolyfill=t=>{if(t=t.replace(/\s+/g,""),!b64re.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,a;for(let s=0;s>16&255):a===64?_fromCC(e>>16&255,e>>8&255):_fromCC(e>>16&255,e>>8&255,e&255);return r},_atob=_hasatob?t=>atob(_tidyB64(t)):_hasBuffer?t=>Buffer.from(t,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?t=>_U8Afrom(Buffer.from(t,"base64")):t=>_U8Afrom(_atob(t),e=>e.charCodeAt(0)),toUint8Array=t=>_toUint8Array(_unURI(t)),_decode=_hasBuffer?t=>Buffer.from(t,"base64").toString("utf8"):_TD?t=>_TD.decode(_toUint8Array(t)):t=>btou(_atob(t)),_unURI=t=>_tidyB64(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),decode=t=>_decode(_unURI(t)),base64Serde={serialize:t=>encode(t,!0),deserialize:t=>decode(t)},pakoSerde={serialize:t=>{const e=new TextEncoder().encode(t),r=deflate_1(e,{level:9});return fromUint8Array(r,!0)},deserialize:t=>{const e=toUint8Array(t);return inflate_1(e,{to:"string"})}},serdes={base64:base64Serde,pako:pakoSerde},serializeState=(t,e="pako")=>{if(!(e in serdes))throw new Error(`Unknown serde type: ${e}`);const r=JSON.stringify(t),n=serdes[e].serialize(r);return`${e}:${n}`},deserializeState=t=>{let e,r;if(t.includes(":")){let a;if([a,r]=t.split(":"),a in serdes)e=a;else throw new Error(`Unknown serde type: ${a}`)}else e="base64",r=t;const n=serdes[e].deserialize(r);return JSON.parse(n)};var dist$1={},words={};(function(t){var e=commonjsGlobal&&commonjsGlobal.__values||function(n){var a=typeof Symbol=="function"&&Symbol.iterator,s=a&&n[a],o=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.getWordsByCategory=t.wordList=void 0,t.wordList={noun:[{word:"accountant",categories:["profession"]},{word:"ability",categories:["thing"]},{word:"accident",categories:["thing"]},{word:"account",categories:["thing"]},{word:"action",categories:["thing"]},{word:"activity",categories:["thing"]},{word:"actor",categories:["profession"]},{word:"ad",categories:["media"]},{word:"addition",categories:["thing"]},{word:"address",categories:["thing"]},{word:"adult",categories:["people"]},{word:"advantage",categories:["thing"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"agency",categories:["thing"]},{word:"agent",categories:["people"]},{word:"air",categories:["thing"]},{word:"airline",categories:["transportation"]},{word:"airplane",categories:["transportation"]},{word:"airport",categories:["transportation","place"]},{word:"alarm",categories:["thing"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"analyst",categories:["profession"]},{word:"angle",categories:["thing"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apartment",categories:["place"]},{word:"apple",categories:["food"]},{word:"application",categories:["thing"]},{word:"appointment",categories:["thing"]},{word:"architect",categories:["profession"]},{word:"argument",categories:["thing"]},{word:"area",categories:["thing"]},{word:"arm",categories:["thing"]},{word:"army",categories:["thing"]},{word:"art",categories:["thing"]},{word:"article",categories:["thing"]},{word:"artist",categories:["profession"]},{word:"australia",categories:["place"]},{word:"author",categories:["profession"]},{word:"autumn",categories:["time"]},{word:"baby",categories:["people","family"]},{word:"baker",categories:["profession"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"barista",categories:["profession"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"bear",categories:["animals"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"bird",categories:["animals"]},{word:"bit",categories:["thing","technology"]},{word:"book",categories:["thing","education"]},{word:"boots",categories:["thing"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"businessperson",categories:["people","business"]},{word:"butcher",categories:["profession"]},{word:"byte",categories:["thing","technology"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpenter",categories:["profession"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"cat",categories:["animals"]},{word:"chef",categories:["profession"]},{word:"child",categories:["people","family"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"city",categories:["place"]},{word:"coat",categories:["thing"]},{word:"coffeeshop",categories:["place"]},{word:"computer",categories:["thing","technology"]},{word:"continent",categories:["place"]},{word:"controller",categories:["thing","technology"]},{word:"country",categories:["place"]},{word:"cpu",categories:["thing","technology"]},{word:"crayon",categories:["thing"]},{word:"cricket",categories:["animals"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"dawn",categories:["time"]},{word:"daybreak",categories:["time"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"dentist",categories:["profession"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"dusk",categories:["time"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"electrician",categories:["profession"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"engineer",categories:["profession"]},{word:"england",categories:["place"]},{word:"eve",categories:["time"]},{word:"evening",categories:["time"]},{word:"eventide",categories:["time"]},{word:"exabyte",categories:["thing","technology"]},{word:"eye",categories:["thing"]},{word:"fall",categories:["time"]},{word:"family",categories:["family"]},{word:"farmer",categories:["profession"]},{word:"father",categories:["people","family"]},{word:"finland",categories:["place"]},{word:"fireman",categories:["profession"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"florist",categories:["profession"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"ghost",categories:["thing"]},{word:"gigabyte",categories:["thing","technology"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]},{word:"gold",categories:["thing"]},{word:"gpu",categories:["thing","technology"]},{word:"grandmother",categories:["people","family"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hairdresser",categories:["profession"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"intern",categories:["profession"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"journalist",categories:["profession"]},{word:"joystick",categories:["thing","technology"]},{word:"judge",categories:["profession"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"keyboard",categories:["thing","technology"]},{word:"kilobyte",categories:["thing","technology"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"laptop",categories:["thing","technology"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"librarian",categories:["profession"]},{word:"library",categories:["place"]},{word:"lifeguard",categories:["profession"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"man",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"mechanic",categories:["profession"]},{word:"megabyte",categories:["thing","technology"]},{word:"memory",categories:["thing","technology"]},{word:"microphone",categories:["thing"]},{word:"midnight",categories:["time"]},{word:"minister",categories:["people","religion"]},{word:"monitor",categories:["thing","technology"]},{word:"monkey",categories:["animals"]},{word:"morn",categories:["time"]},{word:"morning",categories:["time"]},{word:"mother",categories:["people","family"]},{word:"motherboard",categories:["thing","technology"]},{word:"motorcycle",categories:["transportation"]},{word:"mouse",categories:["thing","technology","animals"]},{word:"musician",categories:["profession"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["time"]},{word:"nightfall",categories:["time"]},{word:"noon",categories:["time"]},{word:"notebook",categories:["thing"]},{word:"nurse",categories:["profession"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"optician",categories:["profession"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"pager",categories:["thing","technology"]},{word:"painter",categories:["profession"]},{word:"painting",categories:["media"]},{word:"park",categories:["place"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing","education"]},{word:"petabyte",categories:["thing","technology"]},{word:"pharmacist",categories:["profession"]},{word:"photographer",categories:["profession"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pilot",categories:["profession"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"plumber",categories:["profession"]},{word:"policeman",categories:["profession"]},{word:"portugal",categories:["place"]},{word:"postman",categories:["profession"]},{word:"potato",categories:["food"]},{word:"printer",categories:["thing","technology"]},{word:"processor",categories:["thing","technology"]},{word:"psychiatrist",categories:["profession"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"ram",categories:["thing","technology"]},{word:"receptionist",categories:["profession"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"salesclerk",categories:["people","business"]},{word:"salesmen",categories:["profession"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scientist",categories:["profession"]},{word:"scooter",categories:["transportation"]},{word:"secretary",categories:["profession"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"smartphone",categories:["thing","technology"]},{word:"soccer",categories:["sports"]},{word:"solstice",categories:["time"]},{word:"spoon",categories:["thing"]},{word:"spring",categories:["time"]},{word:"state",categories:["place"]},{word:"stone",categories:["thing"]},{word:"student",categories:["people","education"]},{word:"sugar",categories:["food"]},{word:"summer",categories:["time"]},{word:"sundown",categories:["time"]},{word:"sunset",categories:["time"]},{word:"sweden",categories:["place"]},{word:"table",categories:["thing"]},{word:"tailor",categories:["profession"]},{word:"teacher",categories:["people","education","profession"]},{word:"teenager",categories:["people","family"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"terabyte",categories:["thing","technology"]},{word:"thailand",categories:["place"]},{word:"tiger",categories:["animals"]},{word:"toddler",categories:["people","family"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"translator",categories:["profession"]},{word:"truck",categories:["thing","transportation"]},{word:"twilight",categories:["time"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vr",categories:["thing","technology"]},{word:"vulture",categories:["animals"]},{word:"waiter",categories:["profession"]},{word:"waitress",categories:["profession"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"winter",categories:["time"]},{word:"wire",categories:["thing"]},{word:"wolf",categories:["animals"]},{word:"woman",categories:["people"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"yottabyte",categories:["thing","technology"]},{word:"zebra",categories:["animals"]},{word:"zettabyte",categories:["thing","technology"]},{word:"zoo",categories:["animals"]}],adjective:[{word:"abandoned",categories:["condition"]},{word:"abiding",categories:["personality"]},{word:"able",categories:["condition"]},{word:"abrasive",categories:["condition","personality"]},{word:"abnormal",categories:["condition"]},{word:"absurd",categories:["condition"]},{word:"abundant",categories:["quantity"]},{word:"acceptable",categories:["condition"]},{word:"acidic",categories:["taste"]},{word:"acoustic",categories:["sounds"]},{word:"acrid",categories:["condition"]},{word:"adamant",categories:["personality"]},{word:"adorable",categories:["personality"]},{word:"adventurous",categories:["personality"]},{word:"aggressive",categories:["personality"]},{word:"agitated",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alert",categories:["condition"]},{word:"alive",categories:["condition"]},{word:"aloof",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"annoyed",categories:["personality"]},{word:"antsy",categories:["personality"]},{word:"anxious",categories:["personality"]},{word:"appalling",categories:["personality"]},{word:"appetizing",categories:["taste"]},{word:"apprehensive",categories:["personality"]},{word:"arrogant",categories:["personality"]},{word:"ashamed",categories:["personality"]},{word:"astonishing",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"average",categories:["appearance"]},{word:"bad",categories:["condition"]},{word:"bald",categories:["appearance"]},{word:"bashful",categories:["personality"]},{word:"beautiful",categories:["appearance"]},{word:"beefy",categories:["appearance"]},{word:"belligerent",categories:["personality"]},{word:"bent",categories:["condition"]},{word:"better",categories:["condition"]},{word:"best",categories:["condition"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"billowy",categories:["appearance"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"bland",categories:["taste"]},{word:"blue",categories:["color"]},{word:"blushing",categories:["appearance"]},{word:"bored",categories:["personality"]},{word:"boring",categories:["personality"]},{word:"boundless",categories:["personality"]},{word:"brainy",categories:["personality"]},{word:"brash",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"bright",categories:["appearance"]},{word:"broad",categories:["shapes"]},{word:"broken",categories:["condition"]},{word:"brown",categories:["color"]},{word:"bulky",categories:["appearance"]},{word:"bumpy",categories:["touch"]},{word:"burly",categories:["appearance"]},{word:"busy",categories:["personality"]},{word:"cagey",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"callous",categories:["personality"]},{word:"careful",categories:["condition"]},{word:"chilly",categories:["touch"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"clever",categories:["condition"]},{word:"clumsy",categories:["personality"]},{word:"cold",categories:["touch"]},{word:"colossal",categories:["size"]},{word:"cool",categories:["touch"]},{word:"crashing",categories:["sounds"]},{word:"creamy",categories:["taste"]},{word:"crooked",categories:["shapes"]},{word:"cuddly",categories:["touch"]},{word:"curved",categories:["shapes"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dazzling",categories:["appearance"]},{word:"dead",categories:["condition"]},{word:"deafening",categories:["sounds"]},{word:"deep",categories:["shapes"]},{word:"defeated",categories:["personality"]},{word:"delicious",categories:["taste"]},{word:"delightful",categories:["personality"]},{word:"dirty",categories:["touch"]},{word:"disgusting",categories:["taste"]},{word:"drab",categories:["appearance"]},{word:"dry",categories:["touch"]},{word:"eager",categories:["personality"]},{word:"early",categories:["time"]},{word:"easy",categories:["condition"]},{word:"echoing",categories:["sounds"]},{word:"elegant",categories:["appearance"]},{word:"embarrassed",categories:["personality"]},{word:"enough",categories:["quantity"]},{word:"faint",categories:["sounds"]},{word:"faithful",categories:["personality"]},{word:"famous",categories:["condition"]},{word:"fancy",categories:["appearance"]},{word:"fast",categories:["time"]},{word:"fat",categories:["size"]},{word:"few",categories:["quantity"]},{word:"fierce",categories:["personality"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"flaky",categories:["touch"]},{word:"flat",categories:["shapes"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"fresh",categories:["taste"]},{word:"full",categories:["quantity"]},{word:"future",categories:["time"]},{word:"gentle",categories:["personality"]},{word:"gifted",categories:["condition"]},{word:"gigantic",categories:["size"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"gray",categories:["color"]},{word:"greasy",categories:["touch","taste"]},{word:"great",categories:["size"]},{word:"green",categories:["color"]},{word:"grumpy",categories:["personality"]},{word:"hallowed",categories:["condition"]},{word:"handsome",categories:["appearance"]},{word:"happy",categories:["personality"]},{word:"harsh",categories:["sounds"]},{word:"helpful",categories:["condition"]},{word:"helpless",categories:["personality"]},{word:"high",categories:["shapes"]},{word:"hissing",categories:["sounds"]},{word:"hollow",categories:["shapes"]},{word:"hot",categories:["touch","taste"]},{word:"howling",categories:["sounds"]},{word:"huge",categories:["size"]},{word:"hundreds",categories:["quantity"]},{word:"icy",categories:["touch"]},{word:"immense",categories:["size"]},{word:"important",categories:["condition"]},{word:"incalculable",categories:["quantity"]},{word:"inexpensive",categories:["condition"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"juicy",categories:["taste"]},{word:"kind",categories:["personality"]},{word:"large",categories:["size"]},{word:"late",categories:["time"]},{word:"lazy",categories:["personality"]},{word:"lemon",categories:["color"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["size","quantity"]},{word:"lively",categories:["personality"]},{word:"long",categories:["time","appearance"]},{word:"loose",categories:["touch"]},{word:"loud",categories:["sounds"]},{word:"low",categories:["shapes"]},{word:"magnificent",categories:["appearance"]},{word:"mammoth",categories:["size"]},{word:"mango",categories:["color"]},{word:"many",categories:["quantity"]},{word:"massive",categories:["size"]},{word:"mealy",categories:["condition"]},{word:"melodic",categories:["sounds"]},{word:"melted",categories:["touch"]},{word:"microscopic",categories:["size"]},{word:"millions",categories:["quantity"]},{word:"miniature",categories:["size"]},{word:"modern",categories:["time"]},{word:"moldy",categories:["taste"]},{word:"most",categories:["quantity"]},{word:"muscular",categories:["appearance"]},{word:"mushy",categories:["condition"]},{word:"mysterious",categories:["personality"]},{word:"narrow",categories:["shapes"]},{word:"nervous",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"noisy",categories:["sounds"]},{word:"numerous",categories:["quantity"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"obedient",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"odd",categories:["condition"]},{word:"old",categories:["time"]},{word:"orange",categories:["color"]},{word:"panicky",categories:["personality"]},{word:"petite",categories:["size"]},{word:"pitiful",categories:["personality"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"polite",categories:["personality"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"prehistoric",categories:["time"]},{word:"prickly",categories:["touch"]},{word:"proud",categories:["personality"]},{word:"puny",categories:["size"]},{word:"purple",categories:["color"]},{word:"purring",categories:["sounds"]},{word:"putrid",categories:["taste"]},{word:"quaint",categories:["appearance"]},{word:"quick",categories:["time"]},{word:"quiet",categories:["sounds"]},{word:"rancid",categories:["taste"]},{word:"rapid",categories:["time"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"red",categories:["color"]},{word:"refined",categories:["shapes"]},{word:"repulsive",categories:["personality"]},{word:"rhythmic",categories:["sounds"]},{word:"rich",categories:["condition"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"rough",categories:["touch"]},{word:"round",categories:["shapes"]},{word:"salmon",categories:["color"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"scarce",categories:["quantity"]},{word:"scary",categories:["personality"]},{word:"scrawny",categories:["size"]},{word:"screeching",categories:["sounds"]},{word:"scruffy",categories:["appearance"]},{word:"shaggy",categories:["touch"]},{word:"shallow",categories:["shapes"]},{word:"shapely",categories:["appearance"]},{word:"sharp",categories:["touch"]},{word:"short",categories:["size","appearance","time"]},{word:"shrilling",categories:["sounds"]},{word:"shy",categories:["condition"]},{word:"silly",categories:["personality"]},{word:"skinny",categories:["appearance","shapes"]},{word:"slimy",categories:["touch"]},{word:"slow",categories:["time"]},{word:"small",categories:["size"]},{word:"some",categories:["quantity"]},{word:"sour",categories:["taste"]},{word:"sparse",categories:["quantity"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"square",categories:["shapes"]},{word:"squeaking",categories:["sounds"]},{word:"stale",categories:["taste"]},{word:"steep",categories:["shapes"]},{word:"sticky",categories:["touch"]},{word:"stocky",categories:["appearance"]},{word:"straight",categories:["shapes"]},{word:"strong",categories:["touch"]},{word:"substantial",categories:["quantity"]},{word:"sweet",categories:["taste"]},{word:"swift",categories:["time"]},{word:"tall",categories:["size"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"teeny",categories:["size"]},{word:"tender",categories:["condition"]},{word:"thankful",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"thousands",categories:["quantity"]},{word:"thundering",categories:["sounds"]},{word:"tight",categories:["touch"]},{word:"tinkling",categories:["sounds"]},{word:"tiny",categories:["size"]},{word:"ugly",categories:["appearance"]},{word:"uneven",categories:["touch"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"uptight",categories:["personality"]},{word:"vast",categories:["condition"]},{word:"victorious",categories:["personality"]},{word:"wailing",categories:["sounds"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"white",categories:["color"]},{word:"wide",categories:["shapes"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"wooden",categories:["touch"]},{word:"worried",categories:["personality"]},{word:"wrong",categories:["condition"]},{word:"yellow",categories:["color"]},{word:"young",categories:["time"]},{word:"yummy",categories:["taste"]},{word:"zealous",categories:["personality"]}]};function r(n,a){var s,o;a===void 0&&(a=[]);var l=new Set(a),u=[];try{for(var h=e(t.wordList[n]),d=h.next();!d.done;d=h.next()){var g=d.value;(a.length===0||g.categories.some(function(p){return l.has(p)}))&&u.push(g.word)}}catch(p){s={error:p}}finally{try{d&&!d.done&&(o=h.return)&&o.call(h)}finally{if(s)throw s.error}}return u}t.getWordsByCategory=r})(words);var __assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(t){for(var e,r=1,n=arguments.length;r{a(t==="auto"?e:t==="manual"?r:t==="loader"?n:e)}),addHistoryEntry=t=>{const e={...t,id:v4()};if(e.type==="loader"){loaderHistoryStore.update(r=>[e,...r]);return}e.name||(e.name=generateSlug_1(2)),e.type==="auto"?autoHistoryStore.update(r=>(r.length>=MAX_AUTO_HISTORY_LENGTH&&(r=r.slice(0,MAX_AUTO_HISTORY_LENGTH-1)),[e,...r])):e.type==="manual"&&(manualHistoryStore.update(r=>[e,...r]),logEvent("history",{action:"save"}))},clearHistoryData=t=>{(get_store_value(historyModeStore)==="auto"?autoHistoryStore:manualHistoryStore).update(e=>(get_store_value(historyModeStore)!=="loader"&&(e=e.filter(({id:r})=>t&&r!=t),logEvent("history",{action:"clear",type:t?"single":"all"})),e))},getPreviousState=t=>{const e=get_store_value(t?autoHistoryStore:manualHistoryStore);return e.length>0?JSON.stringify(e[0].state):""},restoreHistory=t=>{const e=t.filter(validateEntry),r=t.length-e.length;if(r>0&&(console.error(`${r} invalid history entries were removed.`),console.error(t)),e.length>0){let n=0;(e[0].type==="auto"?autoHistoryStore:manualHistoryStore).update(a=>{const s=new Set(a.map(({id:u})=>u)),o=e.filter(({id:u})=>!s.has(u));n=o.length;const l=[...a,...o];return l.sort((u,h)=>h.time-u.time),l}),alert(`${n} entries restored. ${r} invalid, ${e.length-n} duplicates.`),logEvent("history",{action:"restore",success:n,invalid:r,duplicates:e.length-n})}else alert("No valid entries found.")},injectHistoryIDs=()=>{const t=e=>{for(const r of e)r.id||(r.id=v4());return e};autoHistoryStore.update(t),manualHistoryStore.update(t)},validateEntry=t=>t.type&&t.state&&t.time&&!0,codeFileName="code.mmd",configFileName="config.json",isValidGist=t=>codeFileName in t,getFileContent=async t=>t.truncated?await(await fetch(t.raw_url)).text():t.content,getGistData=async t=>{const e=t.split("github.com").pop();if(!e)throw new Error("Invalid GitHub URL"+t);const[r,n,a,s]=e.split("/"),{html_url:o,files:l,history:u}=await(await fetch(`https://api.github.com/gists/${a}${s?"/"+s:""}`)).json();if(isValidGist(l)){const h=await getFileContent(l[codeFileName]);let d="{}";configFileName in l&&(d=await getFileContent(l[configFileName]));const g=u[0];return{url:`${o}/${g.version}`,code:h,config:d,author:g.user.login,time:new Date(g.committed_at).getTime(),version:g.version.slice(-7)}}else throw new Error("Invalid gist provided")},getStateFromGist=(t,e=t.url)=>{const r={...defaultState,code:t.code,loader:{type:"gist",config:{url:e}}};return t.config&&(r.mermaid=t.config),r},loadGistData=async t=>{const e=t.split("github.com").pop();if(!e)throw new Error("Invalid GitHub URL"+t);const[r,n,a,s]=e.split("/"),{history:o}=await(await fetch(`https://api.github.com/gists/${a}${s?"/"+s:""}`)).json(),l=[];for(const d of o){const g=await getGistData(d.url).catch(()=>{});g&&l.push(g)}if(l.length===0)throw new Error("Invalid gist provided");l.reverse();const u=l.slice(-1).pop();if(!u)throw new Error("Invalid gist provided");const h=getStateFromGist(u,t);for(const d of l)addHistoryEntry({state:getStateFromGist(d),time:d.time,type:"loader",url:d.url,name:`${d.author} v${d.version}`});return h},loaders={gist:loadGistData},loadDataFromUrl=async()=>{const t=new URLSearchParams(window.location.search);let e=defaultState,r,n,a=!1;const s=t.get("code")??void 0,o=t.get("config")??void 0;if(s&&(r=await(await fetch(s)).text(),a=!0),o?n=await(await fetch(o)).text():n=defaultState.mermaid,r){if(!s)throw new Error("Code URL is not defined");e={code:r,mermaid:n,loader:{type:"files",config:{codeURL:s,configURL:o}}}}else for(const[l,u]of t.entries())if(l in loaders)try{e=await loaders[l](u),a=!0;break}catch(h){console.error(h)}a&&updateCodeStore({...e,autoSync:!0,updateDiagram:!0})},migrations={injectHistoryIDs},migrationStore=persist(writable({version:-1}),localStorage(),"migrations"),applyMigrations=()=>{const{version:t}=get_store_value(migrationStore),e=Object.entries(migrations);if(t!==e.length-1){console.log(`Current migration version: v${t}. Migrating to v${e.length-1}.`);for(let r=t+1;r>>0,O=0;OZt(f)?(lt=f+1,bt-Zt(f)):(lt=f,bt);return{year:lt,dayOfYear:Ct}}function Te(f,b,S){var O,V,lt=_e(f.year(),b,S),lt=Math.floor((f.dayOfYear()-lt-1)/7)+1;return lt<1?O=lt+we(V=f.year()-1,b,S):lt>we(f.year(),b,S)?(O=lt-we(f.year(),b,S),V=f.year()+1):(V=f.year(),O=lt),{week:O,year:V}}function we(f,V,S){var O=_e(f,V,S),V=_e(f+1,V,S);return(Zt(f)-O+V)/7}Q("w",["ww",2],"wo","week"),Q("W",["WW",2],"Wo","isoWeek"),dt("week","w"),dt("isoWeek","W"),G("week",5),G("isoWeek",5),ct("w",j),ct("ww",j,ae),ct("W",j),ct("WW",j,ae),ge(["w","ww","W","WW"],function(f,b,S,O){b[O.substr(0,1)]=W(f)});function Ee(f,b){return f.slice(b,7).concat(f.slice(0,b))}Q("d",0,"do","day"),Q("dd",0,0,function(f){return this.localeData().weekdaysMin(this,f)}),Q("ddd",0,0,function(f){return this.localeData().weekdaysShort(this,f)}),Q("dddd",0,0,function(f){return this.localeData().weekdays(this,f)}),Q("e",0,0,"weekday"),Q("E",0,0,"isoWeekday"),dt("day","d"),dt("weekday","e"),dt("isoWeekday","E"),G("day",11),G("weekday",11),G("isoWeekday",11),ct("d",j),ct("e",j),ct("E",j),ct("dd",function(f,b){return b.weekdaysMinRegex(f)}),ct("ddd",function(f,b){return b.weekdaysShortRegex(f)}),ct("dddd",function(f,b){return b.weekdaysRegex(f)}),ge(["dd","ddd","dddd"],function(f,b,S,O){O=S._locale.weekdaysParse(f,O,S._strict),O!=null?b.d=O:T(S).invalidWeekday=f}),ge(["d","e","E"],function(f,b,S,O){b[O]=W(f)});var ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Le="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ie=yt,Yt=yt,rt=yt;function At(){function f($t,se){return se.length-$t.length}for(var b,S,O,V=[],lt=[],bt=[],Ct=[],Bt=0;Bt<7;Bt++)O=m([2e3,1]).day(Bt),b=jt(this.weekdaysMin(O,"")),S=jt(this.weekdaysShort(O,"")),O=jt(this.weekdays(O,"")),V.push(b),lt.push(S),bt.push(O),Ct.push(b),Ct.push(S),Ct.push(O);V.sort(f),lt.sort(f),bt.sort(f),Ct.sort(f),this._weekdaysRegex=new RegExp("^("+Ct.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+bt.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+lt.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+V.join("|")+")","i")}function Rt(){return this.hours()%12||12}function le(f,b){Q(f,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}function be(f,b){return b._meridiemParse}Q("H",["HH",2],0,"hour"),Q("h",["hh",2],0,Rt),Q("k",["kk",2],0,function(){return this.hours()||24}),Q("hmm",0,0,function(){return""+Rt.apply(this)+J(this.minutes(),2)}),Q("hmmss",0,0,function(){return""+Rt.apply(this)+J(this.minutes(),2)+J(this.seconds(),2)}),Q("Hmm",0,0,function(){return""+this.hours()+J(this.minutes(),2)}),Q("Hmmss",0,0,function(){return""+this.hours()+J(this.minutes(),2)+J(this.seconds(),2)}),le("a",!0),le("A",!1),dt("hour","h"),G("hour",13),ct("a",be),ct("A",be),ct("H",j),ct("h",j),ct("k",j),ct("HH",j,ae),ct("hh",j,ae),ct("kk",j,ae),ct("hmm",Ft),ct("hmmss",at),ct("Hmm",Ft),ct("Hmmss",at),Ht(["H","HH"],mt),Ht(["k","kk"],function(f,b,S){f=W(f),b[mt]=f===24?0:f}),Ht(["a","A"],function(f,b,S){S._isPm=S._locale.isPM(f),S._meridiem=f}),Ht(["h","hh"],function(f,b,S){b[mt]=W(f),T(S).bigHour=!0}),Ht("hmm",function(f,b,S){var O=f.length-2;b[mt]=W(f.substr(0,O)),b[It]=W(f.substr(O)),T(S).bigHour=!0}),Ht("hmmss",function(f,b,S){var O=f.length-4,V=f.length-2;b[mt]=W(f.substr(0,O)),b[It]=W(f.substr(O,2)),b[vt]=W(f.substr(V)),T(S).bigHour=!0}),Ht("Hmm",function(f,b,S){var O=f.length-2;b[mt]=W(f.substr(0,O)),b[It]=W(f.substr(O))}),Ht("Hmmss",function(f,b,S){var O=f.length-4,V=f.length-2;b[mt]=W(f.substr(0,O)),b[It]=W(f.substr(O,2)),b[vt]=W(f.substr(V))}),yt=Y("Hours",!0);var ye,Ce={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Kt,monthsShort:oe,week:{dow:0,doy:6},weekdays:ke,weekdaysMin:Le,weekdaysShort:xe,meridiemParse:/[ap]\.?m?\.?/i},de={},ve={};function Ke(f){return f&&f.toLowerCase().replace("_","-")}function Qe(f){for(var b,S,O,V,lt=0;lt=b&&function(bt,Ct){for(var Bt=Math.min(bt.length,Ct.length),$t=0;$t=b-1)break;b--}lt++}return ye}function Me(f){var b;if(de[f]===void 0&&t&&t.exports&&f.match("^[^/\\\\]*$")!=null)try{b=ye._abbr,commonjsRequire("./locale/"+f),Vt(b)}catch{de[f]=null}return de[f]}function Vt(f,b){return f&&((b=u(b)?ie(f):Xt(f,b))?ye=b:typeof console<"u"&&console.warn&&console.warn("Locale "+f+" not found. Did you forget to load it?")),ye._abbr}function Xt(f,b){if(b===null)return delete de[f],null;var S,O=Ce;if(b.abbr=f,de[f]!=null)$("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),O=de[f]._config;else if(b.parentLocale!=null)if(de[b.parentLocale]!=null)O=de[b.parentLocale]._config;else{if((S=Me(b.parentLocale))==null)return ve[b.parentLocale]||(ve[b.parentLocale]=[]),ve[b.parentLocale].push({name:f,config:b}),null;O=S._config}return de[f]=new B(k(O,b)),ve[f]&&ve[f].forEach(function(V){Xt(V.name,V.config)}),Vt(f),de[f]}function ie(f){var b;if(!(f=f&&f._locale&&f._locale._abbr?f._locale._abbr:f))return ye;if(!a(f)){if(b=Me(f))return b;f=[f]}return Qe(f)}function Ot(f){var b=f._a;return b&&T(f).overflow===-2&&(b=b[Mt]<0||11pt(b[Pt],b[Mt])?wt:b[mt]<0||24we(lt,Bt,$t)?T(O)._overflowWeeks=!0:se!=null?T(O)._overflowWeekday=!0:(Qt=ee(lt,bt,Ct,Bt,$t),O._a[Pt]=Qt.year,O._dayOfYear=Qt.dayOfYear)),f._dayOfYear!=null&&(V=We(f._a[Pt],S[Pt]),(f._dayOfYear>Zt(V)||f._dayOfYear===0)&&(T(f)._overflowDayOfYear=!0),se=Be(V,0,f._dayOfYear),f._a[Mt]=se.getUTCMonth(),f._a[wt]=se.getUTCDate()),b=0;b<3&&f._a[b]==null;++b)f._a[b]=Ae[b]=S[b];for(;b<7;b++)f._a[b]=Ae[b]=f._a[b]==null?b===2?1:0:f._a[b];f._a[mt]===24&&f._a[It]===0&&f._a[vt]===0&&f._a[Ut]===0&&(f._nextDay=!0,f._a[mt]=0),f._d=(f._useUTC?Be:Ue).apply(null,Ae),lt=f._useUTC?f._d.getUTCDay():f._d.getDay(),f._tzm!=null&&f._d.setUTCMinutes(f._d.getUTCMinutes()-f._tzm),f._nextDay&&(f._a[mt]=24),f._w&&f._w.d!==void 0&&f._w.d!==lt&&(T(f).weekdayMismatch=!0)}}function fr(f){if(f._f===n.ISO_8601)yr(f);else if(f._f===n.RFC_2822)Ve(f);else{f._a=[],T(f).empty=!0;for(var b,S,O,V,lt,bt=""+f._i,Ct=bt.length,Bt=0,$t=st(f._f,f._locale).match(E)||[],se=$t.length,Qt=0;Qtf.valueOf():f.valueOf()"}),N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},N.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},N.eraName=function(){for(var f,b=this.localeData().eras(),S=0,O=b.length;Sthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},N.isLocal=function(){return!!this.isValid()&&!this._isUTC},N.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},N.isUtc=Rr,N.isUTC=Rr,N.zoneAbbr=function(){return this._isUTC?"UTC":""},N.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},N.dates=z("dates accessor is deprecated. Use date instead.",rr),N.months=z("months accessor is deprecated. Use month instead",te),N.years=z("years accessor is deprecated. Use year instead",xr),N.zone=z("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(f,b){return f!=null?(this.utcOffset(f=typeof f!="string"?-f:f,b),this):-this.utcOffset()}),N.isDSTShifted=z("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var f,b={};return P(b,this),(b=_r(b))._a?(f=(b._isUTC?m:me)(b._a),this._isDSTShifted=this.isValid()&&0-1}function decodeHtmlCharacters(t){return t.replace(htmlEntitiesRegex,function(e,r){return String.fromCharCode(r)})}function sanitizeUrl(t){var e=decodeHtmlCharacters(t||"").replace(ctrlCharactersRegex,"").trim();if(!e)return"about:blank";if(isRelativeUrlWithoutProtocol(e))return e;var r=e.match(urlSchemeRegex);if(!r)return e;var n=r[0];return invalidProtocolRegex.test(n)?"about:blank":e}sanitizeUrl_1=dist.sanitizeUrl=sanitizeUrl;function ascending(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function bisector(t){let e=t,r=t,n=t;t.length!==2&&(e=(l,u)=>t(l)-u,r=ascending,n=(l,u)=>ascending(t(l),u));function a(l,u,h=0,d=l.length){if(h>>1;n(l[g],u)<0?h=g+1:d=g}while(h>>1;n(l[g],u)<=0?h=g+1:d=g}while(hh&&e(l[g-1],u)>-e(l[g],u)?g-1:g}return{left:a,center:o,right:s}}function number$3(t){return t===null?NaN:+t}const ascendingBisect=bisector(ascending),bisectRight=ascendingBisect.right;bisector(number$3).center;const bisect=bisectRight;class InternMap extends Map{constructor(e,r=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,a]of e)this.set(n,a)}get(e){return super.get(intern_get(this,e))}has(e){return super.has(intern_get(this,e))}set(e,r){return super.set(intern_set(this,e),r)}delete(e){return super.delete(intern_delete(this,e))}}function intern_get({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function intern_set({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function intern_delete({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function keyof(t){return t!==null&&typeof t=="object"?t.valueOf():t}var e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function ticks(t,e,r){var n,a=-1,s,o,l;if(e=+e,t=+t,r=+r,t===e&&r>0)return[t];if((n=e0){let u=Math.round(t/l),h=Math.round(e/l);for(u*le&&--h,o=new Array(s=h-u+1);++ae&&--h,o=new Array(s=h-u+1);++a=0?(s>=e10?10:s>=e5?5:s>=e2?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(s>=e10?10:s>=e5?5:s>=e2?2:1)}function tickStep(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),a=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),s=n/a;return s>=e10?a*=10:s>=e5?a*=5:s>=e2&&(a*=2),e=n)&&(r=n);else{let n=-1;for(let a of t)(a=e(a,++n,t))!=null&&(r=a)&&(r=a)}return r}function min$2(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let a of t)(a=e(a,++n,t))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function identity$4(t){return t}var top=1,right=2,bottom=3,left=4,epsilon$2=1e-6;function translateX(t){return"translate("+t+",0)"}function translateY(t){return"translate(0,"+t+")"}function number$2(t){return e=>+t(e)}function center(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function entering(){return!this.__axis}function axis(t,e){var r=[],n=null,a=null,s=6,o=6,l=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=t===top||t===left?-1:1,d=t===left||t===right?"x":"y",g=t===top||t===bottom?translateX:translateY;function p(m){var T=n??(e.ticks?e.ticks.apply(e,r):e.domain()),L=a??(e.tickFormat?e.tickFormat.apply(e,r):identity$4),A=Math.max(s,0)+l,C=e.range(),I=+C[0]+u,M=+C[C.length-1]+u,P=(e.bandwidth?center:number$2)(e.copy(),u),H=m.selection?m.selection():m,q=H.selectAll(".domain").data([null]),U=H.selectAll(".tick").data(T,e).order(),z=U.exit(),R=U.enter().append("g").attr("class","tick"),$=U.select("line"),D=U.select("text");q=q.merge(q.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),U=U.merge(R),$=$.merge(R.append("line").attr("stroke","currentColor").attr(d+"2",h*s)),D=D.merge(R.append("text").attr("fill","currentColor").attr(d,h*A).attr("dy",t===top?"0em":t===bottom?"0.71em":"0.32em")),m!==H&&(q=q.transition(m),U=U.transition(m),$=$.transition(m),D=D.transition(m),z=z.transition(m).attr("opacity",epsilon$2).attr("transform",function(k){return isFinite(k=P(k))?g(k+u):this.getAttribute("transform")}),R.attr("opacity",epsilon$2).attr("transform",function(k){var B=this.parentNode.__axis;return g((B&&isFinite(B=B(k))?B:P(k))+u)})),z.remove(),q.attr("d",t===left||t===right?o?"M"+h*o+","+I+"H"+u+"V"+M+"H"+h*o:"M"+u+","+I+"V"+M:o?"M"+I+","+h*o+"V"+u+"H"+M+"V"+h*o:"M"+I+","+u+"H"+M),U.attr("opacity",1).attr("transform",function(k){return g(P(k)+u)}),$.attr(d+"2",h*s),D.attr(d,h*A).text(L),H.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===right?"start":t===left?"end":"middle"),H.each(function(){this.__axis=P})}return p.scale=function(m){return arguments.length?(e=m,p):e},p.ticks=function(){return r=Array.from(arguments),p},p.tickArguments=function(m){return arguments.length?(r=m==null?[]:Array.from(m),p):r.slice()},p.tickValues=function(m){return arguments.length?(n=m==null?null:Array.from(m),p):n&&n.slice()},p.tickFormat=function(m){return arguments.length?(a=m,p):a},p.tickSize=function(m){return arguments.length?(s=o=+m,p):s},p.tickSizeInner=function(m){return arguments.length?(s=+m,p):s},p.tickSizeOuter=function(m){return arguments.length?(o=+m,p):o},p.tickPadding=function(m){return arguments.length?(l=+m,p):l},p.offset=function(m){return arguments.length?(u=+m,p):u},p}function axisTop(t){return axis(top,t)}function axisBottom(t){return axis(bottom,t)}function selectAll(t){return typeof t=="string"?new Selection([document.querySelectorAll(t)],[document.documentElement]):new Selection([array$1(t)],root$2)}const radians=Math.PI/180,degrees=180/Math.PI,K=18,Xn=.96422,Yn=1,Zn=.82521,t0$1=4/29,t1$1=6/29,t2=3*t1$1*t1$1,t3=t1$1*t1$1*t1$1;function labConvert(t){if(t instanceof Lab)return new Lab(t.l,t.a,t.b,t.opacity);if(t instanceof Hcl)return hcl2lab(t);t instanceof Rgb||(t=rgbConvert(t));var e=rgb2lrgb(t.r),r=rgb2lrgb(t.g),n=rgb2lrgb(t.b),a=xyz2lab((.2225045*e+.7168786*r+.0606169*n)/Yn),s,o;return e===r&&r===n?s=o=a:(s=xyz2lab((.4360747*e+.3850649*r+.1430804*n)/Xn),o=xyz2lab((.0139322*e+.0971045*r+.7141733*n)/Zn)),new Lab(116*a-16,500*(s-a),200*(a-o),t.opacity)}function lab(t,e,r,n){return arguments.length===1?labConvert(t):new Lab(t,e,r,n??1)}function Lab(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}define(Lab,lab,extend$1(Color,{brighter:function(t){return new Lab(this.l+K*(t??1),this.a,this.b,this.opacity)},darker:function(t){return new Lab(this.l-K*(t??1),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=Xn*lab2xyz(e),t=Yn*lab2xyz(t),r=Zn*lab2xyz(r),new Rgb(lrgb2rgb(3.1338561*e-1.6168667*t-.4906146*r),lrgb2rgb(-.9787684*e+1.9161415*t+.033454*r),lrgb2rgb(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function xyz2lab(t){return t>t3?Math.pow(t,1/3):t/t2+t0$1}function lab2xyz(t){return t>t1$1?t*t*t:t2*(t-t0$1)}function lrgb2rgb(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function rgb2lrgb(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function hclConvert(t){if(t instanceof Hcl)return new Hcl(t.h,t.c,t.l,t.opacity);if(t instanceof Lab||(t=labConvert(t)),t.a===0&&t.b===0)return new Hcl(NaN,0epsilon$1)if(!(Math.abs(d*l-u*h)>epsilon$1)||!a)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var p=r-s,m=n-o,T=l*l+u*u,L=p*p+m*m,A=Math.sqrt(T),C=Math.sqrt(g),I=a*Math.tan((pi$1-Math.acos((T+g-L)/(2*A*C)))/2),M=I/C,P=I/A;Math.abs(M-1)>epsilon$1&&(this._+="L"+(t+M*h)+","+(e+M*d)),this._+="A"+a+","+a+",0,0,"+ +(d*p>h*m)+","+(this._x1=t+P*l)+","+(this._y1=e+P*u)}},arc:function(t,e,r,n,a,s){t=+t,e=+e,r=+r,s=!!s;var o=r*Math.cos(n),l=r*Math.sin(n),u=t+o,h=e+l,d=1^s,g=s?n-a:a-n;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+u+","+h:(Math.abs(this._x1-u)>epsilon$1||Math.abs(this._y1-h)>epsilon$1)&&(this._+="L"+u+","+h),r&&(g<0&&(g=g%tau$1+tau$1),g>tauEpsilon?this._+="A"+r+","+r+",0,1,"+d+","+(t-o)+","+(e-l)+"A"+r+","+r+",0,1,"+d+","+(this._x1=u)+","+(this._y1=h):g>epsilon$1&&(this._+="A"+r+","+r+",0,"+ +(g>=pi$1)+","+d+","+(this._x1=t+r*Math.cos(a))+","+(this._y1=e+r*Math.sin(a))))},rect:function(t,e,r,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};function responseText(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function text$1(t,e){return fetch(t,e).then(responseText)}function parser$c(t){return(e,r)=>text$1(e,r).then(n=>new DOMParser().parseFromString(n,t))}var svg$2=parser$c("image/svg+xml");function formatDecimal(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function formatDecimalParts(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function exponent(t){return t=formatDecimalParts(Math.abs(t)),t?t[1]:NaN}function formatGroup(t,e){return function(r,n){for(var a=r.length,s=[],o=0,l=t[0],u=0;a>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),s.push(r.substring(a-=l,a+l)),!((u+=l+1)>n));)l=t[o=(o+1)%t.length];return s.reverse().join(e)}}function formatNumerals(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(t){if(!(e=re.exec(t)))throw new Error("invalid format: "+t);var e;return new FormatSpecifier({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(t){t:for(var e=t.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(a+1):t}var prefixExponent;function formatPrefixAuto(t,e){var r=formatDecimalParts(t,e);if(!r)return t+"";var n=r[0],a=r[1],s=a-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return s===o?n:s>o?n+new Array(s-o+1).join("0"):s>0?n.slice(0,s)+"."+n.slice(s):"0."+new Array(1-s).join("0")+formatDecimalParts(t,Math.max(0,e+s-1))[0]}function formatRounded(t,e){var r=formatDecimalParts(t,e);if(!r)return t+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const formatTypes={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:formatDecimal,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>formatRounded(t*100,e),r:formatRounded,s:formatPrefixAuto,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function identity$3(t){return t}var map$2=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$1(t){var e=t.grouping===void 0||t.thousands===void 0?identity$3:formatGroup(map$2.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",a=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?identity$3:formatNumerals(map$2.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"−":t.minus+"",u=t.nan===void 0?"NaN":t.nan+"";function h(g){g=formatSpecifier(g);var p=g.fill,m=g.align,T=g.sign,L=g.symbol,A=g.zero,C=g.width,I=g.comma,M=g.precision,P=g.trim,H=g.type;H==="n"?(I=!0,H="g"):formatTypes[H]||(M===void 0&&(M=12),P=!0,H="g"),(A||p==="0"&&m==="=")&&(A=!0,p="0",m="=");var q=L==="$"?r:L==="#"&&/[boxX]/.test(H)?"0"+H.toLowerCase():"",U=L==="$"?n:/[%p]/.test(H)?o:"",z=formatTypes[H],R=/[defgprs%]/.test(H);M=M===void 0?6:/[gprs]/.test(H)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M));function $(D){var k=q,B=U,v,J,E;if(H==="c")B=z(D)+B,D="";else{D=+D;var ft=D<0||1/D<0;if(D=isNaN(D)?u:z(Math.abs(D),M),P&&(D=formatTrim(D)),ft&&+D==0&&T!=="+"&&(ft=!1),k=(ft?T==="("?T:l:T==="-"||T==="("?"":T)+k,B=(H==="s"?prefixes[8+prefixExponent/3]:"")+B+(ft&&T==="("?")":""),R){for(v=-1,J=D.length;++vE||E>57){B=(E===46?a+D.slice(v+1):D.slice(v))+B,D=D.slice(0,v);break}}}I&&!A&&(D=e(D,1/0));var Lt=k.length+D.length+B.length,Tt=Lt>1)+k+D+B+Tt.slice(Lt);break;default:D=Tt+k+D+B;break}return s(D)}return $.toString=function(){return g+""},$}function d(g,p){var m=h((g=formatSpecifier(g),g.type="f",g)),T=Math.max(-8,Math.min(8,Math.floor(exponent(p)/3)))*3,L=Math.pow(10,-T),A=prefixes[8+T/3];return function(C){return m(L*C)+A}}return{format:h,formatPrefix:d}}var locale$1,format$1,formatPrefix;defaultLocale$1({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale$1(t){return locale$1=formatLocale$1(t),format$1=locale$1.format,formatPrefix=locale$1.formatPrefix,locale$1}function precisionFixed(t){return Math.max(0,-exponent(Math.abs(t)))}function precisionPrefix(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(e)/3)))*3-exponent(Math.abs(t)))}function precisionRound(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,exponent(e)-exponent(t))+1}function initRange(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const implicit=Symbol("implicit");function ordinal(){var t=new InternMap,e=[],r=[],n=implicit;function a(s){let o=t.get(s);if(o===void 0){if(n!==implicit)return n;t.set(s,o=e.push(s)-1)}return r[o%r.length]}return a.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new InternMap;for(const o of s)t.has(o)||t.set(o,e.push(o)-1);return a},a.range=function(s){return arguments.length?(r=Array.from(s),a):r.slice()},a.unknown=function(s){return arguments.length?(n=s,a):n},a.copy=function(){return ordinal(e,r).unknown(n)},initRange.apply(a,arguments),a}function constants(t){return function(){return t}}function number$1(t){return+t}var unit=[0,1];function identity$2(t){return t}function normalize(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:constants(isNaN(e)?NaN:.5)}function clamper(t,e){var r;return t>e&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function bimap(t,e,r){var n=t[0],a=t[1],s=e[0],o=e[1];return a2?polymap:bimap,u=h=null,g}function g(p){return p==null||isNaN(p=+p)?s:(u||(u=l(t.map(n),e,r)))(n(o(p)))}return g.invert=function(p){return o(a((h||(h=l(e,t.map(n),interpolateNumber)))(p)))},g.domain=function(p){return arguments.length?(t=Array.from(p,number$1),d()):t.slice()},g.range=function(p){return arguments.length?(e=Array.from(p),d()):e.slice()},g.rangeRound=function(p){return e=Array.from(p),r=interpolateRound,d()},g.clamp=function(p){return arguments.length?(o=p?!0:identity$2,d()):o!==identity$2},g.interpolate=function(p){return arguments.length?(r=p,d()):r},g.unknown=function(p){return arguments.length?(s=p,g):s},function(p,m){return n=p,a=m,d()}}function continuous(){return transformer()(identity$2,identity$2)}function tickFormat(t,e,r,n){var a=tickStep(t,e,r),s;switch(n=formatSpecifier(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(s=precisionPrefix(a,o))&&(n.precision=s),formatPrefix(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(s=precisionRound(a,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=s-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(s=precisionFixed(a))&&(n.precision=s-(n.type==="%")*2);break}}return format$1(n)}function linearish(t){var e=t.domain;return t.ticks=function(r){var n=e();return ticks(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var a=e();return tickFormat(a[0],a[a.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),a=0,s=n.length-1,o=n[a],l=n[s],u,h,d=10;for(l0;){if(h=tickIncrement(o,l,r),h===u)return n[a]=o,n[s]=l,e(n);if(h>0)o=Math.floor(o/h)*h,l=Math.ceil(l/h)*h;else if(h<0)o=Math.ceil(o*h)/h,l=Math.floor(l*h)/h;else break;u=h}return t},t}function linear(){var t=continuous();return t.copy=function(){return copy$1(t,linear())},initRange.apply(t,arguments),linearish(t)}function nice(t,e){t=t.slice();var r=0,n=t.length-1,a=t[r],s=t[n],o;return s0))return u;do u.push(h=new Date(+s)),e(s,l),t(s);while(h=o)for(;t(o),!s(o);)o.setTime(o-1)},function(o,l){if(o>=o)if(l<0)for(;++l<=0;)for(;e(o,-1),!s(o););else for(;--l>=0;)for(;e(o,1),!s(o););})},r&&(a.count=function(s,o){return t0.setTime(+s),t1.setTime(+o),t(t0),t(t1),Math.floor(r(t0,t1))},a.every=function(s){return s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?a.filter(n?function(o){return n(o)%s===0}:function(o){return a.count(0,o)%s===0}):a}),a}var millisecond=newInterval(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});millisecond.every=function(t){return t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?newInterval(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):millisecond};const millisecond$1=millisecond;millisecond.range;const durationSecond=1e3,durationMinute=durationSecond*60,durationHour=durationMinute*60,durationDay=durationHour*24,durationWeek=durationDay*7,durationMonth=durationDay*30,durationYear=durationDay*365;var second=newInterval(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*durationSecond)},function(t,e){return(e-t)/durationSecond},function(t){return t.getUTCSeconds()});const utcSecond=second;second.range;var minute=newInterval(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*durationSecond)},function(t,e){t.setTime(+t+e*durationMinute)},function(t,e){return(e-t)/durationMinute},function(t){return t.getMinutes()});const timeMinute=minute;minute.range;var hour=newInterval(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*durationSecond-t.getMinutes()*durationMinute)},function(t,e){t.setTime(+t+e*durationHour)},function(t,e){return(e-t)/durationHour},function(t){return t.getHours()});const timeHour=hour;hour.range;var day=newInterval(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*durationMinute)/durationDay,t=>t.getDate()-1);const timeDay=day;day.range;function weekday(t){return newInterval(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+r*7)},function(e,r){return(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute)/durationWeek})}var sunday=weekday(0),monday=weekday(1),tuesday=weekday(2),wednesday=weekday(3),thursday=weekday(4),friday=weekday(5),saturday=weekday(6);sunday.range;monday.range;tuesday.range;wednesday.range;thursday.range;friday.range;saturday.range;var month=newInterval(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});const timeMonth=month;month.range;var year=newInterval(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});year.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:newInterval(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*t)})};const timeYear=year;year.range;var utcMinute=newInterval(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*durationMinute)},function(t,e){return(e-t)/durationMinute},function(t){return t.getUTCMinutes()});const utcMinute$1=utcMinute;utcMinute.range;var utcHour=newInterval(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*durationHour)},function(t,e){return(e-t)/durationHour},function(t){return t.getUTCHours()});const utcHour$1=utcHour;utcHour.range;var utcDay=newInterval(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/durationDay},function(t){return t.getUTCDate()-1});const utcDay$1=utcDay;utcDay.range;function utcWeekday(t){return newInterval(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+r*7)},function(e,r){return(r-e)/durationWeek})}var utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range;utcMonday.range;utcTuesday.range;utcWednesday.range;utcThursday.range;utcFriday.range;utcSaturday.range;var utcMonth=newInterval(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12},function(t){return t.getUTCMonth()});const utcMonth$1=utcMonth;utcMonth.range;var utcYear=newInterval(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});utcYear.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:newInterval(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})};const utcYear$1=utcYear;utcYear.range;function ticker(t,e,r,n,a,s){const o=[[utcSecond,1,durationSecond],[utcSecond,5,5*durationSecond],[utcSecond,15,15*durationSecond],[utcSecond,30,30*durationSecond],[s,1,durationMinute],[s,5,5*durationMinute],[s,15,15*durationMinute],[s,30,30*durationMinute],[a,1,durationHour],[a,3,3*durationHour],[a,6,6*durationHour],[a,12,12*durationHour],[n,1,durationDay],[n,2,2*durationDay],[r,1,durationWeek],[e,1,durationMonth],[e,3,3*durationMonth],[t,1,durationYear]];function l(h,d,g){const p=dA).right(o,p);if(m===o.length)return t.every(tickStep(h/durationYear,d/durationYear,g));if(m===0)return millisecond$1.every(Math.max(tickStep(h,d,g),1));const[T,L]=o[p/o[m-1][2]53)return null;"w"in Y||(Y.w=1),"Z"in Y?(it=utcDate(newDate(Y.y,0,1)),N=it.getUTCDay(),it=N>4||N===0?utcMonday.ceil(it):utcMonday(it),it=utcDay$1.offset(it,(Y.V-1)*7),Y.y=it.getUTCFullYear(),Y.m=it.getUTCMonth(),Y.d=it.getUTCDate()+(Y.w+6)%7):(it=localDate(newDate(Y.y,0,1)),N=it.getDay(),it=N>4||N===0?monday.ceil(it):monday(it),it=timeDay.offset(it,(Y.V-1)*7),Y.y=it.getFullYear(),Y.m=it.getMonth(),Y.d=it.getDate()+(Y.w+6)%7)}else("W"in Y||"U"in Y)&&("w"in Y||(Y.w="u"in Y?Y.u%7:"W"in Y?1:0),N="Z"in Y?utcDate(newDate(Y.y,0,1)).getUTCDay():localDate(newDate(Y.y,0,1)).getDay(),Y.m=0,Y.d="W"in Y?(Y.w+6)%7+Y.W*7-(N+5)%7:Y.w+Y.U*7-(N+6)%7);return"Z"in Y?(Y.H+=Y.Z/100|0,Y.M+=Y.Z%100,utcDate(Y)):localDate(Y)}}function z(Z,tt,W,Y){for(var F=0,it=tt.length,N=W.length,gt,j;F=N)return-1;if(gt=tt.charCodeAt(F++),gt===37){if(gt=tt.charAt(F++),j=H[gt in pads?tt.charAt(F++):gt],!j||(Y=j(Z,W,Y))<0)return-1}else if(gt!=W.charCodeAt(Y++))return-1}return Y}function R(Z,tt,W){var Y=h.exec(tt.slice(W));return Y?(Z.p=d.get(Y[0].toLowerCase()),W+Y[0].length):-1}function $(Z,tt,W){var Y=m.exec(tt.slice(W));return Y?(Z.w=T.get(Y[0].toLowerCase()),W+Y[0].length):-1}function D(Z,tt,W){var Y=g.exec(tt.slice(W));return Y?(Z.w=p.get(Y[0].toLowerCase()),W+Y[0].length):-1}function k(Z,tt,W){var Y=C.exec(tt.slice(W));return Y?(Z.m=I.get(Y[0].toLowerCase()),W+Y[0].length):-1}function B(Z,tt,W){var Y=L.exec(tt.slice(W));return Y?(Z.m=A.get(Y[0].toLowerCase()),W+Y[0].length):-1}function v(Z,tt,W){return z(Z,e,tt,W)}function J(Z,tt,W){return z(Z,r,tt,W)}function E(Z,tt,W){return z(Z,n,tt,W)}function ft(Z){return o[Z.getDay()]}function Lt(Z){return s[Z.getDay()]}function Tt(Z){return u[Z.getMonth()]}function Q(Z){return l[Z.getMonth()]}function ut(Z){return a[+(Z.getHours()>=12)]}function st(Z){return 1+~~(Z.getMonth()/3)}function ot(Z){return o[Z.getUTCDay()]}function dt(Z){return s[Z.getUTCDay()]}function xt(Z){return u[Z.getUTCMonth()]}function et(Z){return l[Z.getUTCMonth()]}function Nt(Z){return a[+(Z.getUTCHours()>=12)]}function G(Z){return 1+~~(Z.getUTCMonth()/3)}return{format:function(Z){var tt=q(Z+="",M);return tt.toString=function(){return Z},tt},parse:function(Z){var tt=U(Z+="",!1);return tt.toString=function(){return Z},tt},utcFormat:function(Z){var tt=q(Z+="",P);return tt.toString=function(){return Z},tt},utcParse:function(Z){var tt=U(Z+="",!0);return tt.toString=function(){return Z},tt}}}var pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad(t,e,r){var n=t<0?"-":"",a=(n?-t:t)+"",s=a.length;return n+(s[e.toLowerCase(),r]))}function parseWeekdayNumberSunday(t,e,r){var n=numberRe.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function parseWeekdayNumberMonday(t,e,r){var n=numberRe.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function parseWeekNumberSunday(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function parseWeekNumberISO(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function parseWeekNumberMonday(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function parseFullYear(t,e,r){var n=numberRe.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function parseYear(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function parseZone(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function parseQuarter(t,e,r){var n=numberRe.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function parseMonthNumber(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function parseDayOfMonth(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function parseDayOfYear(t,e,r){var n=numberRe.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function parseHour24(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function parseMinutes(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function parseSeconds(t,e,r){var n=numberRe.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function parseMilliseconds(t,e,r){var n=numberRe.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function parseMicroseconds(t,e,r){var n=numberRe.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function parseLiteralPercent(t,e,r){var n=percentRe.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function parseUnixTimestamp(t,e,r){var n=numberRe.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function parseUnixTimestampSeconds(t,e,r){var n=numberRe.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function formatDayOfMonth(t,e){return pad(t.getDate(),e,2)}function formatHour24(t,e){return pad(t.getHours(),e,2)}function formatHour12(t,e){return pad(t.getHours()%12||12,e,2)}function formatDayOfYear(t,e){return pad(1+timeDay.count(timeYear(t),t),e,3)}function formatMilliseconds(t,e){return pad(t.getMilliseconds(),e,3)}function formatMicroseconds(t,e){return formatMilliseconds(t,e)+"000"}function formatMonthNumber(t,e){return pad(t.getMonth()+1,e,2)}function formatMinutes(t,e){return pad(t.getMinutes(),e,2)}function formatSeconds(t,e){return pad(t.getSeconds(),e,2)}function formatWeekdayNumberMonday(t){var e=t.getDay();return e===0?7:e}function formatWeekNumberSunday(t,e){return pad(sunday.count(timeYear(t)-1,t),e,2)}function dISO(t){var e=t.getDay();return e>=4||e===0?thursday(t):thursday.ceil(t)}function formatWeekNumberISO(t,e){return t=dISO(t),pad(thursday.count(timeYear(t),t)+(timeYear(t).getDay()===4),e,2)}function formatWeekdayNumberSunday(t){return t.getDay()}function formatWeekNumberMonday(t,e){return pad(monday.count(timeYear(t)-1,t),e,2)}function formatYear(t,e){return pad(t.getFullYear()%100,e,2)}function formatYearISO(t,e){return t=dISO(t),pad(t.getFullYear()%100,e,2)}function formatFullYear(t,e){return pad(t.getFullYear()%1e4,e,4)}function formatFullYearISO(t,e){var r=t.getDay();return t=r>=4||r===0?thursday(t):thursday.ceil(t),pad(t.getFullYear()%1e4,e,4)}function formatZone(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+pad(e/60|0,"0",2)+pad(e%60,"0",2)}function formatUTCDayOfMonth(t,e){return pad(t.getUTCDate(),e,2)}function formatUTCHour24(t,e){return pad(t.getUTCHours(),e,2)}function formatUTCHour12(t,e){return pad(t.getUTCHours()%12||12,e,2)}function formatUTCDayOfYear(t,e){return pad(1+utcDay$1.count(utcYear$1(t),t),e,3)}function formatUTCMilliseconds(t,e){return pad(t.getUTCMilliseconds(),e,3)}function formatUTCMicroseconds(t,e){return formatUTCMilliseconds(t,e)+"000"}function formatUTCMonthNumber(t,e){return pad(t.getUTCMonth()+1,e,2)}function formatUTCMinutes(t,e){return pad(t.getUTCMinutes(),e,2)}function formatUTCSeconds(t,e){return pad(t.getUTCSeconds(),e,2)}function formatUTCWeekdayNumberMonday(t){var e=t.getUTCDay();return e===0?7:e}function formatUTCWeekNumberSunday(t,e){return pad(utcSunday.count(utcYear$1(t)-1,t),e,2)}function UTCdISO(t){var e=t.getUTCDay();return e>=4||e===0?utcThursday(t):utcThursday.ceil(t)}function formatUTCWeekNumberISO(t,e){return t=UTCdISO(t),pad(utcThursday.count(utcYear$1(t),t)+(utcYear$1(t).getUTCDay()===4),e,2)}function formatUTCWeekdayNumberSunday(t){return t.getUTCDay()}function formatUTCWeekNumberMonday(t,e){return pad(utcMonday.count(utcYear$1(t)-1,t),e,2)}function formatUTCYear(t,e){return pad(t.getUTCFullYear()%100,e,2)}function formatUTCYearISO(t,e){return t=UTCdISO(t),pad(t.getUTCFullYear()%100,e,2)}function formatUTCFullYear(t,e){return pad(t.getUTCFullYear()%1e4,e,4)}function formatUTCFullYearISO(t,e){var r=t.getUTCDay();return t=r>=4||r===0?utcThursday(t):utcThursday.ceil(t),pad(t.getUTCFullYear()%1e4,e,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(t){return+t}function formatUnixTimestampSeconds(t){return Math.floor(+t/1e3)}var locale,timeFormat;defaultLocale({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function defaultLocale(t){return locale=formatLocale(t),timeFormat=locale.format,locale.parse,locale.utcFormat,locale.utcParse,locale}function date(t){return new Date(t)}function number(t){return t instanceof Date?+t:+new Date(+t)}function calendar(t,e,r,n,a,s,o,l,u,h){var d=continuous(),g=d.invert,p=d.domain,m=h(".%L"),T=h(":%S"),L=h("%I:%M"),A=h("%I %p"),C=h("%a %d"),I=h("%b %d"),M=h("%B"),P=h("%Y");function H(q){return(u(q)1?0:t<-1?pi:Math.acos(t)}function asin(t){return t>=1?halfPi:t<=-1?-halfPi:Math.asin(t)}function arcInnerRadius(t){return t.innerRadius}function arcOuterRadius(t){return t.outerRadius}function arcStartAngle(t){return t.startAngle}function arcEndAngle(t){return t.endAngle}function arcPadAngle(t){return t&&t.padAngle}function intersect$1(t,e,r,n,a,s,o,l){var u=r-t,h=n-e,d=o-a,g=l-s,p=g*u-d*h;if(!(p*pv*v+J*J&&(z=$,R=D),{cx:z,cy:R,x01:-d,y01:-g,x11:z*(a/H-1),y11:R*(a/H-1)}}function arc(){var t=arcInnerRadius,e=arcOuterRadius,r=constant$1(0),n=null,a=arcStartAngle,s=arcEndAngle,o=arcPadAngle,l=null;function u(){var h,d,g=+t.apply(this,arguments),p=+e.apply(this,arguments),m=a.apply(this,arguments)-halfPi,T=s.apply(this,arguments)-halfPi,L=abs$1(T-m),A=T>m;if(l||(l=h=path()),pepsilon))l.moveTo(0,0);else if(L>tau-epsilon)l.moveTo(p*cos(m),p*sin(m)),l.arc(0,0,p,m,T,!A),g>epsilon&&(l.moveTo(g*cos(T),g*sin(T)),l.arc(0,0,g,T,m,A));else{var C=m,I=T,M=m,P=T,H=L,q=L,U=o.apply(this,arguments)/2,z=U>epsilon&&(n?+n.apply(this,arguments):sqrt(g*g+p*p)),R=min$1(abs$1(p-g)/2,+r.apply(this,arguments)),$=R,D=R,k,B;if(z>epsilon){var v=asin(z/g*sin(U)),J=asin(z/p*sin(U));(H-=v*2)>epsilon?(v*=A?1:-1,M+=v,P-=v):(H=0,M=P=(m+T)/2),(q-=J*2)>epsilon?(J*=A?1:-1,C+=J,I-=J):(q=0,C=I=(m+T)/2)}var E=p*cos(C),ft=p*sin(C),Lt=g*cos(P),Tt=g*sin(P);if(R>epsilon){var Q=p*cos(I),ut=p*sin(I),st=g*cos(M),ot=g*sin(M),dt;if(Lepsilon?D>epsilon?(k=cornerTangents(st,ot,E,ft,p,D,A),B=cornerTangents(Q,ut,Lt,Tt,p,D,A),l.moveTo(k.cx+k.x01,k.cy+k.y01),Depsilon)||!(H>epsilon)?l.lineTo(Lt,Tt):$>epsilon?(k=cornerTangents(Lt,Tt,Q,ut,g,-$,A),B=cornerTangents(E,ft,st,ot,g,-$,A),l.lineTo(k.cx+k.x01,k.cy+k.y01),$t?1:e>=t?0:NaN}function identity$1(t){return t}function pie(){var t=identity$1,e=descending,r=null,n=constant$1(0),a=constant$1(tau),s=constant$1(0);function o(l){var u,h=(l=array(l)).length,d,g,p=0,m=new Array(h),T=new Array(h),L=+n.apply(this,arguments),A=Math.min(tau,Math.max(-tau,a.apply(this,arguments)-L)),C,I=Math.min(Math.abs(A)/h,s.apply(this,arguments)),M=I*(A<0?-1:1),P;for(u=0;u0&&(p+=P);for(e!=null?m.sort(function(H,q){return e(T[H],T[q])}):r!=null&&m.sort(function(H,q){return r(l[H],l[q])}),u=0,g=p?(A-h*M)/p:0;u0?P*g:0)+M,T[d]={data:l[d],index:u,value:P,startAngle:L,endAngle:C,padAngle:I};return T}return o.value=function(l){return arguments.length?(t=typeof l=="function"?l:constant$1(+l),o):t},o.sortValues=function(l){return arguments.length?(e=l,r=null,o):e},o.sort=function(l){return arguments.length?(r=l,e=null,o):r},o.startAngle=function(l){return arguments.length?(n=typeof l=="function"?l:constant$1(+l),o):n},o.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:constant$1(+l),o):a},o.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:constant$1(+l),o):s},o}function noop$1(){}function point$2(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Basis(t){this._context=t}Basis.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$2(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$2(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function curveBasis(t){return new Basis(t)}function BasisClosed(t){this._context=t}BasisClosed.prototype={areaStart:noop$1,areaEnd:noop$1,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:point$2(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function curveBasisClosed(t){return new BasisClosed(t)}function BasisOpen(t){this._context=t}BasisOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:point$2(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function curveBasisOpen(t){return new BasisOpen(t)}function LinearClosed(t){this._context=t}LinearClosed.prototype={areaStart:noop$1,areaEnd:noop$1,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function curveLinearClosed(t){return new LinearClosed(t)}function sign(t){return t<0?-1:1}function slope3(t,e,r){var n=t._x1-t._x0,a=e-t._x1,s=(t._y1-t._y0)/(n||a<0&&-0),o=(r-t._y1)/(a||n<0&&-0),l=(s*a+o*n)/(n+a);return(sign(s)+sign(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(l))||0}function slope2(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function point$1(t,e,r){var n=t._x0,a=t._y0,s=t._x1,o=t._y1,l=(s-n)/3;t._context.bezierCurveTo(n+l,a+l*e,s-l,o-l*r,s,o)}function MonotoneX(t){this._context=t}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point$1(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,point$1(this,slope2(this,r=slope3(this,t,e)),r);break;default:point$1(this,this._t0,r=slope3(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function MonotoneY(t){this._context=new ReflectContext(t)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(t,e){MonotoneX.prototype.point.call(this,e,t)};function ReflectContext(t){this._context=t}ReflectContext.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,a,s){this._context.bezierCurveTo(e,t,n,r,s,a)}};function monotoneX(t){return new MonotoneX(t)}function monotoneY(t){return new MonotoneY(t)}function Natural(t){this._context=t}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var n=controlPoints(t),a=controlPoints(e),s=0,o=1;o=0;--e)a[e]=(o[e]-a[e+1])/s[e];for(s[r-1]=(t[r]+a[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function curveStep(t){return new Step(t,.5)}function stepBefore(t){return new Step(t,0)}function stepAfter(t){return new Step(t,1)}function _typeof(t){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(t)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},_setPrototypeOf(t,e)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(t,e,r){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(a,s,o){var l=[null];l.push.apply(l,s);var u=Function.bind.apply(a,l),h=new u;return o&&_setPrototypeOf(h,o.prototype),h},_construct.apply(null,arguments)}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _iterableToArray(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _unsupportedIterableToArray(t,e){if(t){if(typeof t=="string")return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(t,e)}}function _arrayLikeToArray(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1?r-1:0),a=1;a/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),getGlobal=function t(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function t(e,r){if(_typeof(e)!=="object"||typeof e.createPolicy!="function")return null;var n=null,a="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(a)&&(n=r.currentScript.getAttribute(a));var s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:function(l){return l},createScriptURL:function(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function createDOMPurify(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal(),e=function(rt){return createDOMPurify(rt)};if(e.version="2.4.1",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var r=t.document,n=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,o=t.Node,l=t.Element,u=t.NodeFilter,h=t.NamedNodeMap,d=h===void 0?t.NamedNodeMap||t.MozNamedAttrMap:h,g=t.HTMLFormElement,p=t.DOMParser,m=t.trustedTypes,T=l.prototype,L=lookupGetter(T,"cloneNode"),A=lookupGetter(T,"nextSibling"),C=lookupGetter(T,"childNodes"),I=lookupGetter(T,"parentNode");if(typeof s=="function"){var M=n.createElement("template");M.content&&M.content.ownerDocument&&(n=M.content.ownerDocument)}var P=_createTrustedTypesPolicy(m,r),H=P?P.createHTML(""):"",q=n,U=q.implementation,z=q.createNodeIterator,R=q.createDocumentFragment,$=q.getElementsByTagName,D=r.importNode,k={};try{k=clone$2(n).documentMode?n.documentMode:{}}catch{}var B={};e.isSupported=typeof I=="function"&&U&&typeof U.createHTMLDocument<"u"&&k!==9;var v=MUSTACHE_EXPR,J=ERB_EXPR,E=TMPLIT_EXPR,ft=DATA_ATTR,Lt=ARIA_ATTR,Tt=IS_SCRIPT_OR_DATA,Q=ATTR_WHITESPACE,ut=IS_ALLOWED_URI,st=null,ot=addToSet({},[].concat(_toConsumableArray(html$1),_toConsumableArray(svg$1),_toConsumableArray(svgFilters),_toConsumableArray(mathMl$1),_toConsumableArray(text))),dt=null,xt=addToSet({},[].concat(_toConsumableArray(html),_toConsumableArray(svg),_toConsumableArray(mathMl),_toConsumableArray(xml))),et=Object.seal(Object.create(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}})),Nt=null,G=null,Z=!0,tt=!0,W=!1,Y=!1,F=!1,it=!1,N=!1,gt=!1,j=!1,Ft=!1,at=!0,Dt=!1,kt="user-content-",_t=!0,St=!1,Et={},yt=null,ct=addToSet({},["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"]),ne=null,jt=addToSet({},["audio","video","img","source","image","track"]),Wt=null,qt=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ht="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",zt="http://www.w3.org/1999/xhtml",Pt=zt,Mt=!1,wt=null,mt=addToSet({},[Ht,ge,zt],stringToString),It,vt=["application/xhtml+xml","text/html"],Ut="text/html",ht,Jt=null,pt=n.createElement("form"),Kt=function(rt){return rt instanceof RegExp||rt instanceof Function},oe=function(rt){Jt&&Jt===rt||((!rt||_typeof(rt)!=="object")&&(rt={}),rt=clone$2(rt),It=vt.indexOf(rt.PARSER_MEDIA_TYPE)===-1?It=Ut:It=rt.PARSER_MEDIA_TYPE,ht=It==="application/xhtml+xml"?stringToString:stringToLowerCase,st="ALLOWED_TAGS"in rt?addToSet({},rt.ALLOWED_TAGS,ht):ot,dt="ALLOWED_ATTR"in rt?addToSet({},rt.ALLOWED_ATTR,ht):xt,wt="ALLOWED_NAMESPACES"in rt?addToSet({},rt.ALLOWED_NAMESPACES,stringToString):mt,Wt="ADD_URI_SAFE_ATTR"in rt?addToSet(clone$2(qt),rt.ADD_URI_SAFE_ATTR,ht):qt,ne="ADD_DATA_URI_TAGS"in rt?addToSet(clone$2(jt),rt.ADD_DATA_URI_TAGS,ht):jt,yt="FORBID_CONTENTS"in rt?addToSet({},rt.FORBID_CONTENTS,ht):ct,Nt="FORBID_TAGS"in rt?addToSet({},rt.FORBID_TAGS,ht):{},G="FORBID_ATTR"in rt?addToSet({},rt.FORBID_ATTR,ht):{},Et="USE_PROFILES"in rt?rt.USE_PROFILES:!1,Z=rt.ALLOW_ARIA_ATTR!==!1,tt=rt.ALLOW_DATA_ATTR!==!1,W=rt.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=rt.SAFE_FOR_TEMPLATES||!1,F=rt.WHOLE_DOCUMENT||!1,gt=rt.RETURN_DOM||!1,j=rt.RETURN_DOM_FRAGMENT||!1,Ft=rt.RETURN_TRUSTED_TYPE||!1,N=rt.FORCE_BODY||!1,at=rt.SANITIZE_DOM!==!1,Dt=rt.SANITIZE_NAMED_PROPS||!1,_t=rt.KEEP_CONTENT!==!1,St=rt.IN_PLACE||!1,ut=rt.ALLOWED_URI_REGEXP||ut,Pt=rt.NAMESPACE||zt,rt.CUSTOM_ELEMENT_HANDLING&&Kt(rt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(et.tagNameCheck=rt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),rt.CUSTOM_ELEMENT_HANDLING&&Kt(rt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(et.attributeNameCheck=rt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),rt.CUSTOM_ELEMENT_HANDLING&&typeof rt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(et.allowCustomizedBuiltInElements=rt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(tt=!1),j&&(gt=!0),Et&&(st=addToSet({},_toConsumableArray(text)),dt=[],Et.html===!0&&(addToSet(st,html$1),addToSet(dt,html)),Et.svg===!0&&(addToSet(st,svg$1),addToSet(dt,svg),addToSet(dt,xml)),Et.svgFilters===!0&&(addToSet(st,svgFilters),addToSet(dt,svg),addToSet(dt,xml)),Et.mathMl===!0&&(addToSet(st,mathMl$1),addToSet(dt,mathMl),addToSet(dt,xml))),rt.ADD_TAGS&&(st===ot&&(st=clone$2(st)),addToSet(st,rt.ADD_TAGS,ht)),rt.ADD_ATTR&&(dt===xt&&(dt=clone$2(dt)),addToSet(dt,rt.ADD_ATTR,ht)),rt.ADD_URI_SAFE_ATTR&&addToSet(Wt,rt.ADD_URI_SAFE_ATTR,ht),rt.FORBID_CONTENTS&&(yt===ct&&(yt=clone$2(yt)),addToSet(yt,rt.FORBID_CONTENTS,ht)),_t&&(st["#text"]=!0),F&&addToSet(st,["html","head","body"]),st.table&&(addToSet(st,["tbody"]),delete Nt.tbody),freeze&&freeze(rt),Jt=rt)},ue=addToSet({},["mi","mo","mn","ms","mtext"]),he=addToSet({},["foreignobject","desc","title","annotation-xml"]),fe=addToSet({},["title","style","font","a","script"]),Gt=addToSet({},svg$1);addToSet(Gt,svgFilters),addToSet(Gt,svgDisallowed);var te=addToSet({},mathMl$1);addToSet(te,mathMlDisallowed);var ce=function(rt){var At=I(rt);(!At||!At.tagName)&&(At={namespaceURI:Pt,tagName:"template"});var Rt=stringToLowerCase(rt.tagName),le=stringToLowerCase(At.tagName);return wt[rt.namespaceURI]?rt.namespaceURI===ge?At.namespaceURI===zt?Rt==="svg":At.namespaceURI===Ht?Rt==="svg"&&(le==="annotation-xml"||ue[le]):Boolean(Gt[Rt]):rt.namespaceURI===Ht?At.namespaceURI===zt?Rt==="math":At.namespaceURI===ge?Rt==="math"&&he[le]:Boolean(te[Rt]):rt.namespaceURI===zt?At.namespaceURI===ge&&!he[le]||At.namespaceURI===Ht&&!ue[le]?!1:!te[Rt]&&(fe[Rt]||!Gt[Rt]):!!(It==="application/xhtml+xml"&&wt[rt.namespaceURI]):!1},Zt=function(rt){arrayPush$1(e.removed,{element:rt});try{rt.parentNode.removeChild(rt)}catch{try{rt.outerHTML=H}catch{rt.remove()}}},Ue=function(rt,At){try{arrayPush$1(e.removed,{attribute:At.getAttributeNode(rt),from:At})}catch{arrayPush$1(e.removed,{attribute:null,from:At})}if(At.removeAttribute(rt),rt==="is"&&!dt[rt])if(gt||j)try{Zt(At)}catch{}else try{At.setAttribute(rt,"")}catch{}},Be=function(rt){var At,Rt;if(N)rt=""+rt;else{var le=stringMatch(rt,/^[\r\n\t ]+/);Rt=le&&le[0]}It==="application/xhtml+xml"&&Pt===zt&&(rt=''+rt+"");var be=P?P.createHTML(rt):rt;if(Pt===zt)try{At=new p().parseFromString(be,It)}catch{}if(!At||!At.documentElement){At=U.createDocument(Pt,"template",null);try{At.documentElement.innerHTML=Mt?"":be}catch{}}var ye=At.body||At.documentElement;return rt&&Rt&&ye.insertBefore(n.createTextNode(Rt),ye.childNodes[0]||null),Pt===zt?$.call(At,F?"html":"body")[0]:F?At.documentElement:ye},_e=function(rt){return z.call(rt.ownerDocument||rt,rt,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},ee=function(rt){return rt instanceof g&&(typeof rt.nodeName!="string"||typeof rt.textContent!="string"||typeof rt.removeChild!="function"||!(rt.attributes instanceof d)||typeof rt.removeAttribute!="function"||typeof rt.setAttribute!="function"||typeof rt.namespaceURI!="string"||typeof rt.insertBefore!="function"||typeof rt.hasChildNodes!="function")},Te=function(rt){return _typeof(o)==="object"?rt instanceof o:rt&&_typeof(rt)==="object"&&typeof rt.nodeType=="number"&&typeof rt.nodeName=="string"},we=function(rt,At,Rt){B[rt]&&arrayForEach(B[rt],function(le){le.call(e,At,Rt,Jt)})},Ee=function(rt){var At;if(we("beforeSanitizeElements",rt,null),ee(rt)||regExpTest(/[\u0080-\uFFFF]/,rt.nodeName))return Zt(rt),!0;var Rt=ht(rt.nodeName);if(we("uponSanitizeElement",rt,{tagName:Rt,allowedTags:st}),rt.hasChildNodes()&&!Te(rt.firstElementChild)&&(!Te(rt.content)||!Te(rt.content.firstElementChild))&®ExpTest(/<[/\w]/g,rt.innerHTML)&®ExpTest(/<[/\w]/g,rt.textContent)||Rt==="select"&®ExpTest(/