@supersoniks/concorde 4.9.96 → 4.9.97-visual-stack.0
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/README.md +34 -17
- package/build-infos.json +1 -1
- package/concorde-3d.bundle.js +3911 -0
- package/concorde-3d.es.js +32635 -0
- package/concorde-core.bundle.js +147 -147
- package/concorde-core.es.js +4375 -4282
- package/concorde-hugging-face-infer.bundle.js +32 -0
- package/concorde-hugging-face-infer.es.js +2952 -0
- package/concorde-shader.bundle.js +105 -0
- package/concorde-shader.es.js +7982 -0
- package/concorde-webgpu.bundle.js +296 -0
- package/concorde-webgpu.es.js +8268 -0
- package/dist/concorde-3d.bundle.js +3911 -0
- package/dist/concorde-3d.es.js +32635 -0
- package/dist/concorde-core.bundle.js +147 -147
- package/dist/concorde-core.es.js +4375 -4282
- package/dist/concorde-hugging-face-infer.bundle.js +32 -0
- package/dist/concorde-hugging-face-infer.es.js +2952 -0
- package/dist/concorde-shader.bundle.js +105 -0
- package/dist/concorde-shader.es.js +7982 -0
- package/dist/concorde-webgpu.bundle.js +296 -0
- package/dist/concorde-webgpu.es.js +8268 -0
- package/dist/docs/hf-samples/beach.jpg +0 -0
- package/dist/docs/hf-samples/cats.jpg +0 -0
- package/dist/docs/hf-samples/corgi.jpg +0 -0
- package/dist/docs/hf-samples/portrait.jpg +0 -0
- package/dist/docs/hf-samples/scene.jpg +0 -0
- package/dist/docs/hf-samples/singer.jpg +0 -0
- package/dist/docs/shader-samples/color.jpg +0 -0
- package/dist/docs/shader-samples/depth.png +0 -0
- package/dist/docs/shader-samples/impact.jpg +0 -0
- package/dist/docs/shader-samples/video.webm +0 -0
- package/dist/js/addons/3d.js +6 -0
- package/dist/js/addons/3d.js.map +1 -0
- package/dist/js/addons/hugging-face-infer.js +8 -0
- package/dist/js/addons/hugging-face-infer.js.map +1 -0
- package/dist/js/addons/shader.js +6 -0
- package/dist/js/addons/shader.js.map +1 -0
- package/dist/js/addons/webgpu.js +7 -0
- package/dist/js/addons/webgpu.js.map +1 -0
- package/dist/js/components.js +12 -0
- package/dist/js/components.js.map +1 -0
- package/dist/js/concorde-loaded.js +5 -0
- package/dist/js/concorde-loaded.js.map +1 -0
- package/dist/js/core/_types/endpoint.js +5 -0
- package/dist/js/core/_types/endpoint.js.map +1 -0
- package/dist/js/core/_types/key.js +2 -0
- package/dist/js/core/_types/key.js.map +1 -0
- package/dist/js/core/_types/types.js +3 -0
- package/dist/js/core/_types/types.js.map +1 -0
- package/dist/js/core/components/functional/3d/3d.js +151 -0
- package/dist/js/core/components/functional/3d/3d.js.map +1 -0
- package/dist/js/core/components/functional/3d/asset.js +20 -0
- package/dist/js/core/components/functional/3d/asset.js.map +1 -0
- package/dist/js/core/components/functional/3d/boot.js +47 -0
- package/dist/js/core/components/functional/3d/boot.js.map +1 -0
- package/dist/js/core/components/functional/3d/constants.js +88 -0
- package/dist/js/core/components/functional/3d/constants.js.map +1 -0
- package/dist/js/core/components/functional/3d/demo-content.js +38 -0
- package/dist/js/core/components/functional/3d/demo-content.js.map +1 -0
- package/dist/js/core/components/functional/3d/ensure.js +73 -0
- package/dist/js/core/components/functional/3d/ensure.js.map +1 -0
- package/dist/js/core/components/functional/3d/form-bind.js +25 -0
- package/dist/js/core/components/functional/3d/form-bind.js.map +1 -0
- package/dist/js/core/components/functional/3d/form-fields.js +76 -0
- package/dist/js/core/components/functional/3d/form-fields.js.map +1 -0
- package/dist/js/core/components/functional/3d/form-params.js +67 -0
- package/dist/js/core/components/functional/3d/form-params.js.map +1 -0
- package/dist/js/core/components/functional/3d/frame-capture.js +108 -0
- package/dist/js/core/components/functional/3d/frame-capture.js.map +1 -0
- package/dist/js/core/components/functional/3d/gl.js +34 -0
- package/dist/js/core/components/functional/3d/gl.js.map +1 -0
- package/dist/js/core/components/functional/3d/life.js +55 -0
- package/dist/js/core/components/functional/3d/life.js.map +1 -0
- package/dist/js/core/components/functional/3d/load.js +109 -0
- package/dist/js/core/components/functional/3d/load.js.map +1 -0
- package/dist/js/core/components/functional/3d/ops.js +78 -0
- package/dist/js/core/components/functional/3d/ops.js.map +1 -0
- package/dist/js/core/components/functional/3d/opts.js +2 -0
- package/dist/js/core/components/functional/3d/opts.js.map +1 -0
- package/dist/js/core/components/functional/3d/orbit.js +136 -0
- package/dist/js/core/components/functional/3d/orbit.js.map +1 -0
- package/dist/js/core/components/functional/3d/out-publish.js +103 -0
- package/dist/js/core/components/functional/3d/out-publish.js.map +1 -0
- package/dist/js/core/components/functional/3d/parse.js +95 -0
- package/dist/js/core/components/functional/3d/parse.js.map +1 -0
- package/dist/js/core/components/functional/3d/pick.js +62 -0
- package/dist/js/core/components/functional/3d/pick.js.map +1 -0
- package/dist/js/core/components/functional/3d/playback.js +56 -0
- package/dist/js/core/components/functional/3d/playback.js.map +1 -0
- package/dist/js/core/components/functional/3d/pointer.js +58 -0
- package/dist/js/core/components/functional/3d/pointer.js.map +1 -0
- package/dist/js/core/components/functional/3d/props.js +105 -0
- package/dist/js/core/components/functional/3d/props.js.map +1 -0
- package/dist/js/core/components/functional/3d/publisher-listen.js +6 -0
- package/dist/js/core/components/functional/3d/publisher-listen.js.map +1 -0
- package/dist/js/core/components/functional/3d/reload.js +60 -0
- package/dist/js/core/components/functional/3d/reload.js.map +1 -0
- package/dist/js/core/components/functional/3d/runtime.js +116 -0
- package/dist/js/core/components/functional/3d/runtime.js.map +1 -0
- package/dist/js/core/components/functional/3d/scene-runtime.js +6 -0
- package/dist/js/core/components/functional/3d/scene-runtime.js.map +1 -0
- package/dist/js/core/components/functional/3d/snapshot.js +47 -0
- package/dist/js/core/components/functional/3d/snapshot.js.map +1 -0
- package/dist/js/core/components/functional/3d/styles.js +38 -0
- package/dist/js/core/components/functional/3d/styles.js.map +1 -0
- package/dist/js/core/components/functional/3d/tune.js +42 -0
- package/dist/js/core/components/functional/3d/tune.js.map +1 -0
- package/dist/js/core/components/functional/3d/types.js +8 -0
- package/dist/js/core/components/functional/3d/types.js.map +1 -0
- package/dist/js/core/components/functional/3d/updated.js +58 -0
- package/dist/js/core/components/functional/3d/updated.js.map +1 -0
- package/dist/js/core/components/functional/3d/view.js +40 -0
- package/dist/js/core/components/functional/3d/view.js.map +1 -0
- package/dist/js/core/components/functional/3d/wire.js +34 -0
- package/dist/js/core/components/functional/3d/wire.js.map +1 -0
- package/dist/js/core/components/functional/date/date.js +272 -0
- package/dist/js/core/components/functional/date/date.js.map +1 -0
- package/dist/js/core/components/functional/example/example.js +44 -0
- package/dist/js/core/components/functional/example/example.js.map +1 -0
- package/dist/js/core/components/functional/fetch/fetch.js +79 -0
- package/dist/js/core/components/functional/fetch/fetch.js.map +1 -0
- package/dist/js/core/components/functional/functional.js +18 -0
- package/dist/js/core/components/functional/functional.js.map +1 -0
- package/dist/js/core/components/functional/if/if.js +39 -0
- package/dist/js/core/components/functional/if/if.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-cache.js +183 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-cache.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-config.js +50 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-config.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-controller.js +460 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-controller.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-engine.js +116 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-engine.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-input.js +170 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-input.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-protocol.js +2 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-protocol.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-registry.js +367 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-registry.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-schema.js +288 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-schema.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-worker-runtime.js +309 -0
- package/dist/js/core/components/functional/infer/hugging-face/hf-worker-runtime.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hugging-face-infer.js +213 -0
- package/dist/js/core/components/functional/infer/hugging-face/hugging-face-infer.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/hugging-face.js +76 -0
- package/dist/js/core/components/functional/infer/hugging-face/hugging-face.js.map +1 -0
- package/dist/js/core/components/functional/infer/hugging-face/types.js +62 -0
- package/dist/js/core/components/functional/infer/hugging-face/types.js.map +1 -0
- package/dist/js/core/components/functional/jsonata/jsonata.js +119 -0
- package/dist/js/core/components/functional/jsonata/jsonata.js.map +1 -0
- package/dist/js/core/components/functional/list/list.js +341 -0
- package/dist/js/core/components/functional/list/list.js.map +1 -0
- package/dist/js/core/components/functional/mix/mix.js +103 -0
- package/dist/js/core/components/functional/mix/mix.js.map +1 -0
- package/dist/js/core/components/functional/queue/queue.js +450 -0
- package/dist/js/core/components/functional/queue/queue.js.map +1 -0
- package/dist/js/core/components/functional/router/redirect.js +54 -0
- package/dist/js/core/components/functional/router/redirect.js.map +1 -0
- package/dist/js/core/components/functional/router/router.js +179 -0
- package/dist/js/core/components/functional/router/router.js.map +1 -0
- package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js +216 -0
- package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js.map +1 -0
- package/dist/js/core/components/functional/sdui/default-library.json +108 -0
- package/dist/js/core/components/functional/sdui/sdui-utils.js +64 -0
- package/dist/js/core/components/functional/sdui/sdui-utils.js.map +1 -0
- package/dist/js/core/components/functional/sdui/sdui.js +271 -0
- package/dist/js/core/components/functional/sdui/sdui.js.map +1 -0
- package/dist/js/core/components/functional/sdui/types.js +2 -0
- package/dist/js/core/components/functional/sdui/types.js.map +1 -0
- package/dist/js/core/components/functional/shader/gl-runtime.js +603 -0
- package/dist/js/core/components/functional/shader/gl-runtime.js.map +1 -0
- package/dist/js/core/components/functional/shader/shader.js +1593 -0
- package/dist/js/core/components/functional/shader/shader.js.map +1 -0
- package/dist/js/core/components/functional/shader/shadertoy-prelude.js +48 -0
- package/dist/js/core/components/functional/shader/shadertoy-prelude.js.map +1 -0
- package/dist/js/core/components/functional/shader/types.js +179 -0
- package/dist/js/core/components/functional/shader/types.js.map +1 -0
- package/dist/js/core/components/functional/sonic-scope/sonic-scope.js +22 -0
- package/dist/js/core/components/functional/sonic-scope/sonic-scope.js.map +1 -0
- package/dist/js/core/components/functional/states/states.js +172 -0
- package/dist/js/core/components/functional/states/states.js.map +1 -0
- package/dist/js/core/components/functional/submit/submit.js +284 -0
- package/dist/js/core/components/functional/submit/submit.js.map +1 -0
- package/dist/js/core/components/functional/subscriber/subscriber.js +39 -0
- package/dist/js/core/components/functional/subscriber/subscriber.js.map +1 -0
- package/dist/js/core/components/functional/translation/translation.js +28 -0
- package/dist/js/core/components/functional/translation/translation.js.map +1 -0
- package/dist/js/core/components/functional/value/value.js +28 -0
- package/dist/js/core/components/functional/value/value.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/canvas2d-fallback.js +117 -0
- package/dist/js/core/components/functional/webgpu/canvas2d-fallback.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/form-bind.js +92 -0
- package/dist/js/core/components/functional/webgpu/form-bind.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/gl-fallback.js +135 -0
- package/dist/js/core/components/functional/webgpu/gl-fallback.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/gpu-runtime.js +305 -0
- package/dist/js/core/components/functional/webgpu/gpu-runtime.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/helpers.js +44 -0
- package/dist/js/core/components/functional/webgpu/helpers.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/out-frame.js +117 -0
- package/dist/js/core/components/functional/webgpu/out-frame.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/particles-runtime.js +407 -0
- package/dist/js/core/components/functional/webgpu/particles-runtime.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/pointer.js +56 -0
- package/dist/js/core/components/functional/webgpu/pointer.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/types.js +24 -0
- package/dist/js/core/components/functional/webgpu/types.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/webgpu.js +667 -0
- package/dist/js/core/components/functional/webgpu/webgpu.js.map +1 -0
- package/dist/js/core/components/functional/webgpu/wgsl-prelude.js +77 -0
- package/dist/js/core/components/functional/webgpu/wgsl-prelude.js.map +1 -0
- package/dist/js/core/components/ui/_css/scroll.js +27 -0
- package/dist/js/core/components/ui/_css/scroll.js.map +1 -0
- package/dist/js/core/components/ui/_css/shadow.js +22 -0
- package/dist/js/core/components/ui/_css/shadow.js.map +1 -0
- package/dist/js/core/components/ui/_css/size.js +36 -0
- package/dist/js/core/components/ui/_css/size.js.map +1 -0
- package/dist/js/core/components/ui/_css/type.js +92 -0
- package/dist/js/core/components/ui/_css/type.js.map +1 -0
- package/dist/js/core/components/ui/alert/alert.js +213 -0
- package/dist/js/core/components/ui/alert/alert.js.map +1 -0
- package/dist/js/core/components/ui/alert-messages/alert-messages.js +68 -0
- package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +1 -0
- package/dist/js/core/components/ui/badge/badge.js +199 -0
- package/dist/js/core/components/ui/badge/badge.js.map +1 -0
- package/dist/js/core/components/ui/button/button.js +697 -0
- package/dist/js/core/components/ui/button/button.js.map +1 -0
- package/dist/js/core/components/ui/captcha/altchaStyles.js +226 -0
- package/dist/js/core/components/ui/captcha/altchaStyles.js.map +1 -0
- package/dist/js/core/components/ui/captcha/captcha.js +167 -0
- package/dist/js/core/components/ui/captcha/captcha.js.map +1 -0
- package/dist/js/core/components/ui/card/card-footer.js +26 -0
- package/dist/js/core/components/ui/card/card-footer.js.map +1 -0
- package/dist/js/core/components/ui/card/card-header-descripton.js +30 -0
- package/dist/js/core/components/ui/card/card-header-descripton.js.map +1 -0
- package/dist/js/core/components/ui/card/card-header.js +79 -0
- package/dist/js/core/components/ui/card/card-header.js.map +1 -0
- package/dist/js/core/components/ui/card/card-main.js +26 -0
- package/dist/js/core/components/ui/card/card-main.js.map +1 -0
- package/dist/js/core/components/ui/card/card.js +67 -0
- package/dist/js/core/components/ui/card/card.js.map +1 -0
- package/dist/js/core/components/ui/divider/divider.js +200 -0
- package/dist/js/core/components/ui/divider/divider.js.map +1 -0
- package/dist/js/core/components/ui/form/checkbox/checkbox.js +257 -0
- package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +1 -0
- package/dist/js/core/components/ui/form/css/form-control.js +393 -0
- package/dist/js/core/components/ui/form/css/form-control.js.map +1 -0
- package/dist/js/core/components/ui/form/fieldset/fieldset.js +124 -0
- package/dist/js/core/components/ui/form/fieldset/fieldset.js.map +1 -0
- package/dist/js/core/components/ui/form/fieldset/legend-description.js +38 -0
- package/dist/js/core/components/ui/form/fieldset/legend-description.js.map +1 -0
- package/dist/js/core/components/ui/form/fieldset/legend.js +130 -0
- package/dist/js/core/components/ui/form/fieldset/legend.js.map +1 -0
- package/dist/js/core/components/ui/form/form-actions/form-actions.js +47 -0
- package/dist/js/core/components/ui/form/form-actions/form-actions.js.map +1 -0
- package/dist/js/core/components/ui/form/form-layout/form-layout.js +84 -0
- package/dist/js/core/components/ui/form/form-layout/form-layout.js.map +1 -0
- package/dist/js/core/components/ui/form/input/input.js +316 -0
- package/dist/js/core/components/ui/form/input/input.js.map +1 -0
- package/dist/js/core/components/ui/form/input/password-helper.js +134 -0
- package/dist/js/core/components/ui/form/input/password-helper.js.map +1 -0
- package/dist/js/core/components/ui/form/input/same-value-helper.js +85 -0
- package/dist/js/core/components/ui/form/input/same-value-helper.js.map +1 -0
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +405 -0
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +1 -0
- package/dist/js/core/components/ui/form/radio/radio.js +63 -0
- package/dist/js/core/components/ui/form/radio/radio.js.map +1 -0
- package/dist/js/core/components/ui/form/select/select.js +323 -0
- package/dist/js/core/components/ui/form/select/select.js.map +1 -0
- package/dist/js/core/components/ui/form/switch/switch.js +90 -0
- package/dist/js/core/components/ui/form/switch/switch.js.map +1 -0
- package/dist/js/core/components/ui/form/textarea/textarea.js +162 -0
- package/dist/js/core/components/ui/form/textarea/textarea.js.map +1 -0
- package/dist/js/core/components/ui/group/group.js +128 -0
- package/dist/js/core/components/ui/group/group.js.map +1 -0
- package/dist/js/core/components/ui/icon/icon.js +145 -0
- package/dist/js/core/components/ui/icon/icon.js.map +1 -0
- package/dist/js/core/components/ui/icon/icons.js +184 -0
- package/dist/js/core/components/ui/icon/icons.js.map +1 -0
- package/dist/js/core/components/ui/icon/icons.json +1 -0
- package/dist/js/core/components/ui/image/image.js +160 -0
- package/dist/js/core/components/ui/image/image.js.map +1 -0
- package/dist/js/core/components/ui/link/link.js +125 -0
- package/dist/js/core/components/ui/link/link.js.map +1 -0
- package/dist/js/core/components/ui/loader/loader.js +106 -0
- package/dist/js/core/components/ui/loader/loader.js.map +1 -0
- package/dist/js/core/components/ui/loader/styles/fixed.js +56 -0
- package/dist/js/core/components/ui/loader/styles/fixed.js.map +1 -0
- package/dist/js/core/components/ui/loader/styles/inline.js +70 -0
- package/dist/js/core/components/ui/loader/styles/inline.js.map +1 -0
- package/dist/js/core/components/ui/menu/menu-item.js +35 -0
- package/dist/js/core/components/ui/menu/menu-item.js.map +1 -0
- package/dist/js/core/components/ui/menu/menu.js +436 -0
- package/dist/js/core/components/ui/menu/menu.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-actions.js +44 -0
- package/dist/js/core/components/ui/modal/modal-actions.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-close.js +56 -0
- package/dist/js/core/components/ui/modal/modal-close.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-content.js +27 -0
- package/dist/js/core/components/ui/modal/modal-content.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-subtitle.js +34 -0
- package/dist/js/core/components/ui/modal/modal-subtitle.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-title.js +35 -0
- package/dist/js/core/components/ui/modal/modal-title.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-utils.js +32 -0
- package/dist/js/core/components/ui/modal/modal-utils.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal.js +568 -0
- package/dist/js/core/components/ui/modal/modal.js.map +1 -0
- package/dist/js/core/components/ui/pop/pop.js +337 -0
- package/dist/js/core/components/ui/pop/pop.js.map +1 -0
- package/dist/js/core/components/ui/progress/progress.js +164 -0
- package/dist/js/core/components/ui/progress/progress.js.map +1 -0
- package/dist/js/core/components/ui/table/table-caption.js +29 -0
- package/dist/js/core/components/ui/table/table-caption.js.map +1 -0
- package/dist/js/core/components/ui/table/table-tbody.js +41 -0
- package/dist/js/core/components/ui/table/table-tbody.js.map +1 -0
- package/dist/js/core/components/ui/table/table-td.js +69 -0
- package/dist/js/core/components/ui/table/table-td.js.map +1 -0
- package/dist/js/core/components/ui/table/table-tfoot.js +28 -0
- package/dist/js/core/components/ui/table/table-tfoot.js.map +1 -0
- package/dist/js/core/components/ui/table/table-th.js +80 -0
- package/dist/js/core/components/ui/table/table-th.js.map +1 -0
- package/dist/js/core/components/ui/table/table-thead.js +26 -0
- package/dist/js/core/components/ui/table/table-thead.js.map +1 -0
- package/dist/js/core/components/ui/table/table-tr.js +67 -0
- package/dist/js/core/components/ui/table/table-tr.js.map +1 -0
- package/dist/js/core/components/ui/table/table.js +106 -0
- package/dist/js/core/components/ui/table/table.js.map +1 -0
- package/dist/js/core/components/ui/theme/theme-collection/core-variables.js +74 -0
- package/dist/js/core/components/ui/theme/theme-collection/core-variables.js.map +1 -0
- package/dist/js/core/components/ui/theme/theme-collection/dark.js +39 -0
- package/dist/js/core/components/ui/theme/theme-collection/dark.js.map +1 -0
- package/dist/js/core/components/ui/theme/theme-collection/light.js +32 -0
- package/dist/js/core/components/ui/theme/theme-collection/light.js.map +1 -0
- package/dist/js/core/components/ui/theme/theme.js +150 -0
- package/dist/js/core/components/ui/theme/theme.js.map +1 -0
- package/dist/js/core/components/ui/toast/message-subscriber.js +41 -0
- package/dist/js/core/components/ui/toast/message-subscriber.js.map +1 -0
- package/dist/js/core/components/ui/toast/toast-item.js +379 -0
- package/dist/js/core/components/ui/toast/toast-item.js.map +1 -0
- package/dist/js/core/components/ui/toast/toast.js +269 -0
- package/dist/js/core/components/ui/toast/toast.js.map +1 -0
- package/dist/js/core/components/ui/toast/types.js +2 -0
- package/dist/js/core/components/ui/toast/types.js.map +1 -0
- package/dist/js/core/components/ui/tooltip/tooltip.js +219 -0
- package/dist/js/core/components/ui/tooltip/tooltip.js.map +1 -0
- package/dist/js/core/components/ui/ui.js +41 -0
- package/dist/js/core/components/ui/ui.js.map +1 -0
- package/dist/js/core/core.js +14 -0
- package/dist/js/core/core.js.map +1 -0
- package/dist/js/core/decorators/Subscriber.js +10 -0
- package/dist/js/core/decorators/Subscriber.js.map +1 -0
- package/dist/js/core/decorators/api.js +806 -0
- package/dist/js/core/decorators/api.js.map +1 -0
- package/dist/js/core/decorators/lifecycle.js +67 -0
- package/dist/js/core/decorators/lifecycle.js.map +1 -0
- package/dist/js/core/decorators/subscriber/ancestorAttribute.js +27 -0
- package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +1 -0
- package/dist/js/core/decorators/subscriber/autoFill.js +26 -0
- package/dist/js/core/decorators/subscriber/autoFill.js.map +1 -0
- package/dist/js/core/decorators/subscriber/autoSubscribe.js +46 -0
- package/dist/js/core/decorators/subscriber/autoSubscribe.js.map +1 -0
- package/dist/js/core/decorators/subscriber/bind.js +150 -0
- package/dist/js/core/decorators/subscriber/bind.js.map +1 -0
- package/dist/js/core/decorators/subscriber/common.js +44 -0
- package/dist/js/core/decorators/subscriber/common.js.map +1 -0
- package/dist/js/core/decorators/subscriber/derive.js +60 -0
- package/dist/js/core/decorators/subscriber/derive.js.map +1 -0
- package/dist/js/core/decorators/subscriber/dynamicPath.js +75 -0
- package/dist/js/core/decorators/subscriber/dynamicPath.js.map +1 -0
- package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js +138 -0
- package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js.map +1 -0
- package/dist/js/core/decorators/subscriber/handle.js +22 -0
- package/dist/js/core/decorators/subscriber/handle.js.map +1 -0
- package/dist/js/core/decorators/subscriber/onAssign.js +199 -0
- package/dist/js/core/decorators/subscriber/onAssign.js.map +1 -0
- package/dist/js/core/decorators/subscriber/publish.js +108 -0
- package/dist/js/core/decorators/subscriber/publish.js.map +1 -0
- package/dist/js/core/decorators/subscriber/publisherPath.js +16 -0
- package/dist/js/core/decorators/subscriber/publisherPath.js.map +1 -0
- package/dist/js/core/decorators/subscriber/subscribe.js +20 -0
- package/dist/js/core/decorators/subscriber/subscribe.js.map +1 -0
- package/dist/js/core/directives/DataProvider.js +127 -0
- package/dist/js/core/directives/DataProvider.js.map +1 -0
- package/dist/js/core/directives/Wording.js +221 -0
- package/dist/js/core/directives/Wording.js.map +1 -0
- package/dist/js/core/mixins/Fetcher.js +325 -0
- package/dist/js/core/mixins/Fetcher.js.map +1 -0
- package/dist/js/core/mixins/FormCheckable.js +313 -0
- package/dist/js/core/mixins/FormCheckable.js.map +1 -0
- package/dist/js/core/mixins/FormElement.js +304 -0
- package/dist/js/core/mixins/FormElement.js.map +1 -0
- package/dist/js/core/mixins/FormInput.js +82 -0
- package/dist/js/core/mixins/FormInput.js.map +1 -0
- package/dist/js/core/mixins/Subscriber.js +354 -0
- package/dist/js/core/mixins/Subscriber.js.map +1 -0
- package/dist/js/core/mixins/TemplatesContainer.js +70 -0
- package/dist/js/core/mixins/TemplatesContainer.js.map +1 -0
- package/dist/js/core/mixins/mixins.js +7 -0
- package/dist/js/core/mixins/mixins.js.map +1 -0
- package/dist/js/core/utils/AncestorAttributeObserver.js +140 -0
- package/dist/js/core/utils/AncestorAttributeObserver.js.map +1 -0
- package/dist/js/core/utils/Arrays.js +141 -0
- package/dist/js/core/utils/Arrays.js.map +1 -0
- package/dist/js/core/utils/DataBindObserver.js +265 -0
- package/dist/js/core/utils/DataBindObserver.js.map +1 -0
- package/dist/js/core/utils/Electron.js +14 -0
- package/dist/js/core/utils/Electron.js.map +1 -0
- package/dist/js/core/utils/Format.js +43 -0
- package/dist/js/core/utils/Format.js.map +1 -0
- package/dist/js/core/utils/HTML.js +307 -0
- package/dist/js/core/utils/HTML.js.map +1 -0
- package/dist/js/core/utils/LocationHandler.js +143 -0
- package/dist/js/core/utils/LocationHandler.js.map +1 -0
- package/dist/js/core/utils/Objects.js +111 -0
- package/dist/js/core/utils/Objects.js.map +1 -0
- package/dist/js/core/utils/PublisherProxy.js +970 -0
- package/dist/js/core/utils/PublisherProxy.js.map +1 -0
- package/dist/js/core/utils/SafariScrollGuard.js +384 -0
- package/dist/js/core/utils/SafariScrollGuard.js.map +1 -0
- package/dist/js/core/utils/Utils.js +19 -0
- package/dist/js/core/utils/Utils.js.map +1 -0
- package/dist/js/core/utils/aesCrypto.js +98 -0
- package/dist/js/core/utils/aesCrypto.js.map +1 -0
- package/dist/js/core/utils/api.js +595 -0
- package/dist/js/core/utils/api.js.map +1 -0
- package/dist/js/core/utils/dataProviderKey.js +64 -0
- package/dist/js/core/utils/dataProviderKey.js.map +1 -0
- package/dist/js/core/utils/derive.js +246 -0
- package/dist/js/core/utils/derive.js.map +1 -0
- package/dist/js/core/utils/endpoint.js +74 -0
- package/dist/js/core/utils/endpoint.js.map +1 -0
- package/dist/js/core/utils/jsonataHelpers.js +84 -0
- package/dist/js/core/utils/jsonataHelpers.js.map +1 -0
- package/dist/js/core/utils/jsonataRuntime.js +75 -0
- package/dist/js/core/utils/jsonataRuntime.js.map +1 -0
- package/dist/js/core/utils/mediaRef.js +120 -0
- package/dist/js/core/utils/mediaRef.js.map +1 -0
- package/dist/js/core/utils/route.js +149 -0
- package/dist/js/core/utils/route.js.map +1 -0
- package/dist/js/core/utils/similarity.js +44 -0
- package/dist/js/core/utils/similarity.js.map +1 -0
- package/dist/js/core/utils/url-pattern.js +3 -0
- package/dist/js/core/utils/url-pattern.js.map +1 -0
- package/dist/js/dataprovider.js +2 -0
- package/dist/js/dataprovider.js.map +1 -0
- package/dist/js/decorators.js +43 -0
- package/dist/js/decorators.js.map +1 -0
- package/dist/js/directives.js +30 -0
- package/dist/js/directives.js.map +1 -0
- package/dist/js/index.js +8 -0
- package/dist/js/index.js.map +1 -0
- package/dist/js/mixins.js +23 -0
- package/dist/js/mixins.js.map +1 -0
- package/dist/js/test-utils/TestUtils.js +10 -0
- package/dist/js/test-utils/TestUtils.js.map +1 -0
- package/dist/js/utils.js +46 -0
- package/dist/js/utils.js.map +1 -0
- package/dist/types/addons/3d.d.ts +6 -0
- package/dist/types/addons/3d.d.ts.map +1 -0
- package/dist/types/addons/hugging-face-infer.d.ts +8 -0
- package/dist/types/addons/hugging-face-infer.d.ts.map +1 -0
- package/dist/types/addons/shader.d.ts +6 -0
- package/dist/types/addons/shader.d.ts.map +1 -0
- package/dist/types/addons/webgpu.d.ts +7 -0
- package/dist/types/addons/webgpu.d.ts.map +1 -0
- package/dist/types/components.d.ts +5 -0
- package/dist/types/components.d.ts.map +1 -0
- package/dist/types/concorde-loaded.d.ts +2 -0
- package/dist/types/concorde-loaded.d.ts.map +1 -0
- package/dist/types/core/_types/endpoint.d.ts +5 -0
- package/dist/types/core/_types/endpoint.d.ts.map +1 -0
- package/dist/types/core/_types/key.d.ts +2 -0
- package/dist/types/core/_types/key.d.ts.map +1 -0
- package/dist/types/core/_types/types.d.ts +28 -0
- package/dist/types/core/_types/types.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/3d.d.ts +66 -0
- package/dist/types/core/components/functional/3d/3d.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/asset.d.ts +12 -0
- package/dist/types/core/components/functional/3d/asset.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/boot.d.ts +23 -0
- package/dist/types/core/components/functional/3d/boot.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/constants.d.ts +43 -0
- package/dist/types/core/components/functional/3d/constants.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/demo-content.d.ts +10 -0
- package/dist/types/core/components/functional/3d/demo-content.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/ensure.d.ts +36 -0
- package/dist/types/core/components/functional/3d/ensure.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/form-bind.d.ts +20 -0
- package/dist/types/core/components/functional/3d/form-bind.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/form-fields.d.ts +14 -0
- package/dist/types/core/components/functional/3d/form-fields.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/form-params.d.ts +37 -0
- package/dist/types/core/components/functional/3d/form-params.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/frame-capture.d.ts +33 -0
- package/dist/types/core/components/functional/3d/frame-capture.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/gl.d.ts +4 -0
- package/dist/types/core/components/functional/3d/gl.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/life.d.ts +41 -0
- package/dist/types/core/components/functional/3d/life.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/load.d.ts +36 -0
- package/dist/types/core/components/functional/3d/load.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/ops.d.ts +48 -0
- package/dist/types/core/components/functional/3d/ops.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/opts.d.ts +16 -0
- package/dist/types/core/components/functional/3d/opts.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/orbit.d.ts +55 -0
- package/dist/types/core/components/functional/3d/orbit.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/out-publish.d.ts +47 -0
- package/dist/types/core/components/functional/3d/out-publish.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/parse.d.ts +23 -0
- package/dist/types/core/components/functional/3d/parse.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/pick.d.ts +32 -0
- package/dist/types/core/components/functional/3d/pick.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/playback.d.ts +26 -0
- package/dist/types/core/components/functional/3d/playback.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/pointer.d.ts +27 -0
- package/dist/types/core/components/functional/3d/pointer.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/props.d.ts +30 -0
- package/dist/types/core/components/functional/3d/props.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/publisher-listen.d.ts +8 -0
- package/dist/types/core/components/functional/3d/publisher-listen.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/reload.d.ts +35 -0
- package/dist/types/core/components/functional/3d/reload.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/runtime.d.ts +75 -0
- package/dist/types/core/components/functional/3d/runtime.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/scene-runtime.d.ts +6 -0
- package/dist/types/core/components/functional/3d/scene-runtime.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/snapshot.d.ts +29 -0
- package/dist/types/core/components/functional/3d/snapshot.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/styles.d.ts +2 -0
- package/dist/types/core/components/functional/3d/styles.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/tune.d.ts +32 -0
- package/dist/types/core/components/functional/3d/tune.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/types.d.ts +133 -0
- package/dist/types/core/components/functional/3d/types.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/updated.d.ts +7 -0
- package/dist/types/core/components/functional/3d/updated.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/view.d.ts +25 -0
- package/dist/types/core/components/functional/3d/view.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/wire.d.ts +32 -0
- package/dist/types/core/components/functional/3d/wire.d.ts.map +1 -0
- package/dist/types/core/components/functional/date/date.d.ts +52 -0
- package/dist/types/core/components/functional/date/date.d.ts.map +1 -0
- package/dist/types/core/components/functional/example/example.d.ts +15 -0
- package/dist/types/core/components/functional/example/example.d.ts.map +1 -0
- package/dist/types/core/components/functional/fetch/fetch.d.ts +102 -0
- package/dist/types/core/components/functional/fetch/fetch.d.ts.map +1 -0
- package/dist/types/core/components/functional/functional.d.ts +18 -0
- package/dist/types/core/components/functional/functional.d.ts.map +1 -0
- package/dist/types/core/components/functional/if/if.d.ts +13 -0
- package/dist/types/core/components/functional/if/if.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-cache.d.ts +21 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-cache.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-config.d.ts +133 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-config.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-controller.d.ts +79 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-controller.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-engine.d.ts +43 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-engine.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-input.d.ts +47 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-input.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-protocol.d.ts +95 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-protocol.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-registry.d.ts +77 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-registry.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-schema.d.ts +1251 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-schema.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-worker-runtime.d.ts +56 -0
- package/dist/types/core/components/functional/infer/hugging-face/hf-worker-runtime.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hugging-face-infer.d.ts +67 -0
- package/dist/types/core/components/functional/infer/hugging-face/hugging-face-infer.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/hugging-face.d.ts +116 -0
- package/dist/types/core/components/functional/infer/hugging-face/hugging-face.d.ts.map +1 -0
- package/dist/types/core/components/functional/infer/hugging-face/types.d.ts +167 -0
- package/dist/types/core/components/functional/infer/hugging-face/types.d.ts.map +1 -0
- package/dist/types/core/components/functional/jsonata/jsonata.d.ts +29 -0
- package/dist/types/core/components/functional/jsonata/jsonata.d.ts.map +1 -0
- package/dist/types/core/components/functional/list/list.d.ts +149 -0
- package/dist/types/core/components/functional/list/list.d.ts.map +1 -0
- package/dist/types/core/components/functional/mix/mix.d.ts +23 -0
- package/dist/types/core/components/functional/mix/mix.d.ts.map +1 -0
- package/dist/types/core/components/functional/queue/queue.d.ts +93 -0
- package/dist/types/core/components/functional/queue/queue.d.ts.map +1 -0
- package/dist/types/core/components/functional/router/redirect.d.ts +19 -0
- package/dist/types/core/components/functional/router/redirect.d.ts.map +1 -0
- package/dist/types/core/components/functional/router/router.d.ts +46 -0
- package/dist/types/core/components/functional/router/router.d.ts.map +1 -0
- package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +59 -0
- package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts.map +1 -0
- package/dist/types/core/components/functional/sdui/sdui-utils.d.ts +6 -0
- package/dist/types/core/components/functional/sdui/sdui-utils.d.ts.map +1 -0
- package/dist/types/core/components/functional/sdui/sdui.d.ts +148 -0
- package/dist/types/core/components/functional/sdui/sdui.d.ts.map +1 -0
- package/dist/types/core/components/functional/sdui/types.d.ts +38 -0
- package/dist/types/core/components/functional/sdui/types.d.ts.map +1 -0
- package/dist/types/core/components/functional/shader/gl-runtime.d.ts +71 -0
- package/dist/types/core/components/functional/shader/gl-runtime.d.ts.map +1 -0
- package/dist/types/core/components/functional/shader/shader.d.ts +274 -0
- package/dist/types/core/components/functional/shader/shader.d.ts.map +1 -0
- package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts +6 -0
- package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts.map +1 -0
- package/dist/types/core/components/functional/shader/types.d.ts +256 -0
- package/dist/types/core/components/functional/shader/types.d.ts.map +1 -0
- package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts +6 -0
- package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts.map +1 -0
- package/dist/types/core/components/functional/states/states.d.ts +42 -0
- package/dist/types/core/components/functional/states/states.d.ts.map +1 -0
- package/dist/types/core/components/functional/submit/submit.d.ts +37 -0
- package/dist/types/core/components/functional/submit/submit.d.ts.map +1 -0
- package/dist/types/core/components/functional/subscriber/subscriber.d.ts +13 -0
- package/dist/types/core/components/functional/subscriber/subscriber.d.ts.map +1 -0
- package/dist/types/core/components/functional/translation/translation.d.ts +7 -0
- package/dist/types/core/components/functional/translation/translation.d.ts.map +1 -0
- package/dist/types/core/components/functional/value/value.d.ts +8 -0
- package/dist/types/core/components/functional/value/value.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/canvas2d-fallback.d.ts +29 -0
- package/dist/types/core/components/functional/webgpu/canvas2d-fallback.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/form-bind.d.ts +43 -0
- package/dist/types/core/components/functional/webgpu/form-bind.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts +31 -0
- package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts +53 -0
- package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/helpers.d.ts +9 -0
- package/dist/types/core/components/functional/webgpu/helpers.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/out-frame.d.ts +29 -0
- package/dist/types/core/components/functional/webgpu/out-frame.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/particles-runtime.d.ts +37 -0
- package/dist/types/core/components/functional/webgpu/particles-runtime.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/pointer.d.ts +41 -0
- package/dist/types/core/components/functional/webgpu/pointer.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/types.d.ts +75 -0
- package/dist/types/core/components/functional/webgpu/types.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/webgpu.d.ts +123 -0
- package/dist/types/core/components/functional/webgpu/webgpu.d.ts.map +1 -0
- package/dist/types/core/components/functional/webgpu/wgsl-prelude.d.ts +8 -0
- package/dist/types/core/components/functional/webgpu/wgsl-prelude.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/scroll.d.ts +2 -0
- package/dist/types/core/components/ui/_css/scroll.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/shadow.d.ts +3 -0
- package/dist/types/core/components/ui/_css/shadow.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/size.d.ts +3 -0
- package/dist/types/core/components/ui/_css/size.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/type.d.ts +3 -0
- package/dist/types/core/components/ui/_css/type.d.ts.map +1 -0
- package/dist/types/core/components/ui/alert/alert.d.ts +37 -0
- package/dist/types/core/components/ui/alert/alert.d.ts.map +1 -0
- package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts +15 -0
- package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +1 -0
- package/dist/types/core/components/ui/badge/badge.d.ts +27 -0
- package/dist/types/core/components/ui/badge/badge.d.ts.map +1 -0
- package/dist/types/core/components/ui/button/button.d.ts +180 -0
- package/dist/types/core/components/ui/button/button.d.ts.map +1 -0
- package/dist/types/core/components/ui/captcha/altchaStyles.d.ts +2 -0
- package/dist/types/core/components/ui/captcha/altchaStyles.d.ts.map +1 -0
- package/dist/types/core/components/ui/captcha/captcha.d.ts +30 -0
- package/dist/types/core/components/ui/captcha/captcha.d.ts.map +1 -0
- package/dist/types/core/components/ui/card/card-footer.d.ts +6 -0
- package/dist/types/core/components/ui/card/card-footer.d.ts.map +1 -0
- package/dist/types/core/components/ui/card/card-header-descripton.d.ts +6 -0
- package/dist/types/core/components/ui/card/card-header-descripton.d.ts.map +1 -0
- package/dist/types/core/components/ui/card/card-header.d.ts +9 -0
- package/dist/types/core/components/ui/card/card-header.d.ts.map +1 -0
- package/dist/types/core/components/ui/card/card-main.d.ts +6 -0
- package/dist/types/core/components/ui/card/card-main.d.ts.map +1 -0
- package/dist/types/core/components/ui/card/card.d.ts +13 -0
- package/dist/types/core/components/ui/card/card.d.ts.map +1 -0
- package/dist/types/core/components/ui/divider/divider.d.ts +16 -0
- package/dist/types/core/components/ui/divider/divider.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +176 -0
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/css/form-control.d.ts +5 -0
- package/dist/types/core/components/ui/form/css/form-control.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts +24 -0
- package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts +6 -0
- package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/fieldset/legend.d.ts +17 -0
- package/dist/types/core/components/ui/form/fieldset/legend.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts +8 -0
- package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts +13 -0
- package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/input/input.d.ts +123 -0
- package/dist/types/core/components/ui/form/input/input.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/input/password-helper.d.ts +26 -0
- package/dist/types/core/components/ui/form/input/password-helper.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/input/same-value-helper.d.ts +17 -0
- package/dist/types/core/components/ui/form/input/same-value-helper.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +155 -0
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/radio/radio.d.ts +15 -0
- package/dist/types/core/components/ui/form/radio/radio.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/select/select.d.ts +59 -0
- package/dist/types/core/components/ui/form/select/select.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/switch/switch.d.ts +6 -0
- package/dist/types/core/components/ui/form/switch/switch.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts +94 -0
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +1 -0
- package/dist/types/core/components/ui/group/group.d.ts +17 -0
- package/dist/types/core/components/ui/group/group.d.ts.map +1 -0
- package/dist/types/core/components/ui/icon/icon.d.ts +30 -0
- package/dist/types/core/components/ui/icon/icon.d.ts.map +1 -0
- package/dist/types/core/components/ui/icon/icons.d.ts +13 -0
- package/dist/types/core/components/ui/icon/icons.d.ts.map +1 -0
- package/dist/types/core/components/ui/image/image.d.ts +16 -0
- package/dist/types/core/components/ui/image/image.d.ts.map +1 -0
- package/dist/types/core/components/ui/link/link.d.ts +30 -0
- package/dist/types/core/components/ui/link/link.d.ts.map +1 -0
- package/dist/types/core/components/ui/loader/loader.d.ts +24 -0
- package/dist/types/core/components/ui/loader/loader.d.ts.map +1 -0
- package/dist/types/core/components/ui/loader/styles/fixed.d.ts +2 -0
- package/dist/types/core/components/ui/loader/styles/fixed.d.ts.map +1 -0
- package/dist/types/core/components/ui/loader/styles/inline.d.ts +2 -0
- package/dist/types/core/components/ui/loader/styles/inline.d.ts.map +1 -0
- package/dist/types/core/components/ui/menu/menu-item.d.ts +6 -0
- package/dist/types/core/components/ui/menu/menu-item.d.ts.map +1 -0
- package/dist/types/core/components/ui/menu/menu.d.ts +52 -0
- package/dist/types/core/components/ui/menu/menu.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-actions.d.ts +9 -0
- package/dist/types/core/components/ui/modal/modal-actions.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-close.d.ts +11 -0
- package/dist/types/core/components/ui/modal/modal-close.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-content.d.ts +6 -0
- package/dist/types/core/components/ui/modal/modal-content.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-subtitle.d.ts +6 -0
- package/dist/types/core/components/ui/modal/modal-subtitle.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-title.d.ts +6 -0
- package/dist/types/core/components/ui/modal/modal-title.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-utils.d.ts +4 -0
- package/dist/types/core/components/ui/modal/modal-utils.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal.d.ts +79 -0
- package/dist/types/core/components/ui/modal/modal.d.ts.map +1 -0
- package/dist/types/core/components/ui/pop/pop.d.ts +42 -0
- package/dist/types/core/components/ui/pop/pop.d.ts.map +1 -0
- package/dist/types/core/components/ui/progress/progress.d.ts +12 -0
- package/dist/types/core/components/ui/progress/progress.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-caption.d.ts +6 -0
- package/dist/types/core/components/ui/table/table-caption.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-tbody.d.ts +6 -0
- package/dist/types/core/components/ui/table/table-tbody.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-td.d.ts +13 -0
- package/dist/types/core/components/ui/table/table-td.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-tfoot.d.ts +6 -0
- package/dist/types/core/components/ui/table/table-tfoot.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-th.d.ts +12 -0
- package/dist/types/core/components/ui/table/table-th.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-thead.d.ts +6 -0
- package/dist/types/core/components/ui/table/table-thead.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-tr.d.ts +14 -0
- package/dist/types/core/components/ui/table/table-tr.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table.d.ts +18 -0
- package/dist/types/core/components/ui/table/table.d.ts.map +1 -0
- package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts +2 -0
- package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts.map +1 -0
- package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts +2 -0
- package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts.map +1 -0
- package/dist/types/core/components/ui/theme/theme-collection/light.d.ts +2 -0
- package/dist/types/core/components/ui/theme/theme-collection/light.d.ts.map +1 -0
- package/dist/types/core/components/ui/theme/theme.d.ts +20 -0
- package/dist/types/core/components/ui/theme/theme.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/message-subscriber.d.ts +19 -0
- package/dist/types/core/components/ui/toast/message-subscriber.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/toast-item.d.ts +41 -0
- package/dist/types/core/components/ui/toast/toast-item.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/toast.d.ts +28 -0
- package/dist/types/core/components/ui/toast/toast.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/types.d.ts +12 -0
- package/dist/types/core/components/ui/toast/types.d.ts.map +1 -0
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts +21 -0
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +1 -0
- package/dist/types/core/components/ui/ui.d.ts +35 -0
- package/dist/types/core/components/ui/ui.d.ts.map +1 -0
- package/dist/types/core/core.d.ts +5 -0
- package/dist/types/core/core.d.ts.map +1 -0
- package/dist/types/core/decorators/Subscriber.d.ts +13 -0
- package/dist/types/core/decorators/Subscriber.d.ts.map +1 -0
- package/dist/types/core/decorators/api.d.ts +155 -0
- package/dist/types/core/decorators/api.d.ts.map +1 -0
- package/dist/types/core/decorators/lifecycle.d.ts +19 -0
- package/dist/types/core/decorators/lifecycle.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +11 -0
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/autoFill.d.ts +2 -0
- package/dist/types/core/decorators/subscriber/autoFill.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts +2 -0
- package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/bind.d.ts +28 -0
- package/dist/types/core/decorators/subscriber/bind.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/common.d.ts +14 -0
- package/dist/types/core/decorators/subscriber/common.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/derive.d.ts +30 -0
- package/dist/types/core/decorators/subscriber/derive.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/dynamicPath.d.ts +23 -0
- package/dist/types/core/decorators/subscriber/dynamicPath.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts +42 -0
- package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/handle.d.ts +74 -0
- package/dist/types/core/decorators/subscriber/handle.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/onAssign.d.ts +53 -0
- package/dist/types/core/decorators/subscriber/onAssign.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/publish.d.ts +23 -0
- package/dist/types/core/decorators/subscriber/publish.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/publisherPath.d.ts +3 -0
- package/dist/types/core/decorators/subscriber/publisherPath.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/subscribe.d.ts +20 -0
- package/dist/types/core/decorators/subscriber/subscribe.d.ts.map +1 -0
- package/dist/types/core/directives/DataProvider.d.ts +45 -0
- package/dist/types/core/directives/DataProvider.d.ts.map +1 -0
- package/dist/types/core/directives/Wording.d.ts +44 -0
- package/dist/types/core/directives/Wording.d.ts.map +1 -0
- package/dist/types/core/mixins/Fetcher.d.ts +108 -0
- package/dist/types/core/mixins/Fetcher.d.ts.map +1 -0
- package/dist/types/core/mixins/FormCheckable.d.ts +95 -0
- package/dist/types/core/mixins/FormCheckable.d.ts.map +1 -0
- package/dist/types/core/mixins/FormElement.d.ts +37 -0
- package/dist/types/core/mixins/FormElement.d.ts.map +1 -0
- package/dist/types/core/mixins/FormInput.d.ts +79 -0
- package/dist/types/core/mixins/FormInput.d.ts.map +1 -0
- package/dist/types/core/mixins/Subscriber.d.ts +38 -0
- package/dist/types/core/mixins/Subscriber.d.ts.map +1 -0
- package/dist/types/core/mixins/TemplatesContainer.d.ts +14 -0
- package/dist/types/core/mixins/TemplatesContainer.d.ts.map +1 -0
- package/dist/types/core/mixins/mixins.d.ts +7 -0
- package/dist/types/core/mixins/mixins.d.ts.map +1 -0
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts +38 -0
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +1 -0
- package/dist/types/core/utils/Arrays.d.ts +98 -0
- package/dist/types/core/utils/Arrays.d.ts.map +1 -0
- package/dist/types/core/utils/DataBindObserver.d.ts +84 -0
- package/dist/types/core/utils/DataBindObserver.d.ts.map +1 -0
- package/dist/types/core/utils/Electron.d.ts +8 -0
- package/dist/types/core/utils/Electron.d.ts.map +1 -0
- package/dist/types/core/utils/Format.d.ts +13 -0
- package/dist/types/core/utils/Format.d.ts.map +1 -0
- package/dist/types/core/utils/HTML.d.ts +59 -0
- package/dist/types/core/utils/HTML.d.ts.map +1 -0
- package/dist/types/core/utils/LocationHandler.d.ts +48 -0
- package/dist/types/core/utils/LocationHandler.d.ts.map +1 -0
- package/dist/types/core/utils/Objects.d.ts +31 -0
- package/dist/types/core/utils/Objects.d.ts.map +1 -0
- package/dist/types/core/utils/PublisherProxy.d.ts +230 -0
- package/dist/types/core/utils/PublisherProxy.d.ts.map +1 -0
- package/dist/types/core/utils/SafariScrollGuard.d.ts +36 -0
- package/dist/types/core/utils/SafariScrollGuard.d.ts.map +1 -0
- package/dist/types/core/utils/Utils.d.ts +6 -0
- package/dist/types/core/utils/Utils.d.ts.map +1 -0
- package/dist/types/core/utils/aesCrypto.d.ts +53 -0
- package/dist/types/core/utils/aesCrypto.d.ts.map +1 -0
- package/dist/types/core/utils/api.d.ts +173 -0
- package/dist/types/core/utils/api.d.ts.map +1 -0
- package/dist/types/core/utils/dataProviderKey.d.ts +56 -0
- package/dist/types/core/utils/dataProviderKey.d.ts.map +1 -0
- package/dist/types/core/utils/derive.d.ts +40 -0
- package/dist/types/core/utils/derive.d.ts.map +1 -0
- package/dist/types/core/utils/endpoint.d.ts +37 -0
- package/dist/types/core/utils/endpoint.d.ts.map +1 -0
- package/dist/types/core/utils/jsonataHelpers.d.ts +15 -0
- package/dist/types/core/utils/jsonataHelpers.d.ts.map +1 -0
- package/dist/types/core/utils/jsonataRuntime.d.ts +13 -0
- package/dist/types/core/utils/jsonataRuntime.d.ts.map +1 -0
- package/dist/types/core/utils/mediaRef.d.ts +34 -0
- package/dist/types/core/utils/mediaRef.d.ts.map +1 -0
- package/dist/types/core/utils/route.d.ts +41 -0
- package/dist/types/core/utils/route.d.ts.map +1 -0
- package/dist/types/core/utils/similarity.d.ts +15 -0
- package/dist/types/core/utils/similarity.d.ts.map +1 -0
- package/dist/types/core/utils/url-pattern.d.ts +3 -0
- package/dist/types/core/utils/url-pattern.d.ts.map +1 -0
- package/dist/types/dataprovider.d.ts +2 -0
- package/dist/types/dataprovider.d.ts.map +1 -0
- package/dist/types/decorators.d.ts +30 -0
- package/dist/types/decorators.d.ts.map +1 -0
- package/dist/types/directives.d.ts +21 -0
- package/dist/types/directives.d.ts.map +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/mixins.d.ts +204 -0
- package/dist/types/mixins.d.ts.map +1 -0
- package/dist/types/test-utils/TestUtils.d.ts +4 -0
- package/dist/types/test-utils/TestUtils.d.ts.map +1 -0
- package/dist/types/utils.d.ts +20 -0
- package/dist/types/utils.d.ts.map +1 -0
- package/package.json +1780 -382
- package/public/docs/hf-samples/beach.jpg +0 -0
- package/public/docs/hf-samples/cats.jpg +0 -0
- package/public/docs/hf-samples/corgi.jpg +0 -0
- package/public/docs/hf-samples/portrait.jpg +0 -0
- package/public/docs/hf-samples/scene.jpg +0 -0
- package/public/docs/hf-samples/singer.jpg +0 -0
- package/public/docs/shader-samples/color.jpg +0 -0
- package/public/docs/shader-samples/depth.png +0 -0
- package/public/docs/shader-samples/impact.jpg +0 -0
- package/public/docs/shader-samples/video.webm +0 -0
- package/scripts/build-addons.mjs +26 -0
- package/scripts/gen-shader-depth.mjs +85 -0
- package/scripts/gen-shader-harris-video.mjs +17 -0
- package/scripts/gen-shader-harris-video.py +84 -0
- package/scripts/hf-vendor.mjs +154 -0
- package/scripts/post-build.mjs +116 -10
- package/scripts/pre-build.mjs +119 -36
- package/scripts/pre-publish.mjs +76 -54
- package/src/addons/3d.ts +5 -0
- package/src/addons/hugging-face-infer.ts +11 -0
- package/src/addons/shader.ts +5 -0
- package/src/addons/webgpu.ts +15 -0
- package/src/core/components/functional/3d/3d.md +118 -0
- package/src/core/components/functional/3d/3d.spec.ts +171 -0
- package/src/core/components/functional/3d/3d.ts +175 -0
- package/src/core/components/functional/3d/asset.ts +22 -0
- package/src/core/components/functional/3d/boot.ts +77 -0
- package/src/core/components/functional/3d/constants.ts +98 -0
- package/src/core/components/functional/3d/demo-content.ts +45 -0
- package/src/core/components/functional/3d/ensure.ts +99 -0
- package/src/core/components/functional/3d/form-bind.ts +40 -0
- package/src/core/components/functional/3d/form-fields.ts +80 -0
- package/src/core/components/functional/3d/form-params.ts +97 -0
- package/src/core/components/functional/3d/frame-capture.spec.ts +72 -0
- package/src/core/components/functional/3d/frame-capture.ts +135 -0
- package/src/core/components/functional/3d/gl.ts +35 -0
- package/src/core/components/functional/3d/life.ts +101 -0
- package/src/core/components/functional/3d/load.ts +129 -0
- package/src/core/components/functional/3d/ops.ts +126 -0
- package/src/core/components/functional/3d/opts.ts +16 -0
- package/src/core/components/functional/3d/orbit.ts +185 -0
- package/src/core/components/functional/3d/out-publish.ts +140 -0
- package/src/core/components/functional/3d/parse.ts +95 -0
- package/src/core/components/functional/3d/pick.ts +92 -0
- package/src/core/components/functional/3d/playback.ts +70 -0
- package/src/core/components/functional/3d/pointer.ts +79 -0
- package/src/core/components/functional/3d/props.ts +50 -0
- package/src/core/components/functional/3d/publisher-listen.ts +13 -0
- package/src/core/components/functional/3d/reload.ts +88 -0
- package/src/core/components/functional/3d/runtime.ts +148 -0
- package/src/core/components/functional/3d/scene-runtime.ts +9 -0
- package/src/core/components/functional/3d/snapshot.ts +73 -0
- package/src/core/components/functional/3d/styles.ts +38 -0
- package/src/core/components/functional/3d/tune.ts +72 -0
- package/src/core/components/functional/3d/types.ts +145 -0
- package/src/core/components/functional/3d/updated.ts +70 -0
- package/src/core/components/functional/3d/view.ts +63 -0
- package/src/core/components/functional/3d/wire.ts +65 -0
- package/src/core/components/functional/infer/hugging-face/hf-cache.ts +198 -0
- package/src/core/components/functional/infer/hugging-face/hf-config.ts +188 -0
- package/src/core/components/functional/infer/hugging-face/hf-controller.spec.ts +350 -0
- package/src/core/components/functional/infer/hugging-face/hf-controller.ts +622 -0
- package/src/core/components/functional/infer/hugging-face/hf-engine.ts +178 -0
- package/src/core/components/functional/infer/hugging-face/hf-input.spec.ts +99 -0
- package/src/core/components/functional/infer/hugging-face/hf-input.ts +218 -0
- package/src/core/components/functional/infer/hugging-face/hf-protocol.ts +76 -0
- package/src/core/components/functional/infer/hugging-face/hf-registry.ts +457 -0
- package/src/core/components/functional/infer/hugging-face/hf-schema.spec.ts +124 -0
- package/src/core/components/functional/infer/hugging-face/hf-schema.ts +390 -0
- package/src/core/components/functional/infer/hugging-face/hf-worker-runtime.spec.ts +147 -0
- package/src/core/components/functional/infer/hugging-face/hf-worker-runtime.ts +381 -0
- package/src/core/components/functional/infer/hugging-face/hugging-face-infer.md +304 -0
- package/src/core/components/functional/infer/hugging-face/hugging-face-infer.ts +202 -0
- package/src/core/components/functional/infer/hugging-face/hugging-face.ts +282 -0
- package/src/core/components/functional/infer/hugging-face/types.ts +325 -0
- package/src/core/components/functional/jsonata/jsonata.md +4 -2
- package/src/core/components/functional/sdui/sdui.md +2 -2
- package/src/core/components/functional/sdui/sdui.ts +40 -29
- package/src/core/components/functional/shader/gl-runtime.ts +782 -0
- package/src/core/components/functional/shader/shader.md +207 -0
- package/src/core/components/functional/shader/shader.spec.ts +288 -0
- package/src/core/components/functional/shader/shader.ts +1569 -0
- package/src/core/components/functional/shader/shadertoy-prelude.ts +52 -0
- package/src/core/components/functional/shader/types.ts +446 -0
- package/src/core/components/functional/webgpu/canvas2d-fallback.ts +125 -0
- package/src/core/components/functional/webgpu/form-bind.ts +116 -0
- package/src/core/components/functional/webgpu/gl-fallback.ts +158 -0
- package/src/core/components/functional/webgpu/gpu-runtime.ts +349 -0
- package/src/core/components/functional/webgpu/helpers.ts +47 -0
- package/src/core/components/functional/webgpu/out-frame.ts +137 -0
- package/src/core/components/functional/webgpu/particles-runtime.ts +426 -0
- package/src/core/components/functional/webgpu/pointer.ts +85 -0
- package/src/core/components/functional/webgpu/types.ts +96 -0
- package/src/core/components/functional/webgpu/webgpu.md +75 -0
- package/src/core/components/functional/webgpu/webgpu.spec.ts +141 -0
- package/src/core/components/functional/webgpu/webgpu.ts +659 -0
- package/src/core/components/functional/webgpu/wgsl-prelude.ts +81 -0
- package/src/core/mixins/Fetcher.ts +1 -1
- package/src/core/utils/HTML.ts +107 -74
- package/src/core/utils/PublisherProxy.ts +29 -6
- package/src/core/utils/jsonataHelpers.ts +36 -0
- package/src/core/utils/mediaRef.spec.ts +85 -0
- package/src/core/utils/mediaRef.ts +130 -0
- package/src/core/utils/similarity.spec.ts +34 -0
- package/src/core/utils/similarity.ts +54 -0
- package/src/docs/_core-concept/dataFlow.md +2 -0
- package/src/docs/_getting-started/cdn-addons.md +73 -0
- package/src/docs/_getting-started/create-a-component.md +1 -1
- package/src/docs/_misc/visual-stack.md +49 -0
- package/src/docs/components/docs-demo-sources.ts +359 -39
- package/src/docs/docs.ts +6 -0
- package/src/docs/example/docs-3d-demos.ts +8 -0
- package/src/docs/example/docs-3d-form.ts +95 -0
- package/src/docs/example/docs-3d-orbit.ts +44 -0
- package/src/docs/example/docs-3d-out.ts +56 -0
- package/src/docs/example/docs-3d-shared.ts +15 -0
- package/src/docs/example/docs-harris-webgpu-demo.ts +482 -0
- package/src/docs/example/docs-hugging-face-demos.ts +516 -0
- package/src/docs/example/docs-shader-demos.ts +357 -0
- package/src/docs/example/docs-visual-stack-demo.ts +394 -0
- package/src/docs/example/docs-webgpu-demo.ts +77 -0
- package/src/docs/navigation/navigation.ts +25 -0
- package/src/docs/search/docs-search.json +899 -2319
- package/src/tsconfig.json +481 -301
- package/src/tsconfig.tsbuildinfo +1 -1
- package/vite/config.js +42 -30
- package/vite.config.mts +51 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Ke){typeof define=="function"&&define.amd?define(Ke):Ke()})((function(){"use strict";var Oe,et;let Ke=class Ct{static getLanguage(){const e=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||e}static getCookies(){return document.cookie.split(";").reduce((e,s)=>{const i=s.indexOf("=");return e[s.substring(0,i).trim()]=s.substring(i+1),e},{})}static nextComposedAncestor(e){return e instanceof Element&&e.assignedSlot?e.assignedSlot:e.parentNode||e.host||null}static everyAncestors(e,s){for(;e;){if(!s(e))return;e=e.parentNode||e.host}}static overflowMatches(e,s){return s.includes(e.overflowY)||s.includes(e.overflowX)}static findAncestorByOverflow(e,s){let i=e;for(;i;){if(i instanceof Element&&i.nodeType===1){const r=window.getComputedStyle(i);if(Ct.overflowMatches(r,s))return i}i=Ct.nextComposedAncestor(i)}return null}static getScrollableAncestor(e){return Ct.findAncestorByOverflow(e,["auto","scroll","hidden","overlay"])}static getScrollingAncestor(e){return Ct.findAncestorByOverflow(e,["auto","scroll","overlay"])}static scopeAttributeNames(e){const s=e.toLowerCase();return s===e?[e]:[e,s]}static readScopeAttributeOnElement(e,s){for(const i of Ct.scopeAttributeNames(s))if(e.hasAttribute(i))return e.getAttribute(i)??"";return null}static getAncestorAttributeValue(e,s){if(!e)return null;let i=e;for(;i;){if(i instanceof HTMLElement){const n=Ct.readScopeAttributeOnElement(i,s);if(n!=null)return n}const r=i.parentNode||i.host;if(!r)break;i=r}return null}static getApiConfiguration(e){const s=Ct.getAncestorAttributeValue(e,"token"),i=Ct.getAncestorAttributeValue(e,"addHTTPResponse")!=null,r=Ct.getAncestorAttributeValue(e,"serviceURL");let n=null,o=null;const c=Ct.getAncestorAttributeValue(e,"tokenProvider"),d=Ct.getAncestorAttributeValue(e,"eventsApiToken");s||(n=Ct.getAncestorAttributeValue(e,"userName"),o=Ct.getAncestorAttributeValue(e,"password"));const m=Ct.getAncestorAttributeValue(e,"credentials")||void 0,k=e.getAttribute("cache"),g=e.hasAttribute("blockUntilDone"),f=e.hasAttribute("keepAlive");return{serviceURL:r,token:s,userName:n,password:o,authToken:d,tokenProvider:c,addHTTPResponse:i,credentials:m,cache:k,blockUntilDone:g,keepAlive:f}}static getClosestElement(e,s){for(;!(e.nodeName&&e.nodeName.toLowerCase()===s)&&(e.parentNode||e.host);)e=e.parentNode||e.host;return e.nodeName?e:null}static getClosestForm(e){return Ct.getClosestElement(e,"form")}static getAncestorsByTagNames(e,s){const i=new Set(s.map(o=>o.toLowerCase())),r=[];let n=e.parentNode||e.host;for(;n;)n instanceof Element&&i.has(n.tagName.toLowerCase())&&r.push(n),n=n.parentNode||n.host;return r}static getAncestorsBySelectors(e,s){const i=[];let r=e.parentNode||e.host;for(;r;){if(r instanceof Element)for(const n of s)try{if(r.matches(n)){i.push(r);break}}catch{}r=r.parentNode||r.host}return i}static async loadJS(e){return new Promise(async i=>{const r=document.createElement("script");r.src=e,r.onload=()=>i(!0),r.onerror=()=>i(!0),document.head.appendChild(r)})}static async loadCSS(e){return new Promise(async i=>{const r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,r.onload=()=>i(!0),r.onerror=()=>i(!0),document.head.appendChild(r)})}};const ln=t=>{const e=document.documentElement,s=new MutationObserver(r=>{for(let n of r)n.type==="attributes"&&n.attributeName==="lang"&&t()}),i={attributes:!0,attributeFilter:["lang"]};s.observe(e,i)};let Tr=class{static ucFirst(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.substring(1)}static minutesDuration(e,s="",i="long"){s||(s=Ke.getLanguage());const r=(m,k)=>[Math.floor(m/k),m%k];function n(m,k,g){return new Intl.NumberFormat(m,{style:"unit",unit:k,unitDisplay:g}).format}const[o,c]=r(e,60),d=[];return o&&d.push(n(s,"hour",i)(o)),c&&d.push(n(s,"minute",i)(c)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(d)}static js(e){try{return Function("return "+e)()}catch{return""}}};class wo{constructor(e){this.path=e}toString(){return this.path}}function _o(t){return new Proxy(t,{get(e,s){if(s==="path")return e.path;if(s==="toString")return e.toString.bind(e);if(s===Symbol.toStringTag)return"DataProviderKey";if(typeof s=="symbol")return e[s];const i=e.path?`${e.path}.${String(s)}`:String(s);return _o(new wo(i))}})}const fl=/\$\{|\{\$/;function gl(t){return fl.test(t)}function di(t){const e=typeof t=="string"?t:t.path;if(gl(e))throw new Error("Static publisher path required for get/set/dp. Use @subscribe, @publish, or @handle for dynamic DataProviderKey paths.");return e}const Ss=function(t){return this instanceof Ss?_o(new wo(t)):new Ss(t)};let at=class Ps{static shallowEqual(e,s,i=!0){const r=Object.keys(e),n=Object.keys(s);if(r.length!==n.length&&i)return!1;for(const o of r){const c=e[o],d=s[o];if(i?c!==d:c!=d)return!1}return!0}static deepEqual(e,s,i=!0){const r=Object.keys(e),n=Object.keys(s);if(r.length!==n.length&&i)return!1;for(const o of r){const c=e[o],d=s[o],m=Ps.isObject(c)&&Ps.isObject(d),k=i?c!==d:c!=d;if(m&&!Ps.deepEqual(c,d)||!m&&k)return!1}return!0}static isObject(e){return e!=null&&typeof e=="object"}static isUndefindOrNull(e){return e==null}static isEmpty(e){return Ps.isUndefindOrNull(e)?!0:Object.keys(e).length===0}static traverse(e,s,i=!1){for(const r of s){const n=e[r];if(n===void 0)return;i&&Ps.isObject(n)?e=Object.assign(Array.isArray(n)?[]:{},e,n):e=e[r]}return e}static traverseDotNotation(e,s,i=!1){return Ps.traverse(e,s.split("."),i)}static getURLSearchArray(e,s=""){let i=[];for(let r in e){const n=e[r];s&&(r=s+"["+r+"]"),Ps.isObject(n)?i=[...i,...this.getURLSearchArray(n,r)]:i.push(`${r}=${n}`)}return i}static getURLSearchString(e){return Ps.getURLSearchArray(e,"").join("&")}};const kt=at.traverseDotNotation;let bl=class{static async queueTaskPromise(){return new Promise(e=>{window.queueMicrotask(()=>e(null))})}static async delayPromise(e){return new Promise(s=>{setTimeout(s,e)})}},xo="sonic";typeof __SONIC_PREFIX__<"u"&&(xo=__SONIC_PREFIX__);let Po=xo.replace(/-([a-z])/g,t=>t[1].toUpperCase());const pi=Po.charAt(0).toUpperCase()+Po.slice(1),ml=new Set(["localStorageMode","expirationDelayMs","invalidateOnPageShow"]);function So(t){return t==null||typeof t!="object"||Array.isArray(t)?!1:Object.keys(t).some(e=>ml.has(e))}function fi(t){return Object.prototype.hasOwnProperty.call(t,"__value")}function As(t){return typeof t=="object"&&t!==null}let hr="sonic";typeof __SONIC_PREFIX__>"u"&&(hr="sonic");const cn=hr=="sonic"?"publisher-proxies-data":hr+"-publisher-proxies-data",Us=class Us{constructor(e,s,i){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=e,this.parent=s||null,this._parentKey_=i,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const e in this._proxies_.keys())e!="_parent_"&&this._proxies_.get(e)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),Us.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(e=!1){if(this._mutationListeners_.forEach(s=>s()),this._is_savable_&&!ye.changed){ye.changed=!0,ye.saveId++;const s=ye.saveId;setTimeout(()=>ye.getInstance().saveToLocalStorage(s),1e3)}e||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(e=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const i=this.get();this._assignListeners_.forEach(r=>{r(i)}),this._publishInternalMutation_(e)}_publishInvalidation_(){this._invalidateListeners_.forEach(e=>e())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(e=>e())}_publishDynamicFilling_(e,s){this._fillListeners_.forEach(i=>{i[e]!==s&&(i[e]=s)}),this._publishTemplateFilling_(e,s)}_publishTemplateFilling_(e,s){this._templateFillListeners_.forEach(i=>{const r=Object.getOwnPropertyDescriptor(i,e);r&&!r.set&&!r.writable||(i.propertyMap&&i.propertyMap[e]&&(e=i.propertyMap[e]),typeof i[e]<"u"&&i[e]!==s&&(i[e]=s))})}onAssign(e,s=!0){typeof e=="function"&&(this._assignListeners_.has(e)||(this._assignListeners_.add(e),s&&e(this.get())))}offAssign(e){this._assignListeners_.delete(e)}onInvalidate(e){typeof e=="function"&&this._invalidateListeners_.add(e)}offInvalidate(e){typeof e=="function"&&this._invalidateListeners_.delete(e)}invalidate(){this._publishInvalidation_()}onFormInvalidate(e){typeof e=="function"&&this._formInvalidateListeners_.add(e)}offFormInvalidate(e){typeof e=="function"&&this._formInvalidateListeners_.delete(e)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(e){typeof e=="function"&&(this._mutationListeners_.add(e),e())}offInternalMutation(e){typeof e=="function"&&this._mutationListeners_.delete(e)}startTemplateFilling(e){if(this._templateFillListeners_.add(e),typeof this._value_=="object")for(const s in this._value_){let i=s;const r=this._value_[s];e.propertyMap&&e.propertyMap[s]&&(i=e.propertyMap[s]),typeof e[s]<"u"&&e[s]!==r&&(e[i]=r)}}stopTemplateFilling(e){this._templateFillListeners_.delete(e)}startDynamicFilling(e){this._fillListeners_.add(e);for(const s in this._value_){const i=this._value_[s];e[s]!==i&&(e[s]=i)}}stopDynamicFilling(e){this._fillListeners_.delete(e)}set(e,s=!1){if(this._value_===e||As(this._value_)&&As(e)&&e&&fi(this._value_)&&fi(e)&&this._value_.__value===e.__value||!As(e)&&e===this._value_.__value)return!0;this._value_=As(e)?e:{__value:e},this._cachedGet_=void 0;const i=fi(this._value_);if(this._parentKey_&&this.parent){const r=fi(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:r});else{const n=[];n[Number(this._parentKey_)]=r,this.parent.set(n)}else this.parent._value_[this._parentKey_]=r}if(i)return this._proxies_.forEach((r,n)=>{n!="_parent_"&&(r.set(null),this._publishDynamicFilling_(n,null))}),this._publishAssignement_(s),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const r in this._value_)this._value_[r]===void 0&&delete this._value_[r];if(this._proxies_.forEach((r,n)=>{const o=this._value_[n];n!="_parent_"&&o===void 0&&o!==null&&isNaN(Number(n))&&(r.set(null),this._publishDynamicFilling_(n,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),As(this._value_))for(const r in this._value_){const n=e[r],c=As(n)?n:{__value:n};if(!this._proxies_.has(r)){this._publishDynamicFilling_(r,n);continue}this._proxies_.get(r)?.set(c,!0),this._publishDynamicFilling_(r,n)}return!0}get(){if(vl(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const e=this._value_.__value;return this._cachedGet_=e??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(Us.instancesCounter++,this._instanceCounter_=Us.instancesCounter),Us.instances.set(this._instanceCounter_,this),"<"+hr+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+hr+"-publisher-proxy>"}};Us.instances=new Map,Us.instancesCounter=0;let Lr=Us;const gi=[];function vl(t){gi.length>0&&gi[0].add(t)}function Ao(){gi.unshift(new Set)}function Co(){return gi.shift()}const Te=class Te{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],Te.instance!=null)throw"Singleton / use getInstance";Te.instance=this,this.isLocalStrorageReady=this.cleanStorageData(),Te.initPageShowHandler()}static initPageShowHandler(){Te.pageShowHandlerInitialized||(Te.pageShowHandlerInitialized=!0,window.addEventListener("pageshow",e=>{e.persisted&&Te.getInstance().invalidateAll()}))}invalidateAll(){this.publishers.forEach(e=>{e._invalidate_on_page_show_&&e.invalidate()})}async cleanStorageData(){return new Promise(e=>{(async()=>{try{let i=localStorage.getItem(cn),r=null;if(i&&(r=await this.decompress(i,"gzip")),r)try{this.localStorageData=JSON.parse(r)}catch{this.localStorageData={}}else i=await this.compress("{}","gzip"),localStorage.setItem(cn,i),this.localStorageData={};const n=1e3*60*60*12;for(const o in this.localStorageData){const c=this.localStorageData[o],d=new Date().getTime()-(c.expirationDelayMs||n);c.lastModifiationMS<d&&delete this.localStorageData[o]}e(!0)}catch{window.requestAnimationFrame(()=>{e(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(e){if(e){const s=Te.instances.get(e);return s||(console.warn("No PublisherManager instance registered with id:",e,"creating new one"),new Te)}return Te.instance==null?new Te:Te.instance}static get(e,s){return Te.getInstance().get(e,s)}async setLocalData(e,s){await this.isLocalStrorageReady,e.set(this.localStorageData[s+"¤lang_"+Ke.getLanguage()]?.data||e.get())}get(e,s){const i=s?.localStorageMode==="enabled",r=s?.invalidateOnPageShow===!0;if(!this.publishers.has(e)){const c=hn({});this.set(e,c)}const n=this.publishers.get(e);return i&&this.initialisedData.indexOf(e)===-1&&(s?.expirationDelayMs&&(n._expiration_delay_=s.expirationDelayMs),n._is_savable_=!0,this.initialisedData.push(e),this.setLocalData(n,e)),r&&(n._invalidate_on_page_show_=r),this.publishers.get(e)}set(e,s){this.publishers.set(e,s)}delete(e){return this.publishers.has(e)?(this.publishers.delete(e),!0):!1}async saveToLocalStorage(e=0){if(!(e!==Te.saveId&&e%10!=0))try{if(!Te.changed||Te.saving)return;Te.saving=!0,Te.changed=!1;const s=Array.from(this.publishers.keys());let i=!1;for(const r of s){const n=this.publishers.get(r);if(!n?._is_savable_)continue;const o=n?.get();o&&(this.localStorageData[r+"¤lang_"+Ke.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:n._expiration_delay_,data:o},i=!0)}if(i){const r=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(cn,r)}if(Te.saving=!1,Te.changed){Te.saveId++;const r=Te.saveId;setTimeout(()=>this.saveToLocalStorage(r),1e3)}}catch{Te.saving=!1}}async compress(e,s){const i=new TextEncoder().encode(e),r=window,n=new r.CompressionStream(s),o=n.writable.getWriter();o.write(i),o.close();const c=await new Response(n.readable).arrayBuffer(),d=new Uint8Array(c);let m="";for(let k=0;k<d.length;k++)m+=String.fromCharCode(d[k]);return btoa(m)}async decompress(e,s){const i=atob(e),n=Uint8Array.from(i,k=>k.charCodeAt(0)).buffer,o=window,c=new o.DecompressionStream(s),d=c.writable.getWriter();d.write(n),d.close();const m=await new Response(c.readable).arrayBuffer();return new TextDecoder().decode(m)}};Te.buildDate="Mon Sep 28 2026 14:32:34 GMT+0200 (Central European Summer Time)",Te.changed=!1,Te.saving=!1,Te.saveId=0,Te.instance=null,Te.instances=new Map,Te.pageShowHandlerInitialized=!1;let ye=Te;if(typeof window<"u"){const t=window;t[pi+"PublisherManager"]=t[pi+"PublisherManager"]||ye}const yl=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function wl(t,e){return{get:function(s,i){if(typeof i=="string"&&yl.has(i))return t[i];if(i==Symbol.toPrimitive)return()=>e().get();if(!t._proxies_.has(i)){const r=t._value_[i],n=hn(As(r)?r:{__value:r},t,i);n._proxies_.set("_parent_",e()),t._proxies_.set(i,n)}return t._proxies_.get(i)},set:function(s,i,r){if(i=="_value_")return t._value_=r,!0;if(i=="_cachedGet_")return t._cachedGet_=r,!0;if(i=="_assignmentId_")return t._assignmentId_=r,!0;if(i=="_is_savable_")return t._is_savable_=r,!0;if(i=="_expiration_delay_")return t._expiration_delay_=r,!0;if(i=="_invalidate_on_page_show_")return t._invalidate_on_page_show_=r,!0;if(i=="_instanceCounter_")return t._instanceCounter_=r,!0;if(!t._proxies_.has(i)){const o=hn({},t,i);o._proxies_.set("_parent_",e()),t._proxies_.set(i,o)}return t._value_[i]!==r&&(t._value_[i]=r,t._publishDynamicFilling_(i,r),t._proxies_.get(i)?.set(As(r)?r:{__value:r})),!0},deleteProperty:function(s,i){return t._publishDynamicFilling_(i,null),t._proxies_.get(i)?.set(null),delete t._value_[i]},has:function(s,i){return i in t._value_&&i!="_lockInternalMutationPublishing_"},defineProperty:function(s,i,r){return r&&"value"in r&&(t._value_[i]=r.value),!0},getOwnPropertyDescriptor:function(s,i){return{enumerable:!0,configurable:!0}},ownKeys:function(s){return t._value_.__value?Object.keys(t._value_.__value):Object.keys(t._value_)}}}function hn(t,e=null,s){const i=new Lr(t,e,s);let r=null;const n=wl(i,()=>r);return r=new Proxy(i,n),r}class _l extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=e=>{this.innerHTML=e.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=Lr.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(hr+"-publisher-proxy",_l)}catch{}const bi=(t,e)=>{if(typeof t=="function"){const s=t;return Ao(),s(),Co()}if(typeof t=="string"){const s=t.split("."),i=s.shift()||"";let r=ye.get(i,e);r=at.traverse(r,s);const n=new Set;return n.add(r),n}return new Set([t])};function xl(t){const e=di(t);return bi(e).values().next().value?.get()}function mi(t,e,s){const i=di(t);return bi(i,s).values().next().value}function Pl(t,e){return So(e)?mi(t,void 0,e):mi(t)}function vi(t,e){return So(e)?mi(t,void 0,e):mi(t)}function Sl(t,e){const s=di(t);bi(s).values().next().value?.set(e)}let yi=(Oe=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(Oe.observedElements.keys()).forEach(e=>Oe.unObserve(e)))}static observe(e){if(!e||!Oe.enabled||Oe.observedElements.has(e))return;const s=new MutationObserver(Oe.onMutation),i={};i.childList=!0,i.subtree=!0,i.attributes=!0,i.attributeFilter=["data-bind"],s.observe(e,i),e.querySelectorAll("[data-bind]").forEach(r=>Oe.addPublisherListeners(r)),Oe.observedElements.set(e,s)}static unObserve(e){if(!e)return;const s=this.observedElements.get(e);s&&(s.disconnect(),e.querySelectorAll("[data-bind]").forEach(i=>Oe.removePublisherListeners(i)))}static onAdded(e){e.hasAttribute&&e.hasAttribute("data-bind")&&Oe.addPublisherListeners(e),e.querySelectorAll?e.querySelectorAll("[data-bind]").forEach(s=>Oe.addPublisherListeners(s)):e.childNodes.forEach(s=>Oe.onAdded(s))}static onRemoved(e){e.hasAttribute&&e.hasAttribute("data-bind")&&Oe.removePublisherListeners(e),e.querySelectorAll?e.querySelectorAll("[data-bind]").forEach(s=>Oe.removePublisherListeners(s)):e.childNodes.forEach(s=>Oe.onRemoved(s))}static onMutation(e){for(const s of e)switch(s.type){case"attributes":Oe.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(i=>{Oe.onAdded(i)}),s.removedNodes.forEach(i=>{Oe.onRemoved(i)});break}}static removePublisherListeners(e){const s=Oe.publisherListeners.get(e);s&&(Oe.publisherListeners.delete(e),s.forEach(i=>{i.publisher?.offAssign(i.onAssign)}))}static getVariablesDescriptor(e){let s=e.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(i=>i.replace("$","")):s=[e],s=s.filter(i=>i.length>0),{expression:e.replace("\\",""),variables:s.map(i=>i.split(/\b\.\b/).map(r=>r.replace("\\","")))}}static getDataBindItems(e){return"attributes"in e?Array.from(e.attributes).filter(s=>s.name.indexOf("::")==0).map(s=>({propertyToUpdate:s.name.substring(2).replace(/-((html)|\w)/g,r=>r.substring(1).toUpperCase()),bindedVariablesDescriptor:Oe.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(e,s){if(!s)return e;for(const i of s)if(i!="_self_"){if(!e)return null;e=e[i]}return e}static addPublisherListeners(e){Oe.removePublisherListeners(e);const s=Ke.getAncestorAttributeValue(e.parentNode||e.host||e,"dataProvider");if(!s)return;const i=ye.getInstance().get(s),r=Oe.getDataBindItems(e),n=[];r.forEach(o=>{const c=o.bindedVariablesDescriptor,d=o.propertyToUpdate;for(const m of c.variables){const k=m;let g=i;g=Oe.getSubPublisher(i,k);const f=e,A={publisher:g,onAssign:()=>{const E=c.variables.map(U=>Oe.getSubPublisher(i,U)?.get());let O=c.expression,I=!1;if(E.length==1&&c.variables[0].join(".")==O.substring(1)){let U=E[0];U===null&&(U=""),f[d]=U;return}for(let U=0;U<E.length;U++){let x=E[U];const y=c.variables[U];x===null&&(I=!0,x=void 0),O=O.replace("$"+y.join("."),x)}if(O.indexOf("|")!=-1){const U=O.indexOf("|");if(U==0)O=Tr.js(O.substring(1));else{const x=O.substring(0,U),y=O.substring(U+1),N=Tr[x];O=I?"":N?N(y):O}}else O=I?"":O;f[d]=O}};g?.onAssign(A.onAssign),n.push(A)}}),Oe.publisherListeners.set(e,n)}},Oe.observedElements=new Map,Oe.enabled=!0,Oe.publisherListeners=new Map,Oe);yi.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=yi);/**
|
|
1
|
+
(function(an){typeof define=="function"&&define.amd?define(an):an()})((function(){"use strict";var Oe,et;function vl(t){const e=t.trim();if(!e)return!1;try{const s=new URL(e,"https://example.invalid/");return s.protocol==="http:"||s.protocol==="https:"||s.protocol==="blob:"}catch{return!1}}let Je=class Ct{static getLanguage(){const e=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||e}static getCookies(){return document.cookie.split(";").reduce((e,s)=>{const r=s.indexOf("=");return e[s.substring(0,r).trim()]=s.substring(r+1),e},{})}static nextComposedAncestor(e){return e instanceof Element&&e.assignedSlot?e.assignedSlot:e.parentNode||e.host||null}static everyAncestors(e,s){let r=e;for(;r;){if(!s(r))return;r=r.parentNode||r.host}}static overflowMatches(e,s){return s.includes(e.overflowY)||s.includes(e.overflowX)}static findAncestorByOverflow(e,s){let r=e;for(;r;){if(r instanceof Element&&r.nodeType===1){const i=window.getComputedStyle(r);if(Ct.overflowMatches(i,s))return r}r=Ct.nextComposedAncestor(r)}return null}static getScrollableAncestor(e){return Ct.findAncestorByOverflow(e,["auto","scroll","hidden","overlay"])}static getScrollingAncestor(e){return Ct.findAncestorByOverflow(e,["auto","scroll","overlay"])}static scopeAttributeNames(e){const s=e.toLowerCase();return s===e?[e]:[e,s]}static readScopeAttributeOnElement(e,s){for(const r of Ct.scopeAttributeNames(s))if(e.hasAttribute(r))return e.getAttribute(r)??"";return null}static getAncestorAttributeValue(e,s){if(!e)return null;let r=e;for(;r;){if(r instanceof HTMLElement){const n=Ct.readScopeAttributeOnElement(r,s);if(n!=null)return n}const i=r.parentNode||r.host;if(!i)break;r=i}return null}static getApiConfiguration(e){const s=Ct.getAncestorAttributeValue(e,"token"),r=Ct.getAncestorAttributeValue(e,"addHTTPResponse")!=null,i=Ct.getAncestorAttributeValue(e,"serviceURL");let n=null,o=null;const c=Ct.getAncestorAttributeValue(e,"tokenProvider"),h=Ct.getAncestorAttributeValue(e,"eventsApiToken");s||(n=Ct.getAncestorAttributeValue(e,"userName"),o=Ct.getAncestorAttributeValue(e,"password"));const b=Ct.getAncestorAttributeValue(e,"credentials")||void 0,k=e.getAttribute("cache"),g=e.hasAttribute("blockUntilDone"),f=e.hasAttribute("keepAlive");return{serviceURL:i,token:s,userName:n,password:o,authToken:h,tokenProvider:c,addHTTPResponse:r,credentials:b,cache:k,blockUntilDone:g,keepAlive:f}}static getClosestElement(e,s){let r=e;for(;r&&!(r.nodeName&&r.nodeName.toLowerCase()===s);){const i=r.parentNode||r.host;if(!i){r=null;break}r=i}return r?.nodeName?r:null}static getClosestForm(e){return Ct.getClosestElement(e,"form")}static getAncestorsByTagNames(e,s){const r=new Set(s.map(o=>o.toLowerCase())),i=[];let n=e.parentNode||e.host;for(;n;)n instanceof Element&&r.has(n.tagName.toLowerCase())&&i.push(n),n=n.parentNode||n.host;return i}static getAncestorsBySelectors(e,s){const r=[];let i=e.parentNode||e.host;for(;i;){if(i instanceof Element)for(const n of s)try{if(i.matches(n)){r.push(i);break}}catch{}i=i.parentNode||i.host}return r}static async loadJS(e){if(!vl(e))return!1;const s=typeof document<"u"?new URL(e,document.baseURI).href:e,r=Array.from(document.scripts).find(n=>n.src===s);if(r)return r.dataset.concordeLoaded==="1"?!0:new Promise(n=>{let o=!1;const c=b=>{o||(o=!0,b&&(r.dataset.concordeLoaded="1"),n(b))};r.addEventListener("load",()=>c(!0),{once:!0}),r.addEventListener("error",()=>c(!1),{once:!0});const h=r.readyState;if(h==="complete"||h==="loaded"){c(!0);return}Promise.resolve().then(()=>{Promise.resolve().then(()=>{o||c(!0)})})});const i=/\.es\.js(\?|#|$)/.test(e)||/[?&]module(?:&|=|$)/.test(e);return new Promise(n=>{const o=document.createElement("script");o.src=e,i&&(o.type="module"),o.onload=()=>{o.dataset.concordeLoaded="1",n(!0)},o.onerror=()=>n(!1),document.head.appendChild(o)})}static async loadCSS(e){return new Promise(s=>{const r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,r.onload=()=>s(!0),r.onerror=()=>s(!0),document.head.appendChild(r)})}};const ln=t=>{const e=document.documentElement;new MutationObserver(r=>{for(const i of r)i.type==="attributes"&&i.attributeName==="lang"&&t()}).observe(e,{attributes:!0,attributeFilter:["lang"]})};let Tr=class{static ucFirst(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.substring(1)}static minutesDuration(e,s="",r="long"){s||(s=Je.getLanguage());const i=(b,k)=>[Math.floor(b/k),b%k];function n(b,k,g){return new Intl.NumberFormat(b,{style:"unit",unit:k,unitDisplay:g}).format}const[o,c]=i(e,60),h=[];return o&&h.push(n(s,"hour",r)(o)),c&&h.push(n(s,"minute",r)(c)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(h)}static js(e){try{return Function("return "+e)()}catch{return""}}};class xo{constructor(e){this.path=e}toString(){return this.path}}function So(t){return new Proxy(t,{get(e,s){if(s==="path")return e.path;if(s==="toString")return e.toString.bind(e);if(s===Symbol.toStringTag)return"DataProviderKey";if(typeof s=="symbol")return e[s];const r=e.path?`${e.path}.${String(s)}`:String(s);return So(new xo(r))}})}const yl=/\$\{|\{\$/;function wl(t){return yl.test(t)}function di(t){const e=typeof t=="string"?t:t.path;if(wl(e))throw new Error("Static publisher path required for get/set/dp. Use @subscribe, @publish, or @handle for dynamic DataProviderKey paths.");return e}const Ss=function(t){return this instanceof Ss?So(new xo(t)):new Ss(t)};let at=class xs{static shallowEqual(e,s,r=!0){const i=Object.keys(e),n=Object.keys(s);if(i.length!==n.length&&r)return!1;for(const o of i){const c=e[o],h=s[o];if(r?c!==h:c!=h)return!1}return!0}static deepEqual(e,s,r=!0){const i=Object.keys(e),n=Object.keys(s);if(i.length!==n.length&&r)return!1;for(const o of i){const c=e[o],h=s[o],b=xs.isObject(c)&&xs.isObject(h),k=r?c!==h:c!=h;if(b&&!xs.deepEqual(c,h)||!b&&k)return!1}return!0}static isObject(e){return e!=null&&typeof e=="object"}static isUndefindOrNull(e){return e==null}static isEmpty(e){return xs.isUndefindOrNull(e)?!0:Object.keys(e).length===0}static traverse(e,s,r=!1){for(const i of s){const n=e[i];if(n===void 0)return;r&&xs.isObject(n)?e=Object.assign(Array.isArray(n)?[]:{},e,n):e=e[i]}return e}static traverseDotNotation(e,s,r=!1){return xs.traverse(e,s.split("."),r)}static getURLSearchArray(e,s=""){let r=[];for(let i in e){const n=e[i];s&&(i=s+"["+i+"]"),xs.isObject(n)?r=[...r,...this.getURLSearchArray(n,i)]:r.push(`${i}=${n}`)}return r}static getURLSearchString(e){return xs.getURLSearchArray(e,"").join("&")}};const kt=at.traverseDotNotation;let _l=class{static async queueTaskPromise(){return new Promise(e=>{window.queueMicrotask(()=>e(null))})}static async delayPromise(e){return new Promise(s=>{setTimeout(s,e)})}},Ao="sonic";typeof __SONIC_PREFIX__<"u"&&(Ao=__SONIC_PREFIX__);let Co=Ao.replace(/-([a-z])/g,t=>t[1].toUpperCase());const cn=Co.charAt(0).toUpperCase()+Co.slice(1),Pl=new Set(["localStorageMode","expirationDelayMs","invalidateOnPageShow"]);function ko(t){return t==null||typeof t!="object"||Array.isArray(t)?!1:Object.keys(t).some(e=>Pl.has(e))}function pi(t){return Object.prototype.hasOwnProperty.call(t,"__value")}function As(t){return typeof t=="object"&&t!==null}let ur="sonic";typeof __SONIC_PREFIX__>"u"&&(ur="sonic");const un=ur=="sonic"?"publisher-proxies-data":ur+"-publisher-proxies-data",Us=class Us{constructor(e,s,r){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=e,this.parent=s||null,this._parentKey_=r,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const e in this._proxies_.keys())e!="_parent_"&&this._proxies_.get(e)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),Us.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(e=!1){if(this._mutationListeners_.forEach(s=>s()),this._is_savable_&&!be.changed){be.changed=!0,be.saveId++;const s=be.saveId;setTimeout(()=>be.getInstance().saveToLocalStorage(s),1e3)}e||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(e=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const r=this.get();this._assignListeners_.forEach(i=>{i(r)}),this._publishInternalMutation_(e)}_publishInvalidation_(){this._invalidateListeners_.forEach(e=>e())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(e=>e())}_publishDynamicFilling_(e,s){this._fillListeners_.forEach(r=>{r[e]!==s&&(r[e]=s)}),this._publishTemplateFilling_(e,s)}_publishTemplateFilling_(e,s){this._templateFillListeners_.forEach(r=>{const i=Object.getOwnPropertyDescriptor(r,e);i&&!i.set&&!i.writable||(r.propertyMap&&r.propertyMap[e]&&(e=r.propertyMap[e]),typeof r[e]<"u"&&r[e]!==s&&(r[e]=s))})}onAssign(e,s=!0){typeof e=="function"&&(this._assignListeners_.has(e)||(this._assignListeners_.add(e),s&&e(this.get())))}offAssign(e){this._assignListeners_.delete(e)}onInvalidate(e){typeof e=="function"&&this._invalidateListeners_.add(e)}offInvalidate(e){typeof e=="function"&&this._invalidateListeners_.delete(e)}invalidate(){this._publishInvalidation_()}onFormInvalidate(e){typeof e=="function"&&this._formInvalidateListeners_.add(e)}offFormInvalidate(e){typeof e=="function"&&this._formInvalidateListeners_.delete(e)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(e){typeof e=="function"&&(this._mutationListeners_.add(e),e())}offInternalMutation(e){typeof e=="function"&&this._mutationListeners_.delete(e)}startTemplateFilling(e){if(this._templateFillListeners_.add(e),typeof this._value_=="object")for(const s in this._value_){let r=s;const i=this._value_[s];e.propertyMap&&e.propertyMap[s]&&(r=e.propertyMap[s]),typeof e[s]<"u"&&e[s]!==i&&(e[r]=i)}}stopTemplateFilling(e){this._templateFillListeners_.delete(e)}startDynamicFilling(e){this._fillListeners_.add(e);for(const s in this._value_){const r=this._value_[s];e[s]!==r&&(e[s]=r)}}stopDynamicFilling(e){this._fillListeners_.delete(e)}set(e,s=!1){if(this._value_===e||As(this._value_)&&As(e)&&e&&pi(this._value_)&&pi(e)&&this._value_.__value===e.__value||!As(e)&&e===this._value_.__value)return!0;this._value_=As(e)?e:{__value:e},this._cachedGet_=void 0;const r=pi(this._value_);if(this._parentKey_&&this.parent){const i=pi(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:i});else{const n=[];n[Number(this._parentKey_)]=i,this.parent.set(n)}else this.parent._value_[this._parentKey_]=i}if(r)return this._proxies_.forEach((i,n)=>{n!="_parent_"&&(i.set(null),this._publishDynamicFilling_(n,null))}),this._publishAssignement_(s),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const i in this._value_)this._value_[i]===void 0&&delete this._value_[i];if(this._proxies_.forEach((i,n)=>{const o=this._value_[n];n!="_parent_"&&o===void 0&&o!==null&&isNaN(Number(n))&&(i.set(null),this._publishDynamicFilling_(n,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),As(this._value_))for(const i in this._value_){const n=e[i],c=As(n)?n:{__value:n};if(!this._proxies_.has(i)){this._publishDynamicFilling_(i,n);continue}this._proxies_.get(i)?.set(c,!0),this._publishDynamicFilling_(i,n)}return!0}get(){if(xl(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const e=this._value_.__value;return this._cachedGet_=e??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(Us.instancesCounter++,this._instanceCounter_=Us.instancesCounter),Us.instances.set(this._instanceCounter_,this),"<"+ur+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+ur+"-publisher-proxy>"}};Us.instances=new Map,Us.instancesCounter=0;let Lr=Us;const fi=[];function xl(t){fi.length>0&&fi[0].add(t)}function $o(){fi.unshift(new Set)}function Do(){return fi.shift()}const Te=class Te{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],Te.instance!=null)throw"Singleton / use getInstance";Te.instance=this,this.isLocalStrorageReady=this.cleanStorageData(),Te.initPageShowHandler()}static initPageShowHandler(){Te.pageShowHandlerInitialized||(Te.pageShowHandlerInitialized=!0,window.addEventListener("pageshow",e=>{e.persisted&&Te.getInstance().invalidateAll()}))}invalidateAll(){this.publishers.forEach(e=>{e._invalidate_on_page_show_&&e.invalidate()})}async cleanStorageData(){return new Promise(e=>{(async()=>{try{let r=localStorage.getItem(un),i=null;if(r&&(i=await this.decompress(r,"gzip")),i)try{this.localStorageData=JSON.parse(i)}catch{this.localStorageData={}}else r=await this.compress("{}","gzip"),localStorage.setItem(un,r),this.localStorageData={};const n=1e3*60*60*12;for(const o in this.localStorageData){const c=this.localStorageData[o],h=new Date().getTime()-(c.expirationDelayMs||n);c.lastModifiationMS<h&&delete this.localStorageData[o]}e(!0)}catch{window.requestAnimationFrame(()=>{e(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(e){if(e){const s=Te.instances.get(e);return s||(console.warn("No PublisherManager instance registered with id:",e,"creating new one"),new Te)}return Te.instance==null?new Te:Te.instance}static get(e,s){return Te.getInstance().get(e,s)}async setLocalData(e,s){await this.isLocalStrorageReady,e.set(this.localStorageData[s+"¤lang_"+Je.getLanguage()]?.data||e.get())}get(e,s){const r=s?.localStorageMode==="enabled",i=s?.invalidateOnPageShow===!0;if(!this.publishers.has(e)){const c=hn({});this.set(e,c)}const n=this.publishers.get(e);return r&&this.initialisedData.indexOf(e)===-1&&(s?.expirationDelayMs&&(n._expiration_delay_=s.expirationDelayMs),n._is_savable_=!0,this.initialisedData.push(e),this.setLocalData(n,e)),i&&(n._invalidate_on_page_show_=i),this.publishers.get(e)}set(e,s){this.publishers.set(e,s)}delete(e){return this.publishers.has(e)?(this.publishers.delete(e),!0):!1}async saveToLocalStorage(e=0){if(!(e!==Te.saveId&&e%10!=0))try{if(!Te.changed||Te.saving)return;Te.saving=!0,Te.changed=!1;const s=Array.from(this.publishers.keys());let r=!1;for(const i of s){const n=this.publishers.get(i);if(!n?._is_savable_)continue;const o=n?.get();o&&(this.localStorageData[i+"¤lang_"+Je.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:n._expiration_delay_,data:o},r=!0)}if(r){const i=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(un,i)}if(Te.saving=!1,Te.changed){Te.saveId++;const i=Te.saveId;setTimeout(()=>this.saveToLocalStorage(i),1e3)}}catch{Te.saving=!1}}async compress(e,s){const r=new TextEncoder().encode(e),i=window,n=new i.CompressionStream(s),o=n.writable.getWriter();o.write(r),o.close();const c=await new Response(n.readable).arrayBuffer(),h=new Uint8Array(c);let b="";for(let k=0;k<h.length;k++)b+=String.fromCharCode(h[k]);return btoa(b)}async decompress(e,s){const r=atob(e),n=Uint8Array.from(r,k=>k.charCodeAt(0)).buffer,o=window,c=new o.DecompressionStream(s),h=c.writable.getWriter();h.write(n),h.close();const b=await new Response(c.readable).arrayBuffer();return new TextDecoder().decode(b)}};Te.buildDate="Tue Sep 29 2026 17:50:53 GMT+0200 (Central European Summer Time)",Te.changed=!1,Te.saving=!1,Te.saveId=0,Te.instance=null,Te.instances=new Map,Te.pageShowHandlerInitialized=!1;let be=Te;if(typeof window<"u"){const t=window,e=cn+"PublisherManager",s=t[e]||be;if(t[e]||(t[e]=be),s!==be){const r=["instance","instances","changed","saving","saveId","pageShowHandlerInitialized"];for(const i of r)Object.defineProperty(be,i,{configurable:!0,get(){return s[i]},set(n){s[i]=n}})}}const Sl=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function Al(t,e){return{get:function(s,r){if(typeof r=="string"&&Sl.has(r))return t[r];if(r==Symbol.toPrimitive)return()=>e().get();if(!t._proxies_.has(r)){const i=t._value_[r],n=hn(As(i)?i:{__value:i},t,r);n._proxies_.set("_parent_",e()),t._proxies_.set(r,n)}return t._proxies_.get(r)},set:function(s,r,i){if(r=="_value_")return t._value_=i,!0;if(r=="_cachedGet_")return t._cachedGet_=i,!0;if(r=="_assignmentId_")return t._assignmentId_=i,!0;if(r=="_is_savable_")return t._is_savable_=i,!0;if(r=="_expiration_delay_")return t._expiration_delay_=i,!0;if(r=="_invalidate_on_page_show_")return t._invalidate_on_page_show_=i,!0;if(r=="_instanceCounter_")return t._instanceCounter_=i,!0;if(!t._proxies_.has(r)){const o=hn({},t,r);o._proxies_.set("_parent_",e()),t._proxies_.set(r,o)}return t._value_[r]!==i&&(t._value_[r]=i,t._publishDynamicFilling_(r,i),t._proxies_.get(r)?.set(As(i)?i:{__value:i})),!0},deleteProperty:function(s,r){return t._publishDynamicFilling_(r,null),t._proxies_.get(r)?.set(null),delete t._value_[r]},has:function(s,r){return r in t._value_&&r!="_lockInternalMutationPublishing_"},defineProperty:function(s,r,i){return i&&"value"in i&&(t._value_[r]=i.value),!0},getOwnPropertyDescriptor:function(s,r){return{enumerable:!0,configurable:!0}},ownKeys:function(s){return t._value_.__value?Object.keys(t._value_.__value):Object.keys(t._value_)}}}function hn(t,e=null,s){const r=new Lr(t,e,s);let i=null;const n=Al(r,()=>i);return i=new Proxy(r,n),i}class Cl extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=e=>{this.innerHTML=e.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=Lr.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(ur+"-publisher-proxy",Cl)}catch{}const gi=(t,e)=>{if(typeof t=="function"){const s=t;return $o(),s(),Do()}if(typeof t=="string"){const s=t.split("."),r=s.shift()||"";let i=be.get(r,e);i=at.traverse(i,s);const n=new Set;return n.add(i),n}return new Set([t])};function kl(t){const e=di(t);return gi(e).values().next().value?.get()}function bi(t,e,s){const r=di(t);return gi(r,s).values().next().value}function $l(t,e){return ko(e)?bi(t,void 0,e):bi(t)}function mi(t,e){return ko(e)?bi(t,void 0,e):bi(t)}function Dl(t,e){const s=di(t);gi(s).values().next().value?.set(e)}let vi=(Oe=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(Oe.observedElements.keys()).forEach(e=>Oe.unObserve(e)))}static observe(e){if(!e||!Oe.enabled||Oe.observedElements.has(e))return;const s=new MutationObserver(Oe.onMutation),r={};r.childList=!0,r.subtree=!0,r.attributes=!0,r.attributeFilter=["data-bind"],s.observe(e,r),e.querySelectorAll("[data-bind]").forEach(i=>Oe.addPublisherListeners(i)),Oe.observedElements.set(e,s)}static unObserve(e){if(!e)return;const s=this.observedElements.get(e);s&&(s.disconnect(),e.querySelectorAll("[data-bind]").forEach(r=>Oe.removePublisherListeners(r)))}static onAdded(e){e.hasAttribute&&e.hasAttribute("data-bind")&&Oe.addPublisherListeners(e),e.querySelectorAll?e.querySelectorAll("[data-bind]").forEach(s=>Oe.addPublisherListeners(s)):e.childNodes.forEach(s=>Oe.onAdded(s))}static onRemoved(e){e.hasAttribute&&e.hasAttribute("data-bind")&&Oe.removePublisherListeners(e),e.querySelectorAll?e.querySelectorAll("[data-bind]").forEach(s=>Oe.removePublisherListeners(s)):e.childNodes.forEach(s=>Oe.onRemoved(s))}static onMutation(e){for(const s of e)switch(s.type){case"attributes":Oe.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(r=>{Oe.onAdded(r)}),s.removedNodes.forEach(r=>{Oe.onRemoved(r)});break}}static removePublisherListeners(e){const s=Oe.publisherListeners.get(e);s&&(Oe.publisherListeners.delete(e),s.forEach(r=>{r.publisher?.offAssign(r.onAssign)}))}static getVariablesDescriptor(e){let s=e.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(r=>r.replace("$","")):s=[e],s=s.filter(r=>r.length>0),{expression:e.replace("\\",""),variables:s.map(r=>r.split(/\b\.\b/).map(i=>i.replace("\\","")))}}static getDataBindItems(e){return"attributes"in e?Array.from(e.attributes).filter(s=>s.name.indexOf("::")==0).map(s=>({propertyToUpdate:s.name.substring(2).replace(/-((html)|\w)/g,i=>i.substring(1).toUpperCase()),bindedVariablesDescriptor:Oe.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(e,s){if(!s)return e;for(const r of s)if(r!="_self_"){if(!e)return null;e=e[r]}return e}static addPublisherListeners(e){Oe.removePublisherListeners(e);const s=Je.getAncestorAttributeValue(e.parentNode||e.host||e,"dataProvider");if(!s)return;const r=be.getInstance().get(s),i=Oe.getDataBindItems(e),n=[];i.forEach(o=>{const c=o.bindedVariablesDescriptor,h=o.propertyToUpdate;for(const b of c.variables){const k=b;let g=r;g=Oe.getSubPublisher(r,k);const f=e,A={publisher:g,onAssign:()=>{const E=c.variables.map(U=>Oe.getSubPublisher(r,U)?.get());let O=c.expression,N=!1;if(E.length==1&&c.variables[0].join(".")==O.substring(1)){let U=E[0];U===null&&(U=""),f[h]=U;return}for(let U=0;U<E.length;U++){let P=E[U];const y=c.variables[U];P===null&&(N=!0,P=void 0),O=O.replace("$"+y.join("."),P)}if(O.indexOf("|")!=-1){const U=O.indexOf("|");if(U==0)O=Tr.js(O.substring(1));else{const P=O.substring(0,U),y=O.substring(U+1),I=Tr[P];O=N?"":I?I(y):O}}else O=N?"":O;f[h]=O}};g?.onAssign(A.onAssign),n.push(A)}}),Oe.publisherListeners.set(e,n)}},Oe.observedElements=new Map,Oe.enabled=!0,Oe.publisherListeners=new Map,Oe);vi.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=vi);/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2017 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -6,73 +6,73 @@
|
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2019 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const
|
|
9
|
+
*/const yi=globalThis,dn=yi.ShadowRoot&&(yi.ShadyCSS===void 0||yi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,pn=Symbol(),Eo=new WeakMap;let fn=class{constructor(e,s,r){if(this._$cssResult$=!0,r!==pn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=s}get styleSheet(){let e=this.o;const s=this.t;if(dn&&e===void 0){const r=s!==void 0&&s.length===1;r&&(e=Eo.get(s)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Eo.set(s,e))}return e}toString(){return this.cssText}};const El=t=>new fn(typeof t=="string"?t:t+"",void 0,pn),ee=(t,...e)=>{const s=t.length===1?t[0]:e.reduce(((r,i,n)=>r+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1]),t[0]);return new fn(s,t,pn)},Ol=(t,e)=>{if(dn)t.adoptedStyleSheets=e.map((s=>s instanceof CSSStyleSheet?s:s.styleSheet));else for(const s of e){const r=document.createElement("style"),i=yi.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=s.cssText,t.appendChild(r)}},Oo=dn?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let s="";for(const r of e.cssRules)s+=r.cssText;return El(s)})(t):t;/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const{is:
|
|
13
|
+
*/const{is:Tl,defineProperty:Ll,getOwnPropertyDescriptor:Ml,getOwnPropertyNames:Il,getOwnPropertySymbols:Nl,getPrototypeOf:Fl}=Object,wi=globalThis,To=wi.trustedTypes,jl=To?To.emptyScript:"",Rl=wi.reactiveElementPolyfillSupport,Mr=(t,e)=>t,_i={toAttribute(t,e){switch(e){case Boolean:t=t?jl:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=t!==null;break;case Number:s=t===null?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch{s=null}}return s}},gn=(t,e)=>!Tl(t,e),Lo={attribute:!0,type:String,converter:_i,reflect:!1,useDefault:!1,hasChanged:gn};Symbol.metadata??=Symbol("metadata"),wi.litPropertyMetadata??=new WeakMap;let hr=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,s=Lo){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(e,s),!s.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(e,r,s);i!==void 0&&Ll(this.prototype,e,i)}}static getPropertyDescriptor(e,s,r){const{get:i,set:n}=Ml(this.prototype,e)??{get(){return this[s]},set(o){this[s]=o}};return{get:i,set(o){const c=i?.call(this);n?.call(this,o),this.requestUpdate(e,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Lo}static _$Ei(){if(this.hasOwnProperty(Mr("elementProperties")))return;const e=Fl(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Mr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Mr("properties"))){const s=this.properties,r=[...Il(s),...Nl(s)];for(const i of r)this.createProperty(i,s[i])}const e=this[Symbol.metadata];if(e!==null){const s=litPropertyMetadata.get(e);if(s!==void 0)for(const[r,i]of s)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[s,r]of this.elementProperties){const i=this._$Eu(s,r);i!==void 0&&this._$Eh.set(i,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const s=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const i of r)s.unshift(Oo(i))}else e!==void 0&&s.push(Oo(e));return s}static _$Eu(e,s){const r=s.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,s=this.constructor.elementProperties;for(const r of s.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ol(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,s,r){this._$AK(e,r)}_$ET(e,s){const r=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,r);if(i!==void 0&&r.reflect===!0){const n=(r.converter?.toAttribute!==void 0?r.converter:_i).toAttribute(s,r.type);this._$Em=e,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(e,s){const r=this.constructor,i=r._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const n=r.getPropertyOptions(i),o=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:_i;this._$Em=i;const c=o.fromAttribute(s,n.type);this[i]=c??this._$Ej?.get(i)??c,this._$Em=null}}requestUpdate(e,s,r){if(e!==void 0){const i=this.constructor,n=this[e];if(r??=i.getPropertyOptions(e),!((r.hasChanged??gn)(n,s)||r.useDefault&&r.reflect&&n===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,s,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,s,{useDefault:r,reflect:i,wrapped:n},o){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??s??this[e]),n!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(s=void 0),this._$AL.set(e,s)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(s){Promise.reject(s)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[i,n]of r){const{wrapped:o}=n,c=this[i];o!==!0||this._$AL.has(i)||c===void 0||this.C(i,void 0,n,c)}}let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(s)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(s)}willUpdate(e){}_$AE(e){this._$EO?.forEach((s=>s.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((s=>this._$ET(s,this[s]))),this._$EM()}updated(e){}firstUpdated(e){}};hr.elementStyles=[],hr.shadowRootOptions={mode:"open"},hr[Mr("elementProperties")]=new Map,hr[Mr("finalized")]=new Map,Rl?.({ReactiveElement:hr}),(wi.reactiveElementVersions??=[]).push("2.1.1");/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/const
|
|
17
|
+
*/const zl={attribute:!0,type:String,converter:_i,reflect:!1,hasChanged:gn},Ul=(t=zl,e,s)=>{const{kind:r,metadata:i}=s;let n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),r==="setter"&&((t=Object.create(t)).wrapped=!0),n.set(s.name,t),r==="accessor"){const{name:o}=s;return{set(c){const h=e.get.call(this);e.set.call(this,c),this.requestUpdate(o,h,t)},init(c){return c!==void 0&&this.C(o,void 0,t,c),c}}}if(r==="setter"){const{name:o}=s;return function(c){const h=this[o];e.call(this,c),this.requestUpdate(o,h,t)}}throw Error("Unsupported decorator location: "+r)};function u(t){return(e,s)=>typeof s=="object"?Ul(t,e,s):((r,i,n)=>{const o=i.hasOwnProperty(n);return i.constructor.createProperty(n,r),o?Object.getOwnPropertyDescriptor(i,n):void 0})(t,e,s)}/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/function Ae(t){return
|
|
21
|
+
*/function Ae(t){return u({...t,state:!0,attribute:!1})}/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/const
|
|
25
|
+
*/const bn=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,s),s);/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/function Cs(t,e){return(s,i
|
|
29
|
+
*/function Cs(t,e){return(s,r,i)=>{const n=o=>o.renderRoot?.querySelector(t)??null;return bn(s,r,{get(){return n(this)}})}}/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2021 Google LLC
|
|
32
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
|
-
*/function
|
|
33
|
+
*/function Ir(t){return(e,s)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}]`:":not([name])");return bn(e,s,{get(){const o=this.renderRoot?.querySelector(n),c=o?.assignedElements(t)??[];return i===void 0?c:c.filter((h=>h.matches(i)))}})}}/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/function bt(t){return(e,s)=>{const{slot:
|
|
37
|
+
*/function bt(t){return(e,s)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return bn(e,s,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(t)??[]}})}}/**
|
|
38
38
|
* @license
|
|
39
39
|
* Copyright 2017 Google LLC
|
|
40
40
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
|
-
*/const
|
|
42
|
-
\f\r]`,jr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
43
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
41
|
+
*/const mn=globalThis,Pi=mn.trustedTypes,Mo=Pi?Pi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Io="$lit$",ks=`lit$${Math.random().toFixed(9).slice(2)}$`,No="?"+ks,ql=`<${No}>`,Bs=document,Nr=()=>Bs.createComment(""),Fr=t=>t===null||typeof t!="object"&&typeof t!="function",vn=Array.isArray,Vl=t=>vn(t)||typeof t?.[Symbol.iterator]=="function",yn=`[
|
|
42
|
+
\f\r]`,jr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fo=/-->/g,jo=/>/g,Hs=RegExp(`>|${yn}(?:([^\\s"'>=/]+)(${yn}*=${yn}*(?:[^
|
|
43
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ro=/'/g,zo=/"/g,Uo=/^(?:script|style|textarea|title)$/i,Bl=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),R=Bl(1),Nt=Symbol.for("lit-noChange"),re=Symbol.for("lit-nothing"),qo=new WeakMap,Ws=Bs.createTreeWalker(Bs,129);function Vo(t,e){if(!vn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Mo!==void 0?Mo.createHTML(e):e}const Hl=(t,e)=>{const s=t.length-1,r=[];let i,n=e===2?"<svg>":e===3?"<math>":"",o=jr;for(let c=0;c<s;c++){const h=t[c];let b,k,g=-1,f=0;for(;f<h.length&&(o.lastIndex=f,k=o.exec(h),k!==null);)f=o.lastIndex,o===jr?k[1]==="!--"?o=Fo:k[1]!==void 0?o=jo:k[2]!==void 0?(Uo.test(k[2])&&(i=RegExp("</"+k[2],"g")),o=Hs):k[3]!==void 0&&(o=Hs):o===Hs?k[0]===">"?(o=i??jr,g=-1):k[1]===void 0?g=-2:(g=o.lastIndex-k[2].length,b=k[1],o=k[3]===void 0?Hs:k[3]==='"'?zo:Ro):o===zo||o===Ro?o=Hs:o===Fo||o===jo?o=jr:(o=Hs,i=void 0);const A=o===Hs&&t[c+1].startsWith("/>")?" ":"";n+=o===jr?h+ql:g>=0?(r.push(b),h.slice(0,g)+Io+h.slice(g)+ks+A):h+ks+(g===-2?c:A)}return[Vo(t,n+(t[s]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};let wn=class ml{constructor({strings:e,_$litType$:s},r){let i;this.parts=[];let n=0,o=0;const c=e.length-1,h=this.parts,[b,k]=Hl(e,s);if(this.el=ml.createElement(b,r),Ws.currentNode=this.el.content,s===2||s===3){const g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(i=Ws.nextNode())!==null&&h.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const g of i.getAttributeNames())if(g.endsWith(Io)){const f=k[o++],A=i.getAttribute(g).split(ks),E=/([.?@])?(.*)/.exec(f);h.push({type:1,index:n,name:E[2],strings:A,ctor:E[1]==="."?Kl:E[1]==="?"?Yl:E[1]==="@"?Gl:xi}),i.removeAttribute(g)}else g.startsWith(ks)&&(h.push({type:6,index:n}),i.removeAttribute(g));if(Uo.test(i.tagName)){const g=i.textContent.split(ks),f=g.length-1;if(f>0){i.textContent=Pi?Pi.emptyScript:"";for(let A=0;A<f;A++)i.append(g[A],Nr()),Ws.nextNode(),h.push({type:2,index:++n});i.append(g[f],Nr())}}}else if(i.nodeType===8)if(i.data===No)h.push({type:2,index:n});else{let g=-1;for(;(g=i.data.indexOf(ks,g+1))!==-1;)h.push({type:7,index:n}),g+=ks.length-1}n++}}static createElement(e,s){const r=Bs.createElement("template");return r.innerHTML=e,r}};function dr(t,e,s=t,r){if(e===Nt)return e;let i=r!==void 0?s._$Co?.[r]:s._$Cl;const n=Fr(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),n===void 0?i=void 0:(i=new n(t),i._$AT(t,s,r)),r!==void 0?(s._$Co??=[])[r]=i:s._$Cl=i),i!==void 0&&(e=dr(t,i._$AS(t,e.values),i,r)),e}let Wl=class{constructor(e,s){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:s},parts:r}=this._$AD,i=(e?.creationScope??Bs).importNode(s,!0);Ws.currentNode=i;let n=Ws.nextNode(),o=0,c=0,h=r[0];for(;h!==void 0;){if(o===h.index){let b;h.type===2?b=new pr(n,n.nextSibling,this,e):h.type===1?b=new h.ctor(n,h.name,h.strings,this,e):h.type===6&&(b=new Zl(n,this,e)),this._$AV.push(b),h=r[++c]}o!==h?.index&&(n=Ws.nextNode(),o++)}return Ws.currentNode=Bs,i}p(e){let s=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,s),s+=r.strings.length-2):r._$AI(e[s])),s++}};class pr{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,s,r,i){this.type=2,this._$AH=re,this._$AN=void 0,this._$AA=e,this._$AB=s,this._$AM=r,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&e?.nodeType===11&&(e=s.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,s=this){e=dr(this,e,s),Fr(e)?e===re||e==null||e===""?(this._$AH!==re&&this._$AR(),this._$AH=re):e!==this._$AH&&e!==Nt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Vl(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==re&&Fr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Bs.createTextNode(e)),this._$AH=e}$(e){const{values:s,_$litType$:r}=e,i=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=wn.createElement(Vo(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===i)this._$AH.p(s);else{const n=new Wl(i,this),o=n.u(this.options);n.p(s),this.T(o),this._$AH=n}}_$AC(e){let s=qo.get(e.strings);return s===void 0&&qo.set(e.strings,s=new wn(e)),s}k(e){vn(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let r,i=0;for(const n of e)i===s.length?s.push(r=new pr(this.O(Nr()),this.O(Nr()),this,this.options)):r=s[i],r._$AI(n),i++;i<s.length&&(this._$AR(r&&r._$AB.nextSibling,i),s.length=i)}_$AR(e=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class xi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,s,r,i,n){this.type=1,this._$AH=re,this._$AN=void 0,this.element=e,this.name=s,this._$AM=i,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=re}_$AI(e,s=this,r,i){const n=this.strings;let o=!1;if(n===void 0)e=dr(this,e,s,0),o=!Fr(e)||e!==this._$AH&&e!==Nt,o&&(this._$AH=e);else{const c=e;let h,b;for(e=n[0],h=0;h<n.length-1;h++)b=dr(this,c[r+h],s,h),b===Nt&&(b=this._$AH[h]),o||=!Fr(b)||b!==this._$AH[h],b===re?e=re:e!==re&&(e+=(b??"")+n[h+1]),this._$AH[h]=b}o&&!i&&this.j(e)}j(e){e===re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Kl extends xi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===re?void 0:e}}class Yl extends xi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==re)}}class Gl extends xi{constructor(e,s,r,i,n){super(e,s,r,i,n),this.type=5}_$AI(e,s=this){if((e=dr(this,e,s,0)??re)===Nt)return;const r=this._$AH,i=e===re&&r!==re||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==re&&(r===re||i);i&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Zl{constructor(e,s,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=s,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){dr(this,e)}}const Jl={I:pr},Xl=mn.litHtmlPolyfillSupport;Xl?.(wn,pr),(mn.litHtmlVersions??=[]).push("3.3.1");const Ql=(t,e,s)=>{const r=s?.renderBefore??e;let i=r._$litPart$;if(i===void 0){const n=s?.renderBefore??null;r._$litPart$=i=new pr(e.insertBefore(Nr(),n),n,void 0,s??{})}return i._$AI(t),i};/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2020 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/const{I:
|
|
47
|
+
*/const{I:ec}=Jl,tc=t=>t.strings===void 0,Bo=()=>document.createComment(""),Rr=(t,e,s)=>{const r=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(s===void 0){const n=r.insertBefore(Bo(),i),o=r.insertBefore(Bo(),i);s=new ec(n,o,t,t.options)}else{const n=s._$AB.nextSibling,o=s._$AM,c=o!==t;if(c){let h;s._$AQ?.(t),s._$AM=t,s._$AP!==void 0&&(h=t._$AU)!==o._$AU&&s._$AP(h)}if(n!==i||c){let h=s._$AA;for(;h!==n;){const b=h.nextSibling;r.insertBefore(h,i),h=b}}}return s},Ks=(t,e,s=t)=>(t._$AI(e,s),t),sc={},rc=(t,e=sc)=>t._$AH=e,ic=t=>t._$AH,_n=t=>{t._$AR(),t._$AA.remove()};/**
|
|
48
48
|
* @license
|
|
49
49
|
* Copyright 2017 Google LLC
|
|
50
50
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
*/const Ys={ATTRIBUTE:1,CHILD:2},$s=t=>(...e)=>({_$litDirective$:t,values:e});let fr=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,s,
|
|
51
|
+
*/const Ys={ATTRIBUTE:1,CHILD:2},$s=t=>(...e)=>({_$litDirective$:t,values:e});let fr=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,s,r){this._$Ct=e,this._$AM=s,this._$Ci=r}_$AS(e,s){return this.update(e,s)}update(e,s){return this.render(...s)}};/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright 2017 Google LLC
|
|
54
54
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
|
-
*/const zr=(t,e)=>{const s=t._$AN;if(s===void 0)return!1;for(const
|
|
55
|
+
*/const zr=(t,e)=>{const s=t._$AN;if(s===void 0)return!1;for(const r of s)r._$AO?.(e,!1),zr(r,e);return!0},Si=t=>{let e,s;do{if((e=t._$AM)===void 0)break;s=e._$AN,s.delete(t),t=e}while(s?.size===0)},Ho=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(s===void 0)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),ac(e)}};function nc(t){this._$AN!==void 0?(Si(this),this._$AM=t,Ho(this)):this._$AM=t}function oc(t,e=!1,s=0){const r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(r))for(let n=s;n<r.length;n++)zr(r[n],!1),Si(r[n]);else r!=null&&(zr(r,!1),Si(r));else zr(this,t)}const ac=t=>{t.type==Ys.CHILD&&(t._$AP??=oc,t._$AQ??=nc)};class Pn extends fr{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,s,r){super._$AT(e,s,r),Ho(this),this.isConnected=e._$AU}_$AO(e,s=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),s&&(zr(this,e),Si(this))}setValue(e){if(tc(this._$Ct))this._$Ct._$AI(e,this);else{const s=[...this._$Ct._$AH];s[this._$Ci]=e,this._$Ct._$AI(s,this,0)}}disconnected(){}reconnected(){}}/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
|
-
*/const xn=globalThis;let J=class extends
|
|
59
|
+
*/const xn=globalThis;let J=class extends hr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ql(s,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Nt}};J._$litElement$=!0,J.finalized=!0,xn.litElementHydrateSupport?.({LitElement:J});const lc=xn.litElementPolyfillSupport;lc?.({LitElement:J}),(xn.litElementVersions??=[]).push("4.2.1");function Wo(t){if(t==null||typeof t!="object"||Array.isArray(t))return t;const e={...t};return delete e._sonic_http_response_,e}const Ne=class Ne{constructor(e){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.keepAlive=!1,this.serviceURL=e.serviceURL,this.blockUntilDone=e.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=e.userName,this.password=e.password,e.token&&(this.token=e.token),this.tokenProvider=e.tokenProvider,this.authToken=e.authToken,this.addHTTPResponse=e.addHTTPResponse||!1,this.credentials=e.credentials,this.cache=e.cache||"default",this.keepAlive=e.keepAlive||!1}set token(e){if(this._token=e,!e){Ne.tokens.delete(this.serviceURL);return}Ne.invalidTokens.includes(e)||Ne.tokens.set(this.serviceURL,e)}get token(){return Ne.invalidTokens.includes(this._token)?Ne.tokens.get(this.serviceURL):this._token}handleInvalidToken(e){e&&(Ne.invalidTokens.includes(e)||(Ne.invalidTokens.push(e),this.token=null))}async handleResult(e,s){Ne.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=e;const r=e.headers.get("content-type")?.toLowerCase(),i=e.status;let n={};if(!r||r.indexOf("text/")==0)n={text:await e.text()};else try{n=await e.json()}catch{n={}}if(this.addHTTPResponse&&at.isObject(n)&&(n._sonic_http_response_=e),i===498&&!Ne.failledTokenUpdates.has(this.serviceURL))if(this.handleInvalidToken(this.token),s.apiMethod==="get"){const c=await this.get(s.path,s.additionalHeaders);if(c==null)throw new Error("GET retry failed after token refresh");n=c}else n=await this[s.apiMethod](s.path,s.data,s.method,s.additionalHeaders);return mi("sonic-api").lastResponse.set({http:e,processed:n}),n}async auth(){if(this.token)return;if(Ne.tokens.has(this.serviceURL)){this.token=Ne.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let e={};this.userName&&this.password?e={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(e={Authorization:"Bearer "+this.authToken});const s=new URL(this.serviceURL),r=s.protocol+"//"+s.host,i=await fetch(this.computeURL(this.tokenProvider,{serviceHost:r}),{headers:e,credentials:this.credentials,keepalive:this.keepAlive});try{const n=await i.json();n.token?this.token=n.token:Ne.failledTokenUpdates.set(this.serviceURL,!0)}catch{Ne.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(e,s){const r=be.get(e),i=new URLSearchParams(s.split("?")[1]||""),n=r.get();let o=[];Array.isArray(n)?o=n:o=[n];const c=[];let h=Number.POSITIVE_INFINITY,b=0,k=0;if(i.has("limit")&&(h=parseInt(i.get("limit")||"0"),k++),i.has("offset")&&(b=parseInt(i.get("offset")||"0"),k++),k>0&&(i.delete("limit"),i.delete("offset")),i.size===0)return o.slice(b,b+h);for(const[g,f]of i.entries()){const A=f.split(",").map(E=>E.trim());for(const E of A)for(const O of o)if(typeof O!="object")isNaN(+O)?O.toString().toLowerCase().includes(f.toLowerCase())&&c.push(O):O===f&&c.push(O);else{const N=O;if(!N[g])continue;isNaN(+N[g])?N[g]?.toString().toLowerCase().includes(E.toLowerCase())&&c.push(O):N[g]===E&&c.push(O)}}return c.slice(b,b+h)}firstCallDone(){return new Promise(e=>{if(!Ne.firstCallDoneFlags.has(this.serviceURL))Ne.firstCallDoneFlags.set(this.serviceURL,"loading"),e(!0);else{const s=()=>{[void 0,"loading"].includes(Ne.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(s):e(!0)};s()}})}async get(e,s){const r=/dataProvider\((.*?)\)(.*?)$/;if(r.test(e)){this.blockUntilDone&&(await this.firstCallDone(),Ne.firstCallDoneFlags.set(this.serviceURL,"loading"));const b=e.match(r);if(!b)throw new Error("dataProvider path is not valid");return await this.localGet(b[1],b[2])}const i={apiMethod:"get",path:e,additionalHeaders:s},n=await this.createHeaders(s),o=this.computeURL(e),c=JSON.stringify({url:o,headers:n,credentials:this.credentials,cache:this.cache,keepAlive:this.keepAlive});if(this.blockUntilDone&&(await this.firstCallDone(),Ne.firstCallDoneFlags.set(this.serviceURL,"loading")),!Ne.loadingGetPromises.has(c)){const b=new Promise(async k=>{try{const g=await fetch(o,{headers:n,credentials:this.credentials,cache:this.cache,keepalive:this.keepAlive}),f=await this.handleResult(g,i);k({processed:f,response:this.lastResult})}catch{Ne.firstCallDoneFlags.set(this.serviceURL,"error"),k(null)}});Ne.loadingGetPromises.set(c,b)}const h=await Ne.loadingGetPromises.get(c);return Ne.loadingGetPromises.delete(c),h?(this.lastResult=h.response,h.processed):null}async getDetailed(e,s){const r=/dataProvider\((.*?)\)(.*?)$/.test(e),i=await this.get(e,s);if(i==null)return;const n=Wo(i),o=this.computeURL(e);if(r)return{request:new Request(o,{method:"GET"}),result:n};const c=await this.createHeaders(s);return{request:new Request(o,{method:"GET",headers:new Headers(c),credentials:this.credentials,cache:this.cache,keepalive:this.keepAlive}),response:this.lastResult,result:n}}async sendDetailed(e,s,r,i){const n=await this.send(e,s,r,i);if(n==null)return;const o=Wo(n),c=this.computeURL(e),h=await this.createHeaders({Accept:"application/json","Content-Type":"application/json",...i});return{request:new Request(c,{method:r,headers:new Headers(h),credentials:this.credentials,body:JSON.stringify(s),keepalive:this.keepAlive}),response:this.lastResult,result:o}}async postDetailed(e,s,r){return this.sendDetailed(e,s,"POST",r)}async putDetailed(e,s,r){return this.sendDetailed(e,s,"PUT",r)}async patchDetailed(e,s,r){return this.sendDetailed(e,s,"PATCH",r)}async createHeaders(e){await this.auth();const s={};return this.token&&(s.Authorization="Bearer "+this.token),s["Accept-Language"]=Je.getLanguage(),e&&Object.assign(s,e),s}computeURL(e,s={}){let r="";e.startsWith("http")?r=e:r=this.serviceURL+"/"+e,r.startsWith("http")||(r=window.location.origin+r);const i=new URL(r);for(const n in s)i.searchParams.set(n,s[n]);return i.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(e,s,r="POST",i){const n={apiMethod:"send",path:e,additionalHeaders:i,method:r,data:s},o=await this.createHeaders(i);o.Accept="application/json",o["Content-Type"]="application/json";const c=await fetch(this.computeURL(e),{headers:o,credentials:this.credentials,method:r,body:JSON.stringify(s),keepalive:this.keepAlive});return await this.handleResult(c,n)}async submitFormData(e,s,r="POST",i){const n={apiMethod:"submitFormData",path:e,additionalHeaders:i,method:r,data:s},o=await this.createHeaders(i);o.Accept="application/json";const c=new FormData,h=s;for(const k in h)c.set(k,h[k]);const b=await fetch(this.computeURL(e),{headers:o,credentials:this.credentials,method:r,body:c,keepalive:this.keepAlive});return await this.handleResult(b,n)}async put(e,s,r){return this.send(e,s,"PUT",r)}async post(e,s,r){return this.send(e,s,"POST",r)}async patch(e,s,r){return this.send(e,s,"PATCH",r)}async delete(e,s,r){return this.send(e,s,"delete",r)}};Ne.loadingGetPromises=new Map,Ne.tokens=new Map,Ne.invalidTokens=[],Ne.failledTokenUpdates=new Map,Ne.firstCallDoneFlags=new Map;let Ds=Ne;Je.getApiConfiguration(document.body||document.documentElement);const cc=async(t,e)=>{};/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
|
-
*/let
|
|
63
|
+
*/let Sn=class extends fr{constructor(e){if(super(e),this.it=re,e.type!==Ys.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===re||e==null)return this._t=void 0,this.it=e;if(e===Nt)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const s=[e];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}};Sn.directiveName="unsafeHTML",Sn.resultType=1;const je=$s(Sn),An=new Map,Ko=t=>{if(!t)return null;const e=Je.getApiConfiguration(t),s=Je.getAncestorAttributeValue(t,"wordingProvider"),r=Je.getAncestorAttributeValue(t,"wordingVersionProvider"),i={apiConfiguration:e,wordingProvider:s,wordingVersionProvider:r};let n=null;for(const[o,c]of An)if(at.deepEqual(o,i)){n=c;break}return n||(n={api:new Ds(e),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:s,callIndex:0,wordingVersionProvider:r,apiCallKey:i},An.set(i,n)),n},Yo="",Ve=class Ve extends Pn{constructor(e){super(e),this.useUnsafeHTML=!1,this.onAssign=s=>{const r=this.useUnsafeHTML?je(s):s;this.setValue(r)},this.node=e.options.host}unsubscribe(){Ve.publisher["wording_"+this.key].offAssign(this.onAssign)}render(e,s=!1){return this.useUnsafeHTML=s,this.key!==e&&(this.key=e,this.isConnected&&this.subscribe(e)),Nt}static async callApi(e,s,r=!0,i){if(await be.getInstance().isLocalStrorageReady,Ve.firstCall){Ve.firstCall=!1,ln(Ve.reloadWordings);const k=Object.keys(Ve.publisher.get());for(const g of k)Ve.publisher.get()[g]===Yo&&delete Ve.publisher[g]}if(e){const k=Je.getAncestorAttributeValue(e,"wordingVersionProvider");k&&mi(k).onAssign(Ve.handleVersionProvider(e))}let n=Ve.publisher.get()["wording_"+s]!=null;const o=i||Ko(e);if(!o)return;if(n&&s!==""){o.translatedKeys.add(s);return}o.callIndex++;const c=o.callIndex,h=o.wordingProvider??"";if(!h&&r){window.setTimeout(async()=>{Ve.callApi(null,s,!1,o)},1e3);return}const b=o.api;window.queueMicrotask(async()=>{if(n=Ve.publisher["wording_"+s].get()!=null,!n&&s!==""&&(o.keysToTranslate.add(s),Ve.publisher["wording_"+s].set(Yo)),c!==o.callIndex)return;const k=Array.from(o.keysToTranslate);if(!k.length)return;const g=h.split("?"),f=g.shift(),A=(g.length>0?g.join("?")+"&":"")+"labels[]="+k.join("&labels[]="),E=f+"?"+A;o.translatedKeys=new Set([...o.translatedKeys,...o.keysToTranslate]),o.keysToTranslate.clear();const O=await b.get(E);for(const N in O)Ve.publisher["wording_"+N].set(O[N])})}static reloadWordings(){for(const e of An.values())e.keysToTranslate=new Set(e.translatedKeys),e.keysToTranslate.size>0&&Ve.callApi(null,"",!1,e)}static handleVersionProvider(e){const s=Ko(e),r=n=>{};if(!s)return r;if(Ve.versionProviderHandlers.has(s))return Ve.versionProviderHandlers.get(s)||r;const i=function(n){if(!s.wordingVersionProvider)return;const c=Ve.publisher.get().__wording_versions__??[];if(n==null)return;const h=c.find(b=>b.serviceURL===s.api.serviceURL)||{serviceURL:s.api.serviceURL,version:0};c.includes(h)||c.push(h),n!==h.version&&(h.version=n,Ve.publisher.set({__wording_versions__:c}),Ve.reloadWordings())};return Ve.versionProviderHandlers.set(s,i),i}subscribe(e){this.unsubscribe(),Ve.publisher["wording_"+e].onAssign(this.onAssign),Ve.callApi(this.node,e)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};Ve.publisher=be.get("sonic-wording",{localStorageMode:"enabled"}),Ve.firstCall=!0,Ve.versionProviderHandlers=new Map;let gr=Ve;const uc=$s(gr);var hc=Object.defineProperty,dc=Object.getOwnPropertyDescriptor,es=(t,e,s,r)=>{for(var i=r>1?void 0:r?dc(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&hc(e,s,i),i};let Ai=!1,Cn=new Set;const nt=(t,e)=>{var i;const s=(i=class extends t{constructor(...o){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.shouldRenderLazy=!0,this.defferedDebug=null,this.debug=null,this.onAssign=c=>{this.props=c}}hasAncestorAttribute(o){return this.getAncestorAttributeValue(o)!=null}getAncestorAttributeValue(o){return Je.getAncestorAttributeValue(this,o)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(o){typeof o=="string"&&["{","["].includes(o.trim().charAt(0))&&(o=JSON.parse(o)),o!=this._props&&(this._props=o,this.publisher&&this.publisher.get()!=o&&this.publisher.set(o),this.requestUpdate())}updated(o){super.updated(o);const h=[...(this.shadowRoot||this).children].filter(k=>k.tagName!="STYLE"),b=this.displayContents?"contents":h.length==0?"none":null;b?this.style.display=b:this.style.removeProperty("display")}connectedCallback(){if(i.instanceCounter++,this.hasAttribute("lazyRendering")){const o={root:null,threshold:.9};let c=!0;const h=new IntersectionObserver(b=>{for(const k of b)if(c&&k.isIntersecting){c=!1,h.disconnect(),this.initWording(),this.shouldRenderLazy=!1,this.startPublisher();break}},o);h.observe(this)}else this.initWording(),this.shouldRenderLazy=!1;this.initPublisher(),this.addDebugger(),super.connectedCallback()}disconnectedCallback(){this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),gr.publisher.stopTemplateFilling(this),this.onAssign&&this.publisher?.offAssign(this.onAssign)}addDebugger(){if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");const o=this.debug.style;o.position="fixed",o.top="0",o.right="0",o.margin="auto",o.borderRadius=".7rem",o.backgroundColor="#0f1729",o.color="#c5d4f9",o.padding="16px 16px",o.margin="16px 16px",o.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",o.overflowY="auto",o.zIndex="99999999",o.maxHeight="calc(100vh - 32px)",o.fontFamily="Consolas, monospace",o.maxWidth="min(50vw,25rem)",o.fontSize="12px",o.minWidth="300px",o.overflowWrap="break-word",o.resize="vertical"}this.addEventListener("click",o=>{o.ctrlKey&&(o.preventDefault(),Ai=!Ai)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{Ai||this.removeDebugger(),document.body.appendChild(this.debug),Cn.add(this.debug)}),this.addEventListener("mouseout",()=>{Ai||this.removeDebugger()}),this.publisher?.onInternalMutation(()=>{this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
|
|
64
64
|
<div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px;">
|
|
65
65
|
Variable disponible dans la console<br>
|
|
66
66
|
ctrl + Clique : épingler / désépingler
|
|
67
67
|
</div>
|
|
68
|
-
<pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify(this.publisher?.get(),null," ")}</pre>`})}}removeDebugger(){An.forEach(o=>{document.body.contains(o)&&document.body.removeChild(o)}),An=new Set}getApiConfiguration(){return Ke.getApiConfiguration(this)}async initWording(){const o=Object.getOwnPropertyNames(this.constructor.prototype);for(const c of o)c.indexOf("wording_")==0&&gr.callApi(this,c.substring(8));gr.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const o=super.createRenderRoot();return yi.observe(o),o}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const o=ye.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let c=this.dataProvider;if(!c&&this._props&&(this.dataProvider=c="__subscriber__"+r.instanceCounter),c){this.bindPublisher&&o.set(c,this.bindPublisher());let d=o.get(c,{localStorageMode:this.getAttribute("localStorage")||"disabled",invalidateOnPageShow:this.hasAttribute("invalidateOnPageShow")});if(this.dataProvider=c,this.hasAttribute("subDataProvider")){const m=this.getAttribute("subDataProvider");this.dataProvider=c+"/"+m,d=at.traverse(d,m.split(".")),o.set(this.dataProvider,d),this.publisher=d}this.publisher=d}this.hasAttribute("lazyRendering")||this.startPublisher()}startPublisher(){this.publisher&&(this._props&&this.publisher.set(this._props),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this.publisher.onAssign(this.onAssign))}},r.instanceCounter=0,r);return es([h({type:Number})],s.prototype,"collectDependenciesVersion",2),es([h({type:Boolean})],s.prototype,"displayContents",2),es([h({type:Boolean})],s.prototype,"noAutoFill",2),es([h({type:Boolean})],s.prototype,"forceAutoFill",2),es([h({type:Object})],s.prototype,"propertyMap",2),es([h({type:String,attribute:"data-title"})],s.prototype,"title",2),es([h({reflect:!0})],s.prototype,"dataProvider",2),es([h()],s.prototype,"bindPublisher",2),es([h()],s.prototype,"props",1),es([Ae()],s.prototype,"shouldRenderLazy",2),s};var lc=Object.defineProperty,cc=(t,e,s,i)=>{for(var r=void 0,n=t.length-1,o;n>=0;n--)(o=t[n])&&(r=o(e,s,r)||r);return r&&lc(e,s,r),r};const Ur=t=>{class e extends t{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const i=this.templates||[...this.querySelectorAll("template")];for(const r of i)r.hasAttribute(this.templateValueAttribute)&&(this.templateParts[r.getAttribute(this.templateValueAttribute)]=r,this.templatePartsList.push(r)),r.hasAttribute("skeleton")&&(this.templateParts.skeleton=r),r.hasAttribute("no-result")&&(this.templateParts["no-result"]=r),r.hasAttribute("no-item")&&(this.templateParts["no-item"]=r);this.templateList=i.filter(r=>!r.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=i),super.connectedCallback()}}return cc([h({type:Array})],e.prototype,"templates"),e};var hc=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,Xe=(t,e,s,i)=>{for(var r=i>1?void 0:i?uc(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(r=(i?o(e,s,r):o(r))||r);return i&&r&&hc(e,s,r),r};const dc="sonic-date";ln(()=>Re.updateComponentsLanguage());let Re=class extends nt(Ur(J)){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=0,this.computedStartDate=0,this.end_date=0,this.computedEndDate=0,this.hide_hours=!1,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}static updateComponentsLanguage(){Re.dateCompnents.forEach(t=>t.pageLanguage=Ke.getLanguage())}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(t){t||(t="Du %s au %s"),this._wording_billet_periode_validite=t,this.duAu=this.wording_billet_periode_validite?.split("%s").map(e=>e.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=Ke.getLanguage(),Re.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),Re.dateCompnents.delete(this)}getDatesParts(t,e,s){const i=this.startDateObject;i.setTime(t*1e3);let r=[];if(e>0){const n=this.endDateObject;n.setTime(e*1e3);const o=i.toDateString()==n.toDateString();if((!o||this.hide_hours)&&(delete s.hour,delete s.minute),r=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatRangeToParts(i,n),!o){const d=r.find(m=>m.type=="literal"&&m.source=="shared"&&m.value.trim().length>0);d&&(d.value=" "+this.duAu[1]+" ",d.type="to"),this.designMode||r.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else r=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatToParts(i);return this.designMode&&r.forEach(n=>n.value=n.value.replace(/,/g," ")),r[0].value=Tr.ucFirst(r[0].value),r.filter(n=>n.hidden!==!0)}dateStringToSeconds(t){return new Date(t).getTime()/1e3}willUpdate(t){if(this.computedStartDate=0,this.computedEndDate=0,this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.computedStartDate=this.date),this.start_date_string&&(this.computedStartDate=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),this.start_date&&(this.computedStartDate=this.start_date),!(!this.computedStartDate&&!this.now&&!this.end_date)&&(this.computedStartDate||(this.computedStartDate=Date.now()/1e3),this.end_date&&(this.computedEndDate=this.end_date),this.computedEndDate>0&&this.computedEndDate<this.computedStartDate)){const e=this.computedStartDate;this.computedStartDate=this.computedEndDate,this.computedEndDate=e}}render(){if(!this.renderIf||!this.computedStartDate&&!this.now&&!this.computedEndDate)return re;const t={year:this.year||"numeric",month:this.month||"short",day:this.day||"2-digit",hour12:this.hour12||!1};this.weekday!=="hidden"&&(t.weekday=this.weekday||"short"),this.hour!=="hidden"&&(t.hour=this.hour||"2-digit"),this.minute!=="hidden"&&(t.minute=this.minute||"2-digit"),this.era&&(t.era=this.era),this.time_zone&&(t.timeZone=this.time_zone);const e=this.getDatesParts(this.computedStartDate,this.computedEndDate,t);return je(`${e.map(s=>{const i=this.templateParts[s.type];if(i){const o=document.importNode(i.content,!0).children[0];return o.innerText.trim()==""&&(o.innerText=s.value),o.outerHTML}const r=document.createElement("span");return r.innerText=s.value,r.className=s.type,`<span class="${s.type}">${s.value}</span>`}).join("")}`)}};Re.dateCompnents=new Set,Xe([h()],Re.prototype,"wording_billet_periode_validite",1),Xe([h({type:Boolean})],Re.prototype,"designMode",2),Xe([h({type:String})],Re.prototype,"time_zone",2),Xe([h({type:Number})],Re.prototype,"date",2),Xe([h({type:String})],Re.prototype,"date_string",2),Xe([h({type:String})],Re.prototype,"start_date_string",2),Xe([h({type:String})],Re.prototype,"end_date_string",2),Xe([h({type:Number})],Re.prototype,"start_date",2),Xe([h({type:Number})],Re.prototype,"end_date",2),Xe([h({type:Boolean})],Re.prototype,"hide_hours",2),Xe([h({type:String})],Re.prototype,"era",2),Xe([h({type:String})],Re.prototype,"year",2),Xe([h({type:String})],Re.prototype,"month",2),Xe([h({type:String})],Re.prototype,"day",2),Xe([h({type:String})],Re.prototype,"weekday",2),Xe([h({type:String})],Re.prototype,"hour",2),Xe([h({type:Boolean})],Re.prototype,"hour12",2),Xe([h({type:String})],Re.prototype,"minute",2),Xe([h({type:String})],Re.prototype,"language",2),Xe([h({type:Boolean})],Re.prototype,"renderIf",2),Xe([h({type:Boolean})],Re.prototype,"now",2),Re=Xe([X(dc)],Re);let ct=(et=class{static listen(){if(!et.listening)return;const e=document.location?.href.replace(document.location.origin,"");et.prevURL&&et.prevURL!=e&&(et.prevURL=e,et.listeners.forEach(s=>{s.location=e})),window.requestAnimationFrame(et.listen)}static offChange(e){const s=et.listeners.indexOf(e);s!=-1&&(et.listeners.splice(s,1),et.listeners.length==0&&(et.listening=!1))}static onChange(e){et.listening||(et.listening=!0,et.listen()),et.listeners.push(e),e.location=this.prevURL}static changeFromComponent(e){const s=e.goBack,i=document.referrer;if(s!=null){const m=document.location.origin,k=(s||m).toString(),f=i.indexOf("http")==0?new URL(i).origin!=m:!1,A=i=="",E=history.length<3,O=A&&E,I=k!=document.location.href;if(f&&I||O){const x=history.state||{};x.concorde=x.concorde||{},x.concorde.hasDoneHistoryBack=!0,history.pushState(x,document.title),history.back(),document.location.replace(k)}else history.back();return}let r=e.getAttribute("to")||"";if(r||(r=e.href?.toString()||""),!r)return;if(r.indexOf("#")==0){document.location.hash=r.substring(1);return}const n=new URL(r,document.location.href),o=n.pathname.split("/"),c=[];let d="";for(const m of o)m!=d&&c.push(m),d=m;r="/"+c.join("/")+n.search+(n.hash?+n.hash:""),e.hasAttribute("pushState")?history.pushState(null,"",r):e.hasAttribute("replaceState")?history.replaceState(null,"",r):document.location.href=r}static updateComponentActiveState(e){if(e.autoActive=="disabled")return;const s=e.href?.toString()||"";if(e.href&&s.indexOf("http")!=0){const i=new URL(s,document.location.href),r=new URL(e.location||"",document.location.origin);let n=!1;e.autoActive=="strict"?n=i.pathname==r.pathname&&i.hash==r.hash&&i.search==r.search:e.autoActive=="strict-path-only"?n=i.pathname==r.pathname&&i.hash==r.hash:n=r.href.indexOf(i.href)==0,n?e.setAttribute("active","true"):e.removeAttribute("active")}}},et.listeners=[],et.listening=!1,et.prevURL=document.location?.href.replace(document.location.origin,""),et);/**
|
|
68
|
+
<pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify(this.publisher?.get(),null," ")}</pre>`})}}removeDebugger(){Cn.forEach(o=>{document.body.contains(o)&&document.body.removeChild(o)}),Cn=new Set}getApiConfiguration(){return Je.getApiConfiguration(this)}async initWording(){const o=Object.getOwnPropertyNames(this.constructor.prototype);for(const c of o)c.indexOf("wording_")==0&&gr.callApi(this,c.substring(8));gr.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const o=super.createRenderRoot();return vi.observe(o),o}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const o=be.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let c=this.dataProvider;if(!c&&this._props&&(this.dataProvider=c="__subscriber__"+i.instanceCounter),c){this.bindPublisher&&o.set(c,this.bindPublisher());let h=o.get(c,{localStorageMode:this.getAttribute("localStorage")||"disabled",invalidateOnPageShow:this.hasAttribute("invalidateOnPageShow")});if(this.dataProvider=c,this.hasAttribute("subDataProvider")){const b=this.getAttribute("subDataProvider");this.dataProvider=c+"/"+b,h=at.traverse(h,b.split(".")),o.set(this.dataProvider,h),this.publisher=h}this.publisher=h}this.hasAttribute("lazyRendering")||this.startPublisher()}startPublisher(){this.publisher&&(this._props&&this.publisher.set(this._props),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this.publisher.onAssign(this.onAssign))}},i.instanceCounter=0,i);return es([u({type:Number})],s.prototype,"collectDependenciesVersion",2),es([u({type:Boolean})],s.prototype,"displayContents",2),es([u({type:Boolean})],s.prototype,"noAutoFill",2),es([u({type:Boolean})],s.prototype,"forceAutoFill",2),es([u({type:Object})],s.prototype,"propertyMap",2),es([u({type:String,attribute:"data-title"})],s.prototype,"title",2),es([u({reflect:!0})],s.prototype,"dataProvider",2),es([u()],s.prototype,"bindPublisher",2),es([u()],s.prototype,"props",1),es([Ae()],s.prototype,"shouldRenderLazy",2),s};var pc=Object.defineProperty,fc=(t,e,s,r)=>{for(var i=void 0,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(e,s,i)||i);return i&&pc(e,s,i),i};const Ur=t=>{class e extends t{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const r=this.templates||[...this.querySelectorAll("template")];for(const i of r)i.hasAttribute(this.templateValueAttribute)&&(this.templateParts[i.getAttribute(this.templateValueAttribute)]=i,this.templatePartsList.push(i)),i.hasAttribute("skeleton")&&(this.templateParts.skeleton=i),i.hasAttribute("no-result")&&(this.templateParts["no-result"]=i),i.hasAttribute("no-item")&&(this.templateParts["no-item"]=i);this.templateList=r.filter(i=>!i.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=r),super.connectedCallback()}}return fc([u({type:Array})],e.prototype,"templates"),e};var gc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,Xe=(t,e,s,r)=>{for(var i=r>1?void 0:r?bc(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&gc(e,s,i),i};const mc="sonic-date";ln(()=>Re.updateComponentsLanguage());let Re=class extends nt(Ur(J)){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=0,this.computedStartDate=0,this.end_date=0,this.computedEndDate=0,this.hide_hours=!1,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}static updateComponentsLanguage(){Re.dateCompnents.forEach(t=>t.pageLanguage=Je.getLanguage())}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(t){t||(t="Du %s au %s"),this._wording_billet_periode_validite=t,this.duAu=this.wording_billet_periode_validite?.split("%s").map(e=>e.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=Je.getLanguage(),Re.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),Re.dateCompnents.delete(this)}getDatesParts(t,e,s){const r=this.startDateObject;r.setTime(t*1e3);let i=[];if(e>0){const n=this.endDateObject;n.setTime(e*1e3);const o=r.toDateString()==n.toDateString();if((!o||this.hide_hours)&&(delete s.hour,delete s.minute),i=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatRangeToParts(r,n),!o){const h=i.find(b=>b.type=="literal"&&b.source=="shared"&&b.value.trim().length>0);h&&(h.value=" "+this.duAu[1]+" ",h.type="to"),this.designMode||i.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else i=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatToParts(r);return this.designMode&&i.forEach(n=>n.value=n.value.replace(/,/g," ")),i[0].value=Tr.ucFirst(i[0].value),i.filter(n=>n.hidden!==!0)}dateStringToSeconds(t){return new Date(t).getTime()/1e3}willUpdate(t){if(this.computedStartDate=0,this.computedEndDate=0,this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.computedStartDate=this.date),this.start_date_string&&(this.computedStartDate=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),this.start_date&&(this.computedStartDate=this.start_date),!(!this.computedStartDate&&!this.now&&!this.end_date)&&(this.computedStartDate||(this.computedStartDate=Date.now()/1e3),this.end_date&&(this.computedEndDate=this.end_date),this.computedEndDate>0&&this.computedEndDate<this.computedStartDate)){const e=this.computedStartDate;this.computedStartDate=this.computedEndDate,this.computedEndDate=e}}render(){if(!this.renderIf||!this.computedStartDate&&!this.now&&!this.computedEndDate)return re;const t={year:this.year||"numeric",month:this.month||"short",day:this.day||"2-digit",hour12:this.hour12||!1};this.weekday!=="hidden"&&(t.weekday=this.weekday||"short"),this.hour!=="hidden"&&(t.hour=this.hour||"2-digit"),this.minute!=="hidden"&&(t.minute=this.minute||"2-digit"),this.era&&(t.era=this.era),this.time_zone&&(t.timeZone=this.time_zone);const e=this.getDatesParts(this.computedStartDate,this.computedEndDate,t);return je(`${e.map(s=>{const r=this.templateParts[s.type];if(r){const o=document.importNode(r.content,!0).children[0];return o.innerText.trim()==""&&(o.innerText=s.value),o.outerHTML}const i=document.createElement("span");return i.innerText=s.value,i.className=s.type,`<span class="${s.type}">${s.value}</span>`}).join("")}`)}};Re.dateCompnents=new Set,Xe([u()],Re.prototype,"wording_billet_periode_validite",1),Xe([u({type:Boolean})],Re.prototype,"designMode",2),Xe([u({type:String})],Re.prototype,"time_zone",2),Xe([u({type:Number})],Re.prototype,"date",2),Xe([u({type:String})],Re.prototype,"date_string",2),Xe([u({type:String})],Re.prototype,"start_date_string",2),Xe([u({type:String})],Re.prototype,"end_date_string",2),Xe([u({type:Number})],Re.prototype,"start_date",2),Xe([u({type:Number})],Re.prototype,"end_date",2),Xe([u({type:Boolean})],Re.prototype,"hide_hours",2),Xe([u({type:String})],Re.prototype,"era",2),Xe([u({type:String})],Re.prototype,"year",2),Xe([u({type:String})],Re.prototype,"month",2),Xe([u({type:String})],Re.prototype,"day",2),Xe([u({type:String})],Re.prototype,"weekday",2),Xe([u({type:String})],Re.prototype,"hour",2),Xe([u({type:Boolean})],Re.prototype,"hour12",2),Xe([u({type:String})],Re.prototype,"minute",2),Xe([u({type:String})],Re.prototype,"language",2),Xe([u({type:Boolean})],Re.prototype,"renderIf",2),Xe([u({type:Boolean})],Re.prototype,"now",2),Re=Xe([X(mc)],Re);let ct=(et=class{static listen(){if(!et.listening)return;const e=document.location?.href.replace(document.location.origin,"");et.prevURL&&et.prevURL!=e&&(et.prevURL=e,et.listeners.forEach(s=>{s.location=e})),window.requestAnimationFrame(et.listen)}static offChange(e){const s=et.listeners.indexOf(e);s!=-1&&(et.listeners.splice(s,1),et.listeners.length==0&&(et.listening=!1))}static onChange(e){et.listening||(et.listening=!0,et.listen()),et.listeners.push(e),e.location=this.prevURL}static changeFromComponent(e){const s=e.goBack,r=document.referrer;if(s!=null){const b=document.location.origin,k=(s||b).toString(),f=r.indexOf("http")==0?new URL(r).origin!=b:!1,A=r=="",E=history.length<3,O=A&&E,N=k!=document.location.href;if(f&&N||O){const P=history.state||{};P.concorde=P.concorde||{},P.concorde.hasDoneHistoryBack=!0,history.pushState(P,document.title),history.back(),document.location.replace(k)}else history.back();return}let i=e.getAttribute("to")||"";if(i||(i=e.href?.toString()||""),!i)return;if(i.indexOf("#")==0){document.location.hash=i.substring(1);return}const n=new URL(i,document.location.href),o=n.pathname.split("/"),c=[];let h="";for(const b of o)b!=h&&c.push(b),h=b;i="/"+c.join("/")+n.search+(n.hash?+n.hash:""),e.hasAttribute("pushState")?history.pushState(null,"",i):e.hasAttribute("replaceState")?history.replaceState(null,"",i):document.location.href=i}static updateComponentActiveState(e){if(e.autoActive=="disabled")return;const s=e.href?.toString()||"";if(e.href&&s.indexOf("http")!=0){const r=new URL(s,document.location.href),i=new URL(e.location||"",document.location.origin);let n=!1;e.autoActive=="strict"?n=r.pathname==i.pathname&&r.hash==i.hash&&r.search==i.search:e.autoActive=="strict-path-only"?n=r.pathname==i.pathname&&r.hash==i.hash:n=i.href.indexOf(r.href)==0,n?e.setAttribute("active","true"):e.removeAttribute("active")}}},et.listeners=[],et.listening=!1,et.prevURL=document.location?.href.replace(document.location.origin,""),et);/**
|
|
69
69
|
* @license
|
|
70
70
|
* Copyright 2018 Google LLC
|
|
71
71
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
72
|
-
*/const Wo="important",pc=" !"+Wo,$t=$s(class extends fr{constructor(t){if(super(t),t.type!==Ys.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,s)=>{const i=t[s];return i==null?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:s}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?s.removeProperty(i):s[i]=null);for(const i in e){const r=e[i];if(r!=null){this.ft.add(i);const n=typeof r=="string"&&r.endsWith(pc);i.includes("-")||n?s.setProperty(i,n?r.slice(0,-11):r,n?Wo:""):s[i]=r}}return It}});var fc=Object.defineProperty,gc=Object.getOwnPropertyDescriptor,ts=(t,e,s,i)=>{for(var r=i>1?void 0:i?gc(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(r=(i?o(e,s,r):o(r))||r);return i&&r&&fc(e,s,r),r};const ki=new Map,br=t=>{class e extends t{constructor(...i){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=!1,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=r=>{this.setValueFromPublisher(r)},this.onFormValueAssign=async r=>{this.setFormValueFromPublisher(r)},this.onFormDataInValidate=()=>{const r=this.getFormPublisher();r&&r.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(i){this.hasAttribute("name")&&!this.forceAutoFill&&(i=this.getAttribute("name")),this._name=i,this.requestUpdate()}validateFormElement(){}unsetOnDisconnect(){return this.hasAttribute("unsetOnDisconnect")}updateDataValue(){this.getAttribute("name")&&this.getFormPublisher()&&(this.setFormPublisherValue(this.getValueForFormPublisher()),this.setFormValueFromPublisher(this.getFormPublisherValue()))}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?ye.get(this.formDataProvider):null}setFormPublisherValue(i){const r=this.getFormPublisher();r&&kt(r,this.name).set(i)}getFormPublisherValue(){const i=this.getFormPublisher();return i?kt(i,this.name).get():null}getValueForFormPublisher(){return this.value}setValueFromPublisher(i){this.value=i}setFormValueFromPublisher(i){this.value=i}get value(){return this._value}set value(i){i==null&&(i=""),at.isObject(i)&&Object.prototype.hasOwnProperty.call(i,"__value")&&i._value==null&&(i=""),this._value!=i&&(this._value=i,this.updateDataValue(),this.requestUpdate())}initPublisher(){let i=this.getFormPublisher();const r=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&kt(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&i&&kt(i,this._name).offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.publisher&&this._name&&kt(this.publisher,this._name).onAssign(this.onValueAssign),i=this.getFormPublisher(),this._name&&i&&(kt(i,this._name).onAssign(this.onFormValueAssign),i.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),r&&(this.value=r)}handleBlur(){this.touched=!0}handleChange(i){this.value=i.target.value;const r=new Event("change");this.dispatchEvent(r)}addKeyboardNavigation(){const i=this.getAncestorAttributeValue("data-keyboard-nav");if(!i)return;const r=i.split(" "),n=r[0];if(!n)return;for(const c of r){ki.has(c)||ki.set(c,[]);const d=ki.get(c);d?.indexOf(this)==-1&&d.push(this)}const o=ki.get(n);this.addEventListener("keydown",c=>{const d=c;if(!["ArrowDown","ArrowUp"].includes(d.key))return;const m="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",k=o?.filter(A=>{const E=A.shadowRoot?.querySelector(m);if(!E)return!1;const O=window.getComputedStyle(E);return O.display!=="none"&&O.display!==""&&O.pointerEvents!="none"&&O.visibility!=="hidden"&&E.getBoundingClientRect().width>0});let g=null;if(d.key=="ArrowDown"&&k){const A=k.indexOf(this);A==k.length-1?g=k[0]:g=k[A+1]}else if(d.key=="ArrowUp"&&k){const A=k.indexOf(this);A==0?g=k[k.length-1]:g=k[A-1]}const f=g?.shadowRoot?.querySelector(m);f&&f.focus&&(f.focus(),c.preventDefault(),c.stopPropagation())})}focus(){this.shadowRoot?.querySelector("[data-form-element], button")?.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}unset(){this.value=null}disconnectedCallback(){this.unsetOnDisconnect()&&this.unset(),super.disconnectedCallback(),this._name&&this.publisher&&kt(this.publisher,this._name).offAssign(this.onValueAssign);const i=this.getFormPublisher();this._name&&i&&(kt(i,this._name).offAssign(this.onFormValueAssign),i.offFormInvalidate(this.onFormDataInValidate))}}return ts([h({type:Boolean,reflect:!0})],e.prototype,"touched",2),ts([h({type:Boolean})],e.prototype,"error",2),ts([h({type:Boolean})],e.prototype,"autofocus",2),ts([h({type:Boolean})],e.prototype,"required",2),ts([h({type:Boolean})],e.prototype,"forceAutoFill",2),ts([h({type:Boolean,reflect:!0})],e.prototype,"disabled",2),ts([h({type:String,attribute:"data-aria-label"})],e.prototype,"ariaLabel",2),ts([h({type:String,attribute:"data-aria-labelledby"})],e.prototype,"ariaLabelledby",2),ts([h()],e.prototype,"name",1),ts([h()],e.prototype,"value",1),e};let bc=class cr{static areEqual(e,s){return e.length===s.length?e.every((i,r)=>i===s[r]):!1}static from2d(e){return{to1D:()=>{let s=[];return e.forEach(i=>s=s.concat(i)),this.from(s)}}}static from(e){return{get:()=>e||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:s=>{if(e.length<1)return!0;const i=(e[0]||{})[s];return e.every(r=>(r||{})[s]==i)}})})}),value:()=>({forKey:s=>cr.from(e.map(i=>i[s]))}),copy:()=>({fromKey:s=>({toKey:i=>{e.forEach(r=>{r[i]=Array.isArray(r[s])?[...r[s]]:typeof r[s]=="object"&&r[s]!=null?{...r[s]}:r[s]})}})})}),map:s=>cr.from(e.map(s)),filter:s=>cr.from(e.filter(s)),find:s=>e.find(s),some:s=>e.some(s),every:s=>e.every(s),group:()=>({byKey:s=>{const i=[],r=new Map;for(const n of e){const o=n[s];if(!r.has(o)){const c=i.length;r.set(o,c);const d={items:[]};d[s]=o,i.push(d)}i[r.get(o)].items.push(n)}return cr.from(i)}}),without:()=>({duplicates:()=>({forKey:s=>{const i=[...new Set(e.map(r=>r[s]))];return cr.from(i.map(r=>e.find(n=>n[s]==r)))}}),itemsIn:s=>({havingSameValue:()=>({forKey:i=>{const r=(n,o)=>c=>n[o]!=c[o];return cr.from(e.filter(n=>s.every(r(n,i))))}})})})}}};var Ko=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var qr={exports:{}},mc=qr.exports,Go;function vc(){return Go||(Go=1,(function(t,e){var s=[].slice;(function(i,r){return e!==null?t.exports=r():i.UrlPattern=r()})(mc,function(){var i,r,n,o,c,d,m,k,g,f,A,E,O,I,U;return g=function(x){return x.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},m=function(x,y){var N,C,$;for($=[],N=-1,C=x.length;++N<C;)$=$.concat(y(x[N]));return $},I=function(x,y){var N,C,$;for($="",N=-1,C=x.length;++N<C;)$+=y(x[N]);return $},O=function(x){return new RegExp(x.toString()+"|").exec("").length-1},A=function(x,y){var N,C,$,G,z;for(G={},N=-1,$=x.length;++N<$;)C=x[N],z=y[N],z!=null&&(G[C]!=null?(Array.isArray(G[C])||(G[C]=[G[C]]),G[C].push(z)):G[C]=z);return G},i={},i.Result=function(x,y){this.value=x,this.rest=y},i.Tagged=function(x,y){this.tag=x,this.value=y},i.tag=function(x,y){return function(N){var C,$;if(C=y(N),C!=null)return $=new i.Tagged(x,C.value),new i.Result($,C.rest)}},i.regex=function(x){return function(y){var N,C;if(N=x.exec(y),N!=null)return C=N[0],new i.Result(C,y.slice(C.length))}},i.sequence=function(){var x;return x=1<=arguments.length?s.call(arguments,0):[],function(y){var N,C,$,G,z,ne;for(N=-1,C=x.length,ne=[],G=y;++N<C;){if($=x[N],z=$(G),z==null)return;ne.push(z.value),G=z.rest}return new i.Result(ne,G)}},i.pick=function(){var x,y;return x=arguments[0],y=2<=arguments.length?s.call(arguments,1):[],function(N){var C,$;if($=i.sequence.apply(i,y)(N),$!=null)return C=$.value,$.value=C[x],$}},i.string=function(x){var y;return y=x.length,function(N){if(N.slice(0,y)===x)return new i.Result(x,N.slice(y))}},i.lazy=function(x){var y;return y=null,function(N){return y==null&&(y=x()),y(N)}},i.baseMany=function(x,y,N,C,$){var G,z,ne,se;for(ne=$,se=N?"":[];!(y!=null&&(G=y(ne),G!=null)||(z=x(ne),z==null));)N?se+=z.value:se.push(z.value),ne=z.rest;if(!(C&&se.length===0))return new i.Result(se,ne)},i.many1=function(x){return function(y){return i.baseMany(x,null,!1,!0,y)}},i.concatMany1Till=function(x,y){return function(N){return i.baseMany(x,y,!0,!0,N)}},i.firstChoice=function(){var x;return x=1<=arguments.length?s.call(arguments,0):[],function(y){var N,C,$,G;for(N=-1,C=x.length;++N<C;)if($=x[N],G=$(y),G!=null)return G}},E=function(x){var y;return y={},y.wildcard=i.tag("wildcard",i.string(x.wildcardChar)),y.optional=i.tag("optional",i.pick(1,i.string(x.optionalSegmentStartChar),i.lazy(function(){return y.pattern}),i.string(x.optionalSegmentEndChar))),y.name=i.regex(new RegExp("^["+x.segmentNameCharset+"]+")),y.named=i.tag("named",i.pick(1,i.string(x.segmentNameStartChar),i.lazy(function(){return y.name}))),y.escapedChar=i.pick(1,i.string(x.escapeChar),i.regex(/^./)),y.static=i.tag("static",i.concatMany1Till(i.firstChoice(i.lazy(function(){return y.escapedChar}),i.regex(/^./)),i.firstChoice(i.string(x.segmentNameStartChar),i.string(x.optionalSegmentStartChar),i.string(x.optionalSegmentEndChar),y.wildcard))),y.token=i.lazy(function(){return i.firstChoice(y.wildcard,y.optional,y.named,y.static)}),y.pattern=i.many1(i.lazy(function(){return y.token})),y},k={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},d=function(x,y){if(Array.isArray(x))return I(x,function(N){return d(N,y)});switch(x.tag){case"wildcard":return"(.*?)";case"named":return"(["+y+"]+)";case"static":return g(x.value);case"optional":return"(?:"+d(x.value,y)+")?"}},c=function(x,y){return y==null&&(y=k.segmentValueCharset),"^"+d(x,y)+"$"},o=function(x){if(Array.isArray(x))return m(x,o);switch(x.tag){case"wildcard":return["_"];case"named":return[x.value];case"static":return[];case"optional":return o(x.value)}},f=function(x,y,N,C){var $,G,z,ne;if(C==null&&(C=!1),ne=x[y],ne==null){if(C)throw new Error("no values provided for key `"+y+"`");return}if($=N[y]||0,G=Array.isArray(ne)?ne.length-1:0,$>G){if(C)throw new Error("too few values provided for key `"+y+"`");return}return z=Array.isArray(ne)?ne[$]:ne,C&&(N[y]=$+1),z},n=function(x,y,N){var C,$;if(Array.isArray(x)){for(C=-1,$=x.length;++C<$;)if(n(x[C],y,N))return!0;return!1}switch(x.tag){case"wildcard":return f(y,"_",N,!1)!=null;case"named":return f(y,x.value,N,!1)!=null;case"static":return!1;case"optional":return n(x.value,y,N)}},U=function(x,y,N){if(Array.isArray(x))return I(x,function(C){return U(C,y,N)});switch(x.tag){case"wildcard":return f(y,"_",N,!0);case"named":return f(y,x.value,N,!0);case"static":return x.value;case"optional":return n(x.value,y,N)?U(x.value,y,N):""}},r=function(x,y){var N,C,$,G,z;if(x instanceof r){this.isRegex=x.isRegex,this.regex=x.regex,this.ast=x.ast,this.names=x.names;return}if(this.isRegex=x instanceof RegExp,!(typeof x=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=x,y!=null){if(!Array.isArray(y))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(N=O(this.regex),y.length!==N)throw new Error("regex contains "+N+" groups but array of group names contains "+y.length);this.names=y}return}if(x==="")throw new Error("argument must not be the empty string");if(z=x.replace(/\s+/g,""),z!==x)throw new Error("argument must not contain whitespace");if(C={escapeChar:y?.escapeChar||k.escapeChar,segmentNameStartChar:y?.segmentNameStartChar||k.segmentNameStartChar,segmentNameCharset:y?.segmentNameCharset||k.segmentNameCharset,segmentValueCharset:y?.segmentValueCharset||k.segmentValueCharset,optionalSegmentStartChar:y?.optionalSegmentStartChar||k.optionalSegmentStartChar,optionalSegmentEndChar:y?.optionalSegmentEndChar||k.optionalSegmentEndChar,wildcardChar:y?.wildcardChar||k.wildcardChar},G=E(C),$=G.pattern(x),$==null)throw new Error("couldn't parse pattern");if($.rest!=="")throw new Error("could only partially parse pattern");this.ast=$.value,this.regex=new RegExp(c(this.ast,C.segmentValueCharset)),this.names=o(this.ast)},r.prototype.match=function(x){var y,N;return N=this.regex.exec(x),N==null?null:(y=N.slice(1),this.names?A(this.names,y):y)},r.prototype.stringify=function(x){if(x==null&&(x={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(x!==Object(x))throw new Error("argument must be an object or undefined");return U(this.ast,x,{})},r.escapeForRegex=g,r.concatMap=m,r.stringConcatMap=I,r.regexGroupCount=O,r.keysAndValuesToObject=A,r.P=i,r.newParser=E,r.defaultOptions=k,r.astNodeToRegexString=c,r.astNodeToNames=o,r.getParam=f,r.astNodeContainsSegmentsForProvidedParams=n,r.stringify=U,r})})(qr,qr.exports)),qr.exports}var yc=vc();const ps=Yo(yc);class $i{constructor(e){this.path=$i.normalizePath(e)}getDataProviderKey(){return new Ss(this.path)}static normalizePath(e){const s=String(e).trim();if(!s)throw new RangeError("Endpoint: path cannot be empty");if(/^https?:\/\//i.test(s)){let d;try{d=new URL(s)}catch{throw new RangeError("Endpoint: invalid absolute URL")}return d.pathname=d.pathname.replace(/\/+/g,"/"),d.href}const i=s.indexOf("?"),r=s.indexOf("#");let n=s.length;i>=0&&(n=Math.min(n,i)),r>=0&&(n=Math.min(n,r));let o=s.slice(0,n);const c=s.slice(n);if(o=o.replace(/^\/+/,""),o=o.replace(/\/+/g,"/"),!o&&c)throw new RangeError("Endpoint: path cannot be empty");return o+c}static isNonEmpty(e){return String(e).trim().length>0}static looksLikeDataProviderPath(e){return/^\s*dataProvider\s*\(/i.test(String(e))}toString(){return this.path}}const wc=50,_c=1e4,xc=100,Cn=new Map;function Di(t){return di(t)}function Vr(t){return t.split(".")[0]??t}function Ei(t){const e=t.split("."),s=e.shift();let i=ye.get(s);return e.length&&(i=at.traverse(i,e)),i}function Pc(t){return t==null?!0:Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:typeof t=="string"?t.length===0:!1}function Sc(t){return Array.isArray(t)?t.length:0}function Ac(t,e){for(const o of e)if(o===t||t.startsWith(o+".")||o.startsWith(t+"."))throw new Error(`[derive] Cycle détecté : la sortie "${t}" chevauche l'entrée "${o}".`);const s=Vr(t),i=new Map;for(const[o,c]of Cn)i.set(Vr(o),new Set(c));i.set(s,new Set(e.map(Vr)));const r=new Set,n=o=>{if(r.has(o))return!0;r.add(o);for(const c of i.get(o)??[])if(n(c))return!0;return r.delete(o),!1};if(n(s))throw new Error(`[derive] Cycle détecté (chaîne) : la sortie "${t}" dépend indirectement d'elle-même.`)}function Cc(t,e){Cn.set(t,new Set(e.map(s=>Vr(s))))}function kc(t){Cn.delete(t)}function $c(t){return`${Vr(Di(t))}/_state_`}function Oi(t,e){const s=$c(t);ye.get(s).set(e)}function Dc(t,e,s,i){const r=typeof t.compute=="function"?t:{inputs:t,compute:e,output:s,variables:i},n=r.debounceMs??wc,o=r.maxInputItems??_c,c=r.isEmpty??Pc,d=Di(r.output),m=Object.entries(r.inputs).map(([ie,q])=>({alias:ie,path:Di(q)})),k=m.map(ie=>ie.path),g=r.variables?Di(r.variables):null;Ac(d,k),Cc(d,k);const f=Ei(d);let A,E=!1,O=0,I=null,U=!1,x="";const y=ie=>{E=!0,A=ie,f.set(ie),E=!1},N=()=>{E||U||(typeof console<"u"&&console.warn&&console.warn(`[derive] Écriture ignorée sur la sortie readonly "${d}".`),A!==void 0&&(E=!0,f.set(A),E=!1))};f.onAssign(N,!1);const C=()=>{const ie={};for(const{alias:q,path:le}of m){const pe=Ei(le).get(),Ue=Sc(pe);Ue>o&&typeof console<"u"&&console.warn&&console.warn(`[derive] Entrée "${le}" : ${Ue} éléments (> ${o}). Agrégation lourde — envisager un plafond côté fetch.`),ie[q]=pe}return ie},$=()=>g?Ei(g).get()??{}:{},G=async()=>{if(U)return;const ie=++O;Oi(d,{status:"loading",error:null});const q=C(),le=$(),pe=JSON.stringify({inputs:q,vars:le});if(pe===x&&A!==void 0){Oi(d,{status:c(A)?"empty":"ready",error:null});return}const Ue=typeof performance<"u"?performance.now():Date.now();try{const he=await Promise.resolve(r.compute(q,le));if(U||ie!==O)return;const be=(typeof performance<"u"?performance.now():Date.now())-Ue;be>xc&&typeof console<"u"&&console.warn&&console.warn(`[derive] Évaluation longue (${Math.round(be)} ms) → "${d}".`),x=pe,y(he),Oi(d,{status:c(he)?"empty":"ready",error:null})}catch(he){if(U||ie!==O)return;const be=he instanceof Error?he.message:String(he);typeof console<"u"&&console.error&&console.error(`[derive] Erreur sur "${d}" :`,be),Oi(d,{status:"error",error:be})}},z=()=>{U||(I&&clearTimeout(I),I=setTimeout(()=>{I=null,G()},n))},ne=[],se=ie=>{const q=Ei(ie),le=()=>z();q.onInternalMutation(le),ne.push({pub:q,handler:le})};for(const{path:ie}of m)se(ie);return g&&se(g),z(),{stop(){if(!U){U=!0,I&&clearTimeout(I);for(const{pub:ie,handler:q}of ne)ie.offInternalMutation(q);f.offAssign(N),kc(d)}},recompute(){x="",G()}}}function Ti(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var kn={exports:{}},Zo;function Ec(){return Zo||(Zo=1,(function(t,e){(function(s){t.exports=s()})(function(){return(function(){function s(i,r,n){function o(m,k){if(!r[m]){if(!i[m]){var g=typeof Ti=="function"&&Ti;if(!k&&g)return g(m,!0);if(c)return c(m,!0);var f=new Error("Cannot find module '"+m+"'");throw f.code="MODULE_NOT_FOUND",f}var A=r[m]={exports:{}};i[m][0].call(A.exports,function(E){var O=i[m][1][E];return o(O||E)},A,A.exports,s,i,r,n)}return r[m].exports}for(var c=typeof Ti=="function"&&Ti,d=0;d<n.length;d++)o(n[d]);return o}return s})()({1:[function(s,i,r){const n=s("./utils"),o=(function(){const c=n.stringToArray,d=["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"],m=["Zeroth","First","Second","Third","Fourth","Fifth","Sixth","Seventh","Eighth","Ninth","Tenth","Eleventh","Twelfth","Thirteenth","Fourteenth","Fifteenth","Sixteenth","Seventeenth","Eighteenth","Nineteenth"],k=["Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety","Hundred"],g=["Thousand","Million","Billion","Trillion"];function f(T,M){var D=function(V,H,F){var Y="";if(V<=19)Y=(H?" and ":"")+(F?m[V]:d[V]);else if(V<100){const Pe=Math.floor(V/10),ge=V%10;Y=(H?" and ":"")+k[Pe-2],ge>0?Y+="-"+D(ge,!1,F):F&&(Y=Y.substring(0,Y.length-1)+"ieth")}else if(V<1e3){const Pe=Math.floor(V/100),ge=V%100;Y=(H?", ":"")+d[Pe]+" Hundred",ge>0?Y+=D(ge,!0,F):F&&(Y+="th")}else{var ae=Math.floor(Math.log10(V)/3);ae>g.length&&(ae=g.length);const Pe=Math.pow(10,ae*3),ge=Math.floor(V/Pe),fe=V-ge*Pe;Y=(H?", ":"")+D(ge,!1,!1)+" "+g[ae-1],fe>0?Y+=D(fe,!0,F):F&&(Y+="th")}return Y},j=D(T,!1,M);return j}const A=Object.create(null);d.forEach(function(T,M){A[T.toLowerCase()]=M}),m.forEach(function(T,M){A[T.toLowerCase()]=M}),k.forEach(function(T,M){const D=T.toLowerCase();A[D]=(M+2)*10,A[D.substring(0,T.length-1)+"ieth"]=A[D]}),A.hundredth=100,g.forEach(function(T,M){const D=T.toLowerCase(),j=Math.pow(10,(M+1)*3);A[D]=j,A[D+"th"]=j});function E(T){const D=T.split(/,\s|\sand\s|[\s\\-]/).map(H=>A[H]);let j=[0];return D.forEach(H=>{if(H<100){let F=j.pop();F>=1e3&&(j.push(F),F=0),j.push(F+H)}else j.push(j.pop()*H)}),j.reduce((H,F)=>H+F,0)}const O=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],I={M:1e3,D:500,C:100,L:50,X:10,V:5,I:1};function U(T){for(var M=0;M<O.length;M++){const D=O[M];if(T>=D[0])return D[1]+U(T-D[0])}return""}function x(T){for(var M=0,D=1,j=T.length-1;j>=0;j--){const V=T[j],H=I[V];H<D?M-=H:(D=H,M+=H)}return M}function y(T,M){for(var D=[],j=M.charCodeAt(0);T>0;)D.unshift(String.fromCharCode((T-1)%26+j)),T=Math.floor((T-1)/26);return D.join("")}function N(T,M){for(var D=M.charCodeAt(0),j=0,V=0;V<T.length;V++)j+=(T.charCodeAt(T.length-V-1)-D+1)*Math.pow(26,V);return j}function C(T,M){if(typeof T>"u")return;T=Math.floor(T);const D=se(M);return z(T,D)}const $={DECIMAL:"decimal",LETTERS:"letters",ROMAN:"roman",WORDS:"words",SEQUENCE:"sequence"},G={UPPER:"upper",LOWER:"lower",TITLE:"title"};function z(T,M){let D;const j=T<0;switch(T=Math.abs(T),M.primary){case $.LETTERS:D=y(T,M.case===G.UPPER?"A":"a");break;case $.ROMAN:D=U(T),M.case===G.UPPER&&(D=D.toUpperCase());break;case $.WORDS:D=f(T,M.ordinal),M.case===G.UPPER?D=D.toUpperCase():M.case===G.LOWER&&(D=D.toLowerCase());break;case $.DECIMAL:D=""+T;var V=M.mandatoryDigits-D.length;if(V>0){var H=new Array(V+1).join("0");D=H+D}if(M.zeroCode!==48&&(D=c(D).map(Pe=>String.fromCodePoint(Pe.codePointAt(0)+M.zeroCode-48)).join("")),M.regular){const Pe=Math.floor((D.length-1)/M.groupingSeparators.position);for(let ge=Pe;ge>0;ge--){const fe=D.length-ge*M.groupingSeparators.position;D=D.substr(0,fe)+M.groupingSeparators.character+D.substr(fe)}}else M.groupingSeparators.reverse().forEach(Pe=>{const ge=D.length-Pe.position;D=D.substr(0,ge)+Pe.character+D.substr(ge)});if(M.ordinal){var F={1:"st",2:"nd",3:"rd"},Y=D[D.length-1],ae=F[Y];(!ae||D.length>1&&D[D.length-2]==="1")&&(ae="th"),D=D+ae}break;case $.SEQUENCE:throw{code:"D3130",value:M.token}}return j&&(D="-"+D),D}const ne=[48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296];function se(T){const M={type:"integer",primary:$.DECIMAL,case:G.LOWER,ordinal:!1};let D,j;const V=T.lastIndexOf(";");switch(V===-1?D=T:(D=T.substring(0,V),j=T.substring(V+1),j[0]==="o"&&(M.ordinal=!0)),D){case"A":M.case=G.UPPER;case"a":M.primary=$.LETTERS;break;case"I":M.case=G.UPPER;case"i":M.primary=$.ROMAN;break;case"W":M.case=G.UPPER,M.primary=$.WORDS;break;case"Ww":M.case=G.TITLE,M.primary=$.WORDS;break;case"w":M.primary=$.WORDS;break;default:{let H=null,F=0,Y=0,ae=[],Pe=0;if(c(D).map(fe=>fe.codePointAt(0)).reverse().forEach(fe=>{let ue=!1;for(let $e=0;$e<ne.length;$e++){const de=ne[$e];if(fe>=de&&fe<=de+9){if(ue=!0,F++,Pe++,H===null)H=de;else if(de!==H)throw{code:"D3131"};break}}ue||(fe===35?(Pe++,Y++):ae.push({position:Pe,character:String.fromCodePoint(fe)}))}),F>0){M.primary=$.DECIMAL,M.zeroCode=H,M.mandatoryDigits=F,M.optionalDigits=Y;const ue=function($e){if($e.length===0)return 0;const de=$e[0].character;for(let st=1;st<$e.length;st++)if($e[st].character!==de)return 0;const ft=$e.map(st=>st.position),Kt=function(st,xt){return xt===0?st:Kt(xt,st%xt)},_t=ft.reduce(Kt);for(let st=1;st<=ft.length;st++)if(ft.indexOf(st*_t)===-1)return 0;return _t}(ae);ue>0?(M.regular=!0,M.groupingSeparators={position:ue,character:ae[0].character}):(M.regular=!1,M.groupingSeparators=ae)}else M.primary=$.SEQUENCE,M.token=D}}return M}const ie={Y:"1",M:"1",D:"1",d:"1",F:"n",W:"1",w:"1",X:"1",x:"1",H:"1",h:"1",P:"n",m:"01",s:"01",f:"1",Z:"01:01",z:"01:01",C:"n",E:"n"};function q(T){var M=[];const D={type:"datetime",parts:M},j=function(ue,$e){if($e>ue){let de=T.substring(ue,$e);de=de.split("]]").join("]"),M.push({type:"literal",value:de})}};for(var V=0,H=0;H<T.length;){if(T.charAt(H)==="["){if(T.charAt(H+1)==="["){j(V,H),M.push({type:"literal",value:"["}),H+=2,V=H;continue}if(j(V,H),V=H,H=T.indexOf("]",V),H===-1)throw{code:"D3135"};let ue=T.substring(V+1,H);ue=ue.split(/\s+/).join("");var F={type:"marker",component:ue.charAt(0)},Y=ue.lastIndexOf(","),ae;if(Y!==-1){const $e=ue.substring(Y+1),de=$e.indexOf("-");let ft,Kt;const _t=function(xt){if(!(typeof xt>"u"||xt==="*"))return parseInt(xt)};de===-1?ft=$e:(ft=$e.substring(0,de),Kt=$e.substring(de+1));const st={min:_t(ft),max:_t(Kt)};F.width=st,ae=ue.substring(1,Y)}else ae=ue.substring(1);if(ae.length===1)F.presentation1=ae;else if(ae.length>1){var Pe=ae.charAt(ae.length-1);"atco".indexOf(Pe)!==-1?(F.presentation2=Pe,Pe==="o"&&(F.ordinal=!0),F.presentation1=ae.substring(0,ae.length-1)):F.presentation1=ae}else F.presentation1=ie[F.component];if(typeof F.presentation1>"u")throw{code:"D3132",value:F.component};if(F.presentation1[0]==="n")F.names=G.LOWER;else if(F.presentation1[0]==="N")F.presentation1[1]==="n"?F.names=G.TITLE:F.names=G.UPPER;else if("YMDdFWwXxHhmsf".indexOf(F.component)!==-1){var ge=F.presentation1;if(F.presentation2&&(ge+=";"+F.presentation2),F.integerFormat=se(ge),F.width&&F.width.min!==void 0&&F.integerFormat.mandatoryDigits<F.width.min&&(F.integerFormat.mandatoryDigits=F.width.min),F.component==="Y")if(F.n=-1,F.width&&F.width.max!==void 0)F.n=F.width.max,F.integerFormat.mandatoryDigits=F.n;else{var fe=F.integerFormat.mandatoryDigits+F.integerFormat.optionalDigits;fe>=2&&(F.n=fe)}const $e=M[M.length-1];$e&&$e.integerFormat&&($e.integerFormat.parseWidth=$e.integerFormat.mandatoryDigits)}(F.component==="Z"||F.component==="z")&&(F.integerFormat=se(F.presentation1)),M.push(F),V=H+1}H++}return j(V,H),D}const le=["","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],pe=["January","February","March","April","May","June","July","August","September","October","November","December"],Ue=1e3*60*60*24,he=function(T){const M=Date.UTC(T.year,T.month);var D=new Date(M).getUTCDay();return D===0&&(D=7),D>4?M+(8-D)*Ue:M-(D-1)*Ue},be=function(T,M){return{year:T,month:M,nextMonth:function(){return M===11?be(T+1,0):be(T,M+1)},previousMonth:function(){return M===0?be(T-1,11):be(T,M-1)},nextYear:function(){return be(T+1,M)},previousYear:function(){return be(T-1,M)}}},ke=function(T,M){return(M-T)/(Ue*7)+1},ce=(T,M)=>{let D;switch(M){case"Y":D=T.getUTCFullYear();break;case"M":D=T.getUTCMonth()+1;break;case"D":D=T.getUTCDate();break;case"d":{const j=Date.UTC(T.getUTCFullYear(),T.getUTCMonth(),T.getUTCDate()),V=Date.UTC(T.getUTCFullYear(),0);D=(j-V)/Ue+1;break}case"F":D=T.getUTCDay(),D===0&&(D=7);break;case"W":{const j=be(T.getUTCFullYear(),0),V=he(j),H=Date.UTC(j.year,T.getUTCMonth(),T.getUTCDate());let F=ke(V,H);if(F>52){const Y=he(j.nextYear());H>=Y&&(F=1)}else if(F<1){const Y=he(j.previousYear());F=ke(Y,H)}D=Math.floor(F);break}case"w":{const j=be(T.getUTCFullYear(),T.getUTCMonth()),V=he(j),H=Date.UTC(j.year,j.month,T.getUTCDate());let F=ke(V,H);if(F>4){const Y=he(j.nextMonth());H>=Y&&(F=1)}else if(F<1){const Y=he(j.previousMonth());F=ke(Y,H)}D=Math.floor(F);break}case"X":{const j=be(T.getUTCFullYear(),0),V=he(j),H=he(j.nextYear()),F=T.getTime();F<V?D=j.year-1:F>=H?D=j.year+1:D=j.year;break}case"x":{const j=be(T.getUTCFullYear(),T.getUTCMonth()),V=he(j),H=j.nextMonth(),F=he(H),Y=T.getTime();Y<V?D=j.previousMonth().month+1:Y>=F?D=H.month+1:D=j.month+1;break}case"H":D=T.getUTCHours();break;case"h":D=T.getUTCHours(),D=D%12,D===0&&(D=12);break;case"P":D=T.getUTCHours()>=12?"pm":"am";break;case"m":D=T.getUTCMinutes();break;case"s":D=T.getUTCSeconds();break;case"f":D=T.getUTCMilliseconds();break;case"Z":case"z":break;case"C":D="ISO";break;case"E":D="ISO";break}return D};let W=null;function xe(T,M,D){var j=0,V=0;if(typeof D<"u"){const ge=parseInt(D);j=Math.floor(ge/100),V=ge%100}var H=function(ge,fe){var ue=ce(ge,fe.component);if("YMDdFWwXxHhms".indexOf(fe.component)!==-1)if(fe.component==="Y"&&fe.n!==-1&&(ue=ue%Math.pow(10,fe.n)),fe.names){if(fe.component==="M"||fe.component==="x")ue=pe[ue-1];else if(fe.component==="F")ue=le[ue];else throw{code:"D3133",value:fe.component};fe.names===G.UPPER?ue=ue.toUpperCase():fe.names===G.LOWER&&(ue=ue.toLowerCase()),fe.width&&ue.length>fe.width.max&&(ue=ue.substring(0,fe.width.max))}else ue=z(ue,fe.integerFormat);else if(fe.component==="f")ue=z(ue,fe.integerFormat);else if(fe.component==="Z"||fe.component==="z"){const $e=j*100+V;if(fe.integerFormat.regular)ue=z($e,fe.integerFormat);else{const de=fe.integerFormat.mandatoryDigits;if(de===1||de===2)ue=z(j,fe.integerFormat),V!==0&&(ue+=":"+C(V,"00"));else if(de===3||de===4)ue=z($e,fe.integerFormat);else throw{code:"D3134",value:de}}$e>=0&&(ue="+"+ue),fe.component==="z"&&(ue="GMT"+ue),$e===0&&fe.presentation2==="t"&&(ue="Z")}else fe.component==="P"&&fe.names===G.UPPER&&(ue=ue.toUpperCase());return ue};let F;typeof M>"u"?(W===null&&(W=q("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]")),F=W):F=q(M);const Y=(60*j+V)*60*1e3,ae=new Date(T+Y);let Pe="";return F.parts.forEach(function(ge){ge.type==="literal"?Pe+=ge.value:Pe+=H(ae,ge)}),Pe}function b(T){var M=Object.create(null);if(T.type==="datetime")M.type="datetime",M.parts=T.parts.map(function(D){var j=Object.create(null);if(D.type==="literal")j.regex=D.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");else if(D.component==="Z"||D.component==="z"){let H;Array.isArray(D.integerFormat.groupingSeparators)||(H=D.integerFormat.groupingSeparators),j.regex="",D.component==="z"&&(j.regex="GMT"),j.regex+="[-+][0-9]+",H&&(j.regex+=H.character+"[0-9]+"),j.parse=function(F){D.component==="z"&&(F=F.substring(3));let Y=0,ae=0;return H?(Y=Number.parseInt(F.substring(0,F.indexOf(H.character))),ae=Number.parseInt(F.substring(F.indexOf(H.character)+1))):F.length-1<=2?Y=Number.parseInt(F):(Y=Number.parseInt(F.substring(0,3)),ae=Number.parseInt(F.substring(3))),Y*60+ae}}else if(D.component==="f")j.regex="[0-9]+",j.parse=function(H){return parseFloat("0."+H.substring(0,3))*1e3};else if(D.integerFormat)j=b(D.integerFormat);else{j.regex="[a-zA-Z]+";var V=Object.create(null);if(D.component==="M"||D.component==="x")pe.forEach(function(H,F){D.width&&D.width.max?V[H.substring(0,D.width.max)]=F+1:V[H]=F+1});else if(D.component==="F")le.forEach(function(H,F){F>0&&(D.width&&D.width.max?V[H.substring(0,D.width.max)]=F:V[H]=F)});else if(D.component==="P")V={am:0,AM:0,pm:1,PM:1};else throw{code:"D3133",value:D.component};j.parse=function(H){return V[H]}}return j.component=D.component,j});else{M.type="integer";const D=T.case===G.UPPER;switch(T.primary){case $.LETTERS:M.regex=D?"[A-Z]+":"[a-z]+",M.parse=function(j){return N(j,D?"A":"a")};break;case $.ROMAN:M.regex=D?"[MDCLXVI]+":"[mdclxvi]+",M.parse=function(j){return x(D?j:j.toUpperCase())};break;case $.WORDS:M.regex="(?:"+n.keys(A).concat("and","[\\-, ]").join("|")+")+",M.parse=function(j){return E(j.toLowerCase())};break;case $.DECIMAL:M.regex="[0-9]",T.parseWidth?M.regex+=`{${T.parseWidth}}`:M.regex+="+",T.ordinal&&(M.regex+="(?:th|st|nd|rd)"),M.parse=function(j){let V=j;return T.ordinal&&(V=j.substring(0,j.length-2)),T.regular?V=V.split(",").join(""):T.groupingSeparators.forEach(H=>{V=V.split(H.character).join("")}),T.zeroCode!==48&&(V=V.split("").map(H=>String.fromCodePoint(H.codePointAt(0)-T.zeroCode+48)).join("")),parseInt(V)};break;case $.SEQUENCE:throw{code:"D3130",value:T.token}}}return M}function _(T,M){if(typeof T>"u")return;const D=se(M);return b(D).parse(T)}function Q(T,M){const D=q(M),j=b(D),V="^"+j.parts.map(ae=>"("+ae.regex+")").join("")+"$";var F=new RegExp(V,"i").exec(T);if(F!==null){const de=Object.create(null);for(let u=1;u<F.length;u++){const v=j.parts[u-1];v.parse&&(de[v.component]=v.parse(F[u]))}if(Object.getOwnPropertyNames(de).length===0)return;let ft=0;const Kt=u=>{ft<<=1,ft+=u?1:0},_t=u=>!(~u&ft)&&!!(u&ft);"YXMxWwdD".split("").forEach(u=>Kt(de[u]));const xt=!_t(161)&&_t(130),_s=_t(84),$r=!_s&&_t(72);ft=0,"PHhmsf".split("").forEach(u=>Kt(de[u]));const Z=!_t(23)&&_t(47),Xt=(xt?"YD":_s?"XxwF":$r?"XWF":"YMD")+(Z?"Phmsf":"Hmsf"),li=this.environment.timestamp;let us=!1,ar=!1;if(Xt.split("").forEach(u=>{if(typeof de[u]>"u")us?(de[u]="MDd".indexOf(u)!==-1?1:0,ar=!0):de[u]=ce(li,u);else if(us=!0,ar)throw{code:"D3136"}}),de.M>0?de.M-=1:de.M=0,xt){const u=Date.UTC(de.Y,0),v=(de.d-1)*1e3*60*60*24,w=new Date(u+v);de.M=w.getUTCMonth(),de.D=w.getUTCDate()}if(_s)throw{code:"D3136"};if($r)throw{code:"D3136"};Z&&(de.H=de.h===12?0:de.h,de.P===1&&(de.H+=12));var Y=Date.UTC(de.Y,de.M,de.D,de.H,de.m,de.s,de.f);return(de.Z||de.z)&&(Y-=(de.Z||de.z)*60*1e3),Y}}var ve=new RegExp("^\\d{4}(-[01]\\d)?(-[0-3]\\d)?(T[0-2]\\d:[0-5]\\d:[0-5]\\d)?(\\.\\d+)?([+-][0-2]\\d:?[0-5]\\d|Z)?$");function _e(T,M){if(!(typeof T>"u"))if(typeof M>"u"){if(!ve.test(T))throw{stack:new Error().stack,code:"D3110",value:T};return Date.parse(T)}else return Q.call(this,T,M)}function De(T,M,D){if(!(typeof T>"u"))return xe.call(this,T,M,D)}return{formatInteger:C,parseInteger:_,fromMillis:De,toMillis:_e}})();i.exports=o},{"./utils":6}],2:[function(s,i,r){(function(n){(function(){var o=s("./utils");const c=(()=>{var d=o.isNumeric,m=o.isArrayOfStrings,k=o.isArrayOfNumbers,g=o.isSequence,f=o.isFunction,A=o.isLambda,E=o.isPromise,O=o.getFunctionArity,I=o.isDeepEqual,U=o.stringToArray;function x(a){if(!(typeof a>"u")){var l=0;return a.forEach(function(p){l+=p}),l}}function y(a){return typeof a>"u"?0:a.length}function N(a){if(!(typeof a>"u"||a.length===0))return Math.max.apply(Math,a)}function C(a){if(!(typeof a>"u"||a.length===0))return Math.min.apply(Math,a)}function $(a){if(!(typeof a>"u"||a.length===0)){var l=0;return a.forEach(function(p){l+=p}),l/a.length}}function G(a,l=!1){if(!(typeof a>"u")){var p;if(typeof a=="string")p=a;else if(f(a))p="";else{if(typeof a=="number"&&!isFinite(a))throw{code:"D3001",value:a,stack:new Error().stack};var S=l?2:0;Array.isArray(a)&&a.outerWrapper&&(a=a[0]),p=JSON.stringify(a,function(P,L){return typeof L<"u"&&L!==null&&d(L)?L.toPrecision&&!Number.isInteger(L)?Number(L.toPrecision(15)):L:L&&f(L)?"":L},S)}return p}}function z(a,l,p){if(!(typeof a>"u")){var S=U(a),P=S.length;if(P+l<0&&(l=0),typeof p<"u"){if(p<=0)return"";var L=l>=0?l+p:P+l+p;return S.slice(l,L).join("")}return S.slice(l).join("")}}function ne(a,l){if(!(typeof a>"u")){var p=a.indexOf(l);return p>-1?a.substr(0,p):a}}function se(a,l){if(!(typeof a>"u")){var p=a.indexOf(l);return p>-1?a.substr(p+l.length):a}}function ie(a){if(!(typeof a>"u"))return a.toLowerCase()}function q(a){if(!(typeof a>"u"))return a.toUpperCase()}function le(a){if(!(typeof a>"u"))return U(a).length}function pe(a){if(!(typeof a>"u")){var l=a.replace(/[ \t\n\r]+/gm," ");return l.charAt(0)===" "&&(l=l.substring(1)),l.charAt(l.length-1)===" "&&(l=l.substring(0,l.length-1)),l}}function Ue(a,l,p){if(!(typeof a>"u")){(typeof p>"u"||p.length===0)&&(p=" ");var S;l=Math.trunc(l);var P=Math.abs(l)-le(a);if(P>0){var L=new Array(P+1).join(p);p.length>1&&(L=z(L,0,P)),l>0?S=a+L:S=L+a}else S=a;return S}}async function he(a,l){var p=a.apply(this,[l]);if(E(p)&&(p=await p),p&&!(typeof p.start=="number"||p.end==="number"||Array.isArray(p.groups)||f(p.next)))throw{code:"T1010",stack:new Error().stack};return p}async function be(a,l){if(!(typeof a>"u"||typeof l>"u")){var p;if(typeof l=="string")p=a.indexOf(l)!==-1;else{var S=await he(l,a);p=typeof S<"u"}return p}}async function ke(a,l,p){if(!(typeof a>"u")){if(p<0)throw{stack:new Error().stack,value:p,code:"D3040",index:3};var S=this.createSequence();if(typeof p>"u"||p>0){var P=0,L=await he(l,a);if(typeof L<"u")for(;typeof L<"u"&&(typeof p>"u"||P<p);)S.push({match:L.match,index:L.start,groups:L.groups}),L=await he(L.next),P++}return S}}async function ce(a,l,p,S){if(!(typeof a>"u")){var P=this;if(l==="")throw{code:"D3010",stack:new Error().stack,value:l,index:2};if(S<0)throw{code:"D3011",stack:new Error().stack,value:S,index:4};var L;typeof p=="string"?L=function(We){for(var rt="",Le=0,Je=p.indexOf("$",Le);Je!==-1&&Le<p.length;){rt+=p.substring(Le,Je),Le=Je+1;var Yt=p.charAt(Le);if(Yt==="$")rt+="$",Le++;else if(Yt==="0")rt+=We.match,Le++;else{var Pt;if(We.groups.length===0?Pt=1:Pt=Math.floor(Math.log(We.groups.length)*Math.LOG10E)+1,Je=parseInt(p.substring(Le,Le+Pt),10),Pt>1&&Je>We.groups.length&&(Je=parseInt(p.substring(Le,Le+Pt-1),10)),isNaN(Je))rt+="$";else{if(We.groups.length>0){var ds=We.groups[Je-1];typeof ds<"u"&&(rt+=ds)}Le+=Je.toString().length}}Je=p.indexOf("$",Le)}return rt+=p.substring(Le),rt}:L=p;var B="",K=0;if(typeof S>"u"||S>0){var we=0;if(typeof l=="string"){for(var oe=a.indexOf(l,K);oe!==-1&&(typeof S>"u"||we<S);)B+=a.substring(K,oe),B+=p,K=oe+l.length,we++,oe=a.indexOf(l,K);B+=a.substring(K)}else{var Fe=await he(l,a);if(typeof Fe<"u"){for(;typeof Fe<"u"&&(typeof S>"u"||we<S);){B+=a.substring(K,Fe.start);var He=L.apply(P,[Fe]);if(E(He)&&(He=await He),typeof He=="string")B+=He;else throw{code:"D3012",stack:new Error().stack,value:He};K=Fe.start+Fe.match.length,we++,Fe=await he(Fe.next)}B+=a.substring(K)}else B=a}}else B=a;return B}}function W(a){if(!(typeof a>"u")){var l=typeof window<"u"?window.btoa:function(p){return new n.Buffer.from(p,"binary").toString("base64")};return l(a)}}function xe(a){if(!(typeof a>"u")){var l=typeof window<"u"?window.atob:function(p){return new n.Buffer.from(p,"base64").toString("binary")};return l(a)}}function b(a){if(!(typeof a>"u")){var l;try{l=encodeURIComponent(a)}catch{throw{code:"D3140",stack:new Error().stack,value:a,functionName:"encodeUrlComponent"}}return l}}function _(a){if(!(typeof a>"u")){var l;try{l=encodeURI(a)}catch{throw{code:"D3140",stack:new Error().stack,value:a,functionName:"encodeUrl"}}return l}}function Q(a){if(!(typeof a>"u")){var l;try{l=decodeURIComponent(a)}catch{throw{code:"D3140",stack:new Error().stack,value:a,functionName:"decodeUrlComponent"}}return l}}function ve(a){if(!(typeof a>"u")){var l;try{l=decodeURI(a)}catch{throw{code:"D3140",stack:new Error().stack,value:a,functionName:"decodeUrl"}}return l}}async function _e(a,l,p){if(!(typeof a>"u")){if(p<0)throw{code:"D3020",stack:new Error().stack,value:p,index:3};var S=[];if(typeof p>"u"||p>0)if(typeof l=="string")S=a.split(l,p);else{var P=0,L=await he(l,a);if(typeof L<"u"){for(var B=0;typeof L<"u"&&(typeof p>"u"||P<p);)S.push(a.substring(B,L.start)),B=L.end,L=await he(L.next),P++;(typeof p>"u"||P<p)&&S.push(a.substring(B))}else S.push(a)}return S}}function De(a,l){if(!(typeof a>"u"))return typeof l>"u"&&(l=""),a.join(l)}function T(a,l,p){if(!(typeof a>"u")){var S={"decimal-separator":".","grouping-separator":",","exponent-separator":"e",infinity:"Infinity","minus-sign":"-",NaN:"NaN",percent:"%","per-mille":"‰","zero-digit":"0",digit:"#","pattern-separator":";"},P=S;typeof p<"u"&&o.keys(p).forEach(function(me){P[me]=p[me]});for(var L=[],B=P["zero-digit"].charCodeAt(0),K=B;K<B+10;K++)L.push(String.fromCharCode(K));var we=L.concat([P["decimal-separator"],P["exponent-separator"],P["grouping-separator"],P.digit,P["pattern-separator"]]),oe=l.split(P["pattern-separator"]);if(oe.length>2)throw{code:"D3080",stack:new Error().stack};var Fe=function(me){var Ge=(function(){for(var lt,zt=0;zt<me.length;zt++)if(lt=me.charAt(zt),we.indexOf(lt)!==-1&<!==P["exponent-separator"])return me.substring(0,zt);return""})(),At=(function(){for(var lt,zt=me.length-1;zt>=0;zt--)if(lt=me.charAt(zt),we.indexOf(lt)!==-1&<!==P["exponent-separator"])return me.substring(zt+1);return""})(),Ye=me.substring(Ge.length,me.length-At.length),Mt,Vs,Nt,lr,Rt=me.indexOf(P["exponent-separator"],Ge.length);Rt===-1||Rt>me.length-At.length?(Mt=Ye,Vs=void 0):(Mt=Ye.substring(0,Rt),Vs=Ye.substring(Rt+1));var Qt=Mt.indexOf(P["decimal-separator"]);return Qt===-1?(Nt=Mt,lr=At):(Nt=Mt.substring(0,Qt),lr=Mt.substring(Qt+1)),{prefix:Ge,suffix:At,activePart:Ye,mantissaPart:Mt,exponentPart:Vs,integerPart:Nt,fractionalPart:lr,subpicture:me}},He=function(me){var Ge,At,Ye=me.subpicture,Mt=Ye.indexOf(P["decimal-separator"]);Mt!==Ye.lastIndexOf(P["decimal-separator"])&&(Ge="D3081"),Ye.indexOf(P.percent)!==Ye.lastIndexOf(P.percent)&&(Ge="D3082"),Ye.indexOf(P["per-mille"])!==Ye.lastIndexOf(P["per-mille"])&&(Ge="D3083"),Ye.indexOf(P.percent)!==-1&&Ye.indexOf(P["per-mille"])!==-1&&(Ge="D3084");var Vs=!1;for(At=0;At<me.mantissaPart.length;At++){var Nt=me.mantissaPart.charAt(At);if(L.indexOf(Nt)!==-1||Nt===P.digit){Vs=!0;break}}Vs||(Ge="D3085");var lr=me.activePart.split("").map(function(lt){return we.indexOf(lt)===-1?"p":"a"}).join("");lr.indexOf("p")!==-1&&(Ge="D3086"),Mt!==-1?(Ye.charAt(Mt-1)===P["grouping-separator"]||Ye.charAt(Mt+1)===P["grouping-separator"])&&(Ge="D3087"):me.integerPart.charAt(me.integerPart.length-1)===P["grouping-separator"]&&(Ge="D3088"),Ye.indexOf(P["grouping-separator"]+P["grouping-separator"])!==-1&&(Ge="D3089");var Rt=me.integerPart.indexOf(P.digit);Rt!==-1&&me.integerPart.substring(0,Rt).split("").filter(function(lt){return L.indexOf(lt)>-1}).length>0&&(Ge="D3090"),Rt=me.fractionalPart.lastIndexOf(P.digit),Rt!==-1&&me.fractionalPart.substring(Rt).split("").filter(function(lt){return L.indexOf(lt)>-1}).length>0&&(Ge="D3091");var Qt=typeof me.exponentPart=="string";if(Qt&&me.exponentPart.length>0&&(Ye.indexOf(P.percent)!==-1||Ye.indexOf(P["per-mille"])!==-1)&&(Ge="D3092"),Qt&&(me.exponentPart.length===0||me.exponentPart.split("").filter(function(lt){return L.indexOf(lt)===-1}).length>0)&&(Ge="D3093"),Ge)throw{code:Ge,stack:new Error().stack}},We=function(me){var Ge=function(gt,on){for(var ui=[],xs=gt.indexOf(P["grouping-separator"]);xs!==-1;){var an=(on?gt.substring(0,xs):gt.substring(xs)).split("").filter(function(Or){return L.indexOf(Or)!==-1||Or===P.digit}).length;ui.push(an),xs=me.integerPart.indexOf(P["grouping-separator"],xs+1)}return ui},At=Ge(me.integerPart),Ye=function(gt){if(gt.length===0)return 0;for(var on=function(an,Or){return Or===0?an:on(Or,an%Or)},ui=gt.reduce(on),xs=1;xs<=gt.length;xs++)if(gt.indexOf(xs*ui)===-1)return 0;return ui},Mt=Ye(At),Vs=Ge(me.fractionalPart,!0),Nt=me.integerPart.split("").filter(function(gt){return L.indexOf(gt)!==-1}).length,lr=Nt,Rt=me.fractionalPart.split(""),Qt=Rt.filter(function(gt){return L.indexOf(gt)!==-1}).length,lt=Rt.filter(function(gt){return L.indexOf(gt)!==-1||gt===P.digit}).length,zt=typeof me.exponentPart=="string";Nt===0&<===0&&(zt?(Qt=1,lt=1):Nt=1),zt&&Nt===0&&me.integerPart.indexOf(P.digit)!==-1&&(Nt=1),Nt===0&&Qt===0&&(Qt=1);var dl=0;return zt&&(dl=me.exponentPart.split("").filter(function(gt){return L.indexOf(gt)!==-1}).length),{integerPartGroupingPositions:At,regularGrouping:Mt,minimumIntegerPartSize:Nt,scalingFactor:lr,prefix:me.prefix,fractionalPartGroupingPositions:Vs,minimumFactionalPartSize:Qt,maximumFactionalPartSize:lt,minimumExponentSize:dl,suffix:me.suffix,picture:me.subpicture}},rt=oe.map(Fe);rt.forEach(He);var Le=rt.map(We),Je=P["minus-sign"],Yt=P["zero-digit"],Pt=P["decimal-separator"],ds=P["grouping-separator"];Le.length===1&&(Le.push(JSON.parse(JSON.stringify(Le[0]))),Le[1].prefix=Je+Le[1].prefix);var it;a>=0?it=Le[0]:it=Le[1];var ci;it.picture.indexOf(P.percent)!==-1?ci=a*100:it.picture.indexOf(P["per-mille"])!==-1?ci=a*1e3:ci=a;var qs,Er;if(it.minimumExponentSize===0)qs=ci;else{var hg=Math.pow(10,it.scalingFactor),ug=Math.pow(10,it.scalingFactor-1);if(qs=ci,Er=0,qs!==0){for(;Math.abs(qs)<ug;)qs*=10,Er-=1;for(;Math.abs(qs)>hg;)qs/=10,Er+=1}}var dg=F(qs,it.maximumFactionalPartSize),hl=function(me,Ge){var At=Math.abs(me).toFixed(Ge);return Yt!=="0"&&(At=At.split("").map(function(Ye){return Ye>="0"&&Ye<="9"?L[Ye.charCodeAt(0)-48]:Ye}).join("")),At},Se=hl(dg,it.maximumFactionalPartSize),St=Se.indexOf(".");for(St===-1?Se=Se+Pt:Se=Se.replace(".",Pt);Se.charAt(0)===Yt;)Se=Se.substring(1);for(;Se.charAt(Se.length-1)===Yt;)Se=Se.substring(0,Se.length-1);St=Se.indexOf(Pt);var hi=it.minimumIntegerPartSize-St,ul=it.minimumFactionalPartSize-(Se.length-St-1);if(Se=(hi>0?new Array(hi+1).join(Yt):"")+Se,Se=Se+(ul>0?new Array(ul+1).join(Yt):""),St=Se.indexOf(Pt),it.regularGrouping>0)for(var pg=Math.floor((St-1)/it.regularGrouping),rn=1;rn<=pg;rn++)Se=[Se.slice(0,St-rn*it.regularGrouping),ds,Se.slice(St-rn*it.regularGrouping)].join("");else it.integerPartGroupingPositions.forEach(function(me){Se=[Se.slice(0,St-me),ds,Se.slice(St-me)].join(""),St++});if(St=Se.indexOf(Pt),it.fractionalPartGroupingPositions.forEach(function(me){Se=[Se.slice(0,me+St+1),ds,Se.slice(me+St+1)].join("")}),St=Se.indexOf(Pt),(it.picture.indexOf(Pt)===-1||St===Se.length-1)&&(Se=Se.substring(0,Se.length-1)),typeof Er<"u"){var nn=hl(Er,0);hi=it.minimumExponentSize-nn.length,hi>0&&(nn=new Array(hi+1).join(Yt)+nn),Se=Se+P["exponent-separator"]+(Er<0?Je:"")+nn}return Se=it.prefix+Se+it.suffix,Se}}function M(a,l){if(!(typeof a>"u")){if(a=F(a),typeof l>"u"?l=10:l=F(l),l<2||l>36)throw{code:"D3100",stack:new Error().stack,value:l};var p=a.toString(l);return p}}function D(a){var l;if(!(typeof a>"u")){if(typeof a=="number")l=a;else if(typeof a=="string"&&/^-?[0-9]+(\.[0-9]+)?([Ee][-+]?[0-9]+)?$/.test(a)&&!isNaN(parseFloat(a))&&isFinite(a))l=parseFloat(a);else if(typeof a=="string"&&/^(0[xX][0-9A-Fa-f]+)|(0[oO][0-7]+)|(0[bB][0-1]+)$/.test(a))l=Number(a);else if(a===!0)l=1;else if(a===!1)l=0;else throw{code:"D3030",value:a,stack:new Error().stack,index:1};return l}}function j(a){var l;if(!(typeof a>"u"))return l=Math.abs(a),l}function V(a){var l;if(!(typeof a>"u"))return l=Math.floor(a),l}function H(a){var l;if(!(typeof a>"u"))return l=Math.ceil(a),l}function F(a,l){var p;if(!(typeof a>"u")){if(l){var S=a.toString().split("e");a=+(S[0]+"e"+(S[1]?+S[1]+l:l))}p=Math.round(a);var P=p-a;return Math.abs(P)===.5&&Math.abs(p%2)===1&&(p=p-1),l&&(S=p.toString().split("e"),p=+(S[0]+"e"+(S[1]?+S[1]-l:-l))),Object.is(p,-0)&&(p=0),p}}function Y(a){var l;if(!(typeof a>"u")){if(a<0)throw{stack:new Error().stack,code:"D3060",index:1,value:a};return l=Math.sqrt(a),l}}function ae(a,l){var p;if(!(typeof a>"u")){if(p=Math.pow(a,l),!isFinite(p))throw{stack:new Error().stack,code:"D3061",index:1,value:a,exp:l};return p}}function Pe(){return Math.random()}function ge(a){if(!(typeof a>"u")){var l=!1;if(Array.isArray(a)){if(a.length===1)l=ge(a[0]);else if(a.length>1){var p=a.filter(function(S){return ge(S)});l=p.length>0}}else typeof a=="string"?a.length>0&&(l=!0):d(a)?a!==0&&(l=!0):a!==null&&typeof a=="object"&&!f(a)?o.keys(a).length>0&&(l=!0):typeof a=="boolean"&&a===!0&&(l=!0);return l}}function fe(a){if(!(typeof a>"u"))return!ge(a)}function ue(a,l,p,S){var P=[l],L=O(a);return L>=2&&P.push(p),L>=3&&P.push(S),P}async function $e(a,l){if(!(typeof a>"u")){for(var p=this.createSequence(),S=0;S<a.length;S++){var P=ue(l,a[S],S,a),L=await l.apply(this,P);typeof L<"u"&&p.push(L)}return p}}async function de(a,l){if(!(typeof a>"u")){for(var p=this.createSequence(),S=0;S<a.length;S++){var P=a[S],L=ue(l,P,S,a),B=await l.apply(this,L);ge(B)&&p.push(P)}return p}}async function ft(a,l){if(!(typeof a>"u")){for(var p=!1,S,P=0;P<a.length;P++){var L=a[P],B=!0;if(typeof l<"u"){var K=ue(l,L,P,a),we=await l.apply(this,K);B=ge(we)}if(B)if(!p)S=L,p=!0;else throw{stack:new Error().stack,code:"D3138",index:P}}if(!p)throw{stack:new Error().stack,code:"D3139"};return S}}function Kt(){for(var a=[],l=Array.prototype.slice.call(arguments),p=Math.min.apply(Math,l.map(function(L){return Array.isArray(L)?L.length:0})),S=0;S<p;S++){var P=l.map(L=>L[S]);a.push(P)}return a}async function _t(a,l,p){if(!(typeof a>"u")){var S,P=O(l);if(P<2)throw{stack:new Error().stack,code:"D3050",index:1};var L;for(typeof p>"u"&&a.length>0?(S=a[0],L=1):(S=p,L=0);L<a.length;){var B=[S,a[L]];P>=3&&B.push(L),P>=4&&B.push(a),S=await l.apply(this,B),L++}return S}}function st(a){var l=this.createSequence();if(Array.isArray(a)){for(var p=Object.create(null),S=0;S<a.length;S++){var P=st.call(this,a[S]);P.forEach(function(L){p[L]=!0})}l=st.call(this,p)}else a!==null&&typeof a=="object"&&!f(a)&&o.keys(a).forEach(L=>l.push(L));return l}function xt(a,l){var p;if(Array.isArray(a)){p=this.createSequence();for(var S=0;S<a.length;S++){var P=xt.call(this,a[S],l);typeof P<"u"&&(Array.isArray(P)?P.forEach(L=>p.push(L)):p.push(P))}}else a!==null&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,l)&&!f(a)&&(p=a[l]);return p}function _s(a,l){if(typeof a>"u")return l;if(typeof l>"u")return a;Array.isArray(a)||(a=this.createSequence(a)),Array.isArray(l)||(l=[l]);const p=a.length+l.length;if(this.options&&p>this.options.sequence)throw{code:"D2015",stack:new Error().stack,value:p};return a.concat(l)}function $r(a){return!(typeof a>"u")}function Dr(a){var l=this.createSequence();if(Array.isArray(a))for(var p=0;p<a.length;p++)l=_s.call(this,l,Dr.call(this,a[p]));else if(a!==null&&typeof a=="object"&&!A(a))for(const P of o.keys(a)){var S=Object.create(null);S[P]=a[P],l.push(S)}else l=a;return l}function Z(a){if(!(typeof a>"u")){var l=Object.create(null);return a.forEach(function(p){for(const S of o.keys(p))l[S]=p[S]}),l}}function tn(a){if(!(typeof a>"u")){if(a.length<=1)return a;for(var l=a.length,p=new Array(l),S=0;S<l;S++)p[l-S-1]=a[S];return p}}async function sn(a,l){var p=this.createSequence();for(const L of o.keys(a)){var S=ue(l,a[L],L,a),P=await l.apply(this,S);typeof P<"u"&&p.push(P)}return p}function Xt(a){throw{code:"D3137",stack:new Error().stack,message:a||"$error() function evaluated"}}function li(a,l){if(!a)throw{code:"D3141",stack:new Error().stack,message:l||"$assert() statement failed"}}function us(a){if(a!==void 0)return a===null?"null":d(a)?"number":typeof a=="string"?"string":typeof a=="boolean"?"boolean":Array.isArray(a)?"array":f(a)?"function":"object"}async function ar(a,l){if(!(typeof a>"u")){if(a.length<=1)return a;var p;if(typeof l>"u"){if(!k(a)&&!m(a))throw{stack:new Error().stack,code:"D3070",index:1};p=async function(B,K){return B>K}}else p=l;var S=async function(B,K){var we=async function(Fe,He,We){He.length===0?Array.prototype.push.apply(Fe,We):We.length===0?Array.prototype.push.apply(Fe,He):await p(He[0],We[0])?(Fe.push(We[0]),await we(Fe,He,We.slice(1))):(Fe.push(He[0]),await we(Fe,He.slice(1),We))},oe=[];return await we(oe,B,K),oe},P=async function(B){if(!Array.isArray(B)||B.length<=1)return B;var K=Math.floor(B.length/2),we=B.slice(0,K),oe=B.slice(K);return we=await P(we),oe=await P(oe),await S(we,oe)},L=await P(a);return L}}function u(a){if(!(typeof a>"u")){if(a.length<=1)return a;for(var l=new Array(a.length),p=0;p<a.length;p++){var S=Math.floor(Math.random()*(p+1));p!==S&&(l[p]=l[S]),l[S]=a[p]}return l}}function v(a){if(!(typeof a>"u")){if(!Array.isArray(a)||a.length<=1)return a;for(var l=g(a)?this.createSequence():[],p=0;p<a.length;p++){for(var S=a[p],P=!1,L=0;L<l.length;L++)if(I(S,l[L])){P=!0;break}P||l.push(S)}return l}}async function w(a,l){var p=Object.create(null);for(const B of o.keys(a)){var S=a[B],P=ue(l,S,B,a),L=await l.apply(this,P);ge(L)&&(p[B]=S)}return o.keys(p).length===0&&(p=void 0),p}return{sum:x,count:y,max:N,min:C,average:$,string:G,substring:z,substringBefore:ne,substringAfter:se,lowercase:ie,uppercase:q,length:le,trim:pe,pad:Ue,match:ke,contains:be,replace:ce,split:_e,join:De,formatNumber:T,formatBase:M,number:D,floor:V,ceil:H,round:F,abs:j,sqrt:Y,power:ae,random:Pe,boolean:ge,not:fe,map:$e,zip:Kt,filter:de,single:ft,foldLeft:_t,sift:w,keys:st,lookup:xt,append:_s,exists:$r,spread:Dr,merge:Z,reverse:tn,each:sn,error:Xt,assert:li,type:us,sort:ar,shuffle:u,distinct:v,base64encode:W,base64decode:xe,encodeUrlComponent:b,encodeUrl:_,decodeUrlComponent:Q,decodeUrl:ve}})();i.exports=c}).call(this)}).call(this,typeof Ko<"u"?Ko:typeof self<"u"?self:typeof window<"u"?window:{})},{"./utils":6}],3:[function(s,i,r){var n=s("./datetime"),o=s("./functions"),c=s("./utils"),d=s("./parser"),m=s("./signature"),k=(function(){var g=c.isNumeric,f=c.isArrayOfStrings,A=c.isArrayOfNumbers,E=c.isSequence,O=c.isFunction,I=c.isLambda,U=c.isIterable,x=c.isPromise,y=c.getFunctionArity,N=c.isDeepEqual,C=Xt(null);async function $(u,v,w){var a;w.base.depth++,w.base.guardrails();var l=w.lookup(Symbol.for("jsonata.__evaluate_entry"));switch(l&&await l(u,v,w),u.type){case"path":a=await G(u,v,w);break;case"binary":a=await le(u,v,w);break;case"unary":a=await pe(u,v,w);break;case"name":a=Ue(u,v,w);break;case"string":case"number":case"value":a=he(u);break;case"wildcard":a=be(u,v,w);break;case"descendant":a=ce(u,v,w);break;case"parent":a=w.lookup(u.slot.label);break;case"condition":a=await V(u,v,w);break;case"block":a=await H(u,v,w);break;case"bind":a=await j(u,v,w);break;case"regex":a=F(u,v,w);break;case"function":a=await ue(u,v,w);break;case"variable":a=Y(u,v,w);break;case"lambda":a=ft(u,v,w);break;case"partial":a=await Kt(u,v,w);break;case"apply":a=await fe(u,v,w);break;case"transform":a=Pe(u,v,w);break}if(Object.prototype.hasOwnProperty.call(u,"predicate"))for(var p=0;p<u.predicate.length;p++)a=await q(u.predicate[p].expr,a,w);u.type!=="path"&&Object.prototype.hasOwnProperty.call(u,"group")&&(a=await T(u.group,a,w));var S=w.lookup(Symbol.for("jsonata.__evaluate_exit"));return S&&await S(u,v,w,a),a&&E(a)&&!a.tupleStream&&(u.keepArray&&(a.keepSingleton=!0),a.length===0?a=void 0:a.length===1&&(a=a.keepSingleton?a:a[0])),w.base.depth--,a}async function G(u,v,w){var a;Array.isArray(v)&&u.steps[0].type!=="variable"?a=v:a=w.base.createSequence(v);for(var l,p=!1,S=void 0,P=0;P<u.steps.length;P++){var L=u.steps[P];if(L.tuple&&(p=!0),P===0&&L.consarray?l=await $(L,a,w):p?S=await ie(L,a,S,w):l=await ne(L,a,w,P===u.steps.length-1),!p&&(typeof l>"u"||l.length===0))break;typeof L.focus>"u"&&(a=l)}if(p)if(u.tuple)l=S;else for(l=w.base.createSequence(),P=0;P<S.length;P++)l.push(S[P]["@"]);return u.keepSingletonArray&&(Array.isArray(l)&&l.cons&&!l.sequence&&(l=w.base.createSequence(l)),l.keepSingleton=!0),Object.prototype.hasOwnProperty.call(u,"group")&&(l=await T(u.group,p?S:l,w)),l}function z(u,v){var w=Xt(u);for(const a of c.keys(v))w.bind(a,v[a]);return w}async function ne(u,v,w,a){var l;if(u.type==="sort")return l=await ae(u,v,w),u.stages&&(l=await se(u.stages,l,w)),l;l=w.base.createSequence();for(var p=0;p<v.length;p++){var S=await $(u,v[p],w);if(u.stages)for(var P=0;P<u.stages.length;P++)S=await q(u.stages[P].expr,S,w);typeof S<"u"&&l.push(S)}var L=w.base.createSequence();return a&&l.length===1&&Array.isArray(l[0])&&!E(l[0])?L=l[0]:Array.prototype.forEach.call(l,function(B){!Array.isArray(B)||B.cons?L.push(B):Array.prototype.forEach.call(B,K=>L.push(K))}),L}async function se(u,v,w){for(var a=v,l=0;l<u.length;l++){var p=u[l];switch(p.type){case"filter":a=await q(p.expr,a,w);break;case"index":for(var S=0;S<a.length;S++){var P=a[S];P[p.value]=S}break}}return a}async function ie(u,v,w,a){var l;if(u.type==="sort"){if(w)l=await ae(u,w,a);else{var p=await ae(u,v,a);l=a.base.createSequence(),l.tupleStream=!0;for(var S=0;S<p.length;S++){var P={"@":p[S]};P[u.index]=S,l.push(P)}}return u.stages&&(l=await se(u.stages,l,a)),l}l=a.base.createSequence(),l.tupleStream=!0;var L=a;w===void 0&&(w=v.map(oe=>({"@":oe})));for(var B=0;B<w.length;B++){L=z(a,w[B]);var K=await $(u,w[B]["@"],L);if(typeof K<"u"){Array.isArray(K)||(K=[K]);for(var we=0;we<K.length;we++)P=Object.create(null),Object.assign(P,w[B]),K.tupleStream?Object.assign(P,K[we]):(u.focus?(P[u.focus]=K[we],P["@"]=w[B]["@"]):P["@"]=K[we],u.index&&(P[u.index]=we),u.ancestor&&(P[u.ancestor.label]=w[B]["@"])),l.push(P)}}return u.stages&&(l=await se(u.stages,l,a)),l}async function q(u,v,w){var a=w.base.createSequence();if(v&&v.tupleStream&&(a.tupleStream=!0),Array.isArray(v)||(v=w.base.createSequence(v)),u.type==="number"){var l=Math.floor(u.value);l<0&&(l=v.length+l);var p=await v[l];typeof p<"u"&&(Array.isArray(p)?a=p:a.push(p))}else for(l=0;l<v.length;l++){var p=v[l],S=p,P=w;v.tupleStream&&(S=p["@"],P=z(w,p));var L=await $(u,S,P);g(L)&&(L=[L]),A(L)?Array.prototype.forEach.call(L,function(K){var we=Math.floor(K);we<0&&(we=v.length+we),we===l&&a.push(p)}):o.boolean(L)&&a.push(p)}return a}async function le(u,v,w){var a,l=await $(u.lhs,v,w),p=u.value,S=async()=>await $(u.rhs,v,w);if(p==="and"||p==="or")try{return await ve(l,S,p)}catch(L){throw L.position=u.position,L.token=p,L}var P=await S();try{switch(p){case"+":case"-":case"*":case"/":case"%":a=xe(l,P,p);break;case"=":case"!=":a=b(l,P,p);break;case"<":case"<=":case">":case">=":a=_(l,P,p);break;case"&":a=De(l,P);break;case"..":a=D(l,P,w);break;case"in":a=Q(l,P);break}}catch(L){throw L.position=u.position,L.token=p,L}return a}async function pe(u,v,w){var a,l={options:w.base.options,createSequence:w.base.createSequence};switch(u.value){case"-":if(a=await $(u.expression,v,w),typeof a>"u")a=void 0;else if(g(a))a=-a;else throw{code:"D1002",stack:new Error().stack,position:u.position,token:u.value,value:a};break;case"[":a=[];let P=await Promise.all(u.expressions.map(async(L,B)=>(w.isParallelCall=B>0,[L,await $(L,v,w)])));for(let L of P){var[p,S]=L;typeof S<"u"&&(p.value==="["?a.push(S):a=o.append.call(l,a,S))}u.consarray&&Object.defineProperty(a,"cons",{enumerable:!1,configurable:!1,value:!0});break;case"{":a=await T(u,v,w);break}return a}function Ue(u,v,w){var a={createSequence:w.base.createSequence};return o.lookup.call(a,v,u.value)}function he(u){return u.value}function be(u,v,w){var a={options:w.base.options,createSequence:w.base.createSequence},l=a.createSequence();return Array.isArray(v)&&v.outerWrapper&&v.length>0&&(v=v[0]),v!==null&&typeof v=="object"&&!O(v)&&c.keys(v).forEach(function(p){var S=v[p];Array.isArray(S)?(S=ke(S),l=o.append.call(a,l,S)):l.push(S)}),l}function ke(u,v){return typeof v>"u"&&(v=[]),Array.isArray(u)?Array.prototype.forEach.call(u,function(w){ke(w,v)}):v.push(u),v}function ce(u,v,w){var a,l=w.base.createSequence();return typeof v<"u"&&(W(v,l),l.length===1?a=l[0]:a=l),a}function W(u,v){Array.isArray(u)||v.push(u),Array.isArray(u)?Array.prototype.forEach.call(u,function(w){W(w,v)}):u!==null&&typeof u=="object"&&!O(u)&&c.keys(u).forEach(function(w){W(u[w],v)})}function xe(u,v,w){var a;if(typeof u<"u"&&!g(u))throw{code:"T2001",stack:new Error().stack,value:u};if(typeof v<"u"&&!g(v))throw{code:"T2002",stack:new Error().stack,value:v};if(typeof u>"u"||typeof v>"u")return a;switch(w){case"+":a=u+v;break;case"-":a=u-v;break;case"*":a=u*v;break;case"/":a=u/v;break;case"%":a=u%v;break}return a}function b(u,v,w){var a,l=typeof u,p=typeof v;if(l==="undefined"||p==="undefined")return!1;switch(w){case"=":a=N(u,v);break;case"!=":a=!N(u,v);break}return a}function _(u,v,w){var a,l=typeof u,p=typeof v,S=l==="undefined"||l==="string"||l==="number",P=p==="undefined"||p==="string"||p==="number";if(!S||!P)throw{code:"T2010",stack:new Error().stack,value:l==="string"||l==="number"?v:u};if(!(l==="undefined"||p==="undefined")){if(l!==p)throw{code:"T2009",stack:new Error().stack,value:u,value2:v};switch(w){case"<":a=u<v;break;case"<=":a=u<=v;break;case">":a=u>v;break;case">=":a=u>=v;break}return a}}function Q(u,v){var w=!1;if(typeof u>"u"||typeof v>"u")return!1;Array.isArray(v)||(v=[v]);for(var a=0;a<v.length;a++)if(v[a]===u){w=!0;break}return w}async function ve(u,v,w){var a,l=_e(u);switch(w){case"and":a=l&&_e(await v());break;case"or":a=l||_e(await v());break}return a}function _e(u){var v=o.boolean(u);return typeof v>"u"?!1:v}function De(u,v){var w,a="",l="";return typeof u<"u"&&(a=o.string(u)),typeof v<"u"&&(l=o.string(v)),w=a.concat(l),w}async function T(u,v,w){var a=Object.create(null),l=Object.create(null),p=!!(v&&v.tupleStream),S={options:w.base.options,createSequence:w.base.createSequence};Array.isArray(v)||(w.base.options,v=S.createSequence(v)),v.length===0&&!p&&v.push(void 0);for(var P=0;P<v.length;P++)for(var L=v[P],B=p?z(w,L):w,K=0;K<u.lhs.length;K++){var we=u.lhs[K],oe=await $(we[0],p?L["@"]:L,B);if(typeof oe!="string"&&oe!==void 0)throw{code:"T1003",stack:new Error().stack,position:u.position,value:oe};if(oe!==void 0){if(oe==="_jsonata_lambda"||oe==="_jsonata_function")throw{code:"D1013",stack:new Error().stack,position:u.position,value:oe};var Fe={data:L,exprIndex:K};if(Object.prototype.hasOwnProperty.call(l,oe)){if(l[oe].exprIndex!==K)throw{code:"D1009",stack:new Error().stack,position:u.position,value:oe};l[oe].data=o.append.call(S,l[oe].data,L)}else l[oe]=Fe}}let He=await Promise.all(c.keys(l).map(async(rt,Le)=>{let Je=l[rt];var Yt=Je.data,Pt=w;if(p){var ds=M(Je.data,w);Yt=ds["@"],delete ds["@"],Pt=z(w,ds)}return w.isParallelCall=Le>0,[rt,await $(u.lhs[Je.exprIndex][1],Yt,Pt)]}));for(let rt of He){var[oe,We]=await rt;typeof We<"u"&&(a[oe]=We)}return a}function M(u,v){if(!Array.isArray(u))return u;var w=Object.create(null),a={options:v.base.options,createSequence:v.base.createSequence};Object.assign(w,u[0]);for(var l=1;l<u.length;l++)for(const p of c.keys(u[l]))w[p]=o.append.call(a,w[p],u[l][p]);return w}function D(u,v,w){var a;if(typeof u<"u"&&!Number.isInteger(u))throw{code:"T2003",stack:new Error().stack,value:u};if(typeof v<"u"&&!Number.isInteger(v))throw{code:"T2004",stack:new Error().stack,value:v};if(typeof u>"u"||typeof v>"u"||u>v)return a;var l=v-u+1;if(l>1e7)throw{code:"D2014",stack:new Error().stack,value:l};if(w.base.options&&l>w.base.options.sequence)throw{code:"D2015",stack:new Error().stack,value:l};a=new Array(l);for(var p=u,S=0;p<=v;p++,S++)a[S]=p;return a.sequence=!0,a}async function j(u,v,w){var a=await $(u.rhs,v,w);return w.bind(u.lhs.value,a),a}async function V(u,v,w){var a,l=await $(u.condition,v,w);return o.boolean(l)?a=await $(u.then,v,w):typeof u.else<"u"&&(a=await $(u.else,v,w)),a}async function H(u,v,w){for(var a,l=Xt(w),p=0;p<u.expressions.length;p++)a=await $(u.expressions[p],v,l);return a}function F(u,v,w){var a=new w.base.RegexEngine(u.value),l=function(p,S){var P;a.lastIndex=S||0;var L=a.exec(p);if(L!==null){if(P={match:L[0],start:L.index,end:L.index+L[0].length,groups:[]},L.length>1)for(var B=1;B<L.length;B++)P.groups.push(L[B]);P.next=function(){if(!(a.lastIndex>=p.length)){var K=l(p,a.lastIndex);if(K&&K.match==="")throw{code:"D1004",stack:new Error().stack,position:u.position,value:u.value.source};return K}}}return P};return l}function Y(u,v,w){var a;return u.value===""?a=v&&v.outerWrapper?v[0]:v:a=w.lookup(u.value),a}async function ae(u,v,w){var a,l=v,p=!!v.tupleStream,S=async function(L,B){for(var K=0,we=0;K===0&&we<u.terms.length;we++){var oe=u.terms[we],Fe=L,He=w;p&&(Fe=L["@"],He=z(w,L));var We=await $(oe.expression,Fe,He);Fe=B,He=w,p&&(Fe=B["@"],He=z(w,B));var rt=await $(oe.expression,Fe,He),Le=typeof We,Je=typeof rt;if(Le==="undefined"){K=Je==="undefined"?0:1;continue}if(Je==="undefined"){K=-1;continue}if(!(Le==="string"||Le==="number")||!(Je==="string"||Je==="number"))throw{code:"T2008",stack:new Error().stack,position:u.position,value:Le==="string"||Le==="number"?rt:We};if(Le!==Je)throw{code:"T2007",stack:new Error().stack,position:u.position,value:We,value2:rt};We!==rt&&(We<rt?K=-1:K=1,oe.descending===!0&&(K=-K))}return K===1},P={environment:w,input:v};return a=await o.sort.apply(P,[l,S]),a}function Pe(u,v,w){var a=async function(l){if(!(typeof l>"u")){var p=w.lookup("clone");if(!O(p))throw{code:"T2013",stack:new Error().stack,position:u.position};var S=await $e(p,[l],null,w),P=await $(u.pattern,S,w);if(typeof P<"u"){Array.isArray(P)||(P=[P]);for(var L=0;L<P.length;L++){var B=P[L],K=await $(u.update,B,w),we=typeof K;if(we!=="undefined"){if(we!=="object"||K===null||Array.isArray(K))throw{code:"T2011",stack:new Error().stack,position:u.update.position,value:K};for(const We of c.keys(K))B[We]=K[We]}if(typeof u.delete<"u"){var oe=await $(u.delete,B,w);if(typeof oe<"u"){var Fe=oe;if(Array.isArray(oe)||(oe=[oe]),!f(oe))throw{code:"T2012",stack:new Error().stack,position:u.delete.position,value:Fe};for(var He=0;He<oe.length;He++)typeof B=="object"&&B!==null&&delete B[oe[He]]}}}}return S}};return Z(a,"<(oa):o>")}var ge=d("function($f, $g) { function($x){ $g($f($x)) } }");async function fe(u,v,w){var a,l=await $(u.lhs,v,w);if(u.rhs.type==="function")a=await ue(u.rhs,v,w,{context:l});else{var p=await $(u.rhs,v,w);if(!O(p))throw{code:"T2006",stack:new Error().stack,position:u.position,value:p};if(O(l)){var S=await $(ge,null,w);a=await $e(S,[l,p],null,w)}else a=await $e(p,[l],null,w)}return a}async function ue(u,v,w,a){var l,p=await $(u.procedure,v,w);if(typeof p>"u"&&u.procedure.type==="path"&&w.lookup(u.procedure.steps[0].value))throw{code:"T1005",stack:new Error().stack,position:u.position,token:u.procedure.steps[0].value};var S=[];typeof a<"u"&&S.push(a.context);for(var P=0;P<u.arguments.length;P++){const B=await $(u.arguments[P],v,w);if(O(B)){const K=async function(...we){return await $e(B,we,null,w)};K.arity=y(B),S.push(K)}else S.push(B)}var L=u.procedure.type==="path"?u.procedure.steps[0].value:u.procedure.value;try{typeof p=="object"&&(p.token=L,p.position=u.position),l=await $e(p,S,v,w)}catch(B){throw B.position||(B.position=u.position),B.token||(B.token=L),B}return l}async function $e(u,v,w,a){var l;for(l=await de(u,v,w,a);I(l)&&l.thunk===!0;){var p=await $(l.body.procedure,l.input,l.environment);l.body.procedure.type==="variable"&&(p.token=l.body.procedure.value),p.position=l.body.procedure.position;for(var S=[],P=0;P<l.body.arguments.length;P++)S.push(await $(l.body.arguments[P],l.input,l.environment));l=await de(p,S,w,a)}return l}async function de(u,v,w,a){var l;try{var p=v;if(u&&(p=_t(u.signature,v,w)),I(u))l=await st(u,p);else if(u&&u._jsonata_function===!0){var S={environment:a,input:w,options:a.base.options,createSequence:a.base.createSequence};l=u.implementation.apply(S,p),U(l)&&(l=l.next().value),x(l)&&(l=await l)}else if(typeof u=="function")l=u.apply(w,p),x(l)&&(l=await l);else throw{code:"T1006",stack:new Error().stack}}catch(P){throw u&&(typeof P.token>"u"&&typeof u.token<"u"&&(P.token=u.token),P.position=u.position||P.position),P}return l}function ft(u,v,w){var a={_jsonata_lambda:!0,input:v,environment:w,arguments:u.arguments,signature:u.signature,body:u.body};return u.thunk===!0&&(a.thunk=!0),a.apply=async function(l,p){return await $e(a,p,v,l?l.environment:w)},a}async function Kt(u,v,w){for(var a,l=[],p=0;p<u.arguments.length;p++){var S=u.arguments[p];S.type==="operator"&&S.value==="?"?l.push(S):l.push(await $(S,v,w))}var P=await $(u.procedure,v,w);if(typeof P>"u"&&u.procedure.type==="path"&&w.lookup(u.procedure.steps[0].value))throw{code:"T1007",stack:new Error().stack,position:u.position,token:u.procedure.steps[0].value};if(I(P))a=xt(P,l,w);else if(P&&P._jsonata_function===!0)a=_s(P.implementation,l,w);else if(typeof P=="function")a=_s(P,l,w);else throw{code:"T1008",stack:new Error().stack,position:u.position,token:u.procedure.type==="path"?u.procedure.steps[0].value:u.procedure.value};return a}function _t(u,v,w){if(typeof u>"u")return v;var a=u.validate(v,w);return a}async function st(u,v){var w,a=Xt(u.environment);return Array.prototype.forEach.call(u.arguments,function(l,p){a.bind(l.value,v[p])}),typeof u.body=="function"?w=await $r(u.body,a):w=await $(u.body,u.input,a),w}function xt(u,v,w){var a=Xt(u.environment||w),l=[];Array.prototype.forEach.call(u.arguments,function(S,P){var L=v[P];L&&L.type==="operator"&&L.value==="?"?l.push(S):a.bind(S.value,L)});var p={_jsonata_lambda:!0,input:u.input,environment:a,arguments:l,body:u.body};return p}function _s(u,v,w){var a=Dr(u);a=a.map(function(P){return"$"+P.trim()});var l="function("+a.join(", ")+"){ _ }",p=d(l);p.body=u;var S=xt(p,v,w);return S}async function $r(u,v){var w=Dr(u),a=w.map(function(S){return v.lookup(S.trim())}),l={environment:v,createSequence:v.base.createSequence},p=u.apply(l,a);return x(p)&&(p=await p),p}function Dr(u){var v=u.toString(),w=/\(([^)]*)\)/.exec(v)[1],a=w.split(",");return a}function Z(u,v){var w={_jsonata_function:!0,implementation:u};return typeof v<"u"&&(w.signature=m(v)),w}async function tn(u,v){if(!(typeof u>"u")){var w=this.input;typeof v<"u"&&(w=v,Array.isArray(w)&&!E(w)&&(w=this.createSequence(w),w.outerWrapper=!0));try{var a=d(u,!1)}catch(p){throw us(p),{stack:new Error().stack,code:"D3120",value:p.message,error:p}}try{var l=await $(a,w,this.environment)}catch(p){throw us(p),{stack:new Error().stack,code:"D3121",value:p.message,error:p}}return l}}function sn(u){if(!(typeof u>"u"))return JSON.parse(o.string(u))}function Xt(u){var v=Object.create(null);const w={bind:function(l,p){v[l]=p},lookup:function(l){var p;return Object.prototype.hasOwnProperty.call(v,l)?p=v[l]:u&&(p=u.lookup(l)),p},timestamp:u?u.timestamp:null,async:u?u.async:!1,isParallelCall:u?u.isParallelCall:!1,global:u?u.global:{ancestry:[null]}};if(u){var a=u.lookup(Symbol.for("jsonata.__createFrame_push"));a&&a(u,w),w.base=u.base}return w}C.bind("sum",Z(o.sum,"<a<n>:n>")),C.bind("count",Z(o.count,"<a:n>")),C.bind("max",Z(o.max,"<a<n>:n>")),C.bind("min",Z(o.min,"<a<n>:n>")),C.bind("average",Z(o.average,"<a<n>:n>")),C.bind("string",Z(o.string,"<x-b?:s>")),C.bind("substring",Z(o.substring,"<s-nn?:s>")),C.bind("substringBefore",Z(o.substringBefore,"<s-s:s>")),C.bind("substringAfter",Z(o.substringAfter,"<s-s:s>")),C.bind("lowercase",Z(o.lowercase,"<s-:s>")),C.bind("uppercase",Z(o.uppercase,"<s-:s>")),C.bind("length",Z(o.length,"<s-:n>")),C.bind("trim",Z(o.trim,"<s-:s>")),C.bind("pad",Z(o.pad,"<s-ns?:s>")),C.bind("match",Z(o.match,"<s-f<s:o>n?:a<o>>")),C.bind("contains",Z(o.contains,"<s-(sf):b>")),C.bind("replace",Z(o.replace,"<s-(sf)(sf)n?:s>")),C.bind("split",Z(o.split,"<s-(sf)n?:a<s>>")),C.bind("join",Z(o.join,"<a<s>s?:s>")),C.bind("formatNumber",Z(o.formatNumber,"<n-so?:s>")),C.bind("formatBase",Z(o.formatBase,"<n-n?:s>")),C.bind("formatInteger",Z(n.formatInteger,"<n-s:s>")),C.bind("parseInteger",Z(n.parseInteger,"<s-s:n>")),C.bind("number",Z(o.number,"<(nsb)-:n>")),C.bind("floor",Z(o.floor,"<n-:n>")),C.bind("ceil",Z(o.ceil,"<n-:n>")),C.bind("round",Z(o.round,"<n-n?:n>")),C.bind("abs",Z(o.abs,"<n-:n>")),C.bind("sqrt",Z(o.sqrt,"<n-:n>")),C.bind("power",Z(o.power,"<n-n:n>")),C.bind("random",Z(o.random,"<:n>")),C.bind("boolean",Z(o.boolean,"<x-:b>")),C.bind("not",Z(o.not,"<x-:b>")),C.bind("map",Z(o.map,"<af>")),C.bind("zip",Z(o.zip,"<a+>")),C.bind("filter",Z(o.filter,"<af>")),C.bind("single",Z(o.single,"<af?>")),C.bind("reduce",Z(o.foldLeft,"<afj?:j>")),C.bind("sift",Z(o.sift,"<o-f?:o>")),C.bind("keys",Z(o.keys,"<x-:a<s>>")),C.bind("lookup",Z(o.lookup,"<x-s:x>")),C.bind("append",Z(o.append,"<xx:a>")),C.bind("exists",Z(o.exists,"<x:b>")),C.bind("spread",Z(o.spread,"<x-:a<o>>")),C.bind("merge",Z(o.merge,"<a<o>:o>")),C.bind("reverse",Z(o.reverse,"<a:a>")),C.bind("each",Z(o.each,"<o-f:a>")),C.bind("error",Z(o.error,"<s?:x>")),C.bind("assert",Z(o.assert,"<bs?:x>")),C.bind("type",Z(o.type,"<x:s>")),C.bind("sort",Z(o.sort,"<af?:a>")),C.bind("shuffle",Z(o.shuffle,"<a:a>")),C.bind("distinct",Z(o.distinct,"<x:x>")),C.bind("base64encode",Z(o.base64encode,"<s-:s>")),C.bind("base64decode",Z(o.base64decode,"<s-:s>")),C.bind("encodeUrlComponent",Z(o.encodeUrlComponent,"<s-:s>")),C.bind("encodeUrl",Z(o.encodeUrl,"<s-:s>")),C.bind("decodeUrlComponent",Z(o.decodeUrlComponent,"<s-:s>")),C.bind("decodeUrl",Z(o.decodeUrl,"<s-:s>")),C.bind("eval",Z(tn,"<sx?:x>")),C.bind("toMillis",Z(n.toMillis,"<s-s?:n>")),C.bind("fromMillis",Z(n.fromMillis,"<n-s?s?:s>")),C.bind("clone",Z(sn,"<(oa)-:o>"));var li={S0101:"String literal must be terminated by a matching quote",S0102:"Number out of range: {{token}}",S0103:"Unsupported escape sequence: \\{{token}}",S0104:"The escape sequence \\u must be followed by 4 hex digits",S0105:"Quoted property name must be terminated with a backquote (`)",S0106:"Comment has no closing tag",S0201:"Syntax error: {{token}}",S0202:"Expected {{value}}, got {{token}}",S0203:"Expected {{value}} before end of expression",S0204:"Unknown operator: {{token}}",S0205:"Unexpected token: {{token}}",S0206:"Unknown expression type: {{token}}",S0207:"Unexpected end of expression",S0208:"Parameter {{value}} of function definition must be a variable name (start with $)",S0209:"A predicate cannot follow a grouping expression in a step",S0210:"Each step can only have one grouping expression",S0211:"The symbol {{token}} cannot be used as a unary operator",S0212:"The left side of := must be a variable name (start with $)",S0213:"The literal value {{value}} cannot be used as a step within a path expression",S0214:"The right side of {{token}} must be a variable name (start with $)",S0215:"A context variable binding must precede any predicates on a step",S0216:"A context variable binding must precede the 'order-by' clause on a step",S0217:"The object representing the 'parent' cannot be derived from this expression",S0301:"Empty regular expressions are not allowed",S0302:"No terminating / in regular expression",S0402:"Choice groups containing parameterized types are not supported",S0401:"Type parameters can only be applied to functions and arrays",S0500:"Attempted to evaluate an expression containing syntax error(s)",T0410:"Argument {{index}} of function {{token}} does not match function signature",T0411:"Context value is not a compatible type with argument {{index}} of function {{token}}",T0412:"Argument {{index}} of function {{token}} must be an array of {{type}}",D1001:"Number out of range: {{value}}",D1002:"Cannot negate a non-numeric value: {{value}}",T1003:"Key in object structure must evaluate to a string; got: {{value}}",D1004:"Regular expression matches zero length string",T1005:"Attempted to invoke a non-function. Did you mean ${{{token}}}?",T1006:"Attempted to invoke a non-function",T1007:"Attempted to partially apply a non-function. Did you mean ${{{token}}}?",T1008:"Attempted to partially apply a non-function",D1009:"Multiple key definitions evaluate to same key: {{value}}",T1010:"The matcher function argument passed to function {{token}} does not return the correct object structure",D1011:"Stack overflow. Check for non-terminating recursive function. Consider rewriting as tail-recursive",D1012:"Evaluation timeout after {{value}} milliseconds. Check for infinite loop",D1013:"Object property names starting with _jsonata_ are reserved for internal use: {{value}}",T2001:"The left side of the {{token}} operator must evaluate to a number",T2002:"The right side of the {{token}} operator must evaluate to a number",T2003:"The left side of the range operator (..) must evaluate to an integer",T2004:"The right side of the range operator (..) must evaluate to an integer",D2005:"The left side of := must be a variable name (start with $)",T2006:"The right side of the function application operator ~> must be a function",T2007:"Type mismatch when comparing values {{value}} and {{value2}} in order-by clause",T2008:"The expressions within an order-by clause must evaluate to numeric or string values",T2009:"The values {{value}} and {{value2}} either side of operator {{token}} must be of the same data type",T2010:"The expressions either side of operator {{token}} must evaluate to numeric or string values",T2011:"The insert/update clause of the transform expression must evaluate to an object: {{value}}",T2012:"The delete clause of the transform expression must evaluate to a string or array of strings: {{value}}",T2013:"The transform expression clones the input object using the $clone() function. This has been overridden in the current scope by a non-function.",D2014:"The size of the sequence allocated by the range operator (..) must not exceed 1e7. Attempted to allocate {{value}}.",D2015:"The maximum sequence length of {{value}} was exceeded.",D3001:"Attempting to invoke string function on Infinity or NaN",D3010:"Second argument of replace function cannot be an empty string",D3011:"Fourth argument of replace function must evaluate to a positive number",D3012:"Attempted to replace a matched string with a non-string value",D3020:"Third argument of split function must evaluate to a positive number",D3030:"Unable to cast value to a number: {{value}}",D3040:"Third argument of match function must evaluate to a positive number",D3050:"The second argument of reduce function must be a function with at least two arguments",D3060:"The sqrt function cannot be applied to a negative number: {{value}}",D3061:"The power function has resulted in a value that cannot be represented as a JSON number: base={{value}}, exponent={{exp}}",D3070:"The single argument form of the sort function can only be applied to an array of strings or an array of numbers. Use the second argument to specify a comparison function",D3080:"The picture string must only contain a maximum of two sub-pictures",D3081:"The sub-picture must not contain more than one instance of the 'decimal-separator' character",D3082:"The sub-picture must not contain more than one instance of the 'percent' character",D3083:"The sub-picture must not contain more than one instance of the 'per-mille' character",D3084:"The sub-picture must not contain both a 'percent' and a 'per-mille' character",D3085:"The mantissa part of a sub-picture must contain at least one character that is either an 'optional digit character' or a member of the 'decimal digit family'",D3086:"The sub-picture must not contain a passive character that is preceded by an active character and that is followed by another active character",D3087:"The sub-picture must not contain a 'grouping-separator' character that appears adjacent to a 'decimal-separator' character",D3088:"The sub-picture must not contain a 'grouping-separator' at the end of the integer part",D3089:"The sub-picture must not contain two adjacent instances of the 'grouping-separator' character",D3090:"The integer part of the sub-picture must not contain a member of the 'decimal digit family' that is followed by an instance of the 'optional digit character'",D3091:"The fractional part of the sub-picture must not contain an instance of the 'optional digit character' that is followed by a member of the 'decimal digit family'",D3092:"A sub-picture that contains a 'percent' or 'per-mille' character must not contain a character treated as an 'exponent-separator'",D3093:"The exponent part of the sub-picture must comprise only of one or more characters that are members of the 'decimal digit family'",D3100:"The radix of the formatBase function must be between 2 and 36. It was given {{value}}",D3110:"The argument of the toMillis function must be an ISO 8601 formatted timestamp. Given {{value}}",D3120:"Syntax error in expression passed to function eval: {{value}}",D3121:"Dynamic error evaluating the expression passed to function eval: {{value}}",D3130:"Formatting or parsing an integer as a sequence starting with {{value}} is not supported by this implementation",D3131:"In a decimal digit pattern, all digits must be from the same decimal group",D3132:"Unknown component specifier {{value}} in date/time picture string",D3133:"The 'name' modifier can only be applied to months and days in the date/time picture string, not {{value}}",D3134:"The timezone integer format specifier cannot have more than four digits",D3135:"No matching closing bracket ']' in date/time picture string",D3136:"The date/time picture string is missing specifiers required to parse the timestamp",D3137:"{{{message}}}",D3138:"The $single() function expected exactly 1 matching result. Instead it matched more.",D3139:"The $single() function expected exactly 1 matching result. Instead it matched 0.",D3140:"Malformed URL passed to ${{{functionName}}}(): {{value}}",D3141:"{{{message}}}"};function us(u){var v=li[u.code];if(typeof v<"u"){var w=v.replace(/\{\{\{([^}]+)}}}/g,function(){return u[arguments[1]]});w=w.replace(/\{\{([^}]+)}}/g,function(){return JSON.stringify(u[arguments[1]])}),u.message=w}}function ar(u,v){var w,a;try{w=d(u,v&&v.recover),a=w.errors,delete w.errors}catch(S){throw us(S),S}var l=Xt(C),p=new Date;return l.bind("now",Z(function(S,P){return n.fromMillis(p.getTime(),S,P)},"<s?s?:s>")),l.bind("millis",Z(function(){return p.getTime()},"<:n>")),{evaluate:async function(S,P,L){if(typeof a<"u"){var B={code:"S0500",position:0};throw us(B),B}const K=Xt(l);for(const oe of c.keys(P))K.bind(oe,P[oe]);if(K.bind("$",S),p=new Date,K.timestamp=p,K.options=v,K.createSequence=function(){var oe=[];return v&&v.sequence&&(oe.push=function(...Fe){if(oe.length+Fe.length>v.sequence)throw{code:"D2015",stack:new Error().stack,value:v.sequence};return Array.prototype.push.apply(oe,Fe)}),oe.sequence=!0,arguments.length===1&&oe.push(arguments[0]),oe},Array.isArray(S)&&!E(S)&&(S=K.createSequence(S),S.outerWrapper=!0),v&&(v.timeout||v.stack)){const oe=Date.now();K.guardrails=function(){if(v.stack>0&&K.depth>v.stack)throw{code:"D1011",value:v.stack,stack:new Error().stack};if(v.timeout>0&&Date.now()-oe>v.timeout)throw{code:"D1012",value:v.timeout,stack:new Error().stack}}}else K.guardrails=function(){};K.base=K,K.depth=0,v&&v.RegexEngine?K.RegexEngine=v.RegexEngine:K.RegexEngine=RegExp;var we;try{return we=await $(w,S,K),typeof L=="function"&&L(null,we),we}catch(oe){throw us(oe),oe}},assign:function(S,P){l.bind(S,P)},registerFunction:function(S,P,L){var B=Z(P,L);l.bind(S,B)},ast:function(){return w},errors:function(){return a}}}return ar.parser=d,ar})();i.exports=k},{"./datetime":1,"./functions":2,"./parser":4,"./signature":5,"./utils":6}],4:[function(s,i,r){var n=s("./signature");const o=(()=>{var c={".":75,"[":80,"]":0,"{":70,"}":0,"(":80,")":0,",":0,"@":80,"#":80,";":80,":":80,"?":20,"+":50,"-":50,"*":60,"/":60,"%":60,"|":20,"=":40,"<":40,">":40,"^":40,"**":60,"..":20,":=":10,"!=":40,"<=":40,">=":40,"~>":40,"?:":40,"??":40,and:30,or:25,in:40,"&":50,"!":0,"~":0},d={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
73
|
-
`,r:"\r",t:" "},
|
|
74
|
-
\r\v`.indexOf(
|
|
75
|
-
\r\v`.indexOf(pe)>-1||Object.prototype.hasOwnProperty.call(c,pe)){if(g.charAt(f)==="$")return ie=g.substring(f+1,le),f=le,E("variable",ie);switch(ie=g.substring(f,le),f=le,ie){case"or":case"in":case"and":return E("operator",ie);case"true":return E("value",!0);case"false":return E("value",!1);case"null":return E("value",null);default:return f===A&&ie===""?null:E("name",ie)}}else le++};return I},k=function(g,f){var A,E,O=Object.create(null),I=[],U=function(){var b=[];A.id!=="(end)"&&b.push({type:A.type,value:A.value,position:A.position});for(var _=E();_!==null;)b.push(_),_=E();return b},x={nud:function(){var b={code:"S0211",token:this.value,position:this.position};if(f)return b.remaining=U(),b.type="error",I.push(b),b;throw b.stack=new Error().stack,b}},y=function(b,_){var Q=O[b];return _=_||0,Q?_>=Q.lbp&&(Q.lbp=_):(Q=Object.create(x),Q.id=Q.value=b,Q.lbp=_,O[b]=Q),Q},N=function(b){if(f){b.remaining=U(),I.push(b);var _=O["(error)"];return A=Object.create(_),A.error=b,A.type="(error)",A}else throw b.stack=new Error().stack,b},C=function(b,_){if(b&&A.id!==b){var Q;A.id==="(end)"?Q="S0203":Q="S0202";var ve={code:Q,position:A.position,token:A.value,value:b};return N(ve)}var _e=E(_);if(_e===null)return A=O["(end)"],A.position=g.length,A;var De=_e.value,T=_e.type,M;switch(T){case"name":case"variable":M=O["(name)"];break;case"operator":if(M=O[De],!M)return N({code:"S0204",stack:new Error().stack,position:_e.position,token:De});break;case"string":case"number":case"value":M=O["(literal)"];break;case"regex":T="regex",M=O["(regex)"];break;default:return N({code:"S0205",stack:new Error().stack,position:_e.position,token:De})}return A=Object.create(M),A.value=De,A.type=T,A.position=_e.position,A},$=function(b){var _,Q=A;for(C(null,!0),_=Q.nud();b<A.lbp;)Q=A,C(),_=Q.led(_);return _},G=function(b){var _=y(b,0);_.nud=function(){return this}},z=function(b,_,Q){var ve=_||c[b],_e=y(b,ve);return _e.led=Q||function(De){return this.lhs=De,this.rhs=$(ve),this.type="binary",this},_e},ne=function(b,_,Q){var ve=y(b,_);return ve.led=Q,ve},se=function(b,_){var Q=y(b);return Q.nud=_||function(){return this.expression=$(70),this.type="unary",this},Q};G("(end)"),G("(name)"),G("(literal)"),G("(regex)"),y(":"),y(";"),y(","),y(")"),y("]"),y("}"),y(".."),z("."),z("+"),z("-"),z("*"),z("/"),z("%"),z("="),z("<"),z(">"),z("!="),z("<="),z(">="),z("&"),z("and"),z("or"),z("in"),G("and"),G("or"),G("in"),se("-"),z("~>"),z("??",c["??"],function(b){return this.type="condition",this.condition={type:"function",value:"(",procedure:{type:"variable",value:"exists"},arguments:[JSON.parse(JSON.stringify(b))]},this.then=b,this.else=$(0),this}),ne("(error)",10,function(b){return this.lhs=b,this.error=A.error,this.remaining=U(),this.type="error",this}),se("*",function(){return this.type="wildcard",this}),se("**",function(){return this.type="descendant",this}),se("%",function(){return this.type="parent",this}),z("(",c["("],function(b){if(this.procedure=b,this.type="function",this.arguments=[],A.id!==")")for(;A.type==="operator"&&A.id==="?"?(this.type="partial",this.arguments.push(A),C("?")):this.arguments.push($(0)),A.id===",";)C(",");if(C(")",!0),b.type==="name"&&(b.value==="function"||b.value==="λ")){if(this.arguments.forEach(function(De,T){if(De.type!=="variable")return N({code:"S0208",stack:new Error().stack,position:De.position,token:De.value,value:T+1})}),this.type="lambda",A.id==="<"){for(var _=A.position,Q=1,ve="<";Q>0&&A.id!=="{"&&A.id!=="(end)";){var _e=C();_e.id===">"?Q--:_e.id==="<"&&Q++,ve+=_e.value}C(">");try{this.signature=n(ve)}catch(De){return De.position=_+De.offset,N(De)}}C("{"),this.body=$(0),C("}")}return this}),se("(",function(){for(var b=[];A.id!==")"&&(b.push($(0)),A.id===";");)C(";");return C(")",!0),this.type="block",this.expressions=b,this}),se("[",function(){var b=[];if(A.id!=="]")for(;;){var _=$(0);if(A.id===".."){var Q={type:"binary",value:"..",position:A.position,lhs:_};C(".."),Q.rhs=$(0),_=Q}if(b.push(_),A.id!==",")break;C(",")}return C("]",!0),this.expressions=b,this.type="unary",this}),z("[",c["["],function(b){if(A.id==="]"){for(var _=b;_&&_.type==="binary"&&_.value==="[";)_=_.lhs;return _.keepArray=!0,C("]"),b}else return this.lhs=b,this.rhs=$(c["]"]),this.type="binary",C("]",!0),this}),z("^",c["^"],function(b){C("(");for(var _=[];;){var Q={descending:!1};if(A.id==="<"?C("<"):A.id===">"&&(Q.descending=!0,C(">")),Q.expression=$(0),_.push(Q),A.id!==",")break;C(",")}return C(")"),this.lhs=b,this.rhs=_,this.type="binary",this});var ie=function(b){var _=[];if(A.id!=="}")for(;;){var Q=$(0);C(":");var ve=$(0);if(_.push([Q,ve]),A.id!==",")break;C(",")}return C("}",!0),typeof b>"u"?(this.lhs=_,this.type="unary"):(this.lhs=b,this.rhs=_,this.type="binary"),this};se("{",ie),z("{",c["{"],ie),ne(":=",c[":="],function(b){return b.type!=="variable"?N({code:"S0212",stack:new Error().stack,position:b.position,token:b.value}):(this.lhs=b,this.rhs=$(c[":="]-1),this.type="binary",this)}),z("@",c["@"],function(b){return this.lhs=b,this.rhs=$(c["@"]),this.rhs.type!=="variable"?N({code:"S0214",stack:new Error().stack,position:this.rhs.position,token:"@"}):(this.type="binary",this)}),z("#",c["#"],function(b){return this.lhs=b,this.rhs=$(c["#"]),this.rhs.type!=="variable"?N({code:"S0214",stack:new Error().stack,position:this.rhs.position,token:"#"}):(this.type="binary",this)}),z("?",c["?"],function(b){return this.type="condition",this.condition=b,this.then=$(0),A.id===":"&&(C(":"),this.else=$(0)),this}),z("?:",c["?:"],function(b){return this.type="condition",this.condition=JSON.parse(JSON.stringify(b)),this.then=b,this.else=$(0),this}),se("|",function(){return this.type="transform",this.pattern=$(0),C("|"),this.update=$(0),A.id===","&&(C(","),this.delete=$(0)),C("|"),this});var q=function(b){var _;if(b.type==="function"&&!b.predicate){var Q={type:"lambda",thunk:!0,arguments:[],position:b.position};Q.body=b,_=Q}else if(b.type==="condition")b.then=q(b.then),typeof b.else<"u"&&(b.else=q(b.else)),_=b;else if(b.type==="block"){var ve=b.expressions.length;ve>0&&(b.expressions[ve-1]=q(b.expressions[ve-1])),_=b}else _=b;return _},le=0,pe=0,Ue=[],he=function(b,_){switch(b.type){case"name":case"wildcard":_.level--,_.level===0&&(typeof b.ancestor>"u"||(Ue[_.index].slot.label=b.ancestor.label),b.ancestor=_,b.tuple=!0);break;case"parent":_.level++;break;case"block":b.expressions.length>0&&(b.tuple=!0,_=he(b.expressions[b.expressions.length-1],_));break;case"path":b.tuple=!0;var Q=b.steps.length-1;for(_=he(b.steps[Q--],_);_.level>0&&Q>=0;)_=he(b.steps[Q--],_);break;default:throw{code:"S0217",token:b.type,position:b.position}}return _},be=function(b,_){if(typeof _.seekingParent<"u"||_.type==="parent"){var Q=typeof _.seekingParent<"u"?_.seekingParent:[];_.type==="parent"&&Q.push(_.slot),typeof b.seekingParent>"u"?b.seekingParent=Q:Array.prototype.push.apply(b.seekingParent,Q)}},ke=function(b){var _=b.steps.length-1,Q=b.steps[_],ve=typeof Q.seekingParent<"u"?Q.seekingParent:[];Q.type==="parent"&&ve.push(Q.slot);for(var _e=0;_e<ve.length;_e++){var De=ve[_e];for(_=b.steps.length-2;De.level>0;){if(_<0){typeof b.seekingParent>"u"?b.seekingParent=[De]:b.seekingParent.push(De);break}for(var T=b.steps[_--];_>=0&&T.focus&&b.steps[_].focus;)T=b.steps[_--];De=he(T,De)}}},ce=function(b){var _;switch(b.type){case"binary":switch(b.value){case".":var Q=ce(b.lhs);Q.type==="path"?_=Q:_={type:"path",steps:[Q]},Q.type==="parent"&&(_.seekingParent=[Q.slot]);var ve=ce(b.rhs);ve.type==="path"?Array.prototype.push.apply(_.steps,ve.steps):(typeof ve.predicate<"u"&&(ve.stages=ve.predicate,delete ve.predicate),_.steps.push(ve)),_.steps.filter(function(Y){if(Y.type==="number"||Y.type==="value")throw{code:"S0213",stack:new Error().stack,position:Y.position,value:Y.value};return Y.type==="string"}).forEach(function(Y){Y.type="name"}),_.steps.filter(function(Y){return Y.keepArray===!0}).length>0&&(_.keepSingletonArray=!0);var _e=_.steps[0];_e.type==="unary"&&_e.value==="["&&(_e.consarray=!0);var De=_.steps[_.steps.length-1];De.type==="unary"&&De.value==="["&&(De.consarray=!0),ke(_);break;case"[":_=ce(b.lhs);var T=_,M="predicate";if(_.type==="path"&&(T=_.steps[_.steps.length-1],M="stages"),typeof T.group<"u")throw{code:"S0209",stack:new Error().stack,position:b.position};typeof T[M]>"u"&&(T[M]=[]);var D=ce(b.rhs);typeof D.seekingParent<"u"&&(D.seekingParent.forEach(Y=>{Y.level===1?he(T,Y):Y.level--}),be(T,D)),T[M].push({type:"filter",expr:D,position:b.position});break;case"{":if(_=ce(b.lhs),typeof _.group<"u")throw{code:"S0210",stack:new Error().stack,position:b.position};_.group={lhs:b.rhs.map(function(Y){return[ce(Y[0]),ce(Y[1])]}),position:b.position};break;case"^":_=ce(b.lhs),_.type!=="path"&&(_={type:"path",steps:[_]});var j={type:"sort",position:b.position};j.terms=b.rhs.map(function(Y){var ae=ce(Y.expression);return be(j,ae),{descending:Y.descending,expression:ae}}),_.steps.push(j),ke(_);break;case":=":_={type:"bind",value:b.value,position:b.position},_.lhs=ce(b.lhs),_.rhs=ce(b.rhs),be(_,_.rhs);break;case"@":if(_=ce(b.lhs),T=_,_.type==="path"&&(T=_.steps[_.steps.length-1]),typeof T.stages<"u"||typeof T.predicate<"u")throw{code:"S0215",stack:new Error().stack,position:b.position};if(T.type==="sort")throw{code:"S0216",stack:new Error().stack,position:b.position};b.keepArray&&(T.keepArray=!0),T.focus=b.rhs.value,T.tuple=!0;break;case"#":_=ce(b.lhs),T=_,_.type==="path"?T=_.steps[_.steps.length-1]:(_={type:"path",steps:[_]},typeof T.predicate<"u"&&(T.stages=T.predicate,delete T.predicate)),typeof T.stages>"u"?T.index=b.rhs.value:T.stages.push({type:"index",value:b.rhs.value,position:b.position}),T.tuple=!0;break;case"~>":_={type:"apply",value:b.value,position:b.position},_.lhs=ce(b.lhs),_.rhs=ce(b.rhs),_.keepArray=_.lhs.keepArray||_.rhs.keepArray;break;default:_={type:b.type,value:b.value,position:b.position},_.lhs=ce(b.lhs),_.rhs=ce(b.rhs),be(_,_.lhs),be(_,_.rhs)}break;case"unary":_={type:b.type,value:b.value,position:b.position},b.value==="["?_.expressions=b.expressions.map(function(Y){var ae=ce(Y);return be(_,ae),ae}):b.value==="{"?_.lhs=b.lhs.map(function(Y){var ae=ce(Y[0]);be(_,ae);var Pe=ce(Y[1]);return be(_,Pe),[ae,Pe]}):(_.expression=ce(b.expression),b.value==="-"&&_.expression.type==="number"?(_=_.expression,_.value=-_.value):be(_,_.expression));break;case"function":case"partial":_={type:b.type,name:b.name,value:b.value,position:b.position},_.arguments=b.arguments.map(function(Y){var ae=ce(Y);return be(_,ae),ae}),_.procedure=ce(b.procedure);break;case"lambda":_={type:b.type,arguments:b.arguments,signature:b.signature,position:b.position};var V=ce(b.body);_.body=q(V);break;case"condition":_={type:b.type,position:b.position},_.condition=ce(b.condition),be(_,_.condition),_.then=ce(b.then),be(_,_.then),typeof b.else<"u"&&(_.else=ce(b.else),be(_,_.else));break;case"transform":_={type:b.type,position:b.position},_.pattern=ce(b.pattern),_.update=ce(b.update),typeof b.delete<"u"&&(_.delete=ce(b.delete));break;case"block":_={type:b.type,position:b.position},_.expressions=b.expressions.map(function(Y){var ae=ce(Y);return be(_,ae),(ae.consarray||ae.type==="path"&&ae.steps[0].consarray)&&(_.consarray=!0),ae});break;case"name":_={type:"path",steps:[b]},b.keepArray&&(_.keepSingletonArray=!0);break;case"parent":_={type:"parent",slot:{label:"!"+le++,level:1,index:pe++}},Ue.push(_);break;case"string":case"number":case"value":case"wildcard":case"descendant":case"variable":case"regex":_=b;break;case"operator":if(b.value==="and"||b.value==="or"||b.value==="in")b.type="name",_=ce(b);else if(b.value==="?")_=b;else throw{code:"S0201",stack:new Error().stack,position:b.position,token:b.value};break;case"error":_=b,b.lhs&&(_=ce(b.lhs));break;default:var H="S0206";b.id==="(end)"&&(H="S0207");var F={code:H,position:b.position,token:b.value};if(f)return I.push(F),{type:"error",error:F};throw F.stack=new Error().stack,F}return b.keepArray&&(_.keepArray=!0),_};E=m(g),C();var W=$(0);if(A.id!=="(end)"){var xe={code:"S0201",position:A.position,token:A.value};N(xe)}if(W=ce(W),W.type==="parent"||typeof W.seekingParent<"u")throw{code:"S0217",token:W.type,position:W.position};return I.length>0&&(W.errors=I),W};return k})();i.exports=o},{"./signature":5}],5:[function(s,i,r){var n=s("./utils");const o=(()=>{var c={a:"arrays",b:"booleans",f:"functions",n:"numbers",o:"objects",s:"strings"};function d(m){for(var k=1,g=[],f=Object.create(null),A=f;k<m.length;){var E=m.charAt(k);if(E===":")break;var O=function(){g.push(f),A=f,f=Object.create(null)},I=function(z,ne,se,ie){for(var q=1,le=ne;le<z.length;)if(le++,E=z.charAt(le),E===ie){if(q--,q===0)break}else E===se&&q++;return le};switch(E){case"s":case"n":case"b":case"l":case"o":f.regex="["+E+"m]",f.type=E,O();break;case"a":f.regex="[asnblfom]",f.type=E,f.array=!0,O();break;case"f":f.regex="f",f.type=E,O();break;case"j":f.regex="[asnblom]",f.type=E,O();break;case"x":f.regex="[asnblfom]",f.type=E,O();break;case"-":A.context=!0,A.contextRegex=new RegExp(A.regex),A.regex+="?";break;case"?":case"+":A.regex+=E;break;case"(":var U=I(m,k,"(",")"),x=m.substring(k+1,U);if(x.indexOf("<")===-1)f.regex="["+x+"m]";else throw{code:"S0402",stack:new Error().stack,value:x,offset:k};f.type="("+x+")",k=U,O();break;case"<":if(A.type==="a"||A.type==="f"){var y=I(m,k,"<",">");A.subtype=m.substring(k+1,y),k=y}else throw{code:"S0401",stack:new Error().stack,value:A.type,offset:k};break}k++}var N="^"+g.map(function(z){return"("+z.regex+")"}).join("")+"$",C=new RegExp(N),$=function(z){var ne;if(n.isFunction(z))ne="f";else{var se=typeof z;switch(se){case"string":ne="s";break;case"number":ne="n";break;case"boolean":ne="b";break;case"object":z===null?ne="l":Array.isArray(z)?ne="a":ne="o";break;case"undefined":default:ne="m"}}return ne},G=function(z,ne){for(var se="^",ie=0,q=0;q<g.length;q++){se+=g[q].regex;var le=ne.match(se);if(le===null)throw{code:"T0410",stack:new Error().stack,value:z[ie],index:ie+1};ie=le[0].length}throw{code:"T0410",stack:new Error().stack,value:z[ie],index:ie+1}};return{definition:m,validate:function(z,ne){var se="";z.forEach(function(pe){se+=$(pe)});var ie=C.exec(se);if(ie){var q=[],le=0;return g.forEach(function(pe,Ue){var he=z[le],be=ie[Ue+1];if(be==="")if(pe.context&&pe.contextRegex){var ke=$(ne);if(pe.contextRegex.test(ke))q.push(ne);else throw{code:"T0411",stack:new Error().stack,value:ne,index:le+1}}else q.push(he),le++;else be.split("").forEach(function(ce){if(he=z[le],pe.type==="a"){if(ce==="m")he=void 0;else{var W=!0;if(typeof pe.subtype<"u"){if(ce!=="a"&&be!==pe.subtype)W=!1;else if(ce==="a"&&he.length>0){var xe=$(he[0]);if(xe!==pe.subtype.charAt(0))W=!1;else{var b=he.filter(function(_){return $(_)!==xe});W=b.length===0}}}if(!W)throw{code:"T0412",stack:new Error().stack,value:he,index:le+1,type:c[pe.subtype]};ce!=="a"&&(he=[he])}q.push(he),le++}else q.push(he),le++})}),q}G(z,se)}}}return d})();i.exports=o},{"./utils":6}],6:[function(s,i,r){const n=(()=>{function o(y){var N=!1;if(typeof y=="number"&&(N=!isNaN(y),N&&!isFinite(y)))throw{code:"D1001",value:y,stack:new Error().stack};return N}function c(y){var N=!1;return Array.isArray(y)&&(N=y.filter(function(C){return typeof C!="string"}).length===0),N}function d(y){var N=!1;return Array.isArray(y)&&(N=y.filter(function(C){return!o(C)}).length===0),N}function m(y){return y.sequence===!0&&Array.isArray(y)}function k(y){return y&&(y._jsonata_function===!0||y._jsonata_lambda===!0)||typeof y=="function"}function g(y){var N=typeof y.arity=="number"?y.arity:typeof y.implementation=="function"?y.implementation.length:typeof y.length=="number"?y.length:y.arguments.length;return N}function f(y){return y&&y._jsonata_lambda===!0}var A=(typeof Symbol=="function"?Symbol:{}).iterator||"@@iterator";function E(y){return typeof y=="object"&&y!==null&&A in y&&"next"in y&&typeof y.next=="function"}function O(y,N){if(y===N)return!0;if(typeof y=="object"&&typeof N=="object"&&y!==null&&N!==null){if(Array.isArray(y)&&Array.isArray(N)){if(y.length!==N.length)return!1;for(var C=0;C<y.length;C++)if(!O(y[C],N[C]))return!1;return!0}var $=Object.getOwnPropertyNames(y),G=Object.getOwnPropertyNames(N);if($.length!==G.length)return!1;for($=$.sort(),G=G.sort(),C=0;C<$.length;C++)if($[C]!==G[C])return!1;for(C=0;C<$.length;C++){var z=$[C];if(!O(y[z],N[z]))return!1}return!0}return!1}function I(y){return typeof y=="object"&&y!==null&&"then"in y&&typeof y.then=="function"}function U(y){var N=[];for(let C of y)N.push(C);return N}function x(y){return typeof y=="object"&&y!==null?Object.keys(y):[]}return{isNumeric:o,isArrayOfStrings:c,isArrayOfNumbers:d,isSequence:m,isFunction:k,isLambda:f,isIterable:E,getFunctionArity:g,isDeepEqual:O,stringToArray:U,isPromise:I,keys:x}})();i.exports=n},{}]},{},[3])(3)})})(kn)),kn.exports}var Oc=Ec();const Tc=Yo(Oc);function Lc(t){t.registerFunction("ucFirst",e=>Tr.ucFirst(String(e??""))),t.registerFunction("currency",(e,s="fr-FR",i="EUR")=>{const r=Number(e);return Number.isNaN(r)?String(e??""):new Intl.NumberFormat(String(s),{style:"currency",currency:String(i)}).format(r)}),t.registerFunction("percent",(e,s="fr-FR",i=0)=>{const r=Number(e);return Number.isNaN(r)?String(e??""):new Intl.NumberFormat(String(s),{style:"percent",maximumFractionDigits:Number(i)||0}).format(r)}),t.registerFunction("date",(e,s="fr-FR",i)=>{const r=e instanceof Date?e:new Date(String(e));if(Number.isNaN(r.getTime()))return String(e??"");let n={dateStyle:"medium"};if(i)try{n=JSON.parse(String(i))}catch{}return new Intl.DateTimeFormat(String(s),n).format(r)}),t.registerFunction("toChart",(e,s="label",i="value",r="")=>{const n=Array.isArray(e)?e:[],o=[],c=[];for(const d of n){if(!d||typeof d!="object")continue;const m=d;o.push(String(m[String(s)]??"")),c.push(Number(m[String(i)]??0))}return{labels:o,datasets:[{label:String(r||""),data:c}]}})}const Jo=new Map,Xo=8e3;function Mc(t){if(!t||!t.trim())throw new Error("[sonic-jsonata] expression vide.");if(t.length>Xo)throw new Error(`[sonic-jsonata] expression trop longue (${t.length} > ${Xo}).`);const e=Jo.get(t);if(e)return e;try{const s=Tc(t);return Lc(s),Jo.set(t,s),s}catch(s){const i=s instanceof Error?s.message:typeof s=="object"&&s&&"message"in s?String(s.message):String(s);throw new Error(`[sonic-jsonata] Syntaxe JSONata invalide : ${i}`)}}function Nc(t,e){if(!e||typeof e!="object")return;const s=e.type;if(typeof s=="string"&&!(s==="array"&&Array.isArray(t)||s==="object"&&t!==null&&typeof t=="object"&&!Array.isArray(t)||s==="string"&&typeof t=="string"||s==="number"&&typeof t=="number"||s==="boolean"&&typeof t=="boolean"||s==="null"&&t===null))throw new Error(`[sonic-jsonata] outputSchema : type attendu "${s}", reçu ${Ic(t)}.`);if(Array.isArray(e.required)&&t&&typeof t=="object"){const i=t;for(const r of e.required)if(typeof r=="string"&&!(r in i))throw new Error(`[sonic-jsonata] outputSchema : propriété requise manquante "${r}".`)}}function Ic(t){return t===null?"null":Array.isArray(t)?"array":typeof t}const Fc=150,Qo=10,jc=200,Rc=16,ea=new WeakMap;let ta=!1;function fs(){return typeof navigator>"u"?!1:/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function mr(t){if(t===window)return{x:window.scrollX,y:window.scrollY};const e=t;return{x:e.scrollLeft,y:e.scrollTop}}function zc(t,e,s){if(t===window){window.scrollTo(e,s);return}const i=t;typeof i.scrollTo=="function"?i.scrollTo(e,s):(i.scrollLeft=e,i.scrollTop=s)}function Uc(t){if(t===window){const s=document.documentElement;return Math.max(0,s.scrollHeight-window.innerHeight)}const e=t;return Math.max(0,e.scrollHeight-e.clientHeight)}function Gs(t){let e=ea.get(t);if(!e){const s=mr(t);e={x:s.x,y:s.y,restoring:!1,watching:!1,userEngaged:!1,raf:0,stickyFrames:0},ea.set(t,e)}return e}function Li(t){Gs(t).userEngaged=!0}function Mi(t){const e=Gs(t);clearTimeout(e.settleTimer),e.settleTimer=setTimeout(()=>{e.userEngaged=!1,e.settleTimer=void 0},Fc)}function sa(t,e){return e-t>=jc}function vr(t){if(!fs())return;const e=Gs(t);if(e.restoring)return;const s=mr(t);if(sa(s.y,e.y)){Dn(t);return}e.x=s.x,e.y=s.y}function $n(t){if(!fs())return;const e=Gs(t),s=Uc(t),i=e.x,r=s>0?Math.min(e.y,s):e.y,{x:n,y:o}=mr(t);if(!(Math.abs(i-n)<=Qo&&Math.abs(r-o)<=Qo)){e.restoring=!0;try{zc(t,i,r)}finally{requestAnimationFrame(()=>{e.restoring=!1})}}}function qc(t,e={x:0,y:0}){if(!fs())return;const s=Gs(t);if(e==="current"){const i=mr(t);s.x=i.x,s.y=i.y;return}s.x=e.x??0,s.y=e.y??0}function Dn(t){const e=Gs(t);if(e.stickyFrames=Rc,e.raf)return;const s=()=>{e.raf=0,$n(t),e.stickyFrames>0&&(e.stickyFrames--,e.raf=requestAnimationFrame(s))};e.raf=requestAnimationFrame(s)}function En(t){Dn(t)}function Zs(t){if(!fs())return;const e=Gs(t);if(e.watching)return;e.watching=!0;const s=t===window?window:t,i=()=>{if(e.restoring)return;const{y:E}=mr(t);if(sa(E,e.y)){Dn(t);return}if(e.userEngaged){vr(t),Mi(t);return}vr(t)},r=E=>ra(E)===t,n=E=>{r(E)&&(vr(t),Li(t))},o=E=>{r(E)&&Mi(t)},c=E=>{r(E)&&(vr(t),Li(t),Mi(t))};s.addEventListener("scroll",i,{passive:!0}),s.addEventListener("touchstart",n,{passive:!0}),s.addEventListener("touchend",o,{passive:!0}),s.addEventListener("touchcancel",o,{passive:!0}),s.addEventListener("wheel",c,{passive:!0}),s.addEventListener("pointerdown",n,{passive:!0}),s.addEventListener("pointerup",o,{passive:!0}),s.addEventListener("pointercancel",o,{passive:!0});const d=mr(t);if(e.x=d.x,e.y=d.y,t===window){const E=new ResizeObserver(()=>En(window));E.observe(document.documentElement),e.resizeObserver=E;return}const m=t,k=new ResizeObserver(()=>En(m));k.observe(m);for(const E of Array.from(m.children))k.observe(E);e.resizeObserver=k;const g=()=>En(m),f=new MutationObserver(E=>{for(const O of E)if(O.type==="childList")for(const I of Array.from(O.addedNodes))I instanceof Element&&k.observe(I);g()});f.observe(m,{childList:!0,subtree:!0,characterData:!0});const A=m.getRootNode();A instanceof ShadowRoot&&A.host&&f.observe(A.host,{childList:!0,subtree:!0,characterData:!0}),e.mutationObserver=f}function ra(t){for(const e of t.composedPath())if(!(e===window||e===document)&&e instanceof HTMLElement&&ia(e))return e;return window}function ia(t){if(!(t instanceof HTMLElement)||t===document.documentElement||t===document.body)return!1;const e=getComputedStyle(t).overflowY;return e==="auto"||e==="scroll"||e==="overlay"}function On(t){for(const s of t.composedPath())s===window||s===document||s instanceof HTMLElement&&ia(s)&&Zs(s);const e=ra(t);Zs(e),t.type==="wheel"?(vr(e),Li(e),Mi(e)):(t.type==="touchstart"||t.type==="pointerdown")&&(vr(e),Li(e))}function Ni(t){t instanceof Element&&t.classList?.contains("custom-scroll")&&Zs(t),t.querySelectorAll?.(".custom-scroll").forEach(e=>{e instanceof HTMLElement&&Zs(e)})}function Tn(t){Ni(t),new MutationObserver(s=>{for(const i of s)for(const r of Array.from(i.addedNodes))r instanceof Element&&Ni(r)}).observe(t,{childList:!0,subtree:!0})}function Ln(t){t.querySelectorAll?.("*").forEach(e=>{e.shadowRoot&&(Tn(e.shadowRoot),Ln(e.shadowRoot))})}function Vc(){const t=Element.prototype;if(t.__safariScrollGuardPatched)return;t.__safariScrollGuardPatched=!0;const e=t.attachShadow;t.attachShadow=function(i){const r=e.call(this,i);return Tn(r),r}}function na(){if(typeof window>"u"||ta||(ta=!0,!fs()))return;Zs(window),Vc();const t={capture:!0,passive:!0};window.addEventListener("wheel",On,t),window.addEventListener("touchstart",On,t),window.addEventListener("pointerdown",On,t);const e=()=>{Ni(document),Ln(document)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e,{once:!0}):e(),new MutationObserver(i=>{for(const r of i)for(const n of Array.from(r.addedNodes))n instanceof Element&&(Ni(n),n.shadowRoot&&Tn(n.shadowRoot),Ln(n))}).observe(document.documentElement,{childList:!0,subtree:!0})}const Bc=bl,Hc=bc,Wc=yi,Kc=Tr,gs=Ke,Yc=ct,Br=at,Gc=Ds,Zc=ps;na(),window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Bc,Arrays:Hc,DataBindObserver:Wc,Format:Kc,HTML:gs,LocationHandler:Yc,Objects:Br,PublisherManager:ye,api:Gc,URLPattern:Zc,Endpoint:$i,DataProviderKey:Ss};var Jc=Object.defineProperty,Xc=Object.getOwnPropertyDescriptor,Hr=(t,e,s,i)=>{for(var r=i>1?void 0:i?Xc(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(r=(i?o(e,s,r):o(r))||r);return i&&r&&Jc(e,s,r),r};const Mn=t=>{class e extends t{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null,this.updateAllChecked=()=>{const i=this.getAttribute("name"),r=this.getCheckAllPublisher(),n=this.getFormPublisher();if(r?.hasCheckAll.get()&&!this.checksAll()&&r&&n&&i){if(this.getFormPublisherValue()?.length)(this.checked===null||r.checkMode.get()=="noneChecked"||r.checkMode.get()==null)&&r.checkMode.set("someUnchecked");else{r.checkMode.set("noneChecked");return}const o=this.getFormPublisherValue(),c=r.values.get();if(c&&c.length){let d=c.length;for(const m of c)o.indexOf(m)==-1&&(d-=1);d==c.length&&r.checkMode.set("allChecked"),d==0&&r.checkMode.set("noneChecked")}c.indexOf(this.value)==-1&&this.unsetOnDisconnect()&&(this.checked=null)}},this.onChecksAllRequest=i=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),i=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),i=="noneChecked"&&(this.checked=null),i=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(i){if(this.value==i||(this.hasAttribute("value")&&!this.forceAutoFill&&(i=this.getAttribute("value")),this._value==i)||i==null||(this._value=i,!this.value))return;if(this.getFormPublisher()&&this.name){let n=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=n==i?!0:null),Array.isArray(n)||(n=[]),n.indexOf(i)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(i){if(this.setCheckedValue(i),this.checksAll()){const r=this.getCheckAllPublisher();r&&(this.checked===!0?r.checkMode.set("allChecked"):this.checked===null&&(r.checkMode.set("noneChecked"),this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){const i=this.shadowRoot?.querySelector("input");if(!i||i.checkValidity())return;const r=this.getFormPublisher();if(r){const n=this.getFormPublisherValue();if((this.unique||this.radio)&&n!==null&&n!==void 0&&n.toString().length>0)return;r.isFormValid=!1,i.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(i){this._checked!=i&&(this._checked=i,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const i=this.checked===!0?this.radio?!0:null:!0;this.checked=i;const r=new Event("change");this.dispatchEvent(r)}getValueForFormPublisher(){let i=this.getFormPublisherValue();if(this.radio)return this.checked===!0&&this.value!=null?this.value:i;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(i)||(i=[]);const r=i.slice(0),n=r.indexOf(this.value);return this.checked===!0&&n===-1&&!this.checksAll()&&r.push(this.value),this.checked===null&&n!==-1&&r.splice(n,1),r}setFormValueFromPublisher(i){if(this.unique||this.radio){this.checked=this.value==i?!0:null;return}Array.isArray(i)||(i=[]),!this.checksAll()&&(this.checked=i.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const i=this.formDataProvider,r=this.getAttribute("name");return!i||!r?null:ye.get(i+"/"+r+"/_available_values_")}unset(){this.checked=null}disconnectedCallback(){super.disconnectedCallback();const i=this.getCheckAllPublisher();if(i&&(i.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const r=i.values.get().slice(0),n=r.indexOf(this.value);n!=-1&&(r.splice(n,1),i.values.set(r))}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){if(super.connectedCallback(),this.getFormPublisher()&&this.name){const n=this.getFormPublisherValue();n&&Array.isArray(n)&&n.indexOf(this.value)!==-1&&(this.checked=!0)}const r=this.getCheckAllPublisher();r&&(r.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&r.hasCheckAll.set(!0),r.values.get()||r.values.set([]),this.checksAll()||r.values.set([...r.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return Hr([h()],e.prototype,"value",1),Hr([h()],e.prototype,"forceAutoFill",2),Hr([h({type:Boolean})],e.prototype,"unique",2),Hr([h({type:Boolean})],e.prototype,"radio",2),Hr([h()],e.prototype,"checked",1),e};/**
|
|
72
|
+
*/const Go="important",vc=" !"+Go,$t=$s(class extends fr{constructor(t){if(super(t),t.type!==Ys.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,s)=>{const r=t[s];return r==null?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:s}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const r of this.ft)e[r]==null&&(this.ft.delete(r),r.includes("-")?s.removeProperty(r):s[r]=null);for(const r in e){const i=e[r];if(i!=null){this.ft.add(r);const n=typeof i=="string"&&i.endsWith(vc);r.includes("-")||n?s.setProperty(r,n?i.slice(0,-11):i,n?Go:""):s[r]=i}}return Nt}});var yc=Object.defineProperty,wc=Object.getOwnPropertyDescriptor,ts=(t,e,s,r)=>{for(var i=r>1?void 0:r?wc(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&yc(e,s,i),i};const Ci=new Map,br=t=>{class e extends t{constructor(...r){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=!1,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=i=>{this.setValueFromPublisher(i)},this.onFormValueAssign=async i=>{this.setFormValueFromPublisher(i)},this.onFormDataInValidate=()=>{const i=this.getFormPublisher();i&&i.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(r){this.hasAttribute("name")&&!this.forceAutoFill&&(r=this.getAttribute("name")),this._name=r,this.requestUpdate()}validateFormElement(){}unsetOnDisconnect(){return this.hasAttribute("unsetOnDisconnect")}updateDataValue(){this.getAttribute("name")&&this.getFormPublisher()&&(this.setFormPublisherValue(this.getValueForFormPublisher()),this.setFormValueFromPublisher(this.getFormPublisherValue()))}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?be.get(this.formDataProvider):null}setFormPublisherValue(r){const i=this.getFormPublisher();i&&kt(i,this.name).set(r)}getFormPublisherValue(){const r=this.getFormPublisher();return r?kt(r,this.name).get():null}getValueForFormPublisher(){return this.value}setValueFromPublisher(r){this.value=r}setFormValueFromPublisher(r){this.value=r}get value(){return this._value}set value(r){r==null&&(r=""),at.isObject(r)&&Object.prototype.hasOwnProperty.call(r,"__value")&&r._value==null&&(r=""),this._value!=r&&(this._value=r,this.updateDataValue(),this.requestUpdate())}initPublisher(){let r=this.getFormPublisher();const i=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&kt(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&r&&kt(r,this._name).offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.publisher&&this._name&&kt(this.publisher,this._name).onAssign(this.onValueAssign),r=this.getFormPublisher(),this._name&&r&&(kt(r,this._name).onAssign(this.onFormValueAssign),r.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),i&&(this.value=i)}handleBlur(){this.touched=!0}handleChange(r){this.value=r.target.value;const i=new Event("change");this.dispatchEvent(i)}addKeyboardNavigation(){const r=this.getAncestorAttributeValue("data-keyboard-nav");if(!r)return;const i=r.split(" "),n=i[0];if(!n)return;for(const c of i){Ci.has(c)||Ci.set(c,[]);const h=Ci.get(c);h?.indexOf(this)==-1&&h.push(this)}const o=Ci.get(n);this.addEventListener("keydown",c=>{const h=c;if(!["ArrowDown","ArrowUp"].includes(h.key))return;const b="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",k=o?.filter(A=>{const E=A.shadowRoot?.querySelector(b);if(!E)return!1;const O=window.getComputedStyle(E);return O.display!=="none"&&O.display!==""&&O.pointerEvents!="none"&&O.visibility!=="hidden"&&E.getBoundingClientRect().width>0});let g=null;if(h.key=="ArrowDown"&&k){const A=k.indexOf(this);A==k.length-1?g=k[0]:g=k[A+1]}else if(h.key=="ArrowUp"&&k){const A=k.indexOf(this);A==0?g=k[k.length-1]:g=k[A-1]}const f=g?.shadowRoot?.querySelector(b);f&&f.focus&&(f.focus(),c.preventDefault(),c.stopPropagation())})}focus(){this.shadowRoot?.querySelector("[data-form-element], button")?.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}unset(){this.value=null}disconnectedCallback(){this.unsetOnDisconnect()&&this.unset(),super.disconnectedCallback(),this._name&&this.publisher&&kt(this.publisher,this._name).offAssign(this.onValueAssign);const r=this.getFormPublisher();this._name&&r&&(kt(r,this._name).offAssign(this.onFormValueAssign),r.offFormInvalidate(this.onFormDataInValidate))}}return ts([u({type:Boolean,reflect:!0})],e.prototype,"touched",2),ts([u({type:Boolean})],e.prototype,"error",2),ts([u({type:Boolean})],e.prototype,"autofocus",2),ts([u({type:Boolean})],e.prototype,"required",2),ts([u({type:Boolean})],e.prototype,"forceAutoFill",2),ts([u({type:Boolean,reflect:!0})],e.prototype,"disabled",2),ts([u({type:String,attribute:"data-aria-label"})],e.prototype,"ariaLabel",2),ts([u({type:String,attribute:"data-aria-labelledby"})],e.prototype,"ariaLabelledby",2),ts([u()],e.prototype,"name",1),ts([u()],e.prototype,"value",1),e};let _c=class cr{static areEqual(e,s){return e.length===s.length?e.every((r,i)=>r===s[i]):!1}static from2d(e){return{to1D:()=>{let s=[];return e.forEach(r=>s=s.concat(r)),this.from(s)}}}static from(e){return{get:()=>e||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:s=>{if(e.length<1)return!0;const r=(e[0]||{})[s];return e.every(i=>(i||{})[s]==r)}})})}),value:()=>({forKey:s=>cr.from(e.map(r=>r[s]))}),copy:()=>({fromKey:s=>({toKey:r=>{e.forEach(i=>{i[r]=Array.isArray(i[s])?[...i[s]]:typeof i[s]=="object"&&i[s]!=null?{...i[s]}:i[s]})}})})}),map:s=>cr.from(e.map(s)),filter:s=>cr.from(e.filter(s)),find:s=>e.find(s),some:s=>e.some(s),every:s=>e.every(s),group:()=>({byKey:s=>{const r=[],i=new Map;for(const n of e){const o=n[s];if(!i.has(o)){const c=r.length;i.set(o,c);const h={items:[]};h[s]=o,r.push(h)}r[i.get(o)].items.push(n)}return cr.from(r)}}),without:()=>({duplicates:()=>({forKey:s=>{const r=[...new Set(e.map(i=>i[s]))];return cr.from(r.map(i=>e.find(n=>n[s]==i)))}}),itemsIn:s=>({havingSameValue:()=>({forKey:r=>{const i=(n,o)=>c=>n[o]!=c[o];return cr.from(e.filter(n=>s.every(i(n,r))))}})})})}}};var Zo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var qr={exports:{}},Pc=qr.exports,Xo;function xc(){return Xo||(Xo=1,(function(t,e){var s=[].slice;(function(r,i){return e!==null?t.exports=i():r.UrlPattern=i()})(Pc,function(){var r,i,n,o,c,h,b,k,g,f,A,E,O,N,U;return g=function(P){return P.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},b=function(P,y){var I,C,$;for($=[],I=-1,C=P.length;++I<C;)$=$.concat(y(P[I]));return $},N=function(P,y){var I,C,$;for($="",I=-1,C=P.length;++I<C;)$+=y(P[I]);return $},O=function(P){return new RegExp(P.toString()+"|").exec("").length-1},A=function(P,y){var I,C,$,G,z;for(G={},I=-1,$=P.length;++I<$;)C=P[I],z=y[I],z!=null&&(G[C]!=null?(Array.isArray(G[C])||(G[C]=[G[C]]),G[C].push(z)):G[C]=z);return G},r={},r.Result=function(P,y){this.value=P,this.rest=y},r.Tagged=function(P,y){this.tag=P,this.value=y},r.tag=function(P,y){return function(I){var C,$;if(C=y(I),C!=null)return $=new r.Tagged(P,C.value),new r.Result($,C.rest)}},r.regex=function(P){return function(y){var I,C;if(I=P.exec(y),I!=null)return C=I[0],new r.Result(C,y.slice(C.length))}},r.sequence=function(){var P;return P=1<=arguments.length?s.call(arguments,0):[],function(y){var I,C,$,G,z,ne;for(I=-1,C=P.length,ne=[],G=y;++I<C;){if($=P[I],z=$(G),z==null)return;ne.push(z.value),G=z.rest}return new r.Result(ne,G)}},r.pick=function(){var P,y;return P=arguments[0],y=2<=arguments.length?s.call(arguments,1):[],function(I){var C,$;if($=r.sequence.apply(r,y)(I),$!=null)return C=$.value,$.value=C[P],$}},r.string=function(P){var y;return y=P.length,function(I){if(I.slice(0,y)===P)return new r.Result(P,I.slice(y))}},r.lazy=function(P){var y;return y=null,function(I){return y==null&&(y=P()),y(I)}},r.baseMany=function(P,y,I,C,$){var G,z,ne,se;for(ne=$,se=I?"":[];!(y!=null&&(G=y(ne),G!=null)||(z=P(ne),z==null));)I?se+=z.value:se.push(z.value),ne=z.rest;if(!(C&&se.length===0))return new r.Result(se,ne)},r.many1=function(P){return function(y){return r.baseMany(P,null,!1,!0,y)}},r.concatMany1Till=function(P,y){return function(I){return r.baseMany(P,y,!0,!0,I)}},r.firstChoice=function(){var P;return P=1<=arguments.length?s.call(arguments,0):[],function(y){var I,C,$,G;for(I=-1,C=P.length;++I<C;)if($=P[I],G=$(y),G!=null)return G}},E=function(P){var y;return y={},y.wildcard=r.tag("wildcard",r.string(P.wildcardChar)),y.optional=r.tag("optional",r.pick(1,r.string(P.optionalSegmentStartChar),r.lazy(function(){return y.pattern}),r.string(P.optionalSegmentEndChar))),y.name=r.regex(new RegExp("^["+P.segmentNameCharset+"]+")),y.named=r.tag("named",r.pick(1,r.string(P.segmentNameStartChar),r.lazy(function(){return y.name}))),y.escapedChar=r.pick(1,r.string(P.escapeChar),r.regex(/^./)),y.static=r.tag("static",r.concatMany1Till(r.firstChoice(r.lazy(function(){return y.escapedChar}),r.regex(/^./)),r.firstChoice(r.string(P.segmentNameStartChar),r.string(P.optionalSegmentStartChar),r.string(P.optionalSegmentEndChar),y.wildcard))),y.token=r.lazy(function(){return r.firstChoice(y.wildcard,y.optional,y.named,y.static)}),y.pattern=r.many1(r.lazy(function(){return y.token})),y},k={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},h=function(P,y){if(Array.isArray(P))return N(P,function(I){return h(I,y)});switch(P.tag){case"wildcard":return"(.*?)";case"named":return"(["+y+"]+)";case"static":return g(P.value);case"optional":return"(?:"+h(P.value,y)+")?"}},c=function(P,y){return y==null&&(y=k.segmentValueCharset),"^"+h(P,y)+"$"},o=function(P){if(Array.isArray(P))return b(P,o);switch(P.tag){case"wildcard":return["_"];case"named":return[P.value];case"static":return[];case"optional":return o(P.value)}},f=function(P,y,I,C){var $,G,z,ne;if(C==null&&(C=!1),ne=P[y],ne==null){if(C)throw new Error("no values provided for key `"+y+"`");return}if($=I[y]||0,G=Array.isArray(ne)?ne.length-1:0,$>G){if(C)throw new Error("too few values provided for key `"+y+"`");return}return z=Array.isArray(ne)?ne[$]:ne,C&&(I[y]=$+1),z},n=function(P,y,I){var C,$;if(Array.isArray(P)){for(C=-1,$=P.length;++C<$;)if(n(P[C],y,I))return!0;return!1}switch(P.tag){case"wildcard":return f(y,"_",I,!1)!=null;case"named":return f(y,P.value,I,!1)!=null;case"static":return!1;case"optional":return n(P.value,y,I)}},U=function(P,y,I){if(Array.isArray(P))return N(P,function(C){return U(C,y,I)});switch(P.tag){case"wildcard":return f(y,"_",I,!0);case"named":return f(y,P.value,I,!0);case"static":return P.value;case"optional":return n(P.value,y,I)?U(P.value,y,I):""}},i=function(P,y){var I,C,$,G,z;if(P instanceof i){this.isRegex=P.isRegex,this.regex=P.regex,this.ast=P.ast,this.names=P.names;return}if(this.isRegex=P instanceof RegExp,!(typeof P=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=P,y!=null){if(!Array.isArray(y))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(I=O(this.regex),y.length!==I)throw new Error("regex contains "+I+" groups but array of group names contains "+y.length);this.names=y}return}if(P==="")throw new Error("argument must not be the empty string");if(z=P.replace(/\s+/g,""),z!==P)throw new Error("argument must not contain whitespace");if(C={escapeChar:y?.escapeChar||k.escapeChar,segmentNameStartChar:y?.segmentNameStartChar||k.segmentNameStartChar,segmentNameCharset:y?.segmentNameCharset||k.segmentNameCharset,segmentValueCharset:y?.segmentValueCharset||k.segmentValueCharset,optionalSegmentStartChar:y?.optionalSegmentStartChar||k.optionalSegmentStartChar,optionalSegmentEndChar:y?.optionalSegmentEndChar||k.optionalSegmentEndChar,wildcardChar:y?.wildcardChar||k.wildcardChar},G=E(C),$=G.pattern(P),$==null)throw new Error("couldn't parse pattern");if($.rest!=="")throw new Error("could only partially parse pattern");this.ast=$.value,this.regex=new RegExp(c(this.ast,C.segmentValueCharset)),this.names=o(this.ast)},i.prototype.match=function(P){var y,I;return I=this.regex.exec(P),I==null?null:(y=I.slice(1),this.names?A(this.names,y):y)},i.prototype.stringify=function(P){if(P==null&&(P={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(P!==Object(P))throw new Error("argument must be an object or undefined");return U(this.ast,P,{})},i.escapeForRegex=g,i.concatMap=b,i.stringConcatMap=N,i.regexGroupCount=O,i.keysAndValuesToObject=A,i.P=r,i.newParser=E,i.defaultOptions=k,i.astNodeToRegexString=c,i.astNodeToNames=o,i.getParam=f,i.astNodeContainsSegmentsForProvidedParams=n,i.stringify=U,i})})(qr,qr.exports)),qr.exports}var Sc=xc();const ps=Jo(Sc);class ki{constructor(e){this.path=ki.normalizePath(e)}getDataProviderKey(){return new Ss(this.path)}static normalizePath(e){const s=String(e).trim();if(!s)throw new RangeError("Endpoint: path cannot be empty");if(/^https?:\/\//i.test(s)){let h;try{h=new URL(s)}catch{throw new RangeError("Endpoint: invalid absolute URL")}return h.pathname=h.pathname.replace(/\/+/g,"/"),h.href}const r=s.indexOf("?"),i=s.indexOf("#");let n=s.length;r>=0&&(n=Math.min(n,r)),i>=0&&(n=Math.min(n,i));let o=s.slice(0,n);const c=s.slice(n);if(o=o.replace(/^\/+/,""),o=o.replace(/\/+/g,"/"),!o&&c)throw new RangeError("Endpoint: path cannot be empty");return o+c}static isNonEmpty(e){return String(e).trim().length>0}static looksLikeDataProviderPath(e){return/^\s*dataProvider\s*\(/i.test(String(e))}toString(){return this.path}}const Ac=50,Cc=1e4,kc=100,kn=new Map;function $i(t){return di(t)}function Vr(t){return t.split(".")[0]??t}function Di(t){const e=t.split("."),s=e.shift();let r=be.get(s);return e.length&&(r=at.traverse(r,e)),r}function $c(t){return t==null?!0:Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:typeof t=="string"?t.length===0:!1}function Dc(t){return Array.isArray(t)?t.length:0}function Ec(t,e){for(const o of e)if(o===t||t.startsWith(o+".")||o.startsWith(t+"."))throw new Error(`[derive] Cycle détecté : la sortie "${t}" chevauche l'entrée "${o}".`);const s=Vr(t),r=new Map;for(const[o,c]of kn)r.set(Vr(o),new Set(c));r.set(s,new Set(e.map(Vr)));const i=new Set,n=o=>{if(i.has(o))return!0;i.add(o);for(const c of r.get(o)??[])if(n(c))return!0;return i.delete(o),!1};if(n(s))throw new Error(`[derive] Cycle détecté (chaîne) : la sortie "${t}" dépend indirectement d'elle-même.`)}function Oc(t,e){kn.set(t,new Set(e.map(s=>Vr(s))))}function Tc(t){kn.delete(t)}function Lc(t){return`${Vr($i(t))}/_state_`}function Ei(t,e){const s=Lc(t);be.get(s).set(e)}function Mc(t,e,s,r){const i=typeof t.compute=="function"?t:{inputs:t,compute:e,output:s,variables:r},n=i.debounceMs??Ac,o=i.maxInputItems??Cc,c=i.isEmpty??$c,h=$i(i.output),b=Object.entries(i.inputs).map(([ie,q])=>({alias:ie,path:$i(q)})),k=b.map(ie=>ie.path),g=i.variables?$i(i.variables):null;Ec(h,k),Oc(h,k);const f=Di(h);let A,E=!1,O=0,N=null,U=!1,P="";const y=ie=>{E=!0,A=ie,f.set(ie),E=!1},I=()=>{E||U||(typeof console<"u"&&console.warn&&console.warn(`[derive] Écriture ignorée sur la sortie readonly "${h}".`),A!==void 0&&(E=!0,f.set(A),E=!1))};f.onAssign(I,!1);const C=()=>{const ie={};for(const{alias:q,path:le}of b){const pe=Di(le).get(),Ue=Dc(pe);Ue>o&&typeof console<"u"&&console.warn&&console.warn(`[derive] Entrée "${le}" : ${Ue} éléments (> ${o}). Agrégation lourde — envisager un plafond côté fetch.`),ie[q]=pe}return ie},$=()=>g?Di(g).get()??{}:{},G=async()=>{if(U)return;const ie=++O;Ei(h,{status:"loading",error:null});const q=C(),le=$(),pe=JSON.stringify({inputs:q,vars:le});if(pe===P&&A!==void 0){Ei(h,{status:c(A)?"empty":"ready",error:null});return}const Ue=typeof performance<"u"?performance.now():Date.now();try{const ue=await Promise.resolve(i.compute(q,le));if(U||ie!==O)return;const me=(typeof performance<"u"?performance.now():Date.now())-Ue;me>kc&&typeof console<"u"&&console.warn&&console.warn(`[derive] Évaluation longue (${Math.round(me)} ms) → "${h}".`),P=pe,y(ue),Ei(h,{status:c(ue)?"empty":"ready",error:null})}catch(ue){if(U||ie!==O)return;const me=ue instanceof Error?ue.message:String(ue);typeof console<"u"&&console.error&&console.error(`[derive] Erreur sur "${h}" :`,me),Ei(h,{status:"error",error:me})}},z=()=>{U||(N&&clearTimeout(N),N=setTimeout(()=>{N=null,G()},n))},ne=[],se=ie=>{const q=Di(ie),le=()=>z();q.onInternalMutation(le),ne.push({pub:q,handler:le})};for(const{path:ie}of b)se(ie);return g&&se(g),z(),{stop(){if(!U){U=!0,N&&clearTimeout(N);for(const{pub:ie,handler:q}of ne)ie.offInternalMutation(q);f.offAssign(I),Tc(h)}},recompute(){P="",G()}}}function Oi(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var $n={exports:{}},Qo;function Ic(){return Qo||(Qo=1,(function(t,e){(function(s){t.exports=s()})(function(){return(function(){function s(r,i,n){function o(b,k){if(!i[b]){if(!r[b]){var g=typeof Oi=="function"&&Oi;if(!k&&g)return g(b,!0);if(c)return c(b,!0);var f=new Error("Cannot find module '"+b+"'");throw f.code="MODULE_NOT_FOUND",f}var A=i[b]={exports:{}};r[b][0].call(A.exports,function(E){var O=r[b][1][E];return o(O||E)},A,A.exports,s,r,i,n)}return i[b].exports}for(var c=typeof Oi=="function"&&Oi,h=0;h<n.length;h++)o(n[h]);return o}return s})()({1:[function(s,r,i){const n=s("./utils"),o=(function(){const c=n.stringToArray,h=["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"],b=["Zeroth","First","Second","Third","Fourth","Fifth","Sixth","Seventh","Eighth","Ninth","Tenth","Eleventh","Twelfth","Thirteenth","Fourteenth","Fifteenth","Sixteenth","Seventeenth","Eighteenth","Nineteenth"],k=["Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety","Hundred"],g=["Thousand","Million","Billion","Trillion"];function f(T,M){var D=function(V,H,F){var Y="";if(V<=19)Y=(H?" and ":"")+(F?b[V]:h[V]);else if(V<100){const xe=Math.floor(V/10),ge=V%10;Y=(H?" and ":"")+k[xe-2],ge>0?Y+="-"+D(ge,!1,F):F&&(Y=Y.substring(0,Y.length-1)+"ieth")}else if(V<1e3){const xe=Math.floor(V/100),ge=V%100;Y=(H?", ":"")+h[xe]+" Hundred",ge>0?Y+=D(ge,!0,F):F&&(Y+="th")}else{var ae=Math.floor(Math.log10(V)/3);ae>g.length&&(ae=g.length);const xe=Math.pow(10,ae*3),ge=Math.floor(V/xe),fe=V-ge*xe;Y=(H?", ":"")+D(ge,!1,!1)+" "+g[ae-1],fe>0?Y+=D(fe,!0,F):F&&(Y+="th")}return Y},j=D(T,!1,M);return j}const A=Object.create(null);h.forEach(function(T,M){A[T.toLowerCase()]=M}),b.forEach(function(T,M){A[T.toLowerCase()]=M}),k.forEach(function(T,M){const D=T.toLowerCase();A[D]=(M+2)*10,A[D.substring(0,T.length-1)+"ieth"]=A[D]}),A.hundredth=100,g.forEach(function(T,M){const D=T.toLowerCase(),j=Math.pow(10,(M+1)*3);A[D]=j,A[D+"th"]=j});function E(T){const D=T.split(/,\s|\sand\s|[\s\\-]/).map(H=>A[H]);let j=[0];return D.forEach(H=>{if(H<100){let F=j.pop();F>=1e3&&(j.push(F),F=0),j.push(F+H)}else j.push(j.pop()*H)}),j.reduce((H,F)=>H+F,0)}const O=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],N={M:1e3,D:500,C:100,L:50,X:10,V:5,I:1};function U(T){for(var M=0;M<O.length;M++){const D=O[M];if(T>=D[0])return D[1]+U(T-D[0])}return""}function P(T){for(var M=0,D=1,j=T.length-1;j>=0;j--){const V=T[j],H=N[V];H<D?M-=H:(D=H,M+=H)}return M}function y(T,M){for(var D=[],j=M.charCodeAt(0);T>0;)D.unshift(String.fromCharCode((T-1)%26+j)),T=Math.floor((T-1)/26);return D.join("")}function I(T,M){for(var D=M.charCodeAt(0),j=0,V=0;V<T.length;V++)j+=(T.charCodeAt(T.length-V-1)-D+1)*Math.pow(26,V);return j}function C(T,M){if(typeof T>"u")return;T=Math.floor(T);const D=se(M);return z(T,D)}const $={DECIMAL:"decimal",LETTERS:"letters",ROMAN:"roman",WORDS:"words",SEQUENCE:"sequence"},G={UPPER:"upper",LOWER:"lower",TITLE:"title"};function z(T,M){let D;const j=T<0;switch(T=Math.abs(T),M.primary){case $.LETTERS:D=y(T,M.case===G.UPPER?"A":"a");break;case $.ROMAN:D=U(T),M.case===G.UPPER&&(D=D.toUpperCase());break;case $.WORDS:D=f(T,M.ordinal),M.case===G.UPPER?D=D.toUpperCase():M.case===G.LOWER&&(D=D.toLowerCase());break;case $.DECIMAL:D=""+T;var V=M.mandatoryDigits-D.length;if(V>0){var H=new Array(V+1).join("0");D=H+D}if(M.zeroCode!==48&&(D=c(D).map(xe=>String.fromCodePoint(xe.codePointAt(0)+M.zeroCode-48)).join("")),M.regular){const xe=Math.floor((D.length-1)/M.groupingSeparators.position);for(let ge=xe;ge>0;ge--){const fe=D.length-ge*M.groupingSeparators.position;D=D.substr(0,fe)+M.groupingSeparators.character+D.substr(fe)}}else M.groupingSeparators.reverse().forEach(xe=>{const ge=D.length-xe.position;D=D.substr(0,ge)+xe.character+D.substr(ge)});if(M.ordinal){var F={1:"st",2:"nd",3:"rd"},Y=D[D.length-1],ae=F[Y];(!ae||D.length>1&&D[D.length-2]==="1")&&(ae="th"),D=D+ae}break;case $.SEQUENCE:throw{code:"D3130",value:M.token}}return j&&(D="-"+D),D}const ne=[48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296];function se(T){const M={type:"integer",primary:$.DECIMAL,case:G.LOWER,ordinal:!1};let D,j;const V=T.lastIndexOf(";");switch(V===-1?D=T:(D=T.substring(0,V),j=T.substring(V+1),j[0]==="o"&&(M.ordinal=!0)),D){case"A":M.case=G.UPPER;case"a":M.primary=$.LETTERS;break;case"I":M.case=G.UPPER;case"i":M.primary=$.ROMAN;break;case"W":M.case=G.UPPER,M.primary=$.WORDS;break;case"Ww":M.case=G.TITLE,M.primary=$.WORDS;break;case"w":M.primary=$.WORDS;break;default:{let H=null,F=0,Y=0,ae=[],xe=0;if(c(D).map(fe=>fe.codePointAt(0)).reverse().forEach(fe=>{let he=!1;for(let $e=0;$e<ne.length;$e++){const de=ne[$e];if(fe>=de&&fe<=de+9){if(he=!0,F++,xe++,H===null)H=de;else if(de!==H)throw{code:"D3131"};break}}he||(fe===35?(xe++,Y++):ae.push({position:xe,character:String.fromCodePoint(fe)}))}),F>0){M.primary=$.DECIMAL,M.zeroCode=H,M.mandatoryDigits=F,M.optionalDigits=Y;const he=function($e){if($e.length===0)return 0;const de=$e[0].character;for(let st=1;st<$e.length;st++)if($e[st].character!==de)return 0;const ft=$e.map(st=>st.position),Kt=function(st,Pt){return Pt===0?st:Kt(Pt,st%Pt)},_t=ft.reduce(Kt);for(let st=1;st<=ft.length;st++)if(ft.indexOf(st*_t)===-1)return 0;return _t}(ae);he>0?(M.regular=!0,M.groupingSeparators={position:he,character:ae[0].character}):(M.regular=!1,M.groupingSeparators=ae)}else M.primary=$.SEQUENCE,M.token=D}}return M}const ie={Y:"1",M:"1",D:"1",d:"1",F:"n",W:"1",w:"1",X:"1",x:"1",H:"1",h:"1",P:"n",m:"01",s:"01",f:"1",Z:"01:01",z:"01:01",C:"n",E:"n"};function q(T){var M=[];const D={type:"datetime",parts:M},j=function(he,$e){if($e>he){let de=T.substring(he,$e);de=de.split("]]").join("]"),M.push({type:"literal",value:de})}};for(var V=0,H=0;H<T.length;){if(T.charAt(H)==="["){if(T.charAt(H+1)==="["){j(V,H),M.push({type:"literal",value:"["}),H+=2,V=H;continue}if(j(V,H),V=H,H=T.indexOf("]",V),H===-1)throw{code:"D3135"};let he=T.substring(V+1,H);he=he.split(/\s+/).join("");var F={type:"marker",component:he.charAt(0)},Y=he.lastIndexOf(","),ae;if(Y!==-1){const $e=he.substring(Y+1),de=$e.indexOf("-");let ft,Kt;const _t=function(Pt){if(!(typeof Pt>"u"||Pt==="*"))return parseInt(Pt)};de===-1?ft=$e:(ft=$e.substring(0,de),Kt=$e.substring(de+1));const st={min:_t(ft),max:_t(Kt)};F.width=st,ae=he.substring(1,Y)}else ae=he.substring(1);if(ae.length===1)F.presentation1=ae;else if(ae.length>1){var xe=ae.charAt(ae.length-1);"atco".indexOf(xe)!==-1?(F.presentation2=xe,xe==="o"&&(F.ordinal=!0),F.presentation1=ae.substring(0,ae.length-1)):F.presentation1=ae}else F.presentation1=ie[F.component];if(typeof F.presentation1>"u")throw{code:"D3132",value:F.component};if(F.presentation1[0]==="n")F.names=G.LOWER;else if(F.presentation1[0]==="N")F.presentation1[1]==="n"?F.names=G.TITLE:F.names=G.UPPER;else if("YMDdFWwXxHhmsf".indexOf(F.component)!==-1){var ge=F.presentation1;if(F.presentation2&&(ge+=";"+F.presentation2),F.integerFormat=se(ge),F.width&&F.width.min!==void 0&&F.integerFormat.mandatoryDigits<F.width.min&&(F.integerFormat.mandatoryDigits=F.width.min),F.component==="Y")if(F.n=-1,F.width&&F.width.max!==void 0)F.n=F.width.max,F.integerFormat.mandatoryDigits=F.n;else{var fe=F.integerFormat.mandatoryDigits+F.integerFormat.optionalDigits;fe>=2&&(F.n=fe)}const $e=M[M.length-1];$e&&$e.integerFormat&&($e.integerFormat.parseWidth=$e.integerFormat.mandatoryDigits)}(F.component==="Z"||F.component==="z")&&(F.integerFormat=se(F.presentation1)),M.push(F),V=H+1}H++}return j(V,H),D}const le=["","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],pe=["January","February","March","April","May","June","July","August","September","October","November","December"],Ue=1e3*60*60*24,ue=function(T){const M=Date.UTC(T.year,T.month);var D=new Date(M).getUTCDay();return D===0&&(D=7),D>4?M+(8-D)*Ue:M-(D-1)*Ue},me=function(T,M){return{year:T,month:M,nextMonth:function(){return M===11?me(T+1,0):me(T,M+1)},previousMonth:function(){return M===0?me(T-1,11):me(T,M-1)},nextYear:function(){return me(T+1,M)},previousYear:function(){return me(T-1,M)}}},ke=function(T,M){return(M-T)/(Ue*7)+1},ce=(T,M)=>{let D;switch(M){case"Y":D=T.getUTCFullYear();break;case"M":D=T.getUTCMonth()+1;break;case"D":D=T.getUTCDate();break;case"d":{const j=Date.UTC(T.getUTCFullYear(),T.getUTCMonth(),T.getUTCDate()),V=Date.UTC(T.getUTCFullYear(),0);D=(j-V)/Ue+1;break}case"F":D=T.getUTCDay(),D===0&&(D=7);break;case"W":{const j=me(T.getUTCFullYear(),0),V=ue(j),H=Date.UTC(j.year,T.getUTCMonth(),T.getUTCDate());let F=ke(V,H);if(F>52){const Y=ue(j.nextYear());H>=Y&&(F=1)}else if(F<1){const Y=ue(j.previousYear());F=ke(Y,H)}D=Math.floor(F);break}case"w":{const j=me(T.getUTCFullYear(),T.getUTCMonth()),V=ue(j),H=Date.UTC(j.year,j.month,T.getUTCDate());let F=ke(V,H);if(F>4){const Y=ue(j.nextMonth());H>=Y&&(F=1)}else if(F<1){const Y=ue(j.previousMonth());F=ke(Y,H)}D=Math.floor(F);break}case"X":{const j=me(T.getUTCFullYear(),0),V=ue(j),H=ue(j.nextYear()),F=T.getTime();F<V?D=j.year-1:F>=H?D=j.year+1:D=j.year;break}case"x":{const j=me(T.getUTCFullYear(),T.getUTCMonth()),V=ue(j),H=j.nextMonth(),F=ue(H),Y=T.getTime();Y<V?D=j.previousMonth().month+1:Y>=F?D=H.month+1:D=j.month+1;break}case"H":D=T.getUTCHours();break;case"h":D=T.getUTCHours(),D=D%12,D===0&&(D=12);break;case"P":D=T.getUTCHours()>=12?"pm":"am";break;case"m":D=T.getUTCMinutes();break;case"s":D=T.getUTCSeconds();break;case"f":D=T.getUTCMilliseconds();break;case"Z":case"z":break;case"C":D="ISO";break;case"E":D="ISO";break}return D};let W=null;function Pe(T,M,D){var j=0,V=0;if(typeof D<"u"){const ge=parseInt(D);j=Math.floor(ge/100),V=ge%100}var H=function(ge,fe){var he=ce(ge,fe.component);if("YMDdFWwXxHhms".indexOf(fe.component)!==-1)if(fe.component==="Y"&&fe.n!==-1&&(he=he%Math.pow(10,fe.n)),fe.names){if(fe.component==="M"||fe.component==="x")he=pe[he-1];else if(fe.component==="F")he=le[he];else throw{code:"D3133",value:fe.component};fe.names===G.UPPER?he=he.toUpperCase():fe.names===G.LOWER&&(he=he.toLowerCase()),fe.width&&he.length>fe.width.max&&(he=he.substring(0,fe.width.max))}else he=z(he,fe.integerFormat);else if(fe.component==="f")he=z(he,fe.integerFormat);else if(fe.component==="Z"||fe.component==="z"){const $e=j*100+V;if(fe.integerFormat.regular)he=z($e,fe.integerFormat);else{const de=fe.integerFormat.mandatoryDigits;if(de===1||de===2)he=z(j,fe.integerFormat),V!==0&&(he+=":"+C(V,"00"));else if(de===3||de===4)he=z($e,fe.integerFormat);else throw{code:"D3134",value:de}}$e>=0&&(he="+"+he),fe.component==="z"&&(he="GMT"+he),$e===0&&fe.presentation2==="t"&&(he="Z")}else fe.component==="P"&&fe.names===G.UPPER&&(he=he.toUpperCase());return he};let F;typeof M>"u"?(W===null&&(W=q("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]")),F=W):F=q(M);const Y=(60*j+V)*60*1e3,ae=new Date(T+Y);let xe="";return F.parts.forEach(function(ge){ge.type==="literal"?xe+=ge.value:xe+=H(ae,ge)}),xe}function m(T){var M=Object.create(null);if(T.type==="datetime")M.type="datetime",M.parts=T.parts.map(function(D){var j=Object.create(null);if(D.type==="literal")j.regex=D.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");else if(D.component==="Z"||D.component==="z"){let H;Array.isArray(D.integerFormat.groupingSeparators)||(H=D.integerFormat.groupingSeparators),j.regex="",D.component==="z"&&(j.regex="GMT"),j.regex+="[-+][0-9]+",H&&(j.regex+=H.character+"[0-9]+"),j.parse=function(F){D.component==="z"&&(F=F.substring(3));let Y=0,ae=0;return H?(Y=Number.parseInt(F.substring(0,F.indexOf(H.character))),ae=Number.parseInt(F.substring(F.indexOf(H.character)+1))):F.length-1<=2?Y=Number.parseInt(F):(Y=Number.parseInt(F.substring(0,3)),ae=Number.parseInt(F.substring(3))),Y*60+ae}}else if(D.component==="f")j.regex="[0-9]+",j.parse=function(H){return parseFloat("0."+H.substring(0,3))*1e3};else if(D.integerFormat)j=m(D.integerFormat);else{j.regex="[a-zA-Z]+";var V=Object.create(null);if(D.component==="M"||D.component==="x")pe.forEach(function(H,F){D.width&&D.width.max?V[H.substring(0,D.width.max)]=F+1:V[H]=F+1});else if(D.component==="F")le.forEach(function(H,F){F>0&&(D.width&&D.width.max?V[H.substring(0,D.width.max)]=F:V[H]=F)});else if(D.component==="P")V={am:0,AM:0,pm:1,PM:1};else throw{code:"D3133",value:D.component};j.parse=function(H){return V[H]}}return j.component=D.component,j});else{M.type="integer";const D=T.case===G.UPPER;switch(T.primary){case $.LETTERS:M.regex=D?"[A-Z]+":"[a-z]+",M.parse=function(j){return I(j,D?"A":"a")};break;case $.ROMAN:M.regex=D?"[MDCLXVI]+":"[mdclxvi]+",M.parse=function(j){return P(D?j:j.toUpperCase())};break;case $.WORDS:M.regex="(?:"+n.keys(A).concat("and","[\\-, ]").join("|")+")+",M.parse=function(j){return E(j.toLowerCase())};break;case $.DECIMAL:M.regex="[0-9]",T.parseWidth?M.regex+=`{${T.parseWidth}}`:M.regex+="+",T.ordinal&&(M.regex+="(?:th|st|nd|rd)"),M.parse=function(j){let V=j;return T.ordinal&&(V=j.substring(0,j.length-2)),T.regular?V=V.split(",").join(""):T.groupingSeparators.forEach(H=>{V=V.split(H.character).join("")}),T.zeroCode!==48&&(V=V.split("").map(H=>String.fromCodePoint(H.codePointAt(0)-T.zeroCode+48)).join("")),parseInt(V)};break;case $.SEQUENCE:throw{code:"D3130",value:T.token}}}return M}function _(T,M){if(typeof T>"u")return;const D=se(M);return m(D).parse(T)}function Q(T,M){const D=q(M),j=m(D),V="^"+j.parts.map(ae=>"("+ae.regex+")").join("")+"$";var F=new RegExp(V,"i").exec(T);if(F!==null){const de=Object.create(null);for(let d=1;d<F.length;d++){const v=j.parts[d-1];v.parse&&(de[v.component]=v.parse(F[d]))}if(Object.getOwnPropertyNames(de).length===0)return;let ft=0;const Kt=d=>{ft<<=1,ft+=d?1:0},_t=d=>!(~d&ft)&&!!(d&ft);"YXMxWwdD".split("").forEach(d=>Kt(de[d]));const Pt=!_t(161)&&_t(130),_s=_t(84),$r=!_s&&_t(72);ft=0,"PHhmsf".split("").forEach(d=>Kt(de[d]));const Z=!_t(23)&&_t(47),Xt=(Pt?"YD":_s?"XxwF":$r?"XWF":"YMD")+(Z?"Phmsf":"Hmsf"),li=this.environment.timestamp;let hs=!1,ar=!1;if(Xt.split("").forEach(d=>{if(typeof de[d]>"u")hs?(de[d]="MDd".indexOf(d)!==-1?1:0,ar=!0):de[d]=ce(li,d);else if(hs=!0,ar)throw{code:"D3136"}}),de.M>0?de.M-=1:de.M=0,Pt){const d=Date.UTC(de.Y,0),v=(de.d-1)*1e3*60*60*24,w=new Date(d+v);de.M=w.getUTCMonth(),de.D=w.getUTCDate()}if(_s)throw{code:"D3136"};if($r)throw{code:"D3136"};Z&&(de.H=de.h===12?0:de.h,de.P===1&&(de.H+=12));var Y=Date.UTC(de.Y,de.M,de.D,de.H,de.m,de.s,de.f);return(de.Z||de.z)&&(Y-=(de.Z||de.z)*60*1e3),Y}}var ye=new RegExp("^\\d{4}(-[01]\\d)?(-[0-3]\\d)?(T[0-2]\\d:[0-5]\\d:[0-5]\\d)?(\\.\\d+)?([+-][0-2]\\d:?[0-5]\\d|Z)?$");function _e(T,M){if(!(typeof T>"u"))if(typeof M>"u"){if(!ye.test(T))throw{stack:new Error().stack,code:"D3110",value:T};return Date.parse(T)}else return Q.call(this,T,M)}function De(T,M,D){if(!(typeof T>"u"))return Pe.call(this,T,M,D)}return{formatInteger:C,parseInteger:_,fromMillis:De,toMillis:_e}})();r.exports=o},{"./utils":6}],2:[function(s,r,i){(function(n){(function(){var o=s("./utils");const c=(()=>{var h=o.isNumeric,b=o.isArrayOfStrings,k=o.isArrayOfNumbers,g=o.isSequence,f=o.isFunction,A=o.isLambda,E=o.isPromise,O=o.getFunctionArity,N=o.isDeepEqual,U=o.stringToArray;function P(a){if(!(typeof a>"u")){var l=0;return a.forEach(function(p){l+=p}),l}}function y(a){return typeof a>"u"?0:a.length}function I(a){if(!(typeof a>"u"||a.length===0))return Math.max.apply(Math,a)}function C(a){if(!(typeof a>"u"||a.length===0))return Math.min.apply(Math,a)}function $(a){if(!(typeof a>"u"||a.length===0)){var l=0;return a.forEach(function(p){l+=p}),l/a.length}}function G(a,l=!1){if(!(typeof a>"u")){var p;if(typeof a=="string")p=a;else if(f(a))p="";else{if(typeof a=="number"&&!isFinite(a))throw{code:"D3001",value:a,stack:new Error().stack};var S=l?2:0;Array.isArray(a)&&a.outerWrapper&&(a=a[0]),p=JSON.stringify(a,function(x,L){return typeof L<"u"&&L!==null&&h(L)?L.toPrecision&&!Number.isInteger(L)?Number(L.toPrecision(15)):L:L&&f(L)?"":L},S)}return p}}function z(a,l,p){if(!(typeof a>"u")){var S=U(a),x=S.length;if(x+l<0&&(l=0),typeof p<"u"){if(p<=0)return"";var L=l>=0?l+p:x+l+p;return S.slice(l,L).join("")}return S.slice(l).join("")}}function ne(a,l){if(!(typeof a>"u")){var p=a.indexOf(l);return p>-1?a.substr(0,p):a}}function se(a,l){if(!(typeof a>"u")){var p=a.indexOf(l);return p>-1?a.substr(p+l.length):a}}function ie(a){if(!(typeof a>"u"))return a.toLowerCase()}function q(a){if(!(typeof a>"u"))return a.toUpperCase()}function le(a){if(!(typeof a>"u"))return U(a).length}function pe(a){if(!(typeof a>"u")){var l=a.replace(/[ \t\n\r]+/gm," ");return l.charAt(0)===" "&&(l=l.substring(1)),l.charAt(l.length-1)===" "&&(l=l.substring(0,l.length-1)),l}}function Ue(a,l,p){if(!(typeof a>"u")){(typeof p>"u"||p.length===0)&&(p=" ");var S;l=Math.trunc(l);var x=Math.abs(l)-le(a);if(x>0){var L=new Array(x+1).join(p);p.length>1&&(L=z(L,0,x)),l>0?S=a+L:S=L+a}else S=a;return S}}async function ue(a,l){var p=a.apply(this,[l]);if(E(p)&&(p=await p),p&&!(typeof p.start=="number"||p.end==="number"||Array.isArray(p.groups)||f(p.next)))throw{code:"T1010",stack:new Error().stack};return p}async function me(a,l){if(!(typeof a>"u"||typeof l>"u")){var p;if(typeof l=="string")p=a.indexOf(l)!==-1;else{var S=await ue(l,a);p=typeof S<"u"}return p}}async function ke(a,l,p){if(!(typeof a>"u")){if(p<0)throw{stack:new Error().stack,value:p,code:"D3040",index:3};var S=this.createSequence();if(typeof p>"u"||p>0){var x=0,L=await ue(l,a);if(typeof L<"u")for(;typeof L<"u"&&(typeof p>"u"||x<p);)S.push({match:L.match,index:L.start,groups:L.groups}),L=await ue(L.next),x++}return S}}async function ce(a,l,p,S){if(!(typeof a>"u")){var x=this;if(l==="")throw{code:"D3010",stack:new Error().stack,value:l,index:2};if(S<0)throw{code:"D3011",stack:new Error().stack,value:S,index:4};var L;typeof p=="string"?L=function(We){for(var rt="",Le=0,Ze=p.indexOf("$",Le);Ze!==-1&&Le<p.length;){rt+=p.substring(Le,Ze),Le=Ze+1;var Yt=p.charAt(Le);if(Yt==="$")rt+="$",Le++;else if(Yt==="0")rt+=We.match,Le++;else{var xt;if(We.groups.length===0?xt=1:xt=Math.floor(Math.log(We.groups.length)*Math.LOG10E)+1,Ze=parseInt(p.substring(Le,Le+xt),10),xt>1&&Ze>We.groups.length&&(Ze=parseInt(p.substring(Le,Le+xt-1),10)),isNaN(Ze))rt+="$";else{if(We.groups.length>0){var ds=We.groups[Ze-1];typeof ds<"u"&&(rt+=ds)}Le+=Ze.toString().length}}Ze=p.indexOf("$",Le)}return rt+=p.substring(Le),rt}:L=p;var B="",K=0;if(typeof S>"u"||S>0){var we=0;if(typeof l=="string"){for(var oe=a.indexOf(l,K);oe!==-1&&(typeof S>"u"||we<S);)B+=a.substring(K,oe),B+=p,K=oe+l.length,we++,oe=a.indexOf(l,K);B+=a.substring(K)}else{var Fe=await ue(l,a);if(typeof Fe<"u"){for(;typeof Fe<"u"&&(typeof S>"u"||we<S);){B+=a.substring(K,Fe.start);var He=L.apply(x,[Fe]);if(E(He)&&(He=await He),typeof He=="string")B+=He;else throw{code:"D3012",stack:new Error().stack,value:He};K=Fe.start+Fe.match.length,we++,Fe=await ue(Fe.next)}B+=a.substring(K)}else B=a}}else B=a;return B}}function W(a){if(!(typeof a>"u")){var l=typeof window<"u"?window.btoa:function(p){return new n.Buffer.from(p,"binary").toString("base64")};return l(a)}}function Pe(a){if(!(typeof a>"u")){var l=typeof window<"u"?window.atob:function(p){return new n.Buffer.from(p,"base64").toString("binary")};return l(a)}}function m(a){if(!(typeof a>"u")){var l;try{l=encodeURIComponent(a)}catch{throw{code:"D3140",stack:new Error().stack,value:a,functionName:"encodeUrlComponent"}}return l}}function _(a){if(!(typeof a>"u")){var l;try{l=encodeURI(a)}catch{throw{code:"D3140",stack:new Error().stack,value:a,functionName:"encodeUrl"}}return l}}function Q(a){if(!(typeof a>"u")){var l;try{l=decodeURIComponent(a)}catch{throw{code:"D3140",stack:new Error().stack,value:a,functionName:"decodeUrlComponent"}}return l}}function ye(a){if(!(typeof a>"u")){var l;try{l=decodeURI(a)}catch{throw{code:"D3140",stack:new Error().stack,value:a,functionName:"decodeUrl"}}return l}}async function _e(a,l,p){if(!(typeof a>"u")){if(p<0)throw{code:"D3020",stack:new Error().stack,value:p,index:3};var S=[];if(typeof p>"u"||p>0)if(typeof l=="string")S=a.split(l,p);else{var x=0,L=await ue(l,a);if(typeof L<"u"){for(var B=0;typeof L<"u"&&(typeof p>"u"||x<p);)S.push(a.substring(B,L.start)),B=L.end,L=await ue(L.next),x++;(typeof p>"u"||x<p)&&S.push(a.substring(B))}else S.push(a)}return S}}function De(a,l){if(!(typeof a>"u"))return typeof l>"u"&&(l=""),a.join(l)}function T(a,l,p){if(!(typeof a>"u")){var S={"decimal-separator":".","grouping-separator":",","exponent-separator":"e",infinity:"Infinity","minus-sign":"-",NaN:"NaN",percent:"%","per-mille":"‰","zero-digit":"0",digit:"#","pattern-separator":";"},x=S;typeof p<"u"&&o.keys(p).forEach(function(ve){x[ve]=p[ve]});for(var L=[],B=x["zero-digit"].charCodeAt(0),K=B;K<B+10;K++)L.push(String.fromCharCode(K));var we=L.concat([x["decimal-separator"],x["exponent-separator"],x["grouping-separator"],x.digit,x["pattern-separator"]]),oe=l.split(x["pattern-separator"]);if(oe.length>2)throw{code:"D3080",stack:new Error().stack};var Fe=function(ve){var Ye=(function(){for(var lt,zt=0;zt<ve.length;zt++)if(lt=ve.charAt(zt),we.indexOf(lt)!==-1&<!==x["exponent-separator"])return ve.substring(0,zt);return""})(),At=(function(){for(var lt,zt=ve.length-1;zt>=0;zt--)if(lt=ve.charAt(zt),we.indexOf(lt)!==-1&<!==x["exponent-separator"])return ve.substring(zt+1);return""})(),Ke=ve.substring(Ye.length,ve.length-At.length),Mt,Vs,It,lr,Rt=ve.indexOf(x["exponent-separator"],Ye.length);Rt===-1||Rt>ve.length-At.length?(Mt=Ke,Vs=void 0):(Mt=Ke.substring(0,Rt),Vs=Ke.substring(Rt+1));var Qt=Mt.indexOf(x["decimal-separator"]);return Qt===-1?(It=Mt,lr=At):(It=Mt.substring(0,Qt),lr=Mt.substring(Qt+1)),{prefix:Ye,suffix:At,activePart:Ke,mantissaPart:Mt,exponentPart:Vs,integerPart:It,fractionalPart:lr,subpicture:ve}},He=function(ve){var Ye,At,Ke=ve.subpicture,Mt=Ke.indexOf(x["decimal-separator"]);Mt!==Ke.lastIndexOf(x["decimal-separator"])&&(Ye="D3081"),Ke.indexOf(x.percent)!==Ke.lastIndexOf(x.percent)&&(Ye="D3082"),Ke.indexOf(x["per-mille"])!==Ke.lastIndexOf(x["per-mille"])&&(Ye="D3083"),Ke.indexOf(x.percent)!==-1&&Ke.indexOf(x["per-mille"])!==-1&&(Ye="D3084");var Vs=!1;for(At=0;At<ve.mantissaPart.length;At++){var It=ve.mantissaPart.charAt(At);if(L.indexOf(It)!==-1||It===x.digit){Vs=!0;break}}Vs||(Ye="D3085");var lr=ve.activePart.split("").map(function(lt){return we.indexOf(lt)===-1?"p":"a"}).join("");lr.indexOf("p")!==-1&&(Ye="D3086"),Mt!==-1?(Ke.charAt(Mt-1)===x["grouping-separator"]||Ke.charAt(Mt+1)===x["grouping-separator"])&&(Ye="D3087"):ve.integerPart.charAt(ve.integerPart.length-1)===x["grouping-separator"]&&(Ye="D3088"),Ke.indexOf(x["grouping-separator"]+x["grouping-separator"])!==-1&&(Ye="D3089");var Rt=ve.integerPart.indexOf(x.digit);Rt!==-1&&ve.integerPart.substring(0,Rt).split("").filter(function(lt){return L.indexOf(lt)>-1}).length>0&&(Ye="D3090"),Rt=ve.fractionalPart.lastIndexOf(x.digit),Rt!==-1&&ve.fractionalPart.substring(Rt).split("").filter(function(lt){return L.indexOf(lt)>-1}).length>0&&(Ye="D3091");var Qt=typeof ve.exponentPart=="string";if(Qt&&ve.exponentPart.length>0&&(Ke.indexOf(x.percent)!==-1||Ke.indexOf(x["per-mille"])!==-1)&&(Ye="D3092"),Qt&&(ve.exponentPart.length===0||ve.exponentPart.split("").filter(function(lt){return L.indexOf(lt)===-1}).length>0)&&(Ye="D3093"),Ye)throw{code:Ye,stack:new Error().stack}},We=function(ve){var Ye=function(gt,nn){for(var hi=[],Ps=gt.indexOf(x["grouping-separator"]);Ps!==-1;){var on=(nn?gt.substring(0,Ps):gt.substring(Ps)).split("").filter(function(Or){return L.indexOf(Or)!==-1||Or===x.digit}).length;hi.push(on),Ps=ve.integerPart.indexOf(x["grouping-separator"],Ps+1)}return hi},At=Ye(ve.integerPart),Ke=function(gt){if(gt.length===0)return 0;for(var nn=function(on,Or){return Or===0?on:nn(Or,on%Or)},hi=gt.reduce(nn),Ps=1;Ps<=gt.length;Ps++)if(gt.indexOf(Ps*hi)===-1)return 0;return hi},Mt=Ke(At),Vs=Ye(ve.fractionalPart,!0),It=ve.integerPart.split("").filter(function(gt){return L.indexOf(gt)!==-1}).length,lr=It,Rt=ve.fractionalPart.split(""),Qt=Rt.filter(function(gt){return L.indexOf(gt)!==-1}).length,lt=Rt.filter(function(gt){return L.indexOf(gt)!==-1||gt===x.digit}).length,zt=typeof ve.exponentPart=="string";It===0&<===0&&(zt?(Qt=1,lt=1):It=1),zt&&It===0&&ve.integerPart.indexOf(x.digit)!==-1&&(It=1),It===0&&Qt===0&&(Qt=1);var bl=0;return zt&&(bl=ve.exponentPart.split("").filter(function(gt){return L.indexOf(gt)!==-1}).length),{integerPartGroupingPositions:At,regularGrouping:Mt,minimumIntegerPartSize:It,scalingFactor:lr,prefix:ve.prefix,fractionalPartGroupingPositions:Vs,minimumFactionalPartSize:Qt,maximumFactionalPartSize:lt,minimumExponentSize:bl,suffix:ve.suffix,picture:ve.subpicture}},rt=oe.map(Fe);rt.forEach(He);var Le=rt.map(We),Ze=x["minus-sign"],Yt=x["zero-digit"],xt=x["decimal-separator"],ds=x["grouping-separator"];Le.length===1&&(Le.push(JSON.parse(JSON.stringify(Le[0]))),Le[1].prefix=Ze+Le[1].prefix);var it;a>=0?it=Le[0]:it=Le[1];var ci;it.picture.indexOf(x.percent)!==-1?ci=a*100:it.picture.indexOf(x["per-mille"])!==-1?ci=a*1e3:ci=a;var qs,Er;if(it.minimumExponentSize===0)qs=ci;else{var mg=Math.pow(10,it.scalingFactor),vg=Math.pow(10,it.scalingFactor-1);if(qs=ci,Er=0,qs!==0){for(;Math.abs(qs)<vg;)qs*=10,Er-=1;for(;Math.abs(qs)>mg;)qs/=10,Er+=1}}var yg=F(qs,it.maximumFactionalPartSize),fl=function(ve,Ye){var At=Math.abs(ve).toFixed(Ye);return Yt!=="0"&&(At=At.split("").map(function(Ke){return Ke>="0"&&Ke<="9"?L[Ke.charCodeAt(0)-48]:Ke}).join("")),At},Se=fl(yg,it.maximumFactionalPartSize),St=Se.indexOf(".");for(St===-1?Se=Se+xt:Se=Se.replace(".",xt);Se.charAt(0)===Yt;)Se=Se.substring(1);for(;Se.charAt(Se.length-1)===Yt;)Se=Se.substring(0,Se.length-1);St=Se.indexOf(xt);var ui=it.minimumIntegerPartSize-St,gl=it.minimumFactionalPartSize-(Se.length-St-1);if(Se=(ui>0?new Array(ui+1).join(Yt):"")+Se,Se=Se+(gl>0?new Array(gl+1).join(Yt):""),St=Se.indexOf(xt),it.regularGrouping>0)for(var wg=Math.floor((St-1)/it.regularGrouping),sn=1;sn<=wg;sn++)Se=[Se.slice(0,St-sn*it.regularGrouping),ds,Se.slice(St-sn*it.regularGrouping)].join("");else it.integerPartGroupingPositions.forEach(function(ve){Se=[Se.slice(0,St-ve),ds,Se.slice(St-ve)].join(""),St++});if(St=Se.indexOf(xt),it.fractionalPartGroupingPositions.forEach(function(ve){Se=[Se.slice(0,ve+St+1),ds,Se.slice(ve+St+1)].join("")}),St=Se.indexOf(xt),(it.picture.indexOf(xt)===-1||St===Se.length-1)&&(Se=Se.substring(0,Se.length-1)),typeof Er<"u"){var rn=fl(Er,0);ui=it.minimumExponentSize-rn.length,ui>0&&(rn=new Array(ui+1).join(Yt)+rn),Se=Se+x["exponent-separator"]+(Er<0?Ze:"")+rn}return Se=it.prefix+Se+it.suffix,Se}}function M(a,l){if(!(typeof a>"u")){if(a=F(a),typeof l>"u"?l=10:l=F(l),l<2||l>36)throw{code:"D3100",stack:new Error().stack,value:l};var p=a.toString(l);return p}}function D(a){var l;if(!(typeof a>"u")){if(typeof a=="number")l=a;else if(typeof a=="string"&&/^-?[0-9]+(\.[0-9]+)?([Ee][-+]?[0-9]+)?$/.test(a)&&!isNaN(parseFloat(a))&&isFinite(a))l=parseFloat(a);else if(typeof a=="string"&&/^(0[xX][0-9A-Fa-f]+)|(0[oO][0-7]+)|(0[bB][0-1]+)$/.test(a))l=Number(a);else if(a===!0)l=1;else if(a===!1)l=0;else throw{code:"D3030",value:a,stack:new Error().stack,index:1};return l}}function j(a){var l;if(!(typeof a>"u"))return l=Math.abs(a),l}function V(a){var l;if(!(typeof a>"u"))return l=Math.floor(a),l}function H(a){var l;if(!(typeof a>"u"))return l=Math.ceil(a),l}function F(a,l){var p;if(!(typeof a>"u")){if(l){var S=a.toString().split("e");a=+(S[0]+"e"+(S[1]?+S[1]+l:l))}p=Math.round(a);var x=p-a;return Math.abs(x)===.5&&Math.abs(p%2)===1&&(p=p-1),l&&(S=p.toString().split("e"),p=+(S[0]+"e"+(S[1]?+S[1]-l:-l))),Object.is(p,-0)&&(p=0),p}}function Y(a){var l;if(!(typeof a>"u")){if(a<0)throw{stack:new Error().stack,code:"D3060",index:1,value:a};return l=Math.sqrt(a),l}}function ae(a,l){var p;if(!(typeof a>"u")){if(p=Math.pow(a,l),!isFinite(p))throw{stack:new Error().stack,code:"D3061",index:1,value:a,exp:l};return p}}function xe(){return Math.random()}function ge(a){if(!(typeof a>"u")){var l=!1;if(Array.isArray(a)){if(a.length===1)l=ge(a[0]);else if(a.length>1){var p=a.filter(function(S){return ge(S)});l=p.length>0}}else typeof a=="string"?a.length>0&&(l=!0):h(a)?a!==0&&(l=!0):a!==null&&typeof a=="object"&&!f(a)?o.keys(a).length>0&&(l=!0):typeof a=="boolean"&&a===!0&&(l=!0);return l}}function fe(a){if(!(typeof a>"u"))return!ge(a)}function he(a,l,p,S){var x=[l],L=O(a);return L>=2&&x.push(p),L>=3&&x.push(S),x}async function $e(a,l){if(!(typeof a>"u")){for(var p=this.createSequence(),S=0;S<a.length;S++){var x=he(l,a[S],S,a),L=await l.apply(this,x);typeof L<"u"&&p.push(L)}return p}}async function de(a,l){if(!(typeof a>"u")){for(var p=this.createSequence(),S=0;S<a.length;S++){var x=a[S],L=he(l,x,S,a),B=await l.apply(this,L);ge(B)&&p.push(x)}return p}}async function ft(a,l){if(!(typeof a>"u")){for(var p=!1,S,x=0;x<a.length;x++){var L=a[x],B=!0;if(typeof l<"u"){var K=he(l,L,x,a),we=await l.apply(this,K);B=ge(we)}if(B)if(!p)S=L,p=!0;else throw{stack:new Error().stack,code:"D3138",index:x}}if(!p)throw{stack:new Error().stack,code:"D3139"};return S}}function Kt(){for(var a=[],l=Array.prototype.slice.call(arguments),p=Math.min.apply(Math,l.map(function(L){return Array.isArray(L)?L.length:0})),S=0;S<p;S++){var x=l.map(L=>L[S]);a.push(x)}return a}async function _t(a,l,p){if(!(typeof a>"u")){var S,x=O(l);if(x<2)throw{stack:new Error().stack,code:"D3050",index:1};var L;for(typeof p>"u"&&a.length>0?(S=a[0],L=1):(S=p,L=0);L<a.length;){var B=[S,a[L]];x>=3&&B.push(L),x>=4&&B.push(a),S=await l.apply(this,B),L++}return S}}function st(a){var l=this.createSequence();if(Array.isArray(a)){for(var p=Object.create(null),S=0;S<a.length;S++){var x=st.call(this,a[S]);x.forEach(function(L){p[L]=!0})}l=st.call(this,p)}else a!==null&&typeof a=="object"&&!f(a)&&o.keys(a).forEach(L=>l.push(L));return l}function Pt(a,l){var p;if(Array.isArray(a)){p=this.createSequence();for(var S=0;S<a.length;S++){var x=Pt.call(this,a[S],l);typeof x<"u"&&(Array.isArray(x)?x.forEach(L=>p.push(L)):p.push(x))}}else a!==null&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,l)&&!f(a)&&(p=a[l]);return p}function _s(a,l){if(typeof a>"u")return l;if(typeof l>"u")return a;Array.isArray(a)||(a=this.createSequence(a)),Array.isArray(l)||(l=[l]);const p=a.length+l.length;if(this.options&&p>this.options.sequence)throw{code:"D2015",stack:new Error().stack,value:p};return a.concat(l)}function $r(a){return!(typeof a>"u")}function Dr(a){var l=this.createSequence();if(Array.isArray(a))for(var p=0;p<a.length;p++)l=_s.call(this,l,Dr.call(this,a[p]));else if(a!==null&&typeof a=="object"&&!A(a))for(const x of o.keys(a)){var S=Object.create(null);S[x]=a[x],l.push(S)}else l=a;return l}function Z(a){if(!(typeof a>"u")){var l=Object.create(null);return a.forEach(function(p){for(const S of o.keys(p))l[S]=p[S]}),l}}function en(a){if(!(typeof a>"u")){if(a.length<=1)return a;for(var l=a.length,p=new Array(l),S=0;S<l;S++)p[l-S-1]=a[S];return p}}async function tn(a,l){var p=this.createSequence();for(const L of o.keys(a)){var S=he(l,a[L],L,a),x=await l.apply(this,S);typeof x<"u"&&p.push(x)}return p}function Xt(a){throw{code:"D3137",stack:new Error().stack,message:a||"$error() function evaluated"}}function li(a,l){if(!a)throw{code:"D3141",stack:new Error().stack,message:l||"$assert() statement failed"}}function hs(a){if(a!==void 0)return a===null?"null":h(a)?"number":typeof a=="string"?"string":typeof a=="boolean"?"boolean":Array.isArray(a)?"array":f(a)?"function":"object"}async function ar(a,l){if(!(typeof a>"u")){if(a.length<=1)return a;var p;if(typeof l>"u"){if(!k(a)&&!b(a))throw{stack:new Error().stack,code:"D3070",index:1};p=async function(B,K){return B>K}}else p=l;var S=async function(B,K){var we=async function(Fe,He,We){He.length===0?Array.prototype.push.apply(Fe,We):We.length===0?Array.prototype.push.apply(Fe,He):await p(He[0],We[0])?(Fe.push(We[0]),await we(Fe,He,We.slice(1))):(Fe.push(He[0]),await we(Fe,He.slice(1),We))},oe=[];return await we(oe,B,K),oe},x=async function(B){if(!Array.isArray(B)||B.length<=1)return B;var K=Math.floor(B.length/2),we=B.slice(0,K),oe=B.slice(K);return we=await x(we),oe=await x(oe),await S(we,oe)},L=await x(a);return L}}function d(a){if(!(typeof a>"u")){if(a.length<=1)return a;for(var l=new Array(a.length),p=0;p<a.length;p++){var S=Math.floor(Math.random()*(p+1));p!==S&&(l[p]=l[S]),l[S]=a[p]}return l}}function v(a){if(!(typeof a>"u")){if(!Array.isArray(a)||a.length<=1)return a;for(var l=g(a)?this.createSequence():[],p=0;p<a.length;p++){for(var S=a[p],x=!1,L=0;L<l.length;L++)if(N(S,l[L])){x=!0;break}x||l.push(S)}return l}}async function w(a,l){var p=Object.create(null);for(const B of o.keys(a)){var S=a[B],x=he(l,S,B,a),L=await l.apply(this,x);ge(L)&&(p[B]=S)}return o.keys(p).length===0&&(p=void 0),p}return{sum:P,count:y,max:I,min:C,average:$,string:G,substring:z,substringBefore:ne,substringAfter:se,lowercase:ie,uppercase:q,length:le,trim:pe,pad:Ue,match:ke,contains:me,replace:ce,split:_e,join:De,formatNumber:T,formatBase:M,number:D,floor:V,ceil:H,round:F,abs:j,sqrt:Y,power:ae,random:xe,boolean:ge,not:fe,map:$e,zip:Kt,filter:de,single:ft,foldLeft:_t,sift:w,keys:st,lookup:Pt,append:_s,exists:$r,spread:Dr,merge:Z,reverse:en,each:tn,error:Xt,assert:li,type:hs,sort:ar,shuffle:d,distinct:v,base64encode:W,base64decode:Pe,encodeUrlComponent:m,encodeUrl:_,decodeUrlComponent:Q,decodeUrl:ye}})();r.exports=c}).call(this)}).call(this,typeof Zo<"u"?Zo:typeof self<"u"?self:typeof window<"u"?window:{})},{"./utils":6}],3:[function(s,r,i){var n=s("./datetime"),o=s("./functions"),c=s("./utils"),h=s("./parser"),b=s("./signature"),k=(function(){var g=c.isNumeric,f=c.isArrayOfStrings,A=c.isArrayOfNumbers,E=c.isSequence,O=c.isFunction,N=c.isLambda,U=c.isIterable,P=c.isPromise,y=c.getFunctionArity,I=c.isDeepEqual,C=Xt(null);async function $(d,v,w){var a;w.base.depth++,w.base.guardrails();var l=w.lookup(Symbol.for("jsonata.__evaluate_entry"));switch(l&&await l(d,v,w),d.type){case"path":a=await G(d,v,w);break;case"binary":a=await le(d,v,w);break;case"unary":a=await pe(d,v,w);break;case"name":a=Ue(d,v,w);break;case"string":case"number":case"value":a=ue(d);break;case"wildcard":a=me(d,v,w);break;case"descendant":a=ce(d,v,w);break;case"parent":a=w.lookup(d.slot.label);break;case"condition":a=await V(d,v,w);break;case"block":a=await H(d,v,w);break;case"bind":a=await j(d,v,w);break;case"regex":a=F(d,v,w);break;case"function":a=await he(d,v,w);break;case"variable":a=Y(d,v,w);break;case"lambda":a=ft(d,v,w);break;case"partial":a=await Kt(d,v,w);break;case"apply":a=await fe(d,v,w);break;case"transform":a=xe(d,v,w);break}if(Object.prototype.hasOwnProperty.call(d,"predicate"))for(var p=0;p<d.predicate.length;p++)a=await q(d.predicate[p].expr,a,w);d.type!=="path"&&Object.prototype.hasOwnProperty.call(d,"group")&&(a=await T(d.group,a,w));var S=w.lookup(Symbol.for("jsonata.__evaluate_exit"));return S&&await S(d,v,w,a),a&&E(a)&&!a.tupleStream&&(d.keepArray&&(a.keepSingleton=!0),a.length===0?a=void 0:a.length===1&&(a=a.keepSingleton?a:a[0])),w.base.depth--,a}async function G(d,v,w){var a;Array.isArray(v)&&d.steps[0].type!=="variable"?a=v:a=w.base.createSequence(v);for(var l,p=!1,S=void 0,x=0;x<d.steps.length;x++){var L=d.steps[x];if(L.tuple&&(p=!0),x===0&&L.consarray?l=await $(L,a,w):p?S=await ie(L,a,S,w):l=await ne(L,a,w,x===d.steps.length-1),!p&&(typeof l>"u"||l.length===0))break;typeof L.focus>"u"&&(a=l)}if(p)if(d.tuple)l=S;else for(l=w.base.createSequence(),x=0;x<S.length;x++)l.push(S[x]["@"]);return d.keepSingletonArray&&(Array.isArray(l)&&l.cons&&!l.sequence&&(l=w.base.createSequence(l)),l.keepSingleton=!0),Object.prototype.hasOwnProperty.call(d,"group")&&(l=await T(d.group,p?S:l,w)),l}function z(d,v){var w=Xt(d);for(const a of c.keys(v))w.bind(a,v[a]);return w}async function ne(d,v,w,a){var l;if(d.type==="sort")return l=await ae(d,v,w),d.stages&&(l=await se(d.stages,l,w)),l;l=w.base.createSequence();for(var p=0;p<v.length;p++){var S=await $(d,v[p],w);if(d.stages)for(var x=0;x<d.stages.length;x++)S=await q(d.stages[x].expr,S,w);typeof S<"u"&&l.push(S)}var L=w.base.createSequence();return a&&l.length===1&&Array.isArray(l[0])&&!E(l[0])?L=l[0]:Array.prototype.forEach.call(l,function(B){!Array.isArray(B)||B.cons?L.push(B):Array.prototype.forEach.call(B,K=>L.push(K))}),L}async function se(d,v,w){for(var a=v,l=0;l<d.length;l++){var p=d[l];switch(p.type){case"filter":a=await q(p.expr,a,w);break;case"index":for(var S=0;S<a.length;S++){var x=a[S];x[p.value]=S}break}}return a}async function ie(d,v,w,a){var l;if(d.type==="sort"){if(w)l=await ae(d,w,a);else{var p=await ae(d,v,a);l=a.base.createSequence(),l.tupleStream=!0;for(var S=0;S<p.length;S++){var x={"@":p[S]};x[d.index]=S,l.push(x)}}return d.stages&&(l=await se(d.stages,l,a)),l}l=a.base.createSequence(),l.tupleStream=!0;var L=a;w===void 0&&(w=v.map(oe=>({"@":oe})));for(var B=0;B<w.length;B++){L=z(a,w[B]);var K=await $(d,w[B]["@"],L);if(typeof K<"u"){Array.isArray(K)||(K=[K]);for(var we=0;we<K.length;we++)x=Object.create(null),Object.assign(x,w[B]),K.tupleStream?Object.assign(x,K[we]):(d.focus?(x[d.focus]=K[we],x["@"]=w[B]["@"]):x["@"]=K[we],d.index&&(x[d.index]=we),d.ancestor&&(x[d.ancestor.label]=w[B]["@"])),l.push(x)}}return d.stages&&(l=await se(d.stages,l,a)),l}async function q(d,v,w){var a=w.base.createSequence();if(v&&v.tupleStream&&(a.tupleStream=!0),Array.isArray(v)||(v=w.base.createSequence(v)),d.type==="number"){var l=Math.floor(d.value);l<0&&(l=v.length+l);var p=await v[l];typeof p<"u"&&(Array.isArray(p)?a=p:a.push(p))}else for(l=0;l<v.length;l++){var p=v[l],S=p,x=w;v.tupleStream&&(S=p["@"],x=z(w,p));var L=await $(d,S,x);g(L)&&(L=[L]),A(L)?Array.prototype.forEach.call(L,function(K){var we=Math.floor(K);we<0&&(we=v.length+we),we===l&&a.push(p)}):o.boolean(L)&&a.push(p)}return a}async function le(d,v,w){var a,l=await $(d.lhs,v,w),p=d.value,S=async()=>await $(d.rhs,v,w);if(p==="and"||p==="or")try{return await ye(l,S,p)}catch(L){throw L.position=d.position,L.token=p,L}var x=await S();try{switch(p){case"+":case"-":case"*":case"/":case"%":a=Pe(l,x,p);break;case"=":case"!=":a=m(l,x,p);break;case"<":case"<=":case">":case">=":a=_(l,x,p);break;case"&":a=De(l,x);break;case"..":a=D(l,x,w);break;case"in":a=Q(l,x);break}}catch(L){throw L.position=d.position,L.token=p,L}return a}async function pe(d,v,w){var a,l={options:w.base.options,createSequence:w.base.createSequence};switch(d.value){case"-":if(a=await $(d.expression,v,w),typeof a>"u")a=void 0;else if(g(a))a=-a;else throw{code:"D1002",stack:new Error().stack,position:d.position,token:d.value,value:a};break;case"[":a=[];let x=await Promise.all(d.expressions.map(async(L,B)=>(w.isParallelCall=B>0,[L,await $(L,v,w)])));for(let L of x){var[p,S]=L;typeof S<"u"&&(p.value==="["?a.push(S):a=o.append.call(l,a,S))}d.consarray&&Object.defineProperty(a,"cons",{enumerable:!1,configurable:!1,value:!0});break;case"{":a=await T(d,v,w);break}return a}function Ue(d,v,w){var a={createSequence:w.base.createSequence};return o.lookup.call(a,v,d.value)}function ue(d){return d.value}function me(d,v,w){var a={options:w.base.options,createSequence:w.base.createSequence},l=a.createSequence();return Array.isArray(v)&&v.outerWrapper&&v.length>0&&(v=v[0]),v!==null&&typeof v=="object"&&!O(v)&&c.keys(v).forEach(function(p){var S=v[p];Array.isArray(S)?(S=ke(S),l=o.append.call(a,l,S)):l.push(S)}),l}function ke(d,v){return typeof v>"u"&&(v=[]),Array.isArray(d)?Array.prototype.forEach.call(d,function(w){ke(w,v)}):v.push(d),v}function ce(d,v,w){var a,l=w.base.createSequence();return typeof v<"u"&&(W(v,l),l.length===1?a=l[0]:a=l),a}function W(d,v){Array.isArray(d)||v.push(d),Array.isArray(d)?Array.prototype.forEach.call(d,function(w){W(w,v)}):d!==null&&typeof d=="object"&&!O(d)&&c.keys(d).forEach(function(w){W(d[w],v)})}function Pe(d,v,w){var a;if(typeof d<"u"&&!g(d))throw{code:"T2001",stack:new Error().stack,value:d};if(typeof v<"u"&&!g(v))throw{code:"T2002",stack:new Error().stack,value:v};if(typeof d>"u"||typeof v>"u")return a;switch(w){case"+":a=d+v;break;case"-":a=d-v;break;case"*":a=d*v;break;case"/":a=d/v;break;case"%":a=d%v;break}return a}function m(d,v,w){var a,l=typeof d,p=typeof v;if(l==="undefined"||p==="undefined")return!1;switch(w){case"=":a=I(d,v);break;case"!=":a=!I(d,v);break}return a}function _(d,v,w){var a,l=typeof d,p=typeof v,S=l==="undefined"||l==="string"||l==="number",x=p==="undefined"||p==="string"||p==="number";if(!S||!x)throw{code:"T2010",stack:new Error().stack,value:l==="string"||l==="number"?v:d};if(!(l==="undefined"||p==="undefined")){if(l!==p)throw{code:"T2009",stack:new Error().stack,value:d,value2:v};switch(w){case"<":a=d<v;break;case"<=":a=d<=v;break;case">":a=d>v;break;case">=":a=d>=v;break}return a}}function Q(d,v){var w=!1;if(typeof d>"u"||typeof v>"u")return!1;Array.isArray(v)||(v=[v]);for(var a=0;a<v.length;a++)if(v[a]===d){w=!0;break}return w}async function ye(d,v,w){var a,l=_e(d);switch(w){case"and":a=l&&_e(await v());break;case"or":a=l||_e(await v());break}return a}function _e(d){var v=o.boolean(d);return typeof v>"u"?!1:v}function De(d,v){var w,a="",l="";return typeof d<"u"&&(a=o.string(d)),typeof v<"u"&&(l=o.string(v)),w=a.concat(l),w}async function T(d,v,w){var a=Object.create(null),l=Object.create(null),p=!!(v&&v.tupleStream),S={options:w.base.options,createSequence:w.base.createSequence};Array.isArray(v)||(w.base.options,v=S.createSequence(v)),v.length===0&&!p&&v.push(void 0);for(var x=0;x<v.length;x++)for(var L=v[x],B=p?z(w,L):w,K=0;K<d.lhs.length;K++){var we=d.lhs[K],oe=await $(we[0],p?L["@"]:L,B);if(typeof oe!="string"&&oe!==void 0)throw{code:"T1003",stack:new Error().stack,position:d.position,value:oe};if(oe!==void 0){if(oe==="_jsonata_lambda"||oe==="_jsonata_function")throw{code:"D1013",stack:new Error().stack,position:d.position,value:oe};var Fe={data:L,exprIndex:K};if(Object.prototype.hasOwnProperty.call(l,oe)){if(l[oe].exprIndex!==K)throw{code:"D1009",stack:new Error().stack,position:d.position,value:oe};l[oe].data=o.append.call(S,l[oe].data,L)}else l[oe]=Fe}}let He=await Promise.all(c.keys(l).map(async(rt,Le)=>{let Ze=l[rt];var Yt=Ze.data,xt=w;if(p){var ds=M(Ze.data,w);Yt=ds["@"],delete ds["@"],xt=z(w,ds)}return w.isParallelCall=Le>0,[rt,await $(d.lhs[Ze.exprIndex][1],Yt,xt)]}));for(let rt of He){var[oe,We]=await rt;typeof We<"u"&&(a[oe]=We)}return a}function M(d,v){if(!Array.isArray(d))return d;var w=Object.create(null),a={options:v.base.options,createSequence:v.base.createSequence};Object.assign(w,d[0]);for(var l=1;l<d.length;l++)for(const p of c.keys(d[l]))w[p]=o.append.call(a,w[p],d[l][p]);return w}function D(d,v,w){var a;if(typeof d<"u"&&!Number.isInteger(d))throw{code:"T2003",stack:new Error().stack,value:d};if(typeof v<"u"&&!Number.isInteger(v))throw{code:"T2004",stack:new Error().stack,value:v};if(typeof d>"u"||typeof v>"u"||d>v)return a;var l=v-d+1;if(l>1e7)throw{code:"D2014",stack:new Error().stack,value:l};if(w.base.options&&l>w.base.options.sequence)throw{code:"D2015",stack:new Error().stack,value:l};a=new Array(l);for(var p=d,S=0;p<=v;p++,S++)a[S]=p;return a.sequence=!0,a}async function j(d,v,w){var a=await $(d.rhs,v,w);return w.bind(d.lhs.value,a),a}async function V(d,v,w){var a,l=await $(d.condition,v,w);return o.boolean(l)?a=await $(d.then,v,w):typeof d.else<"u"&&(a=await $(d.else,v,w)),a}async function H(d,v,w){for(var a,l=Xt(w),p=0;p<d.expressions.length;p++)a=await $(d.expressions[p],v,l);return a}function F(d,v,w){var a=new w.base.RegexEngine(d.value),l=function(p,S){var x;a.lastIndex=S||0;var L=a.exec(p);if(L!==null){if(x={match:L[0],start:L.index,end:L.index+L[0].length,groups:[]},L.length>1)for(var B=1;B<L.length;B++)x.groups.push(L[B]);x.next=function(){if(!(a.lastIndex>=p.length)){var K=l(p,a.lastIndex);if(K&&K.match==="")throw{code:"D1004",stack:new Error().stack,position:d.position,value:d.value.source};return K}}}return x};return l}function Y(d,v,w){var a;return d.value===""?a=v&&v.outerWrapper?v[0]:v:a=w.lookup(d.value),a}async function ae(d,v,w){var a,l=v,p=!!v.tupleStream,S=async function(L,B){for(var K=0,we=0;K===0&&we<d.terms.length;we++){var oe=d.terms[we],Fe=L,He=w;p&&(Fe=L["@"],He=z(w,L));var We=await $(oe.expression,Fe,He);Fe=B,He=w,p&&(Fe=B["@"],He=z(w,B));var rt=await $(oe.expression,Fe,He),Le=typeof We,Ze=typeof rt;if(Le==="undefined"){K=Ze==="undefined"?0:1;continue}if(Ze==="undefined"){K=-1;continue}if(!(Le==="string"||Le==="number")||!(Ze==="string"||Ze==="number"))throw{code:"T2008",stack:new Error().stack,position:d.position,value:Le==="string"||Le==="number"?rt:We};if(Le!==Ze)throw{code:"T2007",stack:new Error().stack,position:d.position,value:We,value2:rt};We!==rt&&(We<rt?K=-1:K=1,oe.descending===!0&&(K=-K))}return K===1},x={environment:w,input:v};return a=await o.sort.apply(x,[l,S]),a}function xe(d,v,w){var a=async function(l){if(!(typeof l>"u")){var p=w.lookup("clone");if(!O(p))throw{code:"T2013",stack:new Error().stack,position:d.position};var S=await $e(p,[l],null,w),x=await $(d.pattern,S,w);if(typeof x<"u"){Array.isArray(x)||(x=[x]);for(var L=0;L<x.length;L++){var B=x[L],K=await $(d.update,B,w),we=typeof K;if(we!=="undefined"){if(we!=="object"||K===null||Array.isArray(K))throw{code:"T2011",stack:new Error().stack,position:d.update.position,value:K};for(const We of c.keys(K))B[We]=K[We]}if(typeof d.delete<"u"){var oe=await $(d.delete,B,w);if(typeof oe<"u"){var Fe=oe;if(Array.isArray(oe)||(oe=[oe]),!f(oe))throw{code:"T2012",stack:new Error().stack,position:d.delete.position,value:Fe};for(var He=0;He<oe.length;He++)typeof B=="object"&&B!==null&&delete B[oe[He]]}}}}return S}};return Z(a,"<(oa):o>")}var ge=h("function($f, $g) { function($x){ $g($f($x)) } }");async function fe(d,v,w){var a,l=await $(d.lhs,v,w);if(d.rhs.type==="function")a=await he(d.rhs,v,w,{context:l});else{var p=await $(d.rhs,v,w);if(!O(p))throw{code:"T2006",stack:new Error().stack,position:d.position,value:p};if(O(l)){var S=await $(ge,null,w);a=await $e(S,[l,p],null,w)}else a=await $e(p,[l],null,w)}return a}async function he(d,v,w,a){var l,p=await $(d.procedure,v,w);if(typeof p>"u"&&d.procedure.type==="path"&&w.lookup(d.procedure.steps[0].value))throw{code:"T1005",stack:new Error().stack,position:d.position,token:d.procedure.steps[0].value};var S=[];typeof a<"u"&&S.push(a.context);for(var x=0;x<d.arguments.length;x++){const B=await $(d.arguments[x],v,w);if(O(B)){const K=async function(...we){return await $e(B,we,null,w)};K.arity=y(B),S.push(K)}else S.push(B)}var L=d.procedure.type==="path"?d.procedure.steps[0].value:d.procedure.value;try{typeof p=="object"&&(p.token=L,p.position=d.position),l=await $e(p,S,v,w)}catch(B){throw B.position||(B.position=d.position),B.token||(B.token=L),B}return l}async function $e(d,v,w,a){var l;for(l=await de(d,v,w,a);N(l)&&l.thunk===!0;){var p=await $(l.body.procedure,l.input,l.environment);l.body.procedure.type==="variable"&&(p.token=l.body.procedure.value),p.position=l.body.procedure.position;for(var S=[],x=0;x<l.body.arguments.length;x++)S.push(await $(l.body.arguments[x],l.input,l.environment));l=await de(p,S,w,a)}return l}async function de(d,v,w,a){var l;try{var p=v;if(d&&(p=_t(d.signature,v,w)),N(d))l=await st(d,p);else if(d&&d._jsonata_function===!0){var S={environment:a,input:w,options:a.base.options,createSequence:a.base.createSequence};l=d.implementation.apply(S,p),U(l)&&(l=l.next().value),P(l)&&(l=await l)}else if(typeof d=="function")l=d.apply(w,p),P(l)&&(l=await l);else throw{code:"T1006",stack:new Error().stack}}catch(x){throw d&&(typeof x.token>"u"&&typeof d.token<"u"&&(x.token=d.token),x.position=d.position||x.position),x}return l}function ft(d,v,w){var a={_jsonata_lambda:!0,input:v,environment:w,arguments:d.arguments,signature:d.signature,body:d.body};return d.thunk===!0&&(a.thunk=!0),a.apply=async function(l,p){return await $e(a,p,v,l?l.environment:w)},a}async function Kt(d,v,w){for(var a,l=[],p=0;p<d.arguments.length;p++){var S=d.arguments[p];S.type==="operator"&&S.value==="?"?l.push(S):l.push(await $(S,v,w))}var x=await $(d.procedure,v,w);if(typeof x>"u"&&d.procedure.type==="path"&&w.lookup(d.procedure.steps[0].value))throw{code:"T1007",stack:new Error().stack,position:d.position,token:d.procedure.steps[0].value};if(N(x))a=Pt(x,l,w);else if(x&&x._jsonata_function===!0)a=_s(x.implementation,l,w);else if(typeof x=="function")a=_s(x,l,w);else throw{code:"T1008",stack:new Error().stack,position:d.position,token:d.procedure.type==="path"?d.procedure.steps[0].value:d.procedure.value};return a}function _t(d,v,w){if(typeof d>"u")return v;var a=d.validate(v,w);return a}async function st(d,v){var w,a=Xt(d.environment);return Array.prototype.forEach.call(d.arguments,function(l,p){a.bind(l.value,v[p])}),typeof d.body=="function"?w=await $r(d.body,a):w=await $(d.body,d.input,a),w}function Pt(d,v,w){var a=Xt(d.environment||w),l=[];Array.prototype.forEach.call(d.arguments,function(S,x){var L=v[x];L&&L.type==="operator"&&L.value==="?"?l.push(S):a.bind(S.value,L)});var p={_jsonata_lambda:!0,input:d.input,environment:a,arguments:l,body:d.body};return p}function _s(d,v,w){var a=Dr(d);a=a.map(function(x){return"$"+x.trim()});var l="function("+a.join(", ")+"){ _ }",p=h(l);p.body=d;var S=Pt(p,v,w);return S}async function $r(d,v){var w=Dr(d),a=w.map(function(S){return v.lookup(S.trim())}),l={environment:v,createSequence:v.base.createSequence},p=d.apply(l,a);return P(p)&&(p=await p),p}function Dr(d){var v=d.toString(),w=/\(([^)]*)\)/.exec(v)[1],a=w.split(",");return a}function Z(d,v){var w={_jsonata_function:!0,implementation:d};return typeof v<"u"&&(w.signature=b(v)),w}async function en(d,v){if(!(typeof d>"u")){var w=this.input;typeof v<"u"&&(w=v,Array.isArray(w)&&!E(w)&&(w=this.createSequence(w),w.outerWrapper=!0));try{var a=h(d,!1)}catch(p){throw hs(p),{stack:new Error().stack,code:"D3120",value:p.message,error:p}}try{var l=await $(a,w,this.environment)}catch(p){throw hs(p),{stack:new Error().stack,code:"D3121",value:p.message,error:p}}return l}}function tn(d){if(!(typeof d>"u"))return JSON.parse(o.string(d))}function Xt(d){var v=Object.create(null);const w={bind:function(l,p){v[l]=p},lookup:function(l){var p;return Object.prototype.hasOwnProperty.call(v,l)?p=v[l]:d&&(p=d.lookup(l)),p},timestamp:d?d.timestamp:null,async:d?d.async:!1,isParallelCall:d?d.isParallelCall:!1,global:d?d.global:{ancestry:[null]}};if(d){var a=d.lookup(Symbol.for("jsonata.__createFrame_push"));a&&a(d,w),w.base=d.base}return w}C.bind("sum",Z(o.sum,"<a<n>:n>")),C.bind("count",Z(o.count,"<a:n>")),C.bind("max",Z(o.max,"<a<n>:n>")),C.bind("min",Z(o.min,"<a<n>:n>")),C.bind("average",Z(o.average,"<a<n>:n>")),C.bind("string",Z(o.string,"<x-b?:s>")),C.bind("substring",Z(o.substring,"<s-nn?:s>")),C.bind("substringBefore",Z(o.substringBefore,"<s-s:s>")),C.bind("substringAfter",Z(o.substringAfter,"<s-s:s>")),C.bind("lowercase",Z(o.lowercase,"<s-:s>")),C.bind("uppercase",Z(o.uppercase,"<s-:s>")),C.bind("length",Z(o.length,"<s-:n>")),C.bind("trim",Z(o.trim,"<s-:s>")),C.bind("pad",Z(o.pad,"<s-ns?:s>")),C.bind("match",Z(o.match,"<s-f<s:o>n?:a<o>>")),C.bind("contains",Z(o.contains,"<s-(sf):b>")),C.bind("replace",Z(o.replace,"<s-(sf)(sf)n?:s>")),C.bind("split",Z(o.split,"<s-(sf)n?:a<s>>")),C.bind("join",Z(o.join,"<a<s>s?:s>")),C.bind("formatNumber",Z(o.formatNumber,"<n-so?:s>")),C.bind("formatBase",Z(o.formatBase,"<n-n?:s>")),C.bind("formatInteger",Z(n.formatInteger,"<n-s:s>")),C.bind("parseInteger",Z(n.parseInteger,"<s-s:n>")),C.bind("number",Z(o.number,"<(nsb)-:n>")),C.bind("floor",Z(o.floor,"<n-:n>")),C.bind("ceil",Z(o.ceil,"<n-:n>")),C.bind("round",Z(o.round,"<n-n?:n>")),C.bind("abs",Z(o.abs,"<n-:n>")),C.bind("sqrt",Z(o.sqrt,"<n-:n>")),C.bind("power",Z(o.power,"<n-n:n>")),C.bind("random",Z(o.random,"<:n>")),C.bind("boolean",Z(o.boolean,"<x-:b>")),C.bind("not",Z(o.not,"<x-:b>")),C.bind("map",Z(o.map,"<af>")),C.bind("zip",Z(o.zip,"<a+>")),C.bind("filter",Z(o.filter,"<af>")),C.bind("single",Z(o.single,"<af?>")),C.bind("reduce",Z(o.foldLeft,"<afj?:j>")),C.bind("sift",Z(o.sift,"<o-f?:o>")),C.bind("keys",Z(o.keys,"<x-:a<s>>")),C.bind("lookup",Z(o.lookup,"<x-s:x>")),C.bind("append",Z(o.append,"<xx:a>")),C.bind("exists",Z(o.exists,"<x:b>")),C.bind("spread",Z(o.spread,"<x-:a<o>>")),C.bind("merge",Z(o.merge,"<a<o>:o>")),C.bind("reverse",Z(o.reverse,"<a:a>")),C.bind("each",Z(o.each,"<o-f:a>")),C.bind("error",Z(o.error,"<s?:x>")),C.bind("assert",Z(o.assert,"<bs?:x>")),C.bind("type",Z(o.type,"<x:s>")),C.bind("sort",Z(o.sort,"<af?:a>")),C.bind("shuffle",Z(o.shuffle,"<a:a>")),C.bind("distinct",Z(o.distinct,"<x:x>")),C.bind("base64encode",Z(o.base64encode,"<s-:s>")),C.bind("base64decode",Z(o.base64decode,"<s-:s>")),C.bind("encodeUrlComponent",Z(o.encodeUrlComponent,"<s-:s>")),C.bind("encodeUrl",Z(o.encodeUrl,"<s-:s>")),C.bind("decodeUrlComponent",Z(o.decodeUrlComponent,"<s-:s>")),C.bind("decodeUrl",Z(o.decodeUrl,"<s-:s>")),C.bind("eval",Z(en,"<sx?:x>")),C.bind("toMillis",Z(n.toMillis,"<s-s?:n>")),C.bind("fromMillis",Z(n.fromMillis,"<n-s?s?:s>")),C.bind("clone",Z(tn,"<(oa)-:o>"));var li={S0101:"String literal must be terminated by a matching quote",S0102:"Number out of range: {{token}}",S0103:"Unsupported escape sequence: \\{{token}}",S0104:"The escape sequence \\u must be followed by 4 hex digits",S0105:"Quoted property name must be terminated with a backquote (`)",S0106:"Comment has no closing tag",S0201:"Syntax error: {{token}}",S0202:"Expected {{value}}, got {{token}}",S0203:"Expected {{value}} before end of expression",S0204:"Unknown operator: {{token}}",S0205:"Unexpected token: {{token}}",S0206:"Unknown expression type: {{token}}",S0207:"Unexpected end of expression",S0208:"Parameter {{value}} of function definition must be a variable name (start with $)",S0209:"A predicate cannot follow a grouping expression in a step",S0210:"Each step can only have one grouping expression",S0211:"The symbol {{token}} cannot be used as a unary operator",S0212:"The left side of := must be a variable name (start with $)",S0213:"The literal value {{value}} cannot be used as a step within a path expression",S0214:"The right side of {{token}} must be a variable name (start with $)",S0215:"A context variable binding must precede any predicates on a step",S0216:"A context variable binding must precede the 'order-by' clause on a step",S0217:"The object representing the 'parent' cannot be derived from this expression",S0301:"Empty regular expressions are not allowed",S0302:"No terminating / in regular expression",S0402:"Choice groups containing parameterized types are not supported",S0401:"Type parameters can only be applied to functions and arrays",S0500:"Attempted to evaluate an expression containing syntax error(s)",T0410:"Argument {{index}} of function {{token}} does not match function signature",T0411:"Context value is not a compatible type with argument {{index}} of function {{token}}",T0412:"Argument {{index}} of function {{token}} must be an array of {{type}}",D1001:"Number out of range: {{value}}",D1002:"Cannot negate a non-numeric value: {{value}}",T1003:"Key in object structure must evaluate to a string; got: {{value}}",D1004:"Regular expression matches zero length string",T1005:"Attempted to invoke a non-function. Did you mean ${{{token}}}?",T1006:"Attempted to invoke a non-function",T1007:"Attempted to partially apply a non-function. Did you mean ${{{token}}}?",T1008:"Attempted to partially apply a non-function",D1009:"Multiple key definitions evaluate to same key: {{value}}",T1010:"The matcher function argument passed to function {{token}} does not return the correct object structure",D1011:"Stack overflow. Check for non-terminating recursive function. Consider rewriting as tail-recursive",D1012:"Evaluation timeout after {{value}} milliseconds. Check for infinite loop",D1013:"Object property names starting with _jsonata_ are reserved for internal use: {{value}}",T2001:"The left side of the {{token}} operator must evaluate to a number",T2002:"The right side of the {{token}} operator must evaluate to a number",T2003:"The left side of the range operator (..) must evaluate to an integer",T2004:"The right side of the range operator (..) must evaluate to an integer",D2005:"The left side of := must be a variable name (start with $)",T2006:"The right side of the function application operator ~> must be a function",T2007:"Type mismatch when comparing values {{value}} and {{value2}} in order-by clause",T2008:"The expressions within an order-by clause must evaluate to numeric or string values",T2009:"The values {{value}} and {{value2}} either side of operator {{token}} must be of the same data type",T2010:"The expressions either side of operator {{token}} must evaluate to numeric or string values",T2011:"The insert/update clause of the transform expression must evaluate to an object: {{value}}",T2012:"The delete clause of the transform expression must evaluate to a string or array of strings: {{value}}",T2013:"The transform expression clones the input object using the $clone() function. This has been overridden in the current scope by a non-function.",D2014:"The size of the sequence allocated by the range operator (..) must not exceed 1e7. Attempted to allocate {{value}}.",D2015:"The maximum sequence length of {{value}} was exceeded.",D3001:"Attempting to invoke string function on Infinity or NaN",D3010:"Second argument of replace function cannot be an empty string",D3011:"Fourth argument of replace function must evaluate to a positive number",D3012:"Attempted to replace a matched string with a non-string value",D3020:"Third argument of split function must evaluate to a positive number",D3030:"Unable to cast value to a number: {{value}}",D3040:"Third argument of match function must evaluate to a positive number",D3050:"The second argument of reduce function must be a function with at least two arguments",D3060:"The sqrt function cannot be applied to a negative number: {{value}}",D3061:"The power function has resulted in a value that cannot be represented as a JSON number: base={{value}}, exponent={{exp}}",D3070:"The single argument form of the sort function can only be applied to an array of strings or an array of numbers. Use the second argument to specify a comparison function",D3080:"The picture string must only contain a maximum of two sub-pictures",D3081:"The sub-picture must not contain more than one instance of the 'decimal-separator' character",D3082:"The sub-picture must not contain more than one instance of the 'percent' character",D3083:"The sub-picture must not contain more than one instance of the 'per-mille' character",D3084:"The sub-picture must not contain both a 'percent' and a 'per-mille' character",D3085:"The mantissa part of a sub-picture must contain at least one character that is either an 'optional digit character' or a member of the 'decimal digit family'",D3086:"The sub-picture must not contain a passive character that is preceded by an active character and that is followed by another active character",D3087:"The sub-picture must not contain a 'grouping-separator' character that appears adjacent to a 'decimal-separator' character",D3088:"The sub-picture must not contain a 'grouping-separator' at the end of the integer part",D3089:"The sub-picture must not contain two adjacent instances of the 'grouping-separator' character",D3090:"The integer part of the sub-picture must not contain a member of the 'decimal digit family' that is followed by an instance of the 'optional digit character'",D3091:"The fractional part of the sub-picture must not contain an instance of the 'optional digit character' that is followed by a member of the 'decimal digit family'",D3092:"A sub-picture that contains a 'percent' or 'per-mille' character must not contain a character treated as an 'exponent-separator'",D3093:"The exponent part of the sub-picture must comprise only of one or more characters that are members of the 'decimal digit family'",D3100:"The radix of the formatBase function must be between 2 and 36. It was given {{value}}",D3110:"The argument of the toMillis function must be an ISO 8601 formatted timestamp. Given {{value}}",D3120:"Syntax error in expression passed to function eval: {{value}}",D3121:"Dynamic error evaluating the expression passed to function eval: {{value}}",D3130:"Formatting or parsing an integer as a sequence starting with {{value}} is not supported by this implementation",D3131:"In a decimal digit pattern, all digits must be from the same decimal group",D3132:"Unknown component specifier {{value}} in date/time picture string",D3133:"The 'name' modifier can only be applied to months and days in the date/time picture string, not {{value}}",D3134:"The timezone integer format specifier cannot have more than four digits",D3135:"No matching closing bracket ']' in date/time picture string",D3136:"The date/time picture string is missing specifiers required to parse the timestamp",D3137:"{{{message}}}",D3138:"The $single() function expected exactly 1 matching result. Instead it matched more.",D3139:"The $single() function expected exactly 1 matching result. Instead it matched 0.",D3140:"Malformed URL passed to ${{{functionName}}}(): {{value}}",D3141:"{{{message}}}"};function hs(d){var v=li[d.code];if(typeof v<"u"){var w=v.replace(/\{\{\{([^}]+)}}}/g,function(){return d[arguments[1]]});w=w.replace(/\{\{([^}]+)}}/g,function(){return JSON.stringify(d[arguments[1]])}),d.message=w}}function ar(d,v){var w,a;try{w=h(d,v&&v.recover),a=w.errors,delete w.errors}catch(S){throw hs(S),S}var l=Xt(C),p=new Date;return l.bind("now",Z(function(S,x){return n.fromMillis(p.getTime(),S,x)},"<s?s?:s>")),l.bind("millis",Z(function(){return p.getTime()},"<:n>")),{evaluate:async function(S,x,L){if(typeof a<"u"){var B={code:"S0500",position:0};throw hs(B),B}const K=Xt(l);for(const oe of c.keys(x))K.bind(oe,x[oe]);if(K.bind("$",S),p=new Date,K.timestamp=p,K.options=v,K.createSequence=function(){var oe=[];return v&&v.sequence&&(oe.push=function(...Fe){if(oe.length+Fe.length>v.sequence)throw{code:"D2015",stack:new Error().stack,value:v.sequence};return Array.prototype.push.apply(oe,Fe)}),oe.sequence=!0,arguments.length===1&&oe.push(arguments[0]),oe},Array.isArray(S)&&!E(S)&&(S=K.createSequence(S),S.outerWrapper=!0),v&&(v.timeout||v.stack)){const oe=Date.now();K.guardrails=function(){if(v.stack>0&&K.depth>v.stack)throw{code:"D1011",value:v.stack,stack:new Error().stack};if(v.timeout>0&&Date.now()-oe>v.timeout)throw{code:"D1012",value:v.timeout,stack:new Error().stack}}}else K.guardrails=function(){};K.base=K,K.depth=0,v&&v.RegexEngine?K.RegexEngine=v.RegexEngine:K.RegexEngine=RegExp;var we;try{return we=await $(w,S,K),typeof L=="function"&&L(null,we),we}catch(oe){throw hs(oe),oe}},assign:function(S,x){l.bind(S,x)},registerFunction:function(S,x,L){var B=Z(x,L);l.bind(S,B)},ast:function(){return w},errors:function(){return a}}}return ar.parser=h,ar})();r.exports=k},{"./datetime":1,"./functions":2,"./parser":4,"./signature":5,"./utils":6}],4:[function(s,r,i){var n=s("./signature");const o=(()=>{var c={".":75,"[":80,"]":0,"{":70,"}":0,"(":80,")":0,",":0,"@":80,"#":80,";":80,":":80,"?":20,"+":50,"-":50,"*":60,"/":60,"%":60,"|":20,"=":40,"<":40,">":40,"^":40,"**":60,"..":20,":=":10,"!=":40,"<=":40,">=":40,"~>":40,"?:":40,"??":40,and:30,or:25,in:40,"&":50,"!":0,"~":0},h={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
73
|
+
`,r:"\r",t:" "},b=function(g){var f=0,A=g.length,E=function(U,P){var y={type:U,value:P,position:f};return y},O=function(){for(var U=f,P=0,y,I,C=function(G){if(g.charAt(G)==="/"&&P===0){for(var z=0;g.charAt(G-(z+1))==="\\";)z++;if(z%2===0)return!0}return!1};f<A;){var $=g.charAt(f);if(C(f)){if(y=g.substring(U,f),y==="")throw{code:"S0301",stack:new Error().stack,position:f};for(f++,$=g.charAt(f),U=f;$==="i"||$==="m";)f++,$=g.charAt(f);return I=g.substring(U,f)+"g",new RegExp(y,I)}($==="("||$==="["||$==="{")&&g.charAt(f-1)!=="\\"&&P++,($===")"||$==="]"||$==="}")&&g.charAt(f-1)!=="\\"&&P--,f++}throw{code:"S0302",stack:new Error().stack,position:f}},N=function(U){if(f>=A)return null;for(var P=g.charAt(f);f<A&&`
|
|
74
|
+
\r\v`.indexOf(P)>-1;)f++,P=g.charAt(f);if(P==="/"&&g.charAt(f+1)==="*"){var y=f;for(f+=2,P=g.charAt(f);!(P==="*"&&g.charAt(f+1)==="/");)if(P=g.charAt(++f),f>=A)throw{code:"S0106",stack:new Error().stack,position:y};return f+=2,P=g.charAt(f),N(U)}if(U!==!0&&P==="/")return f++,E("regex",O());if(P==="."&&g.charAt(f+1)===".")return f+=2,E("operator","..");if(P===":"&&g.charAt(f+1)==="=")return f+=2,E("operator",":=");if(P==="!"&&g.charAt(f+1)==="=")return f+=2,E("operator","!=");if(P===">"&&g.charAt(f+1)==="=")return f+=2,E("operator",">=");if(P==="<"&&g.charAt(f+1)==="=")return f+=2,E("operator","<=");if(P==="*"&&g.charAt(f+1)==="*")return f+=2,E("operator","**");if(P==="~"&&g.charAt(f+1)===">")return f+=2,E("operator","~>");if(P==="?"&&g.charAt(f+1)===":")return f+=2,E("operator","?:");if(P==="?"&&g.charAt(f+1)==="?")return f+=2,E("operator","??");if(Object.prototype.hasOwnProperty.call(c,P))return f++,E("operator",P);if(P==='"'||P==="'"){var I=P;f++;for(var C="";f<A;){if(P=g.charAt(f),P==="\\")if(f++,P=g.charAt(f),Object.prototype.hasOwnProperty.call(h,P))C+=h[P];else if(P==="u"){var $=g.substr(f+1,4);if(/^[0-9a-fA-F]+$/.test($)){var G=parseInt($,16);C+=String.fromCharCode(G),f+=4}else throw{code:"S0104",stack:new Error().stack,position:f}}else throw{code:"S0103",stack:new Error().stack,position:f,token:P};else{if(P===I)return f++,E("string",C);C+=P}f++}throw{code:"S0101",stack:new Error().stack,position:f}}var z=/^-?(0|([1-9][0-9]*))(\.[0-9]+)?([Ee][-+]?[0-9]+)?/,ne=z.exec(g.substring(f));if(ne!==null){var se=parseFloat(ne[0]);if(!isNaN(se)&&isFinite(se))return f+=ne[0].length,E("number",se);throw{code:"S0102",stack:new Error().stack,position:f,token:ne[0]}}var ie;if(P==="`"){f++;var q=g.indexOf("`",f);if(q!==-1)return ie=g.substring(f,q),f=q+1,E("name",ie);throw f=A,{code:"S0105",stack:new Error().stack,position:f}}for(var le=f,pe;;)if(pe=g.charAt(le),le===A||`
|
|
75
|
+
\r\v`.indexOf(pe)>-1||Object.prototype.hasOwnProperty.call(c,pe)){if(g.charAt(f)==="$")return ie=g.substring(f+1,le),f=le,E("variable",ie);switch(ie=g.substring(f,le),f=le,ie){case"or":case"in":case"and":return E("operator",ie);case"true":return E("value",!0);case"false":return E("value",!1);case"null":return E("value",null);default:return f===A&&ie===""?null:E("name",ie)}}else le++};return N},k=function(g,f){var A,E,O=Object.create(null),N=[],U=function(){var m=[];A.id!=="(end)"&&m.push({type:A.type,value:A.value,position:A.position});for(var _=E();_!==null;)m.push(_),_=E();return m},P={nud:function(){var m={code:"S0211",token:this.value,position:this.position};if(f)return m.remaining=U(),m.type="error",N.push(m),m;throw m.stack=new Error().stack,m}},y=function(m,_){var Q=O[m];return _=_||0,Q?_>=Q.lbp&&(Q.lbp=_):(Q=Object.create(P),Q.id=Q.value=m,Q.lbp=_,O[m]=Q),Q},I=function(m){if(f){m.remaining=U(),N.push(m);var _=O["(error)"];return A=Object.create(_),A.error=m,A.type="(error)",A}else throw m.stack=new Error().stack,m},C=function(m,_){if(m&&A.id!==m){var Q;A.id==="(end)"?Q="S0203":Q="S0202";var ye={code:Q,position:A.position,token:A.value,value:m};return I(ye)}var _e=E(_);if(_e===null)return A=O["(end)"],A.position=g.length,A;var De=_e.value,T=_e.type,M;switch(T){case"name":case"variable":M=O["(name)"];break;case"operator":if(M=O[De],!M)return I({code:"S0204",stack:new Error().stack,position:_e.position,token:De});break;case"string":case"number":case"value":M=O["(literal)"];break;case"regex":T="regex",M=O["(regex)"];break;default:return I({code:"S0205",stack:new Error().stack,position:_e.position,token:De})}return A=Object.create(M),A.value=De,A.type=T,A.position=_e.position,A},$=function(m){var _,Q=A;for(C(null,!0),_=Q.nud();m<A.lbp;)Q=A,C(),_=Q.led(_);return _},G=function(m){var _=y(m,0);_.nud=function(){return this}},z=function(m,_,Q){var ye=_||c[m],_e=y(m,ye);return _e.led=Q||function(De){return this.lhs=De,this.rhs=$(ye),this.type="binary",this},_e},ne=function(m,_,Q){var ye=y(m,_);return ye.led=Q,ye},se=function(m,_){var Q=y(m);return Q.nud=_||function(){return this.expression=$(70),this.type="unary",this},Q};G("(end)"),G("(name)"),G("(literal)"),G("(regex)"),y(":"),y(";"),y(","),y(")"),y("]"),y("}"),y(".."),z("."),z("+"),z("-"),z("*"),z("/"),z("%"),z("="),z("<"),z(">"),z("!="),z("<="),z(">="),z("&"),z("and"),z("or"),z("in"),G("and"),G("or"),G("in"),se("-"),z("~>"),z("??",c["??"],function(m){return this.type="condition",this.condition={type:"function",value:"(",procedure:{type:"variable",value:"exists"},arguments:[JSON.parse(JSON.stringify(m))]},this.then=m,this.else=$(0),this}),ne("(error)",10,function(m){return this.lhs=m,this.error=A.error,this.remaining=U(),this.type="error",this}),se("*",function(){return this.type="wildcard",this}),se("**",function(){return this.type="descendant",this}),se("%",function(){return this.type="parent",this}),z("(",c["("],function(m){if(this.procedure=m,this.type="function",this.arguments=[],A.id!==")")for(;A.type==="operator"&&A.id==="?"?(this.type="partial",this.arguments.push(A),C("?")):this.arguments.push($(0)),A.id===",";)C(",");if(C(")",!0),m.type==="name"&&(m.value==="function"||m.value==="λ")){if(this.arguments.forEach(function(De,T){if(De.type!=="variable")return I({code:"S0208",stack:new Error().stack,position:De.position,token:De.value,value:T+1})}),this.type="lambda",A.id==="<"){for(var _=A.position,Q=1,ye="<";Q>0&&A.id!=="{"&&A.id!=="(end)";){var _e=C();_e.id===">"?Q--:_e.id==="<"&&Q++,ye+=_e.value}C(">");try{this.signature=n(ye)}catch(De){return De.position=_+De.offset,I(De)}}C("{"),this.body=$(0),C("}")}return this}),se("(",function(){for(var m=[];A.id!==")"&&(m.push($(0)),A.id===";");)C(";");return C(")",!0),this.type="block",this.expressions=m,this}),se("[",function(){var m=[];if(A.id!=="]")for(;;){var _=$(0);if(A.id===".."){var Q={type:"binary",value:"..",position:A.position,lhs:_};C(".."),Q.rhs=$(0),_=Q}if(m.push(_),A.id!==",")break;C(",")}return C("]",!0),this.expressions=m,this.type="unary",this}),z("[",c["["],function(m){if(A.id==="]"){for(var _=m;_&&_.type==="binary"&&_.value==="[";)_=_.lhs;return _.keepArray=!0,C("]"),m}else return this.lhs=m,this.rhs=$(c["]"]),this.type="binary",C("]",!0),this}),z("^",c["^"],function(m){C("(");for(var _=[];;){var Q={descending:!1};if(A.id==="<"?C("<"):A.id===">"&&(Q.descending=!0,C(">")),Q.expression=$(0),_.push(Q),A.id!==",")break;C(",")}return C(")"),this.lhs=m,this.rhs=_,this.type="binary",this});var ie=function(m){var _=[];if(A.id!=="}")for(;;){var Q=$(0);C(":");var ye=$(0);if(_.push([Q,ye]),A.id!==",")break;C(",")}return C("}",!0),typeof m>"u"?(this.lhs=_,this.type="unary"):(this.lhs=m,this.rhs=_,this.type="binary"),this};se("{",ie),z("{",c["{"],ie),ne(":=",c[":="],function(m){return m.type!=="variable"?I({code:"S0212",stack:new Error().stack,position:m.position,token:m.value}):(this.lhs=m,this.rhs=$(c[":="]-1),this.type="binary",this)}),z("@",c["@"],function(m){return this.lhs=m,this.rhs=$(c["@"]),this.rhs.type!=="variable"?I({code:"S0214",stack:new Error().stack,position:this.rhs.position,token:"@"}):(this.type="binary",this)}),z("#",c["#"],function(m){return this.lhs=m,this.rhs=$(c["#"]),this.rhs.type!=="variable"?I({code:"S0214",stack:new Error().stack,position:this.rhs.position,token:"#"}):(this.type="binary",this)}),z("?",c["?"],function(m){return this.type="condition",this.condition=m,this.then=$(0),A.id===":"&&(C(":"),this.else=$(0)),this}),z("?:",c["?:"],function(m){return this.type="condition",this.condition=JSON.parse(JSON.stringify(m)),this.then=m,this.else=$(0),this}),se("|",function(){return this.type="transform",this.pattern=$(0),C("|"),this.update=$(0),A.id===","&&(C(","),this.delete=$(0)),C("|"),this});var q=function(m){var _;if(m.type==="function"&&!m.predicate){var Q={type:"lambda",thunk:!0,arguments:[],position:m.position};Q.body=m,_=Q}else if(m.type==="condition")m.then=q(m.then),typeof m.else<"u"&&(m.else=q(m.else)),_=m;else if(m.type==="block"){var ye=m.expressions.length;ye>0&&(m.expressions[ye-1]=q(m.expressions[ye-1])),_=m}else _=m;return _},le=0,pe=0,Ue=[],ue=function(m,_){switch(m.type){case"name":case"wildcard":_.level--,_.level===0&&(typeof m.ancestor>"u"||(Ue[_.index].slot.label=m.ancestor.label),m.ancestor=_,m.tuple=!0);break;case"parent":_.level++;break;case"block":m.expressions.length>0&&(m.tuple=!0,_=ue(m.expressions[m.expressions.length-1],_));break;case"path":m.tuple=!0;var Q=m.steps.length-1;for(_=ue(m.steps[Q--],_);_.level>0&&Q>=0;)_=ue(m.steps[Q--],_);break;default:throw{code:"S0217",token:m.type,position:m.position}}return _},me=function(m,_){if(typeof _.seekingParent<"u"||_.type==="parent"){var Q=typeof _.seekingParent<"u"?_.seekingParent:[];_.type==="parent"&&Q.push(_.slot),typeof m.seekingParent>"u"?m.seekingParent=Q:Array.prototype.push.apply(m.seekingParent,Q)}},ke=function(m){var _=m.steps.length-1,Q=m.steps[_],ye=typeof Q.seekingParent<"u"?Q.seekingParent:[];Q.type==="parent"&&ye.push(Q.slot);for(var _e=0;_e<ye.length;_e++){var De=ye[_e];for(_=m.steps.length-2;De.level>0;){if(_<0){typeof m.seekingParent>"u"?m.seekingParent=[De]:m.seekingParent.push(De);break}for(var T=m.steps[_--];_>=0&&T.focus&&m.steps[_].focus;)T=m.steps[_--];De=ue(T,De)}}},ce=function(m){var _;switch(m.type){case"binary":switch(m.value){case".":var Q=ce(m.lhs);Q.type==="path"?_=Q:_={type:"path",steps:[Q]},Q.type==="parent"&&(_.seekingParent=[Q.slot]);var ye=ce(m.rhs);ye.type==="path"?Array.prototype.push.apply(_.steps,ye.steps):(typeof ye.predicate<"u"&&(ye.stages=ye.predicate,delete ye.predicate),_.steps.push(ye)),_.steps.filter(function(Y){if(Y.type==="number"||Y.type==="value")throw{code:"S0213",stack:new Error().stack,position:Y.position,value:Y.value};return Y.type==="string"}).forEach(function(Y){Y.type="name"}),_.steps.filter(function(Y){return Y.keepArray===!0}).length>0&&(_.keepSingletonArray=!0);var _e=_.steps[0];_e.type==="unary"&&_e.value==="["&&(_e.consarray=!0);var De=_.steps[_.steps.length-1];De.type==="unary"&&De.value==="["&&(De.consarray=!0),ke(_);break;case"[":_=ce(m.lhs);var T=_,M="predicate";if(_.type==="path"&&(T=_.steps[_.steps.length-1],M="stages"),typeof T.group<"u")throw{code:"S0209",stack:new Error().stack,position:m.position};typeof T[M]>"u"&&(T[M]=[]);var D=ce(m.rhs);typeof D.seekingParent<"u"&&(D.seekingParent.forEach(Y=>{Y.level===1?ue(T,Y):Y.level--}),me(T,D)),T[M].push({type:"filter",expr:D,position:m.position});break;case"{":if(_=ce(m.lhs),typeof _.group<"u")throw{code:"S0210",stack:new Error().stack,position:m.position};_.group={lhs:m.rhs.map(function(Y){return[ce(Y[0]),ce(Y[1])]}),position:m.position};break;case"^":_=ce(m.lhs),_.type!=="path"&&(_={type:"path",steps:[_]});var j={type:"sort",position:m.position};j.terms=m.rhs.map(function(Y){var ae=ce(Y.expression);return me(j,ae),{descending:Y.descending,expression:ae}}),_.steps.push(j),ke(_);break;case":=":_={type:"bind",value:m.value,position:m.position},_.lhs=ce(m.lhs),_.rhs=ce(m.rhs),me(_,_.rhs);break;case"@":if(_=ce(m.lhs),T=_,_.type==="path"&&(T=_.steps[_.steps.length-1]),typeof T.stages<"u"||typeof T.predicate<"u")throw{code:"S0215",stack:new Error().stack,position:m.position};if(T.type==="sort")throw{code:"S0216",stack:new Error().stack,position:m.position};m.keepArray&&(T.keepArray=!0),T.focus=m.rhs.value,T.tuple=!0;break;case"#":_=ce(m.lhs),T=_,_.type==="path"?T=_.steps[_.steps.length-1]:(_={type:"path",steps:[_]},typeof T.predicate<"u"&&(T.stages=T.predicate,delete T.predicate)),typeof T.stages>"u"?T.index=m.rhs.value:T.stages.push({type:"index",value:m.rhs.value,position:m.position}),T.tuple=!0;break;case"~>":_={type:"apply",value:m.value,position:m.position},_.lhs=ce(m.lhs),_.rhs=ce(m.rhs),_.keepArray=_.lhs.keepArray||_.rhs.keepArray;break;default:_={type:m.type,value:m.value,position:m.position},_.lhs=ce(m.lhs),_.rhs=ce(m.rhs),me(_,_.lhs),me(_,_.rhs)}break;case"unary":_={type:m.type,value:m.value,position:m.position},m.value==="["?_.expressions=m.expressions.map(function(Y){var ae=ce(Y);return me(_,ae),ae}):m.value==="{"?_.lhs=m.lhs.map(function(Y){var ae=ce(Y[0]);me(_,ae);var xe=ce(Y[1]);return me(_,xe),[ae,xe]}):(_.expression=ce(m.expression),m.value==="-"&&_.expression.type==="number"?(_=_.expression,_.value=-_.value):me(_,_.expression));break;case"function":case"partial":_={type:m.type,name:m.name,value:m.value,position:m.position},_.arguments=m.arguments.map(function(Y){var ae=ce(Y);return me(_,ae),ae}),_.procedure=ce(m.procedure);break;case"lambda":_={type:m.type,arguments:m.arguments,signature:m.signature,position:m.position};var V=ce(m.body);_.body=q(V);break;case"condition":_={type:m.type,position:m.position},_.condition=ce(m.condition),me(_,_.condition),_.then=ce(m.then),me(_,_.then),typeof m.else<"u"&&(_.else=ce(m.else),me(_,_.else));break;case"transform":_={type:m.type,position:m.position},_.pattern=ce(m.pattern),_.update=ce(m.update),typeof m.delete<"u"&&(_.delete=ce(m.delete));break;case"block":_={type:m.type,position:m.position},_.expressions=m.expressions.map(function(Y){var ae=ce(Y);return me(_,ae),(ae.consarray||ae.type==="path"&&ae.steps[0].consarray)&&(_.consarray=!0),ae});break;case"name":_={type:"path",steps:[m]},m.keepArray&&(_.keepSingletonArray=!0);break;case"parent":_={type:"parent",slot:{label:"!"+le++,level:1,index:pe++}},Ue.push(_);break;case"string":case"number":case"value":case"wildcard":case"descendant":case"variable":case"regex":_=m;break;case"operator":if(m.value==="and"||m.value==="or"||m.value==="in")m.type="name",_=ce(m);else if(m.value==="?")_=m;else throw{code:"S0201",stack:new Error().stack,position:m.position,token:m.value};break;case"error":_=m,m.lhs&&(_=ce(m.lhs));break;default:var H="S0206";m.id==="(end)"&&(H="S0207");var F={code:H,position:m.position,token:m.value};if(f)return N.push(F),{type:"error",error:F};throw F.stack=new Error().stack,F}return m.keepArray&&(_.keepArray=!0),_};E=b(g),C();var W=$(0);if(A.id!=="(end)"){var Pe={code:"S0201",position:A.position,token:A.value};I(Pe)}if(W=ce(W),W.type==="parent"||typeof W.seekingParent<"u")throw{code:"S0217",token:W.type,position:W.position};return N.length>0&&(W.errors=N),W};return k})();r.exports=o},{"./signature":5}],5:[function(s,r,i){var n=s("./utils");const o=(()=>{var c={a:"arrays",b:"booleans",f:"functions",n:"numbers",o:"objects",s:"strings"};function h(b){for(var k=1,g=[],f=Object.create(null),A=f;k<b.length;){var E=b.charAt(k);if(E===":")break;var O=function(){g.push(f),A=f,f=Object.create(null)},N=function(z,ne,se,ie){for(var q=1,le=ne;le<z.length;)if(le++,E=z.charAt(le),E===ie){if(q--,q===0)break}else E===se&&q++;return le};switch(E){case"s":case"n":case"b":case"l":case"o":f.regex="["+E+"m]",f.type=E,O();break;case"a":f.regex="[asnblfom]",f.type=E,f.array=!0,O();break;case"f":f.regex="f",f.type=E,O();break;case"j":f.regex="[asnblom]",f.type=E,O();break;case"x":f.regex="[asnblfom]",f.type=E,O();break;case"-":A.context=!0,A.contextRegex=new RegExp(A.regex),A.regex+="?";break;case"?":case"+":A.regex+=E;break;case"(":var U=N(b,k,"(",")"),P=b.substring(k+1,U);if(P.indexOf("<")===-1)f.regex="["+P+"m]";else throw{code:"S0402",stack:new Error().stack,value:P,offset:k};f.type="("+P+")",k=U,O();break;case"<":if(A.type==="a"||A.type==="f"){var y=N(b,k,"<",">");A.subtype=b.substring(k+1,y),k=y}else throw{code:"S0401",stack:new Error().stack,value:A.type,offset:k};break}k++}var I="^"+g.map(function(z){return"("+z.regex+")"}).join("")+"$",C=new RegExp(I),$=function(z){var ne;if(n.isFunction(z))ne="f";else{var se=typeof z;switch(se){case"string":ne="s";break;case"number":ne="n";break;case"boolean":ne="b";break;case"object":z===null?ne="l":Array.isArray(z)?ne="a":ne="o";break;case"undefined":default:ne="m"}}return ne},G=function(z,ne){for(var se="^",ie=0,q=0;q<g.length;q++){se+=g[q].regex;var le=ne.match(se);if(le===null)throw{code:"T0410",stack:new Error().stack,value:z[ie],index:ie+1};ie=le[0].length}throw{code:"T0410",stack:new Error().stack,value:z[ie],index:ie+1}};return{definition:b,validate:function(z,ne){var se="";z.forEach(function(pe){se+=$(pe)});var ie=C.exec(se);if(ie){var q=[],le=0;return g.forEach(function(pe,Ue){var ue=z[le],me=ie[Ue+1];if(me==="")if(pe.context&&pe.contextRegex){var ke=$(ne);if(pe.contextRegex.test(ke))q.push(ne);else throw{code:"T0411",stack:new Error().stack,value:ne,index:le+1}}else q.push(ue),le++;else me.split("").forEach(function(ce){if(ue=z[le],pe.type==="a"){if(ce==="m")ue=void 0;else{var W=!0;if(typeof pe.subtype<"u"){if(ce!=="a"&&me!==pe.subtype)W=!1;else if(ce==="a"&&ue.length>0){var Pe=$(ue[0]);if(Pe!==pe.subtype.charAt(0))W=!1;else{var m=ue.filter(function(_){return $(_)!==Pe});W=m.length===0}}}if(!W)throw{code:"T0412",stack:new Error().stack,value:ue,index:le+1,type:c[pe.subtype]};ce!=="a"&&(ue=[ue])}q.push(ue),le++}else q.push(ue),le++})}),q}G(z,se)}}}return h})();r.exports=o},{"./utils":6}],6:[function(s,r,i){const n=(()=>{function o(y){var I=!1;if(typeof y=="number"&&(I=!isNaN(y),I&&!isFinite(y)))throw{code:"D1001",value:y,stack:new Error().stack};return I}function c(y){var I=!1;return Array.isArray(y)&&(I=y.filter(function(C){return typeof C!="string"}).length===0),I}function h(y){var I=!1;return Array.isArray(y)&&(I=y.filter(function(C){return!o(C)}).length===0),I}function b(y){return y.sequence===!0&&Array.isArray(y)}function k(y){return y&&(y._jsonata_function===!0||y._jsonata_lambda===!0)||typeof y=="function"}function g(y){var I=typeof y.arity=="number"?y.arity:typeof y.implementation=="function"?y.implementation.length:typeof y.length=="number"?y.length:y.arguments.length;return I}function f(y){return y&&y._jsonata_lambda===!0}var A=(typeof Symbol=="function"?Symbol:{}).iterator||"@@iterator";function E(y){return typeof y=="object"&&y!==null&&A in y&&"next"in y&&typeof y.next=="function"}function O(y,I){if(y===I)return!0;if(typeof y=="object"&&typeof I=="object"&&y!==null&&I!==null){if(Array.isArray(y)&&Array.isArray(I)){if(y.length!==I.length)return!1;for(var C=0;C<y.length;C++)if(!O(y[C],I[C]))return!1;return!0}var $=Object.getOwnPropertyNames(y),G=Object.getOwnPropertyNames(I);if($.length!==G.length)return!1;for($=$.sort(),G=G.sort(),C=0;C<$.length;C++)if($[C]!==G[C])return!1;for(C=0;C<$.length;C++){var z=$[C];if(!O(y[z],I[z]))return!1}return!0}return!1}function N(y){return typeof y=="object"&&y!==null&&"then"in y&&typeof y.then=="function"}function U(y){var I=[];for(let C of y)I.push(C);return I}function P(y){return typeof y=="object"&&y!==null?Object.keys(y):[]}return{isNumeric:o,isArrayOfStrings:c,isArrayOfNumbers:h,isSequence:b,isFunction:k,isLambda:f,isIterable:E,getFunctionArity:g,isDeepEqual:O,stringToArray:U,isPromise:N,keys:P}})();r.exports=n},{}]},{},[3])(3)})})($n)),$n.exports}var Nc=Ic();const Fc=Jo(Nc);function Dn(t){return typeof t!="string"?null:t.trim()||null}function jc(t){if(t==null||t==="")return null;if(typeof t=="string")return Dn(t);if(typeof t!="object")return null;const e=t;return Dn(e.url)??Dn(e.blobUrl)}function En(t){return Array.isArray(t)&&t.length>0&&t.every(e=>typeof e=="number"&&Number.isFinite(e))}function ea(t,e){if(!En(t)||!En(e)||t.length!==e.length)return null;let s=0,r=0,i=0;for(let n=0;n<t.length;n++)s+=t[n]*e[n],r+=t[n]*t[n],i+=e[n]*e[n];return!r||!i?null:s/Math.sqrt(r*i)}function Rc(t,e,s,r=10,i=-1){if(!Array.isArray(t)||!Array.isArray(e)||!En(s))return[];const n=[];return t.forEach((o,c)=>{const h=ea(e[c],s);if(h===null||h<i)return;const b=o&&typeof o=="object"?o:{value:o};n.push({...b,_score:Math.round(h*1e4)/1e4})}),n.sort((o,c)=>c._score-o._score),n.slice(0,Math.max(0,r))}function zc(t){t.registerFunction("ucFirst",e=>Tr.ucFirst(String(e??""))),t.registerFunction("currency",(e,s="fr-FR",r="EUR")=>{const i=Number(e);return Number.isNaN(i)?String(e??""):new Intl.NumberFormat(String(s),{style:"currency",currency:String(r)}).format(i)}),t.registerFunction("percent",(e,s="fr-FR",r=0)=>{const i=Number(e);return Number.isNaN(i)?String(e??""):new Intl.NumberFormat(String(s),{style:"percent",maximumFractionDigits:Number(r)||0}).format(i)}),t.registerFunction("date",(e,s="fr-FR",r)=>{const i=e instanceof Date?e:new Date(String(e));if(Number.isNaN(i.getTime()))return String(e??"");let n={dateStyle:"medium"};if(r)try{n=JSON.parse(String(r))}catch{}return new Intl.DateTimeFormat(String(s),n).format(i)}),t.registerFunction("toChart",(e,s="label",r="value",i="")=>{const n=Array.isArray(e)?e:[],o=[],c=[];for(const h of n){if(!h||typeof h!="object")continue;const b=h;o.push(String(b[String(s)]??"")),c.push(Number(b[String(r)]??0))}return{labels:o,datasets:[{label:String(i||""),data:c}]}}),t.registerFunction("cosine",(e,s)=>ea(e,s)),t.registerFunction("rankBySimilarity",(e,s,r,i=10,n=-1)=>Rc(e,s,r,Number(i),Number(n))),t.registerFunction("mediaUrl",e=>jc(e))}const ta=new Map,sa=8e3;function Uc(t){if(!t||!t.trim())throw new Error("[sonic-jsonata] expression vide.");if(t.length>sa)throw new Error(`[sonic-jsonata] expression trop longue (${t.length} > ${sa}).`);const e=ta.get(t);if(e)return e;try{const s=Fc(t);return zc(s),ta.set(t,s),s}catch(s){const r=s instanceof Error?s.message:typeof s=="object"&&s&&"message"in s?String(s.message):String(s);throw new Error(`[sonic-jsonata] Syntaxe JSONata invalide : ${r}`)}}function qc(t,e){if(!e||typeof e!="object")return;const s=e.type;if(typeof s=="string"&&!(s==="array"&&Array.isArray(t)||s==="object"&&t!==null&&typeof t=="object"&&!Array.isArray(t)||s==="string"&&typeof t=="string"||s==="number"&&typeof t=="number"||s==="boolean"&&typeof t=="boolean"||s==="null"&&t===null))throw new Error(`[sonic-jsonata] outputSchema : type attendu "${s}", reçu ${Vc(t)}.`);if(Array.isArray(e.required)&&t&&typeof t=="object"){const r=t;for(const i of e.required)if(typeof i=="string"&&!(i in r))throw new Error(`[sonic-jsonata] outputSchema : propriété requise manquante "${i}".`)}}function Vc(t){return t===null?"null":Array.isArray(t)?"array":typeof t}const Bc=150,ra=10,Hc=200,Wc=16,ia=new WeakMap;let na=!1;function fs(){return typeof navigator>"u"?!1:/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function mr(t){if(t===window)return{x:window.scrollX,y:window.scrollY};const e=t;return{x:e.scrollLeft,y:e.scrollTop}}function Kc(t,e,s){if(t===window){window.scrollTo(e,s);return}const r=t;typeof r.scrollTo=="function"?r.scrollTo(e,s):(r.scrollLeft=e,r.scrollTop=s)}function Yc(t){if(t===window){const s=document.documentElement;return Math.max(0,s.scrollHeight-window.innerHeight)}const e=t;return Math.max(0,e.scrollHeight-e.clientHeight)}function Gs(t){let e=ia.get(t);if(!e){const s=mr(t);e={x:s.x,y:s.y,restoring:!1,watching:!1,userEngaged:!1,raf:0,stickyFrames:0},ia.set(t,e)}return e}function Ti(t){Gs(t).userEngaged=!0}function Li(t){const e=Gs(t);clearTimeout(e.settleTimer),e.settleTimer=setTimeout(()=>{e.userEngaged=!1,e.settleTimer=void 0},Bc)}function oa(t,e){return e-t>=Hc}function vr(t){if(!fs())return;const e=Gs(t);if(e.restoring)return;const s=mr(t);if(oa(s.y,e.y)){Tn(t);return}e.x=s.x,e.y=s.y}function On(t){if(!fs())return;const e=Gs(t),s=Yc(t),r=e.x,i=s>0?Math.min(e.y,s):e.y,{x:n,y:o}=mr(t);if(!(Math.abs(r-n)<=ra&&Math.abs(i-o)<=ra)){e.restoring=!0;try{Kc(t,r,i)}finally{requestAnimationFrame(()=>{e.restoring=!1})}}}function Gc(t,e={x:0,y:0}){if(!fs())return;const s=Gs(t);if(e==="current"){const r=mr(t);s.x=r.x,s.y=r.y;return}s.x=e.x??0,s.y=e.y??0}function Tn(t){const e=Gs(t);if(e.stickyFrames=Wc,e.raf)return;const s=()=>{e.raf=0,On(t),e.stickyFrames>0&&(e.stickyFrames--,e.raf=requestAnimationFrame(s))};e.raf=requestAnimationFrame(s)}function Ln(t){Tn(t)}function Zs(t){if(!fs())return;const e=Gs(t);if(e.watching)return;e.watching=!0;const s=t===window?window:t,r=()=>{if(e.restoring)return;const{y:E}=mr(t);if(oa(E,e.y)){Tn(t);return}if(e.userEngaged){vr(t),Li(t);return}vr(t)},i=E=>aa(E)===t,n=E=>{i(E)&&(vr(t),Ti(t))},o=E=>{i(E)&&Li(t)},c=E=>{i(E)&&(vr(t),Ti(t),Li(t))};s.addEventListener("scroll",r,{passive:!0}),s.addEventListener("touchstart",n,{passive:!0}),s.addEventListener("touchend",o,{passive:!0}),s.addEventListener("touchcancel",o,{passive:!0}),s.addEventListener("wheel",c,{passive:!0}),s.addEventListener("pointerdown",n,{passive:!0}),s.addEventListener("pointerup",o,{passive:!0}),s.addEventListener("pointercancel",o,{passive:!0});const h=mr(t);if(e.x=h.x,e.y=h.y,t===window){const E=new ResizeObserver(()=>Ln(window));E.observe(document.documentElement),e.resizeObserver=E;return}const b=t,k=new ResizeObserver(()=>Ln(b));k.observe(b);for(const E of Array.from(b.children))k.observe(E);e.resizeObserver=k;const g=()=>Ln(b),f=new MutationObserver(E=>{for(const O of E)if(O.type==="childList")for(const N of Array.from(O.addedNodes))N instanceof Element&&k.observe(N);g()});f.observe(b,{childList:!0,subtree:!0,characterData:!0});const A=b.getRootNode();A instanceof ShadowRoot&&A.host&&f.observe(A.host,{childList:!0,subtree:!0,characterData:!0}),e.mutationObserver=f}function aa(t){for(const e of t.composedPath())if(!(e===window||e===document)&&e instanceof HTMLElement&&la(e))return e;return window}function la(t){if(!(t instanceof HTMLElement)||t===document.documentElement||t===document.body)return!1;const e=getComputedStyle(t).overflowY;return e==="auto"||e==="scroll"||e==="overlay"}function Mn(t){for(const s of t.composedPath())s===window||s===document||s instanceof HTMLElement&&la(s)&&Zs(s);const e=aa(t);Zs(e),t.type==="wheel"?(vr(e),Ti(e),Li(e)):(t.type==="touchstart"||t.type==="pointerdown")&&(vr(e),Ti(e))}function Mi(t){t instanceof Element&&t.classList?.contains("custom-scroll")&&Zs(t),t.querySelectorAll?.(".custom-scroll").forEach(e=>{e instanceof HTMLElement&&Zs(e)})}function In(t){Mi(t),new MutationObserver(s=>{for(const r of s)for(const i of Array.from(r.addedNodes))i instanceof Element&&Mi(i)}).observe(t,{childList:!0,subtree:!0})}function Nn(t){t.querySelectorAll?.("*").forEach(e=>{e.shadowRoot&&(In(e.shadowRoot),Nn(e.shadowRoot))})}function Zc(){const t=Element.prototype;if(t.__safariScrollGuardPatched)return;t.__safariScrollGuardPatched=!0;const e=t.attachShadow;t.attachShadow=function(r){const i=e.call(this,r);return In(i),i}}function ca(){if(typeof window>"u"||na||(na=!0,!fs()))return;Zs(window),Zc();const t={capture:!0,passive:!0};window.addEventListener("wheel",Mn,t),window.addEventListener("touchstart",Mn,t),window.addEventListener("pointerdown",Mn,t);const e=()=>{Mi(document),Nn(document)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e,{once:!0}):e(),new MutationObserver(r=>{for(const i of r)for(const n of Array.from(i.addedNodes))n instanceof Element&&(Mi(n),n.shadowRoot&&In(n.shadowRoot),Nn(n))}).observe(document.documentElement,{childList:!0,subtree:!0})}const Jc=_l,Xc=_c,Qc=vi,eu=Tr,gs=Je,tu=ct,Br=at,su=Ds,ru=ps;ca(),window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Jc,Arrays:Xc,DataBindObserver:Qc,Format:eu,HTML:gs,LocationHandler:tu,Objects:Br,PublisherManager:be,api:su,URLPattern:ru,Endpoint:ki,DataProviderKey:Ss};var iu=Object.defineProperty,nu=Object.getOwnPropertyDescriptor,Hr=(t,e,s,r)=>{for(var i=r>1?void 0:r?nu(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&iu(e,s,i),i};const Fn=t=>{class e extends t{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null,this.updateAllChecked=()=>{const r=this.getAttribute("name"),i=this.getCheckAllPublisher(),n=this.getFormPublisher();if(i?.hasCheckAll.get()&&!this.checksAll()&&i&&n&&r){if(this.getFormPublisherValue()?.length)(this.checked===null||i.checkMode.get()=="noneChecked"||i.checkMode.get()==null)&&i.checkMode.set("someUnchecked");else{i.checkMode.set("noneChecked");return}const o=this.getFormPublisherValue(),c=i.values.get();if(c&&c.length){let h=c.length;for(const b of c)o.indexOf(b)==-1&&(h-=1);h==c.length&&i.checkMode.set("allChecked"),h==0&&i.checkMode.set("noneChecked")}c.indexOf(this.value)==-1&&this.unsetOnDisconnect()&&(this.checked=null)}},this.onChecksAllRequest=r=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),r=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),r=="noneChecked"&&(this.checked=null),r=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(r){if(this.value==r||(this.hasAttribute("value")&&!this.forceAutoFill&&(r=this.getAttribute("value")),this._value==r)||r==null||(this._value=r,!this.value))return;if(this.getFormPublisher()&&this.name){let n=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=n==r?!0:null),Array.isArray(n)||(n=[]),n.indexOf(r)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(r){if(this.setCheckedValue(r),this.checksAll()){const i=this.getCheckAllPublisher();i&&(this.checked===!0?i.checkMode.set("allChecked"):this.checked===null&&(i.checkMode.set("noneChecked"),this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){const r=this.shadowRoot?.querySelector("input");if(!r||r.checkValidity())return;const i=this.getFormPublisher();if(i){const n=this.getFormPublisherValue();if((this.unique||this.radio)&&n!==null&&n!==void 0&&n.toString().length>0)return;i.isFormValid=!1,r.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(r){this._checked!=r&&(this._checked=r,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const r=this.checked===!0?this.radio?!0:null:!0;this.checked=r;const i=new Event("change");this.dispatchEvent(i)}getValueForFormPublisher(){let r=this.getFormPublisherValue();if(this.radio)return this.checked===!0&&this.value!=null?this.value:r;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(r)||(r=[]);const i=r.slice(0),n=i.indexOf(this.value);return this.checked===!0&&n===-1&&!this.checksAll()&&i.push(this.value),this.checked===null&&n!==-1&&i.splice(n,1),i}setFormValueFromPublisher(r){if(this.unique||this.radio){this.checked=this.value==r?!0:null;return}Array.isArray(r)||(r=[]),!this.checksAll()&&(this.checked=r.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const r=this.formDataProvider,i=this.getAttribute("name");return!r||!i?null:be.get(r+"/"+i+"/_available_values_")}unset(){this.checked=null}disconnectedCallback(){super.disconnectedCallback();const r=this.getCheckAllPublisher();if(r&&(r.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const i=r.values.get().slice(0),n=i.indexOf(this.value);n!=-1&&(i.splice(n,1),r.values.set(i))}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){if(super.connectedCallback(),this.getFormPublisher()&&this.name){const n=this.getFormPublisherValue();n&&Array.isArray(n)&&n.indexOf(this.value)!==-1&&(this.checked=!0)}const i=this.getCheckAllPublisher();i&&(i.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&i.hasCheckAll.set(!0),i.values.get()||i.values.set([]),this.checksAll()||i.values.set([...i.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return Hr([u()],e.prototype,"value",1),Hr([u()],e.prototype,"forceAutoFill",2),Hr([u({type:Boolean})],e.prototype,"unique",2),Hr([u({type:Boolean})],e.prototype,"radio",2),Hr([u()],e.prototype,"checked",1),e};/**
|
|
76
76
|
* @license
|
|
77
77
|
* Copyright 2018 Google LLC
|
|
78
78
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
:host([size="inherit"]) {
|
|
110
110
|
--sc-_fs: 1em;
|
|
111
111
|
}
|
|
112
|
-
`;var
|
|
112
|
+
`;var ou=Object.defineProperty,au=Object.getOwnPropertyDescriptor,qe=(t,e,s,r)=>{for(var i=r>1?void 0:r?au(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&ou(e,s,i),i};const lu="sonic-button";let Me=class extends Fn(br(nt(J))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.download=null,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this.autoRepeat=!1,this.pointerDownTime=0,this.lastRepeatTime=0,this.isRepeating=!1,this.handleRepeatend=()=>{window.removeEventListener("pointerup",this.handleRepeatend),window.removeEventListener("blur",this.handleRepeatend),this.autoRepeat&&(this.isRepeating=!1)},this.location=""}set href(t){this._href=t??"";const e=this._href.toString();e&&e.indexOf("http")!=0?ct.onChange(this):ct.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(t){t.preventDefault(),ct.changeFromComponent(this)}handleChange(t){if(!(t?.type=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(t?.preventDefault(),t?.stopPropagation(),ct.changeFromComponent(this)),this.hasAttribute("reset"))){const e=this.getAttribute("reset"),s=e?be.get(e):this.getFormPublisher();s&&s.set({})}}handleRepeatStart(t){this.autoRepeat&&(this.handleChange(t),this.pointerDownTime=Date.now(),this.isRepeating=!0,this.repeat()),window.addEventListener("pointerup",this.handleRepeatend),window.addEventListener("blur",this.handleRepeatend)}repeat(){if(this.isRepeating){if(this.hasAttribute("disabled")){this.isRepeating=!1;return}window.requestAnimationFrame(this.repeat.bind(this)),!(Date.now()-this.pointerDownTime<500)&&(Date.now()-this.lastRepeatTime<100||(this.handleChange(),this.lastRepeatTime=Date.now()))}}connectedCallback(){super.connectedCallback()}setCheckedValue(t){if(this.name){if(t?this.setAttribute("active","true"):this.removeAttribute("active"),t==this._checked)return;super.setCheckedValue(t)}}disconnectedCallback(){ct.offChange(this),super.disconnectedCallback()}willUpdate(t){(t.has("href")||t.has("autoActive"))&&ct.updateComponentActiveState(this),t.has("location")&&ct.updateComponentActiveState(this)}render(){const t={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},e=R`
|
|
113
113
|
<button
|
|
114
114
|
part="button"
|
|
115
115
|
class=${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}
|
|
@@ -509,11 +509,11 @@
|
|
|
509
509
|
transform: translate(-50%, -50%) rotate(359deg);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
`],qe([
|
|
512
|
+
`],qe([u({type:String,reflect:!0})],Me.prototype,"type",2),qe([u({type:String,reflect:!0})],Me.prototype,"variant",2),qe([u({type:String,reflect:!0})],Me.prototype,"size",2),qe([u({type:String,reflect:!0})],Me.prototype,"shape",2),qe([u({type:String})],Me.prototype,"direction",2),qe([u({type:String,reflect:!0})],Me.prototype,"alignItems",2),qe([u({type:String})],Me.prototype,"justify",2),qe([u({type:String,reflect:!0})],Me.prototype,"align",2),qe([u({type:String})],Me.prototype,"minWidth",2),qe([u({type:Boolean,reflect:!0})],Me.prototype,"icon",2),qe([u({type:String})],Me.prototype,"download",2),qe([u({type:String})],Me.prototype,"autoActive",2),qe([u({type:Boolean,reflect:!0})],Me.prototype,"loading",2),qe([Ae()],Me.prototype,"hasPrefix",2),qe([Ae()],Me.prototype,"hasSuffix",2),qe([Ir({flatten:!0,slot:"prefix"})],Me.prototype,"prefixes",2),qe([Ir({flatten:!0,slot:"suffix"})],Me.prototype,"suffixes",2),qe([u({type:String})],Me.prototype,"target",2),qe([u({type:String})],Me.prototype,"href",1),qe([u({type:String})],Me.prototype,"goBack",2),qe([u({type:Boolean})],Me.prototype,"pushState",2),qe([u({type:Boolean,reflect:!0})],Me.prototype,"active",2),qe([u({type:Boolean,reflect:!0})],Me.prototype,"autoRepeat",2),qe([u({type:String,attribute:"data-aria-controls"})],Me.prototype,"ariaControls",2),qe([u({type:Boolean,attribute:"data-aria-expanded"})],Me.prototype,"sonicAriaExpanded",2),qe([Ae()],Me.prototype,"location",2),Me=qe([X(lu)],Me);/**
|
|
513
513
|
* @license
|
|
514
514
|
* Copyright 2017 Google LLC
|
|
515
515
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
516
|
-
*/const
|
|
516
|
+
*/const ua=(t,e,s)=>{const r=new Map;for(let i=e;i<=s;i++)r.set(t[i],i);return r},Ii=$s(class extends fr{constructor(t){if(super(t),t.type!==Ys.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,s){let r;s===void 0?s=e:e!==void 0&&(r=e);const i=[],n=[];let o=0;for(const c of t)i[o]=r?r(c,o):o,n[o]=s(c,o),o++;return{values:n,keys:i}}render(t,e,s){return this.dt(t,e,s).values}update(t,[e,s,r]){const i=ic(t),{values:n,keys:o}=this.dt(e,s,r);if(!Array.isArray(i))return this.ut=o,n;const c=this.ut??=[],h=[];let b,k,g=0,f=i.length-1,A=0,E=n.length-1;for(;g<=f&&A<=E;)if(i[g]===null)g++;else if(i[f]===null)f--;else if(c[g]===o[A])h[A]=Ks(i[g],n[A]),g++,A++;else if(c[f]===o[E])h[E]=Ks(i[f],n[E]),f--,E--;else if(c[g]===o[E])h[E]=Ks(i[g],n[E]),Rr(t,h[E+1],i[g]),g++,E--;else if(c[f]===o[A])h[A]=Ks(i[f],n[A]),Rr(t,i[g],i[f]),f--,A++;else if(b===void 0&&(b=ua(o,A,E),k=ua(c,g,f)),b.has(c[g]))if(b.has(c[f])){const O=k.get(o[A]),N=O!==void 0?i[O]:null;if(N===null){const U=Rr(t,i[g]);Ks(U,n[A]),h[A]=U}else h[A]=Ks(N,n[A]),Rr(t,i[g],N),i[O]=null;A++}else _n(i[f]),f--;else _n(i[g]),g++;for(;A<=E;){const O=Rr(t,h[E+1]);Ks(O,n[A]),h[A++]=O}for(;g<=f;){const O=i[g++];O!==null&&_n(O)}return this.ut=o,rc(t,h),Nt}}),cu=new WeakMap;let ha=0;const jn=new Map,da=new WeakSet,pa=()=>new Promise((t=>requestAnimationFrame(t))),fa=(t,e)=>{const s=t-e;return s===0?void 0:s},ga=(t,e)=>{const s=t/e;return s===1?void 0:s},Rn={left:(t,e)=>{const s=fa(t,e);return{value:s,transform:s==null||isNaN(s)?void 0:`translateX(${s}px)`}},top:(t,e)=>{const s=fa(t,e);return{value:s,transform:s==null||isNaN(s)?void 0:`translateY(${s}px)`}},width:(t,e)=>{let s;e===0&&(e=1,s={width:"1px"});const r=ga(t,e);return{value:r,overrideFrom:s,transform:r==null||isNaN(r)?void 0:`scaleX(${r})`}},height:(t,e)=>{let s;e===0&&(e=1,s={height:"1px"});const r=ga(t,e);return{value:r,overrideFrom:s,transform:r==null||isNaN(r)?void 0:`scaleY(${r})`}}},uu={duration:333,easing:"ease-in-out"},hu=["left","top","width","height","opacity","color","background"],ba=new WeakMap;class du extends Pn{constructor(e){if(super(e),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,e.type===Ys.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){this.resolveFinished?.(),this.finished=new Promise((e=>{this.l=e}))}async resolveFinished(){this.l?.(),this.l=void 0}render(e){return re}getController(){return cu.get(this.u)}isDisabled(){return this.options.disabled||this.getController()?.disabled}update(e,[s]){const r=this.u===void 0;return r&&(this.u=e.options?.host,this.u.addController(this),this.u.updateComplete.then((i=>this.t=!0)),this.element=e.element,ba.set(this.element,this)),this.optionsOrCallback=s,(r||typeof s!="function")&&this.p(s),this.render(s)}p(e){e=e??{};const s=this.getController();s!==void 0&&((e={...s.defaultOptions,...e}).keyframeOptions={...s.defaultOptions.keyframeOptions,...e.keyframeOptions}),e.properties??=hu,this.options=e}m(){const e={},s=this.element.getBoundingClientRect(),r=getComputedStyle(this.element);return this.options.properties.forEach((i=>{const n=s[i]??(Rn[i]?void 0:r[i]),o=Number(n);e[i]=isNaN(o)?n+"":o})),e}v(){let e,s=!0;return this.options.guard&&(e=this.options.guard(),s=((r,i)=>{if(Array.isArray(r)){if(Array.isArray(i)&&i.length===r.length&&r.every(((n,o)=>n===i[o])))return!1}else if(i===r)return!1;return!0})(e,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&s&&this.element.isConnected,this.h&&(this._=Array.isArray(e)?Array.from(e):e),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let e;this.prepare(),await pa;const s=this.O(),r=this.j(this.options.keyframeOptions,s),i=this.m();if(this.A!==void 0){const{from:n,to:o}=this.N(this.A,i,s);this.log("measured",[this.A,i,n,o]),e=this.calculateKeyframes(n,o)}else{const n=jn.get(this.options.inId);if(n){jn.delete(this.options.inId);const{from:o,to:c}=this.N(n,i,s);e=this.calculateKeyframes(o,c),e=this.options.in?[{...this.options.in[0],...e[0]},...this.options.in.slice(1),e[1]]:e,ha++,e.forEach((h=>h.zIndex=ha))}else this.options.in&&(e=[...this.options.in,{}])}this.animate(e,r)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){this.P=this.element.getAttribute("style"),this.webAnimation?.commitStyles(),this.webAnimation?.cancel()}reconnected(){}async disconnected(){if(!this.h||(this.options.id!==void 0&&jn.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await pa(),this.i?.isConnected){const s=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,s),this.options.stabilizeOut){const r=this.m();this.log("stabilizing out");const i=this.A.left-r.left,n=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||i===0&&n===0||(this.element.style.position="relative"),i!==0&&(this.element.style.left=i+"px"),n!==0&&(this.element.style.top=n+"px")}}const e=this.j(this.options.keyframeOptions);await this.animate(this.options.out,e),this.element.remove()}prepare(){this.createFinished()}start(){this.options.onStart?.(this)}didFinish(e){e&&this.options.onComplete?.(this),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const e=[];for(let s=this.element.parentNode;s;s=s?.parentNode){const r=ba.get(s);r&&!r.isDisabled()&&r&&e.push(r)}return e}get isHostRendered(){const e=da.has(this.u);return e||this.u.updateComplete.then((()=>{da.add(this.u)})),e}j(e,s=this.O()){const r={...uu};return s.forEach((i=>Object.assign(r,i.options.keyframeOptions))),Object.assign(r,e),r}N(e,s,r){e={...e},s={...s};const i=r.map((c=>c.animatingProperties)).filter((c=>c!==void 0));let n=1,o=1;return i.length>0&&(i.forEach((c=>{c.width&&(n/=c.width),c.height&&(o/=c.height)})),e.left!==void 0&&s.left!==void 0&&(e.left=n*e.left,s.left=n*s.left),e.top!==void 0&&s.top!==void 0&&(e.top=o*e.top,s.top=o*s.top)),{from:e,to:s}}calculateKeyframes(e,s,r=!1){const i={},n={};let o=!1;const c={};for(const h in s){const b=e[h],k=s[h];if(h in Rn){const g=Rn[h];if(b===void 0||k===void 0)continue;const f=g(b,k);f.transform!==void 0&&(c[h]=f.value,o=!0,i.transform=`${i.transform??""} ${f.transform}`,f.overrideFrom!==void 0&&Object.assign(i,f.overrideFrom))}else b!==k&&b!==void 0&&k!==void 0&&(o=!0,i[h]=b,n[h]=k)}return i.transformOrigin=n.transformOrigin=r?"center center":"top left",this.animatingProperties=c,o?[i,n]:void 0}async animate(e,s=this.options.keyframeOptions){this.start(),this.frames=e;let r=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=e=this.options.onFrames(this),this.log("modified frames",e)),e!==void 0)){this.log("animate",[e,s]),r=!0,this.webAnimation=this.element.animate(e,s);const i=this.getController();i?.add(this);try{await this.webAnimation.finished}catch{}i?.remove(this)}return this.didFinish(r),r}isAnimating(){return this.webAnimation?.playState==="running"||this.webAnimation?.pending}log(e,s){this.shouldLog&&!this.isDisabled()&&console.log(e,this.options.id,s)}}const pu=$s(du),fu={core:{cancel:`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
517
517
|
<path d="M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
518
518
|
</svg>
|
|
519
519
|
`,"check-circled-outline":`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -549,7 +549,7 @@
|
|
|
549
549
|
<path d="M12 17.01L12.01 16.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
550
550
|
<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
|
551
551
|
</svg>
|
|
552
|
-
`}},Fi=new Map,pa={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"},custom:{url:"",defaultPrefix:""}};function lh(t){let e=t.customLibraryPath,s=t.customLibraryDefaultPrefix;if(e==null){const i=document.querySelector("[customIconLibraryPath]");e=i?.getAttribute("customIconLibraryPath")??"",s==null&&(s=i?.getAttribute("customIconDefaultPrefix")??document.querySelector("[customIconDefaultPrefix]")?.getAttribute("customIconDefaultPrefix")??"")}return{url:e||"",defaultPrefix:s||""}}function ch(t,e){return t in pa?t!=="custom"?pa[t]:lh(e):null}const fa=sessionStorage.getItem("sonicIconsCache"),bs=fa?JSON.parse(fa):{icons:{},names:[]},hh=100,yo=class yo{};yo.default={get:async e=>{const s=e.library;if(!e.name)return"";const i=e.name,r=ah;if(!s)return je(r.core[e.name]||"");const n=ch(s,e);if(n){if(s==="custom"&&!n.url)return"";const o=e.prefix||n.defaultPrefix||"",c=r[s]||{};r[s]=c;const d=s==="custom"?`${n.url}|${o}-${i}`:`${o}-${i}`;if(c[d])return je(c[d]);const m=(n.url||"").replace("$prefix",o).replace("$name",i);if(bs.icons[m]){const g=bs.icons[m];if(/^\s*<svg[\s>]/i.test(g||""))return c[d]=g,je(g);delete bs.icons[m]}if(!Fi.has(m)){const g=new Promise(async f=>{try{const A=await fetch(m);if(!A.ok){f("");return}try{const E=A.headers.get("content-type")||"";if(!E.includes("image/svg+xml")&&!E.includes("svg")){f("");return}const O=await A.text(),I=/^\s*<svg[\s>]/i.test(O);f(I?O:"")}catch{f("")}}catch{ic(),f("")}});Fi.set(m,g)}const k=await Fi.get(m);if(Fi.delete(m),c[d]=k||"",k&&/^\s*<svg[\s>]/i.test(k)&&(bs.icons[m]=k,bs.names.push(m)),bs.names.length>hh){const g=bs.names.shift();delete bs.icons[g]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(bs)),k?je(k):""}return je(r.core[e.name]||"")}};let Fn=yo;function uh(t){this.__beforeConnectedCallbackCalls__||(this.__beforeConnectedCallbackCalls__=new Set),this.__beforeConnectedCallbackCalls__.add(t)}function dh(t){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(t)}function ph(t){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(t)}function Js(t){if(t.__is__setSubscribable__)return;t.__is__setSubscribable__=!0,t.__onBeforeConnected__=uh,t.__onConnected__=dh,t.__onDisconnected__=ph;const e=t.connectedCallback;t.connectedCallback=function(){this.__beforeConnectedCallbackCalls__&&this.__beforeConnectedCallbackCalls__.forEach(i=>i(this)),e?.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(i=>i(this))};const s=t.disconnectedCallback;t.disconnectedCallback=function(){s?.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(i=>i(this))}}function fh(t){return t.trim().replace(/^this\./,"")}function jn(t,e){if(!e)return;const s=e.split(".").filter(Boolean);if(s.length===0)return;let i=t;for(const r of s){if(i==null||typeof i!="object")return;i=i[r]}return i}function gh(t,e){return!!(t==null||e?.skipEmptyPlaceholder&&t==="")}function Ot(t,e,s){let i=!1;const r=(c,d)=>{const m=fh(d),k=jn(t,m);return gh(k,s)?(i=!0,""):`${k}`},n=e.replace(/\$\{([^}]+)\}/g,r).replace(/\{\$([^}]+)\}/g,r).trim();if(i||!n.length)return{ready:!1,path:null};const o=n.split(".").filter(Boolean);return o.length===0||!o[0]?{ready:!1,path:null}:{ready:!0,path:n}}function Ut(t){const e=[/\$\{([^}]+)\}/g,/\{\$([^}]+)\}/g],s=new Set;for(const i of e){let r;for(;(r=i.exec(t))!==null;){const n=(r[1]||"").trim().replace(/^this\./,"");if(!n)continue;const[o]=n.split(".");o&&s.add(o)}}return Array.from(s)}function ga(t){return typeof t=="object"&&t!==null&&"path"in t&&typeof t.path=="string"}const Wr=new WeakMap,Kr=new Set;let yr=null;const bh=8;function mh(t){let e=Wr.get(t);return e||(e=new Map,Wr.set(t,e)),e}function vh(t,e){const s=new Set;for(const[i,r]of e){const n=jn(t,i);Object.is(r.lastValue,n)||(r.lastValue=n,r.onChangeHandlers.forEach(o=>s.add(o)))}return s}function yh(){yr=null;let t=0,e=!0;for(;e&&t<bh;){e=!1,t+=1;for(const s of Kr){const i=Wr.get(s);if(!i||i.size===0)continue;const r=vh(s,i);r.size!==0&&(e=!0,r.forEach(n=>n()))}}e&&console.warn("[concorde] dynamic property watch: limite de passes atteinte, boucle infinie probable"),Kr.size>0&&ba()}function ba(){yr===null&&(yr=requestAnimationFrame(yh))}function wh(){Kr.size===0&&yr!==null&&(cancelAnimationFrame(yr),yr=null)}function Es(t,e,s,i,r){const n=String(i),o=mh(s);let c=o.get(n);return c||(c={lastValue:jn(s,n),onChangeHandlers:new Set},o.set(n,c)),c.onChangeHandlers.add(r),Kr.add(s),ba(),()=>{const d=Wr.get(s);if(!d)return;const m=d.get(n);m&&(m.onChangeHandlers.delete(r),m.onChangeHandlers.size===0&&d.delete(n),d.size===0&&(Wr.delete(s),Kr.delete(s),wh()))}}const ji={watcherStore:Symbol("__bindDynamicWatcherStore__"),hooked:Symbol("__bindDynamicWillUpdateHooked__")},ma={watcherStore:"__publishDynamicWatcherStore__",hooked:"__publishDynamicWillUpdateHooked__"},Os={watcherStore:"__getDynamicWatcherStore__",hooked:"__getDynamicWillUpdateHooked__"},va={watcherStore:Symbol("__onAssignDynamicWatcherStore__"),hooked:Symbol("__onAssignDynamicWillUpdateHooked__")};function Gt(t){const e=t.split(".").filter(r=>r.length>0);if(e.length===0)return null;const s=e.shift()||"";if(!s)return null;let i=ye.get(s);return i?(i=Br.traverse(i,e),i):null}function _h(t,e){const s=e?.reflect??!1,i={skipEmptyPlaceholder:e?.skipEmptyPlaceholder},r=Ut(t),n=r.length>0;return function(o,c){if(!o)return;Js(o);const d=`__bind_state_${c}`,m=`__bind_${c}_publisher__`,k=s?`__bind_${c}_updating_from_publisher__`:null;if(s){const g=Object.getOwnPropertyDescriptor(o,c),f=`__bind_${c}_value__`,A=`__bind_${c}_updating_from_publisher__`,E=g&&!g.get&&!g.set?g.value:void 0;Object.defineProperty(o,c,{get(){return g?.get?g.get.call(this):(!Object.prototype.hasOwnProperty.call(this,f)&&E!==void 0&&(this[f]=E),this[f])},set(O){g?.set?g.set.call(this,O):this[f]=O,!this[A]&&this[m]&&this[m].set(O)},enumerable:g?.enumerable??!0,configurable:g?.configurable??!0})}o.__onConnected__(g=>{const f=g[d]||(g[d]={cleanupWatchers:[],unsubscribePublisher:null,currentPath:null});f.unsubscribePublisher&&(f.unsubscribePublisher(),f.unsubscribePublisher=null),f.cleanupWatchers.forEach(O=>O()),f.cleanupWatchers=[],f.currentPath=null;const A=O=>{if(!O){f.unsubscribePublisher&&(f.unsubscribePublisher(),f.unsubscribePublisher=null),f.currentPath=null,g[m]=null;return}if(O===f.currentPath)return;f.unsubscribePublisher&&(f.unsubscribePublisher(),f.unsubscribePublisher=null);const I=Gt(O);if(!I){f.currentPath=null,g[m]=null;return}const U=x=>{s&&k&&(g[k]=!0),g[c]=x,s&&k&&(g[k]=!1)};I.onAssign(U),f.unsubscribePublisher=()=>{I.offAssign(U),g[m]===I&&(g[m]=null)},f.currentPath=O,g[m]=I},E=()=>{if(n){const O=Ot(g,t,i);if(!O.ready){A(null);return}A(O.path);return}A(t)};if(n)for(const O of r){const I=Es(ji.watcherStore,ji.hooked,g,O,()=>E());f.cleanupWatchers.push(I)}E()}),o.__onDisconnected__(g=>{const f=g[d];f&&(f.unsubscribePublisher&&(f.unsubscribePublisher(),f.unsubscribePublisher=null),f.cleanupWatchers.forEach(A=>A()),f.cleanupWatchers=[],f.currentPath=null,g[m]=null)})}}function ya(t,e){const s=ga(t)?t.path:t;return _h(s,e)}function wa(t,e){const s=t.path,i={skipEmptyPlaceholder:e?.skipEmptyPlaceholder},r=Ut(s);return function(n,o){Js(n);const c=`__publish_${o}_publisher__`,d=`__publish_${o}_value__`,m=Object.getOwnPropertyDescriptor(n,o),k=m&&!m.get&&!m.set?m.value:void 0;Object.defineProperty(n,o,{get(){return m?.get?m.get.call(this):(!Object.prototype.hasOwnProperty.call(this,d)&&k!==void 0&&(this[d]=k),this[d])},set(g){m?.set?m.set.call(this,g):this[d]=g;const f=this[c];f&&f.set(g)},enumerable:m?.enumerable??!0,configurable:m?.configurable??!0}),n.__onConnected__(g=>{const f=g,A=`__publish_state_${o}`,E=f[A]||(f[A]={cleanupWatchers:[]}),O=()=>{let I;if(r.length){const x=Ot(g,s,i);I=x.ready?x.path:null}else I=s;const U=I?Gt(I):void 0;if(f[c]=U??null,U&&o in g){const x=f[o];x!==void 0&&U.set(x)}};if(E.cleanupWatchers.forEach(I=>I()),E.cleanupWatchers=[],r.length)for(const I of r)E.cleanupWatchers.push(Es(ma.watcherStore,ma.hooked,f,I,O));O()}),n.__onDisconnected__(g=>{const f=g,A=`__publish_state_${o}`,E=f[A];E?.cleanupWatchers&&E.cleanupWatchers.forEach(O=>O()),f[c]=void 0})}}function _a(t){return ya(t)}const xh={nullish:t=>t==null,emptyString:t=>t==="",emptyObject:t=>typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.keys(t).length===0,emptyArray:t=>Array.isArray(t)&&t.length===0};function Ph(t,e){return e.some(s=>xh[s](t))}function Sh(t,e,s){if(!s.dispatchWhenUndefined&&t.slice(0,e).filter(r=>r!=null).length!==e)return!1;if(s.skip&&s.skip.length>0){for(let i=0;i<e;i++)if(Ph(t[i],s.skip))return!1}return!0}function Ah(...t){return xa({},t)}function xa(t,e){const s=e.map(r=>{const n=Ut(r);return{originalPath:r,dynamicDependencies:n,isDynamic:n.length>0}}),i={skipEmptyPlaceholder:t.skipEmptyPlaceholder};return function(r,n,o){Js(r);const c=`__onAssign_state_${n}__`;let d;r.__onConnected__(m=>{const k=m[c]||(m[c]={cleanupWatchers:[],configurations:[]});k.cleanupWatchers.forEach(O=>O()),k.cleanupWatchers=[],k.configurations.forEach(O=>{O.unsubscribePublisher&&O.unsubscribePublisher()}),k.configurations=[];const g=[],f=[];for(let O=0;O<e.length;O++){const I=s[O],U=new Set,x=y=>{g[O]=y,Sh(g,e.length,t)&&U.forEach(N=>N(...g))};f.push({publisher:null,onAssign:x,callbacks:U,unsubscribePublisher:null,pathConfig:I,index:O})}const A=(O,I)=>{if(O.unsubscribePublisher&&(O.unsubscribePublisher(),O.unsubscribePublisher=null),g[O.index]=null,O.publisher=null,!I)return;const U=Gt(I);U&&(U.onAssign(O.onAssign),O.unsubscribePublisher=()=>{U.offAssign(O.onAssign),O.publisher===U&&(O.publisher=null)},O.publisher=U)},E=()=>{for(const O of f)if(O.pathConfig.isDynamic){const I=Ot(m,O.pathConfig.originalPath,i);if(!I.ready){A(O,null);continue}A(O,I.path)}else A(O,O.pathConfig.originalPath)};for(const O of f)if(O.pathConfig.isDynamic)for(const I of O.pathConfig.dynamicDependencies){const U=Es(va.watcherStore,va.hooked,m,I,()=>E());k.cleanupWatchers.push(U)}d=o.value.bind(m);for(const O of f)O.callbacks.add(d);E(),k.configurations=f}),r.__onDisconnected__(m=>{const k=m[c];k&&(k.cleanupWatchers.forEach(g=>g()),k.cleanupWatchers=[],k.configurations.forEach(g=>{g.unsubscribePublisher&&g.unsubscribePublisher(),g.callbacks.delete(d)}),k.configurations=[])})}}function Ch(t){return Object.prototype.toString.call(t)==="[object DataProviderKey]"}function kh(...t){const e=t[t.length-1],s=e!==void 0&&!Ch(e),i=s?e:{},n=(s?t.slice(0,-1):t).map(o=>o.path);return xa({dispatchWhenUndefined:!i.waitForAllDefined,skip:i.skip,skipEmptyPlaceholder:i.skipEmptyPlaceholder},n)}function $h(){return function(t,e,s){let i=0;const r=s.value,n=t.constructor.prototype.disconnectedCallback;t.constructor.prototype.disconnectedCallback=function(){n?.apply(this),this.__removeAutoSubscribe__()};const o=t.connectedCallback;t.connectedCallback=function(){o?.call(this),this[e]()},s.value=function(...c){let d=new Set;const m=()=>{i++;const g=i;window.queueMicrotask(()=>{g===i&&this[e]()})};d.forEach(g=>{g.offAssign(m)}),Ao();const k=r.apply(this,c);return d=Co()||new Set,d.forEach(g=>{g.onAssign(m,!1)}),this.__removeAutoSubscribe__=()=>{d.forEach(g=>{g.offAssign(m)})},k}}}function Dh(t){return function(e){Js(e);for(const s of t){const i=s.split(".");if(i.length===0)continue;const r=i.shift()||"";let n=ye.get(r);n=Br.traverse(n,i),e.__onConnected__(o=>{n.startTemplateFilling(o)}),e.__onDisconnected__(()=>{})}}}function Eh(t){const e=[];let s=t;for(;s;)s instanceof Element&&e.push(s),s=s.parentNode||(s.host??null);return e}function Oh(t,e){const s=[];let i=!1;const r=Ke.scopeAttributeNames(t.attributeName),n=()=>{for(const o of s)o.disconnect();if(s.length=0,!i)for(const o of Eh(t.component)){const c=new MutationObserver(d=>{i||(d.some(m=>m.type==="childList")&&n(),e())});c.observe(o,{attributes:!0,attributeFilter:r,childList:!0,subtree:!1}),s.push(c)}};return n(),()=>{i=!0;for(const o of s)o.disconnect();s.length=0}}function Pa(t,e,s,i){const r=t,n=Ke.getAncestorAttributeValue(t,e);!i.assignNull&&n===null||Object.is(r[s],n)||(r[s]=n)}const Be=class Be{static subscribe(e,s,i,r={assignNull:!0}){const n={component:e,attributeName:s,propertyKey:i,syncOptions:r,disconnectObservers:null};return n.disconnectObservers=Oh(n,()=>{Be.subscriptions.has(n)&&(Be.pendingRefresh.add(n),Be.scheduleRefresh())}),Be.subscriptions.add(n),()=>{Be.unsubscribe(n)}}static unsubscribe(e){Be.subscriptions.has(e)&&(e.disconnectObservers?.(),e.disconnectObservers=null,Be.subscriptions.delete(e),Be.pendingRefresh.delete(e),Be.subscriptions.size===0&&Be.cancelScheduledRefresh())}static scheduleRefresh(){Be.pendingRefresh.size!==0&&Be.animationFrameId===null&&(Be.animationFrameId=requestAnimationFrame(()=>{Be.flushRefresh()}))}static cancelScheduledRefresh(){Be.animationFrameId!==null&&(cancelAnimationFrame(Be.animationFrameId),Be.animationFrameId=null),Be.pendingRefresh.clear()}static flushRefresh(){Be.animationFrameId=null;const e=Array.from(Be.pendingRefresh);Be.pendingRefresh.clear();for(const s of e)Be.subscriptions.has(s)&&s.component.isConnected&&Pa(s.component,s.attributeName,s.propertyKey,s.syncOptions)}};Be.subscriptions=new Set,Be.pendingRefresh=new Set,Be.animationFrameId=null;let Rn=Be;function zn(t,e){const s=e?.dynamic??!1,i=s;return function(r,n){if(!r||(Js(r),r.__onBeforeConnected__(c=>{Pa(c,t,n,{assignNull:i})}),!s))return;let o=null;r.__onConnected__(c=>{o=Rn.subscribe(c,t,n,{assignNull:!0})}),r.__onDisconnected__(()=>{o?.(),o=null})}}var Th=Object.defineProperty,Lh=Object.getOwnPropertyDescriptor,Xs=(t,e,s,i)=>{for(var r=i>1?void 0:i?Lh(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(r=(i?o(e,s,r):o(r))||r);return i&&r&&Th(e,s,r),r};const Un=t=>h(t),Mh="sonic-icon";let ms=class extends J{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library="",this.customIconLibraryPath=null,this.customIconDefaultPrefix=null}async updateIcon(){this.iconText=await Fn.default.get({name:this.name,prefix:this.prefix,library:this.library,customLibraryPath:this.customIconLibraryPath,customLibraryDefaultPrefix:this.customIconDefaultPrefix})}connectedCallback(){this.setAttribute("aria-hidden","true"),super.connectedCallback()}willUpdate(t){(t.has("name")||t.has("prefix")||t.has("library")||this.library==="custom"&&(t.has("customIconLibraryPath")||t.has("customIconDefaultPrefix")))&&this.updateIcon(),super.willUpdate(t)}render(){return this.iconText?this.iconText:re}};ms.styles=ee`
|
|
552
|
+
`}},Ni=new Map,ma={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"},custom:{url:"",defaultPrefix:""}};function gu(t){let e=t.customLibraryPath,s=t.customLibraryDefaultPrefix;if(e==null){const r=document.querySelector("[customIconLibraryPath]");e=r?.getAttribute("customIconLibraryPath")??"",s==null&&(s=r?.getAttribute("customIconDefaultPrefix")??document.querySelector("[customIconDefaultPrefix]")?.getAttribute("customIconDefaultPrefix")??"")}return{url:e||"",defaultPrefix:s||""}}function bu(t,e){return t in ma?t!=="custom"?ma[t]:gu(e):null}const va=sessionStorage.getItem("sonicIconsCache"),bs=va?JSON.parse(va):{icons:{},names:[]},mu=100,Po=class Po{};Po.default={get:async e=>{const s=e.library;if(!e.name)return"";const r=e.name,i=fu;if(!s)return je(i.core[e.name]||"");const n=bu(s,e);if(n){if(s==="custom"&&!n.url)return"";const o=e.prefix||n.defaultPrefix||"",c=i[s]||{};i[s]=c;const h=s==="custom"?`${n.url}|${o}-${r}`:`${o}-${r}`;if(c[h])return je(c[h]);const b=(n.url||"").replace("$prefix",o).replace("$name",r);if(bs.icons[b]){const g=bs.icons[b];if(/^\s*<svg[\s>]/i.test(g||""))return c[h]=g,je(g);delete bs.icons[b]}if(!Ni.has(b)){const g=new Promise(async f=>{try{const A=await fetch(b);if(!A.ok){f("");return}try{const E=A.headers.get("content-type")||"";if(!E.includes("image/svg+xml")&&!E.includes("svg")){f("");return}const O=await A.text(),N=/^\s*<svg[\s>]/i.test(O);f(N?O:"")}catch{f("")}}catch{cc(),f("")}});Ni.set(b,g)}const k=await Ni.get(b);if(Ni.delete(b),c[h]=k||"",k&&/^\s*<svg[\s>]/i.test(k)&&(bs.icons[b]=k,bs.names.push(b)),bs.names.length>mu){const g=bs.names.shift();delete bs.icons[g]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(bs)),k?je(k):""}return je(i.core[e.name]||"")}};let zn=Po;function vu(t){this.__beforeConnectedCallbackCalls__||(this.__beforeConnectedCallbackCalls__=new Set),this.__beforeConnectedCallbackCalls__.add(t)}function yu(t){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(t)}function wu(t){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(t)}function Js(t){if(t.__is__setSubscribable__)return;t.__is__setSubscribable__=!0,t.__onBeforeConnected__=vu,t.__onConnected__=yu,t.__onDisconnected__=wu;const e=t.connectedCallback;t.connectedCallback=function(){this.__beforeConnectedCallbackCalls__&&this.__beforeConnectedCallbackCalls__.forEach(r=>r(this)),e?.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(r=>r(this))};const s=t.disconnectedCallback;t.disconnectedCallback=function(){s?.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(r=>r(this))}}function _u(t){return t.trim().replace(/^this\./,"")}function Un(t,e){if(!e)return;const s=e.split(".").filter(Boolean);if(s.length===0)return;let r=t;for(const i of s){if(r==null||typeof r!="object")return;r=r[i]}return r}function Pu(t,e){return!!(t==null||e?.skipEmptyPlaceholder&&t==="")}function Ot(t,e,s){let r=!1;const i=(c,h)=>{const b=_u(h),k=Un(t,b);return Pu(k,s)?(r=!0,""):`${k}`},n=e.replace(/\$\{([^}]+)\}/g,i).replace(/\{\$([^}]+)\}/g,i).trim();if(r||!n.length)return{ready:!1,path:null};const o=n.split(".").filter(Boolean);return o.length===0||!o[0]?{ready:!1,path:null}:{ready:!0,path:n}}function Ut(t){const e=[/\$\{([^}]+)\}/g,/\{\$([^}]+)\}/g],s=new Set;for(const r of e){let i;for(;(i=r.exec(t))!==null;){const n=(i[1]||"").trim().replace(/^this\./,"");if(!n)continue;const[o]=n.split(".");o&&s.add(o)}}return Array.from(s)}function ya(t){return typeof t=="object"&&t!==null&&"path"in t&&typeof t.path=="string"}const Wr=new WeakMap,Kr=new Set;let yr=null;const xu=8;function Su(t){let e=Wr.get(t);return e||(e=new Map,Wr.set(t,e)),e}function Au(t,e){const s=new Set;for(const[r,i]of e){const n=Un(t,r);Object.is(i.lastValue,n)||(i.lastValue=n,i.onChangeHandlers.forEach(o=>s.add(o)))}return s}function Cu(){yr=null;let t=0,e=!0;for(;e&&t<xu;){e=!1,t+=1;for(const s of Kr){const r=Wr.get(s);if(!r||r.size===0)continue;const i=Au(s,r);i.size!==0&&(e=!0,i.forEach(n=>n()))}}e&&console.warn("[concorde] dynamic property watch: limite de passes atteinte, boucle infinie probable"),Kr.size>0&&wa()}function wa(){yr===null&&(yr=requestAnimationFrame(Cu))}function ku(){Kr.size===0&&yr!==null&&(cancelAnimationFrame(yr),yr=null)}function Es(t,e,s,r,i){const n=String(r),o=Su(s);let c=o.get(n);return c||(c={lastValue:Un(s,n),onChangeHandlers:new Set},o.set(n,c)),c.onChangeHandlers.add(i),Kr.add(s),wa(),()=>{const h=Wr.get(s);if(!h)return;const b=h.get(n);b&&(b.onChangeHandlers.delete(i),b.onChangeHandlers.size===0&&h.delete(n),h.size===0&&(Wr.delete(s),Kr.delete(s),ku()))}}const Fi={watcherStore:Symbol("__bindDynamicWatcherStore__"),hooked:Symbol("__bindDynamicWillUpdateHooked__")},_a={watcherStore:"__publishDynamicWatcherStore__",hooked:"__publishDynamicWillUpdateHooked__"},Os={watcherStore:"__getDynamicWatcherStore__",hooked:"__getDynamicWillUpdateHooked__"},Pa={watcherStore:Symbol("__onAssignDynamicWatcherStore__"),hooked:Symbol("__onAssignDynamicWillUpdateHooked__")};function Gt(t){const e=t.split(".").filter(i=>i.length>0);if(e.length===0)return null;const s=e.shift()||"";if(!s)return null;let r=be.get(s);return r?(r=Br.traverse(r,e),r):null}function $u(t,e){const s=e?.reflect??!1,r={skipEmptyPlaceholder:e?.skipEmptyPlaceholder},i=Ut(t),n=i.length>0;return function(o,c){if(!o)return;Js(o);const h=`__bind_state_${c}`,b=`__bind_${c}_publisher__`,k=s?`__bind_${c}_updating_from_publisher__`:null;if(s){const g=Object.getOwnPropertyDescriptor(o,c),f=`__bind_${c}_value__`,A=`__bind_${c}_updating_from_publisher__`,E=g&&!g.get&&!g.set?g.value:void 0;Object.defineProperty(o,c,{get(){return g?.get?g.get.call(this):(!Object.prototype.hasOwnProperty.call(this,f)&&E!==void 0&&(this[f]=E),this[f])},set(O){g?.set?g.set.call(this,O):this[f]=O,!this[A]&&this[b]&&this[b].set(O)},enumerable:g?.enumerable??!0,configurable:g?.configurable??!0})}o.__onConnected__(g=>{const f=g[h]||(g[h]={cleanupWatchers:[],unsubscribePublisher:null,currentPath:null});f.unsubscribePublisher&&(f.unsubscribePublisher(),f.unsubscribePublisher=null),f.cleanupWatchers.forEach(O=>O()),f.cleanupWatchers=[],f.currentPath=null;const A=O=>{if(!O){f.unsubscribePublisher&&(f.unsubscribePublisher(),f.unsubscribePublisher=null),f.currentPath=null,g[b]=null;return}if(O===f.currentPath)return;f.unsubscribePublisher&&(f.unsubscribePublisher(),f.unsubscribePublisher=null);const N=Gt(O);if(!N){f.currentPath=null,g[b]=null;return}const U=P=>{s&&k&&(g[k]=!0),g[c]=P,s&&k&&(g[k]=!1)};N.onAssign(U),f.unsubscribePublisher=()=>{N.offAssign(U),g[b]===N&&(g[b]=null)},f.currentPath=O,g[b]=N},E=()=>{if(n){const O=Ot(g,t,r);if(!O.ready){A(null);return}A(O.path);return}A(t)};if(n)for(const O of i){const N=Es(Fi.watcherStore,Fi.hooked,g,O,()=>E());f.cleanupWatchers.push(N)}E()}),o.__onDisconnected__(g=>{const f=g[h];f&&(f.unsubscribePublisher&&(f.unsubscribePublisher(),f.unsubscribePublisher=null),f.cleanupWatchers.forEach(A=>A()),f.cleanupWatchers=[],f.currentPath=null,g[b]=null)})}}function xa(t,e){const s=ya(t)?t.path:t;return $u(s,e)}function Sa(t,e){const s=t.path,r={skipEmptyPlaceholder:e?.skipEmptyPlaceholder},i=Ut(s);return function(n,o){Js(n);const c=`__publish_${o}_publisher__`,h=`__publish_${o}_value__`,b=Object.getOwnPropertyDescriptor(n,o),k=b&&!b.get&&!b.set?b.value:void 0;Object.defineProperty(n,o,{get(){return b?.get?b.get.call(this):(!Object.prototype.hasOwnProperty.call(this,h)&&k!==void 0&&(this[h]=k),this[h])},set(g){b?.set?b.set.call(this,g):this[h]=g;const f=this[c];f&&f.set(g)},enumerable:b?.enumerable??!0,configurable:b?.configurable??!0}),n.__onConnected__(g=>{const f=g,A=`__publish_state_${o}`,E=f[A]||(f[A]={cleanupWatchers:[]}),O=()=>{let N;if(i.length){const P=Ot(g,s,r);N=P.ready?P.path:null}else N=s;const U=N?Gt(N):void 0;if(f[c]=U??null,U&&o in g){const P=f[o];P!==void 0&&U.set(P)}};if(E.cleanupWatchers.forEach(N=>N()),E.cleanupWatchers=[],i.length)for(const N of i)E.cleanupWatchers.push(Es(_a.watcherStore,_a.hooked,f,N,O));O()}),n.__onDisconnected__(g=>{const f=g,A=`__publish_state_${o}`,E=f[A];E?.cleanupWatchers&&E.cleanupWatchers.forEach(O=>O()),f[c]=void 0})}}function Aa(t){return xa(t)}const Du={nullish:t=>t==null,emptyString:t=>t==="",emptyObject:t=>typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.keys(t).length===0,emptyArray:t=>Array.isArray(t)&&t.length===0};function Eu(t,e){return e.some(s=>Du[s](t))}function Ou(t,e,s){if(!s.dispatchWhenUndefined&&t.slice(0,e).filter(i=>i!=null).length!==e)return!1;if(s.skip&&s.skip.length>0){for(let r=0;r<e;r++)if(Eu(t[r],s.skip))return!1}return!0}function Tu(...t){return Ca({},t)}function Ca(t,e){const s=e.map(i=>{const n=Ut(i);return{originalPath:i,dynamicDependencies:n,isDynamic:n.length>0}}),r={skipEmptyPlaceholder:t.skipEmptyPlaceholder};return function(i,n,o){Js(i);const c=`__onAssign_state_${n}__`;let h;i.__onConnected__(b=>{const k=b[c]||(b[c]={cleanupWatchers:[],configurations:[]});k.cleanupWatchers.forEach(O=>O()),k.cleanupWatchers=[],k.configurations.forEach(O=>{O.unsubscribePublisher&&O.unsubscribePublisher()}),k.configurations=[];const g=[],f=[];for(let O=0;O<e.length;O++){const N=s[O],U=new Set,P=y=>{g[O]=y,Ou(g,e.length,t)&&U.forEach(I=>I(...g))};f.push({publisher:null,onAssign:P,callbacks:U,unsubscribePublisher:null,pathConfig:N,index:O})}const A=(O,N)=>{if(O.unsubscribePublisher&&(O.unsubscribePublisher(),O.unsubscribePublisher=null),g[O.index]=null,O.publisher=null,!N)return;const U=Gt(N);U&&(U.onAssign(O.onAssign),O.unsubscribePublisher=()=>{U.offAssign(O.onAssign),O.publisher===U&&(O.publisher=null)},O.publisher=U)},E=()=>{for(const O of f)if(O.pathConfig.isDynamic){const N=Ot(b,O.pathConfig.originalPath,r);if(!N.ready){A(O,null);continue}A(O,N.path)}else A(O,O.pathConfig.originalPath)};for(const O of f)if(O.pathConfig.isDynamic)for(const N of O.pathConfig.dynamicDependencies){const U=Es(Pa.watcherStore,Pa.hooked,b,N,()=>E());k.cleanupWatchers.push(U)}h=o.value.bind(b);for(const O of f)O.callbacks.add(h);E(),k.configurations=f}),i.__onDisconnected__(b=>{const k=b[c];k&&(k.cleanupWatchers.forEach(g=>g()),k.cleanupWatchers=[],k.configurations.forEach(g=>{g.unsubscribePublisher&&g.unsubscribePublisher(),g.callbacks.delete(h)}),k.configurations=[])})}}function Lu(t){return Object.prototype.toString.call(t)==="[object DataProviderKey]"}function Mu(...t){const e=t[t.length-1],s=e!==void 0&&!Lu(e),r=s?e:{},n=(s?t.slice(0,-1):t).map(o=>o.path);return Ca({dispatchWhenUndefined:!r.waitForAllDefined,skip:r.skip,skipEmptyPlaceholder:r.skipEmptyPlaceholder},n)}function Iu(){return function(t,e,s){let r=0;const i=s.value,n=t.constructor.prototype.disconnectedCallback;t.constructor.prototype.disconnectedCallback=function(){n?.apply(this),this.__removeAutoSubscribe__()};const o=t.connectedCallback;t.connectedCallback=function(){o?.call(this),this[e]()},s.value=function(...c){let h=new Set;const b=()=>{r++;const g=r;window.queueMicrotask(()=>{g===r&&this[e]()})};h.forEach(g=>{g.offAssign(b)}),$o();const k=i.apply(this,c);return h=Do()||new Set,h.forEach(g=>{g.onAssign(b,!1)}),this.__removeAutoSubscribe__=()=>{h.forEach(g=>{g.offAssign(b)})},k}}}function Nu(t){return function(e){Js(e);for(const s of t){const r=s.split(".");if(r.length===0)continue;const i=r.shift()||"";let n=be.get(i);n=Br.traverse(n,r),e.__onConnected__(o=>{n.startTemplateFilling(o)}),e.__onDisconnected__(()=>{})}}}function Fu(t){const e=[];let s=t;for(;s;)s instanceof Element&&e.push(s),s=s.parentNode||(s.host??null);return e}function ju(t,e){const s=[];let r=!1;const i=Je.scopeAttributeNames(t.attributeName),n=()=>{for(const o of s)o.disconnect();if(s.length=0,!r)for(const o of Fu(t.component)){const c=new MutationObserver(h=>{r||(h.some(b=>b.type==="childList")&&n(),e())});c.observe(o,{attributes:!0,attributeFilter:i,childList:!0,subtree:!1}),s.push(c)}};return n(),()=>{r=!0;for(const o of s)o.disconnect();s.length=0}}function ka(t,e,s,r){const i=t,n=Je.getAncestorAttributeValue(t,e);!r.assignNull&&n===null||Object.is(i[s],n)||(i[s]=n)}const Be=class Be{static subscribe(e,s,r,i={assignNull:!0}){const n={component:e,attributeName:s,propertyKey:r,syncOptions:i,disconnectObservers:null};return n.disconnectObservers=ju(n,()=>{Be.subscriptions.has(n)&&(Be.pendingRefresh.add(n),Be.scheduleRefresh())}),Be.subscriptions.add(n),()=>{Be.unsubscribe(n)}}static unsubscribe(e){Be.subscriptions.has(e)&&(e.disconnectObservers?.(),e.disconnectObservers=null,Be.subscriptions.delete(e),Be.pendingRefresh.delete(e),Be.subscriptions.size===0&&Be.cancelScheduledRefresh())}static scheduleRefresh(){Be.pendingRefresh.size!==0&&Be.animationFrameId===null&&(Be.animationFrameId=requestAnimationFrame(()=>{Be.flushRefresh()}))}static cancelScheduledRefresh(){Be.animationFrameId!==null&&(cancelAnimationFrame(Be.animationFrameId),Be.animationFrameId=null),Be.pendingRefresh.clear()}static flushRefresh(){Be.animationFrameId=null;const e=Array.from(Be.pendingRefresh);Be.pendingRefresh.clear();for(const s of e)Be.subscriptions.has(s)&&s.component.isConnected&&ka(s.component,s.attributeName,s.propertyKey,s.syncOptions)}};Be.subscriptions=new Set,Be.pendingRefresh=new Set,Be.animationFrameId=null;let qn=Be;function Vn(t,e){const s=e?.dynamic??!1,r=s;return function(i,n){if(!i||(Js(i),i.__onBeforeConnected__(c=>{ka(c,t,n,{assignNull:r})}),!s))return;let o=null;i.__onConnected__(c=>{o=qn.subscribe(c,t,n,{assignNull:!0})}),i.__onDisconnected__(()=>{o?.(),o=null})}}var Ru=Object.defineProperty,zu=Object.getOwnPropertyDescriptor,Xs=(t,e,s,r)=>{for(var i=r>1?void 0:r?zu(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Ru(e,s,i),i};const Bn=t=>u(t),Uu="sonic-icon";let ms=class extends J{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library="",this.customIconLibraryPath=null,this.customIconDefaultPrefix=null}async updateIcon(){this.iconText=await zn.default.get({name:this.name,prefix:this.prefix,library:this.library,customLibraryPath:this.customIconLibraryPath,customLibraryDefaultPrefix:this.customIconDefaultPrefix})}connectedCallback(){this.setAttribute("aria-hidden","true"),super.connectedCallback()}willUpdate(t){(t.has("name")||t.has("prefix")||t.has("library")||this.library==="custom"&&(t.has("customIconLibraryPath")||t.has("customIconDefaultPrefix")))&&this.updateIcon(),super.willUpdate(t)}render(){return this.iconText?this.iconText:re}};ms.styles=ee`
|
|
553
553
|
:host {
|
|
554
554
|
line-height: 0.1em;
|
|
555
555
|
width: fit-content;
|
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
:host([size="3xl"]) svg {
|
|
600
600
|
--_sc-icon-size: 2.8em;
|
|
601
601
|
}
|
|
602
|
-
`,Xs([Ae()],ms.prototype,"iconText",2),Xs([
|
|
602
|
+
`,Xs([Ae()],ms.prototype,"iconText",2),Xs([Bn({type:String})],ms.prototype,"name",2),Xs([Bn({type:String})],ms.prototype,"prefix",2),Xs([Bn({type:String})],ms.prototype,"library",2),Xs([Vn("customIconLibraryPath",{dynamic:!0}),Ae()],ms.prototype,"customIconLibraryPath",2),Xs([Vn("customIconDefaultPrefix",{dynamic:!0}),Ae()],ms.prototype,"customIconDefaultPrefix",2),ms=Xs([X(Uu)],ms),ca();const Yr=ee`
|
|
603
603
|
.custom-scroll {
|
|
604
604
|
overflow: auto !important;
|
|
605
605
|
overflow-y: overlay !important;
|
|
@@ -621,7 +621,7 @@
|
|
|
621
621
|
border: solid 0.15rem transparent;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
`;var
|
|
624
|
+
`;var qu=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,Zt=(t,e,s,r)=>{for(var i=r>1?void 0:r?Vu(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&qu(e,s,i),i};const Bu={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},Hu="sonic-toast-item";let Ft=class extends J{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0,this._titleId=""}getAriaRole(){return this.status==="error"?"alert":"status"}getAriaLive(){return this.status==="error"?null:"polite"}getTitleId(){return this._titleId?this._titleId:(this._titleId=this.id?`toast-title-${this.id}`:`toast-title-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,this._titleId)}getCloseButtonLabel(){const t={error:"Fermer le message d'erreur",warning:"Fermer l'avertissement",success:"Fermer le message de succès",info:"Fermer l'information"};return this.status&&t[this.status]||"Fermer la notification"}render(){if(this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(r)[this.id])return re}if(!this.visible)return re;const t=this.title?this.getTitleId():void 0,e=!this.title&&this.text?this.text.length>100?this.text.substring(0,100).replace(/\s+\S*$/,"")+"...":this.text:void 0,s=this.getAriaLive();return R`<div
|
|
625
625
|
class="sonic-toast ${this.status} ${this.ghost?"ghost":""}"
|
|
626
626
|
role=${this.getAriaRole()}
|
|
627
627
|
aria-live=${s||re}
|
|
@@ -640,7 +640,7 @@
|
|
|
640
640
|
style="max-height: ${this.maxHeight} ;"
|
|
641
641
|
>
|
|
642
642
|
${this.status&&R`<sonic-icon
|
|
643
|
-
name=${
|
|
643
|
+
name=${Bu[this.status]}
|
|
644
644
|
class="sonic-toast-icon"
|
|
645
645
|
size="2xl"
|
|
646
646
|
aria-hidden="true"
|
|
@@ -836,7 +836,7 @@
|
|
|
836
836
|
opacity: 0.85;
|
|
837
837
|
pointer-events: none;
|
|
838
838
|
}
|
|
839
|
-
`],Zt([
|
|
839
|
+
`],Zt([u({type:String})],Ft.prototype,"title",2),Zt([u({type:String})],Ft.prototype,"id",2),Zt([u({type:String})],Ft.prototype,"text",2),Zt([u({type:String})],Ft.prototype,"status",2),Zt([u({type:Boolean})],Ft.prototype,"ghost",2),Zt([u({type:Boolean})],Ft.prototype,"preserve",2),Zt([u({type:Boolean})],Ft.prototype,"dismissForever",2),Zt([u({type:String})],Ft.prototype,"maxHeight",2),Zt([Ae()],Ft.prototype,"visible",2),Zt([Ae()],Ft.prototype,"_titleId",2),Ft=Zt([X(Hu)],Ft);const Wu=ee`
|
|
840
840
|
:host {
|
|
841
841
|
/* POLICES */
|
|
842
842
|
/*
|
|
@@ -907,7 +907,7 @@
|
|
|
907
907
|
--sc-contrast-content: #fff;
|
|
908
908
|
--sc-contrast: #000000;
|
|
909
909
|
}
|
|
910
|
-
`,
|
|
910
|
+
`,Ku=ee`
|
|
911
911
|
:host([theme="light"]) {
|
|
912
912
|
/*Boutons*/
|
|
913
913
|
--sc-primary: var(--sc-base-800);
|
|
@@ -936,7 +936,7 @@
|
|
|
936
936
|
--sc-base-900: #0f172a;
|
|
937
937
|
--sc-base-content: var(--sc-base-700);
|
|
938
938
|
}
|
|
939
|
-
|
|
939
|
+
`,$a=ee`
|
|
940
940
|
--sc-primary: var(--sc-dark-primary, var(--sc-base-700));
|
|
941
941
|
--sc-info: var(--sc-dark-info, #3abff8);
|
|
942
942
|
--sc-danger: var(--sc-dark-danger, #f87272);
|
|
@@ -961,17 +961,17 @@
|
|
|
961
961
|
--sc-base-800: var(--sc-dark-base-800, #d9dce0);
|
|
962
962
|
--sc-base-900: var(--sc-dark-base-900, #e5e7eb);
|
|
963
963
|
--sc-base-content: var(--sc-dark-base-content, #e5e7eb);
|
|
964
|
-
`,
|
|
964
|
+
`,Yu=ee`
|
|
965
965
|
:host([theme="dark"]) {
|
|
966
|
-
${
|
|
966
|
+
${$a}
|
|
967
967
|
}
|
|
968
968
|
|
|
969
969
|
@media (prefers-color-scheme: dark) {
|
|
970
970
|
:host([theme="auto"]) {
|
|
971
|
-
${
|
|
971
|
+
${$a}
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
|
-
`;var
|
|
974
|
+
`;var Gu=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,Gr=(t,e,s,r)=>{for(var i=r>1?void 0:r?Zu(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Gu(e,s,i),i};const Ju="sonic-theme";let jt=class extends J{constructor(){super(),this.background=!1,this.color=!1,this.font=!1,jt.instance=this}static getPopContainer(){return jt.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",t=>this.receiveMessage(t),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){const t=document.styleSheets,e=t.length,s=[];for(let i=0;i<e;i++){const n=t[i];n.href&&(n.href.includes("googleapis")||n.href.includes("typekit.net"))&&s.push(n.href)}const r={variables:this.getCssVariables(),fonts:s};be.get("sonic-theme")?.set(r),document.querySelectorAll("iframe").forEach(i=>i.contentWindow?.postMessage({type:"SonicTheme",...r},"*"))}receiveMessage(t){const e=t.data;!e.type||e.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const t=[],e=[...jt.styles.map(i=>i.styleSheet),...Array.from(document.styleSheets)];for(const i of e)try{if(!i)continue;const n=i.cssRules;for(const o of n){if(!("style"in o))continue;const c=o.style;for(const h of c)t.includes(h)||h.indexOf("--sc")!==0||t.push(h)}}catch{console.warn("Erreur lors de la récupération des variables CSS")}const s=window.getComputedStyle(this),r={};return t.forEach(i=>r[i]=s.getPropertyValue(i)),r}render(){return R`<slot></slot>`}};jt.styles=[Ku,Yu,Wu,ee`
|
|
975
975
|
:host([color]) {
|
|
976
976
|
color: var(--sc-base-content, #000);
|
|
977
977
|
}
|
|
@@ -1003,39 +1003,39 @@
|
|
|
1003
1003
|
transition-property: scale, opacity;
|
|
1004
1004
|
transition-timing-function: cubic-bezier(0.25, 0.25, 0.42, 1.225);
|
|
1005
1005
|
}
|
|
1006
|
-
`],Gr([
|
|
1007
|
-
${Ii(this.toasts,
|
|
1006
|
+
`],Gr([u({type:String,reflect:!0})],jt.prototype,"theme",2),Gr([u({type:Boolean,reflect:!0})],jt.prototype,"background",2),Gr([u({type:Boolean,reflect:!0})],jt.prototype,"color",2),Gr([u({type:Boolean,reflect:!0})],jt.prototype,"font",2),jt=Gr([X(Ju)],jt);var Xu=Object.defineProperty,Qu=Object.getOwnPropertyDescriptor,Da=(t,e,s,r)=>{for(var i=r>1?void 0:r?Qu(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Xu(e,s,i),i};const eh="sonic-toast";let Ce=class extends J{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const e=window.parent!=window;let s={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};return e||(s={...s,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),Ce.handleExistingToastDelegation(),this.toasts?R`<div style=${$t(s)}>
|
|
1007
|
+
${Ii(this.toasts,r=>r.id,r=>R`
|
|
1008
1008
|
<sonic-toast-item
|
|
1009
1009
|
maxHeight=${e?"none":"10rem"}
|
|
1010
|
-
status=${te(
|
|
1011
|
-
title=${te(
|
|
1012
|
-
?ghost=${
|
|
1013
|
-
?dismissForever=${
|
|
1014
|
-
?preserve=${
|
|
1015
|
-
id=${te(
|
|
1016
|
-
@hide=${()=>this.removeItem(
|
|
1017
|
-
${
|
|
1010
|
+
status=${te(r.status)}
|
|
1011
|
+
title=${te(r.title)}
|
|
1012
|
+
?ghost=${r.ghost}
|
|
1013
|
+
?dismissForever=${r.dismissForever}
|
|
1014
|
+
?preserve=${r.preserve}
|
|
1015
|
+
id=${te(r.id)}
|
|
1016
|
+
@hide=${()=>this.removeItem(r)}
|
|
1017
|
+
${pu({keyframeOptions:{duration:250,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(0) scale(1.25)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"scale(.90) ",opacity:0,duration:3e3,easing:"ease-in-out"}],stabilizeOut:!0})}
|
|
1018
1018
|
>
|
|
1019
1019
|
<!-- Le texte est passé dans le slot et non pas en propriété pour contrer des problèmatiques de shadow-dom et d'appel exterieur (exemple: fancybox) -->
|
|
1020
|
-
${
|
|
1020
|
+
${r.text?je(r.text):""}
|
|
1021
1021
|
</sonic-toast-item>
|
|
1022
1022
|
`)}
|
|
1023
|
-
</div>`:re}static removeAll(){if(Ce.delegateToasts){Ce.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const e=Ce.getInstance();e&&(e.toasts=e.toasts.filter(s=>s.ghost))}static removeItemsByStatus(e){if(Ce.delegateToasts){Ce.handleExistingToastDelegation(),window.parent.postMessage({type:"removeItemsByStatus",status:e},"*");return}const s=Ce.getInstance();s&&(s.toasts=s.toasts.filter(
|
|
1023
|
+
</div>`:re}static removeAll(){if(Ce.delegateToasts){Ce.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const e=Ce.getInstance();e&&(e.toasts=e.toasts.filter(s=>s.ghost))}static removeItemsByStatus(e){if(Ce.delegateToasts){Ce.handleExistingToastDelegation(),window.parent.postMessage({type:"removeItemsByStatus",status:e},"*");return}const s=Ce.getInstance();s&&(s.toasts=s.toasts.filter(r=>r.status!==e))}static removeTemporaryItems(){if(Ce.delegateToasts){Ce.handleExistingToastDelegation(),window.parent.postMessage({type:"removeTemporaryItems"},"*");return}const e=Ce.getInstance();e&&(e.toasts=e.toasts.filter(s=>s.preserve))}static getInstance(){return Ce.instance||(Ce.instance=document.createElement("sonic-toast"),jt.getPopContainer().prepend(Ce.instance)),Ce.instance}static add(e){if(Ce.delegateToasts){Ce.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:e},"*");return}const s=Ce.getInstance(),r=e.id??new Date().valueOf(),n=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(e.text),o={id:r,text:e.text,title:e.title,status:e.status,preserve:n?!0:e.preserve,ghost:e.ghost,dismissForever:e.dismissForever};if(e.dismissForever&&e.id){const c=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(c)[e.id])return null}if(s?.toasts.length){const c={...o};for(const h of s.toasts){const b={...h};if(c.id=b.id=0,at.shallowEqual(c,b))return null}}return s&&(s.toasts=[...s.toasts,o]),o}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const e=Ce.getInstance();window.parent.postMessage({type:"addToasts",toasts:e.toasts},"*"),e.toasts=[]}static removeItem(e){if(Ce.delegateToasts){Ce.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:e},"*");return}const s=Ce.getInstance();s&&s.removeItem(e)}removeItem(e){e&&(this.toasts=this.toasts.filter(s=>(s={...s},delete s.id,!at.shallowEqual(s,e,!1))))}};Ce.delegateToasts=!1,Da([u({type:Array})],Ce.prototype,"toasts",2),Ce=Da([X(eh)],Ce),typeof window<"u"&&(window[cn+"Toast"]=window[cn+"Toast"]||Ce);function th(){const t=s=>{s.data.type=="querySonicToastAvailability"&&s.source.postMessage({type:"sonicToastAvailable"},"*"),s.data.type=="removeItemsByStatus"&&Ce.removeItemsByStatus(s.data.status),s.data.type=="removeTemporaryItems"&&Ce.removeTemporaryItems(),s.data.type=="sonicToastAvailable"&&(Ce.delegateToasts=!0,Ce.handleExistingToastDelegation()),s.data.type=="addToasts"&&(Ce.getInstance().toasts=[...Ce.getInstance().toasts,...s.data.toasts]),s.data.type=="removeAllToasts"&&Ce.removeAll(),s.data.type=="removeToast"&&Ce.removeItem(s.data.toast),s.data.type=="addToast"&&Ce.add(s.data.toast)},e=window.parent!=window;if(window.addEventListener("message",t,!1),e&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!e)for(const s of document.querySelectorAll("iframe"))s.contentWindow?.postMessage({type:"sonicToastAvailable"},"*")}th();var sh=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,Zr=(t,e,s,r)=>{for(var i=r>1?void 0:r?rh(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&sh(e,s,i),i};const ih=new Set,nh=new Set,oh=t=>{for(const e of nh)e(t)},Hn=new Set;let Wn=0;ln(async()=>{Wn++;const t=Wn,e=Array.from(Hn);for(;e.length>0;){if(t!=Wn)return;const s=e.splice(0,4);await Promise.all(s.map(r=>r.refetch()))}});const Kn=(t,e)=>{class s extends t{constructor(...i){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.noErrorsRecordings=!1,this.requestId=0,this.refetchEveryMs=0,this._isFetching=!1,this._mustRefetch=!1,this.dataProvider=""}get props(){return super.props}set props(i){super.props=i}set endPoint(i){this._endPoint=i,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}handleStartFetching(){return this._isFetching?(this._mustRefetch=!0,"fetching"):(this._isFetching=!0,"okToFetch")}handleEndFetching(){this._isFetching=!1,this._mustRefetch&&(this._mustRefetch=!1,this._fetchData())}refetch(){return this._fetchData()}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled||(this.api=new Ds(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await be.getInstance().isLocalStrorageReady,!this.isConnected))return;const i=be.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();if(this.isLoading=!0,at.isObject(this.props)&&Object.keys(this.props||{}).length>0&&this.isFirstLoad&&window.requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1}),this.handleStartFetching()==="fetching")return;let o=null;try{o=await this.api.get(this.endPoint||this.dataProvider||"",i)}catch{}if(this.handleEndFetching(),this.fetchedData=o,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||ih.add(this),oh(this.api.lastResult)),!!this.isConnected){if(o)o._sonic_http_response_&&!o._sonic_http_response_.ok&&Object.keys(o).length===1&&Ce.add({text:"Network Error",status:"error"});else{this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs));return}if(this.key){const c=o._sonic_http_response_,h=this.key.split(".");o=at.traverse(o,h,this.hasAttribute("preserveOtherKeys")),o&&at.isObject(o)&&c&&(o._sonic_http_response_=c)}this.props=o,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs))}}disconnectedCallback(){super.disconnectedCallback(),Hn.delete(this),this.publisher?.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){this.lazyLoad=this.lazyLoad!==void 0?this.lazyLoad:this.hasAttribute("lazyload"),Hn.add(this),super.connectedCallback(),this.isFetchEnabled&&(this.key=this.key!=""?this.key:this.getAttribute("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),this.publisher?.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const i=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),n={root:null,rootMargin:Math.max(window.innerWidth*i,window.innerHeight*i)+"px",threshold:.9};this.iObserver=new IntersectionObserver(h=>this.onIntersection(h),n);let c=[...(this.shadowRoot?this.shadowRoot:this).children].filter(h=>h.nodeName.toLowerCase()!="style")[0];if(c?.nodeName.toLocaleLowerCase()=="slot"&&(c=[...c.children].filter(h=>h.nodeName.toLowerCase()!="style")[0]),!c||c.nodeName.toLocaleLowerCase()=="template"){c=document.createElement("div");const h=c.style;h.pointerEvents="none",h.width="1px",h.height="1px",this.lazyLoadPlaceHolder=c,this.appendChild(c)}c?this.iObserver.observe(c):this.isFirstLoad&&this._fetchData()}onIntersection(i){for(const n of i)if(n.isIntersecting&&this.isFirstLoad){this._fetchData(),this.lazyLoadPlaceHolder?.remove(),this.lazyLoadPlaceHolder=void 0,this.iObserver?.disconnect();break}}}return Zr([u()],s.prototype,"noErrorsRecordings",2),Zr([u()],s.prototype,"props",1),Zr([u({type:String})],s.prototype,"endPoint",1),Zr([u()],s.prototype,"requestId",2),Zr([u({type:Number})],s.prototype,"refetchEveryMs",2),s};var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,Qs=(t,e,s,r)=>{for(var i=r>1?void 0:r?lh(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&ah(e,s,i),i};const ji=t=>{class e extends t{constructor(...r){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){const r=this.shadowRoot?.querySelector("input");if(!r||r.checkValidity())return;const i=this.getFormPublisher();i&&(i.isFormValid=!1),r.reportValidity()}set type(r){this.hasAttribute("type")&&!this.forceAutoFill&&(r=this.getAttribute("type")),this._type=r,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}}return Qs([u()],e.prototype,"forceAutoFill",2),Qs([u({type:String})],e.prototype,"type",1),Qs([u()],e.prototype,"description",1),Qs([u()],e.prototype,"label",1),Qs([u({type:String,reflect:!0})],e.prototype,"status",2),Qs([u({type:Number})],e.prototype,"tabindex",2),Qs([u({type:String})],e.prototype,"autocomplete",2),e},Ea=Kn,ch=Fn,Oa=br,Ta=ji,Ts=nt,Yn=Ur;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:Ea,FormCheckable:ch,FormElement:Oa,FormInput:Ta,Subscriber:Ts,TemplatesContainer:Yn};/**
|
|
1024
1024
|
* @license
|
|
1025
1025
|
* Copyright 2020 Google LLC
|
|
1026
1026
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1027
|
-
*/const rs=$s(class extends fr{constructor(t){if(super(t),t.type!==Ys.CHILD)throw Error("templateContent can only be used in child bindings")}render(t){return this.vt===t?
|
|
1027
|
+
*/const rs=$s(class extends fr{constructor(t){if(super(t),t.type!==Ys.CHILD)throw Error("templateContent can only be used in child bindings")}render(t){return this.vt===t?Nt:(this.vt=t,document.importNode(t.content,!0))}});var uh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,La=(t,e,s,r)=>{for(var i=r>1?void 0:r?hh(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&uh(e,s,i),i};const dh="sonic-fetch";let Ri=class extends Kn(nt(Yn(J))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return re;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return R`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const t=this.templateParts.skeleton;return this.isLoading&&t?rs(t):re}render(){return R`
|
|
1028
1028
|
${this.renderSkeleton()} ${this.renderLoader()}
|
|
1029
1029
|
${this.isLoading?re:R`<slot></slot>`}
|
|
1030
|
-
`}};
|
|
1030
|
+
`}};Ri.styles=[ee`
|
|
1031
1031
|
:host {
|
|
1032
1032
|
display: contents;
|
|
1033
1033
|
}
|
|
1034
|
-
`],
|
|
1034
|
+
`],La([u()],Ri.prototype,"loader",2),Ri=La([X(dh)],Ri);var ph=Object.defineProperty,fh=Object.getOwnPropertyDescriptor,Ma=(t,e,s,r)=>{for(var i=r>1?void 0:r?fh(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&ph(e,s,i),i};const gh="sonic-if";let zi=class extends J{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?R` <slot></slot> `:re}};zi.styles=ee`
|
|
1035
1035
|
:host {
|
|
1036
1036
|
display: contents;
|
|
1037
1037
|
}
|
|
1038
|
-
`,
|
|
1038
|
+
`,Ma([u({type:Boolean})],zi.prototype,"condition",2),zi=Ma([X(gh)],zi);const bh=ee`
|
|
1039
1039
|
:host([align="left"]) .sonic-loader--inline {
|
|
1040
1040
|
margin-left: 0;
|
|
1041
1041
|
}
|
|
@@ -1102,7 +1102,7 @@
|
|
|
1102
1102
|
transform: translate(24px, 0);
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
|
-
`,
|
|
1105
|
+
`,mh=ee`
|
|
1106
1106
|
@keyframes sonic-loader--fixed {
|
|
1107
1107
|
0% {
|
|
1108
1108
|
transform: scale(0);
|
|
@@ -1155,14 +1155,14 @@
|
|
|
1155
1155
|
height: 5rem;
|
|
1156
1156
|
animation: sonic-loader--fixed 1s 0s linear infinite;
|
|
1157
1157
|
}
|
|
1158
|
-
`;var
|
|
1158
|
+
`;var vh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,Gn=(t,e,s,r)=>{for(var i=r>1?void 0:r?yh(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&vh(e,s,i),i};const wh="sonic-loader";let ut=class extends J{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(t){ut.loader||(ut.loader=document.createElement("sonic-loader"));const e=ut.loader;t||(t={}),t.mode&&e.setAttribute("mode",t.mode),t.noDelay&&e.setAttribute("noDelay",""),t.container||(t.container=jt.getPopContainer(),t.mode="fixed"),t.container.appendChild(e),ut.callCounter++}static hide(){ut.callCounter--,!(ut.callCounter>0)&&ut.loader&&ut.loader.remove()}render(){return R`<div
|
|
1159
1159
|
class="sonic-loader sonic-loader--${this.mode} ${this.noDelay?"sonic-loader--nodelay":""} "
|
|
1160
1160
|
>
|
|
1161
1161
|
<div></div>
|
|
1162
1162
|
<div></div>
|
|
1163
1163
|
<div></div>
|
|
1164
1164
|
<div></div>
|
|
1165
|
-
</div>`}};
|
|
1165
|
+
</div>`}};ut.styles=[bh,mh,ee`
|
|
1166
1166
|
:host {
|
|
1167
1167
|
--sc-_loader-bg: var(--sc-primary, currentColor);
|
|
1168
1168
|
pointer-events: none;
|
|
@@ -1190,7 +1190,7 @@
|
|
|
1190
1190
|
opacity: 1;
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
`],
|
|
1193
|
+
`],ut.callCounter=0,Gn([u({type:String})],ut.prototype,"mode",2),Gn([u({type:Boolean})],ut.prototype,"noDelay",2),ut=Gn([X(wh)],ut);var _h=Object.getOwnPropertyDescriptor,Ph=(t,e,s,r)=>{for(var i=r>1?void 0:r?_h(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const xh="sonic-subscriber";let Ia=class extends nt(J){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(t){super.updated(t),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return R`<slot></slot> `}};Ia=Ph([X(xh)],Ia);var Sh=Object.defineProperty,Ah=Object.getOwnPropertyDescriptor,Jt=(t,e,s,r)=>{for(var i=r>1?void 0:r?Ah(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Sh(e,s,i),i};const Ch="sonic-list";let qt=class extends Kn(nt(Ur(J))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0,this.loadingSize={width:0,height:0}}get items(){return this._items}set items(t){typeof t!="function"&&t!==void 0||(this._items=t,this.requestUpdate())}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}renderLoader(){if(!(this.isLoading&&this.loader!==void 0)||this.templateParts.skeleton)return re;const e=this.loader===!0||this.loader===""?"fixed":this.loader;return R`<sonic-loader mode=${e}></sonic-loader>`}renderSkeleton(){if(this.skeleton)return this.skeleton();const t=this.templateParts.skeleton;return this.isLoading&&t?rs(t):re}renderSeparator(){if(this.separator)return this.separator();const t=this.templateParts.separator;return t?rs(t):re}renderLoadingState(){return R`${this.renderSkeleton()} ${this.renderLoader()} `}renderNoResultState(){return R` <div
|
|
1194
1194
|
style="color: var(--sc-base-400);
|
|
1195
1195
|
font-size: 1.5em;
|
|
1196
1196
|
margin: 4rem 0;
|
|
@@ -1201,7 +1201,7 @@
|
|
|
1201
1201
|
><span class="sonic-no-result-text"
|
|
1202
1202
|
>${typeof this.props=="string"&&this.props==""?"Aucun résultat":this.props}</span
|
|
1203
1203
|
>
|
|
1204
|
-
</div>`}formatProps(){let t=this.props;if(t==null)return null;const e=t._sonic_http_response_,s=this.hasAttribute("extractValues");return Array.isArray(t)||(s?t=Object.entries(t).map(([i
|
|
1204
|
+
</div>`}formatProps(){let t=this.props;if(t==null)return null;const e=t._sonic_http_response_,s=this.hasAttribute("extractValues");return Array.isArray(t)||(s?t=Object.entries(t).map(([r,i])=>({key:r,value:i})):at.isObject(t)&&Object.keys(t).length>0&&(!e||e.ok)?t=[t]:t=[]),t=t.filter(r=>r!=null),e&&(t._sonic_http_response_=e),t}updated(t){window.requestAnimationFrame(()=>{if(!this.isLoading){this.style.setProperty("--list-loader-height-display","none");return}this.style.setProperty("--list-loader-height-display","block"),this.loadingSize=this.getDisplayContentsSize(this)}),super.updated(t)}getAllRenderableElements(t){let e=[];function s(r){if(r.nodeType===Node.ELEMENT_NODE){const i=r.getBoundingClientRect();(i.width>0||i.height>0)&&e.push(r),r.childNodes.forEach(s),r.shadowRoot&&r.shadowRoot.childNodes.forEach(s)}}return s(t),e}getDisplayContentsSize(t){const e=this.getAllRenderableElements(t);if(e.length===0)return{width:0,height:0};const s=e.map(c=>c.getBoundingClientRect()),r=Math.min(...s.map(c=>c.left)),i=Math.max(...s.map(c=>c.right)),n=Math.min(...s.map(c=>c.top)),o=Math.max(...s.map(c=>c.bottom));return{width:i-r,height:o-n}}render(){return R`
|
|
1205
1205
|
${this.renderContent()}
|
|
1206
1206
|
<div
|
|
1207
1207
|
style="grid-column: 1 / -1;min-height:${this.isLoading?0:this.loadingSize.height}px; width:0;float:left;display: var(--list-loader-height-display);"
|
|
@@ -1213,24 +1213,24 @@
|
|
|
1213
1213
|
dataProvider="${this.dataProvider}/list-item/${s}"
|
|
1214
1214
|
>
|
|
1215
1215
|
${this.items(t,e)}
|
|
1216
|
-
</sonic-subscriber>`:null}renderContent(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!at.isObject(this.props))return R`<div></div>`;const
|
|
1217
|
-
${
|
|
1216
|
+
</sonic-subscriber>`:null}renderContent(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!at.isObject(this.props))return R`<div></div>`;const r=this.formatProps();if((r?.length||0)==0){if(this.noItems)return this.noItems();if(this.templateParts["no-items"]=this.templateParts["no-items"]||this.templateParts["no-item"],this.templateParts["no-items"])return rs(this.templateParts["no-items"])}const i=this.templateList.length;let n=-1;const o=this.hasAttribute("extractValues"),c=this.renderSeparator(),h=r?.length||0,b=r?.slice(this.offset,this.offset+this.limit);return R`
|
|
1217
|
+
${b?.map((k,g)=>{if(k==null)return re;let f=g,A=null;if(typeof k=="object"&&!Array.isArray(k)){o&&(f=k?.key);const y=k[this.templateKey];y&&typeof y=="string"&&(A=this.templateParts[y])}if(f=="_sonic_http_response_"||typeof f!="string"&&typeof f!="number")return re;const E=g>=h-1,O=g%2,N=this.publisher[f],U={key:f,even:O==0,odd:O==1,onlyChild:h==1,firstChild:g==0,lastChild:E};N._key_=f+"",N._metadata_={...N._metadata_.get(),...U};const P=this.handleProgrammaticTemplates(k,U,f);return P?R`${P}${E?re:c}`:(n++,A&&(n=-1),R`
|
|
1218
1218
|
<sonic-subscriber
|
|
1219
1219
|
?debug=${this.defferedDebug===!0}
|
|
1220
|
-
.bindPublisher=${function(){return
|
|
1220
|
+
.bindPublisher=${function(){return N}}
|
|
1221
1221
|
.propertyMap?=${this.itemPropertyMap}
|
|
1222
1222
|
dataProvider="${this.dataProvider}/list-item/${f}"
|
|
1223
1223
|
>
|
|
1224
|
-
${rs(A||this.templateList[n%
|
|
1224
|
+
${rs(A||this.templateList[n%i])}
|
|
1225
1225
|
</sonic-subscriber>
|
|
1226
1226
|
${E?re:c}
|
|
1227
1227
|
`)})}
|
|
1228
|
-
`}};Jt([
|
|
1228
|
+
`}};Jt([u({type:Object})],qt.prototype,"itemPropertyMap",2),Jt([u({type:String})],qt.prototype,"templateKey",2),Jt([u({type:String})],qt.prototype,"idKey",2),Jt([u()],qt.prototype,"loader",2),Jt([u()],qt.prototype,"limit",2),Jt([u()],qt.prototype,"offset",2),Jt([u({type:Function,attribute:!1})],qt.prototype,"items",1),Jt([u({type:Function,attribute:!1})],qt.prototype,"noItems",2),Jt([u({type:Function,attribute:!1})],qt.prototype,"skeleton",2),Jt([u({type:Function,attribute:!1})],qt.prototype,"separator",2),qt=Jt([X(Ch)],qt);/**
|
|
1229
1229
|
* @license
|
|
1230
1230
|
* Copyright 2021 Google LLC
|
|
1231
1231
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1232
|
-
*/function*
|
|
1233
|
-
${
|
|
1232
|
+
*/function*Na(t,e){if(t!==void 0){let s=0;for(const r of t)yield e(r,s++)}}var kh=Object.defineProperty,$h=Object.getOwnPropertyDescriptor,ht=(t,e,s,r)=>{for(var i=r>1?void 0:r?$h(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&kh(e,s,i),i};const Dh="sonic-queue";let tt=class extends nt(J){constructor(){super(...arguments),this.templates=null,this.items=null,this.noItems=null,this.skeleton=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.loader="inline",this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{const e=this.dataProviderExpression.split("?");e.shift();const s=new URLSearchParams(e.join("?")),r=this.filterPublisher?.get(),i=this.filteredFields.split(" ");for(const o in r){let c=r[o];Array.isArray(c)&&(c=c.filter(h=>h!==null)),!(this.filteredFields&&i.includes(o)||c==null||c.toString()==="")&&s.set(o,r[o].toString())}const n=s.toString();if(!(n==this.searchHash&&!this.isFirstRequest)){this.searchHash=n,Gc(this.resolveScrollRoot(),{x:0,y:0});for(const o of this.listDataProviders)be.getInstance().delete(o);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{const o=this.resultCount;this.props=null,this.requestId++,this.resultCount=o,await be.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.scrollRoot=null,this.scrollSyncActive=!1,this.mutationObserver=null,this.restoreGeneration=0,this.dataProviderExpression="",this.invalidateOnPageShow=!1,this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1}disconnectedCallback(){for(const t of this.listDataProviders)be.getInstance().delete(t),this.listDataProviders=[];this.filterPublisher?.offInternalMutation(this.updateFilteredContent),this.props=null,this.limit=5,this.offset=0,this.resultCount=0,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.nextHadEvent=!1,this.teardownScrollSync(),this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=tt.instanceCounter++,this.localStorage=this.getAttribute("localStorage")||this.localStorage,this.filterTimeoutMs=parseInt(this.getAttribute("filterTimeoutMs")||"400"),this.removeAttribute("localStorage"),this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider=this.dataProviderExpression||"sonic-queue-"+this.instanceId+"-"+Math.random().toString(36).substring(7)),this.dataProviderExpression||(this.dataProviderExpression=gs.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),this.ensureScrollSync(),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await be.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=new Date().getTime(),this.configFilter()}configFilter(){const t=this.getAncestorAttributeValue("dataFilterProvider");if(!t){this.next();return}this.filterPublisher=be.getInstance().get(t),this.filterPublisher?.onInternalMutation(this.updateFilteredContent)}resolveScrollRoot(){const t=gs.getScrollingAncestor(this);return!t||t===document.documentElement||t===document.body?window:t}isSafari(){return fs()}ensureScrollSync(){if(!fs()||!this.isConnected)return;const t=this.resolveScrollRoot();this.scrollRoot=t,Zs(t),!this.scrollSyncActive&&(this.scrollSyncActive=!0,this.mutationObserver=new MutationObserver(()=>{this.scheduleRestoreAfterChildren()}),this.mutationObserver.observe(this,{childList:!0,subtree:!0,characterData:!0}))}teardownScrollSync(){this.restoreGeneration++,this.mutationObserver?.disconnect(),this.mutationObserver=null,this.scrollSyncActive=!1,this.scrollRoot=null}scheduleRestoreAfterChildren(){if(!fs()||!this.isConnected)return;const t=++this.restoreGeneration;(async()=>{if(await this.updateComplete,t!==this.restoreGeneration||!this.isConnected)return;const e=Array.from(this.querySelectorAll("sonic-list"));if(e.length&&await Promise.all(e.map(r=>r.updateComplete)),t!==this.restoreGeneration||!this.isConnected||(await new Promise(r=>requestAnimationFrame(()=>r())),await new Promise(r=>requestAnimationFrame(()=>r())),t!==this.restoreGeneration||!this.isConnected))return;const s=this.scrollRoot??this.resolveScrollRoot();Zs(s),On(s)})()}updated(t){if(fs()){this.ensureScrollSync();const e=this.scrollRoot??this.resolveScrollRoot();On(e),this.scheduleRestoreAfterChildren()}super.updated(t)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(t){let e=this.offset;const r=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&t&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!t,t){if(this.publisher.lastFetchedData=t.detail.fetchedData,t.detail.requestId<this.requestId)return;if(this.resultCount+=t.detail.props?.length||0,!t.detail.isFirstLoad||!t.detail.props?.length||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const g=this.props,f=g[g.length-1];e=parseInt(f.offset.toString())+parseInt(f.limit.toString())}else{const g=[];g.resultCount=this.resultCount,g.lastFetchedData=t?.detail.fetchedData||{},this.props=g}r>0&&t&&!this.localStorage&&(this.limit=Math.round(this.limit/r*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let i=this.dataProviderExpression.replace("$offset",e+"").replace("$limit",this.limit+"");const n=i.split("?");let o=n.shift();const c=new URLSearchParams(n.join("?")),h=this.filterPublisher?.get(),b=this.filteredFields.split(" ");for(const g in h)this.filteredFields&&b.includes(g)||h[g]==null||h[g]==""||c.set(g,h[g]);this.searchHash||(this.searchHash=c.toString()),o=o+"?"+c.toString(),i=i+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(i);const k=[...this.props,{id:c.toString()+"/"+this.props.length,dataProvider:i,endPoint:o,offset:e,limit:this.limit}];k.resultCount=this.resultCount,k.lastFetchedData=t?.detail.fetchedData||{},this.props=k,this.lastRequestTime=new Date().getTime()}render(){if(this.isSafari()&&(this.scrollRoot=this.resolveScrollRoot(),this.ensureScrollSync()),!Array.isArray(this.props))return re;let t=!this.noLazyload;return this.props.length==1&&(t=!1),this.style.display="block",R`
|
|
1233
|
+
${Na(this.props,(e,s)=>{const r=s==0?this.templates:this.templates?.filter(i=>i.getAttribute("data-value")!="no-item");return R`
|
|
1234
1234
|
<sonic-list
|
|
1235
1235
|
fetch
|
|
1236
1236
|
loader="${this.loader}"
|
|
@@ -1249,43 +1249,43 @@
|
|
|
1249
1249
|
dataProvider="${e.dataProvider}"
|
|
1250
1250
|
endPoint="${e.endPoint}"
|
|
1251
1251
|
idKey=${this.idKey}
|
|
1252
|
-
.templates=${
|
|
1252
|
+
.templates=${r}
|
|
1253
1253
|
.items=${this.items}
|
|
1254
1254
|
.noItems=${s==0?this.noItems:void 0}
|
|
1255
1255
|
.skeleton=${this.skeleton}
|
|
1256
1256
|
>
|
|
1257
1257
|
</sonic-list>
|
|
1258
1258
|
`})}
|
|
1259
|
-
`}};tt.instanceCounter=0,
|
|
1259
|
+
`}};tt.instanceCounter=0,ht([u({type:Array})],tt.prototype,"templates",2),ht([u({type:Function,attribute:!1})],tt.prototype,"items",2),ht([u({type:Function,attribute:!1})],tt.prototype,"noItems",2),ht([u({type:Function,attribute:!1})],tt.prototype,"skeleton",2),ht([u({type:Object})],tt.prototype,"itemPropertyMap",2),ht([u()],tt.prototype,"cache",2),ht([u()],tt.prototype,"targetRequestDuration",2),ht([u()],tt.prototype,"limit",2),ht([u()],tt.prototype,"lazyBoundsRatio",2),ht([u()],tt.prototype,"offset",2),ht([u()],tt.prototype,"resultCount",2),ht([u({type:Boolean})],tt.prototype,"noLazyload",2),ht([u({type:String})],tt.prototype,"loader",2),ht([u()],tt.prototype,"filteredFields",2),ht([u({type:String})],tt.prototype,"dataProviderExpression",2),ht([u({type:Boolean})],tt.prototype,"invalidateOnPageShow",2),ht([u({type:String})],tt.prototype,"idKey",2),tt=ht([X(Dh)],tt);var Eh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,wr=(t,e,s,r)=>{for(var i=r>1?void 0:r?Oh(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Eh(e,s,i),i};const Th="sonic-submit";let Ls=class extends nt(J){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.name="",this.value="",this.api=null,this.clickTimeStamp=0,this.submit=async t=>{if(this.disabled||t instanceof KeyboardEvent&&t.key!=="Enter")return;t instanceof MouseEvent&&t.stopPropagation();const e=be.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(e.isFormValid.set(!0),e.invalidateForm(),!e.isFormValid.get())return;if(this.disabled=!0,ut.show(),e.isFormValid,this.hasAttribute("native")){this.submitNativeForm(),ut.hide(),this.disabled=!1;return}const r=this.getAttribute("method")?.toLocaleLowerCase()||"post",i=this.hasAttribute("sendAsFormData"),n=e.get();delete n.isFormValid;const o=this.getAncestorAttributeValue("headersDataProvider"),c=o?be.getInstance().get(o):null;let h={};c&&(h=c.get());let b=null;const k=this.getAncestorAttributeValue("dataProvider"),g=this.endPoint||k,f=async()=>{const E={...n};if(delete E.needsCaptchaValidation,delete h.needsCaptchaValidation,i)b=await this.api?.submitFormData(g,E,r,h);else switch(r){case"put":b=await this.api?.put(g,E,h);break;case"patch":b=await this.api?.patch(g,E,h);break;case"delete":b=await this.api?.delete(g,E,h);break;case"get":const y=new URLSearchParams;if(E)for(const C in E)y.append(C,E[C]);const I="?"+y.toString();b=await this.api?.get(g+I,h);break;default:b=await this.api?.post(g,E,h);break}ut.hide(),b?b._sonic_http_response_&&!b._sonic_http_response_.ok&&Object.keys(b).length===1&&(b.messages=[{content:"Network Error",status:"error"}]):b={messages:[{content:"Network Error",status:"error"}]};const O=this.getAncestorAttributeValue("clearedDataOnSuccess");O&&O.split(" ").forEach(y=>be.get(y).set({}));const N=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",U=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";this.api?.lastResult?.ok&&E[N]&&E[U]&&this.saveCredentials(E[N],E[U]),this.submitResultKey&&(b=at.traverse(b,this.submitResultKey.split("."),!0));const P=this.getAncestorAttributeValue("submitResultDataProvider");P&&be.get(P).set(b),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:b,bubbles:!0,composed:!0}))},A=c?.needsCaptchaValidation.get()?c:e.needsCaptchaValidation.get()?e:null;if(A){A.captchaToken.set("request_token");const E=O=>{O!="request_token"?(f(),A.captchaToken.offAssign(E)):(ut.hide(),this.disabled=!1)};A.captchaToken.onAssign(E)}else f()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new Ds(this.getApiConfiguration())}submitNativeForm(){const t=gs.getClosestForm(this);if(!t)return;const e=this.getAncestorAttributeValue("formDataProvider"),s={...be.get(e).get()};delete s.needsCaptchaValidation;for(const i in s){if(i=="isFormValid")continue;let n=t.querySelector('input[name="'+i+'"], select[name="'+i+'"], textarea[name="'+i+'"]');n||(n=document.createElement("input"),n.type="hidden",n.name=i,t.appendChild(n));let o=s[i];Array.isArray(o)&&(o=o.join(",")),n.type==="checkbox"||n.type==="radio"?o&&(n.checked=!0):n.value=o}const r=document.createElement("input");r.name=this.name,r.style.display="none",r.value=this.value,r.type="submit",t.appendChild(r),r&&r.click()}async saveCredentials(t,e){if("PasswordCredential"in window){const s=new window.PasswordCredential({id:t,password:e});await navigator.credentials.store(s)}}render(){return R`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Ls.styles=ee`
|
|
1260
1260
|
[data-disabled] {
|
|
1261
1261
|
opacity: 0.3;
|
|
1262
1262
|
pointer-events: none;
|
|
1263
1263
|
user-select: none;
|
|
1264
1264
|
}
|
|
1265
|
-
`,wr([
|
|
1265
|
+
`,wr([u({type:String})],Ls.prototype,"submitResultKey",2),wr([u({type:Boolean})],Ls.prototype,"disabled",2),wr([u({type:String})],Ls.prototype,"endPoint",2),wr([u()],Ls.prototype,"name",2),wr([u()],Ls.prototype,"value",2),Ls=wr([X(Th)],Ls);var Lh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,Jr=(t,e,s,r)=>{for(var i=r>1?void 0:r?Mh(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Lh(e,s,i),i};const Ih="sonic-router";let _r=class extends Ur(J){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}createRenderRoot(){return this}connectedCallback(){ct.onChange(this),super.connectedCallback()}disconnectedCallback(){ct.offChange(this),super.disconnectedCallback()}set location(t){this._location=t,this.requestUpdate()}get location(){return this._location}get cleanLocation(){const t=new URL(this.location,document.location.origin);return t.pathname+t.hash}get patternBasePath(){return this.basePath!==void 0?this.basePath:"(/)*"}get regExpBasePath(){return this.basePath!==void 0?"^"+this.basePath:""}handleroutes(){if(!this.routes)return[];const t=[];for(let[e,s]of Object.entries(this.routes)){if(e==="fallback"||!s)continue;const r=new RegExp(this.regExpBasePath+e);if(r.test(this.cleanLocation)){const i=r.exec(this.cleanLocation)||[e];i.shift(),t.push(s([...i]))}else try{const n=new ps(this.patternBasePath+e).match(this.cleanLocation);if(n){const o=n||{};t.push(s(o))}}catch{this.cleanLocation.indexOf((this.basePath||"")+e.replace(document.location.origin,""))!=-1&&t.push(s({}))}}return t.length==0&&this.routes?.fallback&&this.isConnected&&t.push(this.routes.fallback()),t}render(){const t=this.handleroutes();if(t.length>0)return R`${t}`;const e=[];for(const s of this.templatePartsList){const r=s.getAttribute(this.templateValueAttribute)||"";if(new RegExp(this.regExpBasePath+r).test(this.cleanLocation))e.push(s);else try{new ps(this.patternBasePath+r+"(/*)").match(this.cleanLocation)&&(s.setAttribute("mode","patternMatching"),e.push(s))}catch{this.cleanLocation.indexOf((this.basePath||"")+r.replace(document.location.origin,""))!=-1&&e.push(s)}}if(e.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const s=this.templateList.find(r=>r.hasAttribute("data-fallback"));s&&e.push(s)}return R`${Ii(e,(s,r)=>r+new Date().getTime(),s=>{if(s.title&&(document.title=s.title),s.hasAttribute("dataProviderExpression")){let r="";const i=s.getAttribute("dataProviderExpression")||"";if(s.getAttribute("mode")=="patternMatching"){const n=new ps("(/)*"+(s.getAttribute(this.templateValueAttribute)||"")+"*");r=new ps(i).stringify(n.match(this.cleanLocation))}else{const n=new RegExp(s.getAttribute(this.templateValueAttribute)||""),o=(this.cleanLocation+"").match(n);o&&(r=o.shift()?.replace(n,i)||"")}return R`<div
|
|
1266
1266
|
style="display:contents"
|
|
1267
|
-
dataProvider="${
|
|
1267
|
+
dataProvider="${r}"
|
|
1268
1268
|
>
|
|
1269
1269
|
${rs(s)}
|
|
1270
|
-
</div>`}return rs(s)})}`}};Jr([
|
|
1270
|
+
</div>`}return rs(s)})}`}};Jr([u({type:String})],_r.prototype,"fallBackRoute",2),Jr([u({type:Object,attribute:!1})],_r.prototype,"routes",2),Jr([u({type:String})],_r.prototype,"basePath",2),Jr([u()],_r.prototype,"location",1),_r=Jr([X(Ih)],_r);var Nh=Object.getOwnPropertyDescriptor,Fh=(t,e,s,r)=>{for(var i=r>1?void 0:r?Nh(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const jh="sonic-redirect";let Fa=class extends nt(J){connectedCallback(){this.noShadowDom="",this.style.display="none",super.connectedCallback(),this.udpateCallBack=()=>this.update(),this.publisher&&this.publisher.onInternalMutation(this.udpateCallBack)}disconnectedCallback(){this.publisher&&this.publisher.offInternalMutation(this.udpateCallBack),super.disconnectedCallback()}update(){if(this.hasAttribute("onAdded")){ct.changeFromComponent(this);return}if(!this.props)return;const t=this.getAttribute("onData").split("."),e=at.traverse(this.props,t);e&&!(at.isObject(e)&&e)&&ct.changeFromComponent(this)}};Fa=Fh([X(jh)],Fa);var Rh=Object.defineProperty,zh=Object.getOwnPropertyDescriptor,Ui=(t,e,s,r)=>{for(var i=r>1?void 0:r?zh(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Rh(e,s,i),i};const Uh="sonic-states";let Xr=class extends nt(Ur(J)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onStateAssign=t=>{this.state=t,this.requestUpdate()}}connectedCallback(){if(this.noShadowDom="",super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;const t=this.statePath.split(".");for(const e of t)this.statePublisher=this.statePublisher[e];this.statePublisher.onAssign(this.onStateAssign)}}disconnectedCallback(){this.statePath&&this.statePublisher?.offAssign(this.onStateAssign),super.disconnectedCallback()}handleStates(t){if(!this.states)return[];const e=[];for(const[s,r]of Object.entries(this.states)){if(s==="fallback"||!r)continue;const i=new RegExp(s);if(i.test(t)){const n=i.exec(t)||[s];n.shift(),e.push(r([...n]))}else try{const n=new ps("(/)*"+s+"*");if(n.match(t)){const o=n.match(t)||{};e.push(r(o))}}catch{t.indexOf(s.replace(document.location.origin,""))!=-1&&e.push(r({}))}}return e.length==0&&this.states?.fallback&&this.isConnected&&e.push(this.states.fallback()),e}render(){let t=this.state;(!Array.isArray(t)&&at.isObject(t)||t===void 0)&&(t="");const e=this.handleStates(t);if(e.length>0)return R`${e}`;const s=[];for(const r of this.templatePartsList){let i=r.getAttribute(this.templateValueAttribute),n=t;if(this.inverted&&(n=i,i=t),i==""&&(i=this.inverted?".*?":"^$"),new RegExp(i).test(n+""))s.push(r),r.removeAttribute("mode");else{const c=new ps(i);c.names.length>0&&c.match(n)&&(r.setAttribute("mode","patternMatching"),s.push(r))}}return R`${Ii(s,(r,i)=>i+new Date().getTime(),r=>{if(r?.hasAttribute("dataProviderExpression")){const i=r.getAttribute("dataProviderExpression");let n="",o=t,c=r.getAttribute(this.templateValueAttribute);if(this.inverted&&(o=c,c=t),c==""&&(c=this.inverted?"*":"^$"),r.getAttribute("mode")=="patternMatching"){const h=new ps(c);n=new ps(i).stringify(h.match(o))}else{const h=new RegExp(c),b=(o+"").match(h);b&&(n=b.shift()?.replace(h,i))}return R`<div
|
|
1271
1271
|
style="display:contents"
|
|
1272
1272
|
dataProvider="${n}"
|
|
1273
1273
|
>
|
|
1274
|
-
${rs(
|
|
1275
|
-
</div>`}return rs(i)})}`}};qi([h()],Xr.prototype,"state",2),qi([h({type:Boolean,reflect:!0})],Xr.prototype,"inverted",2),qi([h({type:Object})],Xr.prototype,"states",2),Xr=qi([X(Mu)],Xr);var Nu=Object.getOwnPropertyDescriptor,Iu=(t,e,s,i)=>{for(var r=i>1?void 0:i?Nu(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(r=o(r)||r);return r};const Fu="sonic-scope";let Ma=class extends J{createRenderRoot(){return this}render(){return R`<slot></slot>`}};Ma=Iu([X(Fu)],Ma);function Na(t){return t instanceof HTMLElement||t instanceof ShadowRoot?t:null}function Ia(t){if(!t||typeof t.get!="function")return null;const e=t.get();return!e||typeof e!="object"||!("serviceURL"in e)?null:e}function Kn(t){const e=Na(t);return e?Ke.getApiConfiguration(e):null}function Yn(t){return typeof t?.serviceURL=="string"&&t.serviceURL.length>0}const ju=["serviceURL","serviceurl","token","credentials","tokenProvider","tokenprovider","userName","username","password","eventsApiToken","eventsapitoken"];function Ru(t){return t instanceof HTMLElement&&typeof t.updateComplete<"u"}function Fa(t){let e=null,s=[];return()=>{const i=new Promise((r,n)=>{s.push({resolve:r,reject:n})});return e!==null||(e=requestAnimationFrame(()=>{e=null;const r=s;s=[],t().then(n=>r.forEach(({resolve:o})=>o(n)),n=>r.forEach(({reject:o})=>o(n)))})),i}}function ja(t,e){if(Ru(t)){let s=!1;return t.updateComplete.then(()=>{s||e()}),()=>{s=!0}}return e(),()=>{}}function Ra(t,e){const s=Na(t);if(!s)return()=>{};let i=!1;const r=()=>{i||Yn(Kn(t))&&(i=!0,e())};if(r(),i)return()=>{};const n=[],o=requestAnimationFrame(()=>r());n.push(()=>cancelAnimationFrame(o)),queueMicrotask(()=>r());const c=new MutationObserver(()=>r());let d=s;for(;d;)d instanceof Element&&c.observe(d,{attributes:!0,attributeFilter:[...ju]}),d=d.parentNode||d.host;return n.push(()=>c.disconnect()),()=>{i=!0,n.forEach(m=>m())}}class za{constructor(){this.bindings=new WeakMap}bind(e,s){const i={run:s};let r=this.bindings.get(e);return r||(r=new Set,this.bindings.set(e,r)),r.add(i),()=>{const n=this.bindings.get(e);n&&(n.delete(i),n.size===0&&this.bindings.delete(e))}}run(e){const s=[...this.bindings.get(e)??[]].map(({run:i})=>i());return s.length===0?Promise.resolve(void 0):s.length===1?s[0]:Promise.all(s).then(()=>{})}}let Ua=0;function zu(t){return t!==null&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function qa(t,e){const s=e?.when??"after";return(i,r,n)=>{const o=n.value;if(!o)return;const c=function(...d){if(s==="before")return t(this).then(()=>o.apply(this,d));const m=o.apply(this,d);return zu(m)?m.then(k=>t(this).then(()=>k)):t(this).then(()=>m)};n.value=c}}function Uu(t,e){return qa(s=>t.refetch(s),e)}function qu(t,e){return qa(s=>t.send(s),e)}function Vi(t){t.configPublisher&&t.configMutationHandler&&t.configPublisher.offInternalMutation(t.configMutationHandler),t.configPublisher=null,t.configMutationHandler=null}function Va(t,e,s){const i=t.path,r=Ba(e)?void 0:e,n=Ba(e)?e:s,o={skipEmptyPlaceholder:n?.skipEmptyPlaceholder},c=r?.path,d=n?.triggerKey?.path,m=Ut(i),k=c?Ut(c):[],g=d?Ut(d):[],f=[...new Set([...m,...k,...g])],A=m.length>0,E=!!c,O=n?.refetchEveryMs??0,I=new za,U=new WeakMap,x=new WeakSet,y=new WeakMap;let N;const C=function($,G,z){if(z){const se=z.value;if(!se)return;C.registerResultHandler($,(ie,q)=>se.call(ie,q));return}if(!$)return;if(x.has($)){y.get($)?.add(G);return}x.add($),y.set($,new Set([G])),Js($);const ne=`__get_state_${G}`;$.__onConnected__(se=>{const ie=se;let q=ie[ne];q||(q={cleanupWatchers:[],cleanupOperation:null,requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null,triggerPublisher:null,triggerInvalidateHandler:null,refetchTimeoutId:null,refetchEveryMs:O},ie[ne]=q),q.cleanupOperation?.(),q.cleanupOperation=null,q.cleanupWatchers.forEach(xe=>xe()),q.cleanupWatchers=[],q.requestGeneration++,q.refetchEveryMs=O,xr(q);const le=()=>{xr(q),!(!q.refetchEveryMs||q.refetchEveryMs<=0)&&(q.refetchTimeoutId=setTimeout(()=>{q.refetchTimeoutId=null,Ue().catch(()=>{})},q.refetchEveryMs))},pe=xe=>{y.get($)?.forEach(b=>{ie[b]=xe})},Ue=async()=>{const xe=A?Ot(se,i,o):{ready:!0,path:i};if(!xe.ready||!xe.path){pe(void 0),le();return}let b=null;if(E&&c){const _e=Ot(se,c,o);if(!_e.ready||!_e.path){pe(void 0),le();return}const De=Gt(_e.path);b=Ia(De)}else b=Kn(se);if(!Yn(b)){if(!E&&!q.scopeWatchCleanup){const _e=Ra(se,be);q.scopeWatchCleanup=_e,q.cleanupWatchers.push(()=>{_e(),q.scopeWatchCleanup=null})}le();return}const _=++q.requestGeneration,ve=await new Ds(b).getDetailed(xe.path);return _!==q.requestGeneration||(y.get($)?.forEach(_e=>{ie[_e]=ve}),le(),U.get($)?.forEach(_e=>_e(se,ve))),ve},he=Fa(Ue),be=()=>{he().catch(()=>{})};q.cleanupOperation=I.bind(se,he);const ke=()=>{if(Bi(q),!d)return;const xe=Ot(se,d,o);if(!xe.ready||!xe.path)return;const b=Gt(xe.path);if(!b)return;const _=be;b.onInvalidate(_),q.triggerPublisher=b,q.triggerInvalidateHandler=_},ce=()=>{if(!E||!c)return;Vi(q);const xe=Ot(se,c,o);if(!xe.ready||!xe.path){pe(void 0);return}const b=Gt(xe.path);if(!b){pe(void 0);return}const _=be;b.onInternalMutation(_),q.configPublisher=b,q.configMutationHandler=_},W=()=>{ke(),ce(),E||be()};if(E||g.length){for(const xe of f){const b=Es(Os.watcherStore,Os.hooked,se,xe,()=>W());q.cleanupWatchers.push(b)}W()}else{const xe=()=>{if(A)for(const b of m){const _=Es(Os.watcherStore,Os.hooked,se,b,be);q.cleanupWatchers.push(_)}ke(),Ue().catch(()=>{})};q.cleanupWatchers.push(ja(se,xe))}}),$.__onDisconnected__(se=>{const ie=se,q=ie[ne];q&&(q.cleanupOperation?.(),q.cleanupOperation=null,Vi(q),Bi(q),xr(q),q.cleanupWatchers.forEach(le=>le()),q.cleanupWatchers=[],q.requestGeneration++,y.get($)?.forEach(le=>{ie[le]=void 0}))})};return C.refetch=$=>I.run($),C.registerResultHandler=($,G)=>{let z=U.get($);z||(z=new Set,U.set($,z)),z.add(G),x.has($)||(N??=`__get_handler_${Ua++}`,C($,N))},C}function Ba(t){return!t||typeof t!="object"?!1:"skipEmptyPlaceholder"in t||"refetchEveryMs"in t||"triggerKey"in t}function Ha(t){return!t||typeof t!="object"?!1:"refetchEveryMs"in t||"skipIfBodyMissing"in t||"autoPostOnBodyMutation"in t||"skipEmptyPlaceholder"in t||"triggerKey"in t}function Wa(t){t.bodyPublisher&&t.bodyMutationHandler&&t.bodyPublisher.offInternalMutation(t.bodyMutationHandler),t.bodyPublisher=null,t.bodyMutationHandler=null}function Bi(t){t.triggerPublisher&&t.triggerInvalidateHandler&&t.triggerPublisher.offInvalidate(t.triggerInvalidateHandler),t.triggerPublisher=null,t.triggerInvalidateHandler=null}function xr(t){t.refetchTimeoutId&&(clearTimeout(t.refetchTimeoutId),t.refetchTimeoutId=null)}function Vu(t){if(!(!t||typeof t.get!="function"))return t.get()}function Gn(t,e){return function(s,i,r,n){const o=s.path,c=i.path,d=Ha(r)?void 0:r,m=Ha(r)?r:n,k=d?.path,g=m?.triggerKey?.path,f=Ut(o),A=Ut(c),E=k?Ut(k):[],O=g?Ut(g):[],I=[...new Set([...f,...A,...E,...O])],U=f.length>0,x=!!k,y=m?.refetchEveryMs??0,N=m?.skipIfBodyMissing??!0,C=m?.autoPostOnBodyMutation??!0,$={skipEmptyPlaceholder:m?.skipEmptyPlaceholder},G=`__${t.toLowerCase()}_state_`,z=new za,ne=new WeakMap,se=new WeakSet,ie=new WeakMap;let q;const le=function(pe,Ue,he){if(he){const ke=he.value;if(!ke)return;le.registerResultHandler(pe,(ce,W)=>ke.call(ce,W));return}if(!pe)return;if(se.has(pe)){ie.get(pe)?.add(Ue);return}se.add(pe),ie.set(pe,new Set([Ue])),Js(pe);const be=`${G}${Ue}`;pe.__onConnected__(ke=>{const ce=ke;let W=ce[be];W||(W={cleanupWatchers:[],cleanupOperation:null,requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null,bodyPublisher:null,bodyMutationHandler:null,triggerPublisher:null,triggerInvalidateHandler:null,refetchTimeoutId:null,refetchEveryMs:y,skipIfBodyMissing:N,autoPostOnBodyMutation:C},ce[be]=W),W.cleanupOperation?.(),W.cleanupOperation=null,W.cleanupWatchers.forEach(D=>D()),W.cleanupWatchers=[],W.requestGeneration++,W.refetchEveryMs=y,W.skipIfBodyMissing=N,W.autoPostOnBodyMutation=C,xr(W);const xe=()=>{xr(W),!(!W.refetchEveryMs||W.refetchEveryMs<=0)&&(W.refetchTimeoutId=setTimeout(()=>{W.refetchTimeoutId=null,_().catch(()=>{})},W.refetchEveryMs))},b=D=>{ie.get(pe)?.forEach(j=>{ce[j]=D})},_=async()=>{const D=U?Ot(ke,o,$):{ready:!0,path:o};if(!D.ready||!D.path){b(void 0),xe();return}const j=Ot(ke,c,$);if(!j.ready||!j.path){b(void 0),xe();return}const V=Gt(j.path),H=Vu(V);if(W.skipIfBodyMissing&&H==null){xe();return}let F=null;if(x&&k){const ge=Ot(ke,k,$);if(!ge.ready||!ge.path){b(void 0),xe();return}const fe=Gt(ge.path);F=Ia(fe)}else F=Kn(ke);if(!Yn(F)){if(!x&&!W.scopeWatchCleanup){const ge=Ra(ke,ve);W.scopeWatchCleanup=ge,W.cleanupWatchers.push(()=>{ge(),W.scopeWatchCleanup=null})}xe();return}const Y=++W.requestGeneration,ae=new Ds(F);let Pe;try{Pe=await e(ae,D.path,H)}catch(ge){throw Y===W.requestGeneration&&ne.get(pe)?.forEach(fe=>fe(ke,void 0)),ge}return Y!==W.requestGeneration||(b(Pe),xe(),ne.get(pe)?.forEach(ge=>ge(ke,Pe))),Pe},Q=Fa(_),ve=()=>{Q().catch(()=>{})};W.cleanupOperation=z.bind(ke,Q);const _e=()=>{if(Wa(W),!W.autoPostOnBodyMutation)return;const D=Ot(ke,c,$);if(!D.ready||!D.path)return;const j=Gt(D.path);if(!j)return;const V=ve;j.onInternalMutation(V),W.bodyPublisher=j,W.bodyMutationHandler=V},De=()=>{if(Bi(W),!g)return;const D=Ot(ke,g,$);if(!D.ready||!D.path)return;const j=Gt(D.path);if(!j)return;const V=ve;j.onInvalidate(V),W.triggerPublisher=j,W.triggerInvalidateHandler=V},T=()=>{if(!x||!k)return;Vi(W);const D=Ot(ke,k,$);if(!D.ready||!D.path){b(void 0);return}const j=Gt(D.path);if(!j){b(void 0);return}const V=ve;j.onInternalMutation(V),W.configPublisher=j,W.configMutationHandler=V},M=()=>{_e(),De(),T(),W.autoPostOnBodyMutation&&ve()};if(x||A.length||O.length){for(const D of I){const j=Es(Os.watcherStore,Os.hooked,ke,D,()=>M());W.cleanupWatchers.push(j)}M()}else{const D=()=>{if(U)for(const j of f){const V=Es(Os.watcherStore,Os.hooked,ke,j,ve);W.cleanupWatchers.push(V)}_e(),De(),W.autoPostOnBodyMutation&&ve()};W.cleanupWatchers.push(ja(ke,D))}}),pe.__onDisconnected__(ke=>{const ce=ke,W=ce[be];W&&(W.cleanupOperation?.(),W.cleanupOperation=null,Vi(W),Wa(W),Bi(W),xr(W),W.cleanupWatchers.forEach(xe=>xe()),W.cleanupWatchers=[],W.requestGeneration++,ie.get(pe)?.forEach(xe=>{ce[xe]=void 0}))})};return le.send=pe=>z.run(pe),le.registerResultHandler=(pe,Ue)=>{let he=ne.get(pe);he||(he=new Set,ne.set(pe,he)),he.add(Ue),se.has(pe)||(q??=`__${t.toLowerCase()}_handler_${Ua++}`,le(pe,q))},le}}function Bu(t,e,s,i){return Gn("POST",(r,n,o)=>r.postDetailed(n,o))(t,e,s,i)}function Hu(t,e,s,i){return Gn("PUT",(r,n,o)=>r.putDetailed(n,o))(t,e,s,i)}function Wu(t,e,s,i){return Gn("PATCH",(r,n,o)=>r.patchDetailed(n,o))(t,e,s,i)}const Ku=wa,Yu=_a,Gu=Va;window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:ya,publish:wa,subscribe:_a,onAssing:Ah,handle:kh,ancestorAttribute:zn,autoSubscribe:$h,autoFill:Dh,get:Va,post:Bu,put:Hu,patch:Wu,refetch:Uu,send:qu};var Zu=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,Hi=(t,e,s,i)=>{for(var r=i>1?void 0:i?Ju(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(r=(i?o(e,s,r):o(r))||r);return i&&r&&Zu(e,s,r),r};const Ka=new $i("communes?limit=$limit&fields=nom,code"),Ya=new Ss(Ka.path),Xu="sonic-example";let Qr=class extends J{constructor(){super(...arguments),this.limit=5}render(){return R` <span part="api-get-demo">
|
|
1274
|
+
${rs(r)}
|
|
1275
|
+
</div>`}return rs(r)})}`}};Ui([u()],Xr.prototype,"state",2),Ui([u({type:Boolean,reflect:!0})],Xr.prototype,"inverted",2),Ui([u({type:Object})],Xr.prototype,"states",2),Xr=Ui([X(Uh)],Xr);var qh=Object.getOwnPropertyDescriptor,Vh=(t,e,s,r)=>{for(var i=r>1?void 0:r?qh(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const Bh="sonic-scope";let ja=class extends J{createRenderRoot(){return this}render(){return R`<slot></slot>`}};ja=Vh([X(Bh)],ja);function Ra(t){return t instanceof HTMLElement||t instanceof ShadowRoot?t:null}function za(t){if(!t||typeof t.get!="function")return null;const e=t.get();return!e||typeof e!="object"||!("serviceURL"in e)?null:e}function Zn(t){const e=Ra(t);return e?Je.getApiConfiguration(e):null}function Jn(t){return typeof t?.serviceURL=="string"&&t.serviceURL.length>0}const Hh=["serviceURL","serviceurl","token","credentials","tokenProvider","tokenprovider","userName","username","password","eventsApiToken","eventsapitoken"];function Wh(t){return t instanceof HTMLElement&&typeof t.updateComplete<"u"}function Ua(t){let e=null,s=[];return()=>{const r=new Promise((i,n)=>{s.push({resolve:i,reject:n})});return e!==null||(e=requestAnimationFrame(()=>{e=null;const i=s;s=[],t().then(n=>i.forEach(({resolve:o})=>o(n)),n=>i.forEach(({reject:o})=>o(n)))})),r}}function qa(t,e){if(Wh(t)){let s=!1;return t.updateComplete.then(()=>{s||e()}),()=>{s=!0}}return e(),()=>{}}function Va(t,e){const s=Ra(t);if(!s)return()=>{};let r=!1;const i=()=>{r||Jn(Zn(t))&&(r=!0,e())};if(i(),r)return()=>{};const n=[],o=requestAnimationFrame(()=>i());n.push(()=>cancelAnimationFrame(o)),queueMicrotask(()=>i());const c=new MutationObserver(()=>i());let h=s;for(;h;)h instanceof Element&&c.observe(h,{attributes:!0,attributeFilter:[...Hh]}),h=h.parentNode||h.host;return n.push(()=>c.disconnect()),()=>{r=!0,n.forEach(b=>b())}}class Ba{constructor(){this.bindings=new WeakMap}bind(e,s){const r={run:s};let i=this.bindings.get(e);return i||(i=new Set,this.bindings.set(e,i)),i.add(r),()=>{const n=this.bindings.get(e);n&&(n.delete(r),n.size===0&&this.bindings.delete(e))}}run(e){const s=[...this.bindings.get(e)??[]].map(({run:r})=>r());return s.length===0?Promise.resolve(void 0):s.length===1?s[0]:Promise.all(s).then(()=>{})}}let Ha=0;function Kh(t){return t!==null&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function Wa(t,e){const s=e?.when??"after";return(r,i,n)=>{const o=n.value;if(!o)return;const c=function(...h){if(s==="before")return t(this).then(()=>o.apply(this,h));const b=o.apply(this,h);return Kh(b)?b.then(k=>t(this).then(()=>k)):t(this).then(()=>b)};n.value=c}}function Yh(t,e){return Wa(s=>t.refetch(s),e)}function Gh(t,e){return Wa(s=>t.send(s),e)}function qi(t){t.configPublisher&&t.configMutationHandler&&t.configPublisher.offInternalMutation(t.configMutationHandler),t.configPublisher=null,t.configMutationHandler=null}function Ka(t,e,s){const r=t.path,i=Ya(e)?void 0:e,n=Ya(e)?e:s,o={skipEmptyPlaceholder:n?.skipEmptyPlaceholder},c=i?.path,h=n?.triggerKey?.path,b=Ut(r),k=c?Ut(c):[],g=h?Ut(h):[],f=[...new Set([...b,...k,...g])],A=b.length>0,E=!!c,O=n?.refetchEveryMs??0,N=new Ba,U=new WeakMap,P=new WeakSet,y=new WeakMap;let I;const C=function($,G,z){if(z){const se=z.value;if(!se)return;C.registerResultHandler($,(ie,q)=>se.call(ie,q));return}if(!$)return;if(P.has($)){y.get($)?.add(G);return}P.add($),y.set($,new Set([G])),Js($);const ne=`__get_state_${G}`;$.__onConnected__(se=>{const ie=se;let q=ie[ne];q||(q={cleanupWatchers:[],cleanupOperation:null,requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null,triggerPublisher:null,triggerInvalidateHandler:null,refetchTimeoutId:null,refetchEveryMs:O},ie[ne]=q),q.cleanupOperation?.(),q.cleanupOperation=null,q.cleanupWatchers.forEach(Pe=>Pe()),q.cleanupWatchers=[],q.requestGeneration++,q.refetchEveryMs=O,Pr(q);const le=()=>{Pr(q),!(!q.refetchEveryMs||q.refetchEveryMs<=0)&&(q.refetchTimeoutId=setTimeout(()=>{q.refetchTimeoutId=null,Ue().catch(()=>{})},q.refetchEveryMs))},pe=Pe=>{y.get($)?.forEach(m=>{ie[m]=Pe})},Ue=async()=>{const Pe=A?Ot(se,r,o):{ready:!0,path:r};if(!Pe.ready||!Pe.path){pe(void 0),le();return}let m=null;if(E&&c){const _e=Ot(se,c,o);if(!_e.ready||!_e.path){pe(void 0),le();return}const De=Gt(_e.path);m=za(De)}else m=Zn(se);if(!Jn(m)){if(!E&&!q.scopeWatchCleanup){const _e=Va(se,me);q.scopeWatchCleanup=_e,q.cleanupWatchers.push(()=>{_e(),q.scopeWatchCleanup=null})}le();return}const _=++q.requestGeneration,ye=await new Ds(m).getDetailed(Pe.path);return _!==q.requestGeneration||(y.get($)?.forEach(_e=>{ie[_e]=ye}),le(),U.get($)?.forEach(_e=>_e(se,ye))),ye},ue=Ua(Ue),me=()=>{ue().catch(()=>{})};q.cleanupOperation=N.bind(se,ue);const ke=()=>{if(Vi(q),!h)return;const Pe=Ot(se,h,o);if(!Pe.ready||!Pe.path)return;const m=Gt(Pe.path);if(!m)return;const _=me;m.onInvalidate(_),q.triggerPublisher=m,q.triggerInvalidateHandler=_},ce=()=>{if(!E||!c)return;qi(q);const Pe=Ot(se,c,o);if(!Pe.ready||!Pe.path){pe(void 0);return}const m=Gt(Pe.path);if(!m){pe(void 0);return}const _=me;m.onInternalMutation(_),q.configPublisher=m,q.configMutationHandler=_},W=()=>{ke(),ce(),E||me()};if(E||g.length){for(const Pe of f){const m=Es(Os.watcherStore,Os.hooked,se,Pe,()=>W());q.cleanupWatchers.push(m)}W()}else{const Pe=()=>{if(A)for(const m of b){const _=Es(Os.watcherStore,Os.hooked,se,m,me);q.cleanupWatchers.push(_)}ke(),Ue().catch(()=>{})};q.cleanupWatchers.push(qa(se,Pe))}}),$.__onDisconnected__(se=>{const ie=se,q=ie[ne];q&&(q.cleanupOperation?.(),q.cleanupOperation=null,qi(q),Vi(q),Pr(q),q.cleanupWatchers.forEach(le=>le()),q.cleanupWatchers=[],q.requestGeneration++,y.get($)?.forEach(le=>{ie[le]=void 0}))})};return C.refetch=$=>N.run($),C.registerResultHandler=($,G)=>{let z=U.get($);z||(z=new Set,U.set($,z)),z.add(G),P.has($)||(I??=`__get_handler_${Ha++}`,C($,I))},C}function Ya(t){return!t||typeof t!="object"?!1:"skipEmptyPlaceholder"in t||"refetchEveryMs"in t||"triggerKey"in t}function Ga(t){return!t||typeof t!="object"?!1:"refetchEveryMs"in t||"skipIfBodyMissing"in t||"autoPostOnBodyMutation"in t||"skipEmptyPlaceholder"in t||"triggerKey"in t}function Za(t){t.bodyPublisher&&t.bodyMutationHandler&&t.bodyPublisher.offInternalMutation(t.bodyMutationHandler),t.bodyPublisher=null,t.bodyMutationHandler=null}function Vi(t){t.triggerPublisher&&t.triggerInvalidateHandler&&t.triggerPublisher.offInvalidate(t.triggerInvalidateHandler),t.triggerPublisher=null,t.triggerInvalidateHandler=null}function Pr(t){t.refetchTimeoutId&&(clearTimeout(t.refetchTimeoutId),t.refetchTimeoutId=null)}function Zh(t){if(!(!t||typeof t.get!="function"))return t.get()}function Xn(t,e){return function(s,r,i,n){const o=s.path,c=r.path,h=Ga(i)?void 0:i,b=Ga(i)?i:n,k=h?.path,g=b?.triggerKey?.path,f=Ut(o),A=Ut(c),E=k?Ut(k):[],O=g?Ut(g):[],N=[...new Set([...f,...A,...E,...O])],U=f.length>0,P=!!k,y=b?.refetchEveryMs??0,I=b?.skipIfBodyMissing??!0,C=b?.autoPostOnBodyMutation??!0,$={skipEmptyPlaceholder:b?.skipEmptyPlaceholder},G=`__${t.toLowerCase()}_state_`,z=new Ba,ne=new WeakMap,se=new WeakSet,ie=new WeakMap;let q;const le=function(pe,Ue,ue){if(ue){const ke=ue.value;if(!ke)return;le.registerResultHandler(pe,(ce,W)=>ke.call(ce,W));return}if(!pe)return;if(se.has(pe)){ie.get(pe)?.add(Ue);return}se.add(pe),ie.set(pe,new Set([Ue])),Js(pe);const me=`${G}${Ue}`;pe.__onConnected__(ke=>{const ce=ke;let W=ce[me];W||(W={cleanupWatchers:[],cleanupOperation:null,requestGeneration:0,configPublisher:null,configMutationHandler:null,scopeWatchCleanup:null,bodyPublisher:null,bodyMutationHandler:null,triggerPublisher:null,triggerInvalidateHandler:null,refetchTimeoutId:null,refetchEveryMs:y,skipIfBodyMissing:I,autoPostOnBodyMutation:C},ce[me]=W),W.cleanupOperation?.(),W.cleanupOperation=null,W.cleanupWatchers.forEach(D=>D()),W.cleanupWatchers=[],W.requestGeneration++,W.refetchEveryMs=y,W.skipIfBodyMissing=I,W.autoPostOnBodyMutation=C,Pr(W);const Pe=()=>{Pr(W),!(!W.refetchEveryMs||W.refetchEveryMs<=0)&&(W.refetchTimeoutId=setTimeout(()=>{W.refetchTimeoutId=null,_().catch(()=>{})},W.refetchEveryMs))},m=D=>{ie.get(pe)?.forEach(j=>{ce[j]=D})},_=async()=>{const D=U?Ot(ke,o,$):{ready:!0,path:o};if(!D.ready||!D.path){m(void 0),Pe();return}const j=Ot(ke,c,$);if(!j.ready||!j.path){m(void 0),Pe();return}const V=Gt(j.path),H=Zh(V);if(W.skipIfBodyMissing&&H==null){Pe();return}let F=null;if(P&&k){const ge=Ot(ke,k,$);if(!ge.ready||!ge.path){m(void 0),Pe();return}const fe=Gt(ge.path);F=za(fe)}else F=Zn(ke);if(!Jn(F)){if(!P&&!W.scopeWatchCleanup){const ge=Va(ke,ye);W.scopeWatchCleanup=ge,W.cleanupWatchers.push(()=>{ge(),W.scopeWatchCleanup=null})}Pe();return}const Y=++W.requestGeneration,ae=new Ds(F);let xe;try{xe=await e(ae,D.path,H)}catch(ge){throw Y===W.requestGeneration&&ne.get(pe)?.forEach(fe=>fe(ke,void 0)),ge}return Y!==W.requestGeneration||(m(xe),Pe(),ne.get(pe)?.forEach(ge=>ge(ke,xe))),xe},Q=Ua(_),ye=()=>{Q().catch(()=>{})};W.cleanupOperation=z.bind(ke,Q);const _e=()=>{if(Za(W),!W.autoPostOnBodyMutation)return;const D=Ot(ke,c,$);if(!D.ready||!D.path)return;const j=Gt(D.path);if(!j)return;const V=ye;j.onInternalMutation(V),W.bodyPublisher=j,W.bodyMutationHandler=V},De=()=>{if(Vi(W),!g)return;const D=Ot(ke,g,$);if(!D.ready||!D.path)return;const j=Gt(D.path);if(!j)return;const V=ye;j.onInvalidate(V),W.triggerPublisher=j,W.triggerInvalidateHandler=V},T=()=>{if(!P||!k)return;qi(W);const D=Ot(ke,k,$);if(!D.ready||!D.path){m(void 0);return}const j=Gt(D.path);if(!j){m(void 0);return}const V=ye;j.onInternalMutation(V),W.configPublisher=j,W.configMutationHandler=V},M=()=>{_e(),De(),T(),W.autoPostOnBodyMutation&&ye()};if(P||A.length||O.length){for(const D of N){const j=Es(Os.watcherStore,Os.hooked,ke,D,()=>M());W.cleanupWatchers.push(j)}M()}else{const D=()=>{if(U)for(const j of f){const V=Es(Os.watcherStore,Os.hooked,ke,j,ye);W.cleanupWatchers.push(V)}_e(),De(),W.autoPostOnBodyMutation&&ye()};W.cleanupWatchers.push(qa(ke,D))}}),pe.__onDisconnected__(ke=>{const ce=ke,W=ce[me];W&&(W.cleanupOperation?.(),W.cleanupOperation=null,qi(W),Za(W),Vi(W),Pr(W),W.cleanupWatchers.forEach(Pe=>Pe()),W.cleanupWatchers=[],W.requestGeneration++,ie.get(pe)?.forEach(Pe=>{ce[Pe]=void 0}))})};return le.send=pe=>z.run(pe),le.registerResultHandler=(pe,Ue)=>{let ue=ne.get(pe);ue||(ue=new Set,ne.set(pe,ue)),ue.add(Ue),se.has(pe)||(q??=`__${t.toLowerCase()}_handler_${Ha++}`,le(pe,q))},le}}function Jh(t,e,s,r){return Xn("POST",(i,n,o)=>i.postDetailed(n,o))(t,e,s,r)}function Xh(t,e,s,r){return Xn("PUT",(i,n,o)=>i.putDetailed(n,o))(t,e,s,r)}function Qh(t,e,s,r){return Xn("PATCH",(i,n,o)=>i.patchDetailed(n,o))(t,e,s,r)}const ed=Sa,td=Aa,sd=Ka;window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:xa,publish:Sa,subscribe:Aa,onAssing:Tu,handle:Mu,ancestorAttribute:Vn,autoSubscribe:Iu,autoFill:Nu,get:Ka,post:Jh,put:Xh,patch:Qh,refetch:Yh,send:Gh};var rd=Object.defineProperty,id=Object.getOwnPropertyDescriptor,Bi=(t,e,s,r)=>{for(var i=r>1?void 0:r?id(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&rd(e,s,i),i};const Ja=new ki("communes?limit=$limit&fields=nom,code"),Xa=new Ss(Ja.path),nd="sonic-example";let Qr=class extends J{constructor(){super(...arguments),this.limit=5}render(){return R` <span part="api-get-demo">
|
|
1276
1276
|
· get: ${JSON.stringify(this.geoCommunesPayload?.result??null)} · HTTP
|
|
1277
1277
|
${this.geoCommunesPayload?.response?.status??"—"} · subscribe:
|
|
1278
1278
|
${JSON.stringify(this.geoCommunesResult??null)}</span
|
|
1279
|
-
>`}};
|
|
1279
|
+
>`}};Bi([u({type:Number})],Qr.prototype,"limit",2),Bi([sd(Ja),ed(Xa)],Qr.prototype,"geoCommunesPayload",2),Bi([Ae(),td(Xa.result)],Qr.prototype,"geoCommunesResult",2),Qr=Bi([X(nd)],Qr);const od={checkbox:{tagName:"sonic-checkbox"},date:{tagName:"sonic-input",attributes:{type:"date"}},fieldset:{tagName:"sonic-fieldset",nodes:[{libraryKey:"formLayout"}],contentElementSelector:"sonic-form-layout"},managed_file:{tagName:"sonic-input",attributes:{variant:"ghost",type:"file"}},password:{tagName:"sonic-input",attributes:{type:"password"}},radio:{tagName:"sonic-radio"},select:{tagName:"sonic-select"},textarea:{tagName:"sonic-textarea"},textfield:{tagName:"sonic-input",attributes:{type:"text"}},hidden:{tagName:"sonic-input",attributes:{type:"hidden"}},button:{tagName:"sonic-button"},form:{tagName:"sonic-submit",attributes:{onEnterKey:!0}},submit:{tagName:"sonic-submit",attributes:{onClick:!0},contentElementSelector:"sonic-button",nodes:[{libraryKey:"button",attributes:{type:"success"},nodes:[{tagName:"sonic-icon",attributes:{name:"check",slot:"prefix"}}]}]},email:{tagName:"sonic-input",attributes:{type:"email"}},formItemContainer:{tagName:"div",attributes:{class:"form-item-container"}},formLayout:{tagName:"sonic-form-layout"},formActions:{tagName:"sonic-form-actions"},passwordHelper:{tagName:"sonic-password-helper"},sameValueHelper:{tagName:"sonic-same-value-helper"},divider:{tagName:"sonic-divider"}};class ad{async transform(e,s){if(this.sduiDescriptor=e,this.sduiDescriptor.library)for(const r in s.library)this.sduiDescriptor.library[r]=s.library[r];for(const r of s.transforms)this.transformAction(r)}transformAction(e){const s=this.getNodesMatchingPatterns(e.patterns,this.sduiDescriptor);this[e.action](e,s)}getNodesMatchingPatterns(e,s){if(!e)return[];if(!s)return[];const r=s.nodes;if(!r)return[];let i=[],n=0;for(const o of e)for(const c of r)this.nodeMatchesPattern(o,c)&&i.push({parent:s,child:c,index:n}),i=i.concat(this.getNodesMatchingPatterns([o],c)),n++;return i}stringMatchesExpression(e,s){return!s||e&&e.match(s)}nodeMatchesPattern(e,s){const r=e,i=s,n=["libraryKey","innerHTML","prefix","suffix","markup"];for(const h of n)if(!this.stringMatchesExpression(i[h],r[h]))return!1;const o=e.attributes,c=s.attributes;if(o&&!c)return!1;if(o){for(const h in o)if(!c||!this.stringMatchesExpression(c[h],o[h]))return!1}return!0}unwrap(e,s){for(const r of s)r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),1),r.child.nodes&&r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),0,...r.child.nodes)}wrap(e,s){const r={...e.ui};r.nodes||(r.nodes=[]);let i=0;for(const o of s)r.nodes?.push(o.child),i>0&&o.parent.nodes?.splice(o.parent.nodes.indexOf(o.child),1),i++;const n=s[0]?.parent.nodes?.indexOf(s[0].child);n&&(s[0].parent.nodes?.splice(n,1),s[0].parent.nodes?.splice(n,0,r))}move(e,s){for(const r of s){r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),1);let i=[];e.after&&(i=this.getNodesMatchingPatterns([e.after],this.sduiDescriptor)),e.before&&(i=this.getNodesMatchingPatterns([e.before],this.sduiDescriptor));const n=i[0];n&&n.parent.nodes?.splice(n.parent.nodes.indexOf(n.child)+(e.after?1:0),0,r.child)}}remap(e,s){for(const r of s){const i={...e.ui};i.attributes||(i.attributes={});const n=r.child.attributes;if(n)for(const g in n)Object.prototype.hasOwnProperty.call(i.attributes,"key")||(i.attributes[g]=n[g]);const o=["libraryKey","innerHTML","prefix","suffix","markup"],c=r.child,h=i;for(const g of o)!Object.prototype.hasOwnProperty.call(i,g)&&c[g]&&(h[g]=c[g]);i.nodes||(i.nodes=[]);const b=r.child.nodes;if(b)for(const g of b)i.nodes.push(g);const k=r.parent.nodes?.indexOf(r.child)||-1;k!=-1&&(r.parent.nodes?.splice(k,1),r.parent.nodes?.splice(k,0,i))}}delete(e,s){for(const r of s)r.parent.nodes?.splice(r.parent.nodes.indexOf(r.child),1)}insert(e,s){const r=e.after?"after":e.before?"before":"in";s=[],e.after?s=this.getNodesMatchingPatterns([e.after],this.sduiDescriptor):e.before?s=this.getNodesMatchingPatterns([e.before],this.sduiDescriptor):e.in&&(s=this.getNodesMatchingPatterns([e.in],this.sduiDescriptor));const i=s[0];i&&(r=="in"?(i.child.nodes||(i.child.nodes=[]),i.child.nodes.push({...e.ui})):i.parent.nodes?.splice(i.parent.nodes.indexOf(i.child)+(r=="after"?1:0),0,{...e.ui}))}}var ld=Object.defineProperty,cd=Object.getOwnPropertyDescriptor,Qn=(t,e,s,r)=>{for(var i=r>1?void 0:r?cd(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&ld(e,s,i),i};const ud="sonic-sdui";let Hi=class extends Ea(Ts(J)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(t){this.props==null&&(this.sduiDescriptor={});{const e=this.sduiKey?this.props[this.sduiKey]:this.props;if(this.sduiDescriptor==e)return;this.sduiDescriptor=e,this.updateContents()}super.willUpdate(t)}async updateContents(){if(!this.sduiDescriptor)return;const t={};Object.assign(t,od,this.sduiDescriptor.library),this.sduiDescriptor.library=t,await this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(t=>t.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}async loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js){const t=await Promise.all(this.sduiDescriptor.js.map(s=>gs.loadJS(s))),e=this.sduiDescriptor.js.filter((s,r)=>!t[r]);if(e.length)throw new Error(`SDUI: échec chargement js[] — ${e.join(", ")}`)}this.sduiDescriptor.css&&await Promise.all(this.sduiDescriptor.css.map(t=>gs.loadCSS(t)))}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const e=await(await fetch(this.getAttribute("transformation"))).json();await new ad().transform(this.sduiDescriptor,e)}async loadLibrary(){if(!this.hasAttribute("library"))return;const e=await(await fetch(this.getAttribute("library"))).json();this.sduiDescriptor.library=e}parseRootNodes(){if(this.removeChildren(),!this.sduiDescriptor)return;let t=this.sduiDescriptor.nodes;t||(t=[]);const e={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(e.attributes={subDataProvider:this.messagesKey}),t.push(e),t.forEach(s=>this.appendChild(this.parseChild(s)))}parseChild(t){const e=t.tagName||"div";let{element:s,contentElement:r}=this.handleLibrary(t,e);return this.handleAttributes(t,s),s=this.handleMarkup(t,s),r||(r=s),this.handleChildNodes(t,r,s),this.handleInnerHTML(t,r),t.prefix||t.suffix?this.handlePrefixSuffix(t,s):s}handlePrefixSuffix(t,e){const s=document.createElement("div");return s.innerHTML=(t.prefix||"")+e.outerHTML+(t.suffix||""),s.style.display="contents",s}handleChildNodes(t,e,s){if(t.nodes)for(const r of t.nodes){const i=this.parseChild(r);let n=e;r.parentElementSelector&&(n=s.querySelector(r.parentElementSelector)||e),n.shadowRoot?n.shadowRoot.appendChild(i):n.tagName.toLocaleLowerCase()=="template"?n.content.appendChild(i):n.appendChild(i)}}handleLibrary(t,e){let s,r;if(t.libraryKey&&this.sduiDescriptor.library){s=this.parseChild(this.sduiDescriptor.library[t.libraryKey]||{tagName:"div"});const i=(this.sduiDescriptor.library[t.libraryKey]||{}).contentElementSelector;i&&(r=s.querySelector(i))}else s=document.createElement(e);return{element:s,contentElement:r}}handleAttributes(t,e){const s=t.attributes;for(const r in s){const i=s[r],n=Br.isObject(i)?JSON.stringify(i):i;e.setAttribute(r,n)}}handleMarkup(t,e){return t.markup&&(e=document.createElement("div"),e.style.display="contents",e.innerHTML=t.markup),e}handleInnerHTML(t,e){if(t.innerHTML)if(t.innerHTML.indexOf("wording_")!=-1){const s=this.getAncestorAttributeValue("wordingProvider");this.api?.post(s,{labels:[t.innerHTML.substring(8)]}).then(r=>{e&&(e.innerHTML+=r)})}else e&&(e.innerHTML+=t.innerHTML)}};Qn([u()],Hi.prototype,"sduiKey",2),Qn([u()],Hi.prototype,"messagesKey",2),Hi=Qn([X(ud)],Hi);var hd=Object.defineProperty,dd=Object.getOwnPropertyDescriptor,Qa=(t,e,s,r)=>{for(var i=r>1?void 0:r?dd(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&hd(e,s,i),i};let Wi=class extends Ts(J){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(t){this._composition=t,this.updateComposition()}connectedCallback(){super.connectedCallback(),this.updateComposition()}disconnectedCallback(){this.removePublisherListeners(),super.disconnectedCallback()}updateComposition(){this.removePublisherListeners(),this.publisher&&(this.publisher.set({}),this.parseComposition(this.composition,this.publisher))}removePublisherListeners(){const t=this.listeners;this.listeners=[],t.forEach(e=>{this.publisher.offAssign(e.subscriber)})}parseComposition(t,e){if(t)for(const s in t){const r=t[s];if(typeof r=="string"){const i=r.split("."),n=i.shift();if(!n)continue;let o=be.get(n);o=Br.traverse(o,i);const c={publisher:o,subscriber:h=>{e[s]=h}};this.listeners.push(c),o.onAssign(c.subscriber),e._proxies_.set(s,o)}else{this.publisher[s]={};const i=new Lr({},e);e._proxies_.set(s,i);const n={publisher:i,subscriber:o=>{e[s]=o}};this.listeners.push(n),i.onAssign(n.subscriber),this.parseComposition(r,i)}}}render(){return R`<slot></slot>`}};Wi.styles=[ee`
|
|
1280
1280
|
:host {
|
|
1281
1281
|
display: contents;
|
|
1282
1282
|
}
|
|
1283
|
-
`],
|
|
1283
|
+
`],Qa([u({type:Object})],Wi.prototype,"composition",1),Wi=Qa([X("sonic-mix")],Wi);var pd=Object.defineProperty,fd=Object.getOwnPropertyDescriptor,xr=(t,e,s,r)=>{for(var i=r>1?void 0:r?fd(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&pd(e,s,i),i};let Ms=class extends J{constructor(){super(...arguments),this.inputProvider="",this.outputProvider="",this.formDataProvider="",this.expression="",this.outputSchema=null,this.handle=null}connectedCallback(){super.connectedCallback(),this.restart()}disconnectedCallback(){this.handle?.stop(),this.handle=null,super.disconnectedCallback()}updated(t){(t.has("expression")||t.has("inputProvider")||t.has("outputProvider")||t.has("formDataProvider")||t.has("outputSchema"))&&this.restart()}restart(){if(this.handle?.stop(),this.handle=null,!this.isConnected||!this.inputProvider||!this.outputProvider||!this.expression?.trim())return;const t=this.expression,e=this.outputSchema;this.handle=Mc({inputs:{input:new Ss(this.inputProvider)},output:new Ss(this.outputProvider),variables:this.formDataProvider?new Ss(this.formDataProvider):void 0,compute:async({input:s},r)=>{const i=Uc(t),n={...r??{},input:s};let o;try{o=await i.evaluate({},n)}catch(c){const h=c instanceof Error?c.message:String(c);throw new Error(`[sonic-jsonata] Évaluation : ${h}`)}return qc(o,e),o}})}render(){return R`<slot></slot>`}};Ms.styles=[ee`
|
|
1284
1284
|
:host {
|
|
1285
1285
|
display: contents;
|
|
1286
1286
|
}
|
|
1287
|
-
`],
|
|
1288
|
-
><slot name="suffix"></slot>`}};
|
|
1287
|
+
`],xr([u({type:String})],Ms.prototype,"inputProvider",2),xr([u({type:String})],Ms.prototype,"outputProvider",2),xr([u({type:String})],Ms.prototype,"formDataProvider",2),xr([u({type:String})],Ms.prototype,"expression",2),xr([u({type:Object})],Ms.prototype,"outputSchema",2),Ms=xr([X("sonic-jsonata")],Ms);var gd=Object.getOwnPropertyDescriptor,bd=(t,e,s,r)=>{for(var i=r>1?void 0:r?gd(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const md="sonic-value";let el=class extends Ts(J){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?R`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:R`${je(this.props.toString())}<slot name="prefix"></slot><slot></slot
|
|
1288
|
+
><slot name="suffix"></slot>`}};el=bd([X(md)],el);var vd=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,eo=(t,e,s,r)=>{for(var i=r>1?void 0:r?yd(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&vd(e,s,i),i};const wd="sonic-t";let Ki=class extends J{render(){return this.key?R`${uc(this.key,this.unsafeHTML)}`:re}};eo([u({type:String})],Ki.prototype,"key",2),eo([u({type:Boolean})],Ki.prototype,"unsafeHTML",2),Ki=eo([X(wd)],Ki);var _d=Object.defineProperty,Pd=Object.getOwnPropertyDescriptor,ei=(t,e,s,r)=>{for(var i=r>1?void 0:r?Pd(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&_d(e,s,i),i};const xd="sonic-badge";let er=class extends J{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return R`
|
|
1289
1289
|
<slot name="prefix"></slot>
|
|
1290
1290
|
<slot></slot>
|
|
1291
1291
|
<slot name="suffix"></slot>
|
|
@@ -1429,7 +1429,7 @@
|
|
|
1429
1429
|
slot[name="prefix"] {
|
|
1430
1430
|
flex-shrink: 0;
|
|
1431
1431
|
}
|
|
1432
|
-
`],ei([
|
|
1432
|
+
`],ei([u({type:String,reflect:!0})],er.prototype,"type",2),ei([u({type:String,reflect:!0})],er.prototype,"variant",2),ei([u({type:String,reflect:!0})],er.prototype,"size",2),ei([u({type:Boolean,reflect:!0})],er.prototype,"ellipsis",2),er=ei([X(xd)],er);class Sd{static fixBlankLink(e){const r=typeof require>"u"||typeof process!="object"?null:require("electron");e.target=="_blank"&&e.addEventListener("click",()=>{r?.shell.openExternal(e.href)})}}var Ad=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,Sr=(t,e,s,r)=>{for(var i=r>1?void 0:r?Cd(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Ad(e,s,i),i};const kd="sonic-link";let Is=class extends J{constructor(){super(...arguments),this.href="",this._location="",this.ariaLabel=null,this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(t){this._location=t,ct.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(ct.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",t=>{t.key==="Enter"&&this.shadowRoot?.querySelector("a")?.click()}),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){ct.offChange(this),super.disconnectedCallback()}set target(t){this._target=t,Sd.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(t){t.preventDefault(),ct.changeFromComponent(this)}updated(t){t.has("href")&&this.setFocusable()}render(){return this.href?R`
|
|
1433
1433
|
<a
|
|
1434
1434
|
href="${this.href}"
|
|
1435
1435
|
aria-label=${this.ariaLabel||re}
|
|
@@ -1438,19 +1438,19 @@
|
|
|
1438
1438
|
>
|
|
1439
1439
|
<slot></slot>
|
|
1440
1440
|
</a>
|
|
1441
|
-
`:R`<slot></slot>`}};
|
|
1441
|
+
`:R`<slot></slot>`}};Is.styles=[ee`
|
|
1442
1442
|
a {
|
|
1443
1443
|
color: inherit;
|
|
1444
1444
|
text-decoration: none;
|
|
1445
1445
|
display: contents;
|
|
1446
1446
|
}
|
|
1447
|
-
`],Sr([
|
|
1447
|
+
`],Sr([u({type:String})],Is.prototype,"href",2),Sr([u({type:String,attribute:"data-aria-label"})],Is.prototype,"ariaLabel",2),Sr([u({type:String})],Is.prototype,"autoActive",2),Sr([u({type:String})],Is.prototype,"target",1),Sr([u({type:Boolean})],Is.prototype,"pushState",2),Is=Sr([X(kd)],Is);var $d=Object.defineProperty,Dd=Object.getOwnPropertyDescriptor,Ar=(t,e,s,r)=>{for(var i=r>1?void 0:r?Dd(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&$d(e,s,i),i};const Ed="sonic-progress";let Ns=class extends J{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default"}render(){return R`
|
|
1448
1448
|
<progress value=${te(this.value)} max=${this.max}></progress>
|
|
1449
1449
|
<div class="slot-container">
|
|
1450
1450
|
<slot></slot>
|
|
1451
1451
|
<slot name="remaining"></slot>
|
|
1452
1452
|
</div>
|
|
1453
|
-
`}};
|
|
1453
|
+
`}};Ns.styles=[ss,ee`
|
|
1454
1454
|
:host {
|
|
1455
1455
|
--sc-progress-bg: var(
|
|
1456
1456
|
--sc-input-bg,
|
|
@@ -1562,7 +1562,7 @@
|
|
|
1562
1562
|
gap: 0.5em;
|
|
1563
1563
|
margin-top: 0.15em;
|
|
1564
1564
|
}
|
|
1565
|
-
`],Ar([
|
|
1565
|
+
`],Ar([u({type:Number})],Ns.prototype,"value",2),Ar([u({type:Number})],Ns.prototype,"max",2),Ar([u({type:Boolean})],Ns.prototype,"invert",2),Ar([u({type:String,reflect:!0})],Ns.prototype,"type",2),Ar([u({type:String,reflect:!0})],Ns.prototype,"size",2),Ns=Ar([X(Ed)],Ns);const Od=ee`
|
|
1566
1566
|
.password-toggle {
|
|
1567
1567
|
color: var(--sc-input-c);
|
|
1568
1568
|
font-size: var(--sc-input-fs);
|
|
@@ -1573,7 +1573,7 @@
|
|
|
1573
1573
|
:host([inlineContent]) .has-suffix .password-toggle {
|
|
1574
1574
|
margin-right: 0;
|
|
1575
1575
|
}
|
|
1576
|
-
`,
|
|
1576
|
+
`,Yi=ee`
|
|
1577
1577
|
:host {
|
|
1578
1578
|
--sc-label-fs: var(--sc-_fs, 1rem);
|
|
1579
1579
|
--sc-label-fw: var(--sc-label-font-weight, 500);
|
|
@@ -1587,14 +1587,14 @@
|
|
|
1587
1587
|
margin-bottom: 0.22em;
|
|
1588
1588
|
display: block;
|
|
1589
1589
|
}
|
|
1590
|
-
`,
|
|
1590
|
+
`,Gi=ee`
|
|
1591
1591
|
.form-description {
|
|
1592
1592
|
color: var(--sc-base-400, var(--sc-base-content, #000));
|
|
1593
1593
|
font-size: 0.85em;
|
|
1594
1594
|
margin-top: 0.2em;
|
|
1595
1595
|
display: block;
|
|
1596
1596
|
}
|
|
1597
|
-
`,
|
|
1597
|
+
`,to=ee`
|
|
1598
1598
|
* {
|
|
1599
1599
|
box-sizing: border-box;
|
|
1600
1600
|
}
|
|
@@ -1953,7 +1953,7 @@
|
|
|
1953
1953
|
* @license
|
|
1954
1954
|
* Copyright 2018 Google LLC
|
|
1955
1955
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1956
|
-
*/const
|
|
1956
|
+
*/const so=$s(class extends fr{constructor(t){if(super(t),t.type!==Ys.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((r=>r!==""))));for(const r in e)e[r]&&!this.nt?.has(r)&&this.st.add(r);return this.render(e)}const s=t.element.classList;for(const r of this.st)r in e||(s.remove(r),this.st.delete(r));for(const r in e){const i=!!e[r];i===this.st.has(r)||this.nt?.has(r)||(i?(s.add(r),this.st.add(r)):(s.remove(r),this.st.delete(r)))}return Nt}});var Td=Object.defineProperty,Ld=Object.getOwnPropertyDescriptor,ze=(t,e,s,r)=>{for(var i=r>1?void 0:r?Ld(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Td(e,s,i),i};const Md="sonic-input";let Ie=class extends ji(br(nt(J))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.autoActive=!1,this.active=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.isPassword=!1}connectedCallback(){if(super.connectedCallback(),this.hasSlotOrProps(),this.hasAttribute("sameValueAs")){this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=e=>this.pattern=this.escapeRegExp(e);const t=this.getFormPublisher();if(!t)return;t[this.sameValueAsName].onAssign(this.sameValueAsHandle)}this.type=="password"&&(this.isPassword=!0,this.showPasswordToggle=!0,this.inlineContent=!0)}disconnectedCallback(){if(super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName){const t=this.getFormPublisher();if(!t)return;t[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(t){this.hasSlotOrProps(),this.autoActive&&t.has("value")&&(this.active=!!this.value),super.willUpdate(t)}setSelectionRange(t,e){this.input.setSelectionRange(t,e)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length),this.hasSuffix=!!this.slotSuffixNodes?.length,this.hasPrefix=!!this.slotPrefixNodes?.length}inlineContentFocus(){!this.inlineContent||this.disableInlineContentFocus||this.input?.focus()}handleChange(t){if(!this.hasAttribute("inputDelayMs")){super.handleChange(t);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(t),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(t){t.preventDefault(),t.stopPropagation(),this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const t={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return R`
|
|
1957
1957
|
<label for="${this.id||"form-element"}" class="${this.hasLabel?"form-label":"hidden"}"
|
|
1958
1958
|
>${this.label?je(this.label):""}<slot
|
|
1959
1959
|
name="label"
|
|
@@ -1961,7 +1961,7 @@
|
|
|
1961
1961
|
></slot
|
|
1962
1962
|
></label>
|
|
1963
1963
|
|
|
1964
|
-
<div @click=${this.inlineContentFocus} class="form-control ${
|
|
1964
|
+
<div @click=${this.inlineContentFocus} class="form-control ${so(t)}">
|
|
1965
1965
|
<div part="content" class="${this.inlineContent?"form-element form-element-wrapper":"contents"}">
|
|
1966
1966
|
<slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
|
|
1967
1967
|
<input
|
|
@@ -2018,7 +2018,7 @@
|
|
|
2018
2018
|
>${this.description?R`${je(this.description)}`:re}</slot>
|
|
2019
2019
|
<slot name="list"></slot>
|
|
2020
2020
|
</div>
|
|
2021
|
-
`}};
|
|
2021
|
+
`}};Ie.styles=[ss,to,Yi,Gi,Od,ee`
|
|
2022
2022
|
:host([type="hidden"]) {
|
|
2023
2023
|
appearance: none !important;
|
|
2024
2024
|
display: none !important;
|
|
@@ -2026,7 +2026,7 @@
|
|
|
2026
2026
|
:host > .form-control {
|
|
2027
2027
|
position: relative;
|
|
2028
2028
|
}
|
|
2029
|
-
`],ze([
|
|
2029
|
+
`],ze([u({type:String,reflect:!0})],Ie.prototype,"size",2),ze([u({type:String})],Ie.prototype,"inputmode",2),ze([u({type:String})],Ie.prototype,"list",2),ze([u({type:String})],Ie.prototype,"placeholder",2),ze([u({type:String})],Ie.prototype,"pattern",2),ze([u({type:String})],Ie.prototype,"min",2),ze([u({type:String})],Ie.prototype,"max",2),ze([u({type:Boolean,reflect:!0})],Ie.prototype,"readonly",2),ze([u({type:Number})],Ie.prototype,"step",2),ze([u({type:Number})],Ie.prototype,"minlength",2),ze([u({type:Number})],Ie.prototype,"maxlength",2),ze([u({type:String})],Ie.prototype,"src",2),ze([u({type:Boolean,reflect:!0})],Ie.prototype,"inlineContent",2),ze([u({type:Boolean})],Ie.prototype,"disableInlineContentFocus",2),ze([u({type:Boolean})],Ie.prototype,"showPasswordToggle",2),ze([u({type:Boolean})],Ie.prototype,"autoActive",2),ze([u({type:Boolean,reflect:!0})],Ie.prototype,"active",2),ze([bt({slot:"label",flatten:!0})],Ie.prototype,"slotLabelNodes",2),ze([bt({slot:"description",flatten:!0})],Ie.prototype,"slotDescriptionNodes",2),ze([bt({slot:"suffix",flatten:!0})],Ie.prototype,"slotSuffixNodes",2),ze([bt({slot:"prefix",flatten:!0})],Ie.prototype,"slotPrefixNodes",2),ze([Cs("input")],Ie.prototype,"input",2),ze([Ae()],Ie.prototype,"hasDescription",2),ze([Ae()],Ie.prototype,"hasLabel",2),ze([Ae()],Ie.prototype,"hasSuffix",2),ze([Ae()],Ie.prototype,"hasPrefix",2),ze([Ae()],Ie.prototype,"isPassword",2),Ie=ze([X(Md)],Ie);const tl=ee`
|
|
2030
2030
|
/*OMBRE*/
|
|
2031
2031
|
:host([shadow]) .shadowable,
|
|
2032
2032
|
:host([shadow="md"]) .shadowable,
|
|
@@ -2045,7 +2045,7 @@
|
|
|
2045
2045
|
:host([shadow="none"]) .shadowable {
|
|
2046
2046
|
box-shadow: none;
|
|
2047
2047
|
}
|
|
2048
|
-
`;var
|
|
2048
|
+
`;var Id=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,is=(t,e,s,r)=>{for(var i=r>1?void 0:r?Nd(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Id(e,s,i),i};const Fd="sonic-pop";let dt=class extends J{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.manual=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=0,this.lastContentY=0,this.resizeObserver=new ResizeObserver(()=>this.computePosition(this.placement)),this.triggerElement=null,this.ancestorsHavingZIndex=new Set,this._handleKeyDown=t=>{t.key==="Escape"&&this.open&&(t.stopPropagation(),this.hide())}}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(t){if(this.open&&this.noToggle)return;const e=t;t.type=="keydown"&&(e.key!="ArrowDown"||this.open)||(this.open||(this.triggerElement=t.target),this.open=!this.open,this.open?this.show():this.hide())}show(){this.setMaxZindex(),this.popContent?.style?.removeProperty("display"),this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=0,this.lastContentY=0,this.runPositioningLoop()),this.dispatchEvent(new CustomEvent("show"))}hide(){this.resetZindexes(),this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1,this.triggerElement&&(this.triggerElement.focus(),this.triggerElement=null),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){Je.everyAncestors(this,t=>{const e=t;if(!e.className)return!0;if([...e.classList].includes("@container")){const s=e.style;s.zIndex="999999999";const r=getComputedStyle(e);return r.position!=="relative"&&r.position!=="absolute"&&(s.position="relative"),this.ancestorsHavingZIndex.add(t),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(t=>{t.style.removeProperty("position"),t.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(t){const e=t.composedPath(),s=e[0];dt.pops.forEach(r=>{const i=e.includes(r),n=e.includes(r.querySelector('[slot="content"]')),o=Je.getAncestorAttributeValue(s,"data-on-select")==="keep";t.type=="pointerdown"&&i||t.type=="click"&&(i&&o||!n)||r.hide()})}connectedCallback(){super.connectedCallback(),dt.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop),document.addEventListener("keydown",this._handleKeyDown)),dt.pops.add(this)}firstUpdated(t){super.firstUpdated(t),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),dt.pops.delete(this),dt.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop),document.removeEventListener("keydown",this._handleKeyDown))}computePosition(t){const e=t.split(" "),s=e[0];let r=e[1];const i=5,n=this.getBoundingClientRect(),c=Je.getScrollableAncestor(this.popContent)?.getBoundingClientRect(),h=Math.max(0,c?.left||0)+i,b=Math.max(0,c?.top||0)+i,k=Math.min(window.innerWidth,c?.right||window.innerWidth)-i,g=Math.min(window.innerHeight,c?.bottom||window.innerHeight)-i,f=n.left,A=n.top;let E=f,O=A,N=this.popContent?.getBoundingClientRect();const U=A-N.height,P=f-N.width,y=f+n.width,I=A+n.height,C=f+(n.width-N.width)*.5,$=A+(n.height-N.height)*.5;switch(s){case"bottom":O=I,r=="center"&&(E=C);break;case"top":O=U,r=="center"&&(E=C);break;case"left":E=P,r=="center"&&(O=$);break;case"right":E=y,r=="center"&&(O=$);break}this.lastContentX+=E-N.x,this.lastContentY+=O-N.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),N=this.popContent?.getBoundingClientRect(),N.x<h&&s=="left"&&(E=y),N.y<b&&s=="top"&&(O=I),N.x+N.width>k&&s=="right"&&(E=P),N.y+N.height>g&&s=="bottom"&&(O=U),this.lastContentX+=E-N.x,this.lastContentY+=O-N.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),N=this.popContent?.getBoundingClientRect(),N.x<h&&(this.lastContentX+=h-N.x),N.y<b&&(this.lastContentY+=b-N.y),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),N=this.popContent?.getBoundingClientRect(),N.x+N.width>k&&(this.lastContentX+=k-(N.x+N.width)),N.y+N.height>g&&(this.lastContentY+=g-(N.y+N.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return R`
|
|
2049
2049
|
<slot
|
|
2050
2050
|
@click=${this.manual?()=>{}:this.toggle}
|
|
2051
2051
|
@keydown=${this.manual?()=>{}:this.toggle}
|
|
@@ -2091,11 +2091,11 @@
|
|
|
2091
2091
|
:host([inline]) {
|
|
2092
2092
|
vertical-align: baseline;
|
|
2093
2093
|
}
|
|
2094
|
-
`,
|
|
2094
|
+
`,tl],is([Ae()],dt.prototype,"open",2),is([Cs("slot:not([name=content])")],dt.prototype,"popBtn",2),is([Cs("slot[name=content]")],dt.prototype,"popContent",2),is([u({type:Boolean})],dt.prototype,"noToggle",2),is([u({type:Boolean,reflect:!0})],dt.prototype,"inline",2),is([u({type:Boolean})],dt.prototype,"manual",2),is([u({type:String,reflect:!0})],dt.prototype,"shadow",2),is([u({type:String})],dt.prototype,"placement",2),is([Ae()],dt.prototype,"triggerElement",2),dt=is([X(Fd)],dt);var jd=Object.getOwnPropertyDescriptor,Rd=(t,e,s,r)=>{for(var i=r>1?void 0:r?jd(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const zd="sonic-menu-item";let sl=class extends Me{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="default"),this.hasAttribute("shape")||(this.shape="block");const t=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!t&&(this.align="left"),super.connectedCallback()}};sl=Rd([X(zd)],sl);/**
|
|
2095
2095
|
* @license
|
|
2096
2096
|
* Copyright 2021 Google LLC
|
|
2097
2097
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2098
|
-
*/class
|
|
2098
|
+
*/class rl{constructor(e,{target:s,config:r,callback:i,skipInitial:n}){this.t=new Set,this.o=!1,this.i=!1,this.h=e,s!==null&&this.t.add(s??e),this.l=r,this.o=n??this.o,this.callback=i,window.ResizeObserver?(this.u=new ResizeObserver((o=>{this.handleChanges(o),this.h.requestUpdate()})),e.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(e){this.value=this.callback?.(e,this.u)}hostConnected(){for(const e of this.t)this.observe(e)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(e){this.t.add(e),this.u.observe(e,this.l),this.i=!0,this.h.requestUpdate()}unobserve(e){this.t.delete(e),this.u.unobserve(e)}disconnect(){this.u.disconnect()}}var Ud=Object.defineProperty,qd=Object.getOwnPropertyDescriptor,mt=(t,e,s,r)=>{for(var i=r>1?void 0:r?qd(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Ud(e,s,i),i};let pt=class extends Yn(Ta(Oa(Ts(J)))){constructor(){super(...arguments),this.size="md",this.placeholder="",this.filteredFields="",this.readonly=null,this.dataProviderExpression="",this.minSearchLength=0,this.key="",this.searchParameter="",this.propertyName="",this.hasInputPrefix=!1,this._resizeController=new rl(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=t=>{if(t==""&&this.isSearchParameter()){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&this.isSearchParameter()&&(this.lastValidSearch=t,this.searchPublisher?.set(this.lastValidSearch))},this.updatePopContentVisibility=t=>{this.isPopVisible=(t?.length||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=t=>{const e=this.propertyName==="_self"?t:t[this.propertyName||this.name];this.formValuePublisher?.set(e)},this.findSearchedItem=t=>(this.propertyName==="_self"?t:t[this.propertyName||this.searchParameter||this.name])==this.searchPublisher?.get(),this.findSelection=t=>(this.propertyName==="_self"?t:t[this.propertyName||this.name])==this.value,this.setSearchFromSelection=t=>{this.lastValidSearch=this.propertyName==="_self"?t:t[this.searchParameter||this.propertyName||this.name],this.isSearchParameter()&&this.searchPublisher?.set(this.lastValidSearch)},this.updateActiveSelection=()=>{this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=this.searchPublisher?.get()&&this.formValuePublisher?.get()&&this.formValuePublisher?.set("")},this.handleFocusOut=t=>{setTimeout(()=>{const e=document.activeElement;if(!e){this.popElement.hide();return}const s=this.popElement.contains(e)||this.popElement.shadowRoot?.contains(e),r=this.contains(e)||this.shadowRoot?.contains(e);!s&&!r&&this.popElement.hide()},0)}}hasSlotOrProps(){this.hasInputPrefix=!!this.slotInputPrefixNodes?.length}isSearchParameter(){return!this.searchParameter||this.searchParameter===this.name}connectedCallback(){super.connectedCallback();const t=this.searchParameter||this.name,e=this.getAncestorAttributeValue("formDataProvider"),s=e+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${s}_init_search__`,this.initQueueDataProvider=`${s}_init_queue__`,this.searchDataProvider=`${s}_search__`,this.queueDataProvider=`${s}_queue__`;const r=be.get;this.searchPublisher=r(this.searchDataProvider)[t],this.formValuePublisher=kt(r(e),this.name),this.countPublisher=r(this.queueDataProvider).resultCount,this.initCountPublisher=r(this.initQueueDataProvider).resultCount,this.value&&be.get(this.initSearchDataProvider)[this.name].set(this.value),this.initCountPublisher?.onAssign(this.initSearchParameter),this.formValuePublisher?.onAssign(this.updateSearchParameter),this.countPublisher?.onAssign(this.updateActiveSelection),this.searchPublisher?.onAssign(this.updatePopContentVisibility)}firstUpdated(t){super.firstUpdated(t),this.popElement.addEventListener("focusout",this.handleFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.initCountPublisher?.offAssign(this.initSearchParameter),this.formValuePublisher?.offAssign(this.updateSearchParameter),this.countPublisher?.offAssign(this.updateActiveSelection);const t=be.get;t(this.initSearchDataProvider).delete(),t(this.initQueueDataProvider).delete(),t(this.searchDataProvider).delete(),t(this.queueDataProvider).delete(),this.searchPublisher?.offAssign(this.updatePopContentVisibility),this.popElement.removeEventListener("focusout",this.handleFocusOut)}queryQueueListItem(t,e,s){const r=be.get(t);let i,n=r.get();if(!n||!Array.isArray(n)||!n.length)return!1;for(const o of n){let c=be.get(o.dataProvider).get();if(Array.isArray(c)&&(i=c.find(e),i))break}return i?(s(i),!0):!1}setSelectionRange(t,e){this.querySelector("sonic-input")?.setSelectionRange(t,e)}handleHide(){if(this.select){if(this.searchPublisher?.get()==""){this.lastValidSearch="",this.formValuePublisher?.set("");return}this.searchPublisher?.set(this.lastValidSearch)}}getInputValue(){return this.isSearchParameter()?this.searchPublisher?.get():this.lastValidSearch}handleFocus(){this.popElement.show()}render(){return R`
|
|
2099
2099
|
<sonic-pop manual style="display:block;" @hide=${this.handleHide}>
|
|
2100
2100
|
<sonic-input
|
|
2101
2101
|
class="form-element"
|
|
@@ -2181,7 +2181,7 @@
|
|
|
2181
2181
|
min-width: 14rem;
|
|
2182
2182
|
width: 100%;
|
|
2183
2183
|
}
|
|
2184
|
-
`],mt([
|
|
2184
|
+
`],mt([u({type:String})],pt.prototype,"size",2),mt([u({type:String})],pt.prototype,"placeholder",2),mt([u()],pt.prototype,"filteredFields",2),mt([u({type:Boolean,reflect:!0})],pt.prototype,"readonly",2),mt([u({type:String})],pt.prototype,"dataProviderExpression",2),mt([u({type:Number})],pt.prototype,"minSearchLength",2),mt([u({type:Boolean})],pt.prototype,"select",2),mt([u({type:String})],pt.prototype,"key",2),mt([u({type:String})],pt.prototype,"searchParameter",2),mt([u({type:String})],pt.prototype,"propertyName",2),mt([bt({slot:"prefix",flatten:!0})],pt.prototype,"slotInputPrefixNodes",2),mt([Ae()],pt.prototype,"hasInputPrefix",2),mt([Cs("sonic-pop")],pt.prototype,"popElement",2),mt([Ae()],pt.prototype,"isPopVisible",2),mt([Ae()],pt.prototype,"lastValidSearch",2),pt=mt([X("sonic-input-autocomplete")],pt);var Vd=Object.defineProperty,Bd=Object.getOwnPropertyDescriptor,Dt=(t,e,s,r)=>{for(var i=r>1?void 0:r?Bd(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Vd(e,s,i),i};const Hd="sonic-password-helper";let vt=class extends Ts(J){constructor(){super(...arguments),this.minChars=8,this.hasNoChar=!0,this.hasEnoughChars=!1,this.hasMinuscule=!1,this.hasMajuscule=!1,this.hasNumber=!1,this.hasSpecialChar=!1,this.wording_password_helper_decription="Le mot de passe doit contenir au moins :",this.wording_password_helper_min_length="8 caractères",this.wording_password_helper_lower_case="1 minuscule",this.wording_password_helper_upper_case="1 majuscule",this.wording_password_helper_number="1 chiffre",this.wording_password_helper_special_char="1 caractère spécial"}connectedCallback(){super.connectedCallback(),this.name&&(this.checkValue=e=>{e?(this.hasNoChar=e.length==0,this.hasEnoughChars=e.length>this.minChars):(this.hasNoChar=!0,this.hasEnoughChars=!1),this.hasMinuscule=/[a-z]/.test(e),this.hasMajuscule=/[A-Z]/.test(e),this.hasNumber=/[0-9]/.test(e),this.hasSpecialChar=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(e)},be.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&be.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(e){return e?R`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:R`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?re:R`
|
|
2185
2185
|
<div>${this.wording_password_helper_decription}</div>
|
|
2186
2186
|
<div>
|
|
2187
2187
|
${this.getIcon(this.hasEnoughChars)}
|
|
@@ -2202,11 +2202,11 @@
|
|
|
2202
2202
|
${this.getIcon(this.hasSpecialChar)}
|
|
2203
2203
|
${this.wording_password_helper_special_char}
|
|
2204
2204
|
</div>
|
|
2205
|
-
`}};Dt([
|
|
2205
|
+
`}};Dt([u()],vt.prototype,"name",2),Dt([u()],vt.prototype,"minChars",2),Dt([Ae()],vt.prototype,"hasNoChar",2),Dt([Ae()],vt.prototype,"hasEnoughChars",2),Dt([Ae()],vt.prototype,"hasMinuscule",2),Dt([Ae()],vt.prototype,"hasMajuscule",2),Dt([Ae()],vt.prototype,"hasNumber",2),Dt([Ae()],vt.prototype,"hasSpecialChar",2),Dt([u()],vt.prototype,"wording_password_helper_decription",2),Dt([u()],vt.prototype,"wording_password_helper_min_length",2),Dt([u()],vt.prototype,"wording_password_helper_lower_case",2),Dt([u()],vt.prototype,"wording_password_helper_upper_case",2),Dt([u()],vt.prototype,"wording_password_helper_number",2),Dt([u()],vt.prototype,"wording_password_helper_special_char",2),vt=Dt([X(Hd)],vt);var Wd=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,tr=(t,e,s,r)=>{for(var i=r>1?void 0:r?Kd(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Wd(e,s,i),i};const Yd="sonic-same-value-helper";let Fs=class extends Ts(J){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const t=be.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=e=>{e?this.hasNoChar=e.length==0:this.hasNoChar=!0,this.name&&this.sameValueAs&&(this.areEqual=kt(t,this.name).get()==kt(t,this.sameValueAs).get())},kt(t,this.name).onAssign(this.checkValue),kt(t,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const t=be.get(this.getAncestorAttributeValue("formDataProvider"));kt(t,this.name).offAssign(this.checkValue),kt(t,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?re:R`
|
|
2206
2206
|
<span>
|
|
2207
2207
|
${this.areEqual?je(this.descriptionWhenEqual):je(this.descriptionWhenNotEqual)}
|
|
2208
2208
|
</span>
|
|
2209
|
-
`}};tr([
|
|
2209
|
+
`}};tr([u()],Fs.prototype,"name",2),tr([u()],Fs.prototype,"sameValueAs",2),tr([u()],Fs.prototype,"descriptionWhenEqual",2),tr([u()],Fs.prototype,"descriptionWhenNotEqual",2),tr([Ae()],Fs.prototype,"areEqual",2),tr([Ae()],Fs.prototype,"hasNoChar",2),Fs=tr([X(Yd)],Fs);var Gd=Object.defineProperty,Zd=Object.getOwnPropertyDescriptor,vs=(t,e,s,r)=>{for(var i=r>1?void 0:r?Zd(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Gd(e,s,i),i};const Jd="sonic-checkbox";let Et=class extends Fn(ji(br(nt(J)))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.indeterminateIconName="minus-small",this.showAsIndeterminate=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){this.type="checkbox",this.hasSlotOrProps(),super.connectedCallback()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t),t.has("type")&&(this.type="checkbox")}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){return R`
|
|
2210
2210
|
<label class="checkbox-container ${this.disabled?"disabled":""}">
|
|
2211
2211
|
|
|
2212
2212
|
<span class="icon-container">
|
|
@@ -2356,7 +2356,7 @@
|
|
|
2356
2356
|
.hidden {
|
|
2357
2357
|
display: none;
|
|
2358
2358
|
}
|
|
2359
|
-
`],vs([
|
|
2359
|
+
`],vs([u({type:Boolean,reflect:!0})],Et.prototype,"touched",2),vs([u({type:String})],Et.prototype,"iconName",2),vs([u({type:String})],Et.prototype,"indeterminateIconName",2),vs([u({type:Boolean})],Et.prototype,"showAsIndeterminate",2),vs([u({type:Boolean})],Et.prototype,"hasDescription",2),vs([u({type:Boolean})],Et.prototype,"hasLabel",2),vs([bt({flatten:!0})],Et.prototype,"slotLabelNodes",2),vs([bt({slot:"description",flatten:!0})],Et.prototype,"slotDescriptionNodes",2),Et=vs([X(Jd)],Et);var Xd=Object.getOwnPropertyDescriptor,Qd=(t,e,s,r)=>{for(var i=r>1?void 0:r?Xd(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const ep="sonic-radio";let ro=class extends Et{constructor(){super(),this.radio=!0}willUpdate(t){const e=t.has("type");super.willUpdate(t),e&&(this.type="radio")}connectedCallback(){super.connectedCallback(),this.type="radio"}};ro.styles=[Et.styles,ee`
|
|
2360
2360
|
:host input {
|
|
2361
2361
|
border-radius: 50%;
|
|
2362
2362
|
}
|
|
@@ -2372,7 +2372,7 @@
|
|
|
2372
2372
|
width: 0.6em;
|
|
2373
2373
|
width: round(0.6em, 1px);
|
|
2374
2374
|
}
|
|
2375
|
-
`],
|
|
2375
|
+
`],ro=Qd([X(ep)],ro);var tp=Object.getOwnPropertyDescriptor,sp=(t,e,s,r)=>{for(var i=r>1?void 0:r?tp(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const rp="sonic-switch";let io=class extends Et{constructor(){super(),this.unique=!0}};io.styles=[Et.styles,ee`
|
|
2376
2376
|
sonic-icon {
|
|
2377
2377
|
display: none;
|
|
2378
2378
|
}
|
|
@@ -2437,7 +2437,7 @@
|
|
|
2437
2437
|
input + sonic-icon {
|
|
2438
2438
|
display: none;
|
|
2439
2439
|
}
|
|
2440
|
-
`],
|
|
2440
|
+
`],io=sp([X(rp)],io);var ip=Object.defineProperty,np=Object.getOwnPropertyDescriptor,ot=(t,e,s,r)=>{for(var i=r>1?void 0:r?np(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&ip(e,s,i),i};const op="sonic-select";let Qe=class extends br(nt(J)){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this.status="default",this._options=[],this.hasDoneFirstUpdate=!1,this._value="",this.updateOptions=()=>{const t=this.querySelectorAll("option");t.length>0&&(this.options=Array.from(t).map(e=>({value:e.value,wording:e.text,selected:e.hasAttribute("selected")})))},this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(t){this._options=t;for(const s of t)s.selected&&(this.value=s[this.valueKey]||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(t){this.hasDoneFirstUpdate=!0,super.firstUpdated(t)}set value(t){t==null&&!this.hasDoneFirstUpdate||(t||(t=""),this._value!=t&&(this._value=t,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){this.setFormPublisherValue(this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length),this.hasSuffix=!!this.slotSuffixNodes?.length,this.hasPrefix=!!this.slotPrefixNodes?.length}validateFormElement(){const t=this.shadowRoot?.querySelector("select");if(!t||t.checkValidity())return;const e=this.getFormPublisher();e&&(e.isFormValid=!1),t.reportValidity()}render(){const t={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return R`
|
|
2441
2441
|
<label
|
|
2442
2442
|
for="form-element"
|
|
2443
2443
|
class="${this.hasLabel?"form-label":"hidden"}"
|
|
@@ -2447,7 +2447,7 @@
|
|
|
2447
2447
|
></slot
|
|
2448
2448
|
></label>
|
|
2449
2449
|
|
|
2450
|
-
<div class="form-control ${
|
|
2450
|
+
<div class="form-control ${so(t)}">
|
|
2451
2451
|
<slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
|
|
2452
2452
|
<div class="form-select-wrapper">
|
|
2453
2453
|
<select
|
|
@@ -2488,7 +2488,7 @@
|
|
|
2488
2488
|
class="${this.hasDescription?"form-description":"hidden"}"
|
|
2489
2489
|
>${this.description?R`${je(this.description)}`:""}</slot
|
|
2490
2490
|
>
|
|
2491
|
-
`}};Qe.styles=[ss,
|
|
2491
|
+
`}};Qe.styles=[ss,to,Yi,Gi,ee`
|
|
2492
2492
|
.form-element {
|
|
2493
2493
|
appearance: none;
|
|
2494
2494
|
white-space: nowrap;
|
|
@@ -2541,7 +2541,7 @@
|
|
|
2541
2541
|
:host([multiple]) sonic-icon {
|
|
2542
2542
|
display: none !important;
|
|
2543
2543
|
}
|
|
2544
|
-
`],ot([
|
|
2544
|
+
`],ot([u({type:String})],Qe.prototype,"valueKey",2),ot([u({type:String})],Qe.prototype,"wordingKey",2),ot([u({type:Boolean})],Qe.prototype,"multiple",2),ot([u({type:String,reflect:!0})],Qe.prototype,"size",2),ot([u({type:Number})],Qe.prototype,"selectSize",2),ot([u({type:String,reflect:!0})],Qe.prototype,"status",2),ot([u({type:Array})],Qe.prototype,"options",1),ot([u({reflect:!0})],Qe.prototype,"value",1),ot([u({type:Boolean})],Qe.prototype,"forceAutoFill",2),ot([u()],Qe.prototype,"description",1),ot([u()],Qe.prototype,"label",1),ot([bt({slot:"label",flatten:!0})],Qe.prototype,"slotLabelNodes",2),ot([bt({slot:"description",flatten:!0})],Qe.prototype,"slotDescriptionNodes",2),ot([bt({slot:"suffix",flatten:!0})],Qe.prototype,"slotSuffixNodes",2),ot([bt({slot:"prefix",flatten:!0})],Qe.prototype,"slotPrefixNodes",2),ot([Ae()],Qe.prototype,"hasDescription",2),ot([Ae()],Qe.prototype,"hasLabel",2),ot([Ae()],Qe.prototype,"hasSuffix",2),ot([Ae()],Qe.prototype,"hasPrefix",2),Qe=ot([X(op)],Qe);var ap=Object.defineProperty,lp=Object.getOwnPropertyDescriptor,Tt=(t,e,s,r)=>{for(var i=r>1?void 0:r?lp(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&ap(e,s,i),i};const cp="sonic-textarea";let yt=class extends ji(br(nt(J))){constructor(){super(...arguments),this.size="md",this.readonly=!1,this.resize="vertical",this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}validateFormElement(){const t=this.shadowRoot?.querySelector("textarea");if(!t||t.checkValidity())return;const e=this.getFormPublisher();e&&(e.isFormValid=!1),t.reportValidity()}render(){const t={resize:this.resize};return R`
|
|
2545
2545
|
<label
|
|
2546
2546
|
for="${this.id||"form-element"}"
|
|
2547
2547
|
class="${this.hasLabel?"form-label":"hidden"}"
|
|
@@ -2585,12 +2585,12 @@ ${this.value}</textarea
|
|
|
2585
2585
|
class="${this.hasDescription?"form-description":"hidden"}"
|
|
2586
2586
|
>${this.description?R`${je(this.description)}`:""}</slot
|
|
2587
2587
|
>
|
|
2588
|
-
`}};yt.styles=[ss,
|
|
2588
|
+
`}};yt.styles=[ss,to,Yi,Gi,Yr,ee`
|
|
2589
2589
|
textarea {
|
|
2590
2590
|
overflow-y: auto !important;
|
|
2591
2591
|
font-size: inherit;
|
|
2592
2592
|
}
|
|
2593
|
-
`],Tt([
|
|
2593
|
+
`],Tt([u({type:String})],yt.prototype,"size",2),Tt([u({type:Number})],yt.prototype,"rows",2),Tt([u({type:Number})],yt.prototype,"cols",2),Tt([u({type:Number})],yt.prototype,"maxlength",2),Tt([u({type:Number})],yt.prototype,"minlength",2),Tt([u({type:String})],yt.prototype,"wrap",2),Tt([u({type:Boolean})],yt.prototype,"readonly",2),Tt([u({type:String})],yt.prototype,"placeholder",2),Tt([u({type:String})],yt.prototype,"resize",2),Tt([bt({slot:"label",flatten:!0})],yt.prototype,"slotLabelNodes",2),Tt([bt({slot:"description",flatten:!0})],yt.prototype,"slotDescriptionNodes",2),Tt([Ae()],yt.prototype,"hasDescription",2),Tt([Ae()],yt.prototype,"hasLabel",2),yt=Tt([X(cp)],yt);var up=Object.getOwnPropertyDescriptor,hp=(t,e,s,r)=>{for(var i=r>1?void 0:r?up(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};let no=class extends J{render(){return R`<slot></slot>`}};no.styles=[ee`
|
|
2594
2594
|
:host {
|
|
2595
2595
|
font-size: 1.15rem;
|
|
2596
2596
|
line-height: 1.2;
|
|
@@ -2607,7 +2607,7 @@ ${this.value}</textarea
|
|
|
2607
2607
|
font-size: 1rem;
|
|
2608
2608
|
}
|
|
2609
2609
|
}
|
|
2610
|
-
`],
|
|
2610
|
+
`],no=hp([X("sonic-legend-description")],no);var dp=Object.defineProperty,pp=Object.getOwnPropertyDescriptor,sr=(t,e,s,r)=>{for(var i=r>1?void 0:r?pp(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&dp(e,s,i),i};const fp="sonic-legend";let ys=class extends J{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}render(){return R`<legend part="legend">
|
|
2611
2611
|
${this.iconName?R`<div class="icon">
|
|
2612
2612
|
<sonic-icon
|
|
2613
2613
|
name=${this.iconName}
|
|
@@ -2668,7 +2668,7 @@ ${this.value}</textarea
|
|
|
2668
2668
|
.legend-content {
|
|
2669
2669
|
flex-grow: 1;
|
|
2670
2670
|
}
|
|
2671
|
-
`],sr([
|
|
2671
|
+
`],sr([u({type:Boolean})],ys.prototype,"forceAutoFill",2),sr([u()],ys.prototype,"description",1),sr([u()],ys.prototype,"label",1),sr([u({type:String})],ys.prototype,"iconName",2),sr([u({type:String})],ys.prototype,"iconLibrary",2),sr([u({type:String})],ys.prototype,"iconPrefix",2),ys=sr([X(fp)],ys);var gp=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,ns=(t,e,s,r)=>{for(var i=r>1?void 0:r?bp(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&gp(e,s,i),i};const mp="sonic-fieldset";let Vt=class extends nt(J){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return R`<fieldset
|
|
2672
2672
|
form="${te(this.form)}"
|
|
2673
2673
|
?disabled="${this.disabled}"
|
|
2674
2674
|
>
|
|
@@ -2729,7 +2729,7 @@ ${this.value}</textarea
|
|
|
2729
2729
|
::slotted(sonic-legend:last-child) {
|
|
2730
2730
|
margin-bottom: 0;
|
|
2731
2731
|
}
|
|
2732
|
-
`],ns([
|
|
2732
|
+
`],ns([u({type:Boolean,reflect:!0})],Vt.prototype,"disabled",2),ns([u({type:String})],Vt.prototype,"form",2),ns([u({type:String})],Vt.prototype,"label",2),ns([u({type:String})],Vt.prototype,"description",2),ns([u({type:String})],Vt.prototype,"iconName",2),ns([u({type:String})],Vt.prototype,"iconLibrary",2),ns([u({type:String})],Vt.prototype,"iconPrefix",2),ns([u({type:Boolean,reflect:!0})],Vt.prototype,"tight",2),ns([u({type:String,reflect:!0})],Vt.prototype,"variant",2),Vt=ns([X(mp)],Vt);var vp=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,oo=(t,e,s,r)=>{for(var i=r>1?void 0:r?yp(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&vp(e,s,i),i};const wp="sonic-form-layout";let ti=class extends nt(J){constructor(){super(...arguments),this._resizeController=new rl(this,{}),this.oneFormElement=!1}onSlotChange(){let t=this.slottedElements;const e=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];t=t.filter(s=>e.includes(s.nodeName.toLowerCase())),this.oneFormElement=t.length==1}render(){const t={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return R`<div class=${so(t)}>
|
|
2733
2733
|
<slot @slotchange=${this.onSlotChange}></slot>
|
|
2734
2734
|
</div>`}};ti.styles=[ee`
|
|
2735
2735
|
:host {
|
|
@@ -2766,7 +2766,7 @@ ${this.value}</textarea
|
|
|
2766
2766
|
::slotted(sonic-divider) {
|
|
2767
2767
|
--sc-divider-my: 0;
|
|
2768
2768
|
}
|
|
2769
|
-
`],
|
|
2769
|
+
`],oo([Ir({flatten:!0})],ti.prototype,"slottedElements",2),oo([u({type:Boolean})],ti.prototype,"oneFormElement",2),ti=oo([X(wp)],ti);var _p=Object.defineProperty,Pp=Object.getOwnPropertyDescriptor,ao=(t,e,s,r)=>{for(var i=r>1?void 0:r?Pp(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&_p(e,s,i),i};const xp="sonic-form-actions";let si=class extends J{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const t={flexDirection:this.direction,justifyContent:this.justify};return R`<slot style=${$t(t)}></slot>`}};si.styles=[ee`
|
|
2770
2770
|
:host {
|
|
2771
2771
|
display: block;
|
|
2772
2772
|
}
|
|
@@ -2775,7 +2775,7 @@ ${this.value}</textarea
|
|
|
2775
2775
|
flex-wrap: wrap;
|
|
2776
2776
|
gap: 0.3rem;
|
|
2777
2777
|
}
|
|
2778
|
-
`],
|
|
2778
|
+
`],ao([u({type:String})],si.prototype,"direction",2),ao([u({type:String})],si.prototype,"justify",2),si=ao([X(xp)],si);var Sp=Object.defineProperty,Ap=Object.getOwnPropertyDescriptor,js=(t,e,s,r)=>{for(var i=r>1?void 0:r?Ap(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Sp(e,s,i),i};const Cp="sonic-group";let os=class extends J{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const t=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),e=t.length;e>1&&t.forEach((s,r)=>{const i=s;r===0?(i.style.setProperty("--sc-item-rounded-tr","0"),i.style.setProperty("--sc-item-rounded-br","0")):r===e-1?(i.style.setProperty("--sc-item-rounded-tl","0"),i.style.setProperty("--sc-item-rounded-bl","0")):(i.style.setProperty("--sc-item-rounded-tr","0"),i.style.setProperty("--sc-item-rounded-br","0"),i.style.setProperty("--sc-item-rounded-tl","0"),i.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){const t={alignItems:this.alignItems};return R`<span class="${this.hasLabel?"form-label":"hidden"}"
|
|
2779
2779
|
>${this.label?je(this.label):""}<slot
|
|
2780
2780
|
name="label"
|
|
2781
2781
|
@slotchange=${this.hasSlotOrProps}
|
|
@@ -2788,7 +2788,7 @@ ${this.value}</textarea
|
|
|
2788
2788
|
class="${this.hasDescription?"form-description":"hidden"}"
|
|
2789
2789
|
>
|
|
2790
2790
|
${this.description?R`${je(this.description)}`:""}
|
|
2791
|
-
</slot>`}};os.styles=[ss,Gi,
|
|
2791
|
+
</slot>`}};os.styles=[ss,Yi,Gi,ee`
|
|
2792
2792
|
:host {
|
|
2793
2793
|
display: inline-block;
|
|
2794
2794
|
vertical-align: middle;
|
|
@@ -2808,7 +2808,7 @@ ${this.value}</textarea
|
|
|
2808
2808
|
::slotted(sonic-select) {
|
|
2809
2809
|
flex-grow: 1;
|
|
2810
2810
|
}
|
|
2811
|
-
`],js([
|
|
2811
|
+
`],js([u({type:String})],os.prototype,"alignItems",2),js([u({type:String})],os.prototype,"label",2),js([u({type:String})],os.prototype,"description",2),js([bt({slot:"label",flatten:!0})],os.prototype,"slotLabelNodes",2),js([bt({slot:"description",flatten:!0})],os.prototype,"slotDescriptionNodes",2),js([Ae()],os.prototype,"hasDescription",2),js([Ae()],os.prototype,"hasLabel",2),os=js([X(Cp)],os);var kp=Object.defineProperty,$p=Object.getOwnPropertyDescriptor,as=(t,e,s,r)=>{for(var i=r>1?void 0:r?$p(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&kp(e,s,i),i};const Dp="sonic-image";let Bt=class extends J{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(t){if(this.transition){const e=this.shadowRoot?.querySelector("img");if(!e)return;e.onload=function(){e.classList.add("loaded")}}super.firstUpdated(t)}render(){const t={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return R`<div part="image">
|
|
2812
2812
|
<picture part="picture"
|
|
2813
2813
|
><img
|
|
2814
2814
|
part="img"
|
|
@@ -2891,7 +2891,7 @@ ${this.value}</textarea
|
|
|
2891
2891
|
opacity: 1;
|
|
2892
2892
|
scale: 1;
|
|
2893
2893
|
}
|
|
2894
|
-
`],as([
|
|
2894
|
+
`],as([u({type:String})],Bt.prototype,"rounded",2),as([u({type:String})],Bt.prototype,"src",2),as([u({type:String})],Bt.prototype,"alt",2),as([u({type:String})],Bt.prototype,"loading",2),as([u({type:String,reflect:!0})],Bt.prototype,"transition",2),as([u({type:String})],Bt.prototype,"ratio",2),as([u({type:String})],Bt.prototype,"objectPosition",2),as([u({type:String})],Bt.prototype,"imageRendering",2),as([u({type:Boolean,reflect:!0})],Bt.prototype,"cover",2),Bt=as([X(Dp)],Bt);var Ep=Object.defineProperty,Op=Object.getOwnPropertyDescriptor,Lt=(t,e,s,r)=>{for(var i=r>1?void 0:r?Op(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Ep(e,s,i),i};const il=t=>Ir(t),Tp="sonic-menu";let wt=class extends J{constructor(){super(...arguments),this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.attributeObserver=null,this.minWidth="0",this.hasMoreElements=!1,this.handleScrollEnd=()=>{this.setScrollShadow(this.menuContent,this.direction)},this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this.menuContent,this.direction))}}checkIfMore(){this.hasMoreElements=!!this.moreElements?.length}moreSlotChange(){this.checkIfMore(),this.updateIsScollable()}updated(t){const e=this.querySelector(".more-btn");this.size&&e&&e.setAttribute("size",this.size),super.updated(t)}setDividersSize(t){t.forEach(e=>{e.setAttribute("size","sm"),this.direction=="row"?e.style.setProperty("margin","0 .1rem "):e.style.setProperty("margin"," 0.1rem 0")})}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.setDividersSize(this.menuChildren),this.updateIsScollable(),this.updateScrollPosition(),this.observeMenuItemsAttributes()}observeMenuItemsAttributes(){this.attributeObserver?.disconnect(),this.attributeObserver=new MutationObserver(()=>{this.updateScrollPosition()}),this.menuChildren.forEach(t=>{this.attributeObserver.observe(t,{attributes:!0,attributeFilter:["active"]})})}updateScrollPosition(){if(this.scrollable){const t=this.menuChildren.filter(e=>e.hasAttribute("active")&&e.getAttribute("active")!=="false");t.length===1&&requestAnimationFrame(()=>{t[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})}}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}firstUpdated(t){this.menuContent.addEventListener("scrollend",this.handleScrollEnd)}disconnectedCallback(){this.observer?.disconnect(),this.attributeObserver?.disconnect(),this.menuContent.removeEventListener("scrollend",this.handleScrollEnd),super.disconnectedCallback()}initScrollable(){let t=!1,e,s;this.scrollable&&(this.addEventListener("mousedown",r=>{t=!0,this.classList.add("active"),e=r.pageX-this.menuContent.offsetLeft,s=this.menuContent.scrollLeft}),this.addEventListener("mouseleave",()=>{t=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{t=!1,this.classList.remove("active")}),this.addEventListener("mousemove",r=>{if(!t)return;r.preventDefault();const n=(r.pageX-this.menuContent.offsetLeft-e)*1.5;this.menuContent.scrollLeft=s-n,this.setScrollShadow(this.menuContent,this.direction)}),this.addEventListener("scroll",r=>{r.preventDefault(),this.setScrollShadow(this.menuContent,this.direction)}))}setScrollShadow(t,e){e=="row"?(t.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),t.scrollLeft<t.scrollWidth-t.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):e=="column"&&(t.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),t.scrollTop<t.scrollHeight-(t.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(t){t.forEach(e=>{this.size&&e.setAttribute("size",this.size),this.align&&e.getAttribute("shape")!="square"&&e.getAttribute("shape")!="circle"&&e.setAttribute("align",this.align),this.direction=="row"&&e.getAttribute("shape")=="block"&&e.setAttribute("shape","default")})}render(){const t={minWidth:this.minWidth,flexDirection:this.direction},e=this.direction=="row",s={gap:this.gap,flexDirection:this.direction},r={display:"block",alignSelf:e?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},i={marginLeft:e?"":".55em"};return R`<menu
|
|
2895
2895
|
part="menu"
|
|
2896
2896
|
class="shadowable"
|
|
2897
2897
|
style=${$t(t)}
|
|
@@ -2902,11 +2902,11 @@ ${this.value}</textarea
|
|
|
2902
2902
|
style=${$t(s)}
|
|
2903
2903
|
></slot>
|
|
2904
2904
|
<sonic-pop
|
|
2905
|
-
style=${$t(
|
|
2905
|
+
style=${$t(r)}
|
|
2906
2906
|
class=${this.hasMoreElements?"":"hidden"}
|
|
2907
2907
|
>
|
|
2908
2908
|
<sonic-menu-item
|
|
2909
|
-
style=${$t(
|
|
2909
|
+
style=${$t(i)}
|
|
2910
2910
|
class="more-btn"
|
|
2911
2911
|
shape=${this.moreShape}
|
|
2912
2912
|
align="center"
|
|
@@ -3050,14 +3050,14 @@ ${this.value}</textarea
|
|
|
3050
3050
|
rgba(0, 0, 0, 0) 100%
|
|
3051
3051
|
);
|
|
3052
3052
|
}
|
|
3053
|
-
`,
|
|
3053
|
+
`,tl],Lt([u({type:String,reflect:!0})],wt.prototype,"size",2),Lt([u({type:String,reflect:!0})],wt.prototype,"direction",2),Lt([u({type:String})],wt.prototype,"gap",2),Lt([u({type:String,reflect:!0})],wt.prototype,"align",2),Lt([u({type:String,reflect:!0})],wt.prototype,"shadow",2),Lt([u({type:String})],wt.prototype,"moreShape",2),Lt([u({type:Boolean})],wt.prototype,"scrollable",2),Lt([u({type:String})],wt.prototype,"minWidth",2),Lt([Cs("menu")],wt.prototype,"menu",2),Lt([Cs("#menu-content")],wt.prototype,"menuContent",2),Lt([il({selector:"*"})],wt.prototype,"menuChildren",2),Lt([il({slot:"more",selector:"*"})],wt.prototype,"moreElements",2),Lt([Ae()],wt.prototype,"hasMoreElements",2),wt=Lt([X(Tp)],wt);var Lp=Object.defineProperty,Mp=Object.getOwnPropertyDescriptor,nl=(t,e,s,r)=>{for(var i=r>1?void 0:r?Mp(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Lp(e,s,i),i};const Ip="sonic-modal-actions";let Zi=class extends J{firstUpdated(t){this.buttons?.forEach(e=>{e.hasAttribute("hideModal")&&e.addEventListener("click",()=>{gs.getClosestElement(this,"sonic-modal")?.hide()})}),super.firstUpdated(t)}render(){return R`<slot></slot>`}};Zi.styles=[ee`
|
|
3054
3054
|
:host {
|
|
3055
3055
|
display: flex;
|
|
3056
3056
|
gap: 0.5rem;
|
|
3057
3057
|
margin-top: auto;
|
|
3058
3058
|
padding-top: 1.5rem;
|
|
3059
3059
|
}
|
|
3060
|
-
`],
|
|
3060
|
+
`],nl([Ir({selector:"sonic-button"})],Zi.prototype,"buttons",2),Zi=nl([X(Ip)],Zi);var Np=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,Ji=(t,e,s,r)=>{for(var i=r>1?void 0:r?Fp(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Np(e,s,i),i};const jp="sonic-modal-close";let ri=class extends J{constructor(){super(...arguments),this.translation={fr:"Fermer la fenêtre",en:"Close window",de:"Fenster schließen",nl:"Venster sluiten",es:"Cerrar"}}connectedCallback(){super.connectedCallback(),this.lang=document.documentElement.lang?.split("-")[0]??"fr"}render(){return R`<sonic-button
|
|
3061
3061
|
noAutoFill
|
|
3062
3062
|
data-aria-label=${this.translation[this.lang]}
|
|
3063
3063
|
reset=${te(this.reset)}
|
|
@@ -3065,12 +3065,12 @@ ${this.value}</textarea
|
|
|
3065
3065
|
@click=${this.handleClick}
|
|
3066
3066
|
type=${te(this.type)}
|
|
3067
3067
|
><sonic-icon name="cancel" size="lg"></sonic-icon
|
|
3068
|
-
></sonic-button>`}handleClick(){
|
|
3068
|
+
></sonic-button>`}handleClick(){Je.getClosestElement(this,"sonic-modal").hide()}};Ji([u()],ri.prototype,"translation",2),Ji([u()],ri.prototype,"reset",2),Ji([u()],ri.prototype,"type",2),ri=Ji([X(jp)],ri);var Rp=Object.getOwnPropertyDescriptor,zp=(t,e,s,r)=>{for(var i=r>1?void 0:r?Rp(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const Up="sonic-modal-content";let lo=class extends J{render(){return R`<slot></slot>`}};lo.styles=[ee`
|
|
3069
3069
|
:host {
|
|
3070
3070
|
display: block;
|
|
3071
3071
|
width: 100%;
|
|
3072
3072
|
}
|
|
3073
|
-
`],
|
|
3073
|
+
`],lo=zp([X(Up)],lo);var qp=Object.getOwnPropertyDescriptor,Vp=(t,e,s,r)=>{for(var i=r>1?void 0:r?qp(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const Bp="sonic-modal-subtitle";let co=class extends J{render(){return R`<slot></slot>`}};co.styles=[ee`
|
|
3074
3074
|
:host {
|
|
3075
3075
|
font-size: 1.25rem;
|
|
3076
3076
|
display: block;
|
|
@@ -3082,7 +3082,7 @@ ${this.value}</textarea
|
|
|
3082
3082
|
font-weight: var(--sc-headings-font-weight, 700);
|
|
3083
3083
|
font-style: var(--sc-headings-font-style, normal);
|
|
3084
3084
|
}
|
|
3085
|
-
`],
|
|
3085
|
+
`],co=Vp([X(Bp)],co);var Hp=Object.getOwnPropertyDescriptor,Wp=(t,e,s,r)=>{for(var i=r>1?void 0:r?Hp(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const Kp="sonic-modal-title";let uo=class extends J{render(){return R`<slot></slot>`}};uo.styles=[ee`
|
|
3086
3086
|
:host {
|
|
3087
3087
|
font-weight: bold;
|
|
3088
3088
|
font-size: 1.5rem;
|
|
@@ -3095,7 +3095,7 @@ ${this.value}</textarea
|
|
|
3095
3095
|
font-weight: var(--sc-headings-font-weight, 700);
|
|
3096
3096
|
font-style: var(--sc-headings-font-style, normal);
|
|
3097
3097
|
}
|
|
3098
|
-
`],
|
|
3098
|
+
`],uo=Wp([X(Kp)],uo);const ol=new WeakMap;function Yp(t){const e=ol.get(t);if(e)return e;const s=new CSSStyleSheet;return s.replaceSync(t.cssText),ol.set(t,s),s}function Gp(t){return t instanceof fn}function al(t){return t?(Array.isArray(t)?t:[t]).flatMap(s=>Array.isArray(s)?al(s):s instanceof CSSStyleSheet?[s]:Gp(s)?[Yp(s)]:[]):[]}var Zp=Object.defineProperty,Jp=Object.getOwnPropertyDescriptor,Ge=(t,e,s,r)=>{for(var i=r>1?void 0:r?Jp(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Zp(e,s,i),i};const ll="sonic-modal";let Ee=class extends nt(J){constructor(){super(...arguments),this.forceAction=!1,this.noCloseButton=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.maxWidth="min(100vw, 40rem)",this.maxHeight="90vh",this.width="100%",this.height="fit-content",this.effect="slide",this.fullScreen=!1,this.visible=!1,this.closeOnLocationChange=!1,this.location="",this._animationState="hidden",this._adoptedStyleSheets=[],this._animationConfig={quartOut:"cubic-bezier(0.165, 0.84, 0.44, 1)",quadOut:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",linear:"linear",translateY:"translateY(2.5rem)",durationIn:300,durationOut:300}}static create(t){const e=document.createElement(ll);return e.options=t,t.removeHashOnHide===!0&&e.setAttribute("removeHashOnHide","true"),t.removeOnHide===!0&&e.setAttribute("removeOnHide","true"),t.closeOnLocationChange===!0&&e.setAttribute("closeOnLocationChange","true"),t.maxWidth&&(e.maxWidth=t?.maxWidth),t.width&&(e.width=t?.width),t.maxHeight&&(e.maxHeight=t?.maxHeight),t.height&&(e.height=t?.height),t.forceAction&&(e.forceAction=!0),t.fullScreen&&(e.fullScreen=t?.fullScreen),t.effect&&(e.effect=t?.effect),t.noCloseButton&&(e.noCloseButton=!0),t.closeButtonType&&(e.closeButtonType=t?.closeButtonType),t.styleSheet&&(e.styleSheet=t?.styleSheet),t.paddingX&&(e.paddingX=t?.paddingX),t.paddingY&&(e.paddingY=t?.paddingY),t.zIndex&&(e.zIndex=t?.zIndex),jt.getPopContainer().appendChild(e),e.updateComplete.then(()=>{e.show()}),e}connectedCallback(){Ee.modals.push(this),ct.onChange(this),super.connectedCallback()}disconnectedCallback(){ct.offChange(this),Ee.modals.splice(Ee.modals.indexOf(this),1),this.removeEventListener("keydown",this.handleEscape),super.disconnectedCallback()}firstUpdated(){this.addEventListener("keydown",this.handleEscape)}willUpdate(t){if(this.closeOnLocationChange&&t.has("location")){const e=t.get("location");e&&this.location&&this.location!==e&&setTimeout(()=>{this.hide()},50)}t.has("zIndex")&&this.style.setProperty("--sc_z-index",this.zIndex||"990"),t.has("paddingX")&&this.style.setProperty("--sc-modal-px",this.paddingX||""),t.has("paddingY")&&this.style.setProperty("--sc-modal-py",this.paddingY||""),super.willUpdate(t)}updated(t){const e=!t.get("visible")&&this.visible,s=t.get("visible")&&!this.visible;e&&this._animationState==="hidden"?this.show():s&&this._animationState==="visible"&&this.hide(),t.has("styleSheet")&&this.syncAdoptedStyleSheets()}handleOverlayClick(t){!this.forceAction&&this._animationState==="visible"&&this.hide()}render(){const t={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,pointerEvents:this._animationState!=="hidden"?"auto":"none"},e={display:this.fullScreen?"none":"block",pointerEvents:this._animationState==="visible"?"auto":"none"};return R`
|
|
3099
3099
|
<div
|
|
3100
3100
|
id="backdrop"
|
|
3101
3101
|
@click=${this.handleOverlayClick}
|
|
@@ -3118,7 +3118,7 @@ ${this.value}</textarea
|
|
|
3118
3118
|
<slot></slot>
|
|
3119
3119
|
</div>`:re}
|
|
3120
3120
|
</dialog>
|
|
3121
|
-
`}syncAdoptedStyleSheets(){if(!(this.renderRoot instanceof ShadowRoot))return;const t=
|
|
3121
|
+
`}syncAdoptedStyleSheets(){if(!(this.renderRoot instanceof ShadowRoot))return;const t=al(this.styleSheet),e=this.renderRoot.adoptedStyleSheets.filter(s=>!this._adoptedStyleSheets.includes(s));this.renderRoot.adoptedStyleSheets=[...e,...t],this._adoptedStyleSheets=t}modalFragment(t){const e=this.options?.[t];if(!e)return re;let s;switch(e instanceof Object?s=e:s=je(e),t){case"title":return R`<sonic-modal-title>${s}</sonic-modal-title>`;case"subtitle":return R`<sonic-modal-subtitle>${s}</sonic-modal-subtitle>`;case"content":return R`<sonic-modal-content>${s}</sonic-modal-content>`;case"actions":return R`<sonic-modal-actions>${s}</sonic-modal-actions>`;default:return re}}async show(){this._modalElement.show(),this._animationState="in",await this.animation("in"),this._animationState="visible",this.visible=!0,this.dispatchEvent(new CustomEvent("show")),this._modalElement.focus()}async hide(){this._animationState="out",this.dispatchEvent(new CustomEvent("hide")),await this.animation("out"),this._modalElement.close(),this._animationState="hidden",this.visible=!1,this.hasAttribute("resetDataProviderOnHide")&&be.get(this.getAttribute("resetDataProviderOnHide")).set({}),this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname),this.removeOnHide&&this.remove(),this.dispatchEvent(new CustomEvent("hidden"))}async dispose(){await this.hide(),this.remove()}static disposeAll(){Ee.modals.forEach(t=>{t.dispose()})}handleEscape(t){if(t.key==="Escape"){t.preventDefault();const e=Ee.modals.filter(s=>s._animationState!=="hidden"&&!s.forceAction);e.length>0&&e[e.length-1].hide()}}animation(t){return new Promise(e=>{const{quartOut:s,linear:r,translateY:i,durationIn:n,durationOut:o,quadOut:c}=this._animationConfig,h=this._modalElement;if(!h)return e();const b=t==="in",k=b?n:o,g=!this.fullScreen&&b?100:0;this.fullScreen||(b?this.style.setProperty("--sc_backdrop-opacity","0.8"):setTimeout(()=>{this.style.setProperty("--sc_backdrop-opacity","0")},150));const f=[];this.effect==="slide"&&(f.push(h.animate([{transform:b?i:"translateY(0)"},{transform:b?"translateY(0)":i}],{duration:k,easing:b?s:c,fill:"both",delay:g})),f.push(h.animate([{opacity:b?0:1},{opacity:b?1:0}],{duration:k,easing:r,fill:"both",delay:g}))),Promise.all(f.map(A=>A.finished)).then(()=>e())})}};Ee.styles=[Yr,ee`
|
|
3122
3122
|
:host {
|
|
3123
3123
|
--sc-modal-py: 2.5rem;
|
|
3124
3124
|
--sc-modal-px: 1.5rem;
|
|
@@ -3269,10 +3269,10 @@ ${this.value}</textarea
|
|
|
3269
3269
|
transform: scale(0) !important;
|
|
3270
3270
|
transition: 0.2s linear !important;
|
|
3271
3271
|
}
|
|
3272
|
-
`],Ee.modals=[],
|
|
3272
|
+
`],Ee.modals=[],Ge([u({type:Boolean})],Ee.prototype,"forceAction",2),Ge([u({type:Boolean})],Ee.prototype,"noCloseButton",2),Ge([u({type:Boolean})],Ee.prototype,"removeOnHide",2),Ge([u({type:Boolean})],Ee.prototype,"removeHashOnHide",2),Ge([u({type:String,reflect:!0})],Ee.prototype,"align",2),Ge([u({type:String})],Ee.prototype,"paddingX",2),Ge([u({type:String})],Ee.prototype,"paddingY",2),Ge([u({type:String})],Ee.prototype,"maxWidth",2),Ge([u({type:String})],Ee.prototype,"maxHeight",2),Ge([u({type:String})],Ee.prototype,"zIndex",2),Ge([u({type:String})],Ee.prototype,"width",2),Ge([u({type:String})],Ee.prototype,"height",2),Ge([u({type:String})],Ee.prototype,"effect",2),Ge([u({attribute:!1})],Ee.prototype,"styleSheet",2),Ge([u({type:Object})],Ee.prototype,"options",2),Ge([u({type:Boolean,reflect:!0})],Ee.prototype,"fullScreen",2),Ge([u({type:Boolean,reflect:!0})],Ee.prototype,"visible",2),Ge([u({type:String})],Ee.prototype,"closeButtonType",2),Ge([Cs("#modal")],Ee.prototype,"_modalElement",2),Ge([u({type:Boolean})],Ee.prototype,"closeOnLocationChange",2),Ge([Ae()],Ee.prototype,"location",2),Ge([Ae()],Ee.prototype,"_animationState",2),Ee=Ge([X(ll)],Ee),typeof window<"u"&&(window.SonicModal=Ee);var Xp=Object.defineProperty,Qp=Object.getOwnPropertyDescriptor,ls=(t,e,s,r)=>{for(var i=r>1?void 0:r?Qp(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Xp(e,s,i),i};const ef={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},tf="sonic-alert";let Ht=class extends J{constructor(){super(...arguments),this.label="",this.noIcon=!1,this.text="",this.id=new Date().getTime().toString(),this.dismissible=!1,this.background=!1,this.status="default",this.dismissForever=!1}connectedCallback(){if(this.dismissForever){const t=localStorage.getItem("sonic-alert-dismissed")||"{}";JSON.parse(t)[this.id]&&this.remove()}super.connectedCallback()}render(){return R`
|
|
3273
3273
|
<slot name="icon" class="${this.noIcon?"hidden":""}"
|
|
3274
3274
|
>${this.noIcon?re:R`<div>
|
|
3275
|
-
${this.status&&R`<sonic-icon name=${
|
|
3275
|
+
${this.status&&R`<sonic-icon name=${ef[this.status]}></sonic-icon>`}
|
|
3276
3276
|
</div>`}</slot
|
|
3277
3277
|
>
|
|
3278
3278
|
<div class="content">
|
|
@@ -3375,8 +3375,8 @@ ${this.value}</textarea
|
|
|
3375
3375
|
top: 0.4rem;
|
|
3376
3376
|
right: 0.3rem;
|
|
3377
3377
|
}
|
|
3378
|
-
`],ls([
|
|
3379
|
-
${
|
|
3378
|
+
`],ls([u({type:String})],Ht.prototype,"label",2),ls([u({type:Boolean,reflect:!0})],Ht.prototype,"noIcon",2),ls([u({type:String})],Ht.prototype,"text",2),ls([u({type:String})],Ht.prototype,"id",2),ls([u({type:String,reflect:!0})],Ht.prototype,"size",2),ls([u({type:Boolean,reflect:!0})],Ht.prototype,"dismissible",2),ls([u({type:Boolean,reflect:!0})],Ht.prototype,"background",2),ls([u({type:String,reflect:!0})],Ht.prototype,"status",2),ls([u({type:Boolean,reflect:!0})],Ht.prototype,"dismissForever",2),Ht=ls([X(tf)],Ht);var sf=Object.defineProperty,rf=Object.getOwnPropertyDescriptor,ii=(t,e,s,r)=>{for(var i=r>1?void 0:r?rf(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&sf(e,s,i),i};const nf="sonic-alert-messages";let rr=class extends nt(J){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){return this.messages?.length?R`<div class="container">
|
|
3379
|
+
${Na(this.messages,t=>t.type=="public"?R`<sonic-alert
|
|
3380
3380
|
status=${t.status||"default"}
|
|
3381
3381
|
text=${te(t.content)}
|
|
3382
3382
|
size=${this.size}
|
|
@@ -3390,7 +3390,7 @@ ${this.value}</textarea
|
|
|
3390
3390
|
grid-template-columns: minmax(0, 1fr);
|
|
3391
3391
|
width: 100%;
|
|
3392
3392
|
}
|
|
3393
|
-
`],ii([
|
|
3393
|
+
`],ii([u({type:String})],rr.prototype,"size",2),ii([u({type:Boolean})],rr.prototype,"background",2),ii([u({type:Boolean})],rr.prototype,"noIcon",2),ii([u({type:Array})],rr.prototype,"messages",2),rr=ii([X(nf)],rr);var of=Object.defineProperty,af=Object.getOwnPropertyDescriptor,cl=(t,e,s,r)=>{for(var i=r>1?void 0:r?af(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&of(e,s,i),i};const lf="sonic-toast-message-subscriber";let ho=class extends nt(J){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(t){this._messages=t,this.messages&&t.forEach(e=>{e.type=="public"&&Ce.add({text:e.content||"",status:e.status})})}render(){return re}};cl([u({type:Array})],ho.prototype,"messages",1),ho=cl([X(lf)],ho);var cf=Object.defineProperty,uf=Object.getOwnPropertyDescriptor,ni=(t,e,s,r)=>{for(var i=r>1?void 0:r?uf(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&cf(e,s,i),i};const hf="sonic-tooltip";let ir=class extends J{constructor(){super(),this.label="",this.disabled=!1,this.focusable=!1,this.lastKeyWasTab=!1,this.handleKeyDown=t=>{t.key==="Tab"&&(this.lastKeyWasTab=!0)},this.handleMouseDown=()=>{this.lastKeyWasTab=!1,this.classList.remove("keyboard-focus")},this.handleFocusIn=()=>{this.lastKeyWasTab&&this.classList.add("keyboard-focus"),this.lastKeyWasTab=!1},this.handleFocusOut=()=>{this.classList.remove("keyboard-focus"),this.lastKeyWasTab=!1},this.boundHandleKeyDown=this.handleKeyDown.bind(this),this.boundHandleMouseDown=this.handleMouseDown.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),document.addEventListener("keydown",this.boundHandleKeyDown,!0),document.addEventListener("mousedown",this.boundHandleMouseDown,!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut),document.removeEventListener("keydown",this.boundHandleKeyDown,!0),document.removeEventListener("mousedown",this.boundHandleMouseDown,!0)}willUpdate(t){if(t.has("disabled")){const e=t.get("disabled")===!0;this.disabled?(this.setAttribute("tabindex","-1"),this.classList.remove("keyboard-focus")):!this.disabled&&e&&(this.focusable?this.setAttribute("tabindex","0"):this.removeAttribute("tabindex"))}t.has("focusable")&&(this.focusable&&!this.disabled?this.setAttribute("tabindex","0"):!this.focusable&&!this.disabled&&this.removeAttribute("tabindex")),super.willUpdate(t)}render(){const t=this.disabled||this.label==""?"disabled":"";return R`<div
|
|
3394
3394
|
data-tooltip-text="${this.label.trim().replace(" "," ")}"
|
|
3395
3395
|
class="tooltip ${t}"
|
|
3396
3396
|
>
|
|
@@ -3501,7 +3501,7 @@ ${this.value}</textarea
|
|
|
3501
3501
|
bottom: 0;
|
|
3502
3502
|
left: var(--sc-tooltip-position);
|
|
3503
3503
|
}
|
|
3504
|
-
`],ni([
|
|
3504
|
+
`],ni([u({type:String})],ir.prototype,"label",2),ni([u({type:String,reflect:!0})],ir.prototype,"placement",2),ni([u({type:Boolean})],ir.prototype,"disabled",2),ni([u({type:Boolean})],ir.prototype,"focusable",2),ir=ni([X(hf)],ir);var df=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,cs=(t,e,s,r)=>{for(var i=r>1?void 0:r?pf(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&df(e,s,i),i};const ff="sonic-divider";let Wt=class extends J{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(t){super.firstUpdated(t),(this.label||this.slotNodes?.length)&&this.divider?.classList.add("has-text")}render(){return R`<div part="divider">
|
|
3505
3505
|
<span class="text"
|
|
3506
3506
|
>${je(this.label?this.label:"")}<slot></slot
|
|
3507
3507
|
></span>
|
|
@@ -3636,7 +3636,7 @@ ${this.value}</textarea
|
|
|
3636
3636
|
:host([dashed]) {
|
|
3637
3637
|
--sc-divider-border-style: dashed;
|
|
3638
3638
|
}
|
|
3639
|
-
`],cs([bt({flatten:!0})],Wt.prototype,"slotNodes",2),cs([Cs("div")],Wt.prototype,"divider",2),cs([
|
|
3639
|
+
`],cs([bt({flatten:!0})],Wt.prototype,"slotNodes",2),cs([Cs("div")],Wt.prototype,"divider",2),cs([u({type:String})],Wt.prototype,"label",2),cs([u({type:String,reflect:!0})],Wt.prototype,"size",2),cs([u({type:String,reflect:!0})],Wt.prototype,"align",2),cs([u({type:Boolean,reflect:!0})],Wt.prototype,"vertical",2),cs([u({type:Boolean,reflect:!0})],Wt.prototype,"noMargin",2),cs([u({type:Boolean,reflect:!0})],Wt.prototype,"dashed",2),cs([u({type:Boolean,reflect:!0})],Wt.prototype,"dotted",2),Wt=cs([X(ff)],Wt);var gf=Object.getOwnPropertyDescriptor,bf=(t,e,s,r)=>{for(var i=r>1?void 0:r?gf(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const mf="sonic-card-header-description";let po=class extends J{render(){return R`<slot></slot>`}};po.styles=[ee`
|
|
3640
3640
|
:host() {
|
|
3641
3641
|
display: block;
|
|
3642
3642
|
font-size: 0.7em;
|
|
@@ -3644,7 +3644,7 @@ ${this.value}</textarea
|
|
|
3644
3644
|
font-family: var(--sc-font-family-base, sans-serif);
|
|
3645
3645
|
font-weight: var(--sc-font-style-base, normal);
|
|
3646
3646
|
}
|
|
3647
|
-
`],
|
|
3647
|
+
`],po=bf([X(mf)],po);var vf=Object.defineProperty,yf=Object.getOwnPropertyDescriptor,fo=(t,e,s,r)=>{for(var i=r>1?void 0:r?yf(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&vf(e,s,i),i};const wf="sonic-card-header";let oi=class extends J{render(){return R`
|
|
3648
3648
|
<div class="header-content">
|
|
3649
3649
|
${je(this.label)}
|
|
3650
3650
|
${this.description?R`<sonic-card-header-description
|
|
@@ -3691,15 +3691,15 @@ ${this.value}</textarea
|
|
|
3691
3691
|
::slotted(sonic-card-header-description) {
|
|
3692
3692
|
margin-top: 0.1em;
|
|
3693
3693
|
}
|
|
3694
|
-
`],
|
|
3694
|
+
`],fo([u()],oi.prototype,"label",2),fo([u()],oi.prototype,"description",2),oi=fo([X(wf)],oi);var _f=Object.getOwnPropertyDescriptor,Pf=(t,e,s,r)=>{for(var i=r>1?void 0:r?_f(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const xf="sonic-card-main";let go=class extends J{render(){return R`<slot></slot>`}};go.styles=[ee`
|
|
3695
3695
|
:host {
|
|
3696
3696
|
display: block;
|
|
3697
3697
|
}
|
|
3698
|
-
`],
|
|
3698
|
+
`],go=Pf([X(xf)],go);var Sf=Object.getOwnPropertyDescriptor,Af=(t,e,s,r)=>{for(var i=r>1?void 0:r?Sf(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const Cf="sonic-card-footer";let bo=class extends J{render(){return R` <slot></slot> `}};bo.styles=[ee`
|
|
3699
3699
|
:host {
|
|
3700
3700
|
display: block;
|
|
3701
3701
|
}
|
|
3702
|
-
`],
|
|
3702
|
+
`],bo=Af([X(Cf)],bo);const mo=ee`
|
|
3703
3703
|
:host {
|
|
3704
3704
|
--sc-_color: inherit;
|
|
3705
3705
|
color: var(--sc-_color);
|
|
@@ -3724,7 +3724,7 @@ ${this.value}</textarea
|
|
|
3724
3724
|
.inherit-color {
|
|
3725
3725
|
color: var(--sc-_color);
|
|
3726
3726
|
}
|
|
3727
|
-
`,
|
|
3727
|
+
`,kf=ee`
|
|
3728
3728
|
:host {
|
|
3729
3729
|
--sc-_color: inherit;
|
|
3730
3730
|
--sc-_bg: inherit;
|
|
@@ -3787,7 +3787,7 @@ ${this.value}</textarea
|
|
|
3787
3787
|
.inherit-bg {
|
|
3788
3788
|
color: inherit;
|
|
3789
3789
|
}
|
|
3790
|
-
`;var
|
|
3790
|
+
`;var $f=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,ul=(t,e,s,r)=>{for(var i=r>1?void 0:r?Df(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&$f(e,s,i),i};const Ef="sonic-card";let Xi=class extends J{constructor(){super(...arguments),this.type="base"}render(){return R`<slot></slot> `}};Xi.styles=[kf,ee`
|
|
3791
3791
|
* {
|
|
3792
3792
|
box-sizing: border-box;
|
|
3793
3793
|
}
|
|
@@ -3817,7 +3817,7 @@ ${this.value}</textarea
|
|
|
3817
3817
|
box-shadow: var(--sc-_shadow);
|
|
3818
3818
|
color: var(--sc-_color);
|
|
3819
3819
|
}
|
|
3820
|
-
`],
|
|
3820
|
+
`],ul([u({type:String,reflect:!0})],Xi.prototype,"type",2),Xi=ul([X(Ef)],Xi);var Of=Object.defineProperty,Tf=Object.getOwnPropertyDescriptor,ai=(t,e,s,r)=>{for(var i=r>1?void 0:r?Tf(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Of(e,s,i),i};const Lf="sonic-tr";let nr=class extends nt(J){constructor(){super(...arguments),this._metadata_={}}willUpdate(t){t.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(t)}render(){return R`<slot></slot>`}};nr.styles=[mo,ee`
|
|
3821
3821
|
:host {
|
|
3822
3822
|
display: table-row;
|
|
3823
3823
|
}
|
|
@@ -3835,14 +3835,14 @@ ${this.value}</textarea
|
|
|
3835
3835
|
:host(:hover) {
|
|
3836
3836
|
background: var(--sc-table-hover-bg) !important;
|
|
3837
3837
|
}
|
|
3838
|
-
`],ai([
|
|
3838
|
+
`],ai([u({type:Object})],nr.prototype,"_metadata_",2),ai([u({type:Boolean,reflect:!0})],nr.prototype,"even",2),ai([u({type:Boolean,reflect:!0})],nr.prototype,"odd",2),ai([u({type:Boolean,reflect:!0})],nr.prototype,"last",2),nr=ai([X(Lf)],nr);var Mf=Object.defineProperty,If=Object.getOwnPropertyDescriptor,or=(t,e,s,r)=>{for(var i=r>1?void 0:r?If(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Mf(e,s,i),i};const Nf="sonic-th";let ws=class extends J{render(){const t={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return R`<th
|
|
3839
3839
|
part="th"
|
|
3840
3840
|
style=${$t(t)}
|
|
3841
3841
|
colspan=${te(this.colSpan)}
|
|
3842
3842
|
rowspan=${te(this.rowSpan)}
|
|
3843
3843
|
>
|
|
3844
3844
|
<slot></slot>
|
|
3845
|
-
</th> `}};ws.styles=[
|
|
3845
|
+
</th> `}};ws.styles=[mo,ee`
|
|
3846
3846
|
:host {
|
|
3847
3847
|
display: contents;
|
|
3848
3848
|
background: var(--sc-table-bg);
|
|
@@ -3865,9 +3865,9 @@ ${this.value}</textarea
|
|
|
3865
3865
|
:host([noBorder]) th {
|
|
3866
3866
|
border-bottom: none;
|
|
3867
3867
|
}
|
|
3868
|
-
`],or([
|
|
3868
|
+
`],or([u({type:Number})],ws.prototype,"colSpan",2),or([u({type:Number})],ws.prototype,"rowSpan",2),or([u({type:String})],ws.prototype,"align",2),or([u({type:String})],ws.prototype,"minWidth",2),or([u({type:String})],ws.prototype,"maxWidth",2),or([u({type:String})],ws.prototype,"width",2),ws=or([X(Nf)],ws);var Ff=Object.defineProperty,jf=Object.getOwnPropertyDescriptor,Rs=(t,e,s,r)=>{for(var i=r>1?void 0:r?jf(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Ff(e,s,i),i};const Rf="sonic-td";let us=class extends J{render(){const t={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return R`<td part="td" style=${$t(t)} colspan=${te(this.colSpan)} rowspan=${te(this.rowSpan)}>
|
|
3869
3869
|
<slot></slot>
|
|
3870
|
-
</td>`}};
|
|
3870
|
+
</td>`}};us.styles=[mo,ee`
|
|
3871
3871
|
:host {
|
|
3872
3872
|
display: contents;
|
|
3873
3873
|
}
|
|
@@ -3880,13 +3880,13 @@ ${this.value}</textarea
|
|
|
3880
3880
|
border-right: var(--sc-table-td-border-r, none);
|
|
3881
3881
|
border-left: var(--sc-table-td-border-l, none);
|
|
3882
3882
|
}
|
|
3883
|
-
`],Rs([
|
|
3883
|
+
`],Rs([u({type:Number})],us.prototype,"colSpan",2),Rs([u({type:Number})],us.prototype,"rowSpan",2),Rs([u({type:String})],us.prototype,"align",2),Rs([u({type:String})],us.prototype,"vAlign",2),Rs([u({type:String})],us.prototype,"minWidth",2),Rs([u({type:String})],us.prototype,"maxWidth",2),Rs([u({type:String})],us.prototype,"width",2),us=Rs([X(Rf)],us);var zf=Object.getOwnPropertyDescriptor,Uf=(t,e,s,r)=>{for(var i=r>1?void 0:r?zf(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const qf="sonic-thead";let vo=class extends J{render(){return R`<slot></slot>`}};vo.styles=[ee`
|
|
3884
3884
|
:host {
|
|
3885
3885
|
display: table-header-group;
|
|
3886
3886
|
}
|
|
3887
|
-
`],
|
|
3887
|
+
`],vo=Uf([X(qf)],vo);var Vf=Object.getOwnPropertyDescriptor,Bf=(t,e,s,r)=>{for(var i=r>1?void 0:r?Vf(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const Hf="sonic-tbody";let yo=class extends J{render(){return R`<tbody part="tbody">
|
|
3888
3888
|
<slot></slot>
|
|
3889
|
-
</tbody>`}};
|
|
3889
|
+
</tbody>`}};yo.styles=[ee`
|
|
3890
3890
|
:host {
|
|
3891
3891
|
display: table-row-group;
|
|
3892
3892
|
}
|
|
@@ -3903,20 +3903,20 @@ ${this.value}</textarea
|
|
|
3903
3903
|
border-bottom: var(--sc-form-border-width) solid
|
|
3904
3904
|
var(--sc-base-200, rgba(0, 0, 0, 0.12)) !important;
|
|
3905
3905
|
}
|
|
3906
|
-
`],
|
|
3906
|
+
`],yo=Bf([X(Hf)],yo);var Wf=Object.getOwnPropertyDescriptor,Kf=(t,e,s,r)=>{for(var i=r>1?void 0:r?Wf(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const Yf="sonic-tfoot";let wo=class extends J{render(){return R`<tfoot>
|
|
3907
3907
|
<slot></slot>
|
|
3908
|
-
</tfoot>`}};
|
|
3908
|
+
</tfoot>`}};wo.styles=[ee`
|
|
3909
3909
|
:host {
|
|
3910
3910
|
display: contents;
|
|
3911
3911
|
}
|
|
3912
|
-
`],
|
|
3912
|
+
`],wo=Kf([X(Yf)],wo);var Gf=Object.getOwnPropertyDescriptor,Zf=(t,e,s,r)=>{for(var i=r>1?void 0:r?Gf(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=o(i)||i);return i};const Jf="sonic-caption";let _o=class extends J{render(){return R`<slot></slot>`}};_o.styles=[ee`
|
|
3913
3913
|
:host {
|
|
3914
3914
|
display: table-caption;
|
|
3915
3915
|
font-size: 0.75rem;
|
|
3916
3916
|
color: var(--sc-table-caption-color);
|
|
3917
3917
|
padding: var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py));
|
|
3918
3918
|
}
|
|
3919
|
-
`],
|
|
3919
|
+
`],_o=Zf([X(Jf)],_o);var Xf=Object.defineProperty,Qf=Object.getOwnPropertyDescriptor,Cr=(t,e,s,r)=>{for(var i=r>1?void 0:r?Qf(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Xf(e,s,i),i};const eg="sonic-table";let zs=class extends J{render(){const t={maxHeight:this.maxHeight};return R`
|
|
3920
3920
|
<div
|
|
3921
3921
|
class="table-container ${this.noCustomScroll?"":"custom-scroll"}"
|
|
3922
3922
|
style=${$t(t)}
|
|
@@ -3970,7 +3970,7 @@ ${this.value}</textarea
|
|
|
3970
3970
|
--sc-table-td-border-b: var(--sc-table-bw) solid
|
|
3971
3971
|
var(--sc-table-border-color);
|
|
3972
3972
|
}
|
|
3973
|
-
`],Cr([
|
|
3973
|
+
`],Cr([u({type:String,reflect:!0})],zs.prototype,"size",2),Cr([u({type:Boolean,reflect:!0})],zs.prototype,"bordered",2),Cr([u({type:Boolean,reflect:!0})],zs.prototype,"rounded",2),Cr([u({type:Boolean,reflect:!0})],zs.prototype,"noCustomScroll",2),Cr([u({type:String})],zs.prototype,"maxHeight",2),zs=Cr([X(eg)],zs);const hl="AES-CBC",tg=256;async function sg(){return crypto.subtle.generateKey({name:hl,length:tg},!0,["encrypt","decrypt"])}function rg(t){return btoa(String.fromCharCode(...new Uint8Array(t)))}async function ig(t,e,s){const r=new TextEncoder().encode(t),i=await crypto.subtle.encrypt({name:hl,iv:s.buffer},e,r);return rg(i)}const ng=ee`
|
|
3974
3974
|
@keyframes altcha-spinner {
|
|
3975
3975
|
to {
|
|
3976
3976
|
transform: rotate(360deg);
|
|
@@ -4193,7 +4193,7 @@ ${this.value}</textarea
|
|
|
4193
4193
|
animation: altcha-spinner 0.75s infinite linear;
|
|
4194
4194
|
transform-origin: center;
|
|
4195
4195
|
}
|
|
4196
|
-
`;var
|
|
4196
|
+
`;var og=Object.defineProperty,ag=Object.getOwnPropertyDescriptor,Qi=(t,e,s,r)=>{for(var i=r>1?void 0:r?ag(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&og(e,s,i),i};const lg="supersoniks_altcha",cg="Si2\\]X8M4!n9DCLd";let dl=!1;const ug="sonic-captcha";let kr=class extends Ts(J){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=t=>{t=="request_token"&&(this.formPublisher&&this.formPublisher.captchaToken.set(""),this.requestToken())},this.maxNumber=5e4,this.chalengeUrl="https://altcha.supersoniks.org/get-challenge"}connectedCallback(){if(document.location.protocol.includes("https")){if(!dl){const t=document.createElement("script");t.type="module",this.setAttribute("async",""),this.setAttribute("defer",""),t.src="https://cdn.jsdelivr.net/gh/altcha-org/altcha/dist/altcha.min.js",dl=!0,document.head.appendChild(t)}this.generateEncryptedKey(),super.connectedCallback(),this.formPublisher=mi(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation.set(!0),this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken.set(""),this.formPublisher.needsCaptchaValidation.set(!1)),super.disconnectedCallback()}requestToken(){if(!this.formPublisher)return;const t=this.shadowRoot.querySelector("form");if(!t)return;const e=new FormData(t);this.formPublisher.captchaKey.set(this.key),this.formPublisher.captchaToken.set(e.get("altcha")?.toString()||"")}async generateEncryptedKey(){if(this.key)return;const t=await sg(),e=new TextEncoder().encode(cg),s=await ig(lg,t,e);this.key=s}render(){if(!this.key)return re;const e=gs.getLanguage().match("^fr\\b")?{aria:"Visitez altcha.org",error:"La vérification a échoué, réessayez plus tard.",expired:"La vérification a expiré, réessayez.",footer:"Protégé par Altcha",label:"Je ne suis pas un robot.",verified:"Vérifié",verifying:"Vérification en cours...",wait:"Vérification en cours… Veuillez patienter."}:{aria:"Visit altcha.org",error:"Verification failed, try again later.",expired:"Verification expired, try again.",footer:"Protected by Altcha",label:"I'm not a robot.",verified:"Verified",verifying:"Verifying...",wait:"Verifying... Please wait."};return R`
|
|
4197
4197
|
<form>
|
|
4198
4198
|
<altcha-widget
|
|
4199
4199
|
challengeurl="${this.chalengeUrl}?key=${this.key}&maxNumber=${this.maxNumber}"
|
|
@@ -4205,7 +4205,7 @@ ${this.value}</textarea
|
|
|
4205
4205
|
></altcha-widget>
|
|
4206
4206
|
</form>
|
|
4207
4207
|
<slot></slot>
|
|
4208
|
-
`}};kr.styles=[
|
|
4208
|
+
`}};kr.styles=[ng,ee`
|
|
4209
4209
|
:host {
|
|
4210
4210
|
--altcha-border-width: var(--sc-border-width, 1px);
|
|
4211
4211
|
--altcha-border-radius: var(--sc-rounded);
|
|
@@ -4224,4 +4224,4 @@ ${this.value}</textarea
|
|
|
4224
4224
|
--altcha-color-footer-bg: var(--sc-base-100, #000);
|
|
4225
4225
|
--altcha-max-width: 260px;
|
|
4226
4226
|
}
|
|
4227
|
-
`],
|
|
4227
|
+
`],Qi([u()],kr.prototype,"key",2),Qi([u()],kr.prototype,"action",2),Qi([u({type:Number})],kr.prototype,"zIndex",2),kr=Qi([X(ug)],kr),window.queueMicrotask=window.queueMicrotask||function(t){Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))};class hg extends Pn{constructor(e){super(e),this.observables=new Set,this.cleanupWatchers=[],this.onAssign=s=>{this.setValue(s)},this.node=e.options?.host}teardownWatchers(){this.cleanupWatchers.forEach(e=>e()),this.cleanupWatchers=[]}normalizeInput(e){return ya(e)?e.path:e}render(e){const s=this.normalizeInput(e),r=this.pathTemplate!==s;return r&&(this.pathTemplate=s,this.teardownWatchers()),(r||!this.resolvedPath)&&queueMicrotask(()=>{!this.isConnected||!this.pathTemplate||this.setupSubscription()}),Nt}setupSubscription(){const e=this.node,s=this.pathTemplate;if(!e||!s)return;this.teardownWatchers();const r=Ut(s);if(r.length>0)for(const i of r)this.cleanupWatchers.push(Es(Fi.watcherStore,Fi.hooked,e,i,()=>this.refreshSubscription()));this.refreshSubscription()}refreshSubscription(){const e=this.node,s=this.pathTemplate;if(!s)return;const r=Ut(s).length>0;let i=s;if(r)if(!e)i=null;else{const n=Ot(e,s);i=n.ready?n.path:null}if(i!==this.resolvedPath){if(!i){this.unsubscribe(),this.resolvedPath=void 0,this.setValue(void 0);return}this.resolvedPath=i,this.subscribe(i)}}subscribe(e){this.unsubscribe(),this.onAssign=s=>{this.setValue(s)},this.observables=gi(e),this.observables.forEach(s=>{s.onAssign(this.onAssign)})}unsubscribe(){this.observables.forEach(e=>e.offAssign(this.onAssign)),this.observables.clear()}disconnected(){this.teardownWatchers(),this.unsubscribe(),this.resolvedPath=void 0}reconnected(){this.pathTemplate&&this.setupSubscription()}}const pl=$s(hg),dg=pl,pg=pl;window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:mi,dataProvider:$l,sub:pg,subscribe:dg,get:kl,set:Dl};const fg=Ce,gg=Ee;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:fg,SonicModal:gg};const bg=window;bg.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))}));
|