diff --git a/angular.json b/angular.json
index b9717a9..b730d0e 100644
--- a/angular.json
+++ b/angular.json
@@ -1,152 +1,134 @@
{
- "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
- "version": 1,
- "newProjectRoot": "projects",
- "projects": {
- "taskplanner": {
- "root": "",
- "sourceRoot": "src",
- "projectType": "application",
- "prefix": "app",
- "schematics": {
- "@schematics/angular:component": {
- "style": "scss"
- }
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
+ "version": 1,
+ "newProjectRoot": "projects",
+ "projects": {
+ "taskplanner": {
+ "root": "",
+ "sourceRoot": "src",
+ "projectType": "application",
+ "prefix": "app",
+ "schematics": {
+ "@schematics/angular:component": {
+ "style": "scss"
+ }
+ },
+ "architect": {
+ "build": {
+ "builder": "@angular/build:application",
+ "options": {
+ "outputPath": {
+ "base": "docs",
+ "browser": ""
},
- "architect": {
- "build": {
- "builder": "@angular-devkit/build-angular:browser",
- "options": {
- "outputPath": "docs",
- "index": "src/index.html",
- "main": "src/main.ts",
- "polyfills": "src/polyfills.ts",
- "tsConfig": "tsconfig.app.json",
- "aot": true,
- "stylePreprocessorOptions": {
- "includePaths": [
- "node_modules"
- ]
- },
- "assets": [
- "src/favicon.ico",
- "src/assets"
- ],
- "styles": [
- "src/styles.scss"
- ],
- "scripts": ["./node_modules/hammerjs/hammer.min.js"],
- "buildOptimizer": false,
- "optimization": false,
- "vendorChunk": true,
- "extractLicenses": false,
- "sourceMap": true,
- "namedChunks": true
- },
- "configurations": {
- "es5": {
- "tsConfig": "tsconfig-es5.app.json"
- },
- "production": {
- "fileReplacements": [
- {
- "replace": "src/environments/environment.ts",
- "with": "src/environments/environment.prod.ts"
- }
- ],
- "optimization": true,
- "outputHashing": "all",
- "sourceMap": false,
- "namedChunks": false,
- "extractLicenses": true,
- "vendorChunk": false,
- "buildOptimizer": true,
- "budgets": [
- {
- "type": "initial",
- "maximumWarning": "2mb",
- "maximumError": "5mb"
- },
- {
- "type": "anyComponentStyle",
- "maximumWarning": "6kb",
- "maximumError": "10kb"
- }
- ]
- }
- }
- },
- "serve": {
- "builder": "@angular-devkit/build-angular:dev-server",
- "options": {
- "buildTarget": "taskplanner:build"
- },
- "configurations": {
- "production": {
- "buildTarget": "taskplanner:build:production"
- },
- "es5": {
- "buildTarget": "taskplanner:build:es5"
- }
- }
- },
- "extract-i18n": {
- "builder": "@angular-devkit/build-angular:extract-i18n",
- "options": {
- "buildTarget": "taskplanner:build"
- }
- },
- "test": {
- "builder": "@angular-devkit/build-angular:karma",
- "options": {
- "main": "src/test.ts",
- "polyfills": "src/polyfills.ts",
- "tsConfig": "tsconfig.spec.json",
- "karmaConfig": "karma.conf.js",
- "styles": [
- "src/styles.scss"
- ],
- "scripts": ["./node_modules/hammerjs/hammer.min.js"],
- "assets": [
- "src/favicon.ico",
- "src/assets"
- ],
- "stylePreprocessorOptions": {
- "includePaths": [
- "node_modules"
- ]
- }
- }
- },
- "lint": {
- "builder": "@angular-devkit/build-angular:tslint",
- "options": {
- "tsConfig": [
- "tsconfig.app.json",
- "tsconfig.spec.json",
- "e2e/tsconfig.json"
- ],
- "exclude": [
- "**/node_modules/**"
- ]
- }
+ "index": "src/index.html",
+ "tsConfig": "tsconfig.app.json",
+ "stylePreprocessorOptions": {
+ "includePaths": [
+ "node_modules"
+ ]
+ },
+ "assets": [
+ "src/favicon.ico",
+ "src/assets"
+ ],
+ "styles": [
+ "src/styles.scss"
+ ],
+ "scripts": [],
+ "optimization": false,
+ "extractLicenses": false,
+ "sourceMap": true,
+ "namedChunks": true,
+ "browser": "src/main.ts"
+ },
+ "configurations": {
+ "production": {
+ "fileReplacements": [
+ {
+ "replace": "src/environments/environment.ts",
+ "with": "src/environments/environment.prod.ts"
+ }
+ ],
+ "optimization": true,
+ "outputHashing": "all",
+ "sourceMap": false,
+ "namedChunks": false,
+ "extractLicenses": true,
+ "budgets": [
+ {
+ "type": "initial",
+ "maximumWarning": "2mb",
+ "maximumError": "5mb"
},
- "e2e": {
- "builder": "@angular-devkit/build-angular:protractor",
- "options": {
- "protractorConfig": "e2e/protractor.conf.js",
- "devServerTarget": "taskplanner:serve"
- },
- "configurations": {
- "production": {
- "devServerTarget": "taskplanner:serve:production"
- }
- }
+ {
+ "type": "anyComponentStyle",
+ "maximumWarning": "6kb",
+ "maximumError": "10kb"
}
+ ]
}
+ }
+ },
+ "serve": {
+ "builder": "@angular/build:dev-server",
+ "options": {
+ "buildTarget": "taskplanner:build"
+ },
+ "configurations": {
+ "production": {
+ "buildTarget": "taskplanner:build:production"
+ }
+ }
+ },
+ "extract-i18n": {
+ "builder": "@angular/build:extract-i18n",
+ "options": {
+ "buildTarget": "taskplanner:build"
+ }
+ },
+ "lint": {
+ "builder": "@angular-eslint/builder:lint",
+ "options": {
+ "lintFilePatterns": [
+ "src/**/*.ts",
+ "src/**/*.html"
+ ]
+ }
}
+ }
+ }
+ },
+ "cli": {
+ "analytics": "4de0cfdb-0644-4d05-980f-3e1a8d9fb31c",
+ "schematicCollections": [
+ "angular-eslint"
+ ]
+ },
+ "schematics": {
+ "@schematics/angular:component": {
+ "type": "component"
+ },
+ "@schematics/angular:directive": {
+ "type": "directive"
+ },
+ "@schematics/angular:service": {
+ "type": "service"
+ },
+ "@schematics/angular:guard": {
+ "typeSeparator": "."
+ },
+ "@schematics/angular:interceptor": {
+ "typeSeparator": "."
+ },
+ "@schematics/angular:module": {
+ "typeSeparator": "."
+ },
+ "@schematics/angular:pipe": {
+ "typeSeparator": "."
},
- "cli": {
- "analytics": "4de0cfdb-0644-4d05-980f-3e1a8d9fb31c"
+ "@schematics/angular:resolver": {
+ "typeSeparator": "."
}
-}
\ No newline at end of file
+ }
+}
diff --git a/browserslist b/browserslist
index bd82888..a157d30 100644
--- a/browserslist
+++ b/browserslist
@@ -10,4 +10,5 @@ not > 0.5%
not last 2 versions
not dead
not IE 9-11
-Safari >=15
\ No newline at end of file
+# Angular 22.1.5 targets "baseline widely available", which bottoms out at Safari 17.2.
+Safari >= 17.2
diff --git a/docs/3rdpartylicenses.txt b/docs/3rdpartylicenses.txt
index 3ed5e1f..effe086 100644
--- a/docs/3rdpartylicenses.txt
+++ b/docs/3rdpartylicenses.txt
@@ -1,26 +1,11 @@
-@angular/animations
-MIT
-@angular/common
-MIT
+--------------------------------------------------------------------------------
+Package: fflate
+License: "MIT"
-@angular/core
-MIT
-
-@angular/forms
-MIT
-
-@angular/platform-browser
-MIT
-
-@angular/router
-MIT
-
-@igniteui/material-icons-extended
-MIT
MIT License
-Copyright (c) 2020 Infragistics
+Copyright (c) 2026 Arjun Barrett
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -39,16 +24,13 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+--------------------------------------------------------------------------------
+Package: @angular/core
+License: "MIT"
+The MIT License
-@infragistics/igniteui-angular
-SEE LICENSE IN LICENSE
-
-fflate
-MIT
-MIT License
-
-Copyright (c) 2023 Arjun Barrett
+Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -57,70 +39,21 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
-lodash-es
-MIT
-Copyright OpenJS Foundation and other contributors
-
-Based on Underscore.js, copyright Jeremy Ashkenas,
-DocumentCloud and Investigative Reporters & Editors
-
-This software consists of voluntary contributions made by many
-individuals. For exact contribution history, see the revision history
-available at https://github.com/lodash/lodash
-
-The following license applies to all parts of this software except as
-documented below:
-
-====
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-====
-
-Copyright and related rights for sample code are waived via CC0. Sample
-code is defined as all source code displayed within the prose of the
-documentation.
-
-CC0: http://creativecommons.org/publicdomain/zero/1.0/
-
-====
-
-Files located in the node_modules and vendor directories are externally
-maintained libraries used by this software which have their own
-licenses; we recommend you read them, as their terms may differ from the
-terms above.
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+--------------------------------------------------------------------------------
+Package: rxjs
+License: "Apache-2.0"
-rxjs
-Apache-2.0
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
@@ -324,12 +257,437 @@ Apache-2.0
limitations under the License.
+--------------------------------------------------------------------------------
+Package: tslib
+License: "0BSD"
+
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+--------------------------------------------------------------------------------
+Package: @angular/common
+License: "MIT"
+
+The MIT License
+
+Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+--------------------------------------------------------------------------------
+Package: @angular/forms
+License: "MIT"
+
+The MIT License
+
+Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+--------------------------------------------------------------------------------
+Package: lodash-es
+License: "MIT"
+
+Copyright OpenJS Foundation and other contributors
+
+Based on Underscore.js, copyright Jeremy Ashkenas,
+DocumentCloud and Investigative Reporters & Editors
+
+This software consists of voluntary contributions made by many
+individuals. For exact contribution history, see the revision history
+available at https://github.com/lodash/lodash
+
+The following license applies to all parts of this software except as
+documented below:
+
+====
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+====
+
+Copyright and related rights for sample code are waived via CC0. Sample
+code is defined as all source code displayed within the prose of the
+documentation.
+
+CC0: http://creativecommons.org/publicdomain/zero/1.0/
+
+====
+
+Files located in the node_modules and vendor directories are externally
+maintained libraries used by this software which have their own
+licenses; we recommend you read them, as their terms may differ from the
+terms above.
+
+--------------------------------------------------------------------------------
+Package: igniteui-i18n-core
+License: "MIT"
+
+MIT License
+
+Copyright (c) 2025 INFRAGISTICS
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+--------------------------------------------------------------------------------
+Package: @angular/animations
+License: "MIT"
+
+The MIT License
+
+Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+--------------------------------------------------------------------------------
+Package: @infragistics/igniteui-angular
+License: "SEE LICENSE IN LICENSE"
+
+=================================================================
+
+Dual License for Ignite UI for Angular
+
+=================================================================
+
+This software package is offered under a dual-license model, which allows for both commercial and permissive open-source use, depending on the components, modules, directives, and services being used.
+
+It is crucial to understand which license applies to which part of the package.
+
+-----------------------------------------------------------------
+
+MIT License
+
+-----------------------------------------------------------------
+
+The MIT License applies exclusively to the components (encompassing all related modules and directives), directives, and services listed below and their associated source code. All other parts of this package remain under the Infragistics Commercial License.
+
+Covered Components, Directives and Services with MIT License:
+
+- igx-accordion
+- igx-action-strip
+- igxAutocomplete
+- igx-avatar
+- igx-badge
+- igx-banner
+- igx-bottom-nav
+- igxButton
+- igx-card
+- igx-carousel
+- igx-chat
+- igx-checkbox
+- igx-chip
+- igx-circular-bar
+- igx-combo
+- igx-date-picker
+- igx-date-range-picker
+- igx-dialog
+- igx-divider
+- igx-drop-down
+- igx-expansion-panel
+- igx-grid-lite
+- igx-icon
+- igx-input-group
+- igx-linear-bar
+- igx-list
+- igx-navbar
+- igx-nav-drawer
+- igx-paginator
+- igx-radio
+- igx-radio-group
+- igx-rating
+- igx-select
+- igx-simple-combo
+- igx-slider
+- igx-snackbar
+- igx-splitter
+- igx-switch
+- igx-tabs
+- igx-toast
+- igx-tooltip
+- igx-tree
+- igx-time-picker
+- igx-stepper
+- igx-month-picker
+- igx-action-strip
+- igx-buttongroup
+- igx-calendar
+- igx-chip-area
+- igxDateTimeEditor
+- igxDrag
+- igxDrop
+- igxFor
+- igxIconButton
+- igxInput
+- igxLabel
+- igxLayout
+- igxMask
+- igxRipple
+- IgxOverlayService
+- IgxTextHighlightDirective
+- IgxTextHighlightService
+- igxToggle
+
+The MIT License applies exclusively to the components (encompassing all related modules and directives), directives, and services listed above and their associated source code.
+All other parts of this package remain under the Infragistics Commercial License.
-uuid
-MIT
The MIT License (MIT)
-Copyright (c) 2010-2020 Robert Kieffer and other contributors
+Copyright (c) 2025 Infragistics
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+For details, see https://opensource.org/licenses/MIT
+
+-----------------------------------------------------------------
+
+Infragistics Commercial License
+
+-----------------------------------------------------------------
+
+All components (encompassing all related modules and directives), modules, directives, services, and code within this package, except those listed under the MIT License section above, are licensed under the Infragistics Commercial License (EULA).
+
+This is a commercial product, requiring a valid paid-for license for commercial use.
+This product is free to use for non-commercial educational use for students in K through 12 grades
+or University programs, and for educators to use in a classroom setting as examples/tools in their curriculum.
+
+To verify eligibility for free usage, please register for trial at:
+https://www.infragistics.com/angular and open a support ticket with a request for free license.
+
+To acquire a license for commercial usage, please register for trial at:
+https://www.infragistics.com/angular and refer to the purchasing options in the pricing section on the product page.
+
+This repository includes code originally copied from https://github.com/zloirock/core-js
+in the projects/igniteui-angular/src/lib/core/setImmediate.ts file. The original version of the code is MIT licensed. See the file header for details.
+
+© Copyright 2025 INFRAGISTICS. All Rights Reserved.
+The Infragistics Ultimate license & copyright applies to this distribution.
+For information on that license, please go to:
+https://www.infragistics.com/legal/license
+
+--------------------------------------------------------------------------------
+Package: @angular/platform-browser
+License: "MIT"
+
+The MIT License
+
+Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+--------------------------------------------------------------------------------
+Package: @igniteui/material-icons-extended
+License: "MIT"
+
+MIT License
+
+Copyright (c) 2020 Infragistics
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+--------------------------------------------------------------------------------
+Package: @angular/router
+License: "MIT"
+
+The MIT License
+
+Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+--------------------------------------------------------------------------------
+Package: core-js
+License: "MIT"
+
+Copyright (c) 2013–2025 Denis Pushkarev (zloirock.ru)
+Copyright (c) 2025–2026 CoreJS Company (core-js.io)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+--------------------------------------------------------------------------------
+Package: performance-now
+License: "MIT"
+
+Copyright (c) 2013 Braveg1rl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+--------------------------------------------------------------------------------
+Package: raf
+License: "MIT"
+
+Copyright 2013 Chris Dickinson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
@@ -337,15 +695,202 @@ The above copyright notice and this permission notice shall be included in all c
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+--------------------------------------------------------------------------------
+Package: rgbcolor
+License: "MIT OR SEE LICENSE IN FEEL-FREE.md"
-web-animations-js
-Apache-2.0
+Copyright (c) 2016 Stoyan Stefanov, http://phpied.com/
-zone.js
-MIT
-The MIT License
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+Exemptions
+==========
+
+Please either apply this, the MIT license, or the license in './FEEL-FREE.md'
+
+--------------------------------------------------------------------------------
+Package: canvg
+License: "MIT"
+
+The MIT License (MIT)
+
+Copyright (c) 2010 - present Gabe Lerner (gabelerner@gmail.com) - https://github.com/canvg/canvg
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+--------------------------------------------------------------------------------
+Package: @babel/runtime
+License: "MIT"
+
+MIT License
+
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+--------------------------------------------------------------------------------
+Package: svg-pathdata
+License: "MIT"
+
+The MIT License (MIT)
+Copyright © 2017 Nicolas Froidure
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the “Software”), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+--------------------------------------------------------------------------------
+Package: stackblur-canvas
+License: "MIT"
+
+Copyright (c) 2010 Mario Klingemann
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+--------------------------------------------------------------------------------
+Package: html2canvas
+License: "MIT"
+
+Copyright (c) 2012 Niklas von Hertzen
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+--------------------------------------------------------------------------------
+Package: iobuffer
+License: "MIT"
+
+The MIT License (MIT)
+
+Copyright (c) 2015 Michaël Zasso
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
-Copyright (c) 2010-2023 Google LLC. https://angular.io/license
+
+--------------------------------------------------------------------------------
+Package: pako
+License: "(MIT AND Zlib)"
+
+(The MIT License)
+
+Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -364,3 +909,265 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
+
+--------------------------------------------------------------------------------
+Package: fast-png
+License: "MIT"
+
+MIT License
+
+Copyright (c) 2015 Michaël Zasso
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+--------------------------------------------------------------------------------
+Package: jspdf
+License: "MIT"
+
+Copyright
+(c) 2010-2025 James Hall, https://github.com/MrRio/jsPDF
+(c) 2015-2025 yWorks GmbH, https://www.yworks.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+--------------------------------------------------------------------------------
+Package: dompurify
+License: "(MPL-2.0 OR Apache-2.0)"
+
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+--------------------------------------------------------------------------------
diff --git a/docs/chunk-2CI1XlO3.js b/docs/chunk-2CI1XlO3.js
new file mode 100644
index 0000000..b1e11e0
--- /dev/null
+++ b/docs/chunk-2CI1XlO3.js
@@ -0,0 +1,5 @@
+import{n as u,o as __esmMin,r as v,t as init_chunk_IFGU66OU}from"./main-GF4OEYNH.js";function mc(i,e,r,t,a,n,o){try{var s=i[n](o),u=s.value}catch(l){r(l);return}s.done?e(u):Promise.resolve(u).then(t,a)}function be(i){return function(){var e=this,r=arguments;return new Promise(function(t,a){var n=i.apply(e,r);function o(u){mc(n,t,a,o,s,`next`,u)}function s(u){mc(n,t,a,o,s,`throw`,u)}o(void 0)})}}function $e(i){"@babel/helpers - typeof";return $e=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},$e(i)}function ov(i,e){if($e(i)!=`object`||!i)return i;var r=i[Symbol.toPrimitive];if(r!==void 0){var t=r.call(i,e||`default`);if($e(t)!=`object`)return t;throw new TypeError(`@@toPrimitive must return a primitive value.`)}return(e===`string`?String:Number)(i)}function uv(i){var e=ov(i,`string`);return $e(e)==`symbol`?e:e+``}function ri(i,e,r){return(e=uv(e))in i?Object.defineProperty(i,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[e]=r,i}function Jv(i,e){if(typeof e!=`function`&&e!==null)throw new TypeError(`Class extends value `+String(e)+` is not a constructor or null`);function r(){this.constructor=i}Zv(i,e),i.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function $T(i){var e=``;Array.isArray(i)||(i=[i]);for(var r=0;ri.phi1&&(i.phi2-=2*Me),i.sweepFlag===1&&i.phi2t)return[];if(t===0)return[[i*r/(i*i+e*e),e*r/(i*i+e*e)]];var a=Math.sqrt(t);return[[(i*r+e*a)/(i*i+e*e),(e*r-i*a)/(i*i+e*e)],[(i*r-e*a)/(i*i+e*e),(e*r+i*a)/(i*i+e*e)]]}function Yv(i,e,r){return(1-r)*i+r*e}function Xv(i,e,r,t){return i+Math.cos(t/180*Me)*e+Math.sin(t/180*Me)*r}function Wv(i,e,r,t){var a=1e-6,n=e-i,o=r-e,s=3*n+3*(t-r)-6*o,u=6*(o-n),l=3*n;return Math.abs(s)>>E;if(o[x+3]=Ti,Ti!==0){var Oi=255/Ti;o[x]=(R*T>>>E)*Oi,o[x+1]=(re*T>>>E)*Oi,o[x+2]=(ce*T>>>E)*Oi}else o[x]=o[x+1]=o[x+2]=0;R-=Q,re-=Y,ce-=K,me-=I,Q-=y.r,Y-=y.g,K-=y.b,I-=y.a;var Ve=xi+n+1;Ve=O+(Ve>>E,ie>0?(ie=255/ie,o[ae]=(tt*T>>>E)*ie,o[ae+1]=(it*T>>>E)*ie,o[ae+2]=(at*T>>>E)*ie):o[ae]=o[ae+1]=o[ae+2]=0,tt-=Si,it-=Ei,at-=wi,nt-=Ci,Si-=y.r,Ei-=y.g,wi-=y.b,Ci-=y.a,ae=Qe+((ae=Ni+h)0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:i,createCanvas(r,t){return new OffscreenCanvas(r,t)},createImage(r){return be(function*(){var a=yield(yield fetch(r)).blob();return yield createImageBitmap(a)})()}};return(typeof DOMParser<`u`||typeof i>`u`)&&Reflect.deleteProperty(e,`DOMParser`),e}function oO(i){var{DOMParser:e,canvas:r,fetch:t}=i;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:t,createCanvas:r.createCanvas,createImage:r.loadImage}}function mr(i){return i.replace(/(?!\u3000)\s+/gm,` `)}function uO(i){return i.replace(/^[\n \t]+/,``)}function lO(i){return i.replace(/[\n \t]+$/,``)}function se(i){return((i||``).match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}function cO(i){return hO.test(i)?i.toLowerCase():i}function og(i){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(i)||[];return e[2]||e[3]||e[4]}function fO(i){if(!i.startsWith(`rgb`))return i;var e=3;return i.replace(/\d+(\.\d+)?/g,(t,a)=>e--&&a?String(Math.round(parseFloat(t))):t)}function Ge(i,e){var r=e.exec(i);return r?[i.replace(e,` `),r.length]:[i,0]}function xO(i){var e=[0,0,0],r=i.replace(/:not\(([^)]*)\)/g,` $1 `).replace(/{[\s\S]*/gm,` `),t=0;return[r,t]=Ge(r,vO),e[1]+=t,[r,t]=Ge(r,gO),e[0]+=t,[r,t]=Ge(r,dO),e[1]+=t,[r,t]=Ge(r,pO),e[2]+=t,[r,t]=Ge(r,yO),e[1]+=t,[r,t]=Ge(r,mO),e[1]+=t,r=r.replace(/[*\s+>~]/g,` `).replace(/[#.]/g,` `),[r,t]=Ge(r,bO),e[2]+=t,e.join(``)}function ug(i){return Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2))}function Yn(i,e){return(i[0]*e[0]+i[1]*e[1])/(ug(i)*ug(e))}function lg(i,e){return(i[0]*e[1]`u`?i:i.trim().split(`,`).map(wO).join(`,`)}function qO(i){if(!i)return``;var e=i.trim().toLowerCase();switch(e){case`normal`:case`italic`:case`oblique`:case`inherit`:case`initial`:case`unset`:return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:``}}function AO(i){if(!i)return``;var e=i.trim().toLowerCase();switch(e){case`normal`:case`bold`:case`lighter`:case`bolder`:case`inherit`:case`initial`:case`unset`:return e;default:return/^[\d.]+$/.test(e)?e:``}}function bg(i,e){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(i);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),r.push.apply(r,t)}return r}function oi(i){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:!1,r=document.createElement(`img`);return e&&(r.crossOrigin=`Anonymous`),new Promise((t,a)=>{r.onload=()=>{t(r)},r.onerror=(n,o,s,u,l)=>{a(l)},r.src=i})}),Is.apply(this,arguments)}function Og(i,e){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(i);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),r.push.apply(r,t)}return r}function He(i){for(var e=1;e{init_chunk_IFGU66OU();M=u((Ii,zs)=>{"use strict";var br=function(i){return i&&i.Math===Math&&i};zs.exports=br(typeof globalThis==`object`&&globalThis)||br(typeof window==`object`&&window)||br(typeof self==`object`&&self)||br(typeof global==`object`&&global)||br(typeof Ii==`object`&&Ii)||(function(){return this})()||Function(`return this`)()});_=u((kO,$s)=>{"use strict";$s.exports=function(i){try{return!!i()}catch{return!0}}});ue=u((BO,Gs)=>{"use strict";Gs.exports=!_()(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});xr=u((jO,Hs)=>{"use strict";Hs.exports=!_()(function(){var i=function(){}.bind();return typeof i!=`function`||i.hasOwnProperty(`prototype`)})});H=u((UO,Ys)=>{"use strict";var qg=xr(),ut=Function.prototype.call;Ys.exports=qg?ut.bind(ut):function(){return ut.apply(ut,arguments)}});Ks=u(Qs=>{"use strict";var Xs={}.propertyIsEnumerable,Ws=Object.getOwnPropertyDescriptor;Qs.f=Ws&&!Xs.call({1:2},1)?function(e){var r=Ws(this,e);return!!r&&r.enumerable}:Xs});lt=u((zO,Zs)=>{"use strict";Zs.exports=function(i,e){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:e}}});D=u(($O,ro)=>{"use strict";var Js=xr(),eo=Function.prototype,Mi=eo.call,Pg=Js&&eo.bind.bind(Mi,Mi);ro.exports=Js?Pg:function(i){return function(){return Mi.apply(i,arguments)}}});xe=u((GO,io)=>{"use strict";var to=D(),Rg=to({}.toString),Ng=to(``.slice);io.exports=function(i){return Ng(Rg(i),8,-1)}});_i=u((HO,ao)=>{"use strict";var Ig=D(),Mg=_(),Vg=xe(),Vi=Object,_g=Ig(``.split);ao.exports=Mg(function(){return!Vi(`z`).propertyIsEnumerable(0)})?function(i){return Vg(i)===`String`?_g(i,``):Vi(i)}:Vi});Tr=u((YO,no)=>{"use strict";no.exports=function(i){return i==null}});le=u((XO,so)=>{"use strict";var Dg=Tr(),Lg=TypeError;so.exports=function(i){if(Dg(i))throw new Lg(`Can't call method on `+i);return i}});Ke=u((WO,oo)=>{"use strict";var kg=_i(),Bg=le();oo.exports=function(i){return kg(Bg(i))}});L=u((QO,uo)=>{"use strict";var Di=typeof document==`object`&&document.all;uo.exports=typeof Di>`u`&&Di!==void 0?function(i){return typeof i==`function`||i===Di}:function(i){return typeof i==`function`}});te=u((KO,lo)=>{"use strict";var jg=L();lo.exports=function(i){return typeof i==`object`?i!==null:jg(i)}});Pe=u((ZO,ho)=>{"use strict";var Li=M(),Ug=L(),Fg=function(i){return Ug(i)?i:void 0};ho.exports=function(i,e){return arguments.length<2?Fg(Li[i]):Li[i]&&Li[i][e]}});Or=u((JO,co)=>{"use strict";co.exports=D()({}.isPrototypeOf)});Ze=u((eS,go)=>{"use strict";var fo=M().navigator,vo=fo&&fo.userAgent;go.exports=vo?String(vo):``});ct=u((rS,To)=>{"use strict";var xo=M(),ki=Ze(),po=xo.process,yo=xo.Deno,mo=po&&po.versions||yo&&yo.version,bo=mo&&mo.v8,fe,ht;bo&&(fe=bo.split(`.`),ht=fe[0]>0&&fe[0]<4?1:+(fe[0]+fe[1]));!ht&&ki&&(fe=ki.match(/Edge\/(\d+)/),(!fe||fe[1]>=74)&&(fe=ki.match(/Chrome\/(\d+)/),fe&&(ht=+fe[1])));To.exports=ht});Bi=u((tS,So)=>{"use strict";var Oo=ct(),Gg=_(),Yg=M().String;So.exports=!!Object.getOwnPropertySymbols&&!Gg(function(){var i=Symbol(`symbol detection`);return!Yg(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&Oo&&Oo<41})});ji=u((iS,Eo)=>{"use strict";Eo.exports=Bi()&&!Symbol.sham&&typeof Symbol.iterator==`symbol`});Ui=u((aS,wo)=>{"use strict";var Wg=Pe(),Qg=L(),Kg=Or(),Zg=ji(),Jg=Object;wo.exports=Zg?function(i){return typeof i==`symbol`}:function(i){var e=Wg(`Symbol`);return Qg(e)&&Kg(e.prototype,Jg(i))}});Sr=u((nS,Co)=>{"use strict";var ed=String;Co.exports=function(i){try{return ed(i)}catch{return`Object`}}});Te=u((sS,qo)=>{"use strict";var rd=L(),td=Sr(),id=TypeError;qo.exports=function(i){if(rd(i))return i;throw new id(td(i)+` is not a function`)}});ke=u((oS,Ao)=>{"use strict";var ad=Te(),nd=Tr();Ao.exports=function(i,e){var r=i[e];return nd(r)?void 0:ad(r)}});Ro=u((uS,Po)=>{"use strict";var Fi=H(),zi=L(),$i=te(),sd=TypeError;Po.exports=function(i,e){var r,t;if(e===`string`&&zi(r=i.toString)&&!$i(t=Fi(r,i))||zi(r=i.valueOf)&&!$i(t=Fi(r,i))||e!==`string`&&zi(r=i.toString)&&!$i(t=Fi(r,i)))return t;throw new sd(`Can't convert object to primitive value`)}});ve=u((lS,No)=>{"use strict";No.exports=!1});ft=u((hS,Mo)=>{"use strict";var Io=M(),od=Object.defineProperty;Mo.exports=function(i,e){try{od(Io,i,{value:e,configurable:!0,writable:!0})}catch{Io[i]=e}return e}});vt=u((cS,Do)=>{"use strict";var ud=ve(),ld=M(),hd=ft(),Vo=`__core-js_shared__`,_o=Do.exports=ld[Vo]||hd(Vo,{});(_o.versions||(_o.versions=[])).push({version:`3.50.0`,mode:ud?`pure`:`global`,copyright:`© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.`,license:`https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE`,source:`https://github.com/zloirock/core-js`})});gt=u((fS,ko)=>{"use strict";var Lo=vt(),cd=Object.create||Object;ko.exports=function(i,e){return Lo[i]||(Lo[i]=e||cd(null))}});Er=u((vS,Bo)=>{"use strict";var fd=le(),vd=Object;Bo.exports=function(i){return vd(fd(i))}});he=u((gS,jo)=>{"use strict";var gd=D(),dd=Er(),pd=gd({}.hasOwnProperty);jo.exports=Object.hasOwn||function(e,r){return pd(dd(e),r)}});Gi=u((dS,Uo)=>{"use strict";var yd=D(),md=0,bd=Math.random(),xd=yd(1.1.toString);Uo.exports=function(i){return`Symbol(`+(i===void 0?``:i)+`)_`+xd(++md+bd,36)}});z=u((pS,zo)=>{"use strict";var Td=M(),Od=gt(),Fo=he(),Sd=Gi(),Ed=Bi(),wd=ji(),Je=Td.Symbol,Hi=Od(`wks`),Cd=wd?Je.for||Je:Je&&Je.withoutSetter||Sd;zo.exports=function(i){return Fo(Hi,i)||(Hi[i]=Ed&&Fo(Je,i)?Je[i]:Cd(`Symbol.`+i)),Hi[i]}});Yo=u((yS,Ho)=>{"use strict";var qd=H(),$o=te(),Go=Ui(),Ad=ke(),Pd=Ro(),Rd=z(),Nd=TypeError,Id=Rd(`toPrimitive`);Ho.exports=function(i,e){if(!$o(i)||Go(i))return i;var r=Ad(i,Id),t;if(r){if(e===void 0&&(e=`default`),t=qd(r,i,e),!$o(t)||Go(t))return t;throw new Nd(`Can't convert object to primitive value`)}return e===void 0&&(e=`number`),Pd(i,e)}});Yi=u((mS,Xo)=>{"use strict";var Md=Yo(),Vd=Ui();Xo.exports=function(i){var e=Md(i,`string`);return Vd(e)?e:e+``}});wr=u((bS,Qo)=>{"use strict";var _d=M(),Wo=te(),Xi=_d.document,Dd=Wo(Xi)&&Wo(Xi.createElement);Qo.exports=function(i){return Dd?Xi.createElement(i):{}}});Wi=u((xS,Ko)=>{"use strict";var Ld=ue(),kd=_(),Bd=wr();Ko.exports=!Ld&&!kd(function(){return Object.defineProperty(Bd(`div`),"a",{get:function(){return 7}}).a!==7})});Cr=u(Jo=>{"use strict";var jd=ue(),Ud=H(),Fd=Ks(),zd=lt(),$d=Ke(),Gd=Yi(),Hd=he(),Yd=Wi(),Zo=Object.getOwnPropertyDescriptor;Jo.f=jd?Zo:function(e,r){if(e=$d(e),r=Gd(r),Yd)try{return Zo(e,r)}catch{}if(Hd(e,r))return zd(!Ud(Fd.f,e,r),e[r])}});Qi=u((OS,eu)=>{"use strict";var Xd=ue(),Wd=_();eu.exports=Xd&&Wd(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});J=u((SS,ru)=>{"use strict";var Qd=te(),Kd=String,Zd=TypeError;ru.exports=function(i){if(Qd(i))return i;throw new Zd(Kd(i)+` is not an object`)}});Oe=u(iu=>{"use strict";var Jd=ue(),ep=Wi(),rp=Qi(),dt=J(),tu=Yi(),tp=TypeError,Ki=Object.defineProperty,ip=Object.getOwnPropertyDescriptor,Zi=`enumerable`,Ji=`configurable`,ea=`writable`;iu.f=Jd?rp?function(e,r,t){if(dt(e),r=tu(r),dt(t),typeof e==`function`&&r===`prototype`&&`value`in t&&ea in t&&!t[ea]){var a=ip(e,r);a&&a[ea]&&(e[r]=t.value,t={configurable:Ji in t?t[Ji]:a[Ji],enumerable:Zi in t?t[Zi]:a[Zi],writable:!1})}return Ki(e,r,t)}:Ki:function(e,r,t){if(dt(e),r=tu(r),dt(t),ep)try{return Ki(e,r,t)}catch{}if(`get`in t||`set`in t)throw new tp(`Accessors not supported`);return`value`in t&&(e[r]=t.value),e}});er=u((wS,au)=>{"use strict";var ap=ue(),np=Oe(),sp=lt();au.exports=ap?function(i,e,r){return np.f(i,e,sp(1,r))}:function(i,e,r){return i[e]=r,i}});qr=u((CS,su)=>{"use strict";var ra=ue(),op=he(),nu=Function.prototype,up=ra&&Object.getOwnPropertyDescriptor,ta=op(nu,`name`);su.exports={EXISTS:ta,PROPER:ta&&function(){}.name===`something`,CONFIGURABLE:ta&&(!ra||ra&&up(nu,`name`).configurable)}});pt=u((qS,ou)=>{"use strict";var cp=D(),fp=L(),ia=vt(),vp=cp(Function.toString);fp(ia.inspectSource)||(ia.inspectSource=function(i){return vp(i)});ou.exports=ia.inspectSource});hu=u((AS,lu)=>{"use strict";var gp=M(),dp=L(),uu=gp.WeakMap;lu.exports=dp(uu)&&/native code/.test(String(uu))});yt=u((PS,fu)=>{"use strict";var pp=gt(),yp=Gi(),cu=pp(`keys`);fu.exports=function(i){return cu[i]||(cu[i]=yp(i))}});mt=u((RS,vu)=>{"use strict";vu.exports={}});Pr=u((NS,pu)=>{"use strict";var mp=hu(),du=M(),bp=te(),xp=er(),aa=he(),na=vt(),Tp=yt(),Op=mt(),gu=`Object already initialized`,sa=du.TypeError,Sp=du.WeakMap,bt,Ar,xt,Ep=function(i){return xt(i)?Ar(i):bt(i,{})},wp=function(i){return function(e){var r;if(!bp(e)||(r=Ar(e)).type!==i)throw new sa(`Incompatible receiver, `+i+` required`);return r}};mp||na.state?(ge=na.state||(na.state=new Sp),ge.get=ge.get,ge.has=ge.has,ge.set=ge.set,bt=function(i,e){if(ge.has(i))throw new sa(gu);return e.facade=i,ge.set(i,e),e},Ar=function(i){return ge.get(i)||{}},xt=function(i){return ge.has(i)}):(Be=Tp(`state`),Op[Be]=!0,bt=function(i,e){if(aa(i,Be))throw new sa(gu);return e.facade=i,xp(i,Be,e),e},Ar=function(i){return aa(i,Be)?i[Be]:{}},xt=function(i){return aa(i,Be)});var ge,Be;pu.exports={set:bt,get:Ar,has:xt,enforce:Ep,getterFor:wp}});la=u((IS,bu)=>{"use strict";var ua=D(),Cp=_(),qp=L(),Tt=he(),oa=ue(),Ap=qr().CONFIGURABLE,Pp=pt(),mu=Pr(),Rp=mu.enforce,Np=mu.get,yu=String,Ot=Object.defineProperty,Ip=ua(``.slice),Mp=ua(``.replace),Vp=ua([].join),_p=oa&&!Cp(function(){return Ot(function(){},`length`,{value:8}).length!==8}),Dp=String(String).split(`String`),Lp=bu.exports=function(i,e,r){Ip(yu(e),0,7)===`Symbol(`&&(e=`[`+Mp(yu(e),/^Symbol\(([^)]*)\).*$/,`$1`)+`]`),r&&r.getter&&(e=`get `+e),r&&r.setter&&(e=`set `+e),(!Tt(i,`name`)||Ap&&i.name!==e)&&(oa?Ot(i,`name`,{value:e,configurable:!0}):i.name=e),_p&&r&&Tt(r,`arity`)&&i.length!==r.arity&&Ot(i,`length`,{value:r.arity});try{r&&Tt(r,`constructor`)&&r.constructor?oa&&Ot(i,`prototype`,{writable:!1}):i.prototype&&(i.prototype=void 0)}catch{}var t=Rp(i);return Tt(t,`source`)||(t.source=Vp(Dp,typeof e==`string`?e:``)),i};Function.prototype.toString=Lp(function(){return qp(this)&&Np(this).source||Pp(this)},`toString`)});Re=u((MS,xu)=>{"use strict";var kp=L(),Bp=Oe(),jp=la(),Up=ft();xu.exports=function(i,e,r,t){t||(t={});var a=t.enumerable,n=t.name!==void 0?t.name:e;if(kp(r)&&jp(r,n,t),t.global)a?i[e]=r:Up(e,r);else{try{t.unsafe?i[e]&&(a=!0):delete i[e]}catch{}a?i[e]=r:Bp.f(i,e,{value:r,enumerable:!1,configurable:!t.nonConfigurable,writable:!t.nonWritable})}return i}});Ou=u((VS,Tu)=>{"use strict";var Fp=Math.ceil,zp=Math.floor;Tu.exports=Math.trunc||function(e){var r=+e;return(r>0?zp:Fp)(r)}});Rr=u((_S,Su)=>{"use strict";var $p=Ou();Su.exports=function(i){var e=+i;return e!==e||e===0?0:$p(e)}});wu=u((DS,Eu)=>{"use strict";var Gp=Rr(),Hp=Math.max,Yp=Math.min;Eu.exports=function(i,e){var r=Gp(i);return r<0?Hp(r+e,0):Yp(r,e)}});je=u((LS,Cu)=>{"use strict";var Xp=Rr(),Wp=Math.min;Cu.exports=function(i){var e=Xp(i);return e>0?Wp(e,9007199254740991):0}});St=u((kS,qu)=>{"use strict";var Qp=je();qu.exports=function(i){return Qp(i.length)}});ha=u((BS,Pu)=>{"use strict";var Kp=Ke(),Zp=wu(),Jp=St(),Au=function(i){return function(e,r,t){var a=Kp(e),n=Jp(a);if(n===0)return!i&&-1;var o=Zp(t,n),s;if(i&&r!==r){for(;n>o;)if(s=a[o++],s!==s)return!0}else for(;n>o;o++)if((i||o in a)&&a[o]===r)return i||o||0;return!i&&-1}};Pu.exports={includes:Au(!0),indexOf:Au(!1)}});fa=u((jS,Nu)=>{"use strict";var ey=D(),ca=he(),ry=Ke(),ty=ha().indexOf,iy=mt(),Ru=ey([].push);Nu.exports=function(i,e){var r=ry(i),t=0,a=[],n;for(n in r)!ca(iy,n)&&ca(r,n)&&Ru(a,n);for(;e.length>t;)ca(r,n=e[t++])&&(~ty(a,n)||Ru(a,n));return a}});Et=u((US,Iu)=>{"use strict";Iu.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]});Vu=u(Mu=>{"use strict";var ay=fa(),sy=Et().concat(`length`,`prototype`);Mu.f=Object.getOwnPropertyNames||function(e){return ay(e,sy)}});Du=u(_u=>{"use strict";_u.f=Object.getOwnPropertySymbols});ku=u(($S,Lu)=>{"use strict";var oy=Pe(),uy=D(),ly=Vu(),hy=Du(),cy=J(),fy=uy([].concat);Lu.exports=oy(`Reflect`,`ownKeys`)||function(e){var r=ly.f(cy(e)),t=hy.f;return t?fy(r,t(e)):r}});Uu=u((GS,ju)=>{"use strict";var Bu=he(),vy=ku(),gy=Cr(),dy=Oe();ju.exports=function(i,e,r){for(var t=vy(e),a=dy.f,n=gy.f,o=0;o{"use strict";var py=_(),yy=L(),my=/#|\.prototype\./,Nr=function(i,e){var r=xy[by(i)];return r===Oy?!0:r===Ty?!1:yy(e)?py(e):!!e},by=Nr.normalize=function(i){return String(i).replace(my,`.`).toLowerCase()},xy=Nr.data={},Ty=Nr.NATIVE=`N`,Oy=Nr.POLYFILL=`P`;Fu.exports=Nr});ee=u((YS,zu)=>{"use strict";var wt=M(),Sy=Cr().f,Ey=er(),wy=Re(),Cy=ft(),qy=Uu(),Ay=va();zu.exports=function(i,e){var r=i.target,t=i.global,a=i.stat,n,o,s,u,l,h;if(t?o=wt:a?o=wt[r]||Cy(r,{}):o=wt[r]&&wt[r].prototype,o)for(s in e){if(l=e[s],i.dontCallGetSet?(h=Sy(o,s),u=h&&h.value):u=o[s],n=Ay(t?s:r+(a?`.`:`#`)+s,i.forced),!n&&u!==void 0){if(typeof l==typeof u)continue;qy(l,u)}(i.sham||u&&u.sham)&&Ey(l,`sham`,!0),wy(o,s,l,i)}}});ga=u((XS,$u)=>{"use strict";var Ir=M(),Py=Ze(),Ry=xe(),Ct=function(i){return Py.slice(0,i.length)===i};$u.exports=(function(){return Ct(`Bun/`)?`BUN`:Ct(`Cloudflare-Workers`)?`CLOUDFLARE`:Ct(`Deno/`)?`DENO`:Ct(`Node.js/`)?`NODE`:Ir.Bun&&typeof Bun.version==`string`?`BUN`:Ir.Deno&&typeof Deno.version==`object`?`DENO`:Ry(Ir.process)===`process`?`NODE`:Ir.window&&Ir.document?`BROWSER`:`REST`})()});Mr=u((WS,Gu)=>{"use strict";Gu.exports=ga()===`NODE`});Yu=u((QS,Hu)=>{"use strict";Hu.exports=M()});Wu=u((KS,Xu)=>{"use strict";var My=D(),Vy=Te();Xu.exports=function(i,e,r){try{return My(Vy(Object.getOwnPropertyDescriptor(i,e)[r]))}catch{}}});Ku=u((ZS,Qu)=>{"use strict";var _y=te();Qu.exports=function(i){return _y(i)||i===null}});Ju=u((JS,Zu)=>{"use strict";var Dy=Ku(),Ly=String,ky=TypeError;Zu.exports=function(i){if(Dy(i))return i;throw new ky(`Can't set `+Ly(i)+` as a prototype`)}});da=u((eE,el)=>{"use strict";var By=Wu(),jy=te(),Uy=le(),Fy=Ju();el.exports=Object.setPrototypeOf||(`__proto__`in{}?(function(){var i=!1,e={},r;try{r=By(Object.prototype,`__proto__`,`set`),r(e,[]),i=e instanceof Array}catch{}return function(a,n){return Uy(a),Fy(n),jy(a)&&(i?r(a,n):a.__proto__=n),a}})():void 0)});Vr=u((rE,tl)=>{"use strict";var zy=Oe().f,$y=he(),rl=z()(`toStringTag`);tl.exports=function(i,e,r){i&&!r&&(i=i.prototype),i&&!$y(i,rl)&&zy(i,rl,{configurable:!0,value:e})}});nl=u((tE,al)=>{"use strict";var il=la(),Hy=Oe();al.exports=function(i,e,r){return r.get&&il(r.get,e,{getter:!0}),r.set&&il(r.set,e,{setter:!0}),Hy.f(i,e,r)}});ul=u((iE,ol)=>{"use strict";var Yy=Pe(),Xy=nl(),Wy=z(),Qy=ue(),sl=Wy(`species`);ol.exports=function(i){var e=Yy(i);Qy&&e&&!e[sl]&&Xy(e,sl,{configurable:!0,get:function(){return this}})}});hl=u((aE,ll)=>{"use strict";var Ky=Or(),Zy=TypeError;ll.exports=function(i,e){if(Ky(e,i))return i;throw new Zy(`Incorrect invocation`)}});vl=u((nE,fl)=>{"use strict";var e0=z()(`toStringTag`),cl={};cl[e0]=`z`;fl.exports=String(cl)===`[object z]`});pa=u((sE,gl)=>{"use strict";var r0=vl(),t0=L(),qt=xe(),a0=z()(`toStringTag`),n0=Object,s0=qt((function(){return arguments})())===`Arguments`,o0=function(i,e){try{return i[e]}catch{}};gl.exports=r0?qt:function(i){var e,r,t;return i===void 0?`Undefined`:i===null?`Null`:typeof(r=o0(e=n0(i),a0))==`string`?r:s0?qt(e):(t=qt(e))===`Object`&&t0(e.callee)?`Arguments`:t}});xl=u((oE,bl)=>{"use strict";var u0=D(),l0=_(),dl=L(),h0=pa(),c0=Pe(),f0=pt(),pl=function(){},yl=c0(`Reflect`,`construct`),ya=/^\s*(?:class|function)\b/,v0=u0(ya.exec),g0=!ya.test(pl),_r=function(e){if(!dl(e))return!1;try{return yl(pl,[],e),!0}catch{return!1}},ml=function(e){if(!dl(e))return!1;switch(h0(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}try{return g0||!!v0(ya,f0(e))}catch{return!0}};ml.sham=!0;bl.exports=!yl||l0(function(){var i;return _r(_r.call)||!_r(Object)||!_r(function(){i=!0})||i})?ml:_r});Ol=u((uE,Tl)=>{"use strict";var d0=xl(),p0=Sr(),y0=TypeError;Tl.exports=function(i){if(d0(i))return i;throw new y0(p0(i)+` is not a constructor`)}});ma=u((lE,El)=>{"use strict";var Sl=J(),m0=Ol(),b0=Tr(),T0=z()(`species`);El.exports=function(i,e){var r=Sl(i).constructor,t;return r===void 0||b0(t=Sl(r)[T0])?e:m0(t)}});ba=u((hE,Al)=>{"use strict";var O0=xr(),ql=Function.prototype,wl=ql.apply,Cl=ql.call;Al.exports=typeof Reflect==`object`&&Reflect.apply||(O0?Cl.bind(wl):function(){return Cl.apply(wl,arguments)})});Dr=u((cE,Pl)=>{"use strict";var S0=xe(),E0=D();Pl.exports=function(i){if(S0(i)===`Function`)return E0(i)}});At=u((fE,Nl)=>{"use strict";var Rl=Dr(),w0=Te(),C0=xr(),q0=Rl(Rl.bind);Nl.exports=function(i,e){return w0(i),e===void 0?i:C0?q0(i,e):function(){return i.apply(e,arguments)}}});xa=u((vE,Il)=>{"use strict";Il.exports=Pe()(`document`,`documentElement`)});Vl=u((gE,Ml)=>{"use strict";Ml.exports=D()([].slice)});Dl=u((dE,_l)=>{"use strict";var R0=TypeError;_l.exports=function(i,e){if(i{"use strict";var Ll=Ze();kl.exports=/ipad|iphone|ipod/i.test(Ll)&&/applewebkit/i.test(Ll)});Ra=u((yE,Yl)=>{"use strict";var ne=M(),N0=ba(),I0=At(),Bl=L(),M0=he(),Hl=_(),jl=xa(),V0=Vl(),Ul=wr(),_0=Dl(),D0=Ta(),L0=Mr(),qa=ne.setImmediate,Aa=ne.clearImmediate,k0=ne.process,Oa=ne.Dispatch,B0=ne.Function,Fl=ne.MessageChannel,j0=ne.String,Sa=0,Lr={},zl=`onreadystatechange`,kr,Ue,Ea,wa;Hl(function(){kr=ne.location});var Pa=function(i){if(M0(Lr,i)){var e=Lr[i];delete Lr[i],e()}},Ca=function(i){return function(){Pa(i)}},$l=function(i){Pa(i.data)},Gl=function(i){ne.postMessage(j0(i),kr.protocol+`//`+kr.host)};(!qa||!Aa)&&(qa=function(e){_0(arguments.length,1);var r=Bl(e)?e:B0(e),t=V0(arguments,1);return Lr[++Sa]=function(){N0(r,void 0,t)},Ue(Sa),Sa},Aa=function(e){delete Lr[e]},L0?Ue=function(i){k0.nextTick(Ca(i))}:Oa&&Oa.now?Ue=function(i){Oa.now(Ca(i))}:Fl&&!D0?(Ea=new Fl,wa=Ea.port2,Ea.port1.onmessage=$l,Ue=I0(wa.postMessage,wa)):ne.addEventListener&&Bl(ne.postMessage)&&!ne.importScripts&&kr&&kr.protocol!==`file:`&&!Hl(Gl)?(Ue=Gl,ne.addEventListener(`message`,$l,!1)):zl in Ul(`script`)?Ue=function(i){jl.appendChild(Ul(`script`))[zl]=function(){jl.removeChild(this),Pa(i)}}:Ue=function(i){setTimeout(Ca(i),0)});Yl.exports={set:qa,clear:Aa}});Ql=u((mE,Wl)=>{"use strict";var Xl=M(),U0=ue(),F0=Object.getOwnPropertyDescriptor;Wl.exports=function(i){if(!U0)return Xl[i];var e=F0(Xl,i);return e&&e.value}});Na=u((bE,Zl)=>{"use strict";var Kl=function(){this.head=null,this.tail=null};Kl.prototype={add:function(i){var e={item:i,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var i=this.head;if(i)return(this.head=i.next)===null&&(this.tail=null),i.item}};Zl.exports=Kl});eh=u((xE,Jl)=>{"use strict";var z0=Ze();Jl.exports=/ipad|iphone|ipod/i.test(z0)&&typeof Pebble<`u`});th=u((TE,rh)=>{"use strict";var $0=Ze();rh.exports=/web0s(?!.*chrome)/i.test($0)});lh=u((OE,uh)=>{"use strict";var tr=M(),G0=Ql(),ih=At(),Ia=Ra().set,H0=Na(),Y0=Ta(),X0=eh(),W0=th(),Ma=Mr(),ah=tr.MutationObserver||tr.WebKitMutationObserver,nh=tr.document,sh=tr.process,Pt=tr.Promise,Da=G0(`queueMicrotask`),rr,Va,_a,Rt,oh;Da||(Br=new H0,jr=function(){var i,e;for(Ma&&(i=sh.domain)&&i.exit();e=Br.get();)try{e()}catch(r){throw Br.head&&rr(),r}i&&i.enter()},!Y0&&!Ma&&!W0&&ah&&nh?(Va=!0,_a=nh.createTextNode(``),new ah(jr).observe(_a,{characterData:!0}),rr=function(){_a.data=Va=!Va}):!X0&&Pt&&Pt.resolve?(Rt=Pt.resolve(void 0),Rt.constructor=Pt,oh=ih(Rt.then,Rt),rr=function(){oh(jr)}):Ma?rr=function(){sh.nextTick(jr)}:(Ia=ih(Ia,tr),rr=function(){Ia(jr)}),Da=function(i){Br.head||rr(),Br.add(i)});var Br,jr;uh.exports=Da});ch=u((SE,hh)=>{"use strict";hh.exports=function(i,e){try{arguments.length===1?console.error(i):console.error(i,e)}catch{}}});Nt=u((EE,fh)=>{"use strict";fh.exports=function(i){try{return{error:!1,value:i()}}catch(e){return{error:!0,value:e}}}});ir=u((wE,vh)=>{"use strict";vh.exports=M().Promise});ar=u((CE,yh)=>{"use strict";var K0=M(),Ur=ir(),Z0=L(),J0=va(),em=pt(),rm=z(),gh=ga(),tm=ve(),La=ct(),dh=Ur&&Ur.prototype,im=rm(`species`),ka=!1,ph=Z0(K0.PromiseRejectionEvent);yh.exports={CONSTRUCTOR:J0(`Promise`,function(){var i=em(Ur),e=i!==String(Ur);if(!e&&La===66||tm&&!(dh.catch&&dh.finally))return!0;if(!La||La<51||!/native code/.test(i)){var r=new Ur(function(n){n(1)}),t=function(n){n(function(){},function(){})},a=r.constructor={};if(a[im]=t,ka=r.then(function(){})instanceof t,!ka)return!0}return!e&&(gh===`BROWSER`||gh===`DENO`)&&!ph}),REJECTION_EVENT:ph,SUBCLASSING:ka}});nr=u((qE,bh)=>{"use strict";var mh=Te(),nm=TypeError,sm=function(i){var e,r;this.promise=new i(function(t,a){if(e!==void 0||r!==void 0)throw new nm(`Bad Promise constructor`);e=t,r=a}),this.resolve=mh(e),this.reject=mh(r)};bh.exports.f=function(i){return new sm(i)}});Bh=u(()=>{"use strict";var om=ee(),um=ve(),_t=Mr(),Ne=M(),lm=Yu(),lr=H(),xh=Re(),Th=da(),hm=Vr(),cm=ul(),fm=Te(),Vt=L(),vm=te(),gm=hl(),dm=ma(),Ch=Ra().set,za=lh(),pm=ch(),ym=Nt(),mm=Na(),qh=Pr(),Dt=ir(),$a=ar(),Ah=nr(),Lt=`Promise`,Ph=$a.CONSTRUCTOR,bm=$a.REJECTION_EVENT,xm=$a.SUBCLASSING,Ba=qh.getterFor(Lt),Tm=qh.set,sr=Dt&&Dt.prototype,Fe=Dt,It=sr,Rh=Ne.TypeError,ja=Ne.document,Ga=Ne.process,Ua=Ah.f,Om=Ua,Sm=!!(ja&&ja.createEvent&&Ne.dispatchEvent),Nh=`unhandledrejection`,Em=`rejectionhandled`,Oh=0,Ih=1,wm=2,Ha=1,Mh=2,Mt,Sh,Vh,Eh,_h=function(i){var e;return vm(i)&&Vt(e=i.then)?e:!1},Dh=function(i,e){var r=e.value,t=e.state===Ih,a=t?i.ok:i.fail,n=i.resolve,o=i.reject,s=i.domain,u,l,h;try{a?(t||(e.rejection===Mh&&qm(e),e.rejection=Ha),a===!0?u=r:(s&&s.enter(),u=a(r),s&&(s.exit(),h=!0)),u===i.promise?o(new Rh(`Promise-chain cycle`)):(l=_h(u))?lr(l,u,n,o):n(u)):o(r)}catch(c){s&&!h&&s.exit(),o(c)}},Lh=function(i,e){i.notified||(i.notified=!0,za(function(){for(var r=i.reactions,t;t=r.get();)Dh(t,i);i.notified=!1,e&&!i.rejection&&Cm(i)}))},kh=function(i,e,r){var t,a;Sm?(t=ja.createEvent(`Event`),t.promise=e,t.reason=r,t.initEvent(i,!1,!0),Ne.dispatchEvent(t)):t={promise:e,reason:r},!bm&&(a=Ne[`on`+i])?a(t):i===Nh&&pm(`Unhandled promise rejection`,r)},Cm=function(i){lr(Ch,Ne,function(){var e=i.facade,r=i.value,t=wh(i),a;if(t&&(a=ym(function(){_t?Ga.emit(`unhandledRejection`,r,e):kh(Nh,e,r)}),i.rejection=_t||wh(i)?Mh:Ha,a.error))throw a.value})},wh=function(i){return i.rejection!==Ha&&!i.parent},qm=function(i){lr(Ch,Ne,function(){var e=i.facade;_t?Ga.emit(`rejectionHandled`,e):kh(Em,e,i.value)})},or=function(i,e,r){return function(t){i(e,t,r)}},ur=function(i,e,r){i.done||(i.done=!0,r&&(i=r),i.value=e,i.state=wm,Lh(i,!0))},Fa=function(i,e,r){if(!i.done){i.done=!0,r&&(i=r);try{if(i.facade===e)throw new Rh(`Promise can't be resolved itself`);var t=_h(e);t?za(function(){var a={done:!1};try{lr(t,e,or(Fa,a,i),or(ur,a,i))}catch(n){ur(a,n,i)}}):(i.value=e,i.state=Ih,Lh(i,!1))}catch(a){ur({done:!1},a,i)}}};if(Ph&&(Fe=function(e){gm(this,It),fm(e),lr(Mt,this);var r=Ba(this);try{e(or(Fa,r),or(ur,r))}catch(t){ur(r,t)}},It=Fe.prototype,Mt=function(e){Tm(this,{type:Lt,done:!1,notified:!1,parent:!1,reactions:new mm,rejection:!1,state:Oh,value:null})},Mt.prototype=xh(It,`then`,function(e,r){var t=Ba(this),a=Ua(dm(this,Fe));return t.parent=!0,a.ok=Vt(e)?e:!0,a.fail=Vt(r)&&r,a.domain=_t?Ga.domain:void 0,t.state===Oh?t.reactions.add(a):za(function(){Dh(a,t)}),a.promise}),Sh=function(){var i=new Mt,e=Ba(i);this.promise=i,this.resolve=or(Fa,e),this.reject=or(ur,e)},Ah.f=Ua=function(i){return i===Fe||i===Vh?new Sh(i):Om(i)},!um&&Vt(Dt)&&sr!==Object.prototype)){Eh=sr.then,xm||xh(sr,`then`,function(e,r){var t=this;return new Fe(function(a,n){lr(Eh,t,a,n)}).then(e,r)},{unsafe:!0});try{delete sr.constructor}catch{}Th&&Th(sr,It)}om({global:!0,constructor:!0,wrap:!0,forced:Ph},{Promise:Fe});Vh=lm.Promise;hm(Fe,Lt,!1,!0);cm(Lt)});Fr=u((RE,jh)=>{"use strict";jh.exports=Object.create?Object.create(null):{}});Fh=u((NE,Uh)=>{"use strict";var Am=z(),Pm=Fr(),Rm=Am(`iterator`),Nm=Array.prototype;Uh.exports=function(i){return i!==void 0&&(Pm.Array===i||Nm[Rm]===i)}});Ya=u((IE,Gh)=>{"use strict";var Im=xe(),Mm=Tr(),zh=ke(),$h=z()(`iterator`),_m=Array.prototype;Gh.exports=function(i){if(!Mm(i))return zh(i,$h)||zh(i,`@@iterator`)||(Im(i)===`Arguments`?_m[$h]:void 0)}});Yh=u((ME,Hh)=>{"use strict";var Dm=H(),Lm=L(),km=J(),Bm=Sr(),jm=Ya(),Um=TypeError;Hh.exports=function(i,e){var r=arguments.length<2?jm(i):e;if(Lm(r))return km(Dm(r,i));throw new Um(Bm(i)+` is not iterable`)}});Qh=u((VE,Wh)=>{"use strict";var Fm=H(),Xh=J(),zm=ke();Wh.exports=function(i,e,r){var t,a;Xh(i);try{if(t=zm(i,`return`),!t){if(e===`throw`)throw r;return r}t=Fm(t,i)}catch(n){a=!0,t=n}if(e===`throw`)throw r;if(a)throw t;return Xh(t),r}});Xa=u((_E,ec)=>{"use strict";var $m=At(),Gm=H(),Hm=J(),Ym=Sr(),Xm=Fh(),Wm=St(),Kh=Or(),Qm=Yh(),Km=Ya(),Zh=Qh(),Zm=TypeError,kt=function(i,e){this.stopped=i,this.result=e},Jh=kt.prototype;ec.exports=function(i,e,r){var t=r&&r.that,a=!!(r&&r.AS_ENTRIES),n=!!(r&&r.IS_RECORD),o=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),u=$m(e,t),l,h,c,v,f,g,p,y=function(x){var T=l;return l=void 0,T&&Zh(T,`normal`),new kt(!0,x)},m=function(x){return a?(Hm(x),s?u(x[0],x[1],y):u(x[0],x[1])):s?u(x,y):u(x)};if(n)l=i.iterator;else if(o)l=i;else{if(h=Km(i),!h)throw new Zm(Ym(i)+` is not iterable`);if(Xm(h)){for(c=0,v=Wm(i);v>c;c++)if(f=m(i[c]),f&&Kh(Jh,f))return f;return new kt(!1)}l=Qm(i,h)}for(g=n?i.next:l.next;!(p=Gm(g,l)).done;){var O=p.value;try{f=m(O)}catch(x){if(l)Zh(l,`throw`,x);else throw x}if(typeof f==`object`&&f&&Kh(Jh,f))return f}return new kt(!1)}});nc=u((DE,ac)=>{"use strict";var tc=z()(`iterator`),ic=!1;try{rc=0,Wa={next:function(){return{done:!!rc++}},return:function(){ic=!0}},Wa[tc]=function(){return this},Array.from(Wa,function(){throw 2})}catch{}var rc,Wa;ac.exports=function(i,e){try{if(!e&&!ic)return!1}catch{return!1}var r=!1;try{var t={};t[tc]=function(){return{next:function(){return{done:r=!0}}}},i(t)}catch{}return r}});Qa=u((LE,sc)=>{"use strict";var eb=ir(),rb=nc();sc.exports=ar().CONSTRUCTOR||!rb(function(i){eb.all(i).then(void 0,function(){})})});oc=u(()=>{"use strict";var ib=ee(),ab=H(),nb=Te(),sb=nr(),ob=Nt(),ub=Xa();ib({target:`Promise`,stat:!0,forced:Qa()},{all:function(e){var r=this,t=sb.f(r),a=t.resolve,n=t.reject,o=ob(function(){var s=nb(r.resolve),u=[],l=0,h=1;ub(e,function(c){var v=l++,f=!1;h++,ab(s,r,c).then(function(g){f||(f=!0,u[v]=g,--h||a(u))},n)}),--h||a(u)});return o.error&&n(o.value),t.promise}})});lc=u(()=>{"use strict";var hb=ee(),cb=ve(),fb=ar().CONSTRUCTOR,Za=ir(),vb=Pe(),gb=L(),db=Re(),uc=Za&&Za.prototype;hb({target:`Promise`,proto:!0,forced:fb,real:!0},{catch:function(i){return this.then(void 0,i)}});!cb&&gb(Za)&&(Ka=vb(`Promise`).prototype.catch,uc.catch!==Ka&&db(uc,`catch`,Ka,{unsafe:!0}));var Ka});hc=u(()=>{"use strict";var pb=ee(),yb=H(),mb=Te(),bb=nr(),xb=Nt(),Tb=Xa();pb({target:`Promise`,stat:!0,forced:Qa()},{race:function(e){var r=this,t=bb.f(r),a=t.reject,n=xb(function(){var o=mb(r.resolve);Tb(e,function(s){yb(o,r,s).then(t.resolve,a)})});return n.error&&a(n.value),t.promise}})});cc=u(()=>{"use strict";var Sb=ee(),Eb=nr(),wb=ar().CONSTRUCTOR;Sb({target:`Promise`,stat:!0,forced:wb},{reject:function(e){var r=Eb.f(this),t=r.reject;return t(e),r.promise}})});vc=u((HE,fc)=>{"use strict";var Cb=J(),qb=te(),Ab=nr();fc.exports=function(i,e){if(Cb(i),qb(e)&&e.constructor===i)return e;var r=Ab.f(i),t=r.resolve;return t(e),r.promise}});pc=u(()=>{"use strict";var Pb=ee(),Rb=Pe(),gc=ve(),Nb=ir(),dc=ar().CONSTRUCTOR,Ib=vc(),Mb=Rb(`Promise`),Vb=gc&&!dc;Pb({target:`Promise`,stat:!0,forced:gc||dc},{resolve:function(e){return Ib(Vb&&this===Mb?Nb:this,e)}})});yc=u(()=>{"use strict";Bh();oc();lc();hc();cc();pc()});de=u((ZE,bc)=>{"use strict";var _b=pa(),Db=String;bc.exports=function(i){if(_b(i)===`Symbol`)throw new TypeError(`Cannot convert a Symbol value to a string`);return Db(i)}});Ja=u((JE,xc)=>{"use strict";var Lb=J();xc.exports=function(){var i=Lb(this),e=``;return i.hasIndices&&(e+=`d`),i.global&&(e+=`g`),i.ignoreCase&&(e+=`i`),i.multiline&&(e+=`m`),i.dotAll&&(e+=`s`),i.unicode&&(e+=`u`),i.unicodeSets&&(e+=`v`),i.sticky&&(e+=`y`),e}});an=u((ew,Tc)=>{"use strict";var en=_(),rn=M().RegExp,tn=en(function(){var i=rn(`a`,`y`);return i.lastIndex=2,i.exec(`abcd`)!==null}),Bb=tn||en(function(){return!rn(`a`,`y`).sticky});Tc.exports={BROKEN_CARET:tn||en(function(){var i=rn(`^r`,`gy`);return i.lastIndex=2,i.exec(`str`)!==null}),MISSED_STICKY:Bb,UNSUPPORTED_Y:tn}});Sc=u((rw,Oc)=>{"use strict";var Ub=fa(),Fb=Et();Oc.exports=Object.keys||function(e){return Ub(e,Fb)}});wc=u(Ec=>{"use strict";var zb=ue(),$b=Qi(),Gb=Oe(),Hb=J(),Yb=Ke(),Xb=Sc();Ec.f=zb&&!$b?Object.defineProperties:function(e,r){Hb(e);for(var t=Yb(r),a=Xb(r),n=a.length,o=0,s;n>o;)Gb.f(e,s=a[o++],t[s]);return e}});zr=u((iw,Ic)=>{"use strict";var Wb=J(),Qb=wc(),Cc=Et(),Kb=mt(),Zb=xa(),Jb=wr(),ex=yt(),qc=`>`,Ac=`<`,sn=`prototype`,on=`script`,Rc=ex(`IE_PROTO`),nn=function(){},Nc=function(i){return Ac+on+qc+i+Ac+`/`+on+qc},Pc=function(i){i.write(Nc(``)),i.close();var e=i.parentWindow.Object;return i=null,e},rx=function(){var i=Jb(`iframe`),e=`java`+on+`:`,r;return i.style.display=`none`,Zb.appendChild(i),i.src=String(e),r=i.contentWindow.document,r.open(),r.write(Nc(`document.F=Object`)),r.close(),r.F},Bt,jt=function(){try{Bt=new ActiveXObject(`htmlfile`)}catch{}jt=typeof document<`u`?document.domain&&Bt?Pc(Bt):rx():Pc(Bt);for(var i=Cc.length;i--;)delete jt[sn][Cc[i]];return jt()};Kb[Rc]=!0;Ic.exports=Object.create||function(e,r){var t;return e!==null?(nn[sn]=Wb(e),t=new nn,nn[sn]=null,t[Rc]=e):t=jt(),r===void 0?t:Qb.f(t,r)}});Vc=u((aw,Mc)=>{"use strict";var tx=_(),ax=M().RegExp;Mc.exports=tx(function(){var i=ax(`.`,`s`);return!(i.dotAll&&i.test(`
+`)&&i.flags===`s`)})});Dc=u((nw,_c)=>{"use strict";var nx=_(),ox=M().RegExp;_c.exports=nx(function(){var i=ox(`(?b)`,`g`);return i.exec(`b`).groups.a!==`b`||`b`.replace(i,`$c`)!==`bc`})});zt=u((sw,jc)=>{"use strict";var hr=H(),Ft=D(),ux=de(),lx=Ja(),hx=an(),cx=gt(),fx=zr(),vx=Pr().get,gx=Vc(),dx=Dc(),px=cx(`native-string-replace`,String.prototype.replace),Ut=RegExp.prototype.exec,un=Ut,yx=Ft(``.charAt),mx=Ft(``.indexOf),bx=Ft(``.replace),Lc=Ft(``.slice),ln=(function(){var i=/a/,e=/b*/g;return hr(Ut,i,`a`),hr(Ut,e,`a`),i.lastIndex!==0||e.lastIndex!==0})(),Bc=hx.BROKEN_CARET,hn=/()??/.exec(``)[1]!==void 0,xx=ln||hn||Bc||gx||dx,kc=function(i,e){for(var r=i.groups=fx(null),t=0;t0&&yx(a,r.lastIndex-1);r.lastIndex>0&&(!r.multiline||r.multiline&&p!==`
+`&&p!==`\r`&&p!==`\u2028`&&p!==`\u2029`)&&(v=`(?: (?:`+v+`))`,g=` `+g,f++),s=new RegExp(`^(?:`+v+`)`,c)}hn&&(s=new RegExp(`^`+v+`$(?!\\s)`,c)),ln&&(u=r.lastIndex);var y=hr(Ut,h?s:r,g);return h?y?(y.input=a,y[0]=Lc(y[0],f),y.index=r.lastIndex,r.lastIndex+=y[0].length):r.lastIndex=0:ln&&y&&(r.lastIndex=r.global?y.index+y[0].length:u),hn&&y&&y.length>1&&hr(px,y[0],s,function(){for(var m=1;m{"use strict";var Tx=ee(),Uc=zt();Tx({target:`RegExp`,proto:!0,forced:/./.exec!==Uc},{exec:Uc})});$t=u((lw,Yc)=>{"use strict";Fc();var zc=H(),$c=Re(),Ox=zt(),Gc=_(),Hc=z(),Sx=er(),Ex=Hc(`species`),cn=RegExp.prototype;Yc.exports=function(i,e,r,t){var a=Hc(i),n=!Gc(function(){var l={};return l[a]=function(){return 7},``[i](l)!==7}),o=n&&!Gc(function(){var l=!1,h=/a/;if(i===`split`){var c={};c[Ex]=function(){return h},h={constructor:c,flags:``},h[a]=/./[a]}return h.exec=function(){return l=!0,null},h[a](``),!l});if(!n||!o||r){var s=/./[a],u=e(a,``[i],function(l,h,c,v,f){var g=h.exec;return g===Ox||g===cn.exec?n&&!f?{done:!0,value:zc(s,h,c,v)}:{done:!0,value:zc(l,c,h,v)}:{done:!1}});$c(String.prototype,i,u[0]),$c(cn,a,u[1])}t&&Sx(cn[a],`sham`,!0)}});Kc=u((hw,Qc)=>{"use strict";var fn=D(),wx=Rr(),Cx=de(),qx=le(),Ax=fn(``.charAt),Xc=fn(``.charCodeAt),Px=fn(``.slice),Wc=function(i){return function(e,r){var t=Cx(qx(e)),a=wx(r),n=t.length,o,s;return a<0||a>=n?i?``:void 0:(o=Xc(t,a),o<55296||o>56319||a+1===n||(s=Xc(t,a+1))<56320||s>57343?i?Ax(t,a):o:i?Px(t,a,a+2):(o-55296<<10)+(s-56320)+65536)}};Qc.exports={codeAt:Wc(!1),charAt:Wc(!0)}});Gt=u((cw,Zc)=>{"use strict";var Rx=Kc().charAt;Zc.exports=function(i,e,r){return e+(r&&Rx(i,e).length||1)}});rf=u((fw,ef)=>{"use strict";var Nx=M(),Ix=_(),Jc=Nx.RegExp;ef.exports={correct:!Ix(function(){var i=!0;try{Jc(`.`,`d`)}catch{i=!1}var e={},r=``,t=i?`dgimsy`:`gimsy`,a=function(u,l){Object.defineProperty(e,u,{get:function(){return r+=l,!0}})},n={dotAll:`s`,global:`g`,ignoreCase:`i`,multiline:`m`,sticky:`y`};i&&(n.hasIndices=`d`);for(var o in n)a(o,n[o]);return Object.getOwnPropertyDescriptor(Jc.prototype,`flags`).get.call(e)!==t||r!==t})}});$r=u((vw,af)=>{"use strict";var Vx=H(),_x=he(),Dx=Or(),tf=rf(),Lx=Ja(),kx=RegExp.prototype;af.exports=tf.correct?function(i){return i.flags}:function(i){return!tf.correct&&Dx(kx,i)&&!_x(i,`flags`)?Vx(Lx,i):i.flags}});Ht=u((gw,sf)=>{"use strict";var nf=H(),Bx=J(),jx=L(),Ux=xe(),Fx=zt(),zx=TypeError;sf.exports=function(i,e){var r=i.exec;if(jx(r)){var t=nf(r,i,e);return t!==null&&Bx(t),t}if(Ux(i)===`RegExp`)return nf(Fx,i,e);throw new zx(`RegExp#exec called on incompatible receiver`)}});uf=u(()=>{"use strict";var $x=H(),Gx=D(),Hx=$t(),Yx=J(),Xx=te(),Wx=je(),Yt=de(),Qx=le(),Kx=ke(),Zx=Gt(),Jx=$r(),of=Ht(),vn=Gx(``.indexOf);Hx(`match`,function(i,e,r){return[function(a){var n=Qx(this),o=Xx(a)?Kx(a,i):void 0;if(o)return $x(o,a,n);var s=Yt(n);return new RegExp(a)[i](s)},function(t){var a=Yx(this),n=Yt(t),o=r(e,a,n);if(o.done)return o.value;var s=Yt(Jx(a));if(!~vn(s,`g`))return of(a,n);var u=!!~vn(s,`u`)||!!~vn(s,`v`);a.lastIndex=0;for(var l=[],h=0,c;(c=of(a,n))!==null;){var v=Yt(c[0]);l[h]=v,v===``&&(a.lastIndex=Zx(n,Wx(a.lastIndex),u)),h++}return h===0?null:l}]})});hf=u((yw,lf)=>{"use strict";var pn=D(),e1=Er(),r1=Math.floor,gn=pn(``.charAt),t1=pn(``.replace),dn=pn(``.slice),i1=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a1=/\$([$&'`]|\d{1,2})/g;lf.exports=function(i,e,r,t,a,n){var o=r+i.length,s=t.length,u=a1;return a!==void 0&&(a=e1(a),u=i1),t1(n,u,function(l,h){var c;switch(gn(h,0)){case`$`:return`$`;case`&`:return i;case"`":return dn(e,0,r);case`'`:return dn(e,o);case`<`:c=a[dn(h,1,-1)];break;default:var v=+h;if(v===0)return l;if(v>s){var f=r1(v/10);return f===0?l:f<=s?t[f-1]===void 0?gn(h,1):t[f-1]+gn(h,1):l}c=t[v-1]}return c===void 0?``:c})}});gf=u(()=>{"use strict";var n1=ba(),cf=H(),Xt=D(),s1=$t(),o1=_(),u1=J(),l1=L(),h1=te(),c1=Rr(),f1=je(),ze=de(),v1=le(),g1=Gt(),d1=ke(),p1=hf(),y1=$r(),m1=Ht(),mn=z()(`replace`),x1=Math.max,T1=Math.min,O1=Xt([].concat),yn=Xt([].push),cr=Xt(``.indexOf),ff=Xt(``.slice),S1=function(i){return i===void 0?i:String(i)},E1=(function(){return`a`.replace(/./,`$0`)===`$0`})(),vf=(function(){return/./[mn]?/./[mn](`a`,`$0`)===``:!1})();s1(`replace`,function(i,e,r){var t=vf?`$`:`$0`;return[function(n,o){var s=v1(this),u=h1(n)?d1(n,mn):void 0;return u?cf(u,n,s,o):cf(e,ze(s),n,o)},function(a,n){var o=u1(this),s=ze(a),u=l1(n);u||(n=ze(n));var l=ze(y1(o));if(typeof n==`string`&&!~cr(n,t)&&!~cr(n,`$<`)&&!~cr(l,`y`)){var h=r(e,o,s,n);if(h.done)return h.value}var c=!!~cr(l,`g`),v;c&&(v=!!~cr(l,`u`)||!!~cr(l,`v`),o.lastIndex=0);for(var f=[],g;g=m1(o,s),!(g===null||(yn(f,g),!c));)ze(g[0])===``&&(o.lastIndex=g1(s,f1(o.lastIndex),v));for(var y=``,m=0,O=0;O=m&&(y+=ff(s,m,T)+C,m=T+x.length)}return y+ff(s,m)}]},!!o1(function(){var i=/./;return i.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(i,`$`)!==`7`})||!E1||vf)});pf=u((xw,df)=>{"use strict";var C1=te(),q1=xe(),P1=z()(`match`);df.exports=function(i){var e;return C1(i)&&((e=i[P1])!==void 0?!!e:q1(i)===`RegExp`)}});Wt=u((Tw,yf)=>{"use strict";var R1=pf(),N1=TypeError;yf.exports=function(i){if(R1(i))throw new N1(`The method doesn't accept regular expressions`);return i}});Qt=u((Ow,mf)=>{"use strict";var M1=z()(`match`);mf.exports=function(i){var e=/./;try{`/./`[i](e)}catch{try{return e[M1]=!1,`/./`[i](e)}catch{}}return!1}});Tf=u(()=>{"use strict";var V1=ee(),_1=Dr(),D1=Cr().f,L1=je(),bf=de(),k1=Wt(),B1=le(),j1=Qt(),U1=ve(),F1=_1(``.slice),z1=Math.min,xf=j1(`startsWith`);V1({target:`String`,proto:!0,forced:!(!U1&&!xf&&!!(function(){var i=D1(String.prototype,`startsWith`);return i&&!i.writable})())&&!xf},{startsWith:function(e){var r=bf(B1(this));k1(e);var t=bf(e),a=L1(z1(arguments.length>1?arguments[1]:void 0,r.length));return F1(r,a,a+t.length)===t}})});Sf=u((ww,Of)=>{"use strict";var G1=z(),H1=zr(),Y1=Oe().f,bn=G1(`unscopables`),xn=Array.prototype;xn[bn]===void 0&&Y1(xn,bn,{configurable:!0,value:H1(null)});Of.exports=function(i){xn[bn][i]=!0}});wf=u((Cw,Ef)=>{"use strict";Ef.exports=!_()(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})});On=u((qw,qf)=>{"use strict";var W1=he(),Q1=L(),K1=Er(),Z1=yt(),J1=wf(),Cf=Z1(`IE_PROTO`),Tn=Object,e2=Tn.prototype;qf.exports=J1?Tn.getPrototypeOf:function(i){var e=K1(i);if(W1(e,Cf))return e[Cf];var r=e.constructor;return Q1(r)&&e instanceof r?r.prototype:e instanceof Tn?e2:null}});Cn=u((Aw,Rf)=>{"use strict";var r2=_(),t2=L(),i2=te(),a2=zr(),Af=On(),n2=Re(),s2=z(),o2=ve(),wn=s2(`iterator`),Pf=!1,Se,Sn,En;[].keys&&(En=[].keys(),`next`in En?(Sn=Af(Af(En)),Sn!==Object.prototype&&(Se=Sn)):Pf=!0);!i2(Se)||r2(function(){var i={};return Se[wn].call(i)!==i})?Se={}:o2&&(Se=a2(Se));t2(Se[wn])||n2(Se,wn,function(){return this});Rf.exports={IteratorPrototype:Se,BUGGY_SAFARI_ITERATORS:Pf}});If=u((Pw,Nf)=>{"use strict";var l2=Cn().IteratorPrototype,h2=zr(),c2=lt(),f2=Vr(),v2=Fr(),g2=function(){return this};Nf.exports=function(i,e,r,t){var a=e+` Iterator`;return i.prototype=h2(l2,{next:c2(+!t,r)}),f2(i,a,!1,!0),v2[a]=g2,i}});zf=u((Rw,Ff)=>{"use strict";var d2=ee(),p2=H(),Kt=ve(),jf=qr(),y2=L(),m2=If(),Mf=On(),Vf=da(),b2=Vr(),x2=er(),qn=Re(),T2=z(),_f=Fr(),Uf=Cn(),O2=jf.PROPER,S2=jf.CONFIGURABLE,Df=Uf.IteratorPrototype,Zt=Uf.BUGGY_SAFARI_ITERATORS,Gr=T2(`iterator`),Lf=`keys`,Hr=`values`,kf=`entries`,Bf=function(){return this};Ff.exports=function(i,e,r,t,a,n,o){m2(r,e,t);var s=function(m){if(m===a&&v)return v;if(!Zt&&m&&m in h)return h[m];switch(m){case Lf:return function(){return new r(this,m)};case Hr:return function(){return new r(this,m)};case kf:return function(){return new r(this,m)}}return function(){return new r(this)}},u=e+` Iterator`,l=!1,h=i.prototype,c=h[Gr]||h[`@@iterator`]||a&&h[a],v=!Zt&&c||s(a),f=e===`Array`&&h.entries||c,g,p,y;if(f&&(g=Mf(f.call(new i)),g!==Object.prototype&&g.next&&(!Kt&&Mf(g)!==Df&&(Vf?Vf(g,Df):y2(g[Gr])||qn(g,Gr,Bf)),b2(g,u,!0,!0),Kt&&(_f[u]=Bf))),O2&&a===Hr&&c&&c.name!==Hr&&(!Kt&&S2?x2(h,`name`,Hr):(l=!0,v=function(){return p2(c,this)})),a)if(p={values:s(Hr),keys:n?v:s(Lf),entries:s(kf)},o)for(y in p)(Zt||l||!(y in h))&&qn(h,y,p[y]);else d2({target:e,proto:!0,forced:Zt||l},p);return(!Kt||o)&&h[Gr]!==v&&qn(h,Gr,v,{name:a}),_f[e]=v,p}});Gf=u((Nw,$f)=>{"use strict";$f.exports=function(i,e){return{value:i,done:e}}});Pn=u((Iw,Qf)=>{"use strict";var E2=Ke(),An=Sf(),Hf=Fr(),Xf=Pr(),w2=Oe().f,C2=zf(),Jt=Gf(),q2=ve(),A2=ue(),Wf=`Array Iterator`,P2=Xf.set,R2=Xf.getterFor(Wf);Qf.exports=C2(Array,`Array`,function(i,e){P2(this,{type:Wf,target:E2(i),index:0,kind:e})},function(){var i=R2(this),e=i.target,r=i.index++;if(!e||r>=e.length)return i.target=null,Jt(void 0,!0);switch(i.kind){case`keys`:return Jt(r,!1);case`values`:return Jt(e[r],!1)}return Jt([r,e[r]],!1)},`values`);var Yf=Hf.Arguments=Hf.Array;An(`keys`);An(`values`);An(`entries`);if(!q2&&A2&&Yf.name!==`values`)try{w2(Yf,`name`,{value:`values`})}catch{}});Zf=u((Mw,Kf)=>{"use strict";Kf.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});rv=u((Vw,ev)=>{"use strict";var Rn=wr()(`span`).classList,Jf=Rn&&Rn.constructor&&Rn.constructor.prototype;ev.exports=Jf===Object.prototype?void 0:Jf});sv=u(()=>{"use strict";var tv=M(),av=Zf(),I2=rv(),Yr=Pn(),iv=er(),M2=Vr(),Nn=z()(`iterator`),In=Yr.values,nv=function(i,e){if(i){if(i[Nn]!==In)try{iv(i,Nn,In)}catch{i[Nn]=In}if(M2(i,e,!0),av[e]){for(var r in Yr)if(i[r]!==Yr[r])try{iv(i,r,Yr[r])}catch{i[r]=Yr[r]}}}};for(ei in av)nv(tv[ei]&&tv[ei].prototype,ei);var ei;nv(I2,`DOMTokenList`)});vv=u((Gw,fv)=>{"use strict";var _2=Te(),D2=Er(),L2=_i(),k2=St(),lv=TypeError,hv=`Reduce of empty array with no initial value`,cv=function(i){return function(e,r,t,a){var n=D2(e),o=L2(n),s=k2(n);if(_2(r),s===0&&t<2)throw new lv(hv);var u=i?s-1:0,l=i?-1:1;if(t<2)for(;;){if(u in o){a=o[u],u+=l;break}if(u+=l,i?u<0:s<=u)throw new lv(hv)}for(;i?u>=0:s>u;u+=l)u in o&&(a=r(a,o[u],u,n));return a}};fv.exports={left:cv(!1),right:cv(!0)}});Mn=u((Hw,gv)=>{"use strict";var B2=_();gv.exports=function(i,e){var r=[][i];return!!r&&B2(function(){r.call(null,e||function(){return 1},1)})}});pv=u(()=>{"use strict";var j2=ee(),U2=vv().left,F2=Mn(),dv=ct();j2({target:`Array`,proto:!0,forced:!Mr()&&dv>79&&dv<83||!F2(`reduce`)},{reduce:function(e){var r=arguments.length;return U2(this,e,r,r>1?arguments[1]:void 0)}})});bv=u(()=>{"use strict";var H2=ee(),Y2=Dr(),X2=Cr().f,W2=je(),yv=de(),Q2=Wt(),K2=le(),Z2=Qt(),J2=ve(),eT=Y2(``.slice),rT=Math.min,mv=Z2(`endsWith`);H2({target:`String`,proto:!0,forced:!(!J2&&!mv&&!!(function(){var i=X2(String.prototype,`endsWith`);return i&&!i.writable})())&&!mv},{endsWith:function(e){var r=yv(K2(this));Q2(e);var t=yv(e),a=arguments.length>1?arguments[1]:void 0,n=r.length,o=a===void 0?n:rT(W2(a),n);return eT(r,o-t.length,o)===t}})});Ov=u(()=>{"use strict";var Vn=H(),kn=D(),iT=$t(),aT=J(),nT=te(),sT=le(),oT=ma(),uT=Gt(),lT=je(),_n=de(),hT=ke(),cT=$r(),xv=Ht(),fT=an(),vT=_(),fr=fT.UNSUPPORTED_Y,gT=4294967295,dT=Math.min,Dn=kn([].push),Ln=kn(``.slice),ti=kn(``.indexOf),pT=!vT(function(){var i=/(?:)/,e=i.exec;i.exec=function(){return e.apply(this,arguments)};var r=`ab`.split(i);return r.length!==2||r[0]!==`a`||r[1]!==`b`}),Tv=`abbc`.split(/(b)*/)[1]===`c`||`test`.split(/(?:)/,-1).length!==4||`ab`.split(/(?:ab)*/).length!==2||`.`.split(/(.?)(.?)/).length!==4||`.`.split(/()()/).length>1||``.split(/.?/).length;iT(`split`,function(i,e,r){var t=`0`.split(void 0,0).length?function(a,n){return a===void 0&&n===0?[]:Vn(e,this,a,n)}:e;return[function(n,o){var s=sT(this),u=nT(n)?hT(n,i):void 0;return u?Vn(u,n,s,o):Vn(t,_n(s),n,o)},function(a,n){var o=aT(this),s=_n(a);if(!Tv){var u=r(t,o,s,n,t!==e);if(u.done)return u.value}var l=oT(o,RegExp),h=_n(cT(o)),c=!!~ti(h,`u`)||!!~ti(h,`v`);fr?~ti(h,`g`)||(h+=`g`):~ti(h,`y`)||(h+=`y`);var v=new l(fr?`^(?:`+o.source+`)`:o,h),f=n===void 0?gT:n>>>0;if(f===0)return[];if(s.length===0)return xv(v,s)===null?[s]:[];for(var g=0,p=0,y=[];p{"use strict";(function(){var i,e,r,t,a,n;typeof performance<`u`&&performance!==null&&performance.now?Xr.exports=function(){return performance.now()}:typeof process<`u`&&process!==null&&process.hrtime?(Xr.exports=function(){return(i()-a)/1e6},e=process.hrtime,i=function(){var o;return o=e(),o[0]*1e9+o[1]},t=i(),n=process.uptime()*1e9,a=t-n):Date.now?(Xr.exports=function(){return Date.now()-r},r=Date.now()):(Xr.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(Sv)});Cv=u((Jw,ni)=>{"use strict";var yT=Ev(),Ee=typeof window>`u`?global:window,ii=[`moz`,`webkit`],gr=`AnimationFrame`,dr=Ee[`request`+gr],Wr=Ee[`cancel`+gr]||Ee[`cancelRequest`+gr];for(vr=0;!dr&&vr{"use strict";qv.exports=`
+\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});Rv=u((rC,Pv)=>{"use strict";var mT=D(),bT=le(),xT=de(),Fn=jn(),Av=mT(``.replace),TT=RegExp(`^[`+Fn+`]+`),OT=RegExp(`(^|[^`+Fn+`])[`+Fn+`]+$`),Un=function(i){return function(e){var r=xT(bT(e));return i&1&&(r=Av(r,TT,``)),i&2&&(r=Av(r,OT,`$1`)),r}};Pv.exports={start:Un(1),end:Un(2),trim:Un(3)}});Vv=u((tC,Mv)=>{"use strict";var ST=qr().PROPER,ET=_(),Nv=jn(),Iv=`
`;Mv.exports=function(i){return ET(function(){return!!Nv[i]()||Iv[i]()!==Iv||ST&&Nv[i].name!==i})}});_v=u(()=>{"use strict";var wT=ee(),CT=Rv().trim;wT({target:`String`,proto:!0,forced:Vv()(`trim`)},{trim:function(){return CT(this)}})});Lv=u((nC,Dv)=>{"use strict";Dv.exports=function(i){this.ok=!1,this.alpha=1,i.charAt(0)==`#`&&(i=i.substr(1,6)),i=i.replace(/ /g,``),i=i.toLowerCase();var e={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`00ffff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000000`,blanchedalmond:`ffebcd`,blue:`0000ff`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`00ffff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dodgerblue:`1e90ff`,feldspar:`d19275`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`ff00ff`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,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`,lightgrey:`d3d3d3`,lightgreen:`90ee90`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslateblue:`8470ff`,lightslategray:`778899`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`00ff00`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`ff00ff`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370d8`,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:`d87093`,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`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,violetred:`d02090`,wheat:`f5deb3`,white:`ffffff`,whitesmoke:`f5f5f5`,yellow:`ffff00`,yellowgreen:`9acd32`};i=e[i]||i;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:[`rgba(123, 234, 45, 0.8)`,`rgba(255,234,245,1.0)`],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3]),parseFloat(u[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:[`rgb(123, 234, 45)`,`rgb(255,234,245)`],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:[`#00ff00`,`336699`],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:[`#fb0`,`f0f`],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],t=0;t3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return`rgb(`+this.r+`, `+this.g+`, `+this.b+`)`},this.toRGBA=function(){return`rgba(`+this.r+`, `+this.g+`, `+this.b+`, `+this.alpha+`)`},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u=`0`+u),l.length==1&&(l=`0`+l),h.length==1&&(h=`0`+h),`#`+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l `+p.toRGB()+` -> `+p.toHex());g.appendChild(y),g.appendChild(m),f.appendChild(g)}catch{}return f}}});Bv=u(()=>{"use strict";var AT=ee(),PT=Dr(),RT=ha().indexOf,NT=Mn(),zn=PT([].indexOf),kv=!!zn&&1/zn([1],1,-0)<0;AT({target:`Array`,proto:!0,forced:kv||!NT(`indexOf`)},{indexOf:function(e){var r=arguments.length>1?arguments[1]:void 0;return kv?zn(this,e,r)||0:RT(this,e,r)}})});Uv=u(()=>{"use strict";var MT=ee(),VT=D(),_T=Wt(),DT=le(),jv=de(),LT=Qt(),kT=VT(``.indexOf);MT({target:`String`,proto:!0,forced:!LT(`includes`)},{includes:function(e){return!!~kT(jv(DT(this)),jv(_T(e)),arguments.length>1?arguments[1]:void 0)}})});zv=u((hC,Fv)=>{"use strict";var BT=xe();Fv.exports=Array.isArray||function(e){return BT(e)===`Array`}});Gv=u(()=>{"use strict";var jT=ee(),UT=D(),FT=zv(),zT=UT([].reverse),$v=[1,2];jT({target:`Array`,proto:!0,forced:String($v)===String($v.reverse())},{reverse:function(){return FT(this)&&(this.length=this.length),zT(this)}})});ag=u(()=>{"use strict";var XT=qr().PROPER,WT=Re(),QT=J(),rg=de(),KT=_(),ZT=$r(),Hn=`toString`,tg=RegExp.prototype,ig=tg[Hn],JT=KT(function(){return ig.call({source:`a`,flags:`b`})!==`/a/b`}),eO=XT&&ig.name!==Hn;(JT||eO)&&WT(tg,Hn,function(){var e=QT(this),r=rg(e.source),t=rg(ZT(e));return`/`+r+`/`+t},{unsafe:!0})});v(yc(),1);v(uf(),1);v(gf(),1);v(Tf(),1);v(Pn(),1);v(sv(),1);v(pv(),1);v(bv(),1);v(Ov(),1);hi=v(Cv(),1);v(_v(),1);ci=v(Lv(),1);v(Bv(),1);v(Uv(),1);v(Gv(),1);Zv=function(i,e){return(Zv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a])})(i,e)};Me=Math.PI;;we=Math.PI/180;(function(i){function e(){return a((function(s,u,l){return s.relative&&(s.x1!==void 0&&(s.x1+=u),s.y1!==void 0&&(s.y1+=l),s.x2!==void 0&&(s.x2+=u),s.y2!==void 0&&(s.y2+=l),s.x!==void 0&&(s.x+=u),s.y!==void 0&&(s.y+=l),s.relative=!1),s}))}function r(){var s=NaN,u=NaN,l=NaN,h=NaN;return a((function(c,v,f){return c.type&b.SMOOTH_CURVE_TO&&(c.type=b.CURVE_TO,s=isNaN(s)?v:s,u=isNaN(u)?f:u,c.x1=c.relative?v-s:2*v-s,c.y1=c.relative?f-u:2*f-u),c.type&b.CURVE_TO?(s=c.relative?v+c.x2:c.x2,u=c.relative?f+c.y2:c.y2):(s=NaN,u=NaN),c.type&b.SMOOTH_QUAD_TO&&(c.type=b.QUAD_TO,l=isNaN(l)?v:l,h=isNaN(h)?f:h,c.x1=c.relative?v-l:2*v-l,c.y1=c.relative?f-h:2*f-h),c.type&b.QUAD_TO?(l=c.relative?v+c.x1:c.x1,h=c.relative?f+c.y1:c.y1):(l=NaN,h=NaN),c}))}function t(){var s=NaN,u=NaN;return a((function(l,h,c){if(l.type&b.SMOOTH_QUAD_TO&&(l.type=b.QUAD_TO,s=isNaN(s)?h:s,u=isNaN(u)?c:u,l.x1=l.relative?h-s:2*h-s,l.y1=l.relative?c-u:2*c-u),l.type&b.QUAD_TO){s=l.relative?h+l.x1:l.x1,u=l.relative?c+l.y1:l.y1;var v=l.x1,f=l.y1;l.type=b.CURVE_TO,l.x1=((l.relative?0:h)+2*v)/3,l.y1=((l.relative?0:c)+2*f)/3,l.x2=(l.x+2*v)/3,l.y2=(l.y+2*f)/3}else s=NaN,u=NaN;return l}))}function a(s){var u=0,l=0,h=NaN,c=NaN;return function(v){if(isNaN(h)&&!(v.type&b.MOVE_TO))throw new Error(`path must start with moveto`);var f=s(v,u,l,h,c);return v.type&b.CLOSE_PATH&&(u=h,l=c),v.x!==void 0&&(u=v.relative?u+v.x:v.x),v.y!==void 0&&(l=v.relative?l+v.y:v.y),v.type&b.MOVE_TO&&(h=u,c=l),f}}function n(s,u,l,h,c,v){return ye(s,u,l,h,c,v),a((function(f,g,p,y){var m=f.x1,O=f.x2,x=f.relative&&!isNaN(y),T=f.x!==void 0?f.x:x?0:g,E=f.y!==void 0?f.y:x?0:p;function C(ce){return ce*ce}f.type&b.HORIZ_LINE_TO&&u!==0&&(f.type=b.LINE_TO,f.y=f.relative?0:p),f.type&b.VERT_LINE_TO&&l!==0&&(f.type=b.LINE_TO,f.x=f.relative?0:g),f.x!==void 0&&(f.x=f.x*s+E*l+(x?0:c)),f.y!==void 0&&(f.y=T*u+f.y*h+(x?0:v)),f.x1!==void 0&&(f.x1=f.x1*s+f.y1*l+(x?0:c)),f.y1!==void 0&&(f.y1=m*u+f.y1*h+(x?0:v)),f.x2!==void 0&&(f.x2=f.x2*s+f.y2*l+(x?0:c)),f.y2!==void 0&&(f.y2=O*u+f.y2*h+(x?0:v));var S=s*h-u*l;if(f.xRot!==void 0&&(s!==1||u!==0||l!==0||h!==1))if(S===0)delete f.rX,delete f.rY,delete f.xRot,delete f.lArcFlag,delete f.sweepFlag,f.type=b.LINE_TO;else{var A=f.xRot*Math.PI/180,P=Math.sin(A),V=Math.cos(A),k=1/C(f.rX),N=1/C(f.rY),X=C(V)*k+C(P)*N,W=2*P*V*(k-N),G=C(P)*k+C(V)*N,Q=X*h*h-W*u*h+G*u*u,Y=W*(s*h+u*l)-2*(X*l*h+G*s*u),K=X*l*l-W*s*l+G*s*s,I=(Math.atan2(Y,Q-K)+Math.PI)%Math.PI/2,R=Math.sin(I),re=Math.cos(I);f.rX=Math.abs(S)/Math.sqrt(Q*C(re)+Y*R*re+K*C(R)),f.rY=Math.abs(S)/Math.sqrt(Q*C(R)-Y*R*re+K*C(re)),f.xRot=180*I/Math.PI}return f.sweepFlag!==void 0&&0>S&&(f.sweepFlag=+!f.sweepFlag),f}))}function o(){return function(s){var u={};for(var l in s)u[l]=s[l];return u}}i.ROUND=function(s){function u(l){return Math.round(l*s)/s}return s===void 0&&(s=0x9184e72a000),ye(s),function(l){return l.x1!==void 0&&(l.x1=u(l.x1)),l.y1!==void 0&&(l.y1=u(l.y1)),l.x2!==void 0&&(l.x2=u(l.x2)),l.y2!==void 0&&(l.y2=u(l.y2)),l.x!==void 0&&(l.x=u(l.x)),l.y!==void 0&&(l.y=u(l.y)),l.rX!==void 0&&(l.rX=u(l.rX)),l.rY!==void 0&&(l.rY=u(l.rY)),l}},i.TO_ABS=e,i.TO_REL=function(){return a((function(s,u,l){return s.relative||(s.x1!==void 0&&(s.x1-=u),s.y1!==void 0&&(s.y1-=l),s.x2!==void 0&&(s.x2-=u),s.y2!==void 0&&(s.y2-=l),s.x!==void 0&&(s.x-=u),s.y!==void 0&&(s.y-=l),s.relative=!0),s}))},i.NORMALIZE_HVZ=function(s,u,l){return s===void 0&&(s=!0),u===void 0&&(u=!0),l===void 0&&(l=!0),a((function(h,c,v,f,g){if(isNaN(f)&&!(h.type&b.MOVE_TO))throw new Error(`path must start with moveto`);return u&&h.type&b.HORIZ_LINE_TO&&(h.type=b.LINE_TO,h.y=h.relative?0:v),l&&h.type&b.VERT_LINE_TO&&(h.type=b.LINE_TO,h.x=h.relative?0:c),s&&h.type&b.CLOSE_PATH&&(h.type=b.LINE_TO,h.x=h.relative?f-c:f,h.y=h.relative?g-v:g),h.type&b.ARC&&(h.rX===0||h.rY===0)&&(h.type=b.LINE_TO,delete h.rX,delete h.rY,delete h.xRot,delete h.lArcFlag,delete h.sweepFlag),h}))},i.NORMALIZE_ST=r,i.QT_TO_C=t,i.INFO=a,i.SANITIZE=function(s){s===void 0&&(s=0),ye(s);var u=NaN,l=NaN,h=NaN,c=NaN;return a((function(v,f,g,p,y){var m=Math.abs,O=!1,x=0,T=0;if(v.type&b.SMOOTH_CURVE_TO&&(x=isNaN(u)?0:f-u,T=isNaN(l)?0:g-l),v.type&(b.CURVE_TO|b.SMOOTH_CURVE_TO)?(u=v.relative?f+v.x2:v.x2,l=v.relative?g+v.y2:v.y2):(u=NaN,l=NaN),v.type&b.SMOOTH_QUAD_TO?(h=isNaN(h)?f:2*f-h,c=isNaN(c)?g:2*g-c):v.type&b.QUAD_TO?(h=v.relative?f+v.x1:v.x1,c=v.relative?g+v.y1:v.y2):(h=NaN,c=NaN),v.type&b.LINE_COMMANDS||v.type&b.ARC&&(v.rX===0||v.rY===0||!v.lArcFlag)||v.type&b.CURVE_TO||v.type&b.SMOOTH_CURVE_TO||v.type&b.QUAD_TO||v.type&b.SMOOTH_QUAD_TO){var E=v.x===void 0?0:v.relative?v.x:v.x-f,C=v.y===void 0?0:v.relative?v.y:v.y-g;x=isNaN(h)?v.x1===void 0?x:v.relative?v.x:v.x1-f:h-f,T=isNaN(c)?v.y1===void 0?T:v.relative?v.y:v.y1-g:c-g;var S=v.x2===void 0?0:v.relative?v.x:v.x2-f,A=v.y2===void 0?0:v.relative?v.y:v.y2-g;m(E)<=s&&m(C)<=s&&m(x)<=s&&m(T)<=s&&m(S)<=s&&m(A)<=s&&(O=!0)}return v.type&b.CLOSE_PATH&&m(f-p)<=s&&m(g-y)<=s&&(O=!0),O?[]:v}))},i.MATRIX=n,i.ROTATE=function(s,u,l){u===void 0&&(u=0),l===void 0&&(l=0),ye(s,u,l);var h=Math.sin(s),c=Math.cos(s);return n(c,h,-h,c,u-u*c+l*h,l-u*h-l*c)},i.TRANSLATE=function(s,u){return u===void 0&&(u=0),ye(s,u),n(1,0,0,1,s,u)},i.SCALE=function(s,u){return u===void 0&&(u=s),ye(s,u),n(s,0,0,u,0,0)},i.SKEW_X=function(s){return ye(s),n(1,0,Math.atan(s),1,0,0)},i.SKEW_Y=function(s){return ye(s),n(1,Math.atan(s),0,1,0,0)},i.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),ye(s),n(-1,0,0,1,s,0)},i.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),ye(s),n(1,0,0,-1,0,s)},i.A_TO_C=function(){return a((function(s,u,l){return b.ARC===s.type?(function(h,c,v){var f,g,p,y;h.cX||$n(h,c,v);for(var m=Math.min(h.phi1,h.phi2),O=Math.max(h.phi1,h.phi2)-m,x=Math.ceil(O/90),T=new Array(x),E=c,C=v,S=0;Sc.maxX&&(c.maxX=R),Rc.maxY&&(c.maxY=R),RI&&y(Qv(f,p.x1,p.x2,p.x,I));for(var T=0,E=Wv(g,p.y1,p.y2,p.y);TI&&m(Qv(g,p.y1,p.y2,p.y,I))}if(p.type&b.ARC){y(p.x),m(p.y),$n(p,f,g);for(var C=p.xRot/180*Math.PI,S=Math.cos(C)*p.rX,A=Math.sin(C)*p.rX,P=-Math.sin(C)*p.rY,V=Math.cos(C)*p.rY,k=p.phi1p.phi2?[p.phi2+360,p.phi1+360]:[p.phi2,p.phi1],N=k[0],X=k[1],W=function(R){var re=R[0],ce=R[1],me=180*Math.atan2(ce,re)/Math.PI;return meN&&IN&&Ih)throw new SyntaxError(`Expected positive number, got "`+h+`" at index "`+o+`"`)}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!==`0`&&this.curNumber!==`1`)throw new SyntaxError(`Expected a flag, got "`+this.curNumber+`" at index "`+o+`"`)}this.curArgs.push(h),this.curArgs.length===YT[this.curCommandType]&&(b.HORIZ_LINE_TO===this.curCommandType?n({type:b.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):b.VERT_LINE_TO===this.curCommandType?n({type:b.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===b.MOVE_TO||this.curCommandType===b.LINE_TO||this.curCommandType===b.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),b.MOVE_TO===this.curCommandType&&(this.curCommandType=b.LINE_TO)):this.curCommandType===b.CURVE_TO?n({type:b.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===b.SMOOTH_CURVE_TO?n({type:b.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===b.QUAD_TO?n({type:b.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===b.ARC&&n({type:b.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber=``,this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!GT(s))if(s===`,`&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!==`+`&&s!==`-`&&s!==`.`)if(l)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError(`Unterminated command at index `+o+`.`);if(!this.canParseCommandOrComma)throw new SyntaxError(`Unexpected character "`+s+`" at index `+o+`. Command cannot follow comma`);if(this.canParseCommandOrComma=!1,s!==`z`&&s!==`Z`)if(s===`h`||s===`H`)this.curCommandType=b.HORIZ_LINE_TO,this.curCommandRelative=s===`h`;else if(s===`v`||s===`V`)this.curCommandType=b.VERT_LINE_TO,this.curCommandRelative=s===`v`;else if(s===`m`||s===`M`)this.curCommandType=b.MOVE_TO,this.curCommandRelative=s===`m`;else if(s===`l`||s===`L`)this.curCommandType=b.LINE_TO,this.curCommandRelative=s===`l`;else if(s===`c`||s===`C`)this.curCommandType=b.CURVE_TO,this.curCommandRelative=s===`c`;else if(s===`s`||s===`S`)this.curCommandType=b.SMOOTH_CURVE_TO,this.curCommandRelative=s===`s`;else if(s===`q`||s===`Q`)this.curCommandType=b.QUAD_TO,this.curCommandRelative=s===`q`;else if(s===`t`||s===`T`)this.curCommandType=b.SMOOTH_QUAD_TO,this.curCommandRelative=s===`t`;else{if(s!==`a`&&s!==`A`)throw new SyntaxError(`Unexpected character "`+s+`" at index `+o+`.`);this.curCommandType=b.ARC,this.curCommandRelative=s===`a`}else t.push({type:b.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s===`.`}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return t},e.prototype.transform=function(r){return Object.create(this,{parse:{value:function(t,a){a===void 0&&(a=[]);for(var n=0,o=Object.getPrototypeOf(this).parse.call(this,t);n~.[:]+)/g;dO=/(\.[^\s+>~.[:]+)/g;pO=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi;yO=/(:[\w-]+\([^)]*\))/gi;mO=/(:[^\s+>~.[:]+)/g;bO=/([^\s+>~.[:]+)/g;pr=1e-8;w=(()=>{class i{constructor(r,t,a){this.document=r,this.name=t,this.value=a,this.isNormalizedColor=!1}static empty(r){return new i(r,`EMPTY`,``)}split(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:` `,{document:t,name:a}=this;return mr(this.getString()).trim().split(r).map(n=>new i(t,a,n))}hasValue(r){var{value:t}=this;return t!==null&&t!==``&&(r||t!==0)&&typeof t<`u`}isString(r){var{value:t}=this,a=typeof t==`string`;return!a||!r?a:r.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var r=this.getString();switch(!0){case r.endsWith(`px`):case/^[0-9]+$/.test(r):return!0;default:return!1}}setValue(r){return this.value=r,this}getValue(r){return typeof r>`u`||this.hasValue()?this.value:r}getNumber(r){if(!this.hasValue())return typeof r>`u`?0:parseFloat(r);var{value:t}=this,a=parseFloat(t);return this.isString(/%$/)&&(a/=100),a}getString(r){return typeof r>`u`||this.hasValue()?typeof this.value>`u`?``:String(this.value):String(r)}getColor(r){var t=this.getString(r);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=fO(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,``)}getPixels(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[a,n]=typeof r==`boolean`?[void 0,r]:[r],{viewPort:o}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(o.computeSize(`x`),o.computeSize(`y`));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(o.computeSize(`x`),o.computeSize(`y`));case this.isString(/vw$/):return this.getNumber()/100*o.computeSize(`x`);case this.isString(/vh$/):return this.getNumber()/100*o.computeSize(`y`);case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&n:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*o.computeSize(a);default:var s=this.getNumber();return t&&s<1?s*o.computeSize(a):s}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var r=this.getString(),t=/#([^)'"]+)/.exec(r);return t&&(t=t[1]),t||(t=r),this.document.definitions[t]}getFillStyleDefinition(r,t){var a=this.getDefinition();if(!a)return null;if(typeof a.createGradient==`function`)return a.createGradient(this.document.ctx,r,t);if(typeof a.createPattern==`function`){if(a.getHrefAttribute().hasValue()){var n=a.getAttribute(`patternTransform`);a=a.getHrefAttribute().getDefinition(),n.hasValue()&&a.getAttribute(`patternTransform`,!0).setValue(n.value)}return a.createPattern(this.document.ctx,r,t)}return null}getTextBaseline(){return this.hasValue()?i.textBaselineMapping[this.getString()]:null}addOpacity(r){for(var t=this.getColor(),a=t.length,n=0,o=0;o1&&arguments[1]!==void 0?arguments[1]:0,[t=r,a=r]=se(e);return new i(t,a)}static parseScale(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[t=r,a=t]=se(e);return new i(t,a)}static parsePath(e){for(var r=se(e),t=r.length,a=[],n=0;n0}runEvents(){if(this.working){var{screen:e,events:r,eventElements:t}=this,{style:a}=e.ctx.canvas;a&&(a.cursor=``),r.forEach((n,o)=>{for(var{run:s}=n,u=t[o];u;)s(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(e,r){if(!(!this.working||!r)){var{events:t,eventElements:a}=this;t.forEach((n,o)=>{var{x:s,y:u}=n;!a[o]&&r.isPointInPath&&r.isPointInPath(s,u)&&(a[o]=e)})}}checkBoundingBox(e,r){if(!(!this.working||!r)){var{events:t,eventElements:a}=this;t.forEach((n,o)=>{var{x:s,y:u}=n;!a[o]&&r.isPointInBox(s,u)&&(a[o]=e)})}}mapXY(e,r){for(var{window:t,ctx:a}=this.screen,n=new $(e,r),o=a.canvas;o;)n.x-=o.offsetLeft,n.y-=o.offsetTop,o=o.offsetParent;return t.scrollX&&(n.x+=t.scrollX),t.scrollY&&(n.y+=t.scrollY),n}onClick(e){var{x:r,y:t}=this.mapXY(e.clientX,e.clientY);this.events.push({type:`onclick`,x:r,y:t,run(a){a.onClick&&a.onClick()}})}onMouseMove(e){var{x:r,y:t}=this.mapXY(e.clientX,e.clientY);this.events.push({type:`onmousemove`,x:r,y:t,run(a){a.onMouseMove&&a.onMouseMove()}})}},yg=typeof window<`u`?window:null,mg=typeof fetch<`u`?fetch.bind(void 0):null,Eg=(()=>{class i{constructor(r){var{fetch:t=mg,window:a=yg}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=r,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Xn,this.mouse=new Wn(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=a,this.fetch=t}wait(r){this.waits.push(r)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var r=this.waits.every(t=>t());return r&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=r,r}setDefaults(r){r.strokeStyle=`rgba(0,0,0,0)`,r.lineCap=`butt`,r.lineJoin=`miter`,r.miterLimit=4}setViewBox(r){var{document:t,ctx:a,aspectRatio:n,width:o,desiredWidth:s,height:u,desiredHeight:l,minX:h=0,minY:c=0,refX:v,refY:f,clip:g=!1,clipX:p=0,clipY:y=0}=r,[O,x]=mr(n).replace(/^defer\s/,``).split(` `),T=O||`xMidYMid`,E=x||`meet`,C=o/s,S=u/l,A=Math.min(C,S),P=Math.max(C,S),V=s,k=l;E===`meet`&&(V*=A,k*=A),E===`slice`&&(V*=P,k*=P);var N=new w(t,`refX`,v),X=new w(t,`refY`,f),W=N.hasValue()&&X.hasValue();if(W&&a.translate(-A*N.getPixels(`x`),-A*X.getPixels(`y`)),g){var G=A*p,Q=A*y;a.beginPath(),a.moveTo(G,Q),a.lineTo(o,Q),a.lineTo(o,u),a.lineTo(G,u),a.closePath(),a.clip()}if(!W){var Y=E===`meet`&&A===S,K=E===`slice`&&P===S,I=E===`meet`&&A===C,R=E===`slice`&&P===C;T.startsWith(`xMid`)&&(Y||K)&&a.translate(o/2-V/2,0),T.endsWith(`YMid`)&&(I||R)&&a.translate(0,u/2-k/2),T.startsWith(`xMax`)&&(Y||K)&&a.translate(o-V,0),T.endsWith(`YMax`)&&(I||R)&&a.translate(0,u-k)}switch(!0){case T===`none`:a.scale(C,S);break;case E===`meet`:a.scale(A,A);break;case E===`slice`:a.scale(P,P);break}a.translate(-h,-c)}start(r){var{enableRedraw:t=!1,ignoreMouse:a=!1,ignoreAnimation:n=!1,ignoreDimensions:o=!1,ignoreClear:s=!1,forceRedraw:u,scaleWidth:l,scaleHeight:h,offsetX:c,offsetY:v}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:f,mouse:g}=this,p=1e3/f;if(this.frameDuration=p,this.readyPromise=new Promise(T=>{this.resolveReady=T}),this.isReady()&&this.render(r,o,s,l,h,c,v),!!t){var y=Date.now(),m=y,O=0,x=()=>{y=Date.now(),O=y-m,O>=p&&(m=y-O%p,this.shouldUpdate(n,u)&&(this.render(r,o,s,l,h,c,v),g.runEvents())),this.intervalId=(0,hi.default)(x)};a||g.start(),this.intervalId=(0,hi.default)(x)}}stop(){this.intervalId&&(hi.default.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(r,t){if(!r){var{frameDuration:a}=this;if(this.animations.reduce((o,s)=>s.update(a)||o,!1))return!0}return!!(typeof t==`function`&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(r,t,a,n,o,s,u){var{CLIENT_WIDTH:l,CLIENT_HEIGHT:h,viewPort:c,ctx:v,isFirstRender:f}=this,g=v.canvas;c.clear(),g.width&&g.height?c.setCurrent(g.width,g.height):c.setCurrent(l,h);var p=r.getStyle(`width`),y=r.getStyle(`height`);!t&&(f||typeof n!=`number`&&typeof o!=`number`)&&(p.hasValue()&&(g.width=p.getPixels(`x`),g.style&&(g.style.width=``.concat(g.width,`px`))),y.hasValue()&&(g.height=y.getPixels(`y`),g.style&&(g.style.height=``.concat(g.height,`px`))));var m=g.clientWidth||g.width,O=g.clientHeight||g.height;if(t&&p.hasValue()&&y.hasValue()&&(m=p.getPixels(`x`),O=y.getPixels(`y`)),c.setCurrent(m,O),typeof s==`number`&&r.getAttribute(`x`,!0).setValue(s),typeof u==`number`&&r.getAttribute(`y`,!0).setValue(u),typeof n==`number`||typeof o==`number`){var x=se(r.getAttribute(`viewBox`).getString()),T=0,E=0;if(typeof n==`number`){var C=r.getStyle(`width`);C.hasValue()?T=C.getPixels(`x`)/n:isNaN(x[2])||(T=x[2]/n)}if(typeof o==`number`){var S=r.getStyle(`height`);S.hasValue()?E=S.getPixels(`y`)/o:isNaN(x[3])||(E=x[3]/o)}T||(T=E),E||(E=T),r.getAttribute(`width`,!0).setValue(n),r.getAttribute(`height`,!0).setValue(o);var A=r.getStyle(`transform`,!0,!0);A.setValue(``.concat(A.getString(),` scale(`).concat(1/T,`, `).concat(1/E,`)`))}a||v.clearRect(0,0,m,O),r.render(v),f&&(this.isFirstRender=!1)}}return i.defaultWindow=yg,i.defaultFetch=mg,i})(),{defaultFetch:TO}=Eg,OO=typeof DOMParser<`u`?DOMParser:null,Qr=class{constructor(){var{fetch:e=TO,DOMParser:r=OO}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=r}parse(e){var r=this;return be(function*(){return e.startsWith(`<`)?r.parseFromString(e):r.load(e)})()}parseFromString(e){var r=new this.DOMParser;try{return this.checkDocument(r.parseFromString(e,`image/svg+xml`))}catch{return this.checkDocument(r.parseFromString(e,`text/xml`))}}checkDocument(e){var r=e.getElementsByTagName(`parsererror`)[0];if(r)throw new Error(r.textContent);return e}load(e){var r=this;return be(function*(){var a=yield(yield r.fetch(e)).text();return r.parseFromString(a)})()}},Qn=class{constructor(e,r){this.type=`translate`,this.point=null,this.point=$.parse(r)}apply(e){var{x:r,y:t}=this.point;e.translate(r||0,t||0)}unapply(e){var{x:r,y:t}=this.point;e.translate(-1*r||0,-1*t||0)}applyToPoint(e){var{x:r,y:t}=this.point;e.applyTransform([1,0,0,1,r||0,t||0])}},Kn=class{constructor(e,r,t){this.type=`rotate`,this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var a=se(r);this.angle=new w(e,`angle`,a[0]),this.originX=t[0],this.originY=t[1],this.cx=a[1]||0,this.cy=a[2]||0}apply(e){var{cx:r,cy:t,originX:a,originY:n,angle:o}=this,s=r+a.getPixels(`x`),u=t+n.getPixels(`y`);e.translate(s,u),e.rotate(o.getRadians()),e.translate(-s,-u)}unapply(e){var{cx:r,cy:t,originX:a,originY:n,angle:o}=this,s=r+a.getPixels(`x`),u=t+n.getPixels(`y`);e.translate(s,u),e.rotate(-1*o.getRadians()),e.translate(-s,-u)}applyToPoint(e){var{cx:r,cy:t,angle:a}=this,n=a.getRadians();e.applyTransform([1,0,0,1,r||0,t||0]),e.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),e.applyTransform([1,0,0,1,-r||0,-t||0])}},Zn=class{constructor(e,r,t){this.type=`scale`,this.scale=null,this.originX=null,this.originY=null;var a=$.parseScale(r);(a.x===0||a.y===0)&&(a.x=1e-8,a.y=1e-8),this.scale=a,this.originX=t[0],this.originY=t[1]}apply(e){var{scale:{x:r,y:t},originX:a,originY:n}=this,o=a.getPixels(`x`),s=n.getPixels(`y`);e.translate(o,s),e.scale(r,t||r),e.translate(-o,-s)}unapply(e){var{scale:{x:r,y:t},originX:a,originY:n}=this,o=a.getPixels(`x`),s=n.getPixels(`y`);e.translate(o,s),e.scale(1/r,1/t||r),e.translate(-o,-s)}applyToPoint(e){var{x:r,y:t}=this.scale;e.applyTransform([r||0,0,0,t||0,0,0])}},fi=class{constructor(e,r,t){this.type=`matrix`,this.matrix=[],this.originX=null,this.originY=null,this.matrix=se(r),this.originX=t[0],this.originY=t[1]}apply(e){var{originX:r,originY:t,matrix:a}=this,n=r.getPixels(`x`),o=t.getPixels(`y`);e.translate(n,o),e.transform(a[0],a[1],a[2],a[3],a[4],a[5]),e.translate(-n,-o)}unapply(e){var{originX:r,originY:t,matrix:a}=this,n=a[0],o=a[2],s=a[4],u=a[1],l=a[3],h=a[5],c=0,v=0,f=1,g=1/(n*(l*f-h*v)-o*(u*f-h*c)+s*(u*v-l*c)),p=r.getPixels(`x`),y=t.getPixels(`y`);e.translate(p,y),e.transform(g*(l*f-h*v),g*(h*c-u*f),g*(s*v-o*f),g*(n*f-s*c),g*(o*h-s*l),g*(s*u-n*h)),e.translate(-p,-y)}applyToPoint(e){e.applyTransform(this.matrix)}},vi=class extends fi{constructor(e,r,t){super(e,r,t),this.type=`skew`,this.angle=null,this.angle=new w(e,`angle`,r)}},Jn=class extends vi{constructor(e,r,t){super(e,r,t),this.type=`skewX`,this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}},es=class extends vi{constructor(e,r,t){super(e,r,t),this.type=`skewY`,this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}};Ms=(()=>{class i{constructor(r,t,a){this.document=r,this.transforms=[];SO(t).forEach(o=>{if(o!==`none`){var[s,u]=EO(o),l=i.transformTypes[s];typeof l<`u`&&this.transforms.push(new l(this.document,u,a))}})}static fromElement(r,t){var a=t.getStyle(`transform`,!1,!0),[n,o=n]=t.getStyle(`transform-origin`,!1,!0).split(),s=[n,o];return a.hasValue()?new i(r,a.getString(),s):null}apply(r){for(var{transforms:t}=this,a=t.length,n=0;n=0;n--)t[n].unapply(r)}applyToPoint(r){for(var{transforms:t}=this,a=t.length,n=0;n{class i{constructor(r,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=r,this.node=t,this.captureTextNodes=a,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue=``,this.parent=null,this.children=[],!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(u=>{var l=cO(u.nodeName);this.attributes[l]=new w(r,l,u.value)}),this.addStylesFromStyleDefinition(),this.getAttribute(`style`).hasValue())this.getAttribute(`style`).getString().split(`;`).map(u=>u.trim()).forEach(u=>{if(u){var[l,h]=u.split(`:`).map(c=>c.trim());this.styles[l]=new w(r,l,h)}});var{definitions:o}=r,s=this.getAttribute(`id`);s.hasValue()&&(o[s.getString()]||(o[s.getString()]=this)),Array.from(t.childNodes).forEach(u=>{if(u.nodeType===1)this.addChild(u);else if(a&&(u.nodeType===3||u.nodeType===4)){var l=r.createTextNode(u);l.getText().length>0&&this.addChild(l)}})}}getAttribute(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=this.attributes[r];if(!a&&t){var n=new w(this.document,r,``);return this.attributes[r]=n,n}return a||w.empty(this.document)}getHrefAttribute(){for(var r in this.attributes)if(r===`href`||r.endsWith(`:href`))return this.attributes[r];return w.empty(this.document)}getStyle(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.styles[r];if(n)return n;var o=this.getAttribute(r);if(o!=null&&o.hasValue())return this.styles[r]=o,o;if(!a){var{parent:s}=this;if(s){var u=s.getStyle(r);if(u!=null&&u.hasValue())return u}}if(t){var l=new w(this.document,r,``);return this.styles[r]=l,l}return n||w.empty(this.document)}render(r){if(!(this.getStyle(`display`).getString()===`none`||this.getStyle(`visibility`).getString()===`hidden`)){if(r.save(),this.getStyle(`mask`).hasValue()){var t=this.getStyle(`mask`).getDefinition();t&&(this.applyEffects(r),t.apply(r,this))}else if(this.getStyle(`filter`).getValue(`none`)!==`none`){var a=this.getStyle(`filter`).getDefinition();a&&(this.applyEffects(r),a.apply(r,this))}else this.setContext(r),this.renderChildren(r),this.clearContext(r);r.restore()}}setContext(r){}applyEffects(r){var t=Ms.fromElement(this.document,this);t&&t.apply(r);var a=this.getStyle(`clip-path`,!1,!0);if(a.hasValue()){var n=a.getDefinition();n&&n.apply(r)}}clearContext(r){}renderChildren(r){this.children.forEach(t=>{t.render(r)})}addChild(r){var t=r instanceof i?r:this.document.createElement(r);t.parent=this,i.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(r){var t,{node:a}=this;if(typeof a.matches==`function`)return a.matches(r);var n=(t=a.getAttribute)===null||t===void 0?void 0:t.call(a,`class`);return!n||n===``?!1:n.split(` `).some(o=>`.`.concat(o)===r)}addStylesFromStyleDefinition(){var{styles:r,stylesSpecificity:t}=this.document;for(var a in r)if(!a.startsWith(`@`)&&this.matchesSelector(a)){var n=r[a],o=t[a];if(n)for(var s in n){var u=this.stylesSpecificity[s];typeof u>`u`&&(u=`000`),o>=u&&(this.styles[s]=n[s],this.stylesSpecificity[s]=o)}}}removeStyles(r,t){return t.reduce((n,o)=>{var s=r.getStyle(o);if(!s.hasValue())return n;var u=s.getString();return s.setValue(``),[...n,[o,u]]},[])}restoreStyles(r,t){t.forEach(a=>{var[n,o]=a;r.getStyle(n,!0).setValue(o)})}isFirstChild(){var r;return((r=this.parent)===null||r===void 0?void 0:r.children.indexOf(this))===0}}return i.ignoreChildTypes=[`title`],i})();rs=class extends B{constructor(e,r,t){super(e,r,t)}};yr=(()=>{class i{constructor(r,t,a,n,o,s){var u=s?typeof s==`string`?i.parse(s):s:{};this.fontFamily=o||u.fontFamily,this.fontSize=n||u.fontSize,this.fontStyle=r||u.fontStyle,this.fontWeight=a||u.fontWeight,this.fontVariant=t||u.fontVariant}static parse(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1?arguments[1]:void 0,a=``,n=``,o=``,s=``,u=``,l=mr(r).trim().split(` `),h={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(c=>{switch(!0){case!h.fontStyle&&i.styles.includes(c):c!==`inherit`&&(a=c),h.fontStyle=!0;break;case!h.fontVariant&&i.variants.includes(c):c!==`inherit`&&(n=c),h.fontStyle=!0,h.fontVariant=!0;break;case!h.fontWeight&&i.weights.includes(c):c!==`inherit`&&(o=c),h.fontStyle=!0,h.fontVariant=!0,h.fontWeight=!0;break;case!h.fontSize:c!==`inherit`&&([s]=c.split(`/`)),h.fontStyle=!0,h.fontVariant=!0,h.fontWeight=!0,h.fontSize=!0;break;default:c!==`inherit`&&(u+=c)}}),new i(a,n,o,s,u,t)}toString(){return[qO(this.fontStyle),this.fontVariant,AO(this.fontWeight),this.fontSize,CO(this.fontFamily)].join(` `).trim()}}return i.styles=`normal|italic|oblique|inherit`,i.variants=`normal|small-caps|inherit`,i.weights=`normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit`,i})();oe=class{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:NaN,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:NaN;this.x1=e,this.y1=r,this.x2=t,this.y2=a,this.addPoint(e,r),this.addPoint(t,a)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,r){typeof e<`u`&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),ethis.x2&&(this.x2=e)),typeof r<`u`&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=r,this.y2=r),rthis.y2&&(this.y2=r))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:r,y1:t,x2:a,y2:n}=e;this.addPoint(r,t),this.addPoint(a,n)}}sumCubic(e,r,t,a,n){return Math.pow(1-e,3)*r+3*Math.pow(1-e,2)*e*t+3*(1-e)*Math.pow(e,2)*a+Math.pow(e,3)*n}bezierCurveAdd(e,r,t,a,n){var o=6*r-12*t+6*a,s=-3*r+9*t-9*a+3*n,u=3*t-3*r;if(s===0){if(o===0)return;var l=-u/o;0=r.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`x`,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`y`,t=new $(this.command[e],this.command[r]);return this.makeAbsolute(t)}getAsControlPoint(e,r){var t=this.getPoint(e,r);return this.control=t,t}getAsCurrentPoint(e,r){var t=this.getPoint(e,r);return this.current=t,t}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==b.CURVE_TO&&e!==b.SMOOTH_CURVE_TO&&e!==b.QUAD_TO&&e!==b.SMOOTH_QUAD_TO)return this.current;var{current:{x:r,y:t},control:{x:a,y:n}}=this;return new $(2*r-a,2*t-n)}makeAbsolute(e){if(this.command.relative){var{x:r,y:t}=this.current;e.x+=r,e.y+=t}return e}addMarker(e,r,t){var{points:a,angles:n}=this;t&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=a[a.length-1].angleTo(t)),this.addMarkerAngle(e,r?r.angleTo(e):null)}addMarkerAngle(e,r){this.points.push(e),this.angles.push(r)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,r=e.length,t=0;t1&&arguments[1]!==void 0?arguments[1]:!1;if(!r){var t=this.getStyle(`fill`),a=this.getStyle(`fill-opacity`),n=this.getStyle(`stroke`),o=this.getStyle(`stroke-opacity`);if(t.isUrlDefinition()){var s=t.getFillStyleDefinition(this,a);s&&(e.fillStyle=s)}else if(t.hasValue()){t.getString()===`currentColor`&&t.setValue(this.getStyle(`color`).getColor());var u=t.getColor();u!==`inherit`&&(e.fillStyle=u===`none`?`rgba(0,0,0,0)`:u)}if(a.hasValue())e.fillStyle=new w(this.document,`fill`,e.fillStyle).addOpacity(a).getColor();if(n.isUrlDefinition()){var h=n.getFillStyleDefinition(this,o);h&&(e.strokeStyle=h)}else if(n.hasValue()){n.getString()===`currentColor`&&n.setValue(this.getStyle(`color`).getColor());var c=n.getString();c!==`inherit`&&(e.strokeStyle=c===`none`?`rgba(0,0,0,0)`:c)}if(o.hasValue())e.strokeStyle=new w(this.document,`stroke`,e.strokeStyle).addOpacity(o).getString();var f=this.getStyle(`stroke-width`);if(f.hasValue())e.lineWidth=f.getPixels()||1e-8;var p=this.getStyle(`stroke-linecap`),y=this.getStyle(`stroke-linejoin`),m=this.getStyle(`stroke-miterlimit`),O=this.getStyle(`stroke-dasharray`),x=this.getStyle(`stroke-dashoffset`);if(p.hasValue()&&(e.lineCap=p.getString()),y.hasValue()&&(e.lineJoin=y.getString()),m.hasValue()&&(e.miterLimit=m.getNumber()),O.hasValue()&&O.getString()!==`none`){var T=se(O.getString());typeof e.setLineDash<`u`?e.setLineDash(T):typeof e.webkitLineDash<`u`?e.webkitLineDash=T:typeof e.mozDash<`u`&&!(T.length===1&&T[0]===0)&&(e.mozDash=T);var E=x.getPixels();typeof e.lineDashOffset<`u`?e.lineDashOffset=E:typeof e.webkitLineDashOffset<`u`?e.webkitLineDashOffset=E:typeof e.mozDashOffset<`u`&&(e.mozDashOffset=E)}}if(this.modifiedEmSizeStack=!1,typeof e.font<`u`){var C=this.getStyle(`font`),S=this.getStyle(`font-style`),A=this.getStyle(`font-variant`),P=this.getStyle(`font-weight`),V=this.getStyle(`font-size`),k=this.getStyle(`font-family`),N=new yr(S.getString(),A.getString(),P.getString(),V.hasValue()?``.concat(V.getPixels(!0),`px`):``,k.getString(),yr.parse(C.getString(),e.font));S.setValue(N.fontStyle),A.setValue(N.fontVariant),P.setValue(N.fontWeight),V.setValue(N.fontSize),k.setValue(N.fontFamily),e.font=N.toString(),V.isPixels()&&(this.document.emSize=V.getPixels(),this.modifiedEmSizeStack=!0)}r||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}};F=class i extends qe{constructor(e,r,t){super(e,r,t),this.type=`path`,this.pathParser=null,this.pathParser=new q(this.getAttribute(`d`).getString())}path(e){var{pathParser:r}=this,t=new oe;for(r.reset(),e&&e.beginPath();!r.isEnd();)switch(r.next().type){case q.MOVE_TO:this.pathM(e,t);break;case q.LINE_TO:this.pathL(e,t);break;case q.HORIZ_LINE_TO:this.pathH(e,t);break;case q.VERT_LINE_TO:this.pathV(e,t);break;case q.CURVE_TO:this.pathC(e,t);break;case q.SMOOTH_CURVE_TO:this.pathS(e,t);break;case q.QUAD_TO:this.pathQ(e,t);break;case q.SMOOTH_QUAD_TO:this.pathT(e,t);break;case q.ARC:this.pathA(e,t);break;case q.CLOSE_PATH:this.pathZ(e,t);break}return t}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,r=e.getMarkerPoints(),t=e.getMarkerAngles();return r.map((n,o)=>[n,t[o]])}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var r=this.getStyle(`fill-rule`);e.fillStyle!==``&&(r.getString(`inherit`)!==`inherit`?e.fill(r.getString()):e.fill()),e.strokeStyle!==``&&(this.getAttribute(`vector-effect`).getString()===`non-scaling-stroke`?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var t=this.getMarkers();if(t){var a=t.length-1,n=this.getStyle(`marker-start`),o=this.getStyle(`marker-mid`),s=this.getStyle(`marker-end`);if(n.isUrlDefinition()){var u=n.getDefinition(),[l,h]=t[0];u.render(e,l,h)}if(o.isUrlDefinition())for(var c=o.getDefinition(),v=1;v1&&(a*=Math.sqrt(v),n*=Math.sqrt(v));var f=(s===u?-1:1)*Math.sqrt((Math.pow(a,2)*Math.pow(n,2)-Math.pow(a,2)*Math.pow(c.y,2)-Math.pow(n,2)*Math.pow(c.x,2))/(Math.pow(a,2)*Math.pow(c.y,2)+Math.pow(n,2)*Math.pow(c.x,2)));isNaN(f)&&(f=0);var g=new $(f*a*c.y/n,f*-n*c.x/a),p=new $((r.x+h.x)/2+Math.cos(l)*g.x-Math.sin(l)*g.y,(r.y+h.y)/2+Math.sin(l)*g.x+Math.cos(l)*g.y),y=lg([1,0],[(c.x-g.x)/a,(c.y-g.y)/n]),m=[(c.x-g.x)/a,(c.y-g.y)/n],O=[(-c.x-g.x)/a,(-c.y-g.y)/n],x=lg(m,O);return Yn(m,O)<=-1&&(x=Math.PI),Yn(m,O)>=1&&(x=0),{currentPoint:h,rX:a,rY:n,sweepFlag:u,xAxisRotation:l,centp:p,a1:y,ad:x}}pathA(e,r){var{pathParser:t}=this,{currentPoint:a,rX:n,rY:o,sweepFlag:s,xAxisRotation:u,centp:l,a1:h,ad:c}=i.pathA(t),v=1-s?1:-1,f=h+v*(c/2),g=new $(l.x+n*Math.cos(f),l.y+o*Math.sin(f));if(t.addMarkerAngle(g,f-v*Math.PI/2),t.addMarkerAngle(a,f-v*Math.PI),r.addPoint(a.x,a.y),e&&!isNaN(h)&&!isNaN(c)){var p=n>o?n:o,y=n>o?1:n/o,m=n>o?o/n:1;e.translate(l.x,l.y),e.rotate(u),e.scale(y,m),e.arc(0,0,p,h,h+c,!!(1-s)),e.scale(1/y,1/m),e.rotate(-u),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,r){i.pathZ(this.pathParser),e&&r.x1!==r.x2&&r.y1!==r.y2&&e.closePath()}};gi=class extends F{constructor(e,r,t){super(e,r,t),this.type=`glyph`,this.horizAdvX=this.getAttribute(`horiz-adv-x`).getNumber(),this.unicode=this.getAttribute(`unicode`).getString(),this.arabicForm=this.getAttribute(`arabic-form`).getString()}};Ye=class i extends qe{constructor(e,r,t){super(e,r,new.target===i?!0:t),this.type=`text`,this.x=0,this.y=0,this.measureCache=-1}setContext(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,r);var t=this.getStyle(`dominant-baseline`).getTextBaseline()||this.getStyle(`alignment-baseline`).getTextBaseline();t&&(e.textBaseline=t)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!==`text`)return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var r=null;return this.children.forEach((t,a)=>{var n=this.getChildBoundingBox(e,this,this,a);r?r.addBoundingBox(n):r=n}),r}getFontSize(){var{document:e,parent:r}=this,t=yr.parse(e.ctx.font).fontSize;return r.getStyle(`font-size`).getNumber(t)}getTElementBoundingBox(e){var r=this.getFontSize();return new oe(this.x,this.y-r,this.x+this.measureText(e),this.y)}getGlyph(e,r,t){var a=r[t],n=null;if(e.isArabic){var o=r.length,s=r[t-1],u=r[t+1],l=`isolated`;if((t===0||s===` `)&&t0&&s!==` `&&t0&&s!==` `&&(t===o-1||u===` `)&&(l=`initial`),typeof e.glyphs[a]<`u`){var h=e.glyphs[a];n=h instanceof gi?h:h[l]}}else n=e.glyphs[a];return n||(n=e.missingGlyph),n}getText(){return``}getTextFromNode(e){var r=e||this.node,t=Array.from(r.parentNode.childNodes),a=t.indexOf(r),n=t.length-1,o=mr(r.textContent||``);return a===0&&(o=uO(o)),a===n&&(o=lO(o)),o}renderChildren(e){if(this.type!==`text`){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((t,a)=>{this.renderChild(e,this,this,a)});var{mouse:r}=this.document.screen;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:r,parent:t}=this,a=this.getText(),n=t.getStyle(`font-family`).getDefinition();if(n){for(var{unitsPerEm:o}=n.fontFace,s=yr.parse(r.ctx.font),u=t.getStyle(`font-size`).getNumber(s.fontSize),l=t.getStyle(`font-style`).getString(s.fontStyle),h=u/o,c=n.isRTL?a.split(``).reverse().join(``):a,v=se(t.getAttribute(`dx`).getString()),f=c.length,g=0;g=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],r=e.getStyle(`text-anchor`).getString(`start`),t=!1,a=0;r===`start`&&!t||r===`end`&&t?a=e.x-this.minX:r===`end`&&!t||r===`start`&&t?a=e.x-this.maxX:a=e.x-(this.minX+this.maxX)/2;for(var n=this.textChunkStart;n{this.adjustChildCoordinatesRecursiveCore(e,this,this,t)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,r,t,a){var n=t.children[a];n.children.length>0?n.children.forEach((o,s)=>{r.adjustChildCoordinatesRecursiveCore(e,r,n,s)}):this.adjustChildCoordinates(e,r,t,a)}adjustChildCoordinates(e,r,t,a){var n=t.children[a];if(typeof n.measureText!=`function`)return n;e.save(),n.setContext(e,!0);var o=n.getAttribute(`x`),s=n.getAttribute(`y`),u=n.getAttribute(`dx`),l=n.getAttribute(`dy`),h=n.getStyle(`font-family`).getDefinition(),c=!!h&&h.isRTL;a===0&&(o.hasValue()||o.setValue(n.getInheritedAttribute(`x`)),s.hasValue()||s.setValue(n.getInheritedAttribute(`y`)),u.hasValue()||u.setValue(n.getInheritedAttribute(`dx`)),l.hasValue()||l.setValue(n.getInheritedAttribute(`dy`)));var v=n.measureText(e);return c&&(r.x-=v),o.hasValue()?(r.applyAnchoring(),n.x=o.getPixels(`x`),u.hasValue()&&(n.x+=u.getPixels(`x`))):(u.hasValue()&&(r.x+=u.getPixels(`x`)),n.x=r.x),r.x=n.x,c||(r.x+=v),s.hasValue()?(n.y=s.getPixels(`y`),l.hasValue()&&(n.y+=l.getPixels(`y`))):(l.hasValue()&&(r.y+=l.getPixels(`y`)),n.y=r.y),r.y=n.y,r.leafTexts.push(n),r.minX=Math.min(r.minX,n.x,n.x+v),r.maxX=Math.max(r.maxX,n.x,n.x+v),n.clearContext(e),e.restore(),n}getChildBoundingBox(e,r,t,a){var n=t.children[a];if(typeof n.getBoundingBox!=`function`)return null;var o=n.getBoundingBox(e);return o?(n.children.forEach((s,u)=>{var l=r.getChildBoundingBox(e,r,n,u);o.addBoundingBox(l)}),o):null}renderChild(e,r,t,a){var n=t.children[a];n.render(e),n.children.forEach((o,s)=>{r.renderChild(e,r,n,s)})}measureText(e){var{measureCache:r}=this;if(~r)return r;var t=this.getText(),a=this.measureTargetText(e,t);return this.measureCache=a,a}measureTargetText(e,r){if(!r.length)return 0;var{parent:t}=this,a=t.getStyle(`font-family`).getDefinition();if(a){for(var n=this.getFontSize(),o=a.isRTL?r.split(``).reverse().join(``):r,s=se(t.getAttribute(`dx`).getString()),u=o.length,l=0,h=0;h0?``:this.getTextFromNode()}getText(){return this.text}};ts=class extends di{constructor(){super(...arguments),this.type=`textNode`}};Xe=class extends qe{constructor(){super(...arguments),this.type=`svg`,this.root=!1}setContext(e){var r,{document:t}=this,{screen:a,window:n}=t,o=e.canvas;if(a.setDefaults(e),o.style&&typeof e.font<`u`&&n&&typeof n.getComputedStyle<`u`){e.font=n.getComputedStyle(o).getPropertyValue(`font`);var s=new w(t,`fontSize`,yr.parse(e.font).fontSize);s.hasValue()&&(t.rootEmSize=s.getPixels(`y`),t.emSize=t.rootEmSize)}this.getAttribute(`x`).hasValue()||this.getAttribute(`x`,!0).setValue(0),this.getAttribute(`y`).hasValue()||this.getAttribute(`y`,!0).setValue(0);var{width:u,height:l}=a.viewPort;this.getStyle(`width`).hasValue()||this.getStyle(`width`,!0).setValue(`100%`),this.getStyle(`height`).hasValue()||this.getStyle(`height`,!0).setValue(`100%`),this.getStyle(`color`).hasValue()||this.getStyle(`color`,!0).setValue(`black`);var h=this.getAttribute(`refX`),c=this.getAttribute(`refY`),v=this.getAttribute(`viewBox`),f=v.hasValue()?se(v.getString()):null,g=!this.root&&this.getStyle(`overflow`).getValue(`hidden`)!==`visible`,p=0,y=0,m=0,O=0;f&&(p=f[0],y=f[1]),this.root||(u=this.getStyle(`width`).getPixels(`x`),l=this.getStyle(`height`).getPixels(`y`),this.type===`marker`&&(m=p,O=y,p=0,y=0)),a.viewPort.setCurrent(u,l),this.node&&(!this.parent||((r=this.node.parentNode)===null||r===void 0?void 0:r.nodeName)===`foreignObject`)&&this.getStyle(`transform`,!1,!0).hasValue()&&!this.getStyle(`transform-origin`,!1,!0).hasValue()&&this.getStyle(`transform-origin`,!0,!0).setValue(`50% 50%`),super.setContext(e),e.translate(this.getAttribute(`x`).getPixels(`x`),this.getAttribute(`y`).getPixels(`y`)),f&&(u=f[2],l=f[3]),t.setViewBox({ctx:e,aspectRatio:this.getAttribute(`preserveAspectRatio`).getString(),width:a.viewPort.width,desiredWidth:u,height:a.viewPort.height,desiredHeight:l,minX:p,minY:y,refX:h.getValue(),refY:c.getValue(),clip:g,clipX:m,clipY:O}),f&&(a.viewPort.removeCurrent(),a.viewPort.setCurrent(u,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=this.getAttribute(`width`,!0),n=this.getAttribute(`height`,!0),o=this.getAttribute(`viewBox`),s=this.getAttribute(`style`),u=a.getNumber(0),l=n.getNumber(0);if(t)if(typeof t==`string`)this.getAttribute(`preserveAspectRatio`,!0).setValue(t);else{var h=this.getAttribute(`preserveAspectRatio`);h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,`$1`))}if(a.setValue(e),n.setValue(r),o.hasValue()||o.setValue(`0 0 `.concat(u||e,` `).concat(l||r)),s.hasValue()){var c=this.getStyle(`width`),v=this.getStyle(`height`);c.hasValue()&&c.setValue(``.concat(e,`px`)),v.hasValue()&&v.setValue(``.concat(r,`px`))}}};pi=class extends F{constructor(){super(...arguments),this.type=`rect`}path(e){var r=this.getAttribute(`x`).getPixels(`x`),t=this.getAttribute(`y`).getPixels(`y`),a=this.getStyle(`width`,!1,!0).getPixels(`x`),n=this.getStyle(`height`,!1,!0).getPixels(`y`),o=this.getAttribute(`rx`),s=this.getAttribute(`ry`),u=o.getPixels(`x`),l=s.getPixels(`y`);if(o.hasValue()&&!s.hasValue()&&(l=u),s.hasValue()&&!o.hasValue()&&(u=l),u=Math.min(u,a/2),l=Math.min(l,n/2),e){var h=4*((Math.sqrt(2)-1)/3);e.beginPath(),n>0&&a>0&&(e.moveTo(r+u,t),e.lineTo(r+a-u,t),e.bezierCurveTo(r+a-u+h*u,t,r+a,t+l-h*l,r+a,t+l),e.lineTo(r+a,t+n-l),e.bezierCurveTo(r+a,t+n-l+h*l,r+a-u+h*u,t+n,r+a-u,t+n),e.lineTo(r+u,t+n),e.bezierCurveTo(r+u-h*u,t+n,r,t+n-l+h*l,r,t+n-l),e.lineTo(r,t+l),e.bezierCurveTo(r,t+l-h*l,r+u-h*u,t,r+u,t),e.closePath())}return new oe(r,t,r+a,t+n)}getMarkers(){return null}};is=class extends F{constructor(){super(...arguments),this.type=`circle`}path(e){var r=this.getAttribute(`cx`).getPixels(`x`),t=this.getAttribute(`cy`).getPixels(`y`),a=this.getAttribute(`r`).getPixels();return e&&a>0&&(e.beginPath(),e.arc(r,t,a,0,Math.PI*2,!1),e.closePath()),new oe(r-a,t-a,r+a,t+a)}getMarkers(){return null}};as=class extends F{constructor(){super(...arguments),this.type=`ellipse`}path(e){var r=4*((Math.sqrt(2)-1)/3),t=this.getAttribute(`rx`).getPixels(`x`),a=this.getAttribute(`ry`).getPixels(`y`),n=this.getAttribute(`cx`).getPixels(`x`),o=this.getAttribute(`cy`).getPixels(`y`);return e&&t>0&&a>0&&(e.beginPath(),e.moveTo(n+t,o),e.bezierCurveTo(n+t,o+r*a,n+r*t,o+a,n,o+a),e.bezierCurveTo(n-r*t,o+a,n-t,o+r*a,n-t,o),e.bezierCurveTo(n-t,o-r*a,n-r*t,o-a,n,o-a),e.bezierCurveTo(n+r*t,o-a,n+t,o-r*a,n+t,o),e.closePath()),new oe(n-t,o-a,n+t,o+a)}getMarkers(){return null}};ns=class extends F{constructor(){super(...arguments),this.type=`line`}getPoints(){return[new $(this.getAttribute(`x1`).getPixels(`x`),this.getAttribute(`y1`).getPixels(`y`)),new $(this.getAttribute(`x2`).getPixels(`x`),this.getAttribute(`y2`).getPixels(`y`))]}path(e){var[{x:r,y:t},{x:a,y:n}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(r,t),e.lineTo(a,n)),new oe(r,t,a,n)}getMarkers(){var[e,r]=this.getPoints(),t=e.angleTo(r);return[[e,t],[r,t]]}};yi=class extends F{constructor(e,r,t){super(e,r,t),this.type=`polyline`,this.points=[],this.points=$.parsePath(this.getAttribute(`points`).getString())}path(e){var{points:r}=this,[{x:t,y:a}]=r,n=new oe(t,a);return e&&(e.beginPath(),e.moveTo(t,a)),r.forEach(o=>{var{x:s,y:u}=o;n.addPoint(s,u),e&&e.lineTo(s,u)}),n}getMarkers(){var{points:e}=this,r=e.length-1,t=[];return e.forEach((a,n)=>{n!==r&&t.push([a,a.angleTo(e[n+1])])}),t.length>0&&t.push([e[e.length-1],t[t.length-1][1]]),t}};ss=class extends yi{constructor(){super(...arguments),this.type=`polygon`}path(e){var r=super.path(e),[{x:t,y:a}]=this.points;return e&&(e.lineTo(t,a),e.closePath()),r}};os=class extends B{constructor(){super(...arguments),this.type=`pattern`}createPattern(e,r,t){var a=this.getStyle(`width`).getPixels(`x`,!0),n=this.getStyle(`height`).getPixels(`y`,!0),o=new Xe(this.document,null);o.attributes.viewBox=new w(this.document,`viewBox`,this.getAttribute(`viewBox`).getValue()),o.attributes.width=new w(this.document,`width`,``.concat(a,`px`)),o.attributes.height=new w(this.document,`height`,``.concat(n,`px`)),o.attributes.transform=new w(this.document,`transform`,this.getAttribute(`patternTransform`).getValue()),o.children=this.children;var s=this.document.createCanvas(a,n),u=s.getContext(`2d`),l=this.getAttribute(`x`),h=this.getAttribute(`y`);l.hasValue()&&h.hasValue()&&u.translate(l.getPixels(`x`,!0),h.getPixels(`y`,!0)),t.hasValue()?this.styles[`fill-opacity`]=t:Reflect.deleteProperty(this.styles,`fill-opacity`);for(var c=-1;c<=1;c++)for(var v=-1;v<=1;v++)u.save(),o.attributes.x=new w(this.document,`x`,c*s.width),o.attributes.y=new w(this.document,`y`,v*s.height),o.render(u),u.restore();return e.createPattern(s,`repeat`)}};us=class extends B{constructor(){super(...arguments),this.type=`marker`}render(e,r,t){if(r){var{x:a,y:n}=r,o=this.getAttribute(`orient`).getString(`auto`),s=this.getAttribute(`markerUnits`).getString(`strokeWidth`);e.translate(a,n),o===`auto`&&e.rotate(t),s===`strokeWidth`&&e.scale(e.lineWidth,e.lineWidth),e.save();var u=new Xe(this.document,null);u.type=this.type,u.attributes.viewBox=new w(this.document,`viewBox`,this.getAttribute(`viewBox`).getValue()),u.attributes.refX=new w(this.document,`refX`,this.getAttribute(`refX`).getValue()),u.attributes.refY=new w(this.document,`refY`,this.getAttribute(`refY`).getValue()),u.attributes.width=new w(this.document,`width`,this.getAttribute(`markerWidth`).getValue()),u.attributes.height=new w(this.document,`height`,this.getAttribute(`markerHeight`).getValue()),u.attributes.overflow=new w(this.document,`overflow`,this.getAttribute(`overflow`).getValue()),u.attributes.fill=new w(this.document,`fill`,this.getAttribute(`fill`).getColor(`black`)),u.attributes.stroke=new w(this.document,`stroke`,this.getAttribute(`stroke`).getValue(`none`)),u.children=this.children,u.render(e),e.restore(),s===`strokeWidth`&&e.scale(1/e.lineWidth,1/e.lineWidth),o===`auto`&&e.rotate(-t),e.translate(-a,-n)}}};ls=class extends B{constructor(){super(...arguments),this.type=`defs`}render(){}};Kr=class extends qe{constructor(){super(...arguments),this.type=`g`}getBoundingBox(e){var r=new oe;return this.children.forEach(t=>{r.addBoundingBox(t.getBoundingBox(e))}),r}};mi=class extends B{constructor(e,r,t){super(e,r,t),this.attributesToInherit=[`gradientUnits`],this.stops=[];var{stops:a,children:n}=this;n.forEach(o=>{o.type===`stop`&&a.push(o)})}getGradientUnits(){return this.getAttribute(`gradientUnits`).getString(`objectBoundingBox`)}createGradient(e,r,t){var a=this;this.getHrefAttribute().hasValue()&&(a=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(a));var{stops:n}=a,o=this.getGradient(e,r);if(!o)return this.addParentOpacity(t,n[n.length-1].color);if(n.forEach(y=>{o.addColorStop(y.offset,this.addParentOpacity(t,y.color))}),this.getAttribute(`gradientTransform`).hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:l}=s.screen,[h]=l.viewPorts,c=new pi(s,null);c.attributes.x=new w(s,`x`,-u/3),c.attributes.y=new w(s,`y`,-u/3),c.attributes.width=new w(s,`width`,u),c.attributes.height=new w(s,`height`,u);var v=new Kr(s,null);v.attributes.transform=new w(s,`transform`,this.getAttribute(`gradientTransform`).getValue()),v.children=[c];var f=new Xe(s,null);f.attributes.x=new w(s,`x`,0),f.attributes.y=new w(s,`y`,0),f.attributes.width=new w(s,`width`,h.width),f.attributes.height=new w(s,`height`,h.height),f.children=[v];var g=s.createCanvas(h.width,h.height),p=g.getContext(`2d`);return p.fillStyle=o,f.render(p),p.createPattern(g,`no-repeat`)}return o}inheritStopContainer(e){this.attributesToInherit.forEach(r=>{!this.getAttribute(r).hasValue()&&e.getAttribute(r).hasValue()&&this.getAttribute(r,!0).setValue(e.getAttribute(r).getValue())})}addParentOpacity(e,r){if(e.hasValue())return new w(this.document,`color`,r).addOpacity(e).getColor();return r}};hs=class extends mi{constructor(e,r,t){super(e,r,t),this.type=`linearGradient`,this.attributesToInherit.push(`x1`,`y1`,`x2`,`y2`)}getGradient(e,r){var t=this.getGradientUnits()===`objectBoundingBox`,a=t?r.getBoundingBox(e):null;if(t&&!a)return null;!this.getAttribute(`x1`).hasValue()&&!this.getAttribute(`y1`).hasValue()&&!this.getAttribute(`x2`).hasValue()&&!this.getAttribute(`y2`).hasValue()&&(this.getAttribute(`x1`,!0).setValue(0),this.getAttribute(`y1`,!0).setValue(0),this.getAttribute(`x2`,!0).setValue(1),this.getAttribute(`y2`,!0).setValue(0));var n=t?a.x+a.width*this.getAttribute(`x1`).getNumber():this.getAttribute(`x1`).getPixels(`x`),o=t?a.y+a.height*this.getAttribute(`y1`).getNumber():this.getAttribute(`y1`).getPixels(`y`),s=t?a.x+a.width*this.getAttribute(`x2`).getNumber():this.getAttribute(`x2`).getPixels(`x`),u=t?a.y+a.height*this.getAttribute(`y2`).getNumber():this.getAttribute(`y2`).getPixels(`y`);return n===s&&o===u?null:e.createLinearGradient(n,o,s,u)}};cs=class extends mi{constructor(e,r,t){super(e,r,t),this.type=`radialGradient`,this.attributesToInherit.push(`cx`,`cy`,`r`,`fx`,`fy`,`fr`)}getGradient(e,r){var t=this.getGradientUnits()===`objectBoundingBox`,a=r.getBoundingBox(e);if(t&&!a)return null;this.getAttribute(`cx`).hasValue()||this.getAttribute(`cx`,!0).setValue(`50%`),this.getAttribute(`cy`).hasValue()||this.getAttribute(`cy`,!0).setValue(`50%`),this.getAttribute(`r`).hasValue()||this.getAttribute(`r`,!0).setValue(`50%`);var n=t?a.x+a.width*this.getAttribute(`cx`).getNumber():this.getAttribute(`cx`).getPixels(`x`),o=t?a.y+a.height*this.getAttribute(`cy`).getNumber():this.getAttribute(`cy`).getPixels(`y`),s=n,u=o;this.getAttribute(`fx`).hasValue()&&(s=t?a.x+a.width*this.getAttribute(`fx`).getNumber():this.getAttribute(`fx`).getPixels(`x`)),this.getAttribute(`fy`).hasValue()&&(u=t?a.y+a.height*this.getAttribute(`fy`).getNumber():this.getAttribute(`fy`).getPixels(`y`));var l=t?(a.width+a.height)/2*this.getAttribute(`r`).getNumber():this.getAttribute(`r`).getPixels(),h=this.getAttribute(`fr`).getPixels();return e.createRadialGradient(s,u,h,n,o,l)}};fs=class extends B{constructor(e,r,t){super(e,r,t),this.type=`stop`;var a=Math.max(0,Math.min(1,this.getAttribute(`offset`).getNumber())),n=this.getStyle(`stop-opacity`),o=this.getStyle(`stop-color`,!0);o.getString()===``&&o.setValue(`#000`),n.hasValue()&&(o=o.addOpacity(n)),this.offset=a,this.color=o.getColor()}};Zr=class extends B{constructor(e,r,t){super(e,r,t),this.type=`animate`,this.duration=0,this.initialValue=null,this.initialUnits=``,this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute(`begin`).getMilliseconds(),this.maxDuration=this.begin+this.getAttribute(`dur`).getMilliseconds(),this.from=this.getAttribute(`from`),this.to=this.getAttribute(`to`),this.values=new w(e,`values`,null);var a=this.getAttribute(`values`);a.hasValue()&&this.values.setValue(a.getString().split(`;`))}getProperty(){var e=this.getAttribute(`attributeType`).getString(),r=this.getAttribute(`attributeName`).getString();return e===`CSS`?this.parent.getStyle(r,!0):this.parent.getAttribute(r,!0)}calcValue(){var{initialUnits:e}=this,{progress:r,from:t,to:a}=this.getProgress(),n=t.getNumber()+(a.getNumber()-t.getNumber())*r;return e===`%`&&(n*=100),``.concat(n).concat(e)}update(e){var{parent:r}=this,t=this.getProperty();if(this.initialValue||(this.initialValue=t.getString(),this.initialUnits=t.getUnits()),this.duration>this.maxDuration){var a=this.getAttribute(`fill`).getString(`remove`);if(this.getAttribute(`repeatCount`).getString()===`indefinite`||this.getAttribute(`repeatDur`).getString()===`indefinite`)this.duration=0;else if(a===`freeze`&&!this.frozen)this.frozen=!0,r.animationFrozen=!0,r.animationFrozenValue=t.getString();else if(a===`remove`&&!this.removed)return this.removed=!0,t.setValue(r.animationFrozen?r.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var n=!1;if(this.begin{return s+(n[u]-s)*e}).join(` `)}};ds=class extends B{constructor(e,r,t){super(e,r,t),this.type=`font`,this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute(`horiz-adv-x`).getNumber();var{definitions:a}=e,{children:n}=this;for(var o of n)switch(o.type){case`font-face`:this.fontFace=o;var s=o.getStyle(`font-family`);s.hasValue()&&(a[s.getString()]=this);break;case`missing-glyph`:this.missingGlyph=o;break;case`glyph`:var u=o;u.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[u.unicode]>`u`&&(this.glyphs[u.unicode]=Object.create(null)),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u;break}}render(){}};ps=class extends B{constructor(e,r,t){super(e,r,t),this.type=`font-face`,this.ascent=this.getAttribute(`ascent`).getNumber(),this.descent=this.getAttribute(`descent`).getNumber(),this.unitsPerEm=this.getAttribute(`units-per-em`).getNumber()}};ys=class extends F{constructor(){super(...arguments),this.type=`missing-glyph`,this.horizAdvX=0}};ms=class extends Ye{constructor(){super(...arguments),this.type=`tref`}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var r=e.children[0];if(r)return r.getText()}return``}};bs=class extends Ye{constructor(e,r,t){super(e,r,t),this.type=`a`;var{childNodes:a}=r,n=a[0],o=a.length>0&&Array.from(a).every(s=>s.nodeType===3);this.hasText=o,this.text=o?this.getTextFromNode(n):``}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:r,x:t,y:a}=this,{mouse:n}=r.screen,o=new w(r,`fontSize`,yr.parse(r.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new oe(t,a-o.getPixels(`y`),t+this.measureText(e),a))}else if(this.children.length>0){var s=new Kr(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor=`pointer`}};xs=class extends Ye{constructor(e,r,t){super(e,r,t),this.type=`textPath`,this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([[``,0]]);var a=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(a)}getText(){return this.text}path(e){var{dataArray:r}=this;e&&e.beginPath(),r.forEach(t=>{var{type:a,points:n}=t;switch(a){case q.LINE_TO:e&&e.lineTo(n[0],n[1]);break;case q.MOVE_TO:e&&e.moveTo(n[0],n[1]);break;case q.CURVE_TO:e&&e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case q.QUAD_TO:e&&e.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case q.ARC:var[o,s,u,l,h,c,v,f]=n,g=u>l?u:l,p=u>l?1:u/l,y=u>l?l/u:1;e&&(e.translate(o,s),e.rotate(v),e.scale(p,y),e.arc(0,0,g,h,h+c,!!(1-f)),e.scale(1/p,1/y),e.rotate(-v),e.translate(-o,-s));break;case q.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var r=this.parent.getStyle(`text-decoration`).getString(),t=this.getFontSize(),{glyphInfo:a}=this,n=e.fillStyle;r===`underline`&&e.beginPath(),a.forEach((o,s)=>{var{p0:u,p1:l,rotation:h,text:c}=o;e.save(),e.translate(u.x,u.y),e.rotate(h),e.fillStyle&&e.fillText(c,0,0),e.strokeStyle&&e.strokeText(c,0,0),e.restore(),r===`underline`&&(s===0&&e.moveTo(u.x,u.y+t/8),e.lineTo(l.x,l.y+t/5))}),r===`underline`&&(e.lineWidth=t/20,e.strokeStyle=n,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,r,t,a,n,o,s,u,l){var h=o,c=this.measureText(e,u);u===` `&&r===`justify`&&t-1&&(h+=this.getLetterSpacingAt(l));var v=this.textHeight/20,f=this.getEquidistantPointOnPath(h,v,0),g=this.getEquidistantPointOnPath(h+c,v,0),p={p0:f,p1:g},y=f&&g?Math.atan2(g.y-f.y,g.x-f.x):0;if(s){var m=Math.cos(Math.PI/2+y)*s,O=Math.cos(-y)*s;p.p0=oi(oi({},f),{},{x:f.x+m,y:f.y+O}),p.p1=oi(oi({},g),{},{x:g.x+m,y:g.y+O})}return h+=c,{offset:h,segment:p,rotation:y}}measureText(e,r){var{measuresCache:t}=this,a=r||this.getText();if(t.has(a))return t.get(a);var n=this.measureTargetText(e,a);return t.set(a,n),n}setTextData(e){if(!this.glyphInfo){var r=this.getText(),t=r.split(``),a=r.split(` `).length-1,n=this.parent.getAttribute(`dx`).split().map(T=>T.getPixels(`x`)),o=this.parent.getAttribute(`dy`).getPixels(`y`),s=this.parent.getStyle(`text-anchor`).getString(`start`),u=this.getStyle(`letter-spacing`),l=this.parent.getStyle(`letter-spacing`),h=0;!u.hasValue()||u.getValue()===`inherit`?h=l.getPixels():u.hasValue()&&u.getValue()!==`initial`&&u.getValue()!==`unset`&&(h=u.getPixels());var c=[],v=r.length;this.letterSpacingCache=c;for(var f=0;fC===0?0:T+E||0,0),p=this.measureText(e),y=Math.max(p+g,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var m=this.getPathLength(),O=this.getStyle(`startOffset`).getNumber(0)*m,x=0;(s===`middle`||s===`center`)&&(x=-y/2),(s===`end`||s===`right`)&&(x=-y),x+=O,t.forEach((T,E)=>{var{offset:C,segment:S,rotation:A}=this.findSegmentToFitChar(e,s,y,m,a,x,o,T,E);x=C,!(!S.p0||!S.p1)&&this.glyphInfo.push({text:t[E],p0:S.p0,p1:S.p1,rotation:A})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var r=[],{pathParser:t}=e;for(t.reset();!t.isEnd();){var{current:a}=t,n=a?a.x:0,o=a?a.y:0,s=t.next(),u=s.type,l=[];switch(s.type){case q.MOVE_TO:this.pathM(t,l);break;case q.LINE_TO:u=this.pathL(t,l);break;case q.HORIZ_LINE_TO:u=this.pathH(t,l);break;case q.VERT_LINE_TO:u=this.pathV(t,l);break;case q.CURVE_TO:this.pathC(t,l);break;case q.SMOOTH_CURVE_TO:u=this.pathS(t,l);break;case q.QUAD_TO:this.pathQ(t,l);break;case q.SMOOTH_QUAD_TO:u=this.pathT(t,l);break;case q.ARC:l=this.pathA(t);break;case q.CLOSE_PATH:F.pathZ(t);break}s.type!==q.CLOSE_PATH?r.push({type:u,points:l,start:{x:n,y:o},pathLength:this.calcLength(n,o,u,l)}):r.push({type:q.CLOSE_PATH,points:[],pathLength:0})}return r}pathM(e,r){var{x:t,y:a}=F.pathM(e).point;r.push(t,a)}pathL(e,r){var{x:t,y:a}=F.pathL(e).point;return r.push(t,a),q.LINE_TO}pathH(e,r){var{x:t,y:a}=F.pathH(e).point;return r.push(t,a),q.LINE_TO}pathV(e,r){var{x:t,y:a}=F.pathV(e).point;return r.push(t,a),q.LINE_TO}pathC(e,r){var{point:t,controlPoint:a,currentPoint:n}=F.pathC(e);r.push(t.x,t.y,a.x,a.y,n.x,n.y)}pathS(e,r){var{point:t,controlPoint:a,currentPoint:n}=F.pathS(e);return r.push(t.x,t.y,a.x,a.y,n.x,n.y),q.CURVE_TO}pathQ(e,r){var{controlPoint:t,currentPoint:a}=F.pathQ(e);r.push(t.x,t.y,a.x,a.y)}pathT(e,r){var{controlPoint:t,currentPoint:a}=F.pathT(e);return r.push(t.x,t.y,a.x,a.y),q.QUAD_TO}pathA(e){var{rX:r,rY:t,sweepFlag:a,xAxisRotation:n,centp:o,a1:s,ad:u}=F.pathA(e);return a===0&&u>0&&(u-=2*Math.PI),a===1&&u<0&&(u+=2*Math.PI),[o.x,o.y,r,t,s,u,n,a]}calcLength(e,r,t,a){var n=0,o=null,s=null,u=0;switch(t){case q.LINE_TO:return this.getLineLength(e,r,a[0],a[1]);case q.CURVE_TO:for(n=0,o=this.getPointOnCubicBezier(0,e,r,a[0],a[1],a[2],a[3],a[4],a[5]),u=.01;u<=1;u+=.01)s=this.getPointOnCubicBezier(u,e,r,a[0],a[1],a[2],a[3],a[4],a[5]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case q.QUAD_TO:for(n=0,o=this.getPointOnQuadraticBezier(0,e,r,a[0],a[1],a[2],a[3]),u=.01;u<=1;u+=.01)s=this.getPointOnQuadraticBezier(u,e,r,a[0],a[1],a[2],a[3]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case q.ARC:n=0;var l=a[4],h=a[5],c=a[4]+h,v=Math.PI/180;if(Math.abs(l-c)c;u-=v)s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],u,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(u=l+v;u5&&arguments[5]!==void 0?arguments[5]:r,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:t,u=(n-t)/(a-r+pr),l=Math.sqrt(e*e/(1+u*u));ar)return null;var{dataArray:n}=this;for(var o of n){if(o&&(o.pathLength<5e-5||t+o.pathLength+5e-5=0&&u>c)break;a=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break;case q.CURVE_TO:u=s/o.pathLength,u>1&&(u=1),a=this.getPointOnCubicBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case q.QUAD_TO:u=s/o.pathLength,u>1&&(u=1),a=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(a)return a;break}return null}getLineLength(e,r,t,a){return Math.sqrt((t-e)*(t-e)+(a-r)*(a-r))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,r)=>r.pathLength>0?e+r.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,r,t,a,n,o,s,u,l){return{x:u*hg(e)+o*cg(e)+a*fg(e)+r*vg(e),y:l*hg(e)+s*cg(e)+n*fg(e)+t*vg(e)}}getPointOnQuadraticBezier(e,r,t,a,n,o,s){return{x:o*gg(e)+a*dg(e)+r*pg(e),y:s*gg(e)+n*dg(e)+t*pg(e)}}getPointOnEllipticalArc(e,r,t,a,n,o){var s=Math.cos(o),u=Math.sin(o),l={x:t*Math.cos(n),y:a*Math.sin(n)};return{x:e+(l.x*s-l.y*u),y:r+(l.x*u+l.y*s)}}buildEquidistantCache(e,r){var t=this.getPathLength(),a=r||.25,n=e||t/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==a){this.equidistantCache={step:n,precision:a,points:[]};for(var o=0,s=0;s<=t;s+=a){var u=this.getPointOnPath(s),l=this.getPointOnPath(s+a);!u||!l||(o+=this.getLineLength(u.x,u.y,l.x,l.y),o>=n&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:s}),o-=n))}}}getEquidistantPointOnPath(e,r,t){if(this.buildEquidistantCache(r,t),e<0||e-this.getPathLength()>5e-5)return null;var a=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[a]||null}};PO=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;Ts=class extends qe{constructor(e,r,t){super(e,r,t),this.type=`image`,this.loaded=!1;var a=this.getHrefAttribute().getString();if(a){var n=a.endsWith(`.svg`)||/^\s*data:image\/svg\+xml/i.test(a);e.images.push(this),n?this.loadSvg(a):this.loadImage(a),this.isSvg=n}}loadImage(e){var r=this;return be(function*(){try{r.image=yield r.document.createImage(e)}catch(a){console.error(`Error while loading image "`.concat(e,`":`),a)}r.loaded=!0})()}loadSvg(e){var r=this;return be(function*(){var t=PO.exec(e);if(t){var a=t[5];t[4]===`base64`?r.image=atob(a):r.image=decodeURIComponent(a)}else try{r.image=yield(yield r.document.fetch(e)).text()}catch(s){console.error(`Error while loading image "`.concat(e,`":`),s)}r.loaded=!0})()}renderChildren(e){var{document:r,image:t,loaded:a}=this,n=this.getAttribute(`x`).getPixels(`x`),o=this.getAttribute(`y`).getPixels(`y`),s=this.getStyle(`width`).getPixels(`x`),u=this.getStyle(`height`).getPixels(`y`);if(!(!a||!t||!s||!u)){if(e.save(),e.translate(n,o),this.isSvg){var l=r.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:u});l.document.documentElement.parent=this,l.render()}else{var h=this.image;r.setViewBox({ctx:e,aspectRatio:this.getAttribute(`preserveAspectRatio`).getString(),width:s,desiredWidth:h.width,height:u,desiredHeight:h.height}),this.loaded&&(typeof h.complete>`u`||h.complete)&&e.drawImage(h,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute(`x`).getPixels(`x`),r=this.getAttribute(`y`).getPixels(`y`),t=this.getStyle(`width`).getPixels(`x`),a=this.getStyle(`height`).getPixels(`y`);return new oe(e,r,e+t,r+a)}};Os=class extends qe{constructor(){super(...arguments),this.type=`symbol`}render(e){}};Ss=class{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,r){var t=this;return be(function*(){try{var{document:a}=t,o=(yield a.canvg.parser.load(r)).getElementsByTagName(`font`);Array.from(o).forEach(s=>{var u=a.createElement(s);a.definitions[e]=u})}catch(s){console.error(`Error while loading font "`.concat(r,`":`),s)}t.loaded=!0})()}};RO=(()=>{class i extends B{constructor(r,t,a){super(r,t,a),this.type=`style`;mr(Array.from(t.childNodes).map(s=>s.textContent).join(``).replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,``).replace(/@import.*;/g,``)).split(`}`).forEach(s=>{var u=s.trim();if(u){var l=u.split(`{`),h=l[0].split(`,`),c=l[1].split(`;`);h.forEach(v=>{var f=v.trim();if(f){var g=r.styles[f]||{};if(c.forEach(m=>{var O=m.indexOf(`:`),x=m.substr(0,O).trim(),T=m.substr(O+1,m.length-O).trim();x&&T&&(g[x]=new w(r,x,T))}),r.styles[f]=g,r.stylesSpecificity[f]=xO(f),f===`@font-face`){var p=g[`font-family`].getString().replace(/"|'/g,``);g.src.getString().split(`,`).forEach(m=>{if(m.indexOf(`format("svg")`)>0){var O=og(m);O&&new Ss(r).load(p,O)}})}}})}})}}return i.parseExternalUrl=og,i})();Es=class extends qe{constructor(){super(...arguments),this.type=`use`}setContext(e){super.setContext(e);var r=this.getAttribute(`x`),t=this.getAttribute(`y`);r.hasValue()&&e.translate(r.getPixels(`x`),0),t.hasValue()&&e.translate(0,t.getPixels(`y`))}path(e){var{element:r}=this;r&&r.path(e)}renderChildren(e){var{document:r,element:t}=this;if(t){var a=t;if(t.type===`symbol`&&(a=new Xe(r,null),a.attributes.viewBox=new w(r,`viewBox`,t.getAttribute(`viewBox`).getString()),a.attributes.preserveAspectRatio=new w(r,`preserveAspectRatio`,t.getAttribute(`preserveAspectRatio`).getString()),a.attributes.overflow=new w(r,`overflow`,t.getAttribute(`overflow`).getString()),a.children=t.children,t.styles.opacity=new w(r,`opacity`,this.calculateOpacity())),a.type===`svg`){var n=this.getStyle(`width`,!1,!0),o=this.getStyle(`height`,!1,!0);n.hasValue()&&(a.attributes.width=new w(r,`width`,n.getString())),o.hasValue()&&(a.attributes.height=new w(r,`height`,o.getString()))}var s=a.parent;a.parent=this,a.render(e),a.parent=s}}getBoundingBox(e){var{element:r}=this;return r?r.getBoundingBox(e):null}elementTransform(){var{document:e,element:r}=this;return Ms.fromElement(e,r)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}};bi=class extends B{constructor(e,r,t){super(e,r,t),this.type=`feColorMatrix`;var a=se(this.getAttribute(`values`).getString());switch(this.getAttribute(`type`).getString(`matrix`)){case`saturate`:var n=a[0];a=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break;case`hueRotate`:var o=a[0]*Math.PI/180;a=[Ce(o,.213,.787,-.213),Ce(o,.715,-.715,-.715),Ce(o,.072,-.072,.928),0,0,Ce(o,.213,-.213,.143),Ce(o,.715,.285,.14),Ce(o,.072,-.072,-.283),0,0,Ce(o,.213,-.213,-.787),Ce(o,.715,-.715,.715),Ce(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case`luminanceToAlpha`:a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=a,this.includeOpacity=this.getAttribute(`includeOpacity`).hasValue()}apply(e,r,t,a,n){for(var{includeOpacity:o,matrix:s}=this,u=e.getImageData(0,0,a,n),l=0;l{class i extends B{constructor(){super(...arguments),this.type=`mask`}apply(r,t){var{document:a}=this,n=this.getAttribute(`x`).getPixels(`x`),o=this.getAttribute(`y`).getPixels(`y`),s=this.getStyle(`width`).getPixels(`x`),u=this.getStyle(`height`).getPixels(`y`);if(!s&&!u){var l=new oe;this.children.forEach(p=>{l.addBoundingBox(p.getBoundingBox(r))}),n=Math.floor(l.x1),o=Math.floor(l.y1),s=Math.floor(l.width),u=Math.floor(l.height)}var h=this.removeStyles(t,i.ignoreStyles),c=a.createCanvas(n+s,o+u),v=c.getContext(`2d`);a.screen.setDefaults(v),this.renderChildren(v),new bi(a,{nodeType:1,childNodes:[],attributes:[{nodeName:`type`,value:`luminanceToAlpha`},{nodeName:`includeOpacity`,value:`true`}]}).apply(v,0,0,n+s,o+u);var f=a.createCanvas(n+s,o+u),g=f.getContext(`2d`);a.screen.setDefaults(g),t.render(g),g.globalCompositeOperation=`destination-in`,g.fillStyle=v.createPattern(c,`no-repeat`),g.fillRect(0,0,n+s,o+u),r.fillStyle=g.createPattern(f,`no-repeat`),r.fillRect(0,0,n+s,o+u),this.restoreStyles(t,h)}render(r){}}return i.ignoreStyles=[`mask`,`transform`,`clip-path`],i})();xg=()=>{};ws=class extends B{constructor(){super(...arguments),this.type=`clipPath`}apply(e){var{document:r}=this,t=Reflect.getPrototypeOf(e),{beginPath:a,closePath:n}=e;t&&(t.beginPath=xg,t.closePath=xg),Reflect.apply(a,e,[]),this.children.forEach(o=>{if(!(typeof o.path>`u`)){var s=typeof o.elementTransform<`u`?o.elementTransform():null;s||(s=Ms.fromElement(r,o)),s&&s.apply(e),o.path(e),t&&(t.closePath=n),s&&s.unapply(e)}}),Reflect.apply(n,e,[]),e.clip(),t&&(t.beginPath=a,t.closePath=n)}render(e){}};IO=(()=>{class i extends B{constructor(){super(...arguments),this.type=`filter`}apply(r,t){var{document:a,children:n}=this,o=t.getBoundingBox(r);if(o){var s=0,u=0;n.forEach(O=>{var x=O.extraFilterDistance||0;s=Math.max(s,x),u=Math.max(u,x)});var l=Math.floor(o.width),h=Math.floor(o.height),c=l+2*s,v=h+2*u;if(!(c<1||v<1)){var f=Math.floor(o.x),g=Math.floor(o.y),p=this.removeStyles(t,i.ignoreStyles),y=a.createCanvas(c,v),m=y.getContext(`2d`);a.screen.setDefaults(m),m.translate(-f+s,-g+u),t.render(m),n.forEach(O=>{typeof O.apply==`function`&&O.apply(m,0,0,c,v)}),r.drawImage(y,0,0,c,v,f-s,g-u,c,v),this.restoreStyles(t,p)}}}render(r){}}return i.ignoreStyles=[`filter`,`transform`,`clip-path`],i})();Cs=class extends B{constructor(e,r,t){super(e,r,t),this.type=`feDropShadow`,this.addStylesFromStyleDefinition()}apply(e,r,t,a,n){}};qs=class extends B{constructor(){super(...arguments),this.type=`feMorphology`}apply(e,r,t,a,n){}};As=class extends B{constructor(){super(...arguments),this.type=`feComposite`}apply(e,r,t,a,n){}};Ps=class extends B{constructor(e,r,t){super(e,r,t),this.type=`feGaussianBlur`,this.blurRadius=Math.floor(this.getAttribute(`stdDeviation`).getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,r,t,a,n){var{document:o,blurRadius:s}=this,u=o.window?o.window.document.body:null,l=e.canvas;l.id=o.getUniqueId(),u&&(l.style.display=`none`,u.appendChild(l)),sg(l,r,t,a,n,s),u&&u.removeChild(l)}};Rs=class extends B{constructor(){super(...arguments),this.type=`title`}};Ns=class extends B{constructor(){super(...arguments),this.type=`desc`}};MO={svg:Xe,rect:pi,circle:is,ellipse:as,line:ns,polyline:yi,polygon:ss,path:F,pattern:os,marker:us,defs:ls,linearGradient:hs,radialGradient:cs,stop:fs,animate:Zr,animateColor:vs,animateTransform:gs,font:ds,"font-face":ps,"missing-glyph":ys,glyph:gi,text:Ye,tspan:di,tref:ms,a:bs,textPath:xs,image:Ts,g:Kr,symbol:Os,style:RO,use:Es,mask:NO,clipPath:ws,filter:IO,feDropShadow:Cs,feMorphology:qs,feComposite:As,feColorMatrix:bi,feGaussianBlur:Ps,title:Rs,desc:Ns};LO=(()=>{class i{constructor(r){var{rootEmSize:t=12,emSize:a=12,createCanvas:n=i.createCanvas,createImage:o=i.createImage,anonymousCrossOrigin:s}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=r,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=r.screen,this.rootEmSize=t,this.emSize=a,this.createCanvas=n,this.createImage=this.bindCreateImage(o,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(r,t){return typeof t==`boolean`?(a,n)=>r(a,typeof n==`boolean`?n:t):r}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:r}=this;return r[r.length-1]}set emSize(r){var{emSizeStack:t}=this;t.push(r)}popEmSize(){var{emSizeStack:r}=this;r.pop()}getUniqueId(){return`canvg`.concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(r=>r.loaded)}isFontsLoaded(){return this.fonts.every(r=>r.loaded)}createDocumentElement(r){var t=this.createElement(r.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(r){var t=r.nodeName.replace(/^[^:]+:/,``),a=i.elementTypes[t];return typeof a<`u`?new a(this,r):new rs(this,r)}createTextNode(r){return new ts(this,r)}setViewBox(r){this.screen.setViewBox(VO({document:this},r))}}return i.createCanvas=_O,i.createImage=DO,i.elementTypes=MO,i})();Sg=class i{constructor(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Qr(t),this.screen=new Eg(e,t),this.options=t;var a=new LO(this,t),n=a.createDocumentElement(r);this.document=a,this.documentElement=n}static from(e,r){var t=arguments;return be(function*(){var a=t.length>2&&t[2]!==void 0?t[2]:{},o=yield new Qr(a).parse(r);return new i(e,o,a)})()}static fromString(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=new Qr(t).parseFromString(r);return new i(e,n,t)}fork(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return i.from(e,r,He(He({},this.options),t))}forkString(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return i.fromString(e,r,He(He({},this.options),t))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,r=this;return be(function*(){var t=e.length>0&&e[0]!==void 0?e[0]:{};r.start(He({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},t)),yield r.ready(),r.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:r,screen:t,options:a}=this;t.start(r,He(He({enableRedraw:!0},a),e))}stop(){this.screen.stop()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,r,t)}}}));init_chunk_TQULINJJ();export{bs as AElement,vs as AnimateColorElement,Zr as AnimateElement,gs as AnimateTransformElement,oe as BoundingBox,hg as CB1,cg as CB2,fg as CB3,vg as CB4,Sg as Canvg,Sg as default,is as CircleElement,ws as ClipPathElement,ls as DefsElement,Ns as DescElement,LO as Document,B as Element,as as EllipseElement,bi as FeColorMatrixElement,As as FeCompositeElement,Cs as FeDropShadowElement,Ps as FeGaussianBlurElement,qs as FeMorphologyElement,IO as FilterElement,yr as Font,ds as FontElement,ps as FontFaceElement,Kr as GElement,gi as GlyphElement,mi as GradientElement,Ts as ImageElement,ns as LineElement,hs as LinearGradientElement,us as MarkerElement,NO as MaskElement,fi as Matrix,ys as MissingGlyphElement,Wn as Mouse,pr as PSEUDO_ZERO,Qr as Parser,F as PathElement,q as PathParser,os as PatternElement,$ as Point,ss as PolygonElement,yi as PolylineElement,w as Property,gg as QB1,dg as QB2,pg as QB3,cs as RadialGradientElement,pi as RectElement,qe as RenderedElement,Kn as Rotate,Xe as SVGElement,Ss as SVGFontLoader,Zn as Scale,Eg as Screen,vi as Skew,Jn as SkewX,es as SkewY,fs as StopElement,RO as StyleElement,Os as SymbolElement,ms as TRefElement,di as TSpanElement,Ye as TextElement,xs as TextPathElement,Rs as TitleElement,Ms as Transform,Qn as Translate,rs as UnknownElement,Es as UseElement,Xn as ViewPort,mr as compressSpaces,xO as getSelectorSpecificity,cO as normalizeAttributeName,fO as normalizeColor,og as parseExternalUrl,_C as presets,se as toNumbers,uO as trimLeft,lO as trimRight,ug as vectorMagnitude,lg as vectorsAngle,Yn as vectorsRatio};
\ No newline at end of file
diff --git a/docs/chunk-B6Rq9kDv.js b/docs/chunk-B6Rq9kDv.js
new file mode 100644
index 0000000..d137d92
--- /dev/null
+++ b/docs/chunk-B6Rq9kDv.js
@@ -0,0 +1,5 @@
+import{n as u,o as __esmMin,t as init_chunk_IFGU66OU}from"./main-GF4OEYNH.js";var MQ,chunk_ACAMUYGZ_default;var init_chunk_ACAMUYGZ=__esmMin((()=>{init_chunk_IFGU66OU();MQ=u((nt,st)=>{(function(IA,P){typeof nt==`object`&&typeof st<`u`?st.exports=P():typeof define==`function`&&define.amd?define(P):(IA=typeof globalThis<`u`?globalThis:IA||self,IA.html2canvas=P())})(nt,(function(){"use strict";var IA=function(e,A){return IA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var B in r)Object.prototype.hasOwnProperty.call(r,B)&&(t[B]=r[B])},IA(e,A)};function P(e,A){if(typeof A!=`function`&&A!==null)throw new TypeError(`Class extends value `+String(A)+` is not a constructor or null`);IA(e,A);function t(){this.constructor=e}e.prototype=A===null?Object.create(A):(t.prototype=A.prototype,new t)}var ir=function(){return ir=Object.assign||function(A){for(var t,r=1,B=arguments.length;r0&&n[n.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]=55296&&B<=56319&&t>10)+55296,s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},at=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,gn=typeof Uint8Array>`u`?[]:new Uint8Array(256),fe=0;fe`u`?[]:new Uint8Array(256),Ue=0;Ue>4,Q[B++]=(s&15)<<4|i>>2,Q[B++]=(i&3)<<6|a&63;return o},cn=function(e){for(var A=e.length,t=[],r=0;r>vA,gr=(1<>vA)+32,En=65536>>or,pn=(1<=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>vA],t=(t<>vA)],t=(t<>or),t=this.index[t],t+=A>>vA&pn,t=this.index[t],t=(t<`u`?[]:new Uint8Array(256),Fe=0;Fewt?(B.push(!0),i-=wt):B.push(!1),[`normal`,`auto`,`loose`].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(n)!==-1)return r.push(s),t.push(Cr);if(i===Dn||i===wr){if(s===0)return r.push(s),t.push(yA);var a=t[s-1];return Rn.indexOf(a)===-1?(r.push(r[s-1]),t.push(a)):(r.push(s),t.push(yA))}if(r.push(s),i===On)return t.push(A===`strict`?ur:$A);if(i===ht||i===Sn)return t.push(yA);if(i===Mn)return n>=131072&&n<=196605||n>=196608&&n<=262141?t.push($A):t.push(yA);t.push(i)}),[r,t,B]},pr=function(e,A,t,r){var B=r[t];if(Array.isArray(e)?e.indexOf(B)!==-1:e===B)for(var n=t;n<=r.length;){n++;var s=r[n];if(s===A)return!0;if(s!==CA)break}if(B===CA)for(var n=t;n>0;){n--;var i=r[n];if(Array.isArray(e)?e.indexOf(i)!==-1:e===i)for(var a=t;a<=r.length;){a++;var s=r[a];if(s===A)return!0;if(s!==CA)break}if(i!==CA)break}return!1},It=function(e,A){for(var t=e;t>=0;){var r=A[t];if(r===CA)t--;else return r}return 0},Xn=function(e,A,t,r,B){if(t[r]===0)return I;var n=r-1;if(Array.isArray(B)&&B[n]===!0)return I;var s=n-1,i=n+1,a=A[n],o=s>=0?A[s]:0,Q=A[i];if(a===ct&&Q===Ct)return I;if(Hr.indexOf(a)!==-1)return dt;if(Hr.indexOf(Q)!==-1||Et.indexOf(Q)!==-1)return I;if(It(n,A)===lt)return Ie;if(Er.get(e[n])===wr||(a===de||a===Ee)&&Er.get(e[i])===wr||a===ut||Q===ut||a===ft||[CA,cr,WA].indexOf(a)===-1&&Q===ft||[he,ZA,Tn,SA,OA].indexOf(Q)!==-1||It(n,A)===qA||pr(lr,qA,n,A)||pr([he,ZA],ur,n,A)||pr(Ut,Ut,n,A))return I;if(a===CA)return Ie;if(a===lr||Q===lr)return I;if(Q===Cr||a===Cr)return Ie;if([cr,WA,ur].indexOf(Q)!==-1||a===xn||o===Fr&&Vn.indexOf(a)!==-1||a===OA&&Q===Fr||Q===Ft||oA.indexOf(Q)!==-1&&a===j||oA.indexOf(a)!==-1&&Q===j||a===zA&&[$A,de,Ee].indexOf(Q)!==-1||[$A,de,Ee].indexOf(a)!==-1&&Q===jA||oA.indexOf(a)!==-1&&Ht.indexOf(Q)!==-1||Ht.indexOf(a)!==-1&&oA.indexOf(Q)!==-1||[zA,jA].indexOf(a)!==-1&&(Q===j||[qA,WA].indexOf(Q)!==-1&&A[i+1]===j)||[qA,WA].indexOf(a)!==-1&&Q===j||a===j&&[j,OA,SA].indexOf(Q)!==-1)return I;if([j,OA,SA,he,ZA].indexOf(Q)!==-1)for(var g=n;g>=0;){var w=A[g];if(w===j)return I;if([OA,SA].indexOf(w)!==-1)g--;else break}if([zA,jA].indexOf(Q)!==-1)for(var g=[he,ZA].indexOf(a)!==-1?s:n;g>=0;){var w=A[g];if(w===j)return I;if([OA,SA].indexOf(w)!==-1)g--;else break}if(hr===a&&[hr,He,fr,Ur].indexOf(Q)!==-1||[He,fr].indexOf(a)!==-1&&[He,pe].indexOf(Q)!==-1||[pe,Ur].indexOf(a)!==-1&&Q===pe||pt.indexOf(a)!==-1&&[Ft,jA].indexOf(Q)!==-1||pt.indexOf(Q)!==-1&&a===zA||oA.indexOf(a)!==-1&&oA.indexOf(Q)!==-1||a===SA&&oA.indexOf(Q)!==-1||oA.concat(j).indexOf(a)!==-1&&Q===qA&&Gn.indexOf(e[i])===-1||oA.concat(j).indexOf(Q)!==-1&&a===ZA)return I;if(a===dr&&Q===dr){for(var f=t[n],c=1;f>0&&(f--,A[f]===dr);)c++;if(c%2!==0)return I}return a===de&&Q===Ee?I:Ie},_n=function(e,A){A||(A={lineBreak:`normal`,wordBreak:`normal`});var t=Nn(e,A.lineBreak),r=t[0],B=t[1],n=t[2];(A.wordBreak===`break-all`||A.wordBreak===`break-word`)&&(B=B.map(function(i){return[j,yA,ht].indexOf(i)!==-1?$A:i}));var s=A.wordBreak===`keep-all`?n.map(function(i,a){return i&&e[a]>=19968&&e[a]<=40959}):void 0;return[r,B,s]},Jn=(function(){function e(A,t,r,B){this.codePoints=A,this.required=t===dt,this.start=r,this.end=B}return e.prototype.slice=function(){return T.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),Pn=function(e,A){var t=le(e),r=_n(t,A),B=r[0],n=r[1],s=r[2],i=t.length,a=0,o=0;return{next:function(){if(o>=i)return{done:!0,value:null};for(var Q=I;o=Lt&&e<=57},Is=function(e){return e>=55296&&e<=57343},MA=function(e){return J(e)||e>=xt&&e<=St||e>=Dt&&e<=hs},vs=function(e){return e>=Dt&&e<=Es},ys=function(e){return e>=xt&&e<=ps},Ks=function(e){return vs(e)||ys(e)},ms=function(e){return e>=Qs},De=function(e){return e===ve||e===Wn||e===Zn},be=function(e){return Ks(e)||ms(e)||e===$n},Ot=function(e){return be(e)||J(e)||e===Y},Ls=function(e){return e>=Cs&&e<=us||e===ls||e>=fs&&e<=Us||e===Fs},uA=function(e,A){return e!==ee?!1:A!==ve},xe=function(e,A,t){return e===Y?be(A)||uA(A,t):be(e)?!0:!!(e===ee&&uA(e,A))},vr=function(e,A,t){return e===KA||e===Y?J(A)?!0:A===Be&&J(t):J(e===Be?A:e)},Ds=function(e){var A=0,t=1;(e[A]===KA||e[A]===Y)&&(e[A]===Y&&(t=-1),A++);for(var r=[];J(e[A]);)r.push(e[A++]);var B=r.length?parseInt(T.apply(void 0,r),10):0;e[A]===Be&&A++;for(var n=[];J(e[A]);)n.push(e[A++]);var s=n.length,i=s?parseInt(T.apply(void 0,n),10):0;(e[A]===Tt||e[A]===bt)&&A++;var a=1;(e[A]===KA||e[A]===Y)&&(e[A]===Y&&(a=-1),A++);for(var o=[];J(e[A]);)o.push(e[A++]);var Q=o.length?parseInt(T.apply(void 0,o),10):0;return t*(B+i*Math.pow(10,-s))*Math.pow(10,a*Q)},bs={type:2},xs={type:3},Ts={type:4},Ss={type:13},Os={type:8},Ms={type:21},Gs={type:9},Rs={type:10},Vs={type:11},Ns={type:12},Xs={type:14},Te={type:23},_s={type:1},Js={type:25},Ps={type:24},ks={type:26},Ys={type:27},Ws={type:28},Zs={type:29},qs={type:31},yr={type:32},Mt=(function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(le(A))},e.prototype.read=function(){for(var A=[],t=this.consumeToken();t!==yr;)A.push(t),t=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case ye:return this.consumeStringToken(ye);case qn:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),B=this.peekCodePoint(2);if(Ot(t)||uA(r,B)){var n=xe(t,r,B)?Yn:kn,s=this.consumeName();return{type:5,value:s,flags:n}}break;case jn:if(this.peekCodePoint(0)===re)return this.consumeCodePoint(),Ss;break;case Ke:return this.consumeStringToken(Ke);case me:return bs;case te:return xs;case Ir:if(this.peekCodePoint(0)===re)return this.consumeCodePoint(),Xs;break;case KA:if(vr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case gs:return Ts;case Y:var i=A,a=this.peekCodePoint(0),o=this.peekCodePoint(1);if(vr(i,a,o))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(xe(i,a,o))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(a===Y&&o===rs)return this.consumeCodePoint(),this.consumeCodePoint(),Ps;break;case Be:if(vr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case yt:if(this.peekCodePoint(0)===Ir)for(this.consumeCodePoint();;){var Q=this.consumeCodePoint();if(Q===Ir&&(Q=this.consumeCodePoint(),Q===yt))return this.consumeToken();if(Q===BA)return this.consumeToken()}break;case ws:return ks;case cs:return Ys;case es:if(this.peekCodePoint(0)===As&&this.peekCodePoint(1)===Y&&this.peekCodePoint(2)===Y)return this.consumeCodePoint(),this.consumeCodePoint(),Js;break;case ts:if(xe(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var s=this.consumeName();return{type:7,value:s}}break;case Bs:return Ws;case ee:if(uA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case ns:return Zs;case ss:if(this.peekCodePoint(0)===re)return this.consumeCodePoint(),Os;break;case as:return Vs;case is:return Ns;case ds:case Hs:var c=this.peekCodePoint(0),C=this.peekCodePoint(1);return c===KA&&(MA(C)||C===Le)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Kt:if(this.peekCodePoint(0)===re)return this.consumeCodePoint(),Gs;if(this.peekCodePoint(0)===Kt)return this.consumeCodePoint(),Ms;break;case os:if(this.peekCodePoint(0)===re)return this.consumeCodePoint(),Rs;break;case BA:return yr}return De(A)?(this.consumeWhiteSpace(),qs):J(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):be(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:T(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>`u`?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],t=this.consumeCodePoint();MA(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();for(var r=!1;t===Le&&A.length<6;)A.push(t),t=this.consumeCodePoint(),r=!0;if(r){var B=parseInt(T.apply(void 0,A.map(function(a){return a===Le?Lt:a})),16),n=parseInt(T.apply(void 0,A.map(function(a){return a===Le?St:a})),16);return{type:30,start:B,end:n}}var s=parseInt(T.apply(void 0,A),16);if(this.peekCodePoint(0)===Y&&MA(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var i=[];MA(t)&&i.length<6;)i.push(t),t=this.consumeCodePoint();var n=parseInt(T.apply(void 0,i),16);return{type:30,start:s,end:n}}else return{type:30,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()===`url`&&this.peekCodePoint(0)===me?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===me?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===BA)return{type:22,value:``};var t=this.peekCodePoint(0);if(t===Ke||t===ye){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===BA||this.peekCodePoint(0)===te)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),Te)}for(;;){var B=this.consumeCodePoint();if(B===BA||B===te)return{type:22,value:T.apply(void 0,A)};if(De(B))return this.consumeWhiteSpace(),this.peekCodePoint(0)===BA||this.peekCodePoint(0)===te?(this.consumeCodePoint(),{type:22,value:T.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Te);if(B===ye||B===Ke||B===me||Ls(B))return this.consumeBadUrlRemnants(),Te;if(B===ee)if(uA(B,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Te;else A.push(B)}},e.prototype.consumeWhiteSpace=function(){for(;De(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===te||A===BA)return;uA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var t=5e4,r=``;A>0;){var B=Math.min(t,A);r+=T.apply(void 0,this._value.splice(0,B)),A-=B}return this._value.shift(),r},e.prototype.consumeStringToken=function(A){var t=``,r=0;do{var B=this._value[r];if(B===BA||B===void 0||B===A)return t+=this.consumeStringSlice(r),{type:0,value:t};if(B===ve)return this._value.splice(0,r),_s;if(B===ee){var n=this._value[r+1];n!==BA&&n!==void 0&&(n===ve?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):uA(B,n)&&(t+=this.consumeStringSlice(r),t+=T(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},e.prototype.consumeNumber=function(){var A=[],t=Ae,r=this.peekCodePoint(0);for((r===KA||r===Y)&&A.push(this.consumeCodePoint());J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);var B=this.peekCodePoint(1);if(r===Be&&J(B))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=vt;J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),B=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((r===Tt||r===bt)&&((B===KA||B===Y)&&J(n)||J(B)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=vt;J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[Ds(A),t]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),t=A[0],r=A[1],B=this.peekCodePoint(0);if(xe(B,this.peekCodePoint(1),this.peekCodePoint(2)))return{type:15,number:t,flags:r,unit:this.consumeName()};return B===zn?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(MA(A)){for(var t=T(A);MA(this.peekCodePoint(0))&&t.length<6;)t+=T(this.consumeCodePoint());De(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||Is(r)||r>1114111?mt:r}return A===BA?mt:A},e.prototype.consumeName=function(){for(var A=``;;){var t=this.consumeCodePoint();if(Ot(t))A+=T(t);else if(uA(t,this.peekCodePoint(0)))A+=T(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),A}},e})(),Gt=(function(){function e(A){this._tokens=A}return e.create=function(A){var t=new Mt;return t.write(A),new e(t.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError(`Error parsing CSS component value, unexpected EOF`);this.reconsumeToken(A);var t=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return t;throw new SyntaxError(`Error parsing CSS component value, multiple values found when expecting only one`)},e.prototype.parseComponentValues=function(){for(var A=[];;){var t=this.consumeComponentValue();if(t.type===32)return A;A.push(t),A.push()}},e.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},e.prototype.consumeSimpleBlock=function(A){for(var t={type:A,values:[]},r=this.consumeToken();;){if(r.type===32||zs(r,A))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var t={name:A.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>`u`?yr:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e})(),ne=function(e){return e.type===15},GA=function(e){return e.type===17},L=function(e){return e.type===20},js=function(e){return e.type===0},Kr=function(e,A){return L(e)&&e.value===A},Rt=function(e){return e.type!==31},RA=function(e){return e.type!==31&&e.type!==4},nA=function(e){var A=[],t=[];return e.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error(`Error parsing function args, zero tokens for arg`);A.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&A.push(t),A},zs=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?!0:A===2&&e.type===3},lA=function(e){return e.type===17||e.type===15},O=function(e){return e.type===16||lA(e)},Vt=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},V={type:17,number:0,flags:Ae},mr={type:16,number:50,flags:Ae},fA={type:16,number:100,flags:Ae},se=function(e,A,t){var r=e[0],B=e[1];return[b(r,A),b(typeof B<`u`?B:r,t)]},b=function(e,A){if(e.type===16)return e.number/100*A;if(ne(e))switch(e.unit){case`rem`:case`em`:return 16*e.number;default:return e.number}return e.number},Nt=`deg`,Xt=`grad`,_t=`rad`,Jt=`turn`,Se={name:`angle`,parse:function(e,A){if(A.type===15)switch(A.unit){case Nt:return Math.PI*A.number/180;case Xt:return Math.PI/200*A.number;case _t:return A.number;case Jt:return Math.PI*2*A.number}throw new Error(`Unsupported angle type`)}},Pt=function(e){return e.type===15&&(e.unit===Nt||e.unit===Xt||e.unit===_t||e.unit===Jt)},kt=function(e){switch(e.filter(L).map(function(t){return t.value}).join(` `)){case`to bottom right`:case`to right bottom`:case`left top`:case`top left`:return[V,V];case`to top`:case`bottom`:return $(0);case`to bottom left`:case`to left bottom`:case`right top`:case`top right`:return[V,fA];case`to right`:case`left`:return $(90);case`to top left`:case`to left top`:case`right bottom`:case`bottom right`:return[fA,fA];case`to bottom`:case`top`:return $(180);case`to top right`:case`to right top`:case`left bottom`:case`bottom left`:return[fA,V];case`to left`:case`right`:return $(270)}return 0},$=function(e){return Math.PI*e/180},UA={name:`color`,parse:function(e,A){if(A.type===18){var t=$s[A.name];if(typeof t>`u`)throw new Error(`Attempting to parse an unsupported color function "`+A.name+`"`);return t(e,A.values)}if(A.type===5){if(A.value.length===3){var r=A.value.substring(0,1),B=A.value.substring(1,2),n=A.value.substring(2,3);return hA(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),1)}if(A.value.length===4){var r=A.value.substring(0,1),B=A.value.substring(1,2),n=A.value.substring(2,3),s=A.value.substring(3,4);return hA(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),parseInt(s+s,16)/255)}if(A.value.length===6){var r=A.value.substring(0,2),B=A.value.substring(2,4),n=A.value.substring(4,6);return hA(parseInt(r,16),parseInt(B,16),parseInt(n,16),1)}if(A.value.length===8){var r=A.value.substring(0,2),B=A.value.substring(2,4),n=A.value.substring(4,6),s=A.value.substring(6,8);return hA(parseInt(r,16),parseInt(B,16),parseInt(n,16),parseInt(s,16)/255)}}if(A.type===20){var i=QA[A.value.toUpperCase()];if(typeof i<`u`)return i}return QA.TRANSPARENT}},FA=function(e){return(255&e)===0},R=function(e){var A=255&e,t=255&e>>8,r=255&e>>16,B=255&e>>24;return A<255?`rgba(`+B+`,`+r+`,`+t+`,`+A/255+`)`:`rgb(`+B+`,`+r+`,`+t+`)`},hA=function(e,A,t,r){return(e<<24|A<<16|t<<8|Math.round(r*255)<<0)>>>0},Yt=function(e,A){if(e.type===17)return e.number;if(e.type===16){var t=A===3?1:255;return A===3?e.number/100*t:Math.round(e.number/100*t)}return 0},Wt=function(e,A){var t=A.filter(RA);if(t.length===3){var r=t.map(Yt),B=r[0],n=r[1],s=r[2];return hA(B,n,s,1)}if(t.length===4){var i=t.map(Yt),B=i[0],n=i[1],s=i[2],a=i[3];return hA(B,n,s,a)}return 0};function Lr(e,A,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(A-e)*t*6+e:t<1/2?A:t<2/3?(A-e)*6*(2/3-t)+e:e}var Zt=function(e,A){var t=A.filter(RA),r=t[0],B=t[1],n=t[2],s=t[3],i=(r.type===17?$(r.number):Se.parse(e,r))/(Math.PI*2),a=O(B)?B.number/100:0,o=O(n)?n.number/100:0,Q=typeof s<`u`&&O(s)?b(s,1):1;if(a===0)return hA(o*255,o*255,o*255,1);var g=o<=.5?o*(a+1):o+a-o*a,w=o*2-g,f=Lr(w,g,i+1/3),c=Lr(w,g,i),C=Lr(w,g,i-1/3);return hA(f*255,c*255,C*255,Q)},$s={hsl:Zt,hsla:Zt,rgb:Wt,rgba:Wt},ae=function(e,A){return UA.parse(e,Gt.create(A).parseComponentValue())},QA={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Aa={name:`background-clip`,initialValue:`border-box`,prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(L(t))switch(t.value){case`padding-box`:return 1;case`content-box`:return 2}return 0})}},ea={name:`background-color`,initialValue:`transparent`,prefix:!1,type:3,format:`color`},Oe=function(e,A){var t=UA.parse(e,A[0]),r=A[1];return r&&O(r)?{color:t,stop:r}:{color:t,stop:null}},qt=function(e,A){var t=e[0],r=e[e.length-1];t.stop===null&&(t.stop=V),r.stop===null&&(r.stop=fA);for(var B=[],n=0,s=0;sn?B.push(a):B.push(n),n=a}else B.push(null)}for(var o=null,s=0;ss.optimumDistance)?{optimumCorner:i,optimumDistance:Q}:s},{optimumDistance:B?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Ba=function(e,A,t,r,B){var n=0,s=0;switch(e.size){case 0:e.shape===0?n=s=Math.min(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-B)):e.shape===1&&(n=Math.min(Math.abs(A),Math.abs(A-r)),s=Math.min(Math.abs(t),Math.abs(t-B)));break;case 2:if(e.shape===0)n=s=Math.min(tA(A,t),tA(A,t-B),tA(A-r,t),tA(A-r,t-B));else if(e.shape===1){var i=Math.min(Math.abs(t),Math.abs(t-B))/Math.min(Math.abs(A),Math.abs(A-r)),a=jt(r,B,A,t,!0),o=a[0],Q=a[1];n=tA(o-A,(Q-t)/i),s=i*n}break;case 1:e.shape===0?n=s=Math.max(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-B)):e.shape===1&&(n=Math.max(Math.abs(A),Math.abs(A-r)),s=Math.max(Math.abs(t),Math.abs(t-B)));break;case 3:if(e.shape===0)n=s=Math.max(tA(A,t),tA(A,t-B),tA(A-r,t),tA(A-r,t-B));else if(e.shape===1){var i=Math.max(Math.abs(t),Math.abs(t-B))/Math.max(Math.abs(A),Math.abs(A-r)),g=jt(r,B,A,t,!1),o=g[0],Q=g[1];n=tA(o-A,(Q-t)/i),s=i*n}break}return Array.isArray(e.size)&&(n=b(e.size[0],r),s=e.size.length===2?b(e.size[1],B):n),[n,s]},na=function(e,A){var t=$(180),r=[];return nA(A).forEach(function(B,n){if(n===0){var s=B[0];if(s.type===20&&s.value===`to`){t=kt(B);return}else if(Pt(s)){t=Se.parse(e,s);return}}var i=Oe(e,B);r.push(i)}),{angle:t,stops:r,type:1}},Me=function(e,A){var t=$(180),r=[];return nA(A).forEach(function(B,n){if(n===0){var s=B[0];if(s.type===20&&[`top`,`left`,`right`,`bottom`].indexOf(s.value)!==-1){t=kt(B);return}else if(Pt(s)){t=(Se.parse(e,s)+$(270))%$(360);return}}var i=Oe(e,B);r.push(i)}),{angle:t,stops:r,type:1}},sa=function(e,A){var t=$(180),r=[],B=1;return nA(A).forEach(function(a,o){var Q=a[0];if(o===0){if(L(Q)&&Q.value===`linear`){B=1;return}else if(L(Q)&&Q.value===`radial`){B=2;return}}if(Q.type===18){if(Q.name===`from`){var g=UA.parse(e,Q.values[0]);r.push({stop:V,color:g})}else if(Q.name===`to`){var g=UA.parse(e,Q.values[0]);r.push({stop:fA,color:g})}else if(Q.name===`color-stop`){var w=Q.values.filter(RA);if(w.length===2){var g=UA.parse(e,w[1]),f=w[0];GA(f)&&r.push({stop:{type:16,number:f.number*100,flags:f.flags},color:g})}}}}),B===1?{angle:(t+$(180))%$(360),stops:r,type:B}:{size:3,shape:0,stops:r,position:[],type:B}},zt=`closest-side`,$t=`farthest-side`,AB=`closest-corner`,eB=`farthest-corner`,rB=`circle`,tB=`ellipse`,BB=`cover`,nB=`contain`,aa=function(e,A){var t=0,r=3,B=[],n=[];return nA(A).forEach(function(s,i){var a=!0;if(i===0){var o=!1;a=s.reduce(function(g,w){if(o)if(L(w))switch(w.value){case`center`:return n.push(mr),g;case`top`:case`left`:return n.push(V),g;case`right`:case`bottom`:return n.push(fA),g}else(O(w)||lA(w))&&n.push(w);else if(L(w))switch(w.value){case rB:return t=0,!1;case tB:return t=1,!1;case`at`:return o=!0,!1;case zt:return r=0,!1;case BB:case $t:return r=1,!1;case nB:case AB:return r=2,!1;case eB:return r=3,!1}else if(lA(w)||O(w))return Array.isArray(r)||(r=[]),r.push(w),!1;return g},a)}if(a){var Q=Oe(e,s);B.push(Q)}}),{size:r,shape:t,stops:B,position:n,type:2}},Ge=function(e,A){var t=0,r=3,B=[],n=[];return nA(A).forEach(function(s,i){var a=!0;if(i===0?a=s.reduce(function(Q,g){if(L(g))switch(g.value){case`center`:return n.push(mr),!1;case`top`:case`left`:return n.push(V),!1;case`right`:case`bottom`:return n.push(fA),!1}else if(O(g)||lA(g))return n.push(g),!1;return Q},a):i===1&&(a=s.reduce(function(Q,g){if(L(g))switch(g.value){case rB:return t=0,!1;case tB:return t=1,!1;case nB:case zt:return r=0,!1;case $t:return r=1,!1;case AB:return r=2,!1;case BB:case eB:return r=3,!1}else if(lA(g)||O(g))return Array.isArray(r)||(r=[]),r.push(g),!1;return Q},a)),a){var o=Oe(e,s);B.push(o)}}),{size:r,shape:t,stops:B,position:n,type:2}},ia=function(e){return e.type===1},oa=function(e){return e.type===2},Dr={name:`image`,parse:function(e,A){if(A.type===22){var t={url:A.value,type:0};return e.cache.addImage(A.value),t}if(A.type===18){var r=sB[A.name];if(typeof r>`u`)throw new Error(`Attempting to parse an unsupported image function "`+A.name+`"`);return r(e,A.values)}throw new Error(`Unsupported image type `+A.type)}};function Qa(e){return!(e.type===20&&e.value===`none`)&&(e.type!==18||!!sB[e.name])}for(var sB={"linear-gradient":na,"-moz-linear-gradient":Me,"-ms-linear-gradient":Me,"-o-linear-gradient":Me,"-webkit-linear-gradient":Me,"radial-gradient":aa,"-moz-radial-gradient":Ge,"-ms-radial-gradient":Ge,"-o-radial-gradient":Ge,"-webkit-radial-gradient":Ge,"-webkit-gradient":sa},ga={name:`background-image`,initialValue:`none`,type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value===`none`?[]:A.filter(function(r){return RA(r)&&Qa(r)}).map(function(r){return Dr.parse(e,r)})}},wa={name:`background-origin`,initialValue:`border-box`,prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(L(t))switch(t.value){case`padding-box`:return 1;case`content-box`:return 2}return 0})}},ca={name:`background-position`,initialValue:`0% 0%`,type:1,prefix:!1,parse:function(e,A){return nA(A).map(function(t){return t.filter(O)}).map(Vt)}},Ca={name:`background-repeat`,initialValue:`repeat`,prefix:!1,type:1,parse:function(e,A){return nA(A).map(function(t){return t.filter(L).map(function(r){return r.value}).join(` `)}).map(ua)}},ua=function(e){switch(e){case`no-repeat`:return 1;case`repeat-x`:case`repeat no-repeat`:return 2;case`repeat-y`:case`no-repeat repeat`:return 3;default:return 0}},ie=(function(e){return e.AUTO=`auto`,e.CONTAIN=`contain`,e.COVER=`cover`,e})(ie||{}),la={name:`background-size`,initialValue:`0`,prefix:!1,type:1,parse:function(e,A){return nA(A).map(function(t){return t.filter(fa)})}},fa=function(e){return L(e)||O(e)},Re=function(e){return{name:`border-`+e+`-color`,initialValue:`transparent`,prefix:!1,type:3,format:`color`}},Ua=Re(`top`),Fa=Re(`right`),ha=Re(`bottom`),da=Re(`left`),Ve=function(e){return{name:`border-radius-`+e,initialValue:`0 0`,prefix:!1,type:1,parse:function(A,t){return Vt(t.filter(O))}}},Ea=Ve(`top-left`),Ha=Ve(`top-right`),pa=Ve(`bottom-right`),Ia=Ve(`bottom-left`),Ne=function(e){return{name:`border-`+e+`-style`,initialValue:`solid`,prefix:!1,type:2,parse:function(A,t){switch(t){case`none`:return 0;case`dashed`:return 2;case`dotted`:return 3;case`double`:return 4}return 1}}},va=Ne(`top`),ya=Ne(`right`),Ka=Ne(`bottom`),ma=Ne(`left`),Xe=function(e){return{name:`border-`+e+`-width`,initialValue:`0`,type:0,prefix:!1,parse:function(A,t){return ne(t)?t.number:0}}},La=Xe(`top`),Da=Xe(`right`),ba=Xe(`bottom`),xa=Xe(`left`),Ta={name:`color`,initialValue:`transparent`,prefix:!1,type:3,format:`color`},Sa={name:`direction`,initialValue:`ltr`,prefix:!1,type:2,parse:function(e,A){return A===`rtl`?1:0}},Oa={name:`display`,initialValue:`inline-block`,prefix:!1,type:1,parse:function(e,A){return A.filter(L).reduce(function(t,r){return t|Ma(r.value)},0)}},Ma=function(e){switch(e){case`block`:case`-webkit-box`:return 2;case`inline`:return 4;case`run-in`:return 8;case`flow`:return 16;case`flow-root`:return 32;case`table`:return 64;case`flex`:case`-webkit-flex`:return 128;case`grid`:case`-ms-grid`:return 256;case`ruby`:return 512;case`subgrid`:return 1024;case`list-item`:return 2048;case`table-row-group`:return 4096;case`table-header-group`:return 8192;case`table-footer-group`:return 16384;case`table-row`:return 32768;case`table-cell`:return 65536;case`table-column-group`:return 131072;case`table-column`:return 262144;case`table-caption`:return 524288;case`ruby-base`:return 1048576;case`ruby-text`:return 2097152;case`ruby-base-container`:return 4194304;case`ruby-text-container`:return 8388608;case`contents`:return 16777216;case`inline-block`:return 33554432;case`inline-list-item`:return 67108864;case`inline-table`:return 134217728;case`inline-flex`:return 268435456;case`inline-grid`:return 536870912}return 0},Ga={name:`float`,initialValue:`none`,prefix:!1,type:2,parse:function(e,A){switch(A){case`left`:return 1;case`right`:return 2;case`inline-start`:return 3;case`inline-end`:return 4}return 0}},Ra={name:`letter-spacing`,initialValue:`0`,prefix:!1,type:0,parse:function(e,A){return A.type===20&&A.value===`normal`?0:A.type===17||A.type===15?A.number:0}},br=(function(e){return e.NORMAL=`normal`,e.STRICT=`strict`,e})(br||{}),Va={name:`line-break`,initialValue:`normal`,prefix:!1,type:2,parse:function(e,A){return A===`strict`?br.STRICT:br.NORMAL}},Na={name:`line-height`,initialValue:`normal`,prefix:!1,type:4},aB=function(e,A){return L(e)&&e.value===`normal`?1.2*A:e.type===17?A*e.number:O(e)?b(e,A):A},Xa={name:`list-style-image`,initialValue:`none`,type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value===`none`?null:Dr.parse(e,A)}},_a={name:`list-style-position`,initialValue:`outside`,prefix:!1,type:2,parse:function(e,A){return A===`inside`?0:1}},xr={name:`list-style-type`,initialValue:`none`,prefix:!1,type:2,parse:function(e,A){switch(A){case`disc`:return 0;case`circle`:return 1;case`square`:return 2;case`decimal`:return 3;case`cjk-decimal`:return 4;case`decimal-leading-zero`:return 5;case`lower-roman`:return 6;case`upper-roman`:return 7;case`lower-greek`:return 8;case`lower-alpha`:return 9;case`upper-alpha`:return 10;case`arabic-indic`:return 11;case`armenian`:return 12;case`bengali`:return 13;case`cambodian`:return 14;case`cjk-earthly-branch`:return 15;case`cjk-heavenly-stem`:return 16;case`cjk-ideographic`:return 17;case`devanagari`:return 18;case`ethiopic-numeric`:return 19;case`georgian`:return 20;case`gujarati`:return 21;case`gurmukhi`:return 22;case`hebrew`:return 22;case`hiragana`:return 23;case`hiragana-iroha`:return 24;case`japanese-formal`:return 25;case`japanese-informal`:return 26;case`kannada`:return 27;case`katakana`:return 28;case`katakana-iroha`:return 29;case`khmer`:return 30;case`korean-hangul-formal`:return 31;case`korean-hanja-formal`:return 32;case`korean-hanja-informal`:return 33;case`lao`:return 34;case`lower-armenian`:return 35;case`malayalam`:return 36;case`mongolian`:return 37;case`myanmar`:return 38;case`oriya`:return 39;case`persian`:return 40;case`simp-chinese-formal`:return 41;case`simp-chinese-informal`:return 42;case`tamil`:return 43;case`telugu`:return 44;case`thai`:return 45;case`tibetan`:return 46;case`trad-chinese-formal`:return 47;case`trad-chinese-informal`:return 48;case`upper-armenian`:return 49;case`disclosure-open`:return 50;case`disclosure-closed`:return 51;default:return-1}}},_e=function(e){return{name:`margin-`+e,initialValue:`0`,prefix:!1,type:4}},Ja=_e(`top`),Pa=_e(`right`),ka=_e(`bottom`),Ya=_e(`left`),Wa={name:`overflow`,initialValue:`visible`,prefix:!1,type:1,parse:function(e,A){return A.filter(L).map(function(t){switch(t.value){case`hidden`:return 1;case`scroll`:return 2;case`clip`:return 3;case`auto`:return 4;default:return 0}})}},Za={name:`overflow-wrap`,initialValue:`normal`,prefix:!1,type:2,parse:function(e,A){return A===`break-word`?`break-word`:`normal`}},Je=function(e){return{name:`padding-`+e,initialValue:`0`,prefix:!1,type:3,format:`length-percentage`}},qa=Je(`top`),ja=Je(`right`),za=Je(`bottom`),$a=Je(`left`),Ai={name:`text-align`,initialValue:`left`,prefix:!1,type:2,parse:function(e,A){switch(A){case`right`:return 2;case`center`:case`justify`:return 1;default:return 0}}},ei={name:`position`,initialValue:`static`,prefix:!1,type:2,parse:function(e,A){switch(A){case`relative`:return 1;case`absolute`:return 2;case`fixed`:return 3;case`sticky`:return 4}return 0}},ri={name:`text-shadow`,initialValue:`none`,type:1,prefix:!1,parse:function(e,A){return A.length===1&&Kr(A[0],`none`)?[]:nA(A).map(function(t){for(var r={color:QA.TRANSPARENT,offsetX:V,offsetY:V,blur:V},B=0,n=0;n`u`)throw new Error(`Attempting to parse an unsupported transform function "`+A.name+`"`);return t(A.values)}return null}},ni=function(e){var A=e.filter(function(t){return t.type===17}).map(function(t){return t.number});return A.length===6?A:null},si=function(e){var A=e.filter(function(a){return a.type===17}).map(function(a){return a.number}),t=A[0],r=A[1];A[2],A[3];var B=A[4],n=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var s=A[12],i=A[13];return A[14],A[15],A.length===16?[t,r,B,n,s,i]:null},ai={matrix:ni,matrix3d:si},iB={type:16,number:50,flags:Ae},ii=[iB,iB],oi={name:`transform-origin`,initialValue:`50% 50%`,prefix:!0,type:1,parse:function(e,A){var t=A.filter(O);return t.length!==2?ii:[t[0],t[1]]}},Qi={name:`visible`,initialValue:`none`,prefix:!1,type:2,parse:function(e,A){switch(A){case`hidden`:return 1;case`collapse`:return 2;default:return 0}}},Pe=(function(e){return e.NORMAL=`normal`,e.BREAK_ALL=`break-all`,e.KEEP_ALL=`keep-all`,e})(Pe||{}),gi={name:`word-break`,initialValue:`normal`,prefix:!1,type:2,parse:function(e,A){switch(A){case`break-all`:return Pe.BREAK_ALL;case`keep-all`:return Pe.KEEP_ALL;default:return Pe.NORMAL}}},wi={name:`z-index`,initialValue:`auto`,prefix:!1,type:0,parse:function(e,A){if(A.type===20)return{auto:!0,order:0};if(GA(A))return{auto:!1,order:A.number};throw new Error(`Invalid z-index number parsed`)}},oB={name:`time`,parse:function(e,A){if(A.type===15)switch(A.unit.toLowerCase()){case`s`:return 1e3*A.number;case`ms`:return A.number}throw new Error(`Unsupported time type`)}},ci={name:`opacity`,initialValue:`1`,type:0,prefix:!1,parse:function(e,A){return GA(A)?A.number:1}},Ci={name:`text-decoration-color`,initialValue:`transparent`,prefix:!1,type:3,format:`color`},ui={name:`text-decoration-line`,initialValue:`none`,prefix:!1,type:1,parse:function(e,A){return A.filter(L).map(function(t){switch(t.value){case`underline`:return 1;case`overline`:return 2;case`line-through`:return 3;case`none`:return 4}return 0}).filter(function(t){return t!==0})}},li={name:`font-family`,initialValue:``,prefix:!1,type:1,parse:function(e,A){var t=[],r=[];return A.forEach(function(B){switch(B.type){case 20:case 0:t.push(B.value);break;case 17:t.push(B.number.toString());break;case 4:r.push(t.join(` `)),t.length=0;break}}),t.length&&r.push(t.join(` `)),r.map(function(B){return B.indexOf(` `)===-1?B:`'`+B+`'`})}},fi={name:`font-size`,initialValue:`0`,prefix:!1,type:3,format:`length`},Ui={name:`font-weight`,initialValue:`normal`,type:0,prefix:!1,parse:function(e,A){return GA(A)?A.number:L(A)&&A.value===`bold`?700:400}},Fi={name:`font-variant`,initialValue:`none`,type:1,prefix:!1,parse:function(e,A){return A.filter(L).map(function(t){return t.value})}},hi={name:`font-style`,initialValue:`normal`,prefix:!1,type:2,parse:function(e,A){switch(A){case`oblique`:return`oblique`;case`italic`:return`italic`;default:return`normal`}}},G=function(e,A){return(e&A)!==0},di={name:`content`,initialValue:`none`,type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value===`none`?[]:A}},Ei={name:`counter-increment`,initialValue:`none`,prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var t=A[0];if(t.type===20&&t.value===`none`)return null;for(var r=[],B=A.filter(Rt),n=0;n1?1:0],this.overflowWrap=U(A,Za,t.overflowWrap),this.paddingTop=U(A,qa,t.paddingTop),this.paddingRight=U(A,ja,t.paddingRight),this.paddingBottom=U(A,za,t.paddingBottom),this.paddingLeft=U(A,$a,t.paddingLeft),this.paintOrder=U(A,yi,t.paintOrder),this.position=U(A,ei,t.position),this.textAlign=U(A,Ai,t.textAlign),this.textDecorationColor=U(A,Ci,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=U(A,ui,(B=t.textDecorationLine)!==null&&B!==void 0?B:t.textDecoration),this.textShadow=U(A,ri,t.textShadow),this.textTransform=U(A,ti,t.textTransform),this.transform=U(A,Bi,t.transform),this.transformOrigin=U(A,oi,t.transformOrigin),this.visibility=U(A,Qi,t.visibility),this.webkitTextStrokeColor=U(A,Ki,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=U(A,mi,t.webkitTextStrokeWidth),this.wordBreak=U(A,gi,t.wordBreak),this.zIndex=U(A,wi,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return FA(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return G(this.display,4)||G(this.display,33554432)||G(this.display,268435456)||G(this.display,536870912)||G(this.display,67108864)||G(this.display,134217728)},e})(),Di=(function(){function e(A,t){this.content=U(A,di,t.content),this.quotes=U(A,Ii,t.quotes)}return e})(),gB=(function(){function e(A,t){this.counterIncrement=U(A,Ei,t.counterIncrement),this.counterReset=U(A,Hi,t.counterReset)}return e})(),U=function(e,A,t){var r=new Mt,B=t!==null&&typeof t<`u`?t.toString():A.initialValue;r.write(B);var n=new Gt(r.read());switch(A.type){case 2:var s=n.parseComponentValue();return A.parse(e,L(s)?s.value:A.initialValue);case 0:return A.parse(e,n.parseComponentValue());case 1:return A.parse(e,n.parseComponentValues());case 4:return n.parseComponentValue();case 3:switch(A.format){case`angle`:return Se.parse(e,n.parseComponentValue());case`color`:return UA.parse(e,n.parseComponentValue());case`image`:return Dr.parse(e,n.parseComponentValue());case`length`:var i=n.parseComponentValue();return lA(i)?i:V;case`length-percentage`:var a=n.parseComponentValue();return O(a)?a:V;case`time`:return oB.parse(e,n.parseComponentValue())}break}},bi=`data-html2canvas-debug`,xi=function(e){switch(e.getAttribute(bi)){case`all`:return 1;case`clone`:return 2;case`parse`:return 3;case`render`:return 4;default:return 0}},Tr=function(e,A){var t=xi(e);return t===1||A===t},sA=(function(){function e(A,t){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Tr(t,3))debugger;this.styles=new Li(A,window.getComputedStyle(t,null)),Wr(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration=`0s`),this.styles.transform!==null&&(t.style.transform=`none`)),this.bounds=ue(this.context,t),Tr(t,4)&&(this.flags|=16)}return e})(),Ti=`AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=`,wB=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,oe=typeof Uint8Array>`u`?[]:new Uint8Array(256),ke=0;ke>4,Q[B++]=(s&15)<<4|i>>2,Q[B++]=(i&3)<<6|a&63;return o},Oi=function(e){for(var A=e.length,t=[],r=0;r>mA,Mr=(1<>mA)+32,Pi=65536>>Sr,Yi=(1<=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>mA],t=(t<>mA)],t=(t<>Sr),t=this.index[t],t+=A>>mA&Yi,t=this.index[t],t=(t<`u`?[]:new Uint8Array(256),Ye=0;Ye=55296&&B<=56319&&t>10)+55296,s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},ro=Zi(Ti),AA=`×`,_r=`÷`,to=function(e){return ro.get(e)},Bo=function(e,A,t){var r=t-2,B=A[r],n=A[t-1],s=A[t];if(n===Gr&&s===Rr)return AA;if(n===Gr||n===Rr||n===lB||s===Gr||s===Rr||s===lB)return _r;if(n===UB&&[UB,Vr,FB,hB].indexOf(s)!==-1||(n===FB||n===Vr)&&(s===Vr||s===Nr)||(n===hB||n===Nr)&&s===Nr||s===dB||s===fB||s===$i||n===zi)return AA;if(n===dB&&s===EB){for(;B===fB;)B=A[--r];if(B===EB)return AA}if(n===Xr&&s===Xr){for(var i=0;B===Xr;)i++,B=A[--r];if(i%2===0)return AA}return _r},no=function(e){var A=Ao(e),t=A.length,r=0,B=0,n=A.map(to);return{next:function(){if(r>=t)return{done:!0,value:null};for(var s=AA;rs.x||Q.y>s.y;return s=Q,o===0?!0:g});return e.body.removeChild(A),i},oo=function(){return typeof new Image().crossOrigin<`u`},Qo=function(){return typeof new XMLHttpRequest().responseType==`string`},go=function(e){var A=new Image,t=e.createElement(`canvas`),r=t.getContext(`2d`);if(!r)return!1;A.src=`data:image/svg+xml,`;try{r.drawImage(A,0,0),t.toDataURL()}catch{return!1}return!0},HB=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},wo=function(e){var A=e.createElement(`canvas`),t=100;A.width=t,A.height=t;var r=A.getContext(`2d`);if(!r)return Promise.reject(!1);r.fillStyle=`rgb(0, 255, 0)`,r.fillRect(0,0,t,t);var B=new Image,n=A.toDataURL();B.src=n;var s=Jr(t,t,0,0,B);return r.fillStyle=`red`,r.fillRect(0,0,t,t),pB(s).then(function(i){r.drawImage(i,0,0);var a=r.getImageData(0,0,t,t).data;r.fillStyle=`red`,r.fillRect(0,0,t,t);var o=e.createElement(`div`);return o.style.backgroundImage=`url(`+n+`)`,o.style.height=t+`px`,HB(a)?pB(Jr(t,t,0,0,o)):Promise.reject(!1)}).then(function(i){return r.drawImage(i,0,0),HB(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},Jr=function(e,A,t,r,B){var n=`http://www.w3.org/2000/svg`,s=document.createElementNS(n,`svg`),i=document.createElementNS(n,`foreignObject`);return s.setAttributeNS(null,`width`,e.toString()),s.setAttributeNS(null,`height`,A.toString()),i.setAttributeNS(null,`width`,`100%`),i.setAttributeNS(null,`height`,`100%`),i.setAttributeNS(null,`x`,t.toString()),i.setAttributeNS(null,`y`,r.toString()),i.setAttributeNS(null,`externalResourcesRequired`,`true`),s.appendChild(i),i.appendChild(B),s},pB=function(e){return new Promise(function(A,t){var r=new Image;r.onload=function(){return A(r)},r.onerror=t,r.src=`data:image/svg+xml;charset=utf-8,`+encodeURIComponent(new XMLSerializer().serializeToString(e))})},N={get SUPPORT_RANGE_BOUNDS(){var e=ao(document);return Object.defineProperty(N,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=N.SUPPORT_RANGE_BOUNDS&&io(document);return Object.defineProperty(N,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=go(document);return Object.defineProperty(N,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from==`function`&&typeof window.fetch==`function`?wo(document):Promise.resolve(!1);return Object.defineProperty(N,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=oo();return Object.defineProperty(N,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Qo();return Object.defineProperty(N,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e=`withCredentials`in new XMLHttpRequest;return Object.defineProperty(N,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<`u`&&Intl.Segmenter);return Object.defineProperty(N,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Qe=(function(){function e(A,t){this.text=A,this.bounds=t}return e})(),co=function(e,A,t,r){var B=lo(A,t),n=[],s=0;return B.forEach(function(i){if(t.textDecorationLine.length||i.trim().length>0)if(N.SUPPORT_RANGE_BOUNDS){var a=IB(r,s,i.length).getClientRects();if(a.length>1){var o=Pr(i),Q=0;o.forEach(function(w){n.push(new Qe(w,iA.fromDOMRectList(e,IB(r,Q+s,w.length).getClientRects()))),Q+=w.length})}else n.push(new Qe(i,iA.fromDOMRectList(e,a)))}else{var g=r.splitText(i.length);n.push(new Qe(i,Co(e,r))),r=g}else N.SUPPORT_RANGE_BOUNDS||(r=r.splitText(i.length));s+=i.length}),n},Co=function(e,A){var t=A.ownerDocument;if(t){var r=t.createElement(`html2canvaswrapper`);r.appendChild(A.cloneNode(!0));var B=A.parentNode;if(B){B.replaceChild(r,A);var n=ue(e,r);return r.firstChild&&B.replaceChild(r.firstChild,r),n}}return iA.EMPTY},IB=function(e,A,t){var r=e.ownerDocument;if(!r)throw new Error(`Node has no owner document`);var B=r.createRange();return B.setStart(e,A),B.setEnd(e,A+t),B},Pr=function(e){if(N.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:`grapheme`});return Array.from(A.segment(e)).map(function(t){return t.segment})}return so(e)},uo=function(e,A){if(N.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:`word`});return Array.from(t.segment(e)).map(function(r){return r.segment})}return Uo(e,A)},lo=function(e,A){return A.letterSpacing!==0?Pr(e):uo(e,A)},fo=[32,160,4961,65792,65793,4153,4241],Uo=function(e,A){for(var t=Pn(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap===`break-word`?`break-word`:A.wordBreak}),r=[],B,n=function(){if(B.value){var i=le(B.value.slice()),a=``;i.forEach(function(o){fo.indexOf(o)===-1?a+=T(o):(a.length&&r.push(a),r.push(T(o)),a=``)}),a.length&&r.push(a)}};!(B=t.next()).done;)n();return r},Fo=(function(){function e(A,t,r){this.text=ho(t.data,r.textTransform),this.textBounds=co(A,this.text,r,t)}return e})(),ho=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(Eo,Ho);case 2:return e.toUpperCase();default:return e}},Eo=/(^|\s|:|-|\(|\))([a-z])/g,Ho=function(e,A,t){return e.length>0?A+t.toUpperCase():e},vB=(function(e){P(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.src=r.currentSrc||r.src,B.intrinsicWidth=r.naturalWidth,B.intrinsicHeight=r.naturalHeight,B.context.cache.addImage(B.src),B}return A})(sA),yB=(function(e){P(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.canvas=r,B.intrinsicWidth=r.width,B.intrinsicHeight=r.height,B}return A})(sA),KB=(function(e){P(A,e);function A(t,r){var B=e.call(this,t,r)||this,n=new XMLSerializer,s=ue(t,r);return r.setAttribute(`width`,s.width+`px`),r.setAttribute(`height`,s.height+`px`),B.svg=`data:image/svg+xml,`+encodeURIComponent(n.serializeToString(r)),B.intrinsicWidth=r.width.baseVal.value,B.intrinsicHeight=r.height.baseVal.value,B.context.cache.addImage(B.svg),B}return A})(sA),mB=(function(e){P(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.value=r.value,B}return A})(sA),kr=(function(e){P(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.start=r.start,B.reversed=typeof r.reversed==`boolean`&&r.reversed===!0,B}return A})(sA),po=[{type:15,flags:0,unit:`px`,number:3}],Io=[{type:16,flags:0,number:50}],vo=function(e){return e.width>e.height?new iA(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width0)t.textNodes.push(new Fo(e,B,t.styles));else if(VA(B))if(XB(B)&&B.assignedNodes)B.assignedNodes().forEach(function(i){return qe(e,i,t,r)});else{var s=TB(e,B);s.styles.isVisible()&&(Lo(B,s,r)?s.flags|=4:Do(s.styles)&&(s.flags|=2),mo.indexOf(B.tagName)!==-1&&(s.flags|=8),t.elements.push(s),B.slot,B.shadowRoot?qe(e,B.shadowRoot,s,r):!ze(B)&&!MB(B)&&!$e(B)&&qe(e,B,s,r))}},TB=function(e,A){return qr(A)?new vB(e,A):GB(A)?new yB(e,A):MB(A)?new KB(e,A):bo(A)?new mB(e,A):xo(A)?new kr(e,A):To(A)?new Yr(e,A):$e(A)?new DB(e,A):ze(A)?new bB(e,A):VB(A)?new xB(e,A):new sA(e,A)},SB=function(e,A){var t=TB(e,A);return t.flags|=4,qe(e,A,t,t),t},Lo=function(e,A,t){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Zr(e)&&t.styles.isTransparent()},Do=function(e){return e.isPositioned()||e.isFloating()},OB=function(e){return e.nodeType===Node.TEXT_NODE},VA=function(e){return e.nodeType===Node.ELEMENT_NODE},Wr=function(e){return VA(e)&&typeof e.style<`u`&&!je(e)},je=function(e){return typeof e.className==`object`},bo=function(e){return e.tagName===`LI`},xo=function(e){return e.tagName===`OL`},To=function(e){return e.tagName===`INPUT`},So=function(e){return e.tagName===`HTML`},MB=function(e){return e.tagName===`svg`},Zr=function(e){return e.tagName===`BODY`},GB=function(e){return e.tagName===`CANVAS`},RB=function(e){return e.tagName===`VIDEO`},qr=function(e){return e.tagName===`IMG`},VB=function(e){return e.tagName===`IFRAME`},NB=function(e){return e.tagName===`STYLE`},Oo=function(e){return e.tagName===`SCRIPT`},ze=function(e){return e.tagName===`TEXTAREA`},$e=function(e){return e.tagName===`SELECT`},XB=function(e){return e.tagName===`SLOT`},_B=function(e){return e.tagName.indexOf(`-`)>0},Mo=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var t=this.counters[A];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(A){return this.counters[A]||[]},e.prototype.pop=function(A){var t=this;A.forEach(function(r){return t.counters[r].pop()})},e.prototype.parse=function(A){var t=this,r=A.counterIncrement,B=A.counterReset,n=!0;r!==null&&r.forEach(function(i){var a=t.counters[i.counter];a&&i.increment!==0&&(n=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=i.increment)});var s=[];return n&&B.forEach(function(i){var a=t.counters[i.counter];s.push(i.counter),a||(a=t.counters[i.counter]=[]),a.push(i.reset)}),s},e})(),JB={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:[`M`,`CM`,`D`,`CD`,`C`,`XC`,`L`,`XL`,`X`,`IX`,`V`,`IV`,`I`]},PB={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:[`Ք`,`Փ`,`Ւ`,`Ց`,`Ր`,`Տ`,`Վ`,`Ս`,`Ռ`,`Ջ`,`Պ`,`Չ`,`Ո`,`Շ`,`Ն`,`Յ`,`Մ`,`Ճ`,`Ղ`,`Ձ`,`Հ`,`Կ`,`Ծ`,`Խ`,`Լ`,`Ի`,`Ժ`,`Թ`,`Ը`,`Է`,`Զ`,`Ե`,`Դ`,`Գ`,`Բ`,`Ա`]},Go={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:[`י׳`,`ט׳`,`ח׳`,`ז׳`,`ו׳`,`ה׳`,`ד׳`,`ג׳`,`ב׳`,`א׳`,`ת`,`ש`,`ר`,`ק`,`צ`,`פ`,`ע`,`ס`,`נ`,`מ`,`ל`,`כ`,`יט`,`יח`,`יז`,`טז`,`טו`,`י`,`ט`,`ח`,`ז`,`ו`,`ה`,`ד`,`ג`,`ב`,`א`]},Ro={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:[`ჵ`,`ჰ`,`ჯ`,`ჴ`,`ხ`,`ჭ`,`წ`,`ძ`,`ც`,`ჩ`,`შ`,`ყ`,`ღ`,`ქ`,`ფ`,`ჳ`,`ტ`,`ს`,`რ`,`ჟ`,`პ`,`ო`,`ჲ`,`ნ`,`მ`,`ლ`,`კ`,`ი`,`თ`,`ჱ`,`ზ`,`ვ`,`ე`,`დ`,`გ`,`ბ`,`ა`]},NA=function(e,A,t,r,B,n){return et?we(e,B,n.length>0):r.integers.reduce(function(s,i,a){for(;e>=i;)e-=i,s+=r.values[a];return s},``)+n},kB=function(e,A,t,r){var B=``;do t||e--,B=r(e)+B,e/=A;while(e*A>=A);return B},S=function(e,A,t,r,B){var n=t-A+1;return(e<0?`-`:``)+(kB(Math.abs(e),n,r,function(s){return T(Math.floor(s%n)+A)})+B)},LA=function(e,A,t){t===void 0&&(t=`. `);var r=A.length;return kB(Math.abs(e),r,!1,function(B){return A[Math.floor(B%r)]})+t},XA=1,dA=2,EA=4,ge=8,gA=function(e,A,t,r,B,n){if(e<-9999||e>9999)return we(e,4,B.length>0);var s=Math.abs(e),i=B;if(s===0)return A[0]+i;for(var a=0;s>0&&a<=4;a++){var o=s%10;o===0&&G(n,XA)&&i!==``?i=A[o]+i:o>1||o===1&&a===0||o===1&&a===1&&G(n,dA)||o===1&&a===1&&G(n,EA)&&e>100||o===1&&a>1&&G(n,ge)?i=A[o]+(a>0?t[a-1]:``)+i:o===1&&a>0&&(i=t[a-1]+i),s=Math.floor(s/10)}return(e<0?r:``)+i},YB=`十百千萬`,WB=`拾佰仟萬`,ZB=`マイナス`,jr=`마이너스`,we=function(e,A,t){var r=t?`. `:``,B=t?`、`:``,n=t?`, `:``,s=t?` `:``;switch(A){case 0:return`•`+s;case 1:return`◦`+s;case 2:return`◾`+s;case 5:var i=S(e,48,57,!0,r);return i.length<4?`0`+i:i;case 4:return LA(e,`〇一二三四五六七八九`,B);case 6:return NA(e,1,3999,JB,3,r).toLowerCase();case 7:return NA(e,1,3999,JB,3,r);case 8:return S(e,945,969,!1,r);case 9:return S(e,97,122,!1,r);case 10:return S(e,65,90,!1,r);case 11:return S(e,1632,1641,!0,r);case 12:case 49:return NA(e,1,9999,PB,3,r);case 35:return NA(e,1,9999,PB,3,r).toLowerCase();case 13:return S(e,2534,2543,!0,r);case 14:case 30:return S(e,6112,6121,!0,r);case 15:return LA(e,`子丑寅卯辰巳午未申酉戌亥`,B);case 16:return LA(e,`甲乙丙丁戊己庚辛壬癸`,B);case 17:case 48:return gA(e,`零一二三四五六七八九`,YB,`負`,B,dA|EA|ge);case 47:return gA(e,`零壹貳參肆伍陸柒捌玖`,WB,`負`,B,XA|dA|EA|ge);case 42:return gA(e,`零一二三四五六七八九`,YB,`负`,B,dA|EA|ge);case 41:return gA(e,`零壹贰叁肆伍陆柒捌玖`,WB,`负`,B,XA|dA|EA|ge);case 26:return gA(e,`〇一二三四五六七八九`,`十百千万`,ZB,B,0);case 25:return gA(e,`零壱弐参四伍六七八九`,`拾百千万`,ZB,B,XA|dA|EA);case 31:return gA(e,`영일이삼사오육칠팔구`,`십백천만`,jr,n,XA|dA|EA);case 33:return gA(e,`零一二三四五六七八九`,`十百千萬`,jr,n,0);case 32:return gA(e,`零壹貳參四五六七八九`,`拾百千`,jr,n,XA|dA|EA);case 18:return S(e,2406,2415,!0,r);case 20:return NA(e,1,19999,Ro,3,r);case 21:return S(e,2790,2799,!0,r);case 22:return S(e,2662,2671,!0,r);case 22:return NA(e,1,10999,Go,3,r);case 23:return LA(e,`あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん`);case 24:return LA(e,`いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす`);case 27:return S(e,3302,3311,!0,r);case 28:return LA(e,`アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン`,B);case 29:return LA(e,`イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス`,B);case 34:return S(e,3792,3801,!0,r);case 37:return S(e,6160,6169,!0,r);case 38:return S(e,4160,4169,!0,r);case 39:return S(e,2918,2927,!0,r);case 40:return S(e,1776,1785,!0,r);case 43:return S(e,3046,3055,!0,r);case 44:return S(e,3174,3183,!0,r);case 45:return S(e,3664,3673,!0,r);case 46:return S(e,3872,3881,!0,r);default:return S(e,48,57,!0,r)}},qB=`data-html2canvas-ignore`,jB=(function(){function e(A,t,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new Mo,this.quoteDepth=0,!t.ownerDocument)throw new Error(`Cloned element does not have an owner document`);this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(A,t){var r=this,B=Vo(A,t);if(!B.contentWindow)return Promise.reject(`Unable to find iframe window`);var n=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,i=B.contentWindow,a=i.document,o=_o(B).then(function(){return k(r,void 0,void 0,function(){var Q,g;return _(this,function(w){switch(w.label){case 0:return this.scrolledElements.forEach(Yo),i&&(i.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(i.scrollY!==t.top||i.scrollX!==t.left)&&(this.context.logger.warn(`Unable to restore scroll position for cloned document`),this.context.windowBounds=this.context.windowBounds.add(i.scrollX-t.left,i.scrollY-t.top,0,0))),Q=this.options.onclone,g=this.clonedReferenceElement,typeof g>`u`?[2,Promise.reject(`Error finding the `+this.referenceElement.nodeName+` in the cloned document`)]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:w.sent(),w.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Xo(a)]:[3,4];case 3:w.sent(),w.label=4;case 4:return typeof Q==`function`?[2,Promise.resolve().then(function(){return Q(a,g)}).then(function(){return B})]:[2,B]}})})});return a.open(),a.write(Po(document.doctype)+``),ko(this.referenceElement.ownerDocument,n,s),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),o},e.prototype.createElementClone=function(A){if(Tr(A,2))debugger;if(GB(A))return this.createCanvasClone(A);if(RB(A))return this.createVideoClone(A);if(NB(A))return this.createStyleClone(A);var t=A.cloneNode(!1);return qr(t)&&(qr(A)&&A.currentSrc&&A.currentSrc!==A.src&&(t.src=A.currentSrc,t.srcset=``),t.loading===`lazy`&&(t.loading=`eager`)),_B(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(A){var t=document.createElement(`html2canvascustomelement`);return zr(A.style,t),t},e.prototype.createStyleClone=function(A){try{var t=A.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(n,s){return s&&typeof s.cssText==`string`?n+s.cssText:n},``),B=A.cloneNode(!1);return B.textContent=r,B}}catch(n){if(this.context.logger.error(`Unable to access cssRules property`,n),n.name!==`SecurityError`)throw n}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var t;if(this.options.inlineImages&&A.ownerDocument){var r=A.ownerDocument.createElement(`img`);try{return r.src=A.toDataURL(),r}catch{this.context.logger.info(`Unable to inline canvas contents, canvas is tainted`,A)}}var B=A.cloneNode(!1);try{B.width=A.width,B.height=A.height;var n=A.getContext(`2d`),s=B.getContext(`2d`);if(s)if(!this.options.allowTaint&&n)s.putImageData(n.getImageData(0,0,A.width,A.height),0,0);else{var i=(t=A.getContext(`webgl2`))!==null&&t!==void 0?t:A.getContext(`webgl`);if(i)i.getContextAttributes()?.preserveDrawingBuffer===!1&&this.context.logger.warn(`Unable to clone WebGL context as it has preserveDrawingBuffer=false`,A);s.drawImage(A,0,0)}return B}catch{this.context.logger.info(`Unable to clone canvas as it is tainted`,A)}return B},e.prototype.createVideoClone=function(A){var t=A.ownerDocument.createElement(`canvas`);t.width=A.offsetWidth,t.height=A.offsetHeight;var r=t.getContext(`2d`);try{return r&&(r.drawImage(A,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info(`Unable to clone video as it is tainted`,A)}var B=A.ownerDocument.createElement(`canvas`);return B.width=A.offsetWidth,B.height=A.offsetHeight,B},e.prototype.appendChildNode=function(A,t,r){(!VA(t)||!Oo(t)&&!t.hasAttribute(qB)&&(typeof this.options.ignoreElements!=`function`||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!VA(t)||!NB(t))&&A.appendChild(this.cloneNode(t,r))},e.prototype.cloneChildNodes=function(A,t,r){for(var B=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(VA(n)&&XB(n)&&typeof n.assignedNodes==`function`){var s=n.assignedNodes();s.length&&s.forEach(function(i){return B.appendChildNode(t,i,r)})}else this.appendChildNode(t,n,r)},e.prototype.cloneNode=function(A,t){if(OB(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var r=A.ownerDocument.defaultView;if(r&&VA(A)&&(Wr(A)||je(A))){var B=this.createElementClone(A);B.style.transitionProperty=`none`;var n=r.getComputedStyle(A),s=r.getComputedStyle(A,`:before`),i=r.getComputedStyle(A,`:after`);this.referenceElement===A&&Wr(B)&&(this.clonedReferenceElement=B),Zr(B)&&qo(B);var a=this.counters.parse(new gB(this.context,n)),o=this.resolvePseudoContent(A,B,s,Ar.BEFORE);_B(A)&&(t=!0),RB(A)||this.cloneChildNodes(A,B,t),o&&B.insertBefore(o,B.firstChild);var Q=this.resolvePseudoContent(A,B,i,Ar.AFTER);return Q&&B.appendChild(Q),this.counters.pop(a),(n&&(this.options.copyStyles||je(A))&&!VB(A)||t)&&zr(n,B),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([B,A.scrollLeft,A.scrollTop]),(ze(A)||$e(A))&&(ze(B)||$e(B))&&(B.value=A.value),B}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,t,r,B){var n=this;if(r){var s=r.content,i=t.ownerDocument;if(!(!i||!s||s===`none`||s===`-moz-alt-content`||r.display===`none`)){this.counters.parse(new gB(this.context,r));var a=new Di(this.context,r),o=i.createElement(`html2canvaspseudoelement`);zr(r,o),a.content.forEach(function(g){if(g.type===0)o.appendChild(i.createTextNode(g.value));else if(g.type===22){var w=i.createElement(`img`);w.src=g.value,w.style.opacity=`1`,o.appendChild(w)}else if(g.type===18){if(g.name===`attr`){var f=g.values.filter(L);f.length&&o.appendChild(i.createTextNode(A.getAttribute(f[0].value)||``))}else if(g.name===`counter`){var c=g.values.filter(RA),C=c[0],H=c[1];if(C&&L(C)){var h=n.counters.getCounterValue(C.value),F=H&&L(H)?xr.parse(n.context,H.value):3;o.appendChild(i.createTextNode(we(h,F,!1)))}}else if(g.name===`counters`){var K=g.values.filter(RA),C=K[0],p=K[1],H=K[2];if(C&&L(C)){var d=n.counters.getCounterValues(C.value),l=H&&L(H)?xr.parse(n.context,H.value):3,v=p&&p.type===0?p.value:``,y=d.map(function(W){return we(W,l,!1)}).join(v);o.appendChild(i.createTextNode(y))}}}else if(g.type===20)switch(g.value){case`open-quote`:o.appendChild(i.createTextNode(QB(a.quotes,n.quoteDepth++,!0)));break;case`close-quote`:o.appendChild(i.createTextNode(QB(a.quotes,--n.quoteDepth,!1)));break;default:o.appendChild(i.createTextNode(g.value))}}),o.className=$r+` `+At;var Q=B===Ar.BEFORE?` `+$r:` `+At;return je(t)?t.className.baseValue+=Q:t.className+=Q,o}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},e})(),Ar=(function(e){return e[e.BEFORE=0]=`BEFORE`,e[e.AFTER=1]=`AFTER`,e})(Ar||{}),Vo=function(e,A){var t=e.createElement(`iframe`);return t.className=`html2canvas-container`,t.style.visibility=`hidden`,t.style.position=`fixed`,t.style.left=`-10000px`,t.style.top=`0px`,t.style.border=`0`,t.width=A.width.toString(),t.height=A.height.toString(),t.scrolling=`no`,t.setAttribute(qB,`true`),e.body.appendChild(t),t},No=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},Xo=function(e){return Promise.all([].slice.call(e.images,0).map(No))},_o=function(e){return new Promise(function(A,t){var r=e.contentWindow;if(!r)return t(`No window assigned for iframe`);var B=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){B.body.childNodes.length>0&&B.readyState===`complete`&&(clearInterval(n),A(e))},50)}})},Jo=[`all`,`d`,`content`],zr=function(e,A){for(var t=e.length-1;t>=0;t--){var r=e.item(t);Jo.indexOf(r)===-1&&A.style.setProperty(r,e.getPropertyValue(r))}return A},Po=function(e){var A=``;return e&&(A+=``),A},ko=function(e,A,t){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||t!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,t)},Yo=function(e){var A=e[0],t=e[1],r=e[2];A.scrollLeft=t,A.scrollTop=r},Wo=`:before`,Zo=`:after`,$r=`___html2canvas___pseudoelement_before`,At=`___html2canvas___pseudoelement_after`,zB=`{
+ content: "" !important;
+ display: none !important;
+}`,qo=function(e){jo(e,`.`+$r+Wo+zB+`
+ .`+At+Zo+zB)},jo=function(e,A){var t=e.ownerDocument;if(t){var r=t.createElement(`style`);r.textContent=A,e.appendChild(r)}},$B=(function(){function e(){}return e.getOrigin=function(A){var t=e._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):`about:blank`},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement(`a`),e._origin=e.getOrigin(A.location.href)},e._origin=`about:blank`,e})(),zo=(function(){function e(A,t){this.context=A,this._options=t,this._cache={}}return e.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)||(rt(A)||rQ(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),t},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return k(this,void 0,void 0,function(){var t,r,B,n,s=this;return _(this,function(i){switch(i.label){case 0:return t=$B.isSameOrigin(A),r=!et(A)&&this._options.useCORS===!0&&N.SUPPORT_CORS_IMAGES&&!t,B=!et(A)&&!t&&!rt(A)&&typeof this._options.proxy==`string`&&N.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!et(A)&&!rt(A)&&!B&&!r?[2]:(n=A,B?[4,this.proxy(n)]:[3,2]);case 1:n=i.sent(),i.label=2;case 2:return this.context.logger.debug(`Added image `+A.substring(0,256)),[4,new Promise(function(a,o){var Q=new Image;Q.onload=function(){return a(Q)},Q.onerror=o,(tQ(n)||r)&&(Q.crossOrigin=`anonymous`),Q.src=n,Q.complete===!0&&setTimeout(function(){return a(Q)},500),s._options.imageTimeout>0&&setTimeout(function(){return o(`Timed out (`+s._options.imageTimeout+`ms) loading image`)},s._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<`u`},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var t=this,r=this._options.proxy;if(!r)throw new Error(`No proxy defined`);var B=A.substring(0,256);return new Promise(function(n,s){var i=N.SUPPORT_RESPONSE_TYPE?`blob`:`text`,a=new XMLHttpRequest;a.onload=function(){if(a.status===200)if(i===`text`)n(a.response);else{var g=new FileReader;g.addEventListener(`load`,function(){return n(g.result)},!1),g.addEventListener(`error`,function(w){return s(w)},!1),g.readAsDataURL(a.response)}else s(`Failed to proxy resource `+B+` with status code `+a.status)},a.onerror=s;var o=r.indexOf(`?`)>-1?`&`:`?`;if(a.open(`GET`,``+r+o+`url=`+encodeURIComponent(A)+`&responseType=`+i),i!==`text`&&a instanceof XMLHttpRequest&&(a.responseType=i),t._options.imageTimeout){var Q=t._options.imageTimeout;a.timeout=Q,a.ontimeout=function(){return s(`Timed out (`+Q+`ms) proxying `+B)}}a.send()})},e})(),$o=/^data:image\/svg\+xml/i,AQ=/^data:image\/.*;base64,/i,eQ=/^data:image\/.*/i,rQ=function(e){return N.SUPPORT_SVG_DRAWING||!BQ(e)},et=function(e){return eQ.test(e)},tQ=function(e){return AQ.test(e)},rt=function(e){return e.substr(0,4)===`blob`},BQ=function(e){return e.substr(-3).toLowerCase()===`svg`||$o.test(e)},u=(function(){function e(A,t){this.type=0,this.x=A,this.y=t}return e.prototype.add=function(A,t){return new e(this.x+A,this.y+t)},e})(),_A=function(e,A,t){return new u(e.x+(A.x-e.x)*t,e.y+(A.y-e.y)*t)},er=(function(){function e(A,t,r,B){this.type=1,this.start=A,this.startControl=t,this.endControl=r,this.end=B}return e.prototype.subdivide=function(A,t){var r=_A(this.start,this.startControl,A),B=_A(this.startControl,this.endControl,A),n=_A(this.endControl,this.end,A),s=_A(r,B,A),i=_A(B,n,A),a=_A(s,i,A);return t?new e(this.start,r,s,a):new e(a,i,n,this.end)},e.prototype.add=function(A,t){return new e(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),eA=function(e){return e.type===1},nQ=(function(){function e(A){var t=A.styles,r=A.bounds,B=se(t.borderTopLeftRadius,r.width,r.height),n=B[0],s=B[1],i=se(t.borderTopRightRadius,r.width,r.height),a=i[0],o=i[1],Q=se(t.borderBottomRightRadius,r.width,r.height),g=Q[0],w=Q[1],f=se(t.borderBottomLeftRadius,r.width,r.height),c=f[0],C=f[1],H=[];H.push((n+a)/r.width),H.push((c+g)/r.width),H.push((s+C)/r.height),H.push((o+w)/r.height);var h=Math.max.apply(Math,H);h>1&&(n/=h,s/=h,a/=h,o/=h,g/=h,w/=h,c/=h,C/=h);var F=r.width-a,K=r.height-w,p=r.width-g,d=r.height-C,l=t.borderTopWidth,v=t.borderRightWidth,y=t.borderBottomWidth,E=t.borderLeftWidth,M=b(t.paddingTop,A.bounds.width),W=b(t.paddingRight,A.bounds.width),z=b(t.paddingBottom,A.bounds.width),D=b(t.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||s>0?x(r.left+E/3,r.top+l/3,n-E/3,s-l/3,m.TOP_LEFT):new u(r.left+E/3,r.top+l/3),this.topRightBorderDoubleOuterBox=n>0||s>0?x(r.left+F,r.top+l/3,a-v/3,o-l/3,m.TOP_RIGHT):new u(r.left+r.width-v/3,r.top+l/3),this.bottomRightBorderDoubleOuterBox=g>0||w>0?x(r.left+p,r.top+K,g-v/3,w-y/3,m.BOTTOM_RIGHT):new u(r.left+r.width-v/3,r.top+r.height-y/3),this.bottomLeftBorderDoubleOuterBox=c>0||C>0?x(r.left+E/3,r.top+d,c-E/3,C-y/3,m.BOTTOM_LEFT):new u(r.left+E/3,r.top+r.height-y/3),this.topLeftBorderDoubleInnerBox=n>0||s>0?x(r.left+E*2/3,r.top+l*2/3,n-E*2/3,s-l*2/3,m.TOP_LEFT):new u(r.left+E*2/3,r.top+l*2/3),this.topRightBorderDoubleInnerBox=n>0||s>0?x(r.left+F,r.top+l*2/3,a-v*2/3,o-l*2/3,m.TOP_RIGHT):new u(r.left+r.width-v*2/3,r.top+l*2/3),this.bottomRightBorderDoubleInnerBox=g>0||w>0?x(r.left+p,r.top+K,g-v*2/3,w-y*2/3,m.BOTTOM_RIGHT):new u(r.left+r.width-v*2/3,r.top+r.height-y*2/3),this.bottomLeftBorderDoubleInnerBox=c>0||C>0?x(r.left+E*2/3,r.top+d,c-E*2/3,C-y*2/3,m.BOTTOM_LEFT):new u(r.left+E*2/3,r.top+r.height-y*2/3),this.topLeftBorderStroke=n>0||s>0?x(r.left+E/2,r.top+l/2,n-E/2,s-l/2,m.TOP_LEFT):new u(r.left+E/2,r.top+l/2),this.topRightBorderStroke=n>0||s>0?x(r.left+F,r.top+l/2,a-v/2,o-l/2,m.TOP_RIGHT):new u(r.left+r.width-v/2,r.top+l/2),this.bottomRightBorderStroke=g>0||w>0?x(r.left+p,r.top+K,g-v/2,w-y/2,m.BOTTOM_RIGHT):new u(r.left+r.width-v/2,r.top+r.height-y/2),this.bottomLeftBorderStroke=c>0||C>0?x(r.left+E/2,r.top+d,c-E/2,C-y/2,m.BOTTOM_LEFT):new u(r.left+E/2,r.top+r.height-y/2),this.topLeftBorderBox=n>0||s>0?x(r.left,r.top,n,s,m.TOP_LEFT):new u(r.left,r.top),this.topRightBorderBox=a>0||o>0?x(r.left+F,r.top,a,o,m.TOP_RIGHT):new u(r.left+r.width,r.top),this.bottomRightBorderBox=g>0||w>0?x(r.left+p,r.top+K,g,w,m.BOTTOM_RIGHT):new u(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=c>0||C>0?x(r.left,r.top+d,c,C,m.BOTTOM_LEFT):new u(r.left,r.top+r.height),this.topLeftPaddingBox=n>0||s>0?x(r.left+E,r.top+l,Math.max(0,n-E),Math.max(0,s-l),m.TOP_LEFT):new u(r.left+E,r.top+l),this.topRightPaddingBox=a>0||o>0?x(r.left+Math.min(F,r.width-v),r.top+l,F>r.width+v?0:Math.max(0,a-v),Math.max(0,o-l),m.TOP_RIGHT):new u(r.left+r.width-v,r.top+l),this.bottomRightPaddingBox=g>0||w>0?x(r.left+Math.min(p,r.width-E),r.top+Math.min(K,r.height-y),Math.max(0,g-v),Math.max(0,w-y),m.BOTTOM_RIGHT):new u(r.left+r.width-v,r.top+r.height-y),this.bottomLeftPaddingBox=c>0||C>0?x(r.left+E,r.top+Math.min(d,r.height-y),Math.max(0,c-E),Math.max(0,C-y),m.BOTTOM_LEFT):new u(r.left+E,r.top+r.height-y),this.topLeftContentBox=n>0||s>0?x(r.left+E+D,r.top+l+M,Math.max(0,n-(E+D)),Math.max(0,s-(l+M)),m.TOP_LEFT):new u(r.left+E+D,r.top+l+M),this.topRightContentBox=a>0||o>0?x(r.left+Math.min(F,r.width+E+D),r.top+l+M,F>r.width+E+D?0:a-E+D,o-(l+M),m.TOP_RIGHT):new u(r.left+r.width-(v+W),r.top+l+M),this.bottomRightContentBox=g>0||w>0?x(r.left+Math.min(p,r.width-(E+D)),r.top+Math.min(K,r.height+l+M),Math.max(0,g-(v+W)),w-(y+z),m.BOTTOM_RIGHT):new u(r.left+r.width-(v+W),r.top+r.height-(y+z)),this.bottomLeftContentBox=c>0||C>0?x(r.left+E+D,r.top+d,Math.max(0,c-(E+D)),C-(y+z),m.BOTTOM_LEFT):new u(r.left+E+D,r.top+r.height-(y+z))}return e})(),m=(function(e){return e[e.TOP_LEFT=0]=`TOP_LEFT`,e[e.TOP_RIGHT=1]=`TOP_RIGHT`,e[e.BOTTOM_RIGHT=2]=`BOTTOM_RIGHT`,e[e.BOTTOM_LEFT=3]=`BOTTOM_LEFT`,e})(m||{}),x=function(e,A,t,r,B){var n=4*((Math.sqrt(2)-1)/3),s=t*n,i=r*n,a=e+t,o=A+r;switch(B){case m.TOP_LEFT:return new er(new u(e,o),new u(e,o-i),new u(a-s,A),new u(a,A));case m.TOP_RIGHT:return new er(new u(e,A),new u(e+s,A),new u(a,o-i),new u(a,o));case m.BOTTOM_RIGHT:return new er(new u(a,A),new u(a,A+i),new u(e+s,o),new u(e,o));case m.BOTTOM_LEFT:default:return new er(new u(a,o),new u(a-s,o),new u(e,A+i),new u(e,A))}},rr=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},sQ=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},tr=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},aQ=(function(){function e(A,t,r){this.offsetX=A,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return e})(),Br=(function(){function e(A,t){this.path=A,this.target=t,this.type=1}return e})(),iQ=(function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e})(),oQ=function(e){return e.type===0},An=function(e){return e.type===1},QQ=function(e){return e.type===2},en=function(e,A){return e.length===A.length?e.some(function(t,r){return t===A[r]}):!1},gQ=function(e,A,t,r,B){return e.map(function(n,s){switch(s){case 0:return n.add(A,t);case 1:return n.add(A+r,t);case 2:return n.add(A+r,t+B);case 3:return n.add(A,t+B)}return n})},rn=(function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),tn=(function(){function e(A,t){if(this.container=A,this.parent=t,this.effects=[],this.curves=new nQ(this.container),this.container.styles.opacity<1&&this.effects.push(new iQ(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,B=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new aQ(r,B,n))}if(this.container.styles.overflowX!==0){var s=rr(this.curves),i=tr(this.curves);en(s,i)?this.effects.push(new Br(s,6)):(this.effects.push(new Br(s,2)),this.effects.push(new Br(i,4)))}}return e.prototype.getEffects=function(A){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,B=this.effects.slice(0);r;){var n=r.effects.filter(function(a){return!An(a)});if(t||r.container.styles.position!==0||!r.parent){if(B.unshift.apply(B,n),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=rr(r.curves),i=tr(r.curves);en(s,i)||B.unshift(new Br(i,6))}}else B.unshift.apply(B,n);r=r.parent}return B.filter(function(a){return G(a.target,A)})},e})(),tt=function(e,A,t,r){e.container.elements.forEach(function(B){var n=G(B.flags,4),s=G(B.flags,2),i=new tn(B,e);G(B.styles.display,2048)&&r.push(i);var a=G(B.flags,8)?[]:r;if(n||s){var o=n||B.styles.isPositioned()?t:A,Q=new rn(i);if(B.styles.isPositioned()||B.styles.opacity<1||B.styles.isTransformed()){var g=B.styles.zIndex.order;if(g<0){var w=0;o.negativeZIndex.some(function(c,C){return g>c.element.container.styles.zIndex.order?(w=C,!1):w>0}),o.negativeZIndex.splice(w,0,Q)}else if(g>0){var f=0;o.positiveZIndex.some(function(c,C){return g>=c.element.container.styles.zIndex.order?(f=C+1,!1):f>0}),o.positiveZIndex.splice(f,0,Q)}else o.zeroOrAutoZIndexOrTransformedOrOpacity.push(Q)}else B.styles.isFloating()?o.nonPositionedFloats.push(Q):o.nonPositionedInlineLevel.push(Q);tt(i,Q,n?Q:t,a)}else B.styles.isInlineLevel()?A.inlineLevel.push(i):A.nonInlineLevel.push(i),tt(i,A,t,a);G(B.flags,8)&&Bn(B,a)})},Bn=function(e,A){for(var t=e instanceof kr?e.start:1,r=e instanceof kr?e.reversed:!1,B=0;B`u`?e[0]:t},FQ=function(e,A,t,r,B){var n=A[0],s=A[1],i=t[0],a=t[1];switch(e){case 2:return[new u(Math.round(r.left),Math.round(r.top+s)),new u(Math.round(r.left+r.width),Math.round(r.top+s)),new u(Math.round(r.left+r.width),Math.round(a+r.top+s)),new u(Math.round(r.left),Math.round(a+r.top+s))];case 3:return[new u(Math.round(r.left+n),Math.round(r.top)),new u(Math.round(r.left+n+i),Math.round(r.top)),new u(Math.round(r.left+n+i),Math.round(r.height+r.top)),new u(Math.round(r.left+n),Math.round(r.height+r.top))];case 1:return[new u(Math.round(r.left+n),Math.round(r.top+s)),new u(Math.round(r.left+n+i),Math.round(r.top+s)),new u(Math.round(r.left+n+i),Math.round(r.top+s+a)),new u(Math.round(r.left+n),Math.round(r.top+s+a))];default:return[new u(Math.round(B.left),Math.round(B.top)),new u(Math.round(B.left+B.width),Math.round(B.top)),new u(Math.round(B.left+B.width),Math.round(B.height+B.top)),new u(Math.round(B.left),Math.round(B.height+B.top))]}},hQ=`data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7`,an=`Hidden Text`,dQ=(function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,t){var r=this._document.createElement(`div`),B=this._document.createElement(`img`),n=this._document.createElement(`span`),s=this._document.body;r.style.visibility=`hidden`,r.style.fontFamily=A,r.style.fontSize=t,r.style.margin=`0`,r.style.padding=`0`,r.style.whiteSpace=`nowrap`,s.appendChild(r),B.src=hQ,B.width=1,B.height=1,B.style.margin=`0`,B.style.padding=`0`,B.style.verticalAlign=`baseline`,n.style.fontFamily=A,n.style.fontSize=t,n.style.margin=`0`,n.style.padding=`0`,n.appendChild(this._document.createTextNode(an)),r.appendChild(n),r.appendChild(B);var i=B.offsetTop-n.offsetTop+2;r.removeChild(n),r.appendChild(this._document.createTextNode(an)),r.style.lineHeight=`normal`,B.style.verticalAlign=`super`;var a=B.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:i,middle:a}},e.prototype.getMetrics=function(A,t){var r=A+` `+t;return typeof this._data[r]>`u`&&(this._data[r]=this.parseMetrics(A,t)),this._data[r]},e})(),on=(function(){function e(A,t){this.context=A,this.options=t}return e})(),EQ=1e4,HQ=(function(e){P(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B._activeEffects=[],B.canvas=r.canvas?r.canvas:document.createElement(`canvas`),B.ctx=B.canvas.getContext(`2d`),r.canvas||(B.canvas.width=Math.floor(r.width*r.scale),B.canvas.height=Math.floor(r.height*r.scale),B.canvas.style.width=r.width+`px`,B.canvas.style.height=r.height+`px`),B.fontMetrics=new dQ(document),B.ctx.scale(B.options.scale,B.options.scale),B.ctx.translate(-r.x,-r.y),B.ctx.textBaseline=`bottom`,B._activeEffects=[],B.context.logger.debug(`Canvas renderer initialized (`+r.width+`x`+r.height+`) with scale `+r.scale),B}return A.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(B){return r.applyEffect(B)})},A.prototype.applyEffect=function(t){this.ctx.save(),QQ(t)&&(this.ctx.globalAlpha=t.opacity),oQ(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),An(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(t){return k(this,void 0,void 0,function(){var r;return _(this,function(B){switch(B.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:B.sent(),B.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(t){return k(this,void 0,void 0,function(){return _(this,function(r){switch(r.label){case 0:if(G(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(t,r,B){var n=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+B);else Pr(t.text).reduce(function(i,a){return n.ctx.fillText(a,i,t.bounds.top+B),i+n.ctx.measureText(a).width},t.bounds.left)},A.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(s){return s===`normal`||s===`small-caps`}).join(``),B=KQ(t.fontFamily).join(`, `),n=ne(t.fontSize)?``+t.fontSize.number+t.fontSize.unit:t.fontSize.number+`px`;return[[t.fontStyle,r,t.fontWeight,n,B].join(` `),B,n]},A.prototype.renderTextNode=function(t,r){return k(this,void 0,void 0,function(){var B,n,s,i,a,o,Q,g,w=this;return _(this,function(f){return B=this.createFontStyle(r),n=B[0],s=B[1],i=B[2],this.ctx.font=n,this.ctx.direction=r.direction===1?`rtl`:`ltr`,this.ctx.textAlign=`left`,this.ctx.textBaseline=`alphabetic`,a=this.fontMetrics.getMetrics(s,i),o=a.baseline,Q=a.middle,g=r.paintOrder,t.textBounds.forEach(function(c){g.forEach(function(C){switch(C){case 0:w.ctx.fillStyle=R(r.color),w.renderTextWithLetterSpacing(c,r.letterSpacing,o);var H=r.textShadow;H.length&&c.text.trim().length&&(H.slice(0).reverse().forEach(function(h){w.ctx.shadowColor=R(h.color),w.ctx.shadowOffsetX=h.offsetX.number*w.options.scale,w.ctx.shadowOffsetY=h.offsetY.number*w.options.scale,w.ctx.shadowBlur=h.blur.number,w.renderTextWithLetterSpacing(c,r.letterSpacing,o)}),w.ctx.shadowColor=``,w.ctx.shadowOffsetX=0,w.ctx.shadowOffsetY=0,w.ctx.shadowBlur=0),r.textDecorationLine.length&&(w.ctx.fillStyle=R(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(h){switch(h){case 1:w.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top+o),c.bounds.width,1);break;case 2:w.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top),c.bounds.width,1);break;case 3:w.ctx.fillRect(c.bounds.left,Math.ceil(c.bounds.top+Q),c.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&c.text.trim().length&&(w.ctx.strokeStyle=R(r.webkitTextStrokeColor),w.ctx.lineWidth=r.webkitTextStrokeWidth,w.ctx.lineJoin=window.chrome?`miter`:`round`,w.ctx.strokeText(c.text,c.bounds.left,c.bounds.top+o)),w.ctx.strokeStyle=``,w.ctx.lineWidth=0,w.ctx.lineJoin=`miter`;break}})}),[2]})})},A.prototype.renderReplacedElement=function(t,r,B){if(B&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var n=sr(t),s=tr(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(B,0,0,t.intrinsicWidth,t.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(t){return k(this,void 0,void 0,function(){var r,B,n,s,i,a,F,F,o,Q,g,w,p,f,c,d,C,H,h,F,K,p,d;return _(this,function(l){switch(l.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,B=t.curves,n=r.styles,s=0,i=r.textNodes,l.label=1;case 1:return s0&&X>0&&(y=n.ctx.createPattern(d,`repeat`),n.renderRepeat(M,y,Z,q))):oa(Q)&&(E=Bt(t,r,[null,null,null]),M=E[0],W=E[1],z=E[2],D=E[3],X=E[4],HA=Q.position.length===0?[mr]:Q.position,Z=b(HA[0],D),q=b(HA[HA.length-1],X),DA=Ba(Q,Z,q,D,X),aA=DA[0],pA=DA[1],aA>0&&pA>0&&(bA=n.ctx.createRadialGradient(W+Z,z+q,0,W+Z,z+q,aA),qt(Q.stops,aA*2).forEach(function(ce){return bA.addColorStop(ce.stop,R(ce.color))}),n.path(M),n.ctx.fillStyle=bA,aA!==pA?(xA=t.bounds.left+.5*t.bounds.width,wA=t.bounds.top+.5*t.bounds.height,TA=pA/aA,cA=1/TA,n.ctx.save(),n.ctx.translate(xA,wA),n.ctx.transform(1,0,0,TA,0,0),n.ctx.translate(-xA,-wA),n.ctx.fillRect(W,cA*(z-wA)+wA,D,X*cA),n.ctx.restore()):n.ctx.fill())),kA.label=6;case 6:return r--,[2]}})},n=this,s=0,i=t.styles.backgroundImage.slice(0).reverse(),o.label=1;case 1:return s0?Q.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Q.color,Q.width,i,t.curves,2)]:[3,11]):[3,13];case 4:return w.sent(),[3,11];case 5:return Q.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Q.color,Q.width,i,t.curves,3)];case 6:return w.sent(),[3,11];case 7:return Q.style!==4?[3,9]:[4,this.renderDoubleBorder(Q.color,Q.width,i,t.curves)];case 8:return w.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Q.color,i,t.curves)];case 10:w.sent(),w.label=11;case 11:i++,w.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(t,r,B,n,s){return k(this,void 0,void 0,function(){var i,a,o,Q,g,w,f,c,C,H,h,F,K,p,d,l,d,l;return _(this,function(v){return this.ctx.save(),i=uQ(n,B),a=nn(n,B),s===2&&(this.path(a),this.ctx.clip()),eA(a[0])?(o=a[0].start.x,Q=a[0].start.y):(o=a[0].x,Q=a[0].y),eA(a[1])?(g=a[1].end.x,w=a[1].end.y):(g=a[1].x,w=a[1].y),B===0||B===2?f=Math.abs(o-g):f=Math.abs(Q-w),this.ctx.beginPath(),s===3?this.formatPath(i):this.formatPath(a.slice(0,2)),c=r<3?r*3:r*2,C=r<3?r*2:r,s===3&&(c=r,C=r),H=!0,f<=c*2?H=!1:f<=c*2+C?(h=f/(2*c+C),c*=h,C*=h):(F=Math.floor((f+C)/(c+C)),K=(f-F*c)/(F-1),p=(f-(F+1)*c)/F,C=p<=0||Math.abs(C-K)t.length)&&(n=t.length);for(var e=0,i=Array(n);e=0;)t[n]=0}function wl(t,n,e,i,a){this.static_tree=t,this.extra_bits=n,this.extra_base=e,this.elems=i,this.max_length=a,this.has_stree=t&&t.length}function _l(t,n){this.dyn_tree=t,this.max_code=0,this.stat_desc=n}function vi(t,n,e,i,a){this.good_length=t,this.max_lazy=n,this.nice_length=e,this.max_chain=i,this.func=a}function Q1(){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=cs,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.legacy_hash=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(G1*2),this.dyn_dtree=new Uint16Array((2*H1+1)*2),this.bl_tree=new Uint16Array((2*W1+1)*2),ir(this.dyn_ltree),ir(this.dyn_dtree),ir(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(V1+1),this.heap=new Uint16Array(2*Rl+1),ir(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Rl+1),ir(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}function y2(){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}function go(t){this.options=fs.assign({},I2,t||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new lf,this.strm.avail_out=0;let e=io.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy,n.legacyHash);if(e!==ls)throw new Error(Fr[e]);if(n.header&&io.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary==`string`?i=fo.string2buf(n.dictionary):hf.call(n.dictionary)===`[object ArrayBuffer]`?i=new Uint8Array(n.dictionary):i=n.dictionary,e=io.deflateSetDictionary(this.strm,i),e!==ls)throw new Error(Fr[e]);this._dict_set=!0}}function Zl(t,n){let e=new go(n);if(e.push(t,!0),e.err)throw e.msg||Fr[e.err];return e.result}function C2(t,n){return n=n||{},n.raw=!0,Zl(t,n)}function F2(t,n){return n=n||{},n.gzip=!0,Zl(t,n)}function e0(){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}function v0(){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}function mo(t){this.options=fs.assign({},A0,t||{});let n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(t&&t.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&!(n.windowBits&15)&&(n.windowBits|=15),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new lf,this.strm.avail_out=0;let e=wi.inflateInit2(this.strm,n.windowBits);if(e!==da)throw new Error(Fr[e]);if(this.header=new w0,wi.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary==`string`?n.dictionary=fo.string2buf(n.dictionary):yf.call(n.dictionary)===`[object ArrayBuffer]`&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(e=wi.inflateSetDictionary(this.strm,n.dictionary),e!==da)))throw new Error(Fr[e])}function $l(t,n){let e=new mo(n);if(e.push(t,!0),e.err)throw e.msg||Fr[e.err];return e.result}function N0(t,n){return n=n||{},n.raw=!0,$l(t,n)}function O0(t,n,e){let i=t;for(let a=0;a>>8;return i}function T0(t,n){return(O0(Af,t,n)^Af)>>>0}function Kl(t,n,e){let i=t.readUint32(),a=T0(new Uint8Array(t.buffer,t.byteOffset+t.offset-n-4,n),n);if(a!==i)throw new Error(`CRC mismatch for chunk ${e}. Expected ${i}, found ${a}`)}function ds(t,n,e){for(let i=0;i>1)&255}else{for(;o>1)&255;for(;o>1)&255}}function bs(t,n,e,i,a){let o=0;if(e.length===0){for(;o=e||_t>=i))for(let mt=0;mt>8&255}function Xl(t){let{data:n,width:e,height:i,channels:a,depth:o}=t,f=Math.ceil(o/8)*a,l=Math.ceil(o/8*a*e),c=new Uint8Array(i*l),d=H0,m=0,A,L;for(let p=0;p>8&255}function Jl(t){if(!kf(t.readBytes(vs.length)))throw new Error(`wrong PNG signature`)}function kf(t){if(t.length79)throw new Error(`keyword length must be between 1 and 79`)}function Y0(t){if(!$0.test(t))throw new Error(`invalid latin1 text`)}function If(t,n,e){let i=Ql(n);t[i]=K0(n,e-i.length-1)}function Ql(t){for(t.mark();t.readByte()!==V0;);let n=t.offset;t.reset();let e=Ef.decode(t.readBytes(n-t.offset-1));return t.skip(1),Z0(e),e}function K0(t,n){return Ef.decode(t.readBytes(n))}function X0(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}function Cf(t,n){return new ys(t,n).decode()}function th(){Yt.console&&typeof Yt.console.log==`function`&&Yt.console.log.apply(Yt.console,arguments)}function eh(t,n,e){var i=new XMLHttpRequest;i.open(`GET`,t),i.responseType=`blob`,i.onload=function(){jr(i.response,n,e)},i.onerror=function(){ke.error(`could not download file`)},i.send()}function Ff(t){var n=new XMLHttpRequest;n.open(`HEAD`,t,!1);try{n.send()}catch{}return n.status>=200&&n.status<=299}function xs(t){try{t.dispatchEvent(new MouseEvent(`click`))}catch{var n=document.createEvent(`MouseEvents`);n.initMouseEvent(`click`,!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}function tu(t){var n;t=t||``,this.ok=!1,t.charAt(0)==`#`&&(t=t.substr(1,6)),t={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`00ffff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000000`,blanchedalmond:`ffebcd`,blue:`0000ff`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`00ffff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dodgerblue:`1e90ff`,feldspar:`d19275`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`ff00ff`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,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`,lightgrey:`d3d3d3`,lightgreen:`90ee90`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslateblue:`8470ff`,lightslategray:`778899`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`00ff00`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`ff00ff`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370d8`,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:`d87093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,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`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,violetred:`d02090`,wheat:`f5deb3`,white:`ffffff`,whitesmoke:`f5f5f5`,yellow:`ffff00`,yellowgreen:`9acd32`}[t=(t=t.replace(/ /g,``)).toLowerCase()]||t;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:[`rgb(123, 234, 45)`,`rgb(255,234,245)`],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:[`#00ff00`,`336699`],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:[`#fb0`,`f0f`],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],i=0;i255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return`rgb(`+this.r+`, `+this.g+`, `+this.b+`)`},this.toHex=function(){var l=this.r.toString(16),c=this.g.toString(16),d=this.b.toString(16);return l.length==1&&(l=`0`+l),c.length==1&&(c=`0`+c),d.length==1&&(d=`0`+d),`#`+l+c+d}}function nh(t,n){var e=t[0],i=t[1],a=t[2],o=t[3];e=vn(e,i,a,o,n[0],7,-680876936),o=vn(o,e,i,a,n[1],12,-389564586),a=vn(a,o,e,i,n[2],17,606105819),i=vn(i,a,o,e,n[3],22,-1044525330),e=vn(e,i,a,o,n[4],7,-176418897),o=vn(o,e,i,a,n[5],12,1200080426),a=vn(a,o,e,i,n[6],17,-1473231341),i=vn(i,a,o,e,n[7],22,-45705983),e=vn(e,i,a,o,n[8],7,1770035416),o=vn(o,e,i,a,n[9],12,-1958414417),a=vn(a,o,e,i,n[10],17,-42063),i=vn(i,a,o,e,n[11],22,-1990404162),e=vn(e,i,a,o,n[12],7,1804603682),o=vn(o,e,i,a,n[13],12,-40341101),a=vn(a,o,e,i,n[14],17,-1502002290),e=wn(e,i=vn(i,a,o,e,n[15],22,1236535329),a,o,n[1],5,-165796510),o=wn(o,e,i,a,n[6],9,-1069501632),a=wn(a,o,e,i,n[11],14,643717713),i=wn(i,a,o,e,n[0],20,-373897302),e=wn(e,i,a,o,n[5],5,-701558691),o=wn(o,e,i,a,n[10],9,38016083),a=wn(a,o,e,i,n[15],14,-660478335),i=wn(i,a,o,e,n[4],20,-405537848),e=wn(e,i,a,o,n[9],5,568446438),o=wn(o,e,i,a,n[14],9,-1019803690),a=wn(a,o,e,i,n[3],14,-187363961),i=wn(i,a,o,e,n[8],20,1163531501),e=wn(e,i,a,o,n[13],5,-1444681467),o=wn(o,e,i,a,n[2],9,-51403784),a=wn(a,o,e,i,n[7],14,1735328473),e=_n(e,i=wn(i,a,o,e,n[12],20,-1926607734),a,o,n[5],4,-378558),o=_n(o,e,i,a,n[8],11,-2022574463),a=_n(a,o,e,i,n[11],16,1839030562),i=_n(i,a,o,e,n[14],23,-35309556),e=_n(e,i,a,o,n[1],4,-1530992060),o=_n(o,e,i,a,n[4],11,1272893353),a=_n(a,o,e,i,n[7],16,-155497632),i=_n(i,a,o,e,n[10],23,-1094730640),e=_n(e,i,a,o,n[13],4,681279174),o=_n(o,e,i,a,n[0],11,-358537222),a=_n(a,o,e,i,n[3],16,-722521979),i=_n(i,a,o,e,n[6],23,76029189),e=_n(e,i,a,o,n[9],4,-640364487),o=_n(o,e,i,a,n[12],11,-421815835),a=_n(a,o,e,i,n[15],16,530742520),e=yn(e,i=_n(i,a,o,e,n[2],23,-995338651),a,o,n[0],6,-198630844),o=yn(o,e,i,a,n[7],10,1126891415),a=yn(a,o,e,i,n[14],15,-1416354905),i=yn(i,a,o,e,n[5],21,-57434055),e=yn(e,i,a,o,n[12],6,1700485571),o=yn(o,e,i,a,n[3],10,-1894986606),a=yn(a,o,e,i,n[10],15,-1051523),i=yn(i,a,o,e,n[1],21,-2054922799),e=yn(e,i,a,o,n[8],6,1873313359),o=yn(o,e,i,a,n[15],10,-30611744),a=yn(a,o,e,i,n[6],15,-1560198380),i=yn(i,a,o,e,n[13],21,1309151649),e=yn(e,i,a,o,n[4],6,-145523070),o=yn(o,e,i,a,n[11],10,-1120210379),a=yn(a,o,e,i,n[2],15,718787259),i=yn(i,a,o,e,n[9],21,-343485551),t[0]=lr(e,t[0]),t[1]=lr(i,t[1]),t[2]=lr(a,t[2]),t[3]=lr(o,t[3])}function Fs(t,n,e,i,a,o){return n=lr(lr(n,t),lr(i,o)),lr(n<>>32-a,e)}function vn(t,n,e,i,a,o,f){return Fs(n&e|~n&i,t,n,a,o,f)}function wn(t,n,e,i,a,o,f){return Fs(n&i|e&~i,t,n,a,o,f)}function _n(t,n,e,i,a,o,f){return Fs(n^e^i,t,n,a,o,f)}function yn(t,n,e,i,a,o,f){return Fs(e^(n|~i),t,n,a,o,f)}function eu(t){var n,e=t.length,i=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=t.length;n+=64)nh(i,J0(t.substring(n-64,n)));t=t.substring(n-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n>2]|=t.charCodeAt(n)<<(n%4<<3);if(a[n>>2]|=128<<(n%4<<3),n>55)for(nh(i,a),n=0;n<16;n++)a[n]=0;return a[14]=8*e,nh(i,a),i}function J0(t){var n,e=[];for(n=0;n<64;n+=4)e[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return e}function Q0(t){for(var n=``,e=0;e<4;e++)n+=Tf[t>>8*e+4&15]+Tf[t>>8*e&15];return n}function t5(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function lh(t){return eu(t).map(t5).join(``)}function lr(t,n){if(e5){var e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}return t+n&4294967295}function hh(t,n){var e,i,a,o;if(t!==e){for(var f=(a=t,o=1+(256/t.length|0),new Array(o+1).join(a)),l=[],c=0;c<256;c++)l[c]=c;var d=0;for(c=0;c<256;c++){var m=l[c];d=(d+m+f.charCodeAt(c))%256,l[c]=l[d],l[d]=m}e=t,i=l}else l=i;var A=n.length,L=0,p=0,T=``;for(c=0;c/\f©þdSiz`;var o=(n+this.padding).substr(0,32),f=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,f),this.P=-(1+(255^a)),this.encryptionKey=lh(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=hh(this.encryptionKey,this.padding)}function Aa(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error(`Invalid PDF Name Object: `+t+`, Only accept ASCII characters.`);for(var n=``,e=t.length,i=0;i126?`#`+(`0`+a.toString(16)).slice(-2):t[i]}return n}function Bf(t){if(ye(t)!==`object`)throw new Error(`Invalid Context passed to initialize PubSub (jsPDF-module)`);var n={};this.subscribe=function(e,i,a){if(a=a||!1,typeof e!=`string`||typeof i!=`function`||typeof a!=`boolean`)throw new Error(`Invalid arguments passed to PubSub.subscribe (jsPDF-module)`);n.hasOwnProperty(e)||(n[e]={});var o=Math.random().toString(35);return n[e][o]=[i,!!a],o},this.unsubscribe=function(e){for(var i in n)if(n[i][e])return delete n[i][e],Object.keys(n[i]).length===0&&delete n[i],!0;return!1},this.publish=function(e){if(n.hasOwnProperty(e)){var i=Array.prototype.slice.call(arguments,1),a=[];for(var o in n[e]){var f=n[e][o];try{f[0].apply(t,i)}catch(l){Yt.console&&ke.error(`jsPDF PubSub Error`,l.message,l)}f[1]&&a.push(o)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function Is(t){if(!(this instanceof Is))return new Is(t);var n=`opacity,stroke-opacity`.split(`,`);for(var e in t)t.hasOwnProperty(e)&&n.indexOf(e)>=0&&(this[e]=t[e]);this.id=``,this.objectNumber=-1}function nu(t,n){this.gState=t,this.matrix=n,this.id=``,this.objectNumber=-1}function Mr(t,n,e,i,a){if(!(this instanceof Mr))return new Mr(t,n,e,i,a);this.type=t===`axial`?2:3,this.coords=n,this.colors=e,nu.call(this,i,a)}function Na(t,n,e,i,a){if(!(this instanceof Na))return new Na(t,n,e,i,a);this.boundingBox=t,this.xStep=n,this.yStep=e,this.stream=``,this.cloneIndex=0,nu.call(this,i,a)}function Mt(t){var n,e=typeof arguments[0]==`string`?arguments[0]:`p`,i=arguments[1],a=arguments[2],o=arguments[3],f=[],l=1,c=16,d=`S`,m=null;ye(t=t||{})===`object`&&(e=t.orientation,i=t.unit||i,a=t.format||a,o=t.compress||t.compressPdf||o,(m=t.encryption||null)!==null&&(m.userPassword=m.userPassword||``,m.ownerPassword=m.ownerPassword||``,m.userPermissions=m.userPermissions||[]),l=typeof t.userUnit==`number`?Math.abs(t.userUnit):1,t.precision!==void 0&&(n=t.precision),t.floatPrecision!==void 0&&(c=t.floatPrecision),d=t.defaultPathOperation||`S`),f=t.filters||(o===!0?[`FlateEncode`]:f),i=i||`mm`,e=(``+(e||`P`)).toLowerCase();var A=t.putOnlyUsedFonts||!1,L={},p={internal:{},__private__:{}};p.__private__.PubSub=Bf;var T=`1.3`,O=p.__private__.getPdfVersion=function(){return T};p.__private__.setPdfVersion=function(h){T=h};var B={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return B};var k=p.__private__.getPageFormat=function(h){return B[h]};a=a||`a4`;var Z=`compat`,$=`advanced`,D=Z;function lt(){this.saveGraphicsState(),P(new Vt(ne,0,0,-ne,0,mr()*ne).toString()+` cm`),this.setFontSize(this.getFontSize()/ne),d=`n`,D=$}function _t(){this.restoreGraphicsState(),d=`S`,D=Z}var mt=p.__private__.combineFontStyleAndFontWeight=function(h,b){if(h==`bold`&&b==`normal`||h==`bold`&&b==400||h==`normal`&&b==`italic`||h==`bold`&&b==`italic`)throw new Error(`Invalid Combination of fontweight and fontstyle`);return b&&(h=b==400||b===`normal`?h===`italic`?`italic`:`normal`:b!=700&&b!==`bold`||h!==`normal`?(b==700?`bold`:b)+``+h:`bold`),h};p.advancedAPI=function(h){var b=D===Z;return b&<.call(this),typeof h!=`function`||(h(this),b&&_t.call(this)),this},p.compatAPI=function(h){var b=D===$;return b&&_t.call(this),typeof h!=`function`||(h(this),b&<.call(this)),this},p.isAdvancedAPI=function(){return D===$};var tt,z=function(h){if(D!==$)throw new Error(h+` is only available in 'advanced' API mode. You need to call advancedAPI() first.`)},et=p.roundToPrecision=p.__private__.roundToPrecision=function(h,b){var E=n||b;if(isNaN(h)||isNaN(E))throw new Error(`Invalid argument passed to jsPDF.roundToPrecision`);return h.toFixed(E).replace(/0+$/,``)};tt=p.hpf=p.__private__.hpf=typeof c==`number`?function(h){if(isNaN(h))throw new Error(`Invalid argument passed to jsPDF.hpf`);return et(h,c)}:c===`smart`?function(h){if(isNaN(h))throw new Error(`Invalid argument passed to jsPDF.hpf`);return et(h,h>-1&&h<1?16:5)}:function(h){if(isNaN(h))throw new Error(`Invalid argument passed to jsPDF.hpf`);return et(h,16)};var N=p.f2=p.__private__.f2=function(h){if(isNaN(h))throw new Error(`Invalid argument passed to jsPDF.f2`);return et(h,2)},F=p.__private__.f3=function(h){if(isNaN(h))throw new Error(`Invalid argument passed to jsPDF.f3`);return et(h,3)},U=p.scale=p.__private__.scale=function(h){if(isNaN(h))throw new Error(`Invalid argument passed to jsPDF.scale`);return D===Z?h*ne:D===$?h:void 0},q=function(h){return U((function(b){return D===Z?mr()-b:D===$?b:void 0})(h))};p.__private__.setPrecision=p.setPrecision=function(h){typeof parseInt(h,10)==`number`&&(n=parseInt(h,10))};var it,ft=`00000000000000000000000000000000`,pt=p.__private__.getFileId=function(){return ft},nt=p.__private__.setFileId=function(h){return ft=h!==void 0&&/^[a-fA-F0-9]{32}$/.test(h)?h.toUpperCase():ft.split(``).map(function(){return`ABCDEF0123456789`.charAt(Math.floor(16*Math.random()))}).join(``),m!==null&&(ln=new xa(m.userPermissions,m.userPassword,m.ownerPassword,ft)),ft};p.setFileId=function(h){return nt(h),this},p.getFileId=function(){return pt()};var ut=p.__private__.convertDateToPDFDate=function(h){var b=h.getTimezoneOffset(),E=b<0?`+`:`-`,M=Math.floor(Math.abs(b/60)),V=Math.abs(b%60),ot=[E,j(M),`'`,j(V),`'`].join(``);return[`D:`,h.getFullYear(),j(h.getMonth()+1),j(h.getDate()),j(h.getHours()),j(h.getMinutes()),j(h.getSeconds()),ot].join(``)},At=p.__private__.convertPDFDateToDate=function(h){var b=parseInt(h.substr(2,4),10),E=parseInt(h.substr(6,2),10)-1,M=parseInt(h.substr(8,2),10),V=parseInt(h.substr(10,2),10),ot=parseInt(h.substr(12,2),10),gt=parseInt(h.substr(14,2),10);return new Date(b,E,M,V,ot,gt,0)},yt=p.__private__.setCreationDate=function(h){var b;if(h===void 0&&(h=new Date),h instanceof Date)b=ut(h);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(h))throw new Error(`Invalid argument passed to jsPDF.setCreationDate`);b=h}return it=b},y=p.__private__.getCreationDate=function(h){var b=it;return h===`jsDate`&&(b=At(it)),b};p.setCreationDate=function(h){return yt(h),this},p.getCreationDate=function(h){return y(h)};var R,j=p.__private__.padd2=function(h){return(`0`+parseInt(h)).slice(-2)},G=p.__private__.padd2Hex=function(h){return(`00`+(h=h.toString())).substr(h.length)},Y=0,Q=[],rt=[],at=0,dt=[],xt=[],St=!1,kt=rt;p.__private__.setCustomOutputDestination=function(h){St=!0,kt=h};var zt=function(h){St||(kt=h)};p.__private__.resetCustomOutputDestination=function(){St=!1,kt=rt};var P=p.__private__.out=function(h){return h=h.toString(),at+=h.length+1,kt.push(h),kt},Lt=p.__private__.write=function(h){return P(arguments.length===1?h.toString():Array.prototype.join.call(arguments,` `))},ae=p.__private__.getArrayBuffer=function(h){for(var b=h.length,E=new ArrayBuffer(b),M=new Uint8Array(E);b--;)M[b]=h.charCodeAt(b);return E},Ht=[[`Helvetica`,`helvetica`,`normal`,`WinAnsiEncoding`],[`Helvetica-Bold`,`helvetica`,`bold`,`WinAnsiEncoding`],[`Helvetica-Oblique`,`helvetica`,`italic`,`WinAnsiEncoding`],[`Helvetica-BoldOblique`,`helvetica`,`bolditalic`,`WinAnsiEncoding`],[`Courier`,`courier`,`normal`,`WinAnsiEncoding`],[`Courier-Bold`,`courier`,`bold`,`WinAnsiEncoding`],[`Courier-Oblique`,`courier`,`italic`,`WinAnsiEncoding`],[`Courier-BoldOblique`,`courier`,`bolditalic`,`WinAnsiEncoding`],[`Times-Roman`,`times`,`normal`,`WinAnsiEncoding`],[`Times-Bold`,`times`,`bold`,`WinAnsiEncoding`],[`Times-Italic`,`times`,`italic`,`WinAnsiEncoding`],[`Times-BoldItalic`,`times`,`bolditalic`,`WinAnsiEncoding`],[`ZapfDingbats`,`zapfdingbats`,`normal`,null],[`Symbol`,`symbol`,`normal`,null]];p.__private__.getStandardFonts=function(){return Ht};var vt=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(h){return vt=D===$?h/ne:h,this};var Wt,Et=p.__private__.getFontSize=p.getFontSize=function(){return D===Z?vt:vt*ne},qt=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(h){return qt=h,this},p.__private__.getR2L=p.getR2L=function(){return qt};var Dt,we=p.__private__.setZoomMode=function(h){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(h))Wt=h;else if(isNaN(h)){if([void 0,null,`fullwidth`,`fullheight`,`fullpage`,`original`].indexOf(h)===-1)throw new Error(`zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "`+h+`" is not recognized.`);Wt=h}else Wt=parseInt(h,10)};p.__private__.getZoomMode=function(){return Wt};var he,Jt=p.__private__.setPageMode=function(h){if([void 0,null,`UseNone`,`UseOutlines`,`UseThumbs`,`FullScreen`].indexOf(h)==-1)throw new Error(`Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "`+h+`" is not recognized.`);Dt=h};p.__private__.getPageMode=function(){return Dt};var fe=p.__private__.setLayoutMode=function(h){if([void 0,null,`continuous`,`single`,`twoleft`,`tworight`,`two`].indexOf(h)==-1)throw new Error(`Layout mode must be one of continuous, single, twoleft, tworight. "`+h+`" is not recognized.`);he=h};p.__private__.getLayoutMode=function(){return he},p.__private__.setDisplayMode=p.setDisplayMode=function(h,b,E){return we(h),fe(b),Jt(E),this};var ce={title:``,subject:``,author:``,keywords:``,creator:``};p.__private__.getDocumentProperty=function(h){if(Object.keys(ce).indexOf(h)===-1)throw new Error(`Invalid argument passed to jsPDF.getDocumentProperty`);return ce[h]},p.__private__.getDocumentProperties=function(){return ce},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(h){for(var b in ce)ce.hasOwnProperty(b)&&h[b]&&(ce[b]=h[b]);return this},p.__private__.setDocumentProperty=function(h,b){if(Object.keys(ce).indexOf(h)===-1)throw new Error(`Invalid arguments passed to jsPDF.setDocumentProperty`);return ce[h]=b};var Rt,ne,jt,He,ge,oe={},se={},Te=[],Ut={},Pe={},Zt={},Qt={},Re=null,le=0,Gt=[],_e=new Bf(p),cr=t.hotfixes||[],dn={},Si={},li=[],Vt=function h(b,E,M,V,ot,gt){if(!(this instanceof h))return new h(b,E,M,V,ot,gt);isNaN(b)&&(b=1),isNaN(E)&&(E=0),isNaN(M)&&(M=0),isNaN(V)&&(V=1),isNaN(ot)&&(ot=0),isNaN(gt)&&(gt=0),this._matrix=[b,E,M,V,ot,gt]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Vt.prototype.join=function(h){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(tt).join(h)},Vt.prototype.multiply=function(h){return new Vt(h.sx*this.sx+h.shy*this.shx,h.sx*this.shy+h.shy*this.sy,h.shx*this.sx+h.sy*this.shx,h.shx*this.shy+h.sy*this.sy,h.tx*this.sx+h.ty*this.shx+this.tx,h.tx*this.shy+h.ty*this.sy+this.ty)},Vt.prototype.decompose=function(){var h=this.sx,b=this.shy,E=this.shx,M=this.sy,V=this.tx,ot=this.ty,gt=Math.sqrt(h*h+b*b),Ft=(h/=gt)*E+(b/=gt)*M;E-=h*Ft,M-=b*Ft;var Ct=Math.sqrt(E*E+M*M);return Ft/=Ct,h*(M/=Ct)>16&255,M=Ct>>8&255,V=255&Ct}if(M===void 0||ot===void 0&&E===M&&M===V)b=typeof E==`string`?E+` `+gt[0]:h.precision===2?N(E/255)+` `+gt[0]:F(E/255)+` `+gt[0];else if(ot===void 0||ye(ot)===`object`){if(ot&&!isNaN(ot.a)&&ot.a===0)return[`1.`,`1.`,`1.`,gt[1]].join(` `);b=typeof E==`string`?[E,M,V,gt[1]].join(` `):h.precision===2?[N(E/255),N(M/255),N(V/255),gt[1]].join(` `):[F(E/255),F(M/255),F(V/255),gt[1]].join(` `)}else b=typeof E==`string`?[E,M,V,ot,gt[2]].join(` `):h.precision===2?[N(E),N(M),N(V),N(ot),gt[2]].join(` `):[F(E),F(M),F(V),F(ot),gt[2]].join(` `);return b},ti=p.__private__.getFilters=function(){return f},Gn=p.__private__.putStream=function(h){var b=(h=h||{}).data||``,E=h.filters||ti(),M=h.alreadyAppliedFilters||[],V=h.addLength1||!1,ot=b.length,gt=h.objectId,Ft=function(Fe){return Fe};if(m!==null&>===void 0)throw new Error(`ObjectId must be passed to putStream for file encryption`);m!==null&&(Ft=ln.encryptor(gt,0));var Ct={};E===!0&&(E=[`FlateEncode`]);var Kt=h.additionalKeyValues||[],te=(Ct=Mt.API.processDataByFilters!==void 0?Mt.API.processDataByFilters(b,E):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(M)?M.join(` `):M.toString());if(Ct.data.length!==0&&(Kt.push({key:`Length`,value:Ct.data.length}),V===!0&&Kt.push({key:`Length1`,value:ot})),te.length!=0)if(te.split(`/`).length-1==1)Kt.push({key:`Filter`,value:te});else{Kt.push({key:`Filter`,value:`[`+te+`]`});for(var de=0;de>`),Ct.data.length!==0&&(P(`stream`),P(Ft(Ct.data)),P(`endstream`))},ur=p.__private__.putPage=function(h){var b=h.number,E=h.data,M=h.objId,V=h.contentsObjId;sn(M,!0),P(`<>`),P(`endobj`);var ot=E.join(`
+`);return D===$&&(ot+=`
+Q`),sn(V,!0),Gn({data:ot,filters:ti(),objectId:V}),P(`endobj`),M},ci=p.__private__.putPages=function(){var h,b,E=[];for(h=1;h<=le;h++)Gt[h].objId=rn(),Gt[h].contentsObjId=rn();for(h=1;h<=le;h++)E.push(ur({number:h,data:xt[h],objId:Gt[h].objId,contentsObjId:Gt[h].contentsObjId,mediaBox:Gt[h].mediaBox,cropBox:Gt[h].cropBox,bleedBox:Gt[h].bleedBox,trimBox:Gt[h].trimBox,artBox:Gt[h].artBox,userUnit:Gt[h].userUnit,rootDictionaryObjId:zi,resourceDictionaryObjId:Jn}));sn(zi,!0),P(`<>`),P(`endobj`),_e.publish(`postPutPages`)},dr=function(h){_e.publish(`putFont`,{font:h,out:P,newObject:De,putStream:Gn}),h.isAlreadyPutted!==!0&&(h.objectNumber=De(),P(`<<`),P(`/Type /Font`),P(`/BaseFont /`+Aa(h.postScriptName)),P(`/Subtype /Type1`),typeof h.encoding==`string`&&P(`/Encoding /`+h.encoding),P(`/FirstChar 32`),P(`/LastChar 255`),P(`>>`),P(`endobj`))},zr=function(h){h.objectNumber=De();var b=[];b.push({key:`Type`,value:`/XObject`}),b.push({key:`Subtype`,value:`/Form`}),b.push({key:`BBox`,value:`[`+[tt(h.x),tt(h.y),tt(h.x+h.width),tt(h.y+h.height)].join(` `)+`]`}),b.push({key:`Matrix`,value:`[`+h.matrix.toString()+`]`});Gn({data:h.pages[1].join(`
+`),additionalKeyValues:b,objectId:h.objectNumber}),P(`endobj`)},Hr=function(h,b){b||(b=21);var E=De(),M=(function(gt,Ft){var Ct,Kt=[],te=1/(Ft-1);for(Ct=0;Ct<1;Ct+=te)Kt.push(Ct);if(Kt.push(1),gt[0].offset!=0){var de={offset:0,color:gt[0].color};gt.unshift(de)}if(gt[gt.length-1].offset!=1){var Xe={offset:1,color:gt[gt.length-1].color};gt.push(Xe)}for(var Le=``,Ne=0,Fe=0;Fegt[Ne+1].offset;)Ne++;var je=gt[Ne].offset,Me=(Ct-je)/(gt[Ne+1].offset-je),pn=gt[Ne].color,Ti=gt[Ne+1].color;Le+=G(Math.round((1-Me)*pn[0]+Me*Ti[0]).toString(16))+G(Math.round((1-Me)*pn[1]+Me*Ti[1]).toString(16))+G(Math.round((1-Me)*pn[2]+Me*Ti[2]).toString(16))}return Le.trim()})(h.colors,b),V=[];V.push({key:`FunctionType`,value:`0`}),V.push({key:`Domain`,value:`[0.0 1.0]`}),V.push({key:`Size`,value:`[`+b+`]`}),V.push({key:`BitsPerSample`,value:`8`}),V.push({key:`Range`,value:`[0.0 1.0 0.0 1.0 0.0 1.0]`}),V.push({key:`Decode`,value:`[0.0 1.0 0.0 1.0 0.0 1.0]`}),Gn({data:M,additionalKeyValues:V,alreadyAppliedFilters:[`/ASCIIHexDecode`],objectId:E}),P(`endobj`),h.objectNumber=De(),P(`<< /ShadingType `+h.type),P(`/ColorSpace /DeviceRGB`);var ot=`/Coords [`+tt(parseFloat(h.coords[0]))+` `+tt(parseFloat(h.coords[1]))+` `;h.type===2?ot+=tt(parseFloat(h.coords[2]))+` `+tt(parseFloat(h.coords[3])):ot+=tt(parseFloat(h.coords[2]))+` `+tt(parseFloat(h.coords[3]))+` `+tt(parseFloat(h.coords[4]))+` `+tt(parseFloat(h.coords[5])),P(ot+=`]`),h.matrix&&P(`/Matrix [`+h.matrix.toString()+`]`),P(`/Function `+E+` 0 R`),P(`/Extend [true true]`),P(`>>`),P(`endobj`)},Wr=function(h,b){var E=rn(),M=De();b.push({resourcesOid:E,objectOid:M}),h.objectNumber=M;var V=[];V.push({key:`Type`,value:`/Pattern`}),V.push({key:`PatternType`,value:`1`}),V.push({key:`PaintType`,value:`1`}),V.push({key:`TilingType`,value:`1`}),V.push({key:`BBox`,value:`[`+h.boundingBox.map(tt).join(` `)+`]`}),V.push({key:`XStep`,value:tt(h.xStep)}),V.push({key:`YStep`,value:tt(h.yStep)}),V.push({key:`Resources`,value:E+` 0 R`}),h.matrix&&V.push({key:`Matrix`,value:`[`+h.matrix.toString()+`]`}),Gn({data:h.stream,additionalKeyValues:V,objectId:h.objectNumber}),P(`endobj`)},Os=function(h){for(var b in h.objectNumber=De(),P(`<<`),h)switch(b){case`opacity`:P(`/ca `+N(h[b]));break;case`stroke-opacity`:P(`/CA `+N(h[b]))}P(`>>`),P(`endobj`)},Ea=function(h){sn(h.resourcesOid,!0),P(`<<`),P(`/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]`),(function(){for(var b in P(`/Font <<`),oe)oe.hasOwnProperty(b)&&(A===!1||A===!0&&L.hasOwnProperty(b))&&P(`/`+b+` `+oe[b].objectNumber+` 0 R`);P(`>>`)})(),(function(){if(Object.keys(Ut).length>0){for(var b in P(`/Shading <<`),Ut)Ut.hasOwnProperty(b)&&Ut[b]instanceof Mr&&Ut[b].objectNumber>=0&&P(`/`+b+` `+Ut[b].objectNumber+` 0 R`);_e.publish(`putShadingPatternDict`),P(`>>`)}})(),(function(b){if(Object.keys(Ut).length>0){for(var E in P(`/Pattern <<`),Ut)Ut.hasOwnProperty(E)&&Ut[E]instanceof p.TilingPattern&&Ut[E].objectNumber>=0&&Ut[E].objectNumber>`)}})(h.objectOid),(function(){if(Object.keys(Zt).length>0){var b;for(b in P(`/ExtGState <<`),Zt)Zt.hasOwnProperty(b)&&Zt[b].objectNumber>=0&&P(`/`+b+` `+Zt[b].objectNumber+` 0 R`);_e.publish(`putGStateDict`),P(`>>`)}})(),(function(){for(var b in P(`/XObject <<`),dn)dn.hasOwnProperty(b)&&dn[b].objectNumber>=0&&P(`/`+b+` `+dn[b].objectNumber+` 0 R`);_e.publish(`putXobjectDict`),P(`>>`)})(),P(`>>`),P(`endobj`)},_o=function(h){se[h.fontName]=se[h.fontName]||{},se[h.fontName][h.fontStyle]=h.id},yo=function(h,b,E,M,V){var ot={id:`F`+(Object.keys(oe).length+1).toString(10),postScriptName:h,fontName:b,fontStyle:E,encoding:M,isStandardFont:V||!1,metadata:{}};return _e.publish(`addFont`,{font:ot,instance:this}),oe[ot.id]=ot,_o(ot),ot.id},Vn=p.__private__.pdfEscape=p.pdfEscape=function(h,b){return(function(E,M){var V,ot,gt,Ft,Ct,Kt,te,de,Xe;if(gt=(M=M||{}).sourceEncoding||`Unicode`,Ct=M.outputEncoding,(M.autoencode||Ct)&&oe[Rt].metadata&&oe[Rt].metadata[gt]&&oe[Rt].metadata[gt].encoding&&(Ft=oe[Rt].metadata[gt].encoding,!Ct&&oe[Rt].encoding&&(Ct=oe[Rt].encoding),!Ct&&Ft.codePages&&(Ct=Ft.codePages[0]),typeof Ct==`string`&&(Ct=Ft[Ct]),Ct)){for(te=!1,Kt=[],V=0,ot=E.length;V>8&&(te=!0);E=Kt.join(``)}for(V=E.length;te===void 0&&V!==0;)E.charCodeAt(V-1)>>8&&(te=!0),V--;if(!te)return E;for(Kt=M.noBOM?[]:[254,255],V=0,ot=E.length;V>8)>>8)throw new Error(`Character at position `+V+` of string '`+E+`' exceeds 16bits. Cannot be encoded into UCS-2 BE`);Kt.push(Xe),Kt.push(de-(Xe<<8))}return String.fromCharCode.apply(void 0,Kt)})(h,b).replace(/\\/g,`\\\\`).replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)},Ia=p.__private__.beginPage=function(h){xt[++le]=[],Gt[le]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(h[0]),topRightY:Number(h[1])}},Ao(le),zt(xt[R])},xo=function(h,b){var E,M,V;switch(e=b||e,typeof h==`string`&&(E=k(h.toLowerCase()),Array.isArray(E)&&(M=E[0],V=E[1])),Array.isArray(h)&&(M=h[0]*ne,V=h[1]*ne),isNaN(M)&&(M=a[0],V=a[1]),(M>14400||V>14400)&&(ke.warn(`A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400`),M=Math.min(14400,M),V=Math.min(14400,V)),a=[M,V],e.substr(0,1)){case`l`:V>M&&(a=[V,M]);break;case`p`:M>V&&(a=[V,M])}Ia(a),Hs($t),P(Kr),Ra!==0&&P(Ra+` J`),Gi!==0&&P(Gi+` j`),_e.publish(`addPage`,{pageNumber:le})},Ca=function(h){h>0&&h<=le&&(xt.splice(h,1),Gt.splice(h,1),le--,R>le&&(R=le),this.setPage(R))},Ao=function(h){h>0&&h<=le&&(R=h)},No=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return xt.length-1},Lo=function(h,b,E){var M,V=void 0;return E=E||{},h=h!==void 0?h:oe[Rt].fontName,b=b!==void 0?b:oe[Rt].fontStyle,M=h.toLowerCase(),se[M]!==void 0&&se[M][b]!==void 0?V=se[M][b]:se[h]!==void 0&&se[h][b]!==void 0?V=se[h][b]:E.disableWarning===!1&&ke.warn(`Unable to look up font label for font '`+h+`', '`+b+`'. Refer to getFontList() for available fonts.`),V||E.noFallback||((V=se.times[b])??(V=se.times.normal)),V},fi=p.__private__.putInfo=function(){var h=De(),b=function(M){return M};for(var E in m!==null&&(b=ln.encryptor(h,0)),P(`<<`),P(`/Producer (`+Vn(b(`jsPDF `+Mt.version))+`)`),ce)ce.hasOwnProperty(E)&&ce[E]&&P(`/`+E.substr(0,1).toUpperCase()+E.substr(1)+` (`+Vn(b(ce[E]))+`)`);P(`/CreationDate (`+Vn(b(it))+`)`),P(`>>`),P(`endobj`)},Gr=p.__private__.putCatalog=function(h){var b=(h=h||{}).rootDictionaryObjId||zi;switch(De(),P(`<<`),P(`/Type /Catalog`),P(`/Pages `+b+` 0 R`),Wt||(Wt=`fullwidth`),Wt){case`fullwidth`:P(`/OpenAction [3 0 R /FitH null]`);break;case`fullheight`:P(`/OpenAction [3 0 R /FitV null]`);break;case`fullpage`:P(`/OpenAction [3 0 R /Fit]`);break;case`original`:P(`/OpenAction [3 0 R /XYZ null null 1]`);break;default:var E=``+Wt;E.substr(E.length-1)===`%`&&(Wt=parseInt(Wt)/100),typeof Wt==`number`&&P(`/OpenAction [3 0 R /XYZ null null `+N(Wt)+`]`)}switch(he||(he=`continuous`),he){case`continuous`:P(`/PageLayout /OneColumn`);break;case`single`:P(`/PageLayout /SinglePage`);break;case`two`:case`twoleft`:P(`/PageLayout /TwoColumnLeft`);break;case`tworight`:P(`/PageLayout /TwoColumnRight`)}Dt&&P(`/PageMode /`+Dt),_e.publish(`putCatalog`),P(`>>`),P(`endobj`)},Ts=p.__private__.putTrailer=function(){P(`trailer`),P(`<<`),P(`/Size `+(Y+1)),P(`/Root `+Y+` 0 R`),P(`/Info `+(Y-1)+` 0 R`),m!==null&&P(`/Encrypt `+ln.oid+` 0 R`),P(`/ID [ <`+ft+`> <`+ft+`> ]`),P(`>>`)},Ke=p.__private__.putHeader=function(){P(`%PDF-`+T),P(`%ºß¬à`)},So=p.__private__.putXRef=function(){var h=`0000000000`;P(`xref`),P(`0 `+(Y+1)),P(`0000000000 65535 f `);for(var b=1;b<=Y;b++)typeof Q[b]==`function`?P((h+Q[b]()).slice(-10)+` 00000 n `):Q[b]!==void 0?P((h+Q[b]).slice(-10)+` 00000 n `):P(`0000000000 00000 n `)},ui=p.__private__.buildDocument=function(){var h;Y=0,at=0,rt=[],Q=[],dt=[],zi=rn(),Jn=rn(),zt(rt),_e.publish(`buildDocument`),Ke(),ci(),(function(){_e.publish(`putAdditionalObjects`);for(var E=0;E`),P(`/O <`+ln.toHexString(ln.O)+`>`),P(`/P `+ln.P),P(`>>`),P(`endobj`)),fi(),Gr();var b=at;return So(),Ts(),P(`startxref`),P(``+b),P(`%%EOF`),zt(xt[R]),rt.join(`
+`)},Vr=p.__private__.getBlob=function(h){return new Blob([ae(h)],{type:`application/pdf`})},Fa=function(h){for(;h.firstChild;)h.removeChild(h.firstChild)},Tn=function(h){var b,E=h.document,M=E.documentElement,V=E.head,ot=E.body;return V||(V=E.createElement(`head`),M.appendChild(V)),ot||(ot=E.createElement(`body`),M.appendChild(ot)),Fa(V),Fa(ot),(b=E.createElement(`style`)).appendChild(E.createTextNode(`html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}`)),V.appendChild(b),{document:E,body:ot}},Zr=p.output=p.__private__.output=(Wn=function(h,b){switch(typeof(b=b||{})==`string`?b={filename:b}:b.filename=b.filename||`generated.pdf`,h){case void 0:return ui();case`save`:p.save(b.filename);break;case`arraybuffer`:return ae(ui());case`blob`:return Vr(ui());case`bloburi`:case`bloburl`:if(Yt.URL!==void 0&&typeof Yt.URL.createObjectURL==`function`)return Yt.URL&&Yt.URL.createObjectURL(Vr(ui()))||void 0;ke.warn(`bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.`);break;case`datauristring`:case`dataurlstring`:var E=``,M=ui();try{E=Of(M)}catch{E=Of(unescape(encodeURIComponent(M)))}return`data:application/pdf;filename=`+encodeURIComponent(b.filename)+`;base64,`+E;case`pdfobjectnewwindow`:if(Object.prototype.toString.call(Yt)===`[object Window]`){var V=`https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js`,ot=!b.pdfObjectUrl;ot||(V=b.pdfObjectUrl);var gt=Yt.open();if(gt!==null){var Ft=Tn(gt),Ct=Ft.document.createElement(`script`),Kt=this;Ct.src=V,ot&&(Ct.integrity=`sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==`,Ct.crossOrigin=`anonymous`),Ct.onload=function(){gt.PDFObject.embed(Kt.output(`dataurlstring`),b)},Ft.body.appendChild(Ct)}return gt}throw new Error(`The option pdfobjectnewwindow just works in a browser-environment.`);case`pdfjsnewwindow`:if(Object.prototype.toString.call(Yt)===`[object Window]`){var te=b.pdfJsUrl||`examples/PDF.js/web/viewer.html`,de=Yt.open();if(de!==null){var Xe=Tn(de),Le=Xe.document.createElement(`iframe`),Ne=te.indexOf(`?`)===-1?`?`:`&`;Kt=this,Le.id=`pdfViewer`,Le.width=`500px`,Le.height=`400px`,Le.src=te+Ne+`file=&downloadName=`+encodeURIComponent(b.filename),Le.onload=function(){de.document.title=b.filename,Le.contentWindow.PDFViewerApplication.open(Kt.output(`bloburl`))},Xe.body.appendChild(Le)}return de}throw new Error(`The option pdfjsnewwindow just works in a browser-environment.`);case`dataurlnewwindow`:if(Object.prototype.toString.call(Yt)!==`[object Window]`)throw new Error(`The option dataurlnewwindow just works in a browser-environment.`);var Fe=Yt.open();if(Fe!==null){var je=Tn(Fe),Me=je.document.createElement(`iframe`);Me.src=this.output(`datauristring`,b),je.body.appendChild(Me),Fe.document.title=b.filename}if(Fe||typeof safari>`u`)return Fe;break;case`datauri`:case`dataurl`:return Yt.document.location.href=this.output(`datauristring`,b);default:return null}},Wn.foo=function(){try{return Wn.apply(this,arguments)}catch(E){var h=E.stack||``;~h.indexOf(` at `)&&(h=h.split(` at `)[1]);var b=`Error in function `+h.split(`
+`)[0].split(`<`)[0]+`: `+E.message;if(!Yt.console)throw new Error(b);Yt.console.error(b,E),Yt.alert&&alert(b)}},Wn.foo.bar=Wn,Wn.foo),Ei=function(h){return Array.isArray(cr)===!0&&cr.indexOf(h)>-1};switch(i){case`pt`:ne=1;break;case`mm`:ne=72/25.4;break;case`cm`:ne=72/2.54;break;case`in`:ne=72;break;case`px`:ne=Ei(`px_scaling`)==1?.75:96/72;break;case`pc`:case`em`:ne=12;break;case`ex`:ne=6;break;default:if(typeof i!=`number`)throw new Error(`Invalid unit: `+i);ne=i}var ln=null;yt(),nt();var ko=p.__private__.getPageInfo=p.getPageInfo=function(h){if(isNaN(h)||h%1!=0)throw new Error(`Invalid argument passed to jsPDF.getPageInfo`);return{objId:Gt[h].objId,pageNumber:h,pageContext:Gt[h]}},Rs=p.__private__.getPageInfoByObjId=function(h){if(isNaN(h)||h%1!=0)throw new Error(`Invalid argument passed to jsPDF.getPageInfoByObjId`);for(var b in Gt)if(Gt[b].objId===h)break;return ko(b)},Bs=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Gt[R].objId,pageNumber:R,pageContext:Gt[R]}};p.addPage=function(){return xo.apply(this,arguments),this},p.setPage=function(){return Ao.apply(this,arguments),zt.call(this,xt[R]),this},p.insertPage=function(h){return this.addPage(),this.movePage(R,h),this},p.movePage=function(h,b){var E,M;if(h>b){E=xt[h],M=Gt[h];for(var V=h;V>b;V--)xt[V]=xt[V-1],Gt[V]=Gt[V-1];xt[b]=E,Gt[b]=M,this.setPage(b)}else if(h0&&(typeof h==`string`?h=Ne.splitTextToSize(h,te):Object.prototype.toString.call(h)===`[object Array]`&&(h=h.reduce(function(Ee,Ie){return Ee.concat(Ne.splitTextToSize(Ie,te))},[]))),ot={text:h,x:b,y:E,options:M,mutex:{pdfEscape:Vn,activeFontKey:Rt,fonts:oe,activeFontSize:vt}},_e.publish(`preProcessText`,ot),h=ot.text,Ft=(M=ot.options).angle,Le instanceof Vt==0&&Ft&&typeof Ft==`number`){Ft*=Math.PI/180,M.rotationDirection===0&&(Ft=-Ft),D===$&&(Ft=-Ft);var Ua=Math.cos(Ft),gi=Math.sin(Ft);Le=new Vt(Ua,gi,-gi,Ua,0,0)}else Ft&&Ft instanceof Vt&&(Le=Ft);D!==$||Le||(Le=Pi),(Kt=M.charSpace||Xr)!==void 0&&(Me+=tt(U(Kt))+` Tc
+`,this.setCharSpace(this.getCharSpace()||0)),(Xe=M.horizontalScale)!==void 0&&(Me+=tt(100*Xe)+` Tz
+`),M.lang;var xn=-1,Ro=M.renderingMode!==void 0?M.renderingMode:M.stroke,na=Ne.internal.getCurrentPageInfo().pageContext;switch(Ro){case 0:case!1:case`fill`:xn=0;break;case 1:case!0:case`stroke`:xn=1;break;case 2:case`fillThenStroke`:xn=2;break;case 3:case`invisible`:xn=3;break;case 4:case`fillAndAddForClipping`:xn=4;break;case 5:case`strokeAndAddPathForClipping`:xn=5;break;case 6:case`fillThenStrokeAndAddToPathForClipping`:xn=6;break;case 7:case`addToPathForClipping`:xn=7}var Bo=na.usedRenderingMode!==void 0?na.usedRenderingMode:-1;xn!==-1?Me+=xn+` Tr
+`:Bo!==-1&&(Me+=`0 Tr
+`),xn!==-1&&(na.usedRenderingMode=xn),Ct=M.align||`left`;var Zn,xr=vt*pn,qa=Ne.internal.pageSize.getWidth(),ia=oe[Rt];Kt=M.charSpace||Xr,te=M.maxWidth||0,de=Object.assign({autoencode:!0,noBOM:!0},M.flags);var Ar=[],za=function(Ee){return Ne.getStringUnitWidth(Ee,{font:ia,charSpace:Kt,fontSize:vt,doKerning:!1})*vt/Ti};if(Object.prototype.toString.call(h)===`[object Array]`){var An;gt=br(h),Ct!==`left`&&(Zn=gt.map(za));var En,ra=0;if(Ct===`right`){b-=Zn[0],h=[],gn=gt.length;for(var Zi=0;Zi0?(te-Zn[Je])/Ha:0;Je`:`)`),Sr=parseFloat(gt[mn][1]),kr=parseFloat(gt[mn][2]);break;case 0:Yi=(je?`<`:`(`)+gt[mn]+(je?`>`:`)`),Sr=Ii(b),kr=Ci(E)}Ar!==void 0&&Ar[mn]!==void 0&&(Ki=Ar[mn]+` Tw
+`),mn===0?h.push(Ki+sa(Sr,kr,Le)+Yi):Ri===0?h.push(Ki+Yi):Ri===1&&h.push(Ki+sa(Sr,kr,Le)+Yi)}h=Ri===0?h.join(` Tj
+T* `):h.join(` Tj
+`),h+=` Tj
+`;var bi=`BT
+/`;return bi+=Rt+` `+vt+` Tf
+`,bi+=tt(vt*pn)+` TL
+`,bi+=pi+`
+`,bi+=Me,bi+=h,P(bi+=`ET`),L[Rt]=!0,Ne};var js=p.__private__.clip=p.clip=function(h){return P(h===`evenodd`?`W*`:`W`),this};p.clipEvenOdd=function(){return js(`evenodd`)},p.__private__.discardPath=p.discardPath=function(){return P(`n`),this};var di=p.__private__.isValidStyle=function(h){var b=!1;return[void 0,null,`S`,`D`,`F`,`DF`,`FD`,`f`,`f*`,`B`,`B*`,`n`].indexOf(h)!==-1&&(b=!0),b};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(h){return di(h)&&(d=h),this};var Po=p.__private__.getStyle=p.getStyle=function(h){var b=d;switch(h){case`D`:case`S`:b=`S`;break;case`F`:b=`f`;break;case`FD`:case`DF`:b=`B`;break;case`f`:case`f*`:case`B`:case`B*`:b=h}return b},$r=p.close=function(){return P(`h`),this};p.stroke=function(){return P(`S`),this},p.fill=function(h){return Yr(`f`,h),this},p.fillEvenOdd=function(h){return Yr(`f*`,h),this},p.fillStroke=function(h){return Yr(`B`,h),this},p.fillStrokeEvenOdd=function(h){return Yr(`B*`,h),this};var Yr=function(h,b){ye(b)===`object`?Ds(b,h):P(h)},Oa=function(h){h===null||D===$&&h===void 0||(h=Po(h),P(h))};function Ms(h,b,E,M,V){var ot=new Na(b||this.boundingBox,E||this.xStep,M||this.yStep,this.gState,V||this.matrix);ot.stream=this.stream;return Hn(h+`$$`+this.cloneIndex+++`$$`,ot),ot}var Ds=function(h,b){var E=Pe[h.key],M=Ut[E];if(M instanceof Mr)P(`q`),P(Us(b)),M.gState&&p.setGState(M.gState),P(h.matrix.toString()+` cm`),P(`/`+E+` sh`),P(`Q`);else if(M instanceof Na){var V=new Vt(1,0,0,-1,0,mr());h.matrix&&(V=V.multiply(h.matrix||Pi),E=Ms.call(M,h.key,h.boundingBox,h.xStep,h.yStep,V).id),P(`q`),P(`/Pattern cs`),P(`/`+E+` scn`),M.gState&&p.setGState(M.gState),P(b),P(`Q`)}},Us=function(h){switch(h){case`f`:case`F`:case`n`:return`W n`;case`f*`:return`W* n`;case`B`:case`S`:return`W S`;case`B*`:return`W* S`}},Hi=p.moveTo=function(h,b){return P(tt(U(h))+` `+tt(q(b))+` m`),this},Eo=p.lineTo=function(h,b){return P(tt(U(h))+` `+tt(q(b))+` l`),this},Wi=p.curveTo=function(h,b,E,M,V,ot){return P([tt(U(h)),tt(q(b)),tt(U(E)),tt(q(M)),tt(U(V)),tt(q(ot)),`c`].join(` `)),this};p.__private__.line=p.line=function(h,b,E,M,V){if(isNaN(h)||isNaN(b)||isNaN(E)||isNaN(M)||!di(V))throw new Error(`Invalid arguments passed to jsPDF.line`);return D===Z?this.lines([[E-h,M-b]],h,b,[1,1],V||`S`):this.lines([[E-h,M-b]],h,b,[1,1]).stroke()},p.__private__.lines=p.lines=function(h,b,E,M,V,ot){var gt,Ft,Ct,Kt,te,de,Xe,Le,Ne,Fe,je,Me;if(typeof h==`number`&&(Me=E,E=b,b=h,h=Me),M=M||[1,1],ot=ot||!1,isNaN(b)||isNaN(E)||!Array.isArray(h)||!Array.isArray(M)||!di(V)||typeof ot!=`boolean`)throw new Error(`Invalid arguments passed to jsPDF.lines`);for(Hi(b,E),gt=M[0],Ft=M[1],Kt=h.length,Fe=b,je=E,Ct=0;Ct=100&&o<=900&&o%100==0?o:400:/^\d00$/.test(o)?parseInt(o):o===`bold`?700:400:400})(t.weight),a=(function(o){return typeof fh[o=o||`normal`]==`number`?o:`normal`})(t.stretch);return{family:n,style:e,weight:i,stretch:a,src:t.src||[],ref:t.ref||{name:n,style:[a,e,i].join(` `)}}}function Mf(t,n,e,i){var a;for(a=e;a>=0&&a=0&&a>>1)&255}return a}function Yf(t,n,e){var i=t.length,a=[];a[0]=4;for(var o=0;o>o&f}function Kf(t,n,e,i){var a=e*i,o=Math.floor(a/8),f=16-(a-8*o+i),l=(1<>8&255;d.setUint8(m,L)}})(t,o,cu(t,o)&~(l<>7,f=1<<1+(7&a);t[n++],t[n++];var l=null,c=null;o&&(l=n,c=f,n+=3*f);var d=!0,m=[],A=0,L=null,p=0,T=null;for(this.width=e,this.height=i;d&&n=0))throw Error(`Invalid block size`);if(N===0)break;n+=N}break;case 249:if(t[n++]!==4||t[n+4]!==0)throw new Error(`Invalid graphics extension block.`);var O=t[n++];A=t[n++]|t[n++]<<8,L=t[n++],1&O||(L=null),p=O>>2&7,n++;break;case 254:for(;;){if(!((N=t[n++])>=0))throw Error(`Invalid block size`);if(N===0)break;n+=N}break;default:throw new Error(`Unknown graphic control label: 0x`+t[n-1].toString(16))}break;case 44:var B=t[n++]|t[n++]<<8,k=t[n++]|t[n++]<<8,Z=t[n++]|t[n++]<<8,$=t[n++]|t[n++]<<8,D=t[n++],lt=D>>6&1,_t=1<<1+(7&D),mt=l,tt=c,z=!1;D>>7&&(z=!0,mt=n,tt=_t,n+=3*_t);var et=n;for(n++;;){var N;if(!((N=t[n++])>=0))throw Error(`Invalid block size`);if(N===0)break;n+=N}m.push({x:B,y:k,width:Z,height:$,has_local_palette:z,palette_offset:mt,palette_size:tt,data_offset:et,data_length:n-et,transparent_index:L,interlaced:!!lt,delay:A,disposal:p});break;case 59:d=!1;break;default:throw new Error(`Unknown gif block: 0x`+t[n-1].toString(16))}this.numFrames=function(){return m.length},this.loopCount=function(){return T},this.frameInfo=function(F){if(F<0||F>=m.length)throw new Error(`Frame index out of range.`);return m[F]},this.decodeAndBlitFrameBGRA=function(F,U){var q=this.frameInfo(F),it=q.width*q.height;if(it>536870912)throw new Error(`Image dimensions exceed 512MB, which is too large.`);var ft=new Uint8Array(it);Xf(t,q.data_offset,ft,it);var pt=q.palette_offset,nt=q.transparent_index;nt===null&&(nt=256);var ut=q.width,At=e-ut,yt=ut,y=4*(q.y*e+q.x),R=4*((q.y+q.height)*e+q.x),j=y,G=4*At;q.interlaced===!0&&(G+=4*e*7);for(var Y=8,Q=0,rt=ft.length;Q