@flourish/sdk 5.1.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RELEASE_NOTES.md +8 -0
- package/bin/flourish.js +6 -6
- package/common/embed/credit.js +3 -2
- package/common/embed/customer_analytics.js +15 -11
- package/common/embed/embedding.d.ts +1 -1
- package/common/embed/embedding.js +92 -37
- package/common/embed/localizations.js +4 -4
- package/common/embed/parse_query_params.js +2 -1
- package/common/package.json +9 -3
- package/common/tsconfig.sdk.tsbuildinfo +1 -1
- package/common/utils/columns.js +27 -14
- package/common/utils/data.d.ts +1 -1
- package/common/utils/data.js +64 -30
- package/common/utils/json.js +8 -4
- package/common/utils/polyfills.js +1 -1
- package/common/utils/state.d.ts +7 -7
- package/common/utils/state.js +44 -29
- package/lib/cmd/assign-version-number.js +5 -5
- package/lib/cmd/build.js +1 -1
- package/lib/cmd/delete.js +2 -2
- package/lib/cmd/history.js +4 -2
- package/lib/cmd/list.js +13 -11
- package/lib/cmd/login.js +1 -1
- package/lib/cmd/publish.js +13 -14
- package/lib/cmd/register.js +3 -3
- package/lib/cmd/run.js +3 -3
- package/lib/cmd/upgrade/1-convert-config-to-yaml.js +14 -17
- package/lib/cmd/upgrade/2-convert-index-html.js +4 -4
- package/lib/cmd/upgrade/3-add-build-config.js +5 -5
- package/lib/cmd/upgrade/4-remove-autoheight-config.js +3 -3
- package/lib/cmd/upgrade/index.js +6 -6
- package/lib/common.js +12 -11
- package/lib/log.js +7 -7
- package/lib/sdk.js +35 -40
- package/lib/validate_config.js +30 -30
- package/package.json +6 -4
- package/rollup.config.mjs +1 -1
- package/server/comms_js.js +3 -3
- package/server/index.js +37 -39
- package/server/index_html.js +16 -9
- package/server/views/default_template_index.html +1 -0
- package/server/views/index.html +20 -4
- package/site/embedded.js +1 -1
- package/site/favicon.ico +0 -0
- package/site/fonts/canva-sans/WOFF/CanvaSans-Bold.woff +0 -0
- package/site/fonts/canva-sans/WOFF/CanvaSans-Bold.woff2 +0 -0
- package/site/fonts/canva-sans/WOFF/CanvaSans-Regular.woff +0 -0
- package/site/fonts/canva-sans/WOFF/CanvaSans-Regular.woff2 +0 -0
- package/site/fonts/canva-sans/WOFF/CanvaSansDisplay-Bold.woff +0 -0
- package/site/fonts/canva-sans/WOFF/CanvaSansDisplay-Bold.woff2 +0 -0
- package/site/fonts/canva-sans/WOFF/CanvaSansDisplay-Regular.woff +0 -0
- package/site/fonts/canva-sans/WOFF/CanvaSansDisplay-Regular.woff2 +0 -0
- package/site/fonts/canva-sans-variable/TTF/CanvaSans-VF.ttf +0 -0
- package/site/fonts/canva-sans-variable/TTF/CanvaSansDisplay-VF.ttf +0 -0
- package/site/fonts/canva-sans-variable/WOFF/CanvaSans-VF.woff +0 -0
- package/site/fonts/canva-sans-variable/WOFF/CanvaSansDisplay-VF.woff +0 -0
- package/site/fonts/canva-sans.css +53 -0
- package/site/images/bosh-white.svg +12 -0
- package/site/images/bosh.svg +10 -6
- package/site/images/canva.svg +27 -0
- package/site/images/flourish_logo.svg +20 -0
- package/site/images/flourish_logo_white.svg +20 -0
- package/site/images/icon-calendar.svg +3 -0
- package/site/images/icon-chart-bar.svg +3 -0
- package/site/images/icon-chart-line.svg +3 -0
- package/site/images/icon-chart-pie.svg +3 -0
- package/site/images/icon-chevron-down-small-white.svg +3 -0
- package/site/images/icon-editable.svg +1 -8
- package/site/images/icon-gift.svg +3 -0
- package/site/images/icon-grid-view-white.svg +3 -0
- package/site/images/icon-grid-view.svg +3 -0
- package/site/images/icon-number.svg +5 -0
- package/site/images/icon-presentation.svg +2 -2
- package/site/images/icon-presenter.svg +3 -0
- package/site/images/icon-private.svg +1 -1
- package/site/images/icon-star.svg +3 -0
- package/site/images/icon-table-border-all.svg +3 -0
- package/site/images/icon-table-white.svg +3 -0
- package/site/images/icon-table.svg +3 -0
- package/site/images/icon-text.svg +3 -0
- package/site/images/icon-upload-black.svg +3 -0
- package/site/images/icon-upload-cloud.svg +3 -0
- package/site/images/icon-upload.svg +2 -2
- package/site/images/icon-viewable.svg +1 -1
- package/site/images/instagram-logo.svg +1 -0
- package/site/images/linkedin-logo.svg +1 -0
- package/site/images/logo.png +0 -0
- package/site/images/logo.svg +20 -1
- package/site/images/made_with_flourish.svg +38 -4
- package/site/images/share_image.jpg +0 -0
- package/site/images/slide_visualisation.png +0 -0
- package/site/images/spinner_data.json +1 -0
- package/site/images/x-logo.svg +1 -0
- package/site/images/youtube-logo.svg +1 -0
- package/site/script.js +3 -3
- package/site/sdk.css +2 -2
- package/site/talk_to_server.js +6 -4
- package/skeleton/package.json +4 -0
- package/test/lib/sdk.js +13 -14
- package/test/lib/validate_config.js +83 -83
- package/my_template/node_modules/.package-lock.json +0 -525
- package/my_template/node_modules/@babel/code-frame/LICENSE +0 -22
- package/my_template/node_modules/@babel/code-frame/README.md +0 -19
- package/my_template/node_modules/@babel/code-frame/lib/index.js +0 -157
- package/my_template/node_modules/@babel/code-frame/lib/index.js.map +0 -1
- package/my_template/node_modules/@babel/code-frame/package.json +0 -30
- package/my_template/node_modules/@babel/helper-validator-identifier/LICENSE +0 -22
- package/my_template/node_modules/@babel/helper-validator-identifier/README.md +0 -19
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -70
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -57
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -35
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
- package/my_template/node_modules/@babel/helper-validator-identifier/package.json +0 -28
- package/my_template/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js +0 -73
- package/my_template/node_modules/@babel/highlight/LICENSE +0 -22
- package/my_template/node_modules/@babel/highlight/README.md +0 -19
- package/my_template/node_modules/@babel/highlight/lib/index.js +0 -105
- package/my_template/node_modules/@babel/highlight/lib/index.js.map +0 -1
- package/my_template/node_modules/@babel/highlight/package.json +0 -29
- package/my_template/node_modules/@types/estree/LICENSE +0 -21
- package/my_template/node_modules/@types/estree/README.md +0 -15
- package/my_template/node_modules/@types/estree/flow.d.ts +0 -167
- package/my_template/node_modules/@types/estree/index.d.ts +0 -683
- package/my_template/node_modules/@types/estree/package.json +0 -26
- package/my_template/node_modules/@types/node/LICENSE +0 -21
- package/my_template/node_modules/@types/node/README.md +0 -15
- package/my_template/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/my_template/node_modules/@types/node/assert.d.ts +0 -996
- package/my_template/node_modules/@types/node/async_hooks.d.ts +0 -539
- package/my_template/node_modules/@types/node/buffer.d.ts +0 -2362
- package/my_template/node_modules/@types/node/child_process.d.ts +0 -1540
- package/my_template/node_modules/@types/node/cluster.d.ts +0 -432
- package/my_template/node_modules/@types/node/console.d.ts +0 -415
- package/my_template/node_modules/@types/node/constants.d.ts +0 -19
- package/my_template/node_modules/@types/node/crypto.d.ts +0 -4456
- package/my_template/node_modules/@types/node/dgram.d.ts +0 -586
- package/my_template/node_modules/@types/node/diagnostics_channel.d.ts +0 -191
- package/my_template/node_modules/@types/node/dns/promises.d.ts +0 -425
- package/my_template/node_modules/@types/node/dns.d.ts +0 -809
- package/my_template/node_modules/@types/node/dom-events.d.ts +0 -122
- package/my_template/node_modules/@types/node/domain.d.ts +0 -170
- package/my_template/node_modules/@types/node/events.d.ts +0 -879
- package/my_template/node_modules/@types/node/fs/promises.d.ts +0 -1239
- package/my_template/node_modules/@types/node/fs.d.ts +0 -4291
- package/my_template/node_modules/@types/node/globals.d.ts +0 -385
- package/my_template/node_modules/@types/node/globals.global.d.ts +0 -1
- package/my_template/node_modules/@types/node/http.d.ts +0 -1888
- package/my_template/node_modules/@types/node/http2.d.ts +0 -2382
- package/my_template/node_modules/@types/node/https.d.ts +0 -550
- package/my_template/node_modules/@types/node/index.d.ts +0 -88
- package/my_template/node_modules/@types/node/inspector.d.ts +0 -2747
- package/my_template/node_modules/@types/node/module.d.ts +0 -301
- package/my_template/node_modules/@types/node/net.d.ts +0 -949
- package/my_template/node_modules/@types/node/os.d.ts +0 -478
- package/my_template/node_modules/@types/node/package.json +0 -230
- package/my_template/node_modules/@types/node/path.d.ts +0 -191
- package/my_template/node_modules/@types/node/perf_hooks.d.ts +0 -639
- package/my_template/node_modules/@types/node/process.d.ts +0 -1539
- package/my_template/node_modules/@types/node/punycode.d.ts +0 -117
- package/my_template/node_modules/@types/node/querystring.d.ts +0 -141
- package/my_template/node_modules/@types/node/readline/promises.d.ts +0 -150
- package/my_template/node_modules/@types/node/readline.d.ts +0 -539
- package/my_template/node_modules/@types/node/repl.d.ts +0 -430
- package/my_template/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/my_template/node_modules/@types/node/stream/promises.d.ts +0 -83
- package/my_template/node_modules/@types/node/stream/web.d.ts +0 -350
- package/my_template/node_modules/@types/node/stream.d.ts +0 -1701
- package/my_template/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/my_template/node_modules/@types/node/test.d.ts +0 -1382
- package/my_template/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/my_template/node_modules/@types/node/timers.d.ts +0 -240
- package/my_template/node_modules/@types/node/tls.d.ts +0 -1210
- package/my_template/node_modules/@types/node/trace_events.d.ts +0 -182
- package/my_template/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/my_template/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/my_template/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/my_template/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/my_template/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/my_template/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/my_template/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/my_template/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/my_template/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4455
- package/my_template/node_modules/@types/node/ts4.8/dgram.d.ts +0 -586
- package/my_template/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
- package/my_template/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/my_template/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/my_template/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/my_template/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/my_template/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/my_template/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/my_template/node_modules/@types/node/ts4.8/fs.d.ts +0 -4291
- package/my_template/node_modules/@types/node/ts4.8/globals.d.ts +0 -385
- package/my_template/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/my_template/node_modules/@types/node/ts4.8/http.d.ts +0 -1888
- package/my_template/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/my_template/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/my_template/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/my_template/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/my_template/node_modules/@types/node/ts4.8/module.d.ts +0 -301
- package/my_template/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/my_template/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/my_template/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/my_template/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -639
- package/my_template/node_modules/@types/node/ts4.8/process.d.ts +0 -1539
- package/my_template/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/my_template/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/my_template/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/my_template/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/my_template/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/my_template/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/my_template/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/my_template/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -350
- package/my_template/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/my_template/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/my_template/node_modules/@types/node/ts4.8/test.d.ts +0 -1382
- package/my_template/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/my_template/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/my_template/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/my_template/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/my_template/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/my_template/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/my_template/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/my_template/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/my_template/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/my_template/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
- package/my_template/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/my_template/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/my_template/node_modules/@types/node/tty.d.ts +0 -208
- package/my_template/node_modules/@types/node/url.d.ts +0 -927
- package/my_template/node_modules/@types/node/util.d.ts +0 -2183
- package/my_template/node_modules/@types/node/v8.d.ts +0 -635
- package/my_template/node_modules/@types/node/vm.d.ts +0 -903
- package/my_template/node_modules/@types/node/wasi.d.ts +0 -158
- package/my_template/node_modules/@types/node/worker_threads.d.ts +0 -691
- package/my_template/node_modules/@types/node/zlib.d.ts +0 -517
- package/my_template/node_modules/@types/resolve/LICENSE +0 -21
- package/my_template/node_modules/@types/resolve/README.md +0 -16
- package/my_template/node_modules/@types/resolve/index.d.ts +0 -113
- package/my_template/node_modules/@types/resolve/package.json +0 -29
- package/my_template/node_modules/acorn/CHANGELOG.md +0 -620
- package/my_template/node_modules/acorn/LICENSE +0 -21
- package/my_template/node_modules/acorn/README.md +0 -269
- package/my_template/node_modules/acorn/bin/acorn +0 -4
- package/my_template/node_modules/acorn/dist/acorn.d.ts +0 -209
- package/my_template/node_modules/acorn/dist/acorn.js +0 -5186
- package/my_template/node_modules/acorn/dist/acorn.js.map +0 -1
- package/my_template/node_modules/acorn/dist/acorn.mjs +0 -5155
- package/my_template/node_modules/acorn/dist/acorn.mjs.d.ts +0 -2
- package/my_template/node_modules/acorn/dist/acorn.mjs.map +0 -1
- package/my_template/node_modules/acorn/dist/bin.js +0 -64
- package/my_template/node_modules/acorn/package.json +0 -35
- package/my_template/node_modules/amdefine/LICENSE +0 -58
- package/my_template/node_modules/amdefine/README.md +0 -171
- package/my_template/node_modules/amdefine/amdefine.js +0 -301
- package/my_template/node_modules/amdefine/intercept.js +0 -36
- package/my_template/node_modules/amdefine/package.json +0 -16
- package/my_template/node_modules/ansi-styles/index.js +0 -165
- package/my_template/node_modules/ansi-styles/license +0 -9
- package/my_template/node_modules/ansi-styles/package.json +0 -56
- package/my_template/node_modules/ansi-styles/readme.md +0 -147
- package/my_template/node_modules/builtin-modules/builtin-modules.json +0 -43
- package/my_template/node_modules/builtin-modules/index.d.ts +0 -14
- package/my_template/node_modules/builtin-modules/index.js +0 -11
- package/my_template/node_modules/builtin-modules/license +0 -9
- package/my_template/node_modules/builtin-modules/package.json +0 -44
- package/my_template/node_modules/builtin-modules/readme.md +0 -44
- package/my_template/node_modules/builtin-modules/static.d.ts +0 -14
- package/my_template/node_modules/builtin-modules/static.js +0 -2
- package/my_template/node_modules/chalk/index.js +0 -228
- package/my_template/node_modules/chalk/index.js.flow +0 -93
- package/my_template/node_modules/chalk/license +0 -9
- package/my_template/node_modules/chalk/package.json +0 -71
- package/my_template/node_modules/chalk/readme.md +0 -314
- package/my_template/node_modules/chalk/templates.js +0 -128
- package/my_template/node_modules/chalk/types/index.d.ts +0 -97
- package/my_template/node_modules/clean-css/History.md +0 -1138
- package/my_template/node_modules/clean-css/LICENSE +0 -19
- package/my_template/node_modules/clean-css/README.md +0 -369
- package/my_template/node_modules/clean-css/bin/cleancss +0 -184
- package/my_template/node_modules/clean-css/index.js +0 -1
- package/my_template/node_modules/clean-css/lib/clean.js +0 -231
- package/my_template/node_modules/clean-css/lib/colors/hex-name-shortener.js +0 -186
- package/my_template/node_modules/clean-css/lib/colors/hsl.js +0 -67
- package/my_template/node_modules/clean-css/lib/colors/rgb.js +0 -16
- package/my_template/node_modules/clean-css/lib/imports/inliner.js +0 -399
- package/my_template/node_modules/clean-css/lib/properties/break-up.js +0 -335
- package/my_template/node_modules/clean-css/lib/properties/can-override.js +0 -142
- package/my_template/node_modules/clean-css/lib/properties/clone.js +0 -26
- package/my_template/node_modules/clean-css/lib/properties/compactable.js +0 -285
- package/my_template/node_modules/clean-css/lib/properties/every-combination.js +0 -28
- package/my_template/node_modules/clean-css/lib/properties/has-inherit.js +0 -10
- package/my_template/node_modules/clean-css/lib/properties/invalid-property-error.js +0 -10
- package/my_template/node_modules/clean-css/lib/properties/optimizer.js +0 -215
- package/my_template/node_modules/clean-css/lib/properties/override-compactor.js +0 -384
- package/my_template/node_modules/clean-css/lib/properties/populate-components.js +0 -32
- package/my_template/node_modules/clean-css/lib/properties/remove-unused.js +0 -10
- package/my_template/node_modules/clean-css/lib/properties/restore-from-optimizing.js +0 -60
- package/my_template/node_modules/clean-css/lib/properties/restore.js +0 -232
- package/my_template/node_modules/clean-css/lib/properties/shorthand-compactor.js +0 -134
- package/my_template/node_modules/clean-css/lib/properties/validator.js +0 -197
- package/my_template/node_modules/clean-css/lib/properties/vendor-prefixes.js +0 -26
- package/my_template/node_modules/clean-css/lib/properties/wrap-for-optimizing.js +0 -118
- package/my_template/node_modules/clean-css/lib/selectors/advanced.js +0 -86
- package/my_template/node_modules/clean-css/lib/selectors/clean-up.js +0 -89
- package/my_template/node_modules/clean-css/lib/selectors/extractor.js +0 -69
- package/my_template/node_modules/clean-css/lib/selectors/is-special.js +0 -5
- package/my_template/node_modules/clean-css/lib/selectors/merge-adjacent.js +0 -35
- package/my_template/node_modules/clean-css/lib/selectors/merge-media-queries.js +0 -64
- package/my_template/node_modules/clean-css/lib/selectors/merge-non-adjacent-by-body.js +0 -61
- package/my_template/node_modules/clean-css/lib/selectors/merge-non-adjacent-by-selector.js +0 -76
- package/my_template/node_modules/clean-css/lib/selectors/reduce-non-adjacent.js +0 -172
- package/my_template/node_modules/clean-css/lib/selectors/remove-duplicate-media-queries.js +0 -21
- package/my_template/node_modules/clean-css/lib/selectors/remove-duplicates.js +0 -41
- package/my_template/node_modules/clean-css/lib/selectors/reorderable.js +0 -99
- package/my_template/node_modules/clean-css/lib/selectors/restructure.js +0 -369
- package/my_template/node_modules/clean-css/lib/selectors/simple.js +0 -454
- package/my_template/node_modules/clean-css/lib/source-maps/track.js +0 -119
- package/my_template/node_modules/clean-css/lib/stringifier/helpers.js +0 -167
- package/my_template/node_modules/clean-css/lib/stringifier/one-time.js +0 -50
- package/my_template/node_modules/clean-css/lib/stringifier/simple.js +0 -22
- package/my_template/node_modules/clean-css/lib/stringifier/source-maps.js +0 -96
- package/my_template/node_modules/clean-css/lib/text/comments-processor.js +0 -131
- package/my_template/node_modules/clean-css/lib/text/escape-store.js +0 -53
- package/my_template/node_modules/clean-css/lib/text/expressions-processor.js +0 -117
- package/my_template/node_modules/clean-css/lib/text/free-text-processor.js +0 -98
- package/my_template/node_modules/clean-css/lib/text/urls-processor.js +0 -75
- package/my_template/node_modules/clean-css/lib/tokenizer/extract-properties.js +0 -193
- package/my_template/node_modules/clean-css/lib/tokenizer/extract-selectors.js +0 -17
- package/my_template/node_modules/clean-css/lib/tokenizer/tokenize.js +0 -297
- package/my_template/node_modules/clean-css/lib/urls/rebase.js +0 -30
- package/my_template/node_modules/clean-css/lib/urls/reduce.js +0 -154
- package/my_template/node_modules/clean-css/lib/urls/rewrite.js +0 -107
- package/my_template/node_modules/clean-css/lib/utils/clone-array.js +0 -12
- package/my_template/node_modules/clean-css/lib/utils/compatibility.js +0 -162
- package/my_template/node_modules/clean-css/lib/utils/input-source-map-tracker.js +0 -284
- package/my_template/node_modules/clean-css/lib/utils/object.js +0 -11
- package/my_template/node_modules/clean-css/lib/utils/quote-scanner.js +0 -119
- package/my_template/node_modules/clean-css/lib/utils/source-reader.js +0 -96
- package/my_template/node_modules/clean-css/lib/utils/source-tracker.js +0 -31
- package/my_template/node_modules/clean-css/lib/utils/split.js +0 -62
- package/my_template/node_modules/clean-css/node_modules/source-map/README.md +0 -510
- package/my_template/node_modules/clean-css/node_modules/source-map/build/assert-shim.js +0 -56
- package/my_template/node_modules/clean-css/node_modules/source-map/build/mini-require.js +0 -152
- package/my_template/node_modules/clean-css/node_modules/source-map/build/prefix-source-map.jsm +0 -21
- package/my_template/node_modules/clean-css/node_modules/source-map/build/prefix-utils.jsm +0 -18
- package/my_template/node_modules/clean-css/node_modules/source-map/build/suffix-browser.js +0 -8
- package/my_template/node_modules/clean-css/node_modules/source-map/build/suffix-source-map.jsm +0 -6
- package/my_template/node_modules/clean-css/node_modules/source-map/build/suffix-utils.jsm +0 -21
- package/my_template/node_modules/clean-css/node_modules/source-map/build/test-prefix.js +0 -8
- package/my_template/node_modules/clean-css/node_modules/source-map/build/test-suffix.js +0 -3
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/array-set.js +0 -107
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/base64-vlq.js +0 -146
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/base64.js +0 -73
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/binary-search.js +0 -117
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/mapping-list.js +0 -86
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/quick-sort.js +0 -120
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -1077
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/source-map-generator.js +0 -399
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/source-node.js +0 -414
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/util.js +0 -370
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map.js +0 -8
- package/my_template/node_modules/clean-css/node_modules/source-map/package.json +0 -68
- package/my_template/node_modules/clean-css/package.json +0 -53
- package/my_template/node_modules/color-convert/CHANGELOG.md +0 -54
- package/my_template/node_modules/color-convert/LICENSE +0 -21
- package/my_template/node_modules/color-convert/README.md +0 -68
- package/my_template/node_modules/color-convert/conversions.js +0 -868
- package/my_template/node_modules/color-convert/index.js +0 -78
- package/my_template/node_modules/color-convert/package.json +0 -46
- package/my_template/node_modules/color-convert/route.js +0 -97
- package/my_template/node_modules/color-name/.eslintrc.json +0 -43
- package/my_template/node_modules/color-name/LICENSE +0 -8
- package/my_template/node_modules/color-name/README.md +0 -11
- package/my_template/node_modules/color-name/index.js +0 -152
- package/my_template/node_modules/color-name/package.json +0 -25
- package/my_template/node_modules/color-name/test.js +0 -7
- package/my_template/node_modules/commander/History.md +0 -256
- package/my_template/node_modules/commander/LICENSE +0 -22
- package/my_template/node_modules/commander/Readme.md +0 -342
- package/my_template/node_modules/commander/index.js +0 -1103
- package/my_template/node_modules/commander/package.json +0 -33
- package/my_template/node_modules/copy-anything/LICENSE +0 -21
- package/my_template/node_modules/copy-anything/README.md +0 -130
- package/my_template/node_modules/copy-anything/dist/index.cjs +0 -52
- package/my_template/node_modules/copy-anything/dist/index.es.js +0 -48
- package/my_template/node_modules/copy-anything/dist/types/index.d.ts +0 -15
- package/my_template/node_modules/copy-anything/package.json +0 -98
- package/my_template/node_modules/errno/.jshintrc +0 -59
- package/my_template/node_modules/errno/.travis.yml +0 -19
- package/my_template/node_modules/errno/README.md +0 -145
- package/my_template/node_modules/errno/build.js +0 -43
- package/my_template/node_modules/errno/cli.js +0 -22
- package/my_template/node_modules/errno/custom.js +0 -57
- package/my_template/node_modules/errno/errno.js +0 -313
- package/my_template/node_modules/errno/package.json +0 -33
- package/my_template/node_modules/errno/test.js +0 -88
- package/my_template/node_modules/escape-string-regexp/index.js +0 -11
- package/my_template/node_modules/escape-string-regexp/license +0 -21
- package/my_template/node_modules/escape-string-regexp/package.json +0 -41
- package/my_template/node_modules/escape-string-regexp/readme.md +0 -27
- package/my_template/node_modules/estree-walker/CHANGELOG.md +0 -55
- package/my_template/node_modules/estree-walker/README.md +0 -45
- package/my_template/node_modules/estree-walker/dist/estree-walker.umd.js +0 -65
- package/my_template/node_modules/estree-walker/dist/estree-walker.umd.js.map +0 -1
- package/my_template/node_modules/estree-walker/index.d.ts +0 -27
- package/my_template/node_modules/estree-walker/package.json +0 -30
- package/my_template/node_modules/estree-walker/src/estree-walker.js +0 -51
- package/my_template/node_modules/function-bind/.eslintrc +0 -21
- package/my_template/node_modules/function-bind/.github/FUNDING.yml +0 -12
- package/my_template/node_modules/function-bind/.github/SECURITY.md +0 -3
- package/my_template/node_modules/function-bind/.nycrc +0 -13
- package/my_template/node_modules/function-bind/CHANGELOG.md +0 -136
- package/my_template/node_modules/function-bind/LICENSE +0 -20
- package/my_template/node_modules/function-bind/README.md +0 -46
- package/my_template/node_modules/function-bind/implementation.js +0 -84
- package/my_template/node_modules/function-bind/index.js +0 -5
- package/my_template/node_modules/function-bind/package.json +0 -87
- package/my_template/node_modules/function-bind/test/.eslintrc +0 -9
- package/my_template/node_modules/function-bind/test/index.js +0 -252
- package/my_template/node_modules/graceful-fs/LICENSE +0 -15
- package/my_template/node_modules/graceful-fs/README.md +0 -143
- package/my_template/node_modules/graceful-fs/clone.js +0 -23
- package/my_template/node_modules/graceful-fs/graceful-fs.js +0 -448
- package/my_template/node_modules/graceful-fs/legacy-streams.js +0 -118
- package/my_template/node_modules/graceful-fs/package.json +0 -53
- package/my_template/node_modules/graceful-fs/polyfills.js +0 -355
- package/my_template/node_modules/graceful-readlink/.travis.yml +0 -5
- package/my_template/node_modules/graceful-readlink/LICENSE +0 -22
- package/my_template/node_modules/graceful-readlink/README.md +0 -17
- package/my_template/node_modules/graceful-readlink/index.js +0 -12
- package/my_template/node_modules/graceful-readlink/package.json +0 -18
- package/my_template/node_modules/has-flag/index.js +0 -8
- package/my_template/node_modules/has-flag/license +0 -9
- package/my_template/node_modules/has-flag/package.json +0 -44
- package/my_template/node_modules/has-flag/readme.md +0 -70
- package/my_template/node_modules/hasown/.eslintrc +0 -5
- package/my_template/node_modules/hasown/.github/FUNDING.yml +0 -12
- package/my_template/node_modules/hasown/.nycrc +0 -13
- package/my_template/node_modules/hasown/CHANGELOG.md +0 -20
- package/my_template/node_modules/hasown/LICENSE +0 -21
- package/my_template/node_modules/hasown/README.md +0 -40
- package/my_template/node_modules/hasown/index.d.ts +0 -3
- package/my_template/node_modules/hasown/index.d.ts.map +0 -1
- package/my_template/node_modules/hasown/index.js +0 -8
- package/my_template/node_modules/hasown/package.json +0 -91
- package/my_template/node_modules/hasown/tsconfig.json +0 -49
- package/my_template/node_modules/image-size/LICENSE +0 -9
- package/my_template/node_modules/image-size/Readme.md +0 -88
- package/my_template/node_modules/image-size/bin/image-size.js +0 -36
- package/my_template/node_modules/image-size/lib/detector.js +0 -19
- package/my_template/node_modules/image-size/lib/index.js +0 -105
- package/my_template/node_modules/image-size/lib/readUInt.js +0 -11
- package/my_template/node_modules/image-size/lib/types/bmp.js +0 -17
- package/my_template/node_modules/image-size/lib/types/dds.js +0 -18
- package/my_template/node_modules/image-size/lib/types/gif.js +0 -19
- package/my_template/node_modules/image-size/lib/types/jpg.js +0 -62
- package/my_template/node_modules/image-size/lib/types/png.js +0 -36
- package/my_template/node_modules/image-size/lib/types/psd.js +0 -17
- package/my_template/node_modules/image-size/lib/types/svg.js +0 -78
- package/my_template/node_modules/image-size/lib/types/tiff.js +0 -118
- package/my_template/node_modules/image-size/lib/types/webp.js +0 -69
- package/my_template/node_modules/image-size/lib/types.js +0 -13
- package/my_template/node_modules/image-size/package.json +0 -49
- package/my_template/node_modules/is-core-module/.eslintrc +0 -18
- package/my_template/node_modules/is-core-module/.nycrc +0 -9
- package/my_template/node_modules/is-core-module/CHANGELOG.md +0 -180
- package/my_template/node_modules/is-core-module/LICENSE +0 -20
- package/my_template/node_modules/is-core-module/README.md +0 -40
- package/my_template/node_modules/is-core-module/core.json +0 -158
- package/my_template/node_modules/is-core-module/index.js +0 -69
- package/my_template/node_modules/is-core-module/package.json +0 -73
- package/my_template/node_modules/is-core-module/test/index.js +0 -133
- package/my_template/node_modules/is-module/README.md +0 -41
- package/my_template/node_modules/is-module/component.json +0 -11
- package/my_template/node_modules/is-module/index.js +0 -11
- package/my_template/node_modules/is-module/package.json +0 -20
- package/my_template/node_modules/is-what/.babelrc +0 -3
- package/my_template/node_modules/is-what/.eslintignore +0 -9
- package/my_template/node_modules/is-what/.eslintrc.js +0 -18
- package/my_template/node_modules/is-what/.github/FUNDING.yml +0 -12
- package/my_template/node_modules/is-what/.prettierrc +0 -9
- package/my_template/node_modules/is-what/.vscode/settings.json +0 -9
- package/my_template/node_modules/is-what/LICENSE +0 -21
- package/my_template/node_modules/is-what/README.md +0 -191
- package/my_template/node_modules/is-what/build.js +0 -60
- package/my_template/node_modules/is-what/dist/index.cjs.js +0 -364
- package/my_template/node_modules/is-what/dist/index.esm.js +0 -327
- package/my_template/node_modules/is-what/package.json +0 -86
- package/my_template/node_modules/is-what/src/index.ts +0 -395
- package/my_template/node_modules/is-what/test/ava.ts +0 -376
- package/my_template/node_modules/is-what/test/index.test.js +0 -15
- package/my_template/node_modules/is-what/tsconfig.json +0 -11
- package/my_template/node_modules/is-what/types/index.d.ts +0 -253
- package/my_template/node_modules/jest-worker/LICENSE +0 -21
- package/my_template/node_modules/jest-worker/README.md +0 -215
- package/my_template/node_modules/jest-worker/build/Farm.d.ts +0 -27
- package/my_template/node_modules/jest-worker/build/Farm.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/Farm.js +0 -179
- package/my_template/node_modules/jest-worker/build/WorkerPool.d.ts +0 -14
- package/my_template/node_modules/jest-worker/build/WorkerPool.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/WorkerPool.js +0 -49
- package/my_template/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts +0 -22
- package/my_template/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/base/BaseWorkerPool.js +0 -134
- package/my_template/node_modules/jest-worker/build/index.d.ts +0 -46
- package/my_template/node_modules/jest-worker/build/index.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/index.js +0 -184
- package/my_template/node_modules/jest-worker/build/types.d.ts +0 -98
- package/my_template/node_modules/jest-worker/build/types.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/types.js +0 -43
- package/my_template/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts +0 -47
- package/my_template/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/workers/ChildProcessWorker.js +0 -310
- package/my_template/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts +0 -29
- package/my_template/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/workers/NodeThreadsWorker.js +0 -289
- package/my_template/node_modules/jest-worker/build/workers/processChild.d.ts +0 -8
- package/my_template/node_modules/jest-worker/build/workers/processChild.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/workers/processChild.js +0 -166
- package/my_template/node_modules/jest-worker/build/workers/threadChild.d.ts +0 -8
- package/my_template/node_modules/jest-worker/build/workers/threadChild.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/workers/threadChild.js +0 -176
- package/my_template/node_modules/jest-worker/node_modules/supports-color/browser.js +0 -5
- package/my_template/node_modules/jest-worker/node_modules/supports-color/index.js +0 -138
- package/my_template/node_modules/jest-worker/node_modules/supports-color/license +0 -9
- package/my_template/node_modules/jest-worker/node_modules/supports-color/package.json +0 -53
- package/my_template/node_modules/jest-worker/node_modules/supports-color/readme.md +0 -85
- package/my_template/node_modules/jest-worker/package.json +0 -29
- package/my_template/node_modules/js-tokens/CHANGELOG.md +0 -151
- package/my_template/node_modules/js-tokens/LICENSE +0 -21
- package/my_template/node_modules/js-tokens/README.md +0 -240
- package/my_template/node_modules/js-tokens/index.js +0 -23
- package/my_template/node_modules/js-tokens/package.json +0 -30
- package/my_template/node_modules/less/.eslintignore +0 -5
- package/my_template/node_modules/less/.eslintrc.json +0 -3
- package/my_template/node_modules/less/Gruntfile.js +0 -420
- package/my_template/node_modules/less/README.md +0 -13
- package/my_template/node_modules/less/bin/lessc +0 -633
- package/my_template/node_modules/less/bower.json +0 -22
- package/my_template/node_modules/less/dist/less.js +0 -11275
- package/my_template/node_modules/less/dist/less.min.js +0 -11
- package/my_template/node_modules/less/dist/less.min.js.map +0 -1
- package/my_template/node_modules/less/index.js +0 -1
- package/my_template/node_modules/less/lib/less/constants.js +0 -15
- package/my_template/node_modules/less/lib/less/constants.js.map +0 -1
- package/my_template/node_modules/less/lib/less/contexts.js +0 -171
- package/my_template/node_modules/less/lib/less/contexts.js.map +0 -1
- package/my_template/node_modules/less/lib/less/data/colors.js +0 -153
- package/my_template/node_modules/less/lib/less/data/colors.js.map +0 -1
- package/my_template/node_modules/less/lib/less/data/index.js +0 -9
- package/my_template/node_modules/less/lib/less/data/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less/data/unit-conversions.js +0 -24
- package/my_template/node_modules/less/lib/less/data/unit-conversions.js.map +0 -1
- package/my_template/node_modules/less/lib/less/default-options.js +0 -57
- package/my_template/node_modules/less/lib/less/default-options.js.map +0 -1
- package/my_template/node_modules/less/lib/less/environment/abstract-file-manager.js +0 -122
- package/my_template/node_modules/less/lib/less/environment/abstract-file-manager.js.map +0 -1
- package/my_template/node_modules/less/lib/less/environment/abstract-plugin-loader.js +0 -168
- package/my_template/node_modules/less/lib/less/environment/abstract-plugin-loader.js.map +0 -1
- package/my_template/node_modules/less/lib/less/environment/environment-api.js +0 -28
- package/my_template/node_modules/less/lib/less/environment/environment-api.js.map +0 -1
- package/my_template/node_modules/less/lib/less/environment/environment.js +0 -57
- package/my_template/node_modules/less/lib/less/environment/environment.js.map +0 -1
- package/my_template/node_modules/less/lib/less/environment/file-manager-api.js +0 -106
- package/my_template/node_modules/less/lib/less/environment/file-manager-api.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/boolean.js +0 -21
- package/my_template/node_modules/less/lib/less/functions/boolean.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/color-blending.js +0 -78
- package/my_template/node_modules/less/lib/less/functions/color-blending.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/color.js +0 -404
- package/my_template/node_modules/less/lib/less/functions/color.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/data-uri.js +0 -86
- package/my_template/node_modules/less/lib/less/functions/data-uri.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/default.js +0 -29
- package/my_template/node_modules/less/lib/less/functions/default.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/function-caller.js +0 -66
- package/my_template/node_modules/less/lib/less/functions/function-caller.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/function-registry.js +0 -36
- package/my_template/node_modules/less/lib/less/functions/function-registry.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/index.js +0 -35
- package/my_template/node_modules/less/lib/less/functions/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/list.js +0 -136
- package/my_template/node_modules/less/lib/less/functions/list.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/math-helper.js +0 -20
- package/my_template/node_modules/less/lib/less/functions/math-helper.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/math.js +0 -30
- package/my_template/node_modules/less/lib/less/functions/math.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/number.js +0 -98
- package/my_template/node_modules/less/lib/less/functions/number.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/string.js +0 -42
- package/my_template/node_modules/less/lib/less/functions/string.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/svg.js +0 -88
- package/my_template/node_modules/less/lib/less/functions/svg.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/types.js +0 -75
- package/my_template/node_modules/less/lib/less/functions/types.js.map +0 -1
- package/my_template/node_modules/less/lib/less/import-manager.js +0 -196
- package/my_template/node_modules/less/lib/less/import-manager.js.map +0 -1
- package/my_template/node_modules/less/lib/less/index.js +0 -130
- package/my_template/node_modules/less/lib/less/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less/less-error.js +0 -162
- package/my_template/node_modules/less/lib/less/less-error.js.map +0 -1
- package/my_template/node_modules/less/lib/less/logger.js +0 -37
- package/my_template/node_modules/less/lib/less/logger.js.map +0 -1
- package/my_template/node_modules/less/lib/less/parse-tree.js +0 -69
- package/my_template/node_modules/less/lib/less/parse-tree.js.map +0 -1
- package/my_template/node_modules/less/lib/less/parse.js +0 -108
- package/my_template/node_modules/less/lib/less/parse.js.map +0 -1
- package/my_template/node_modules/less/lib/less/parser/chunker.js +0 -147
- package/my_template/node_modules/less/lib/less/parser/chunker.js.map +0 -1
- package/my_template/node_modules/less/lib/less/parser/parser-input.js +0 -355
- package/my_template/node_modules/less/lib/less/parser/parser-input.js.map +0 -1
- package/my_template/node_modules/less/lib/less/parser/parser.js +0 -2262
- package/my_template/node_modules/less/lib/less/parser/parser.js.map +0 -1
- package/my_template/node_modules/less/lib/less/plugin-manager.js +0 -158
- package/my_template/node_modules/less/lib/less/plugin-manager.js.map +0 -1
- package/my_template/node_modules/less/lib/less/render.js +0 -64
- package/my_template/node_modules/less/lib/less/render.js.map +0 -1
- package/my_template/node_modules/less/lib/less/source-map-builder.js +0 -72
- package/my_template/node_modules/less/lib/less/source-map-builder.js.map +0 -1
- package/my_template/node_modules/less/lib/less/source-map-output.js +0 -140
- package/my_template/node_modules/less/lib/less/source-map-output.js.map +0 -1
- package/my_template/node_modules/less/lib/less/transform-tree.js +0 -93
- package/my_template/node_modules/less/lib/less/transform-tree.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/anonymous.js +0 -34
- package/my_template/node_modules/less/lib/less/tree/anonymous.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/assignment.js +0 -32
- package/my_template/node_modules/less/lib/less/tree/assignment.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/atrule.js +0 -146
- package/my_template/node_modules/less/lib/less/tree/atrule.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/attribute.js +0 -29
- package/my_template/node_modules/less/lib/less/tree/attribute.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/call.js +0 -104
- package/my_template/node_modules/less/lib/less/tree/call.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/color.js +0 -243
- package/my_template/node_modules/less/lib/less/tree/color.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/combinator.js +0 -29
- package/my_template/node_modules/less/lib/less/tree/combinator.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/comment.js +0 -28
- package/my_template/node_modules/less/lib/less/tree/comment.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/condition.js +0 -41
- package/my_template/node_modules/less/lib/less/tree/condition.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/debug-info.js +0 -37
- package/my_template/node_modules/less/lib/less/tree/debug-info.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/declaration.js +0 -118
- package/my_template/node_modules/less/lib/less/tree/declaration.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/detached-ruleset.js +0 -47
- package/my_template/node_modules/less/lib/less/tree/detached-ruleset.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/dimension.js +0 -159
- package/my_template/node_modules/less/lib/less/tree/dimension.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/element.js +0 -64
- package/my_template/node_modules/less/lib/less/tree/element.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/expression.js +0 -90
- package/my_template/node_modules/less/lib/less/tree/expression.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/extend.js +0 -62
- package/my_template/node_modules/less/lib/less/tree/extend.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/import.js +0 -191
- package/my_template/node_modules/less/lib/less/tree/import.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/index.js +0 -56
- package/my_template/node_modules/less/lib/less/tree/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/javascript.js +0 -35
- package/my_template/node_modules/less/lib/less/tree/javascript.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/js-eval-node.js +0 -57
- package/my_template/node_modules/less/lib/less/tree/js-eval-node.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/keyword.js +0 -21
- package/my_template/node_modules/less/lib/less/tree/keyword.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/media.js +0 -152
- package/my_template/node_modules/less/lib/less/tree/media.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/mixin-call.js +0 -194
- package/my_template/node_modules/less/lib/less/tree/mixin-call.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/mixin-definition.js +0 -233
- package/my_template/node_modules/less/lib/less/tree/mixin-definition.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/namespace-value.js +0 -76
- package/my_template/node_modules/less/lib/less/tree/namespace-value.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/negative.js +0 -25
- package/my_template/node_modules/less/lib/less/tree/negative.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/node.js +0 -166
- package/my_template/node_modules/less/lib/less/tree/node.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/operation.js +0 -77
- package/my_template/node_modules/less/lib/less/tree/operation.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/paren.js +0 -21
- package/my_template/node_modules/less/lib/less/tree/paren.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/property.js +0 -62
- package/my_template/node_modules/less/lib/less/tree/property.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/quoted.js +0 -66
- package/my_template/node_modules/less/lib/less/tree/quoted.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/ruleset.js +0 -786
- package/my_template/node_modules/less/lib/less/tree/ruleset.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/selector.js +0 -126
- package/my_template/node_modules/less/lib/less/tree/selector.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/unicode-descriptor.js +0 -13
- package/my_template/node_modules/less/lib/less/tree/unicode-descriptor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/unit.js +0 -141
- package/my_template/node_modules/less/lib/less/tree/unit.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/url.js +0 -60
- package/my_template/node_modules/less/lib/less/tree/url.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/value.js +0 -43
- package/my_template/node_modules/less/lib/less/tree/value.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/variable-call.js +0 -44
- package/my_template/node_modules/less/lib/less/tree/variable-call.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/variable.js +0 -61
- package/my_template/node_modules/less/lib/less/tree/variable.js.map +0 -1
- package/my_template/node_modules/less/lib/less/utils.js +0 -143
- package/my_template/node_modules/less/lib/less/utils.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/extend-visitor.js +0 -462
- package/my_template/node_modules/less/lib/less/visitors/extend-visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/import-sequencer.js +0 -61
- package/my_template/node_modules/less/lib/less/visitors/import-sequencer.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/import-visitor.js +0 -202
- package/my_template/node_modules/less/lib/less/visitors/import-visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/index.js +0 -20
- package/my_template/node_modules/less/lib/less/visitors/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/join-selector-visitor.js +0 -57
- package/my_template/node_modules/less/lib/less/visitors/join-selector-visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/set-tree-visibility-visitor.js +0 -43
- package/my_template/node_modules/less/lib/less/visitors/set-tree-visibility-visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/to-css-visitor.js +0 -321
- package/my_template/node_modules/less/lib/less/visitors/to-css-visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/visitor.js +0 -158
- package/my_template/node_modules/less/lib/less/visitors/visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/add-default-options.js +0 -45
- package/my_template/node_modules/less/lib/less-browser/add-default-options.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/bootstrap.js +0 -64
- package/my_template/node_modules/less/lib/less-browser/bootstrap.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/browser.js +0 -80
- package/my_template/node_modules/less/lib/less-browser/browser.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/cache.js +0 -45
- package/my_template/node_modules/less/lib/less-browser/cache.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/error-reporting.js +0 -183
- package/my_template/node_modules/less/lib/less-browser/error-reporting.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/file-manager.js +0 -122
- package/my_template/node_modules/less/lib/less-browser/file-manager.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/image-size.js +0 -30
- package/my_template/node_modules/less/lib/less-browser/image-size.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/index.js +0 -256
- package/my_template/node_modules/less/lib/less-browser/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/log-listener.js +0 -43
- package/my_template/node_modules/less/lib/less-browser/log-listener.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/plugin-loader.js +0 -42
- package/my_template/node_modules/less/lib/less-browser/plugin-loader.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/utils.js +0 -29
- package/my_template/node_modules/less/lib/less-browser/utils.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/environment.js +0 -19
- package/my_template/node_modules/less/lib/less-node/environment.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/file-manager.js +0 -158
- package/my_template/node_modules/less/lib/less-node/file-manager.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/fs.js +0 -11
- package/my_template/node_modules/less/lib/less-node/fs.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/image-size.js +0 -54
- package/my_template/node_modules/less/lib/less-node/image-size.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/index.js +0 -28
- package/my_template/node_modules/less/lib/less-node/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/lessc-helper.js +0 -92
- package/my_template/node_modules/less/lib/less-node/lessc-helper.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/plugin-loader.js +0 -73
- package/my_template/node_modules/less/lib/less-node/plugin-loader.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/url-file-manager.js +0 -68
- package/my_template/node_modules/less/lib/less-node/url-file-manager.js.map +0 -1
- package/my_template/node_modules/less/package.json +0 -133
- package/my_template/node_modules/less/test/.eslintrc.json +0 -9
- package/my_template/node_modules/less/test/README.md +0 -3
- package/my_template/node_modules/less/test/browser/common.js +0 -230
- package/my_template/node_modules/less/test/browser/css/global-vars/simple.css +0 -3
- package/my_template/node_modules/less/test/browser/css/modify-vars/simple.css +0 -8
- package/my_template/node_modules/less/test/browser/css/plugin/plugin.css +0 -3
- package/my_template/node_modules/less/test/browser/css/postProcessor/postProcessor.css +0 -4
- package/my_template/node_modules/less/test/browser/css/relative-urls/urls.css +0 -36
- package/my_template/node_modules/less/test/browser/css/rewrite-urls/urls.css +0 -36
- package/my_template/node_modules/less/test/browser/css/rootpath/urls.css +0 -35
- package/my_template/node_modules/less/test/browser/css/rootpath-relative/urls.css +0 -35
- package/my_template/node_modules/less/test/browser/css/rootpath-rewrite-urls/urls.css +0 -35
- package/my_template/node_modules/less/test/browser/css/urls.css +0 -54
- package/my_template/node_modules/less/test/browser/generator/benchmark.config.js +0 -50
- package/my_template/node_modules/less/test/browser/generator/generate.js +0 -78
- package/my_template/node_modules/less/test/browser/generator/runner.config.js +0 -186
- package/my_template/node_modules/less/test/browser/generator/runner.js +0 -2
- package/my_template/node_modules/less/test/browser/generator/template.js +0 -83
- package/my_template/node_modules/less/test/browser/less/console-errors/test-error.less +0 -3
- package/my_template/node_modules/less/test/browser/less/console-errors/test-error.txt +0 -2
- package/my_template/node_modules/less/test/browser/less/errors/image-height-error.less +0 -3
- package/my_template/node_modules/less/test/browser/less/errors/image-height-error.txt +0 -4
- package/my_template/node_modules/less/test/browser/less/errors/image-size-error.less +0 -3
- package/my_template/node_modules/less/test/browser/less/errors/image-size-error.txt +0 -4
- package/my_template/node_modules/less/test/browser/less/errors/image-width-error.less +0 -3
- package/my_template/node_modules/less/test/browser/less/errors/image-width-error.txt +0 -4
- package/my_template/node_modules/less/test/browser/less/global-vars/simple.less +0 -3
- package/my_template/node_modules/less/test/browser/less/imports/urls.less +0 -4
- package/my_template/node_modules/less/test/browser/less/imports/urls2.less +0 -4
- package/my_template/node_modules/less/test/browser/less/modify-vars/imports/simple2.less +0 -4
- package/my_template/node_modules/less/test/browser/less/modify-vars/simple.less +0 -8
- package/my_template/node_modules/less/test/browser/less/nested-gradient-with-svg-gradient/mixin-consumer.less +0 -5
- package/my_template/node_modules/less/test/browser/less/nested-gradient-with-svg-gradient/svg-gradient-mixin.less +0 -15
- package/my_template/node_modules/less/test/browser/less/plugin/plugin.js +0 -4
- package/my_template/node_modules/less/test/browser/less/plugin/plugin.less +0 -4
- package/my_template/node_modules/less/test/browser/less/postProcessor/postProcessor.less +0 -4
- package/my_template/node_modules/less/test/browser/less/relative-urls/urls.less +0 -34
- package/my_template/node_modules/less/test/browser/less/rewrite-urls/urls.less +0 -34
- package/my_template/node_modules/less/test/browser/less/rootpath/urls.less +0 -33
- package/my_template/node_modules/less/test/browser/less/rootpath-relative/urls.less +0 -33
- package/my_template/node_modules/less/test/browser/less/rootpath-rewrite-urls/urls.less +0 -33
- package/my_template/node_modules/less/test/browser/less/urls.less +0 -62
- package/my_template/node_modules/less/test/browser/runner-VisitorPlugin-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-VisitorPlugin.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-browser-options.js +0 -51
- package/my_template/node_modules/less/test/browser/runner-browser-spec.js +0 -12
- package/my_template/node_modules/less/test/browser/runner-console-errors.js +0 -5
- package/my_template/node_modules/less/test/browser/runner-errors-options.js +0 -6
- package/my_template/node_modules/less/test/browser/runner-errors-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-filemanagerPlugin-options.js +0 -5
- package/my_template/node_modules/less/test/browser/runner-filemanagerPlugin.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-global-vars-options.js +0 -7
- package/my_template/node_modules/less/test/browser/runner-global-vars-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-legacy-options.js +0 -6
- package/my_template/node_modules/less/test/browser/runner-legacy-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-main-options.js +0 -17
- package/my_template/node_modules/less/test/browser/runner-main-spec.js +0 -7
- package/my_template/node_modules/less/test/browser/runner-modify-vars-options.js +0 -5
- package/my_template/node_modules/less/test/browser/runner-modify-vars-spec.js +0 -33
- package/my_template/node_modules/less/test/browser/runner-no-js-errors-options.js +0 -4
- package/my_template/node_modules/less/test/browser/runner-no-js-errors-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-postProcessorPlugin-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-postProcessorPlugin.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-preProcessorPlugin-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-preProcessorPlugin.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-production-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-production-spec.js +0 -5
- package/my_template/node_modules/less/test/browser/runner-relative-urls-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-relative-urls-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rewrite-urls-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rewrite-urls-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rootpath-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rootpath-relative-options.js +0 -4
- package/my_template/node_modules/less/test/browser/runner-rootpath-relative-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rootpath-rewrite-urls-options.js +0 -4
- package/my_template/node_modules/less/test/browser/runner-rootpath-rewrite-urls-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rootpath-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-strict-units-options.js +0 -5
- package/my_template/node_modules/less/test/browser/runner-strict-units-spec.js +0 -3
- package/my_template/node_modules/less/test/index.js +0 -89
- package/my_template/node_modules/less/test/less-test.js +0 -535
- package/my_template/node_modules/less/test/modify-vars.js +0 -28
- package/my_template/node_modules/less/test/plugins/filemanager/index.js +0 -19
- package/my_template/node_modules/less/test/plugins/postprocess/index.js +0 -14
- package/my_template/node_modules/less/test/plugins/preprocess/index.js +0 -19
- package/my_template/node_modules/less/test/plugins/visitor/index.js +0 -24
- package/my_template/node_modules/less/test/sourcemaps/basic.json +0 -1
- package/my_template/node_modules/less/test/sourcemaps/custom-props.json +0 -1
- package/my_template/node_modules/less/test/sourcemaps/index.html +0 -17
- package/my_template/node_modules/less/test/sourcemaps-disable-annotation/basic.json +0 -1
- package/my_template/node_modules/less/test/test-es6.ts +0 -17
- package/my_template/node_modules/less/tsconfig.json +0 -13
- package/my_template/node_modules/less-plugin-clean-css/LICENSE +0 -201
- package/my_template/node_modules/less-plugin-clean-css/README.md +0 -33
- package/my_template/node_modules/less-plugin-clean-css/lib/clean-css-processor.js +0 -63
- package/my_template/node_modules/less-plugin-clean-css/lib/index.js +0 -23
- package/my_template/node_modules/less-plugin-clean-css/lib/parse-options.js +0 -61
- package/my_template/node_modules/less-plugin-clean-css/lib/usage.js +0 -19
- package/my_template/node_modules/less-plugin-clean-css/package.json +0 -39
- package/my_template/node_modules/make-dir/index.d.ts +0 -39
- package/my_template/node_modules/make-dir/index.js +0 -139
- package/my_template/node_modules/make-dir/license +0 -9
- package/my_template/node_modules/make-dir/package.json +0 -59
- package/my_template/node_modules/make-dir/readme.md +0 -123
- package/my_template/node_modules/merge-stream/LICENSE +0 -21
- package/my_template/node_modules/merge-stream/README.md +0 -78
- package/my_template/node_modules/merge-stream/index.js +0 -41
- package/my_template/node_modules/merge-stream/package.json +0 -19
- package/my_template/node_modules/mime/CHANGELOG.md +0 -164
- package/my_template/node_modules/mime/LICENSE +0 -21
- package/my_template/node_modules/mime/README.md +0 -90
- package/my_template/node_modules/mime/cli.js +0 -8
- package/my_template/node_modules/mime/mime.js +0 -108
- package/my_template/node_modules/mime/package.json +0 -44
- package/my_template/node_modules/mime/src/build.js +0 -53
- package/my_template/node_modules/mime/src/test.js +0 -60
- package/my_template/node_modules/mime/types.json +0 -1
- package/my_template/node_modules/native-request/README.md +0 -184
- package/my_template/node_modules/native-request/commons/jsonToParameter.js +0 -14
- package/my_template/node_modules/native-request/index.js +0 -65
- package/my_template/node_modules/native-request/lib/Request.js +0 -144
- package/my_template/node_modules/native-request/package.json +0 -45
- package/my_template/node_modules/native-request/test/express.get.cookies.js +0 -58
- package/my_template/node_modules/native-request/test/express.get.js +0 -146
- package/my_template/node_modules/native-request/test/express.post.cookies.js +0 -59
- package/my_template/node_modules/native-request/test/express.post.js +0 -148
- package/my_template/node_modules/native-request/test/get.cookies.js +0 -72
- package/my_template/node_modules/native-request/test/get.js +0 -140
- package/my_template/node_modules/native-request/test/post.cookies.js +0 -72
- package/my_template/node_modules/native-request/test/post.js +0 -155
- package/my_template/node_modules/path-parse/LICENSE +0 -21
- package/my_template/node_modules/path-parse/README.md +0 -42
- package/my_template/node_modules/path-parse/index.js +0 -75
- package/my_template/node_modules/path-parse/package.json +0 -33
- package/my_template/node_modules/pify/index.js +0 -68
- package/my_template/node_modules/pify/license +0 -9
- package/my_template/node_modules/pify/package.json +0 -51
- package/my_template/node_modules/pify/readme.md +0 -145
- package/my_template/node_modules/prr/.jshintrc +0 -61
- package/my_template/node_modules/prr/.travis.yml +0 -10
- package/my_template/node_modules/prr/LICENSE.md +0 -11
- package/my_template/node_modules/prr/README.md +0 -47
- package/my_template/node_modules/prr/package.json +0 -26
- package/my_template/node_modules/prr/prr.js +0 -63
- package/my_template/node_modules/prr/test.js +0 -169
- package/my_template/node_modules/resolve/.editorconfig +0 -37
- package/my_template/node_modules/resolve/.eslintrc +0 -65
- package/my_template/node_modules/resolve/.github/FUNDING.yml +0 -12
- package/my_template/node_modules/resolve/LICENSE +0 -21
- package/my_template/node_modules/resolve/SECURITY.md +0 -3
- package/my_template/node_modules/resolve/async.js +0 -3
- package/my_template/node_modules/resolve/bin/resolve +0 -50
- package/my_template/node_modules/resolve/example/async.js +0 -5
- package/my_template/node_modules/resolve/example/sync.js +0 -3
- package/my_template/node_modules/resolve/index.js +0 -6
- package/my_template/node_modules/resolve/lib/async.js +0 -329
- package/my_template/node_modules/resolve/lib/caller.js +0 -8
- package/my_template/node_modules/resolve/lib/core.js +0 -12
- package/my_template/node_modules/resolve/lib/core.json +0 -158
- package/my_template/node_modules/resolve/lib/homedir.js +0 -24
- package/my_template/node_modules/resolve/lib/is-core.js +0 -5
- package/my_template/node_modules/resolve/lib/node-modules-paths.js +0 -42
- package/my_template/node_modules/resolve/lib/normalize-options.js +0 -10
- package/my_template/node_modules/resolve/lib/sync.js +0 -208
- package/my_template/node_modules/resolve/package.json +0 -72
- package/my_template/node_modules/resolve/readme.markdown +0 -301
- package/my_template/node_modules/resolve/sync.js +0 -3
- package/my_template/node_modules/resolve/test/core.js +0 -88
- package/my_template/node_modules/resolve/test/dotdot/abc/index.js +0 -2
- package/my_template/node_modules/resolve/test/dotdot/index.js +0 -1
- package/my_template/node_modules/resolve/test/dotdot.js +0 -29
- package/my_template/node_modules/resolve/test/faulty_basedir.js +0 -29
- package/my_template/node_modules/resolve/test/filter.js +0 -34
- package/my_template/node_modules/resolve/test/filter_sync.js +0 -33
- package/my_template/node_modules/resolve/test/home_paths.js +0 -127
- package/my_template/node_modules/resolve/test/home_paths_sync.js +0 -114
- package/my_template/node_modules/resolve/test/mock.js +0 -315
- package/my_template/node_modules/resolve/test/mock_sync.js +0 -214
- package/my_template/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +0 -1
- package/my_template/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +0 -1
- package/my_template/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +0 -1
- package/my_template/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +0 -3
- package/my_template/node_modules/resolve/test/module_dir.js +0 -56
- package/my_template/node_modules/resolve/test/node-modules-paths.js +0 -143
- package/my_template/node_modules/resolve/test/node_path/x/aaa/index.js +0 -1
- package/my_template/node_modules/resolve/test/node_path/x/ccc/index.js +0 -1
- package/my_template/node_modules/resolve/test/node_path/y/bbb/index.js +0 -1
- package/my_template/node_modules/resolve/test/node_path/y/ccc/index.js +0 -1
- package/my_template/node_modules/resolve/test/node_path.js +0 -70
- package/my_template/node_modules/resolve/test/nonstring.js +0 -9
- package/my_template/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- package/my_template/node_modules/resolve/test/pathfilter.js +0 -75
- package/my_template/node_modules/resolve/test/precedence/aaa/index.js +0 -1
- package/my_template/node_modules/resolve/test/precedence/aaa/main.js +0 -1
- package/my_template/node_modules/resolve/test/precedence/aaa.js +0 -1
- package/my_template/node_modules/resolve/test/precedence/bbb/main.js +0 -1
- package/my_template/node_modules/resolve/test/precedence/bbb.js +0 -1
- package/my_template/node_modules/resolve/test/precedence.js +0 -23
- package/my_template/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/baz/package.json +0 -4
- package/my_template/node_modules/resolve/test/resolver/baz/quux.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/browser_field/package.json +0 -5
- package/my_template/node_modules/resolve/test/resolver/cup.coffee +0 -1
- package/my_template/node_modules/resolve/test/resolver/dot_main/index.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/dot_main/package.json +0 -3
- package/my_template/node_modules/resolve/test/resolver/dot_slash_main/index.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/dot_slash_main/package.json +0 -3
- package/my_template/node_modules/resolve/test/resolver/false_main/index.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/false_main/package.json +0 -4
- package/my_template/node_modules/resolve/test/resolver/foo.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/incorrect_main/index.js +0 -2
- package/my_template/node_modules/resolve/test/resolver/incorrect_main/package.json +0 -3
- package/my_template/node_modules/resolve/test/resolver/invalid_main/package.json +0 -7
- package/my_template/node_modules/resolve/test/resolver/mug.coffee +0 -0
- package/my_template/node_modules/resolve/test/resolver/mug.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/multirepo/lerna.json +0 -6
- package/my_template/node_modules/resolve/test/resolver/multirepo/package.json +0 -20
- package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +0 -35
- package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +0 -14
- package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +0 -14
- package/my_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +0 -26
- package/my_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +0 -15
- package/my_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +0 -12
- package/my_template/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/quux/foo/index.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/same_names/foo/index.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/same_names/foo.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
- package/my_template/node_modules/resolve/test/resolver/symlinked/package/bar.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/symlinked/package/package.json +0 -3
- package/my_template/node_modules/resolve/test/resolver/without_basedir/main.js +0 -5
- package/my_template/node_modules/resolve/test/resolver.js +0 -597
- package/my_template/node_modules/resolve/test/resolver_sync.js +0 -730
- package/my_template/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
- package/my_template/node_modules/resolve/test/shadowed_core.js +0 -54
- package/my_template/node_modules/resolve/test/subdirs.js +0 -13
- package/my_template/node_modules/resolve/test/symlinks.js +0 -176
- package/my_template/node_modules/rollup/CHANGELOG.md +0 -3084
- package/my_template/node_modules/rollup/LICENSE.md +0 -578
- package/my_template/node_modules/rollup/README.md +0 -138
- package/my_template/node_modules/rollup/dist/bin/rollup +0 -1457
- package/my_template/node_modules/rollup/dist/rollup.browser.es.js +0 -25
- package/my_template/node_modules/rollup/dist/rollup.browser.js +0 -26
- package/my_template/node_modules/rollup/dist/rollup.d.ts +0 -656
- package/my_template/node_modules/rollup/dist/rollup.es.js +0 -17493
- package/my_template/node_modules/rollup/dist/rollup.js +0 -29
- package/my_template/node_modules/rollup/dist/shared/index.js +0 -321
- package/my_template/node_modules/rollup/dist/shared/node-entry.js +0 -17504
- package/my_template/node_modules/rollup/package.json +0 -139
- package/my_template/node_modules/rollup-plugin-node-resolve/CHANGELOG.md +0 -195
- package/my_template/node_modules/rollup-plugin-node-resolve/README.md +0 -135
- package/my_template/node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.cjs.js +0 -425
- package/my_template/node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.es.js +0 -421
- package/my_template/node_modules/rollup-plugin-node-resolve/index.d.ts +0 -100
- package/my_template/node_modules/rollup-plugin-node-resolve/package.json +0 -60
- package/my_template/node_modules/rollup-plugin-node-resolve/src/index.js +0 -358
- package/my_template/node_modules/rollup-plugin-uglify/LICENSE +0 -20
- package/my_template/node_modules/rollup-plugin-uglify/README.md +0 -84
- package/my_template/node_modules/rollup-plugin-uglify/index.js +0 -51
- package/my_template/node_modules/rollup-plugin-uglify/package.json +0 -43
- package/my_template/node_modules/rollup-plugin-uglify/transform.js +0 -13
- package/my_template/node_modules/rollup-pluginutils/CHANGELOG.md +0 -125
- package/my_template/node_modules/rollup-pluginutils/README.md +0 -169
- package/my_template/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js +0 -3292
- package/my_template/node_modules/rollup-pluginutils/dist/pluginutils.d.ts +0 -39
- package/my_template/node_modules/rollup-pluginutils/dist/pluginutils.es.js +0 -3280
- package/my_template/node_modules/rollup-pluginutils/package.json +0 -57
- package/my_template/node_modules/rollup-pluginutils/src/addExtension.ts +0 -9
- package/my_template/node_modules/rollup-pluginutils/src/attachScopes.ts +0 -125
- package/my_template/node_modules/rollup-pluginutils/src/createFilter.ts +0 -52
- package/my_template/node_modules/rollup-pluginutils/src/dataToEsm.ts +0 -92
- package/my_template/node_modules/rollup-pluginutils/src/extractAssignedNames.ts +0 -46
- package/my_template/node_modules/rollup-pluginutils/src/index.ts +0 -6
- package/my_template/node_modules/rollup-pluginutils/src/makeLegalIdentifier.ts +0 -21
- package/my_template/node_modules/rollup-pluginutils/src/pluginutils.d.ts +0 -39
- package/my_template/node_modules/rollup-pluginutils/src/utils/ensureArray.ts +0 -5
- package/my_template/node_modules/semver/LICENSE +0 -15
- package/my_template/node_modules/semver/README.md +0 -412
- package/my_template/node_modules/semver/bin/semver +0 -160
- package/my_template/node_modules/semver/package.json +0 -38
- package/my_template/node_modules/semver/range.bnf +0 -16
- package/my_template/node_modules/semver/semver.js +0 -1525
- package/my_template/node_modules/serialize-javascript/LICENSE +0 -27
- package/my_template/node_modules/serialize-javascript/README.md +0 -143
- package/my_template/node_modules/serialize-javascript/index.js +0 -210
- package/my_template/node_modules/serialize-javascript/package.json +0 -33
- package/my_template/node_modules/source-map/CHANGELOG.md +0 -301
- package/my_template/node_modules/source-map/LICENSE +0 -28
- package/my_template/node_modules/source-map/README.md +0 -742
- package/my_template/node_modules/source-map/dist/source-map.debug.js +0 -3234
- package/my_template/node_modules/source-map/dist/source-map.js +0 -3233
- package/my_template/node_modules/source-map/dist/source-map.min.js +0 -2
- package/my_template/node_modules/source-map/dist/source-map.min.js.map +0 -1
- package/my_template/node_modules/source-map/lib/array-set.js +0 -121
- package/my_template/node_modules/source-map/lib/base64-vlq.js +0 -140
- package/my_template/node_modules/source-map/lib/base64.js +0 -67
- package/my_template/node_modules/source-map/lib/binary-search.js +0 -111
- package/my_template/node_modules/source-map/lib/mapping-list.js +0 -79
- package/my_template/node_modules/source-map/lib/quick-sort.js +0 -114
- package/my_template/node_modules/source-map/lib/source-map-consumer.js +0 -1145
- package/my_template/node_modules/source-map/lib/source-map-generator.js +0 -425
- package/my_template/node_modules/source-map/lib/source-node.js +0 -413
- package/my_template/node_modules/source-map/lib/util.js +0 -488
- package/my_template/node_modules/source-map/package.json +0 -73
- package/my_template/node_modules/source-map/source-map.d.ts +0 -98
- package/my_template/node_modules/source-map/source-map.js +0 -8
- package/my_template/node_modules/supports-color/browser.js +0 -5
- package/my_template/node_modules/supports-color/index.js +0 -131
- package/my_template/node_modules/supports-color/license +0 -9
- package/my_template/node_modules/supports-color/package.json +0 -53
- package/my_template/node_modules/supports-color/readme.md +0 -66
- package/my_template/node_modules/supports-preserve-symlinks-flag/.eslintrc +0 -14
- package/my_template/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +0 -12
- package/my_template/node_modules/supports-preserve-symlinks-flag/.nycrc +0 -9
- package/my_template/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +0 -22
- package/my_template/node_modules/supports-preserve-symlinks-flag/LICENSE +0 -21
- package/my_template/node_modules/supports-preserve-symlinks-flag/README.md +0 -42
- package/my_template/node_modules/supports-preserve-symlinks-flag/browser.js +0 -3
- package/my_template/node_modules/supports-preserve-symlinks-flag/index.js +0 -9
- package/my_template/node_modules/supports-preserve-symlinks-flag/package.json +0 -70
- package/my_template/node_modules/supports-preserve-symlinks-flag/test/index.js +0 -29
- package/my_template/node_modules/tslib/CopyrightNotice.txt +0 -15
- package/my_template/node_modules/tslib/LICENSE.txt +0 -12
- package/my_template/node_modules/tslib/README.md +0 -142
- package/my_template/node_modules/tslib/modules/index.js +0 -51
- package/my_template/node_modules/tslib/modules/package.json +0 -3
- package/my_template/node_modules/tslib/package.json +0 -37
- package/my_template/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +0 -23
- package/my_template/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +0 -6
- package/my_template/node_modules/tslib/tslib.d.ts +0 -37
- package/my_template/node_modules/tslib/tslib.es6.html +0 -1
- package/my_template/node_modules/tslib/tslib.es6.js +0 -218
- package/my_template/node_modules/tslib/tslib.html +0 -1
- package/my_template/node_modules/tslib/tslib.js +0 -284
- package/my_template/node_modules/uglify-js/LICENSE +0 -29
- package/my_template/node_modules/uglify-js/README.md +0 -1478
- package/my_template/node_modules/uglify-js/bin/uglifyjs +0 -605
- package/my_template/node_modules/uglify-js/lib/ast.js +0 -2356
- package/my_template/node_modules/uglify-js/lib/compress.js +0 -14241
- package/my_template/node_modules/uglify-js/lib/minify.js +0 -276
- package/my_template/node_modules/uglify-js/lib/mozilla-ast.js +0 -1310
- package/my_template/node_modules/uglify-js/lib/output.js +0 -1956
- package/my_template/node_modules/uglify-js/lib/parse.js +0 -2585
- package/my_template/node_modules/uglify-js/lib/propmangle.js +0 -328
- package/my_template/node_modules/uglify-js/lib/scope.js +0 -866
- package/my_template/node_modules/uglify-js/lib/sourcemap.js +0 -195
- package/my_template/node_modules/uglify-js/lib/transform.js +0 -250
- package/my_template/node_modules/uglify-js/lib/utils.js +0 -287
- package/my_template/node_modules/uglify-js/package.json +0 -56
- package/my_template/node_modules/uglify-js/tools/domprops.html +0 -456
- package/my_template/node_modules/uglify-js/tools/domprops.json +0 -8325
- package/my_template/node_modules/uglify-js/tools/exports.js +0 -8
- package/my_template/node_modules/uglify-js/tools/node.js +0 -110
- package/my_template/node_modules/uglify-js/tools/tty.js +0 -22
- package/my_template/node_modules/undici-types/README.md +0 -6
- package/my_template/node_modules/undici-types/agent.d.ts +0 -31
- package/my_template/node_modules/undici-types/api.d.ts +0 -43
- package/my_template/node_modules/undici-types/balanced-pool.d.ts +0 -18
- package/my_template/node_modules/undici-types/cache.d.ts +0 -36
- package/my_template/node_modules/undici-types/client.d.ts +0 -97
- package/my_template/node_modules/undici-types/connector.d.ts +0 -34
- package/my_template/node_modules/undici-types/content-type.d.ts +0 -21
- package/my_template/node_modules/undici-types/cookies.d.ts +0 -28
- package/my_template/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
- package/my_template/node_modules/undici-types/dispatcher.d.ts +0 -241
- package/my_template/node_modules/undici-types/errors.d.ts +0 -128
- package/my_template/node_modules/undici-types/fetch.d.ts +0 -209
- package/my_template/node_modules/undici-types/file.d.ts +0 -39
- package/my_template/node_modules/undici-types/filereader.d.ts +0 -54
- package/my_template/node_modules/undici-types/formdata.d.ts +0 -108
- package/my_template/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/my_template/node_modules/undici-types/global-origin.d.ts +0 -7
- package/my_template/node_modules/undici-types/handlers.d.ts +0 -9
- package/my_template/node_modules/undici-types/header.d.ts +0 -4
- package/my_template/node_modules/undici-types/index.d.ts +0 -63
- package/my_template/node_modules/undici-types/interceptors.d.ts +0 -5
- package/my_template/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/my_template/node_modules/undici-types/mock-client.d.ts +0 -25
- package/my_template/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/my_template/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/my_template/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/my_template/node_modules/undici-types/package.json +0 -55
- package/my_template/node_modules/undici-types/patch.d.ts +0 -71
- package/my_template/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/my_template/node_modules/undici-types/pool.d.ts +0 -28
- package/my_template/node_modules/undici-types/proxy-agent.d.ts +0 -30
- package/my_template/node_modules/undici-types/readable.d.ts +0 -61
- package/my_template/node_modules/undici-types/webidl.d.ts +0 -220
- package/my_template/node_modules/undici-types/websocket.d.ts +0 -131
- package/server/columns.js +0 -201
- package/server/json.js +0 -67
- package/site/images/logo_white.png +0 -0
package/server/index.js
CHANGED
|
@@ -52,12 +52,12 @@ function loadFile(path_parts, options) {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
function succeed(result) {
|
|
55
|
-
if (!options.silentSuccess) log.success(`Loaded ${filename}`);
|
|
55
|
+
if (!options.silentSuccess) { log.success(`Loaded ${filename}`); }
|
|
56
56
|
resolve(result);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
fs.readFile(file_path, "utf8", function(error, loaded_text) {
|
|
60
|
-
if (error) return fail(`Failed to load ${file_path}`, error);
|
|
60
|
+
if (error) { return fail(`Failed to load ${file_path}`, error); }
|
|
61
61
|
switch (options.type) {
|
|
62
62
|
case "json":
|
|
63
63
|
try { return succeed(JSON.parse(loaded_text)); }
|
|
@@ -86,8 +86,8 @@ function loadSDKTemplate() {
|
|
|
86
86
|
function loadTemplateText(template_dir) {
|
|
87
87
|
return loadFile([template_dir, "index.html"], {
|
|
88
88
|
default: () => loadFile([__dirname, "views", "default_template_index.html"], {
|
|
89
|
-
silentSuccess: true
|
|
90
|
-
})
|
|
89
|
+
silentSuccess: true,
|
|
90
|
+
}),
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -96,20 +96,20 @@ function loadJavaScript(template_dir) {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
function loadSettings(template_dir) {
|
|
99
|
-
return sdk.readAndValidateConfig(template_dir).then(({config}) => config);
|
|
99
|
+
return sdk.readAndValidateConfig(template_dir).then(({ config }) => config);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
function listDataTables(template_dir) {
|
|
103
103
|
return new Promise(function(resolve, reject) {
|
|
104
104
|
fs.readdir(path.join(template_dir, "data"), function(error, filenames) {
|
|
105
105
|
if (error) {
|
|
106
|
-
if (error.code === "ENOENT") return resolve([]);
|
|
106
|
+
if (error.code === "ENOENT") { return resolve([]); }
|
|
107
107
|
return reject(error);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
const data_files = [];
|
|
111
111
|
for (let filename of filenames) {
|
|
112
|
-
if (!filename.endsWith(".csv")) continue;
|
|
112
|
+
if (!filename.endsWith(".csv")) { continue; }
|
|
113
113
|
|
|
114
114
|
var name = filename.substr(0, filename.length - 4);
|
|
115
115
|
data_files.push(name);
|
|
@@ -145,8 +145,8 @@ function getDataTable(template_dir, data_table) {
|
|
|
145
145
|
last_updated: new Date(last_updated),
|
|
146
146
|
};
|
|
147
147
|
fs.readFile(filename, "utf8", function(error, csv_text) {
|
|
148
|
-
if (error) return reject(error);
|
|
149
|
-
if (csv_text.charAt(0) === "\uFEFF") csv_text = csv_text.substr(1);
|
|
148
|
+
if (error) { return reject(error); }
|
|
149
|
+
if (csv_text.charAt(0) === "\uFEFF") { csv_text = csv_text.substr(1); }
|
|
150
150
|
resolve({
|
|
151
151
|
data: d3_dsv.csvParseRows(csv_text),
|
|
152
152
|
timestamps,
|
|
@@ -158,30 +158,30 @@ function getDataTable(template_dir, data_table) {
|
|
|
158
158
|
function parseDataBindings(data_bindings, data_tables) {
|
|
159
159
|
if (!data_bindings) {
|
|
160
160
|
return {
|
|
161
|
-
data_bindings: {1: {}},
|
|
162
|
-
template_data_bindings: {1: {}}
|
|
161
|
+
data_bindings: { 1: {} },
|
|
162
|
+
template_data_bindings: { 1: {} },
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
// Use the names as ids
|
|
167
167
|
const name_by_id = {};
|
|
168
|
-
for (let name of data_tables) name_by_id[name] = name;
|
|
168
|
+
for (let name of data_tables) { name_by_id[name] = name; }
|
|
169
169
|
|
|
170
170
|
// Collect parsed bindings by dataset
|
|
171
171
|
const data_bindings_by_dataset = {};
|
|
172
172
|
const template_data_bindings_by_dataset = {};
|
|
173
173
|
for (let binding of data_bindings) {
|
|
174
174
|
let dataset = binding.dataset;
|
|
175
|
-
if (!dataset) continue;
|
|
175
|
+
if (!dataset) { continue; }
|
|
176
176
|
|
|
177
|
-
if (!data_bindings_by_dataset[dataset]) data_bindings_by_dataset[dataset] = {};
|
|
178
|
-
if (!template_data_bindings_by_dataset[dataset]) template_data_bindings_by_dataset[dataset] = {};
|
|
177
|
+
if (!data_bindings_by_dataset[dataset]) { data_bindings_by_dataset[dataset] = {}; }
|
|
178
|
+
if (!template_data_bindings_by_dataset[dataset]) { template_data_bindings_by_dataset[dataset] = {}; }
|
|
179
179
|
template_data_bindings_by_dataset[dataset][binding.key] = binding;
|
|
180
180
|
data_bindings_by_dataset[dataset][binding.key] = columns.parseDataBinding(binding, name_by_id);
|
|
181
181
|
}
|
|
182
182
|
return {
|
|
183
183
|
data_bindings: { 1: data_bindings_by_dataset },
|
|
184
|
-
template_data_bindings: { 1: template_data_bindings_by_dataset }
|
|
184
|
+
template_data_bindings: { 1: template_data_bindings_by_dataset },
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
187
|
|
|
@@ -203,7 +203,6 @@ function scriptElementExternal(url) {
|
|
|
203
203
|
return TA.createElement("script", "http://www.w3.org/1999/xhtml", [{ name: "src", value: url }]);
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
|
|
207
206
|
function loadTemplate(template_dir, sdk_template, build_failed, options) {
|
|
208
207
|
return Promise.all([
|
|
209
208
|
listDataTables(template_dir),
|
|
@@ -216,12 +215,12 @@ function loadTemplate(template_dir, sdk_template, build_failed, options) {
|
|
|
216
215
|
previewInitJs(template_dir, template_data_bindings["1"], data_bindings["1"], data_tables),
|
|
217
216
|
loadTemplateText(template_dir),
|
|
218
217
|
loadJavaScript(template_dir),
|
|
219
|
-
getPublicUrlPrefix(options)
|
|
218
|
+
getPublicUrlPrefix(options),
|
|
220
219
|
]);
|
|
221
220
|
})
|
|
222
221
|
.then(([
|
|
223
222
|
settings, data_bindings, data_tables,
|
|
224
|
-
preview_init_js, template_text, template_js, public_url_prefix
|
|
223
|
+
preview_init_js, template_text, template_js, public_url_prefix,
|
|
225
224
|
]) => {
|
|
226
225
|
const page_params = {
|
|
227
226
|
// Always use ID of 1 for SDK
|
|
@@ -229,7 +228,7 @@ function loadTemplate(template_dir, sdk_template, build_failed, options) {
|
|
|
229
228
|
visualisation_js: "new Flourish.Visualisation('1', 0," + json.safeStringify({
|
|
230
229
|
data_bindings: data_bindings,
|
|
231
230
|
data_tables: data_tables,
|
|
232
|
-
template_store_key: settings.name.toLowerCase().replace(" ", "") + "@" + settings.version
|
|
231
|
+
template_store_key: settings.name.toLowerCase().replace(" ", "") + "@" + settings.version,
|
|
233
232
|
}) + ")",
|
|
234
233
|
settings: json.safeStringify(settings.settings || []),
|
|
235
234
|
data_bindings: json.safeStringify(settings.data || []),
|
|
@@ -237,12 +236,12 @@ function loadTemplate(template_dir, sdk_template, build_failed, options) {
|
|
|
237
236
|
template_version: settings.version,
|
|
238
237
|
template_author: settings.author || "",
|
|
239
238
|
build_failed: build_failed && build_failed.size > 0,
|
|
240
|
-
public_url_prefix
|
|
239
|
+
public_url_prefix,
|
|
241
240
|
};
|
|
242
241
|
|
|
243
242
|
const script = documentFragment([
|
|
244
243
|
scriptElementInline("window.Flourish = " + json.safeStringify({
|
|
245
|
-
static_prefix, environment: "sdk", is_read_only: false
|
|
244
|
+
static_prefix, environment: "sdk", is_read_only: false,
|
|
246
245
|
}) + ";"),
|
|
247
246
|
scriptElementExternal("/template.js"),
|
|
248
247
|
scriptElementExternal("/comms.js"),
|
|
@@ -251,7 +250,7 @@ function loadTemplate(template_dir, sdk_template, build_failed, options) {
|
|
|
251
250
|
|
|
252
251
|
const preview_script = documentFragment([
|
|
253
252
|
scriptElementInline("window.Flourish = " + json.safeStringify({
|
|
254
|
-
static_prefix: preview_static_prefix, environment: "preview", is_read_only: true
|
|
253
|
+
static_prefix: preview_static_prefix, environment: "preview", is_read_only: true,
|
|
255
254
|
}) + ";"),
|
|
256
255
|
scriptElementExternal("/template.js"),
|
|
257
256
|
scriptElementExternal("/comms.js"),
|
|
@@ -266,7 +265,7 @@ function loadTemplate(template_dir, sdk_template, build_failed, options) {
|
|
|
266
265
|
index_html.render(template_text, {
|
|
267
266
|
title: "Flourish SDK template preview",
|
|
268
267
|
static: static_prefix,
|
|
269
|
-
parsed_script: script
|
|
268
|
+
parsed_script: script,
|
|
270
269
|
}),
|
|
271
270
|
index_html.render(template_text, {
|
|
272
271
|
title: "Flourish SDK template preview",
|
|
@@ -278,12 +277,12 @@ function loadTemplate(template_dir, sdk_template, build_failed, options) {
|
|
|
278
277
|
]);
|
|
279
278
|
})
|
|
280
279
|
.then(([sdk_rendered, template_rendered, preview_rendered, template_js, build_rules]) => ({
|
|
281
|
-
sdk_rendered, template_rendered, preview_rendered, template_js, build_rules
|
|
280
|
+
sdk_rendered, template_rendered, preview_rendered, template_js, build_rules,
|
|
282
281
|
}));
|
|
283
282
|
}
|
|
284
283
|
|
|
285
284
|
function previewInitJs(template_dir, template_data_bindings, data_bindings, data_table_names) {
|
|
286
|
-
return getData(template_dir, data_table_names).then(({data, column_types_by_name, timestamps_by_name }) => {
|
|
285
|
+
return getData(template_dir, data_table_names).then(({ data, column_types_by_name, timestamps_by_name }) => {
|
|
287
286
|
const prepared_data = {};
|
|
288
287
|
for (let dataset in data_bindings) {
|
|
289
288
|
prepared_data[dataset] = data_utils.extractData(
|
|
@@ -341,9 +340,9 @@ function tryToOpen(url) {
|
|
|
341
340
|
}
|
|
342
341
|
|
|
343
342
|
function isPrefix(a, b) {
|
|
344
|
-
if (a.length > b.length) return false;
|
|
343
|
+
if (a.length > b.length) { return false; }
|
|
345
344
|
for (let i = 0; i < a.length; i++) {
|
|
346
|
-
if (a[i] !== b[i]) return false;
|
|
345
|
+
if (a[i] !== b[i]) { return false; }
|
|
347
346
|
}
|
|
348
347
|
return true;
|
|
349
348
|
}
|
|
@@ -405,7 +404,7 @@ module.exports = function(template_dir, options) {
|
|
|
405
404
|
const filename = path.resolve(template_dir, "data", req.params.id + ".csv");
|
|
406
405
|
const { mtime: last_updated } = fs.statSync(filename);
|
|
407
406
|
res.status(200).header("Content-Type", "text/csv")
|
|
408
|
-
.header("Last-Modified", last_updated) // Send last modified time
|
|
407
|
+
.header("Last-Modified", new Date(last_updated).toUTCString()) // Send last modified time
|
|
409
408
|
.sendFile(filename);
|
|
410
409
|
});
|
|
411
410
|
|
|
@@ -420,7 +419,6 @@ module.exports = function(template_dir, options) {
|
|
|
420
419
|
app.use("/", express.static(path.join(__dirname, "..", "site")));
|
|
421
420
|
app.use(`/template/1/embed/${static_prefix}/`, express.static(path.join(template_dir, "static")));
|
|
422
421
|
|
|
423
|
-
|
|
424
422
|
function startServer(sdk_template, template_) {
|
|
425
423
|
template = template_;
|
|
426
424
|
|
|
@@ -438,11 +436,11 @@ module.exports = function(template_dir, options) {
|
|
|
438
436
|
socket.on("close", function() { sockets.delete(socket); });
|
|
439
437
|
});
|
|
440
438
|
reloadPreview = function() {
|
|
441
|
-
for (let socket of sockets) socket.close();
|
|
439
|
+
for (let socket of sockets) { socket.close(); }
|
|
442
440
|
};
|
|
443
441
|
|
|
444
442
|
watchForChanges(sdk_template);
|
|
445
|
-
if (options.open) tryToOpen(url);
|
|
443
|
+
if (options.open) { tryToOpen(url); }
|
|
446
444
|
})
|
|
447
445
|
.on("error", function(error) {
|
|
448
446
|
if (error.code === "EADDRINUSE") {
|
|
@@ -509,7 +507,7 @@ module.exports = function(template_dir, options) {
|
|
|
509
507
|
|
|
510
508
|
let should_reload = false;
|
|
511
509
|
if (sdk.TEMPLATE_SPECIAL.has(path_parts[0])) {
|
|
512
|
-
if (rebuilding.size > 0) return log.warn(`Rebuild in progress, ignoring change to ${filename}`);
|
|
510
|
+
if (rebuilding.size > 0) { return log.warn(`Rebuild in progress, ignoring change to ${filename}`); }
|
|
513
511
|
log.info("Detected change to file: " + filename);
|
|
514
512
|
should_reload = true;
|
|
515
513
|
}
|
|
@@ -528,7 +526,7 @@ module.exports = function(template_dir, options) {
|
|
|
528
526
|
if (build_commands.size > 0) {
|
|
529
527
|
const build_commands_to_run = [];
|
|
530
528
|
for (const [key, command] of build_commands) {
|
|
531
|
-
if (rebuilding.has(key)) continue;
|
|
529
|
+
if (rebuilding.has(key)) { continue; }
|
|
532
530
|
rebuilding.add(key);
|
|
533
531
|
if (reload_timer) {
|
|
534
532
|
clearTimeout(reload_timer);
|
|
@@ -544,7 +542,7 @@ module.exports = function(template_dir, options) {
|
|
|
544
542
|
rebuilding.delete(key);
|
|
545
543
|
build_failed.add(key);
|
|
546
544
|
throw error;
|
|
547
|
-
})
|
|
545
|
+
}),
|
|
548
546
|
);
|
|
549
547
|
}
|
|
550
548
|
|
|
@@ -561,21 +559,21 @@ module.exports = function(template_dir, options) {
|
|
|
561
559
|
}
|
|
562
560
|
});
|
|
563
561
|
}
|
|
564
|
-
else if (should_reload) reloadTemplate();
|
|
562
|
+
else if (should_reload) { reloadTemplate(); }
|
|
565
563
|
});
|
|
566
564
|
}
|
|
567
565
|
|
|
568
566
|
loadSDKTemplate()
|
|
569
567
|
.then((sdk_template) => {
|
|
570
568
|
return Promise.all([
|
|
571
|
-
sdk_template, loadTemplate(template_dir, sdk_template, undefined, options)
|
|
569
|
+
sdk_template, loadTemplate(template_dir, sdk_template, undefined, options),
|
|
572
570
|
]);
|
|
573
571
|
})
|
|
574
572
|
.then(([sdk_template, template]) => {
|
|
575
573
|
startServer(sdk_template, template);
|
|
576
574
|
})
|
|
577
575
|
.catch((error) => {
|
|
578
|
-
if (options.debug) log.problem("Failed to start server", error.message, error.stack);
|
|
579
|
-
else log.problem("Failed to start server", error.message);
|
|
576
|
+
if (options.debug) { log.problem("Failed to start server", error.message, error.stack); }
|
|
577
|
+
else { log.problem("Failed to start server", error.message); }
|
|
580
578
|
});
|
|
581
579
|
};
|
package/server/index_html.js
CHANGED
|
@@ -4,11 +4,13 @@ const parse5 = require("parse5"), RewriteLinks = require("rewrite-links");
|
|
|
4
4
|
const { defaultTreeAdapter: TA } = require("parse5");
|
|
5
5
|
function findChild(node, nodeName, ok_if_not_found) {
|
|
6
6
|
for (const child of TA.getChildNodes(node)) {
|
|
7
|
-
if (child.nodeName == nodeName)
|
|
7
|
+
if (child.nodeName == nodeName) {
|
|
8
8
|
return child;
|
|
9
|
+
}
|
|
9
10
|
}
|
|
10
|
-
if (ok_if_not_found)
|
|
11
|
+
if (ok_if_not_found) {
|
|
11
12
|
return null;
|
|
13
|
+
}
|
|
12
14
|
throw new Error("Node not found: " + nodeName);
|
|
13
15
|
}
|
|
14
16
|
function findHtmlNode(document) {
|
|
@@ -45,7 +47,7 @@ function insertOembedLink(document, oembed_url) {
|
|
|
45
47
|
const link_node = TA.createElement("link", head.namespaceURI, [
|
|
46
48
|
{ name: "rel", value: "alternate" },
|
|
47
49
|
{ name: "type", value: "application/json+oembed" },
|
|
48
|
-
{ name: "href", value: oembed_url }
|
|
50
|
+
{ name: "href", value: oembed_url },
|
|
49
51
|
]);
|
|
50
52
|
TA.appendChild(head, link_node);
|
|
51
53
|
}
|
|
@@ -53,20 +55,23 @@ function insertCanonicalLink(document, canonical_url) {
|
|
|
53
55
|
const head = findHead(document);
|
|
54
56
|
const link_node = TA.createElement("link", head.namespaceURI, [
|
|
55
57
|
{ name: "rel", value: "canonical" },
|
|
56
|
-
{ name: "href", value: canonical_url }
|
|
58
|
+
{ name: "href", value: canonical_url },
|
|
57
59
|
]);
|
|
58
60
|
TA.appendChild(head, link_node);
|
|
59
61
|
}
|
|
60
62
|
function rewriteLinks(document, static_prefix) {
|
|
61
|
-
if (!static_prefix.endsWith("/"))
|
|
63
|
+
if (!static_prefix.endsWith("/")) {
|
|
62
64
|
static_prefix += "/";
|
|
65
|
+
}
|
|
63
66
|
const rewriter = new RewriteLinks(function (url) {
|
|
64
67
|
// We don’t want to rewrite URLs that are just fragment identifiers
|
|
65
|
-
if (url.startsWith("#"))
|
|
68
|
+
if (url.startsWith("#")) {
|
|
66
69
|
return url;
|
|
70
|
+
}
|
|
67
71
|
// ... or relative self-links
|
|
68
|
-
if (url == "" || url == ".")
|
|
72
|
+
if (url == "" || url == ".") {
|
|
69
73
|
return url;
|
|
74
|
+
}
|
|
70
75
|
return URL.resolve(static_prefix, url); // eslint-disable-line node/no-deprecated-api
|
|
71
76
|
});
|
|
72
77
|
return rewriter.rewriteDocument(document);
|
|
@@ -74,10 +79,12 @@ function rewriteLinks(document, static_prefix) {
|
|
|
74
79
|
async function render(template_text, params) {
|
|
75
80
|
const document = parse5.parse(template_text), script_fragment = params.parsed_script || parse5.parseFragment(params.script);
|
|
76
81
|
replaceTitle(document, params.title);
|
|
77
|
-
if (params.canonical_url)
|
|
82
|
+
if (params.canonical_url) {
|
|
78
83
|
insertCanonicalLink(document, params.canonical_url);
|
|
79
|
-
|
|
84
|
+
}
|
|
85
|
+
if (params.oembed_url) {
|
|
80
86
|
insertOembedLink(document, params.oembed_url);
|
|
87
|
+
}
|
|
81
88
|
appendFragmentToBody(document, script_fragment);
|
|
82
89
|
const rewritten_document = await rewriteLinks(document, params.static);
|
|
83
90
|
return parse5.serialize(rewritten_document);
|
package/server/views/index.html
CHANGED
|
@@ -2,16 +2,32 @@
|
|
|
2
2
|
<html lang="en-GB">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
6
|
|
|
7
7
|
<script type="text/javascript">
|
|
8
|
+
// Create a global state object to track OneTrust status
|
|
9
|
+
window.flourishOneTrust = window.flourishOneTrust || {
|
|
10
|
+
ready: false
|
|
11
|
+
};
|
|
12
|
+
|
|
8
13
|
function OptanonWrapper() {
|
|
14
|
+
// Set up consent change listener once
|
|
9
15
|
OneTrust.OnConsentChanged(() => {
|
|
10
16
|
document.cookie = `OptanonAlertBoxClosed=${new Date().toISOString()};`
|
|
11
17
|
+ "SameSite=None;"
|
|
12
18
|
+ "Secure;"
|
|
13
19
|
+ `expires=${new Date(Date.now() + 1000 * 60 * 60 * 24 * 365).toUTCString()};`;
|
|
20
|
+
|
|
21
|
+
// Set flag and dispatch event for consent change
|
|
22
|
+
window.flourishOneTrust.ready = true;
|
|
23
|
+
const oneTrustConsentChangedEvent = new CustomEvent('onetrustconsentchanged');
|
|
24
|
+
window.dispatchEvent(oneTrustConsentChangedEvent);
|
|
14
25
|
});
|
|
26
|
+
|
|
27
|
+
// Set flag and dispatch event for OneTrust loaded
|
|
28
|
+
window.flourishOneTrust.ready = true;
|
|
29
|
+
const oneTrustLoadedEvent = new CustomEvent('onetrustloaded');
|
|
30
|
+
window.dispatchEvent(oneTrustLoadedEvent);
|
|
15
31
|
}
|
|
16
32
|
</script>
|
|
17
33
|
|
|
@@ -25,7 +41,7 @@
|
|
|
25
41
|
</head>
|
|
26
42
|
<body class="sdk">
|
|
27
43
|
<div class="row header no-select" style="padding-left:10px">
|
|
28
|
-
<a href="https://app.flourish.studio" target="_blank"><img class="logo" src="/images/
|
|
44
|
+
<a href="https://app.flourish.studio" target="_blank"><img class="logo" src="/images/flourish_logo_white.svg" alt="Flourish logo"></a><span id="sdk-tag">SDK</span>
|
|
29
45
|
</div>
|
|
30
46
|
<div class="row editor-bar">
|
|
31
47
|
<div id="preview-menu" class="row-menu left no-select">
|
|
@@ -64,7 +80,7 @@
|
|
|
64
80
|
<div id="visualisation" class="full-screen-ready">
|
|
65
81
|
<div id="visualisation-inner" class="editor-core">
|
|
66
82
|
<div class="preview-holder">
|
|
67
|
-
<
|
|
83
|
+
<div class="loading-spinner" data-testid="loading-indicator"></div>
|
|
68
84
|
<div class="preview-overlay">
|
|
69
85
|
<p class="empty-label"></p>
|
|
70
86
|
<p class="empty-details"></p>
|
|
@@ -80,7 +96,7 @@
|
|
|
80
96
|
<div class="side-panel-inner">
|
|
81
97
|
<div class="current-template popup" data-popup-head="Template details" data-popup-body="Add or edit thumbnail.jpg and template.yml to change">
|
|
82
98
|
<div class="current-template-title">
|
|
83
|
-
<div class="current-template-thumbnail"></div>
|
|
99
|
+
<!-- <div class="current-template-thumbnail"></div> -->
|
|
84
100
|
<h1>Current template <span class="template-name">{{ template_name }}</span></h1>
|
|
85
101
|
</div>
|
|
86
102
|
</div>
|
package/site/embedded.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
!function(){"use strict";var e=!1;function t(t){if(e&&window.top!==window.self){var n=window;"srcdoc"===n.location.pathname&&(n=n.parent);var o,i=(o={},window._Flourish_template_id&&(o.template_id=window._Flourish_template_id),window.Flourish&&window.Flourish.app&&window.Flourish.app.loaded_template_id&&(o.template_id=window.Flourish.app.loaded_template_id),window._Flourish_visualisation_id&&(o.visualisation_id=window._Flourish_visualisation_id),window.Flourish&&window.Flourish.app&&window.Flourish.app.loaded_visualisation&&(o.visualisation_id=window.Flourish.app.loaded_visualisation.id),window.Flourish&&window.Flourish.app&&window.Flourish.app.story&&(o.story_id=window.Flourish.app.story.id,o.slide_count=window.Flourish.app.story.slides.length),window.Flourish&&window.Flourish.app&&window.Flourish.app.current_slide&&(o.slide_index=window.Flourish.app.current_slide.index+1),o),r={sender:"Flourish",method:"customerAnalytics"};for(var a in i)i.hasOwnProperty(a)&&(r[a]=i[a]);for(var a in t)t.hasOwnProperty(a)&&(r[a]=t[a]);n.parent.postMessage(JSON.stringify(r),"*")}}function n(e){if("function"!=typeof e)throw new Error("Analytics callback is not a function");window.Flourish._analytics_listeners.push(e)}function o(){e=!0;[{event_name:"click",action_name:"click",use_capture:!0},{event_name:"keydown",action_name:"key_down",use_capture:!0},{event_name:"mouseenter",action_name:"mouse_enter",use_capture:!1},{event_name:"mouseleave",action_name:"mouse_leave",use_capture:!1}].forEach((function(e){document.body.addEventListener(e.event_name,(function(){t({action:e.action_name})}),e.use_capture)}))}
|
|
2
|
-
/*! @license DOMPurify 3.1.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.4/LICENSE */const{entries:i,setPrototypeOf:r,isFrozen:a,getPrototypeOf:l,getOwnPropertyDescriptor:s}=Object;let{freeze:c,seal:u,create:d}=Object,{apply:p,construct:m}="undefined"!=typeof Reflect&&Reflect;c||(c=function(e){return e}),u||(u=function(e){return e}),p||(p=function(e,t,n){return e.apply(t,n)}),m||(m=function(e,t){return new e(...t)});const f=C(Array.prototype.forEach),h=C(Array.prototype.pop),g=C(Array.prototype.push),y=C(String.prototype.toLowerCase),_=C(String.prototype.toString),w=C(String.prototype.match),v=C(String.prototype.replace),T=C(String.prototype.indexOf),A=C(String.prototype.trim),E=C(Object.prototype.hasOwnProperty),b=C(RegExp.prototype.test),S=(N=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m(N,t)});var N;function x(e){return"number"==typeof e&&isNaN(e)}function C(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return p(e,t,o)}}function R(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;r&&r(e,null);let o=t.length;for(;o--;){let i=t[o];if("string"==typeof i){const e=n(i);e!==i&&(a(t)||(t[o]=e),i=e)}e[i]=!0}return e}function L(e){for(let t=0;t<e.length;t++){E(e,t)||(e[t]=null)}return e}function O(e){const t=d(null);for(const[n,o]of i(e)){E(e,n)&&(Array.isArray(o)?t[n]=L(o):o&&"object"==typeof o&&o.constructor===Object?t[n]=O(o):t[n]=o)}return t}function k(e,t){for(;null!==e;){const n=s(e,t);if(n){if(n.get)return C(n.get);if("function"==typeof n.value)return C(n.value)}e=l(e)}return function(){return null}}const F=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),D=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=c(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),U=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),P=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=c(["#text"]),z=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),W=c(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=c(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),G=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),j=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),q=u(/<%[\w\W]*|[\w\W]*%>/gm),Y=u(/\${[\w\W]*}/gm),$=u(/^data-[\-\w.\u00B7-\uFFFF]/),X=u(/^aria-[\-\w]+$/),J=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=u(/^(?:\w+script|data):/i),K=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=u(/^html$/i),Q=u(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:q,TMPLIT_EXPR:Y,DATA_ATTR:$,ARIA_ATTR:X,IS_ALLOWED_URI:J,IS_SCRIPT_OR_DATA:V,ATTR_WHITESPACE:K,DOCTYPE_NAME:Z,CUSTOM_ELEMENT:Q});const te=1,ne=3,oe=7,ie=8,re=9,ae=function(){return"undefined"==typeof window?null:window},le=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};var se,ce,ue=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae();const n=t=>e(t);if(n.version="3.1.4",n.removed=[],!t||!t.document||t.document.nodeType!==re)return n.isSupported=!1,n;let{document:o}=t;const r=o,a=r.currentScript,{DocumentFragment:l,HTMLTemplateElement:s,Node:u,Element:p,NodeFilter:m,NamedNodeMap:N=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:C,DOMParser:L,trustedTypes:j}=t,q=p.prototype,Y=k(q,"cloneNode"),$=k(q,"nextSibling"),X=k(q,"childNodes"),V=k(q,"parentNode");if("function"==typeof s){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let K,Q="";const{implementation:se,createNodeIterator:ce,createDocumentFragment:ue,getElementsByTagName:de}=o,{importNode:pe}=r;let me={};n.isSupported="function"==typeof i&&"function"==typeof V&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:fe,ERB_EXPR:he,TMPLIT_EXPR:ge,DATA_ATTR:ye,ARIA_ATTR:_e,IS_SCRIPT_OR_DATA:we,ATTR_WHITESPACE:ve,CUSTOM_ELEMENT:Te}=ee;let{IS_ALLOWED_URI:Ae}=ee,Ee=null;const be=R({},[...F,...D,...M,...U,...H]);let Se=null;const Ne=R({},[...z,...W,...B,...G]);let xe=Object.seal(d(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,Re=null,Le=!0,Oe=!0,ke=!1,Fe=!0,De=!1,Me=!0,Ie=!1,Ue=!1,Pe=!1,He=!1,ze=!1,We=!1,Be=!0,Ge=!1;const je="user-content-";let qe=!0,Ye=!1,$e={},Xe=null;const Je=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ve=null;const Ke=R({},["audio","video","img","source","image","track"]);let Ze=null;const Qe=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let ot=nt,it=!1,rt=null;const at=R({},[et,tt,nt],_);let lt=null;const st=["application/xhtml+xml","text/html"],ct="text/html";let ut=null,dt=null;const pt=255,mt=o.createElement("form"),ft=function(e){return e instanceof RegExp||e instanceof Function},ht=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!dt||dt!==e){if(e&&"object"==typeof e||(e={}),e=O(e),lt=-1===st.indexOf(e.PARSER_MEDIA_TYPE)?ct:e.PARSER_MEDIA_TYPE,ut="application/xhtml+xml"===lt?_:y,Ee=E(e,"ALLOWED_TAGS")?R({},e.ALLOWED_TAGS,ut):be,Se=E(e,"ALLOWED_ATTR")?R({},e.ALLOWED_ATTR,ut):Ne,rt=E(e,"ALLOWED_NAMESPACES")?R({},e.ALLOWED_NAMESPACES,_):at,Ze=E(e,"ADD_URI_SAFE_ATTR")?R(O(Qe),e.ADD_URI_SAFE_ATTR,ut):Qe,Ve=E(e,"ADD_DATA_URI_TAGS")?R(O(Ke),e.ADD_DATA_URI_TAGS,ut):Ke,Xe=E(e,"FORBID_CONTENTS")?R({},e.FORBID_CONTENTS,ut):Je,Ce=E(e,"FORBID_TAGS")?R({},e.FORBID_TAGS,ut):{},Re=E(e,"FORBID_ATTR")?R({},e.FORBID_ATTR,ut):{},$e=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,Le=!1!==e.ALLOW_ARIA_ATTR,Oe=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Fe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,De=e.SAFE_FOR_TEMPLATES||!1,Me=!1!==e.SAFE_FOR_XML,Ie=e.WHOLE_DOCUMENT||!1,He=e.RETURN_DOM||!1,ze=e.RETURN_DOM_FRAGMENT||!1,We=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,Ge=e.SANITIZE_NAMED_PROPS||!1,qe=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,Ae=e.ALLOWED_URI_REGEXP||J,ot=e.NAMESPACE||nt,xe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ft(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ft(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(xe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Oe=!1),ze&&(He=!0),$e&&(Ee=R({},H),Se=[],!0===$e.html&&(R(Ee,F),R(Se,z)),!0===$e.svg&&(R(Ee,D),R(Se,W),R(Se,G)),!0===$e.svgFilters&&(R(Ee,M),R(Se,W),R(Se,G)),!0===$e.mathMl&&(R(Ee,U),R(Se,B),R(Se,G))),e.ADD_TAGS&&(Ee===be&&(Ee=O(Ee)),R(Ee,e.ADD_TAGS,ut)),e.ADD_ATTR&&(Se===Ne&&(Se=O(Se)),R(Se,e.ADD_ATTR,ut)),e.ADD_URI_SAFE_ATTR&&R(Ze,e.ADD_URI_SAFE_ATTR,ut),e.FORBID_CONTENTS&&(Xe===Je&&(Xe=O(Xe)),R(Xe,e.FORBID_CONTENTS,ut)),qe&&(Ee["#text"]=!0),Ie&&R(Ee,["html","head","body"]),Ee.table&&(R(Ee,["tbody"]),delete Ce.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');K=e.TRUSTED_TYPES_POLICY,Q=K.createHTML("")}else void 0===K&&(K=le(j,a)),null!==K&&"string"==typeof Q&&(Q=K.createHTML(""));c&&c(e),dt=e}},gt=R({},["mi","mo","mn","ms","mtext"]),yt=R({},["foreignobject","annotation-xml"]),_t=R({},["title","style","font","a","script"]),wt=R({},[...D,...M,...I]),vt=R({},[...U,...P]),Tt=function(e){let t=V(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});const n=y(e.tagName),o=y(t.tagName);return!!rt[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===o||gt[o]):Boolean(wt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&yt[o]:Boolean(vt[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!yt[o])&&(!(t.namespaceURI===et&&!gt[o])&&(!vt[n]&&(_t[n]||!wt[n]))):!("application/xhtml+xml"!==lt||!rt[e.namespaceURI]))},At=function(e){g(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},Et=function(e,t){try{g(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Se[e])if(He||ze)try{At(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){let t=null,n=null;if(Pe)e="<remove></remove>"+e;else{const t=w(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===lt&&ot===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=K?K.createHTML(e):e;if(ot===nt)try{t=(new L).parseFromString(i,lt)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(ot,"template",null);try{t.documentElement.innerHTML=it?Q:i}catch(e){}}const r=t.body||t.documentElement;return e&&n&&r.insertBefore(o.createTextNode(n),r.childNodes[0]||null),ot===nt?de.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:r},St=function(e){return ce.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Nt=function(e){return e instanceof C&&(void 0!==e.__depth&&"number"!=typeof e.__depth||void 0!==e.__removalCount&&"number"!=typeof e.__removalCount||"string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof N)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},xt=function(e){return"function"==typeof u&&e instanceof u},Ct=function(e,t,o){me[e]&&f(me[e],(e=>{e.call(n,t,o,dt)}))},Rt=function(e){let t=null;if(Ct("beforeSanitizeElements",e,null),Nt(e))return At(e),!0;const o=ut(e.nodeName);if(Ct("uponSanitizeElement",e,{tagName:o,allowedTags:Ee}),e.hasChildNodes()&&!xt(e.firstElementChild)&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent))return At(e),!0;if(e.nodeType===oe)return At(e),!0;if(Me&&e.nodeType===ie&&b(/<[/\w]/g,e.data))return At(e),!0;if(!Ee[o]||Ce[o]){if(!Ce[o]&&Ot(o)){if(xe.tagNameCheck instanceof RegExp&&b(xe.tagNameCheck,o))return!1;if(xe.tagNameCheck instanceof Function&&xe.tagNameCheck(o))return!1}if(qe&&!Xe[o]){const t=V(e)||e.parentNode,n=X(e)||e.childNodes;if(n&&t){for(let o=n.length-1;o>=0;--o){const i=Y(n[o],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,$(e))}}}return At(e),!0}return e instanceof p&&!Tt(e)?(At(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!b(/<\/no(script|embed|frames)/i,e.innerHTML)?(De&&e.nodeType===ne&&(t=e.textContent,f([fe,he,ge],(e=>{t=v(t,e," ")})),e.textContent!==t&&(g(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ct("afterSanitizeElements",e,null),!1):(At(e),!0)},Lt=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in o||n in mt||"__depth"===n||"__removalCount"===n))return!1;if(Oe&&!Re[t]&&b(ye,t));else if(Le&&b(_e,t));else if(!Se[t]||Re[t]){if(!(Ot(e)&&(xe.tagNameCheck instanceof RegExp&&b(xe.tagNameCheck,e)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(e))&&(xe.attributeNameCheck instanceof RegExp&&b(xe.attributeNameCheck,t)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(t))||"is"===t&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&b(xe.tagNameCheck,n)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(n))))return!1}else if(Ze[t]);else if(b(Ae,v(n,ve,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==T(n,"data:")||!Ve[e]){if(ke&&!b(we,v(n,ve,"")));else if(n)return!1}else;return!0},Ot=function(e){return"annotation-xml"!==e&&w(e,Te)},kt=function(e){Ct("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};let i=t.length;for(;i--;){const r=t[i],{name:a,namespaceURI:l,value:s}=r,c=ut(a);let u="value"===a?s:A(s);if(o.attrName=c,o.attrValue=u,o.keepAttr=!0,o.forceKeepAttr=void 0,Ct("uponSanitizeAttribute",e,o),u=o.attrValue,o.forceKeepAttr)continue;if(Et(a,e),!o.keepAttr)continue;if(!Fe&&b(/\/>/i,u)){Et(a,e);continue}if(Me&&b(/((--!?|])>)|<\/(style|title)/i,u)){Et(a,e);continue}De&&f([fe,he,ge],(e=>{u=v(u,e," ")}));const d=ut(e.nodeName);if(Lt(d,c,u)){if(!Ge||"id"!==c&&"name"!==c||(Et(a,e),u=je+u),K&&"object"==typeof j&&"function"==typeof j.getAttributeType)if(l);else switch(j.getAttributeType(d,c)){case"TrustedHTML":u=K.createHTML(u);break;case"TrustedScriptURL":u=K.createScriptURL(u)}try{l?e.setAttributeNS(l,a,u):e.setAttribute(a,u),Nt(e)?At(e):h(n.removed)}catch(e){}}}Ct("afterSanitizeAttributes",e,null)},Ft=function e(t){let n=null;const o=St(t);for(Ct("beforeSanitizeShadowDOM",t,null);n=o.nextNode();){if(Ct("uponSanitizeShadowNode",n,null),Rt(n))continue;const t=V(n);n.nodeType===te&&(t&&t.__depth?n.__depth=(n.__removalCount||0)+t.__depth+1:n.__depth=1),(n.__depth>=pt||n.__depth<0||x(n.__depth))&&At(n),n.content instanceof l&&(n.content.__depth=n.__depth,e(n.content)),kt(n)}Ct("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,a=null,s=null;if(it=!e,it&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xt(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"!=typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ue||ht(t),n.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){const t=ut(e.nodeName);if(!Ee[t]||Ce[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof u)o=bt("\x3c!----\x3e"),i=o.ownerDocument.importNode(e,!0),i.nodeType===te&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!He&&!De&&!Ie&&-1===e.indexOf("<"))return K&&We?K.createHTML(e):e;if(o=bt(e),!o)return He?null:We?Q:""}o&&Pe&&At(o.firstChild);const c=St(Ye?e:o);for(;a=c.nextNode();){if(Rt(a))continue;const e=V(a);a.nodeType===te&&(e&&e.__depth?a.__depth=(a.__removalCount||0)+e.__depth+1:a.__depth=1),(a.__depth>=pt||a.__depth<0||x(a.__depth))&&At(a),a.content instanceof l&&(a.content.__depth=a.__depth,Ft(a.content)),kt(a)}if(Ye)return e;if(He){if(ze)for(s=ue.call(o.ownerDocument);o.firstChild;)s.appendChild(o.firstChild);else s=o;return(Se.shadowroot||Se.shadowrootmode)&&(s=pe.call(r,s,!0)),s}let d=Ie?o.outerHTML:o.innerHTML;return Ie&&Ee["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&b(Z,o.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+d),De&&f([fe,he,ge],(e=>{d=v(d,e," ")})),K&&We?K.createHTML(d):d},n.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ht(e),Ue=!0},n.clearConfig=function(){dt=null,Ue=!1},n.isValidAttribute=function(e,t,n){dt||ht({});const o=ut(e),i=ut(t);return Lt(o,i,n)},n.addHook=function(e,t){"function"==typeof t&&(me[e]=me[e]||[],g(me[e],t))},n.removeHook=function(e){if(me[e])return h(me[e])},n.removeHooks=function(e){me[e]&&(me[e]=[])},n.removeAllHooks=function(){me={}},n}();function de(){if(null==se){var e=function(){var e=window.location;"about:srcdoc"==e.href&&(e=window.parent.location);var t={};return function(e,n,o){for(;o=n.exec(e);)t[decodeURIComponent(o[1])]=decodeURIComponent(o[2])}(e.search.substring(1).replace(/\+/g,"%20"),/([^&=]+)=?([^&]*)/g),t}();se="referrer"in e?/^https:\/\/medium.com\//.test(e.referrer):!("auto"in e)}return se}function pe(e){var t=e||window.innerWidth;return t>999?650:t>599?575:400}function me(e){if(e&&window.top!==window.self){var t=window;"srcdoc"==t.location.pathname&&(t=t.parent);var n={sender:"Flourish",method:"scrolly",captions:e.captions};t.parent.postMessage(JSON.stringify(n),"*")}}function fe(e,t){if(window.top!==window.self){var n=window;if("srcdoc"==n.location.pathname&&(n=n.parent),ce)return e=parseInt(e,10),void n.parent.postMessage({sentinel:"amp",type:"embed-size",height:e},"*");var o={sender:"Flourish",context:"iframe.resize",method:"resize",height:e,src:n.location.toString()};if(t)for(var i in t)o[i]=t[i];n.parent.postMessage(JSON.stringify(o),"*")}}function he(){return(-1!==navigator.userAgent.indexOf("Safari")||-1!==navigator.userAgent.indexOf("iPhone"))&&-1==navigator.userAgent.indexOf("Chrome")}function ge(e){return"string"==typeof e||e instanceof String}function ye(e){return"warn"!==e.method?(console.warn("BUG: validateWarnMessage called for method"+e.method),!1):!(null!=e.message&&!ge(e.message))&&!(null!=e.explanation&&!ge(e.explanation))}function _e(e){return"resize"!==e.method?(console.warn("BUG: validateResizeMessage called for method"+e.method),!1):!!ge(e.src)&&(!!ge(e.context)&&!!("number"==typeof(t=e.height)?!isNaN(t)&&t>=0:ge(t)&&/\d/.test(t)&&/^[0-9]*(\.[0-9]*)?(cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%)?$/i.test(t)));var t}function we(e){throw new Error("Validation for setSetting is not implemented yet; see issue #4328")}function ve(e){return"scrolly"!==e.method?(console.warn("BUG: validateScrolly called for method"+e.method),!1):!!Array.isArray(e.captions)}function Te(e){return"customerAnalytics"===e.method||(console.warn("BUG: validateCustomerAnalyticsMessage called for method"+e.method),!1)}function Ae(e){return"request-upload"!==e.method?(console.warn("BUG: validateResizeMessage called for method"+e.method),!1):!!ge(e.name)&&!(null!=e.accept&&!ge(e.accept))}function Ee(e,t,n){var o=function(e){for(var t={warn:ye,resize:_e,setSetting:we,customerAnalytics:Te,"request-upload":Ae,scrolly:ve},n={},o=0;o<e.length;o++){var i=e[o];if(!t[i])throw new Error("No validator found for method "+i);n[i]=t[i]}return n}(t);window.addEventListener("message",(function(t){var i=function(){if(t.origin==document.location.origin)return!0;if(n){const e=t.origin.toLowerCase();if(n=n.toLowerCase(),e.endsWith("//"+n))return!0;if(e.endsWith("."+n))return!0}return!!t.origin.match(/\/\/localhost:\d+$|\/\/(?:public|app)\.flourish.devlocal$|\/\/flourish-api\.com$|\.flourish\.(?:local(:\d+)?|net|rocks|studio)$|\.uri\.sh$|\/\/flourish-user-templates\.com$/)}();if(null!=t.source&&i){var r;try{r="object"==typeof t.data?t.data:JSON.parse(t.data)}catch(e){return void console.warn("Unexpected non-JSON message: "+JSON.stringify(t.data))}if("Flourish"===r.sender)if(r.method)if(Object.prototype.hasOwnProperty.call(o,r.method))if(o[r.method](r)){for(var a=document.querySelectorAll("iframe"),l=0;l<a.length;l++)if(a[l].contentWindow==t.source||a[l].contentWindow==t.source.parent)return void e(r,a[l]);console.warn("could not find frame",r)}else console.warn("Validation failed for the message",r);else console.warn("No validator implemented for message",r);else console.warn("The 'method' property was missing from message",r)}})),he()&&(window.addEventListener("resize",be),be())}function be(){for(var e=document.querySelectorAll(".flourish-embed"),t=0;t<e.length;t++){var n=e[t];if(!n.getAttribute("data-width")){var o=n.querySelector("iframe");if(o){var i=window.getComputedStyle(n),r=n.offsetWidth-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight);o.style.width=r+"px"}}}}function Se(e,t){var n=e.parentNode;if(n.classList.contains("fl-scrolly-wrapper"))console.warn("createScrolly is being called more than once per story. This should not happen.");else{n.classList.add("fl-scrolly-wrapper"),n.style.position="relative",n.style.paddingBottom="1px",n.style.transform="translate3d(0, 0, 0)",e.style.position="sticky";var o=n.getAttribute("data-height")||null;o||(o="80vh",e.style.height=o),e.style.top="calc(50vh - "+o+"/2)";var i=n.querySelector(".flourish-credit");i&&(i.style.position="sticky",i.style.top="calc(50vh + "+o+"/2)"),t.forEach((function(e,t){var o="string"==typeof e&&""!=e.trim(),i=document.createElement("div");i.setAttribute("data-slide",t),i.classList.add("fl-scrolly-caption"),i.style.position="relative",i.style.transform="translate3d(0,0,0)",i.style.textAlign="center",i.style.maxWidth="500px",i.style.height="auto",i.style.marginTop="0",i.style.marginBottom=o?"100vh":"50vh",i.style.marginLeft="auto",i.style.marginRight="auto";var r=document.createElement("div");r.innerHTML=ue.sanitize(e,{ADD_ATTR:["target"]}),r.style.visibility=o?"":"hidden",r.style.display="inline-block",r.style.paddingTop="1.25em",r.style.paddingRight="1.25em",r.style.paddingBottom="1.25em",r.style.paddingLeft="1.25em",r.style.background="rgba(255,255,255,0.9)",r.style.boxShadow="0px 0px 10px rgba(0,0,0,0.2)",r.style.borderRadius="10px",r.style.textAlign="center",r.style.maxWidth="100%",r.style.margin="0 20px",r.style.overflowX="hidden",i.appendChild(r),n.appendChild(i)})),function(e){for(var t=new IntersectionObserver((function(t){t.forEach((function(t){if(t.isIntersecting){var n=e.querySelector("iframe");n&&(n.src=n.src.replace(/#slide-.*/,"")+"#slide-"+t.target.getAttribute("data-slide"))}}))}),{rootMargin:"0px 0px -0% 0px"}),n=e.querySelectorAll(".fl-scrolly-caption"),o=0;o<n.length;o++)t.observe(n[o]);e.querySelectorAll(".fl-scrolly-caption img").forEach((function(e){e.style.maxWidth="100%"}))}(n)}}function Ne(e,t,n,o,i){var r=document.createElement("iframe");if(r.setAttribute("scrolling","no"),r.setAttribute("frameborder","0"),r.setAttribute("title","Interactive or visual content"),r.setAttribute("sandbox","allow-same-origin allow-forms allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation"),t.appendChild(r),r.offsetParent||"fixed"===getComputedStyle(r).position)xe(e,t,r,n,o,i);else{var a={embed_url:e,container:t,iframe:r,width:n,height:o,play_on_load:i};if(window._flourish_poll_items?window._flourish_poll_items.push(a):window._flourish_poll_items=[a],window._flourish_poll_items.length>1)return r;var l=setInterval((function(){window._flourish_poll_items=window._flourish_poll_items.filter((function(e){return!e.iframe.offsetParent||(xe(e.embed_url,e.container,e.iframe,e.width,e.height,e.play_on_load),!1)})),window._flourish_poll_items.length||clearInterval(l)}),500)}return r}function xe(e,t,n,o,i,r){var a;return o&&"number"==typeof o?(a=o,o+="px"):o&&o.match(/^[ \t\r\n\f]*([+-]?\d+|\d*\.\d+(?:[eE][+-]?\d+)?)(?:\\?[Pp]|\\0{0,4}[57]0(?:\r\n|[ \t\r\n\f])?)(?:\\?[Xx]|\\0{0,4}[57]8(?:\r\n|[ \t\r\n\f])?)[ \t\r\n\f]*$/)&&(a=parseFloat(o)),i&&"number"==typeof i&&(i+="px"),o?n.style.width=o:he()?n.style.width=t.offsetWidth+"px":n.style.width="100%",!!i||(e.match(/\?/)?e+="&auto=1":e+="?auto=1",i=pe(a||n.offsetWidth)+"px"),i&&("%"===i.charAt(i.length-1)&&(i=parseFloat(i)/100*t.parentNode.offsetHeight+"px"),n.style.height=i),n.setAttribute("src",e+(r?"#play-on-load":"")),n}function Ce(e){return!Array.isArray(e)&&"object"==typeof e&&null!=e}function Re(e,t){for(var n in t)Ce(e[n])&&Ce(t[n])?Re(e[n],t[n]):e[n]=t[n];return e}!function(){var e,i=window.top===window.self,r=i?null:(ce="#amp=1"==window.location.hash,{createEmbedIframe:Ne,isFixedHeight:de,getHeightForBreakpoint:pe,startEventListeners:Ee,notifyParentWindow:fe,initScrolly:me,createScrolly:Se,isSafari:he,initCustomerAnalytics:o,addAnalyticsListener:n,sendCustomerAnalyticsMessage:t}),a=!0;function l(){var t;Flourish.fixed_height||(null!=e?t=e:a&&(t=r.getHeightForBreakpoint()),t!==window.innerHeight&&r.notifyParentWindow(t))}function s(){-1!==window.location.search.indexOf("enable_customer_analytics=1")&&Flourish.enableCustomerAnalytics(),l(),window.addEventListener("resize",l)}Flourish.warn=function(e){if("string"==typeof e&&(e={message:e}),i||"editor"!==Flourish.environment)console.warn(e.message);else{var t={sender:"Flourish",method:"warn",message:e.message,explanation:e.explanation};window.parent.postMessage(JSON.stringify(t),"*")}},Flourish.uploadImage=function(e){if(i||"story_editor"!==Flourish.environment)throw"Invalid upload request";var t={sender:"Flourish",method:"request-upload",name:e.name,accept:e.accept};window.parent.postMessage(JSON.stringify(t),"*")},Flourish.setSetting=function(e,t){if("editor"===Flourish.environment||"sdk"===Flourish.environment){var n={sender:"Flourish",method:"setSetting",name:e,value:t};window.parent.postMessage(JSON.stringify(n),"*")}else if("story_editor"===Flourish.environment){var o={};o[e]=t,Re(window.template.state,function(e){var t={};for(var n in e){for(var o=t,i=n.indexOf("."),r=0;i>=0;i=n.indexOf(".",r=i+1)){var a=n.substring(r,i);a in o||(o[a]={}),o=o[a]}o[n.substring(r)]=e[n]}return t}(o))}},Flourish.setHeight=function(t){Flourish.fixed_height||(e=t,a=null==t,l())},Flourish.checkHeight=function(){if(!i){var e=Flourish.__container_height;null!=e?(Flourish.fixed_height=!0,r.notifyParentWindow(e)):r.isFixedHeight()?Flourish.fixed_height=!0:(Flourish.fixed_height=!1,l())}},Flourish.fixed_height=i||r.isFixedHeight(),Flourish.enableCustomerAnalytics=function(){r&&r.initCustomerAnalytics()},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",s):s()}()}();
|
|
2
|
+
/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:i,setPrototypeOf:r,isFrozen:a,getPrototypeOf:l,getOwnPropertyDescriptor:s}=Object;let{freeze:c,seal:u,create:d}=Object,{apply:m,construct:p}="undefined"!=typeof Reflect&&Reflect;c||(c=function(e){return e}),u||(u=function(e){return e}),m||(m=function(e,t,n){return e.apply(t,n)}),p||(p=function(e,t){return new e(...t)});const f=R(Array.prototype.forEach),h=R(Array.prototype.lastIndexOf),g=R(Array.prototype.pop),y=R(Array.prototype.push),w=R(Array.prototype.splice),_=R(String.prototype.toLowerCase),v=R(String.prototype.toString),T=R(String.prototype.match),A=R(String.prototype.replace),E=R(String.prototype.indexOf),b=R(String.prototype.trim),S=R(Object.prototype.hasOwnProperty),N=R(RegExp.prototype.test),x=(O=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(O,t)});var O;function R(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return m(e,t,o)}}function L(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;r&&r(e,null);let o=t.length;for(;o--;){let i=t[o];if("string"==typeof i){const e=n(i);e!==i&&(a(t)||(t[o]=e),i=e)}e[i]=!0}return e}function C(e){for(let t=0;t<e.length;t++){S(e,t)||(e[t]=null)}return e}function M(e){const t=d(null);for(const[n,o]of i(e)){S(e,n)&&(Array.isArray(o)?t[n]=C(o):o&&"object"==typeof o&&o.constructor===Object?t[n]=M(o):t[n]=o)}return t}function k(e,t){for(;null!==e;){const n=s(e,t);if(n){if(n.get)return R(n.get);if("function"==typeof n.value)return R(n.value)}e=l(e)}return function(){return null}}const D=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),F=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),I=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),z=c(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),U=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=c(["#text"]),W=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),B=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),G=c(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),j=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Y=u(/<%[\w\W]*|[\w\W]*%>/gm),$=u(/\$\{[\w\W]*/gm),X=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),J=u(/^aria-[\-\w]+$/),V=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=u(/^(?:\w+script|data):/i),Z=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=u(/^html$/i),ee=u(/^[a-z][.\w]*(-[.\w]+)+$/i);var te=Object.freeze({__proto__:null,ARIA_ATTR:J,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:ee,DATA_ATTR:X,DOCTYPE_NAME:Q,ERB_EXPR:Y,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:K,MUSTACHE_EXPR:q,TMPLIT_EXPR:$});const ne=1,oe=3,ie=7,re=8,ae=9,le=function(){return"undefined"==typeof window?null:window},se=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};var ce,ue,de=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:le();const n=t=>e(t);if(n.version="3.2.4",n.removed=[],!t||!t.document||t.document.nodeType!==ae||!t.Element)return n.isSupported=!1,n;let{document:o}=t;const r=o,a=r.currentScript,{DocumentFragment:l,HTMLTemplateElement:s,Node:u,Element:m,NodeFilter:p,NamedNodeMap:O=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:R,DOMParser:C,trustedTypes:q}=t,Y=m.prototype,$=k(Y,"cloneNode"),X=k(Y,"remove"),J=k(Y,"nextSibling"),K=k(Y,"childNodes"),Z=k(Y,"parentNode");if("function"==typeof s){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ee,ce="";const{implementation:ue,createNodeIterator:de,createDocumentFragment:me,getElementsByTagName:pe}=o,{importNode:fe}=r;let he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof Z&&ue&&void 0!==ue.createHTMLDocument;const{MUSTACHE_EXPR:ge,ERB_EXPR:ye,TMPLIT_EXPR:we,DATA_ATTR:_e,ARIA_ATTR:ve,IS_SCRIPT_OR_DATA:Te,ATTR_WHITESPACE:Ae,CUSTOM_ELEMENT:Ee}=te;let{IS_ALLOWED_URI:be}=te,Se=null;const Ne=L({},[...D,...F,...I,...P,...H]);let xe=null;const Oe=L({},[...W,...B,...G,...j]);let Re=Object.seal(d(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Le=null,Ce=null,Me=!0,ke=!0,De=!1,Fe=!0,Ie=!1,ze=!0,Pe=!1,Ue=!1,He=!1,We=!1,Be=!1,Ge=!1,je=!0,qe=!1;const Ye="user-content-";let $e=!0,Xe=!1,Je={},Ve=null;const Ke=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ze=null;const Qe=L({},["audio","video","img","source","image","track"]);let et=null;const tt=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml";let rt=it,at=!1,lt=null;const st=L({},[nt,ot,it],v);let ct=L({},["mi","mo","mn","ms","mtext"]),ut=L({},["annotation-xml"]);const dt=L({},["title","style","font","a","script"]);let mt=null;const pt=["application/xhtml+xml","text/html"],ft="text/html";let ht=null,gt=null;const yt=o.createElement("form"),wt=function(e){return e instanceof RegExp||e instanceof Function},_t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!gt||gt!==e){if(e&&"object"==typeof e||(e={}),e=M(e),mt=-1===pt.indexOf(e.PARSER_MEDIA_TYPE)?ft:e.PARSER_MEDIA_TYPE,ht="application/xhtml+xml"===mt?v:_,Se=S(e,"ALLOWED_TAGS")?L({},e.ALLOWED_TAGS,ht):Ne,xe=S(e,"ALLOWED_ATTR")?L({},e.ALLOWED_ATTR,ht):Oe,lt=S(e,"ALLOWED_NAMESPACES")?L({},e.ALLOWED_NAMESPACES,v):st,et=S(e,"ADD_URI_SAFE_ATTR")?L(M(tt),e.ADD_URI_SAFE_ATTR,ht):tt,Ze=S(e,"ADD_DATA_URI_TAGS")?L(M(Qe),e.ADD_DATA_URI_TAGS,ht):Qe,Ve=S(e,"FORBID_CONTENTS")?L({},e.FORBID_CONTENTS,ht):Ke,Le=S(e,"FORBID_TAGS")?L({},e.FORBID_TAGS,ht):{},Ce=S(e,"FORBID_ATTR")?L({},e.FORBID_ATTR,ht):{},Je=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,Me=!1!==e.ALLOW_ARIA_ATTR,ke=!1!==e.ALLOW_DATA_ATTR,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Fe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ie=e.SAFE_FOR_TEMPLATES||!1,ze=!1!==e.SAFE_FOR_XML,Pe=e.WHOLE_DOCUMENT||!1,We=e.RETURN_DOM||!1,Be=e.RETURN_DOM_FRAGMENT||!1,Ge=e.RETURN_TRUSTED_TYPE||!1,He=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,qe=e.SANITIZE_NAMED_PROPS||!1,$e=!1!==e.KEEP_CONTENT,Xe=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||V,rt=e.NAMESPACE||it,ct=e.MATHML_TEXT_INTEGRATION_POINTS||ct,ut=e.HTML_INTEGRATION_POINTS||ut,Re=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&wt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Re.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&wt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Re.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Re.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(ke=!1),Be&&(We=!0),Je&&(Se=L({},H),xe=[],!0===Je.html&&(L(Se,D),L(xe,W)),!0===Je.svg&&(L(Se,F),L(xe,B),L(xe,j)),!0===Je.svgFilters&&(L(Se,I),L(xe,B),L(xe,j)),!0===Je.mathMl&&(L(Se,P),L(xe,G),L(xe,j))),e.ADD_TAGS&&(Se===Ne&&(Se=M(Se)),L(Se,e.ADD_TAGS,ht)),e.ADD_ATTR&&(xe===Oe&&(xe=M(xe)),L(xe,e.ADD_ATTR,ht)),e.ADD_URI_SAFE_ATTR&&L(et,e.ADD_URI_SAFE_ATTR,ht),e.FORBID_CONTENTS&&(Ve===Ke&&(Ve=M(Ve)),L(Ve,e.FORBID_CONTENTS,ht)),$e&&(Se["#text"]=!0),Pe&&L(Se,["html","head","body"]),Se.table&&(L(Se,["tbody"]),delete Le.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ee=e.TRUSTED_TYPES_POLICY,ce=ee.createHTML("")}else void 0===ee&&(ee=se(q,a)),null!==ee&&"string"==typeof ce&&(ce=ee.createHTML(""));c&&c(e),gt=e}},vt=L({},[...F,...I,...z]),Tt=L({},[...P,...U]),At=function(e){let t=Z(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});const n=_(e.tagName),o=_(t.tagName);return!!lt[e.namespaceURI]&&(e.namespaceURI===ot?t.namespaceURI===it?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===o||ct[o]):Boolean(vt[n]):e.namespaceURI===nt?t.namespaceURI===it?"math"===n:t.namespaceURI===ot?"math"===n&&ut[o]:Boolean(Tt[n]):e.namespaceURI===it?!(t.namespaceURI===ot&&!ut[o])&&(!(t.namespaceURI===nt&&!ct[o])&&(!Tt[n]&&(dt[n]||!vt[n]))):!("application/xhtml+xml"!==mt||!lt[e.namespaceURI]))},Et=function(e){y(n.removed,{element:e});try{Z(e).removeChild(e)}catch(t){X(e)}},bt=function(e,t){try{y(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){y(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(We||Be)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},St=function(e){let t=null,n=null;if(He)e="<remove></remove>"+e;else{const t=T(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===mt&&rt===it&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=ee?ee.createHTML(e):e;if(rt===it)try{t=(new C).parseFromString(i,mt)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(rt,"template",null);try{t.documentElement.innerHTML=at?ce:i}catch(e){}}const r=t.body||t.documentElement;return e&&n&&r.insertBefore(o.createTextNode(n),r.childNodes[0]||null),rt===it?pe.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:r},Nt=function(e){return de.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},xt=function(e){return e instanceof R&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof O)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ot=function(e){return"function"==typeof u&&e instanceof u};function Rt(e,t,o){f(e,(e=>{e.call(n,t,o,gt)}))}const Lt=function(e){let t=null;if(Rt(he.beforeSanitizeElements,e,null),xt(e))return Et(e),!0;const o=ht(e.nodeName);if(Rt(he.uponSanitizeElement,e,{tagName:o,allowedTags:Se}),e.hasChildNodes()&&!Ot(e.firstElementChild)&&N(/<[/\w]/g,e.innerHTML)&&N(/<[/\w]/g,e.textContent))return Et(e),!0;if(e.nodeType===ie)return Et(e),!0;if(ze&&e.nodeType===re&&N(/<[/\w]/g,e.data))return Et(e),!0;if(!Se[o]||Le[o]){if(!Le[o]&&Mt(o)){if(Re.tagNameCheck instanceof RegExp&&N(Re.tagNameCheck,o))return!1;if(Re.tagNameCheck instanceof Function&&Re.tagNameCheck(o))return!1}if($e&&!Ve[o]){const t=Z(e)||e.parentNode,n=K(e)||e.childNodes;if(n&&t){for(let o=n.length-1;o>=0;--o){const i=$(n[o],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,J(e))}}}return Et(e),!0}return e instanceof m&&!At(e)?(Et(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!N(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ie&&e.nodeType===oe&&(t=e.textContent,f([ge,ye,we],(e=>{t=A(t,e," ")})),e.textContent!==t&&(y(n.removed,{element:e.cloneNode()}),e.textContent=t)),Rt(he.afterSanitizeElements,e,null),!1):(Et(e),!0)},Ct=function(e,t,n){if(je&&("id"===t||"name"===t)&&(n in o||n in yt))return!1;if(ke&&!Ce[t]&&N(_e,t));else if(Me&&N(ve,t));else if(!xe[t]||Ce[t]){if(!(Mt(e)&&(Re.tagNameCheck instanceof RegExp&&N(Re.tagNameCheck,e)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(e))&&(Re.attributeNameCheck instanceof RegExp&&N(Re.attributeNameCheck,t)||Re.attributeNameCheck instanceof Function&&Re.attributeNameCheck(t))||"is"===t&&Re.allowCustomizedBuiltInElements&&(Re.tagNameCheck instanceof RegExp&&N(Re.tagNameCheck,n)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(n))))return!1}else if(et[t]);else if(N(be,A(n,Ae,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!Ze[e]){if(De&&!N(Te,A(n,Ae,"")));else if(n)return!1}else;return!0},Mt=function(e){return"annotation-xml"!==e&&T(e,Ee)},kt=function(e){Rt(he.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||xt(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe,forceKeepAttr:void 0};let i=t.length;for(;i--;){const r=t[i],{name:a,namespaceURI:l,value:s}=r,c=ht(a);let u="value"===a?s:b(s);if(o.attrName=c,o.attrValue=u,o.keepAttr=!0,o.forceKeepAttr=void 0,Rt(he.uponSanitizeAttribute,e,o),u=o.attrValue,!qe||"id"!==c&&"name"!==c||(bt(a,e),u=Ye+u),ze&&N(/((--!?|])>)|<\/(style|title)/i,u)){bt(a,e);continue}if(o.forceKeepAttr)continue;if(bt(a,e),!o.keepAttr)continue;if(!Fe&&N(/\/>/i,u)){bt(a,e);continue}Ie&&f([ge,ye,we],(e=>{u=A(u,e," ")}));const d=ht(e.nodeName);if(Ct(d,c,u)){if(ee&&"object"==typeof q&&"function"==typeof q.getAttributeType)if(l);else switch(q.getAttributeType(d,c)){case"TrustedHTML":u=ee.createHTML(u);break;case"TrustedScriptURL":u=ee.createScriptURL(u)}try{l?e.setAttributeNS(l,a,u):e.setAttribute(a,u),xt(e)?Et(e):g(n.removed)}catch(e){}}}Rt(he.afterSanitizeAttributes,e,null)},Dt=function e(t){let n=null;const o=Nt(t);for(Rt(he.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)Rt(he.uponSanitizeShadowNode,n,null),Lt(n),kt(n),n.content instanceof l&&e(n.content);Rt(he.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,a=null,s=null;if(at=!e,at&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ot(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ue||_t(t),n.removed=[],"string"==typeof e&&(Xe=!1),Xe){if(e.nodeName){const t=ht(e.nodeName);if(!Se[t]||Le[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof u)o=St("\x3c!----\x3e"),i=o.ownerDocument.importNode(e,!0),i.nodeType===ne&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!We&&!Ie&&!Pe&&-1===e.indexOf("<"))return ee&&Ge?ee.createHTML(e):e;if(o=St(e),!o)return We?null:Ge?ce:""}o&&He&&Et(o.firstChild);const c=Nt(Xe?e:o);for(;a=c.nextNode();)Lt(a),kt(a),a.content instanceof l&&Dt(a.content);if(Xe)return e;if(We){if(Be)for(s=me.call(o.ownerDocument);o.firstChild;)s.appendChild(o.firstChild);else s=o;return(xe.shadowroot||xe.shadowrootmode)&&(s=fe.call(r,s,!0)),s}let d=Pe?o.outerHTML:o.innerHTML;return Pe&&Se["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&N(Q,o.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+d),Ie&&f([ge,ye,we],(e=>{d=A(d,e," ")})),ee&&Ge?ee.createHTML(d):d},n.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_t(e),Ue=!0},n.clearConfig=function(){gt=null,Ue=!1},n.isValidAttribute=function(e,t,n){gt||_t({});const o=ht(e),i=ht(t);return Ct(o,i,n)},n.addHook=function(e,t){"function"==typeof t&&y(he[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=h(he[e],t);return-1===n?void 0:w(he[e],n,1)[0]}return g(he[e])},n.removeHooks=function(e){he[e]=[]},n.removeAllHooks=function(){he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function me(){if(null==ce){var e=function(){var e=window.location;"about:srcdoc"==e.href&&(e=window.parent.location);var t={};return function(e,n,o){for(;o=n.exec(e);)t[decodeURIComponent(o[1])]=decodeURIComponent(o[2])}(e.search.substring(1).replace(/\+/g,"%20"),/([^&=]+)=?([^&]*)/g),t}();ce="referrer"in e?/^https:\/\/medium.com\//.test(e.referrer):!("auto"in e)}return ce}function pe(e){var t=e||window.innerWidth;return t>999?650:t>599?575:400}function fe(e){if(e&&window.top!==window.self){var t=window;"srcdoc"==t.location.pathname&&(t=t.parent);var n={sender:"Flourish",method:"scrolly",captions:e.captions,hasScrollyTransformFix:e.hasScrollyTransformFix};t.parent.postMessage(JSON.stringify(n),"*")}}function he(e,t){if(window.top!==window.self){var n=window;if("srcdoc"==n.location.pathname&&(n=n.parent),ue)return e=parseInt(e,10),void n.parent.postMessage({sentinel:"amp",type:"embed-size",height:e},"*");var o={sender:"Flourish",context:"iframe.resize",method:"resize",height:e,src:n.location.toString()};if(t)for(var i in t)o[i]=t[i];n.parent.postMessage(JSON.stringify(o),"*")}}function ge(){return(-1!==navigator.userAgent.indexOf("Safari")||-1!==navigator.userAgent.indexOf("iPhone"))&&-1==navigator.userAgent.indexOf("Chrome")}function ye(e){return"string"==typeof e||e instanceof String}function we(e){return"warn"!==e.method?(console.warn("BUG: validateWarnMessage called for method"+e.method),!1):!(null!=e.message&&!ye(e.message))&&!(null!=e.explanation&&!ye(e.explanation))}function _e(e){return"resize"!==e.method?(console.warn("BUG: validateResizeMessage called for method"+e.method),!1):!!ye(e.src)&&(!!ye(e.context)&&!!("number"==typeof(t=e.height)?!isNaN(t)&&t>=0:ye(t)&&/\d/.test(t)&&/^[0-9]*(\.[0-9]*)?(cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%)?$/i.test(t)));var t}function ve(e){throw new Error("Validation for setSetting is not implemented yet; see issue #4328")}function Te(e){return"scrolly"!==e.method?(console.warn("BUG: validateScrolly called for method"+e.method),!1):!!Array.isArray(e.captions)}function Ae(e){return"customerAnalytics"===e.method||(console.warn("BUG: validateCustomerAnalyticsMessage called for method"+e.method),!1)}function Ee(e){return"request-upload"!==e.method?(console.warn("BUG: validateResizeMessage called for method"+e.method),!1):!!ye(e.name)&&!(null!=e.accept&&!ye(e.accept))}function be(e,t,n){var o=function(e){for(var t={warn:we,resize:_e,setSetting:ve,customerAnalytics:Ae,"request-upload":Ee,scrolly:Te},n={},o=0;o<e.length;o++){var i=e[o];if(!t[i])throw new Error("No validator found for method "+i);n[i]=t[i]}return n}(t);window.addEventListener("message",(function(t){var i=function(){if(t.origin==document.location.origin)return!0;if(n){const e=t.origin.toLowerCase();if(n=n.toLowerCase(),e.endsWith("//"+n))return!0;if(e.endsWith("."+n))return!0}return!!t.origin.match(/\/\/localhost:\d+$|\/\/(?:public|app)\.flourish.devlocal$|\/\/flourish-api\.com$|\.flourish\.(?:local(:\d+)?|net|rocks|studio)$|\.uri\.sh$|\/\/flourish-user-templates\.com$/)}();if(null!=t.source&&i){var r;try{r="object"==typeof t.data?t.data:JSON.parse(t.data)}catch(e){return void console.warn("Unexpected non-JSON message: "+JSON.stringify(t.data))}if("Flourish"===r.sender)if(r.method)if(Object.prototype.hasOwnProperty.call(o,r.method))if(o[r.method](r)){for(var a=document.querySelectorAll("iframe"),l=0;l<a.length;l++)if(a[l].contentWindow==t.source||a[l].contentWindow==t.source.parent)return void e(r,a[l]);console.warn("could not find frame",r)}else console.warn("Validation failed for the message",r);else console.warn("No validator implemented for message",r);else console.warn("The 'method' property was missing from message",r)}})),ge()&&(window.addEventListener("resize",Se),Se())}function Se(){for(var e=document.querySelectorAll(".flourish-embed"),t=0;t<e.length;t++){var n=e[t];if(!n.getAttribute("data-width")){var o=n.querySelector("iframe");if(o){var i=window.getComputedStyle(n),r=n.offsetWidth-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight);o.style.width=r+"px"}}}}function Ne(e,t,n){var o=e.parentNode;if(o.classList.contains("fl-scrolly-wrapper"))return void console.warn("createScrolly is being called more than once per story. This should not happen.");o.classList.add("fl-scrolly-wrapper"),o.style.position="relative",o.style.paddingBottom="1px",o.style.transform="translate3d(0, 0, 0)";const i=navigator.platform.indexOf("Win")>-1,r=!!window.chrome&&(navigator.userAgent.indexOf("Chrome")>-1||navigator.userAgent.indexOf("Edg")>-1||navigator.userAgent.indexOf("OPR")>-1);if(i&&r&&n){let e,t=0;window.addEventListener("scroll",(function(){clearTimeout(e),e=setTimeout((()=>{t=0===t?1:0,o.style.transform=`translateZ(${t}px)`}),100)}))}e.style.position="sticky";var a=o.getAttribute("data-height")||null;a||(a="80vh",e.style.height=a),e.style.top="calc(50vh - "+a+"/2)";var l=o.querySelector(".flourish-credit");l&&(l.style.position="sticky",l.style.top="calc(50vh + "+a+"/2)"),t.forEach((function(e,t){var n="string"==typeof e&&""!=e.trim(),i=document.createElement("div");i.setAttribute("data-slide",t),i.classList.add("fl-scrolly-caption"),i.style.position="relative",i.style.transform="translate3d(0,0,0)",i.style.textAlign="center",i.style.maxWidth="500px",i.style.height="auto",i.style.marginTop="0",i.style.marginBottom=n?"100vh":"50vh",i.style.marginLeft="auto",i.style.marginRight="auto";var r=document.createElement("div");r.innerHTML=de.sanitize(e,{ADD_ATTR:["target"]}),r.style.visibility=n?"":"hidden",r.style.display="inline-block",r.style.paddingTop="1.25em",r.style.paddingRight="1.25em",r.style.paddingBottom="1.25em",r.style.paddingLeft="1.25em",r.style.background="rgba(255,255,255,0.9)",r.style.boxShadow="0px 0px 10px rgba(0,0,0,0.2)",r.style.borderRadius="10px",r.style.textAlign="center",r.style.maxWidth="100%",r.style.margin="0 20px",r.style.overflowX="hidden",i.appendChild(r),o.appendChild(i)})),function(e){for(var t=new IntersectionObserver((function(t){t.forEach((function(t){if(t.isIntersecting){var n=e.querySelector("iframe");n&&(n.src=n.src.replace(/#slide-.*/,"")+"#slide-"+t.target.getAttribute("data-slide"))}}))}),{rootMargin:"0px 0px -0% 0px"}),n=e.querySelectorAll(".fl-scrolly-caption"),o=0;o<n.length;o++)t.observe(n[o]);e.querySelectorAll(".fl-scrolly-caption img").forEach((function(e){e.style.maxWidth="100%"}))}(o)}function xe(e,t,n,o,i){var r=document.createElement("iframe");if(r.setAttribute("scrolling","no"),r.setAttribute("frameborder","0"),r.setAttribute("title","Interactive or visual content"),r.setAttribute("sandbox","allow-same-origin allow-forms allow-scripts allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation"),t.appendChild(r),r.offsetParent||"fixed"===getComputedStyle(r).position)Oe(e,t,r,n,o,i);else{var a={embed_url:e,container:t,iframe:r,width:n,height:o,play_on_load:i};if(window._flourish_poll_items?window._flourish_poll_items.push(a):window._flourish_poll_items=[a],window._flourish_poll_items.length>1)return r;var l=setInterval((function(){window._flourish_poll_items=window._flourish_poll_items.filter((function(e){return!e.iframe.offsetParent||(Oe(e.embed_url,e.container,e.iframe,e.width,e.height,e.play_on_load),!1)})),window._flourish_poll_items.length||clearInterval(l)}),500)}return r}function Oe(e,t,n,o,i,r){var a;return o&&"number"==typeof o?(a=o,o+="px"):o&&o.match(/^[ \t\r\n\f]*([+-]?\d+|\d*\.\d+(?:[eE][+-]?\d+)?)(?:\\?[Pp]|\\0{0,4}[57]0(?:\r\n|[ \t\r\n\f])?)(?:\\?[Xx]|\\0{0,4}[57]8(?:\r\n|[ \t\r\n\f])?)[ \t\r\n\f]*$/)&&(a=parseFloat(o)),i&&"number"==typeof i&&(i+="px"),o?n.style.width=o:ge()?n.style.width=t.offsetWidth+"px":n.style.width="100%",!!i||(e.match(/\?/)?e+="&auto=1":e+="?auto=1",i=pe(a||n.offsetWidth)+"px"),i&&("%"===i.charAt(i.length-1)&&(i=parseFloat(i)/100*t.parentNode.offsetHeight+"px"),n.style.height=i),n.setAttribute("src",e+(r?"#play-on-load":"")),n}function Re(e){return!Array.isArray(e)&&"object"==typeof e&&null!=e}function Le(e,t){for(const n in t)Re(e[n])&&Re(t[n])?Le(e[n],t[n]):e[n]=t[n];return e}!function(){var e,i=window.top===window.self,r=i?null:(ue="#amp=1"==window.location.hash,{createEmbedIframe:xe,isFixedHeight:me,getHeightForBreakpoint:pe,startEventListeners:be,notifyParentWindow:he,initScrolly:fe,createScrolly:Ne,isSafari:ge,initCustomerAnalytics:o,addAnalyticsListener:n,sendCustomerAnalyticsMessage:t}),a=!0;function l(){var t;Flourish.fixed_height||(null!=e?t=e:a&&(t=r.getHeightForBreakpoint()),t!==window.innerHeight&&r.notifyParentWindow(t))}function s(){-1!==window.location.search.indexOf("enable_customer_analytics=1")&&Flourish.enableCustomerAnalytics(),l(),window.addEventListener("resize",l)}Flourish.warn=function(e){if("string"==typeof e&&(e={message:e}),i||"editor"!==Flourish.environment)console.warn(e.message);else{var t={sender:"Flourish",method:"warn",message:e.message,explanation:e.explanation};window.parent.postMessage(JSON.stringify(t),"*")}},Flourish.uploadImage=function(e){if(i||"story_editor"!==Flourish.environment)throw"Invalid upload request";var t={sender:"Flourish",method:"request-upload",name:e.name,accept:e.accept};window.parent.postMessage(JSON.stringify(t),"*")},Flourish.setSetting=function(e,t){if("editor"===Flourish.environment||"sdk"===Flourish.environment){var n={sender:"Flourish",method:"setSetting",name:e,value:t};window.parent.postMessage(JSON.stringify(n),"*")}else if("story_editor"===Flourish.environment){var o={};o[e]=t,Le(window.template.state,function(e){var t=Object.create(null);for(var n in e){for(var o=t,i=n.indexOf("."),r=0;i>=0;i=n.indexOf(".",r=i+1)){var a=n.substring(r,i);a in o||(o[a]=Object.create(null)),o=o[a]}o[n.substring(r)]=e[n]}return t}(o))}},Flourish.setHeight=function(t){Flourish.fixed_height||(e=t,a=null==t,l())},Flourish.checkHeight=function(){if(!i){var e=Flourish.__container_height;null!=e?(Flourish.fixed_height=!0,r.notifyParentWindow(e)):r.isFixedHeight()?Flourish.fixed_height=!0:(Flourish.fixed_height=!1,l())}},Flourish.fixed_height=i||r.isFixedHeight(),Flourish.enableCustomerAnalytics=function(){r&&r.initCustomerAnalytics()},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",s):s()}()}();
|
|
3
3
|
//# sourceMappingURL=embedded.js.map
|
package/site/favicon.ico
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|